Nouns

Nouns · Acciones GPT

Not specified

  • GET /nouns/auction/current1
  • GET /nouns/governance/active-and-pending2
Esquema original API
{
  "openapi": "3.0.3",
  "info": {
    "title": "Not specified",
    "license": {
      "name": "Not specified"
    },
    "version": "Not specified"
  },
  "servers": [
    {
      "url": "https://nounsgptapi.iamng.wtf"
    }
  ],
  "paths": {
    "/nouns/auction/current": {
      "get": {
        "operationId": "1",
        "responses": {
          "200": {
            "description": "response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "auctions": {
                      "nullable": false,
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The Noun's ERC721 token id",
                            "nullable": false
                          },
                          "endTime": {
                            "type": "string",
                            "description": "The time that the auction is scheduled to end",
                            "nullable": false
                          },
                          "currentBid": {
                            "type": "string",
                            "description": "The current highest bid amount. In Ethereum.",
                            "nullable": false
                          },
                          "bidder": {
                            "nullable": true,
                            "type": "object",
                            "description": "The Ethereum account with the current highest bid. An Account is any address that holds any amount of Nouns, the id used is the blockchain address."
                          }
                        }
                      },
                      "type": "array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/nouns/governance/active-and-pending": {
      "get": {
        "operationId": "2",
        "parameters": [],
        "responses": {
          "200": {
            "description": "response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "proposals": {
                      "nullable": false,
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "Internal proposal ID, in this implementation it seems to be a autoincremental id",
                            "nullable": false
                          },
                          "proposer": {
                            "nullable": false,
                            "type": "object",
                            "description": "A Delegate is any address that has been delegated with voting tokens by a\ntoken holder, id is the blockchain address of said delegate"
                          },
                          "quorumVotes": {
                            "type": "string",
                            "description": "The required number of votes for quorum at the time of proposal creation",
                            "nullable": false
                          },
                          "title": {
                            "type": "string",
                            "description": "The proposal title, parsed from the description",
                            "nullable": false
                          },
                          "description": {
                            "type": "string",
                            "description": "The full proposal description, which includes the title",
                            "nullable": false
                          },
                          "status": {
                            "nullable": false,
                            "type": "string",
                            "enum": [
                              "PENDING",
                              "ACTIVE",
                              "CANCELLED",
                              "VETOED",
                              "QUEUED",
                              "EXECUTED"
                            ],
                            "description": "Status of the proposal"
                          },
                          "executionETA": {
                            "type": "string",
                            "description": "Once the proposal is queued for execution it will have an ETA of the execution",
                            "nullable": true
                          },
                          "forVotes": {
                            "type": "string",
                            "description": "The number of votes in favor of the proposal",
                            "nullable": false
                          },
                          "againstVotes": {
                            "type": "string",
                            "description": "The number of votes against of the proposal",
                            "nullable": false
                          },
                          "abstainVotes": {
                            "type": "string",
                            "description": "The number of votes to abstain on the proposal",
                            "nullable": false
                          },
                          "totalSupply": {
                            "type": "string",
                            "description": "Total supply when this proposal was created",
                            "nullable": false
                          },
                          "votes": {
                            "nullable": false,
                            "items": {
                              "type": "object",
                              "properties": {
                                "support": {
                                  "type": "boolean",
                                  "description": "Whether the vote is in favour of the proposal",
                                  "nullable": false
                                },
                                "supportDetailed": {
                                  "type": "integer",
                                  "description": "The integer support value: against (0), for (1), or abstain (2)",
                                  "nullable": false
                                },
                                "votes": {
                                  "type": "string",
                                  "description": "Amount of votes in favour or against expressed as a BigInt normalized value for the Nouns ERC721 Token",
                                  "nullable": false
                                },
                                "reason": {
                                  "type": "string",
                                  "description": "The optional vote reason",
                                  "nullable": true
                                },
                                "voter": {
                                  "nullable": false,
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "description": "A Delegate is any address that has been delegated with voting tokens by a\ntoken holder, id is the blockchain address of said delegate",
                                      "nullable": false
                                    }
                                  },
                                  "type": "object",
                                  "description": "Delegate that emitted the vote"
                                }
                              }
                            },
                            "type": "array",
                            "description": "Votes associated to this proposal"
                          },
                          "targets": {
                            "nullable": true,
                            "items": {
                              "type": "string",
                              "nullable": false
                            },
                            "type": "array",
                            "description": "Targets data for the change. Usually means Ethereum address."
                          },
                          "values": {
                            "nullable": true,
                            "items": {
                              "type": "string",
                              "nullable": false
                            },
                            "type": "array",
                            "description": "Values data for the change. Usually means Ethereum, show as gwei."
                          }
                        }
                      },
                      "type": "array"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}