GeneralQuorumProposal
Idx 06·Since e176·5 ABI versions
GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQGNM
Procedures
2procSetProposal#1
in 328Bout 3B
→input5 fields · 328B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| url | bytes | 0 | 256 | |
| epoch | uint16 | 256 | 2 | |
| type | uint16 | 258 | 2 | |
| tick | uint32 | 260 | 4 | |
| data | bytes | 264 | 64 |
←output2 fields · 3B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalIndex | uint16 | 0 | 2 | |
| okay | uint8 | 2 | 1 |
procVote#2
in 16Bout 1B
→input4 fields · 16B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalIndex | uint16 | 0 | 2 | |
| proposalType | uint16 | 2 | 2 | |
| proposalTick | uint32 | 4 | 4 | |
| voteValue | sint64 | 8 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| okay | uint8 | 0 | 1 |
Functions
5funcGetProposalIndices#1
in 5Bout 130B
→input2 fields · 5B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| activeProposals | uint8 | 0 | 1 | |
| prevProposalIndex | sint32 | 1 | 4 |
←output2 fields · 130B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| numOfIndices | uint16 | 0 | 2 | |
| indices | uint16[64] | 2 | 128 |
funcGetProposal#2
in 2Bout 368B
→input1 field · 2B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalIndex | uint16 | 0 | 2 |
←output6 fields · 368B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| okay | uint8 | 0 | 1 | |
| _padding0 | uint8[4] | 1 | 4 | |
| _padding1 | uint8[2] | 5 | 2 | |
| _padding2 | uint8[1] | 7 | 1 | |
| proposerPubicKey | id | 8 | 32 | |
| proposal | ProposalDataT | 40 | 328 |
funcGetVote#3
in 34Bout 17B
→input2 fields · 34B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| voter | id | 0 | 32 | |
| proposalIndex | uint16 | 32 | 2 |
←output2 fields · 17B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| okay | uint8 | 0 | 1 | |
| vote | ProposalSingleVoteDataV1 | 1 | 16 |
funcGetVotingResults#4
in 2Bout 49B
→input1 field · 2B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalIndex | uint16 | 0 | 2 |
←output2 fields · 49B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| okay | uint8 | 0 | 1 | |
| results | ProposalSummarizedVotingDataV1 | 1 | 48 |
funcGetRevenueDonation#5
in 0Bout 5376B
←output1 field · 5376B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| data | RevenueDonationEntry[128] | 0 | 5376 |
Structs
4structProposalDataT
328B5 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| url | bytes | 0 | 256 | |
| epoch | uint16 | 256 | 2 | |
| type | uint16 | 258 | 2 | |
| tick | uint32 | 260 | 4 | |
| data | bytes | 264 | 64 |
structProposalSingleVoteDataV1
16B4 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalIndex | uint16 | 0 | 2 | |
| proposalType | uint16 | 2 | 2 | |
| proposalTick | uint32 | 4 | 4 | |
| voteValue | sint64 | 8 | 8 |
structProposalSummarizedVotingDataV1
48B6 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalIndex | uint16 | 0 | 2 | |
| optionCount | uint16 | 2 | 2 | |
| proposalTick | uint32 | 4 | 4 | |
| totalVotesAuthorized | uint32 | 8 | 4 | |
| totalVotesCasted | uint32 | 12 | 4 | |
| optionVoteCount | uint32[8] | 16 | 32 |
structRevenueDonationEntry
42B3 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| destinationPublicKey | id | 0 | 32 | |
| millionthAmount | sint64 | 32 | 8 | |
| firstEpoch | uint16 | 40 | 2 |
Raw 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 }