{
"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
}