Source on GitHub

GeneralQuorumProposal

Idx 06·Since e176·5 ABI versions
GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQGNM
2Procedures
5Functions
4Structs
5ABI Versions

Current ABI

e176Open Snapshot →

Procedures

2State-changing
procSetProposal#1
in 328Bout 3B
input5 fields · 328B
nametypeoffsetbyteslayout
urlbytes0256
epochuint162562
typeuint162582
tickuint322604
databytes26464
output2 fields · 3B
nametypeoffsetbyteslayout
proposalIndexuint1602
okayuint821
procVote#2
in 16Bout 1B
input4 fields · 16B
nametypeoffsetbyteslayout
proposalIndexuint1602
proposalTypeuint1622
proposalTickuint3244
voteValuesint6488
output1 field · 1B
nametypeoffsetbyteslayout
okayuint801

Functions

5Read-only
funcGetProposalIndices#1
in 5Bout 130B
input2 fields · 5B
nametypeoffsetbyteslayout
activeProposalsuint801
prevProposalIndexsint3214
output2 fields · 130B
nametypeoffsetbyteslayout
numOfIndicesuint1602
indicesuint16[64]2128
funcGetProposal#2
in 2Bout 368B
input1 field · 2B
nametypeoffsetbyteslayout
proposalIndexuint1602
output6 fields · 368B
nametypeoffsetbyteslayout
okayuint801
_padding0uint8[4]14
_padding1uint8[2]52
_padding2uint8[1]71
proposerPubicKeyid832
proposalProposalDataT40328
funcGetVote#3
in 34Bout 17B
input2 fields · 34B
nametypeoffsetbyteslayout
voterid032
proposalIndexuint16322
output2 fields · 17B
nametypeoffsetbyteslayout
okayuint801
voteProposalSingleVoteDataV1116
funcGetVotingResults#4
in 2Bout 49B
input1 field · 2B
nametypeoffsetbyteslayout
proposalIndexuint1602
output2 fields · 49B
nametypeoffsetbyteslayout
okayuint801
resultsProposalSummarizedVotingDataV1148
funcGetRevenueDonation#5
in 0Bout 5376B
output1 field · 5376B
nametypeoffsetbyteslayout
dataRevenueDonationEntry[128]05376

Structs

4Shared types
structProposalDataT
328B5 fields
fields
nametypeoffsetbyteslayout
urlbytes0256
epochuint162562
typeuint162582
tickuint322604
databytes26464
structProposalSingleVoteDataV1
16B4 fields
fields
nametypeoffsetbyteslayout
proposalIndexuint1602
proposalTypeuint1622
proposalTickuint3244
voteValuesint6488
structProposalSummarizedVotingDataV1
48B6 fields
fields
nametypeoffsetbyteslayout
proposalIndexuint1602
optionCountuint1622
proposalTickuint3244
totalVotesAuthorizeduint3284
totalVotesCasteduint32124
optionVoteCountuint32[8]1632
structRevenueDonationEntry
42B3 fields
fields
nametypeoffsetbyteslayout
destinationPublicKeyid032
millionthAmountsint64328
firstEpochuint16402

Raw JSON

/v1/contracts/6
contracts/6.json
{
  "contractIndex": 6,
  "contractName": "GeneralQuorumProposal",
  "contractAddress": "GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQGNM",
  "epoch": 176,
  "coreVersion": "v1.257.1",
  "structs": {
    "ProposalDataT": {
      "name": "ProposalDataT",
      "byteLength": 328,
      "fields": [
        {
          "name": "url",
          "type": "bytes",
          "offset": 0,
          "byteLength": 256
        },
        {
          "name": "epoch",
          "type": "uint16",
          "offset": 256,
          "byteLength": 2
        },
        {
          "name": "type",
          "type": "uint16",
          "offset": 258,
          "byteLength": 2
        },
        {
          "name": "tick",
          "type": "uint32",
          "offset": 260,
          "byteLength": 4
        },
        {
          "name": "data",
          "type": "bytes",
          "offset": 264,
          "byteLength": 64
        }
      ]
    },
    "ProposalSingleVoteDataV1": {
      "name": "ProposalSingleVoteDataV1",
      "byteLength": 16,
      "fields": [
        {
          "name": "proposalIndex",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        },
        {
          "name": "proposalType",
          "type": "uint16",
          "offset": 2,
          "byteLength": 2
        },
        {
          "name": "proposalTick",
          "type": "uint32",
          "offset": 4,
          "byteLength": 4
        },
        {
          "name": "voteValue",
          "type": "sint64",
          "offset": 8,
          "byteLength": 8
        }
      ]
    },
    "ProposalSummarizedVotingDataV1": {
      "name": "ProposalSummarizedVotingDataV1",
      "byteLength": 48,
      "fields": [
        {
          "name": "proposalIndex",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        },
        {
          "name": "optionCount",
          "type": "uint16",
          "offset": 2,
          "byteLength": 2
        },
        {
          "name": "proposalTick",
          "type": "uint32",
          "offset": 4,
          "byteLength": 4
        },
        {
          "name": "totalVotesAuthorized",
          "type": "uint32",
          "offset": 8,
          "byteLength": 4
        },
        {
          "name": "totalVotesCasted",
          "type": "uint32",
          "offset": 12,
          "byteLength": 4
        },
        {
          "name": "optionVoteCount",
          "type": "array",
          "offset": 16,
          "byteLength": 32,
          "arrayLength": 8,
          "arrayItemType": "uint32",
          "arrayItemByteLength": 4
        }
      ]
    },
    "RevenueDonationEntry": {
      "name": "RevenueDonationEntry",
      "fields": [
        {
          "name": "destinationPublicKey",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "millionthAmount",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "firstEpoch",
          "type": "uint16",
          "offset": 40,
          "byteLength": 2
        }
      ],
      "byteLength": 42
    }
  },
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "SetProposal",
      "inputFields": [
        {
          "name": "url",
          "type": "bytes",
          "offset": 0,
          "byteLength": 256
        },
        {
          "name": "epoch",
          "type": "uint16",
          "offset": 256,
          "byteLength": 2
        },
        {
          "name": "type",
          "type": "uint16",
          "offset": 258,
          "byteLength": 2
        },
        {
          "name": "tick",
          "type": "uint32",
          "offset": 260,
          "byteLength": 4
        },
        {
          "name": "data",
          "type": "bytes",
          "offset": 264,
          "byteLength": 64
        }
      ],
      "outputFields": [
        {
          "name": "proposalIndex",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        },
        {
          "name": "okay",
          "type": "uint8",
          "offset": 2,
          "byteLength": 1
        }
      ],
      "inputSize": 328,
      "outputSize": 3
    },
    {
      "kind": "procedure",
      "inputType": 2,
      "name": "Vote",
      "inputFields": [
        {
          "name": "proposalIndex",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        },
        {
          "name": "proposalType",
          "type": "uint16",
          "offset": 2,
          "byteLength": 2
        },
        {
          "name": "proposalTick",
          "type": "uint32",
          "offset": 4,
          "byteLength": 4
        },
        {
          "name": "voteValue",
          "type": "sint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "okay",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 16,
      "outputSize": 1
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "GetProposalIndices",
      "inputFields": [
        {
          "name": "activeProposals",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        },
        {
          "name": "prevProposalIndex",
          "type": "sint32",
          "offset": 1,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "numOfIndices",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        },
        {
          "name": "indices",
          "type": "array",
          "offset": 2,
          "byteLength": 128,
          "arrayLength": 64,
          "arrayItemType": "uint16",
          "arrayItemByteLength": 2
        }
      ],
      "inputSize": 5,
      "outputSize": 130
    },
    {
      "kind": "function",
      "inputType": 2,
      "name": "GetProposal",
      "inputFields": [
        {
          "name": "proposalIndex",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "okay",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        },
        {
          "name": "_padding0",
          "type": "array",
          "offset": 1,
          "byteLength": 4,
          "arrayLength": 4,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        },
        {
          "name": "_padding1",
          "type": "array",
          "offset": 5,
          "byteLength": 2,
          "arrayLength": 2,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        },
        {
          "name": "_padding2",
          "type": "array",
          "offset": 7,
          "byteLength": 1,
          "arrayLength": 1,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        },
        {
          "name": "proposerPubicKey",
          "type": "id",
          "offset": 8,
          "byteLength": 32
        },
        {
          "name": "proposal",
          "type": "struct",
          "offset": 40,
          "byteLength": 328,
          "structRef": "ProposalDataT"
        }
      ],
      "inputSize": 2,
      "outputSize": 368
    },
    {
      "kind": "function",
      "inputType": 3,
      "name": "GetVote",
      "inputFields": [
        {
          "name": "voter",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "proposalIndex",
          "type": "uint16",
          "offset": 32,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "okay",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        },
        {
          "name": "vote",
          "type": "struct",
          "offset": 1,
          "byteLength": 16,
          "structRef": "ProposalSingleVoteDataV1"
        }
      ],
      "inputSize": 34,
      "outputSize": 17
    },
    {
      "kind": "function",
      "inputType": 4,
      "name": "GetVotingResults",
      "inputFields": [
        {
          "name": "proposalIndex",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "okay",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        },
        {
          "name": "results",
          "type": "struct",
          "offset": 1,
          "byteLength": 48,
          "structRef": "ProposalSummarizedVotingDataV1"
        }
      ],
      "inputSize": 2,
      "outputSize": 49
    },
    {
      "kind": "function",
      "inputType": 5,
      "name": "GetRevenueDonation",
      "inputFields": [],
      "outputFields": [
        {
          "name": "data",
          "type": "array",
          "offset": 0,
          "byteLength": 5376,
          "arrayLength": 128,
          "arrayItemStructRef": "RevenueDonationEntry",
          "arrayItemByteLength": 42
        }
      ],
      "inputSize": 0,
      "outputSize": 5376
    }
  ],
  "effectiveFromEpoch": 176,
  "effectiveToEpoch": null
}