Source on GitHub

Quottery

Idx 02·Since e210·3 ABI versions
CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACNKL
17Procedures
8Functions
9Structs
3ABI Versions

Current ABI

e210Open Snapshot →

Procedures

17State-changing
procCreateEvent#1
in 280Bout 0B
input1 field · 280B
nametypeoffsetbyteslayout
qeiQtryEventInfo0280
procAddToAskOrder#2
in 32Bout 8B
input4 fields · 32B
nametypeoffsetbyteslayout
eventIduint6408
optionuint6488
amountuint64168
pricesint64248
output1 field · 8B
nametypeoffsetbyteslayout
statussint6408
procRemoveAskOrder#3
in 32Bout 8B
input4 fields · 32B
nametypeoffsetbyteslayout
eventIduint6408
optionuint6488
amountuint64168
pricesint64248
output1 field · 8B
nametypeoffsetbyteslayout
statussint6408
procAddToBidOrder#4
in 32Bout 8B
input4 fields · 32B
nametypeoffsetbyteslayout
eventIduint6408
optionuint6488
amountsint64168
pricesint64248
output1 field · 8B
nametypeoffsetbyteslayout
statussint6408
procRemoveBidOrder#5
in 32Bout 8B
input4 fields · 32B
nametypeoffsetbyteslayout
eventIduint6408
optionuint6488
amountuint64168
pricesint64248
output1 field · 8B
nametypeoffsetbyteslayout
statussint6408
procPublishResult#6
in 16Bout 0B
input2 fields · 16B
nametypeoffsetbyteslayout
eventIduint6408
optionuint6488
procTryFinalizeEvent#7
in 8Bout 0B
input1 field · 8B
nametypeoffsetbyteslayout
eventIduint6408
procDispute#8
in 8Bout 0B
input1 field · 8B
nametypeoffsetbyteslayout
eventIduint6408
procResolveDispute#9
in 16Bout 0B
input2 fields · 16B
nametypeoffsetbyteslayout
eventIduint6408
votesint6488
procUserClaimReward#10
in 8Bout 0B
input1 field · 8B
nametypeoffsetbyteslayout
eventIduint6408
procGOForceClaimReward#11
in 520Bout 0B
input2 fields · 520B
nametypeoffsetbyteslayout
eventIduint6408
pubkeysid[16]8512
procTransferQUSD#12
in 40Bout 8B
input2 fields · 40B
nametypeoffsetbyteslayout
receiverid032
amountsint64328
output1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
procTransferShareManagementRights#13
in 52Bout 8B
input3 fields · 52B
nametypeoffsetbyteslayout
assetAsset040
numberOfSharessint64408
newManagingContractIndexuint32484
output1 field · 8B
nametypeoffsetbyteslayout
transferredNumberOfSharessint6408
procCleanMemory#14
in 0Bout 0B
— no input or output fields —
procTransferQTRYGOV#15
in 40Bout 8B
input2 fields · 40B
nametypeoffsetbyteslayout
receiverid032
amountsint64328
output1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
procUpdateFeeDiscountList#20
in 48Bout 0B
input3 fields · 48B
nametypeoffsetbyteslayout
userIdid032
newFeeRateuint64328
opsuint64408
procProposalVote#100
in 72Bout 0B
input1 field · 72B
nametypeoffsetbyteslayout
proposedQtryGOV072

Functions

8Read-only
funcBasicInfo#1
in 0Bout 112B
output11 fields · 112B
nametypeoffsetbyteslayout
operationFeeuint6408
shareholderFeeuint6488
burnFeeuint64168
nIssuedEventuint64248
shareholdersRevenueuint64328
operationRevenueuint64408
burnedAmountuint64488
mFeePerDayuint64568
antiSpamAmountuint64648
depositAmountForDisputeuint64728
gameOperatorid8032
funcGetEventInfo#2
in 8Bout 336B
input1 field · 8B
nametypeoffsetbyteslayout
eventIduint6408
output6 fields · 336B
nametypeoffsetbyteslayout
qeiQtryEventInfo0280
resultByGOsint322804
publishTickTimeuint322844
disputerInfoDepositInfo28840
computorsVote0uint323284
computorsVote1uint323324
funcGetOrders#3
in 32Bout 12288B
input4 fields · 32B
nametypeoffsetbyteslayout
eventIduint6408
optionuint6488
isBiduint64168
offsetuint64248
output1 field · 12288B
nametypeoffsetbyteslayout
ordersQtryOrderWithPrice[256]012288
funcGetActiveEvent#4
in 0Bout 0B
output1 field · 0B
nametypeoffsetbyteslayout
recentActiveEventuint64[]00
funcGetEventInfoBatch#5
in 512Bout 17920B
input1 field · 512B
nametypeoffsetbyteslayout
eventIdsuint64[64]0512
output1 field · 17920B
nametypeoffsetbyteslayout
aqeiQtryEventInfo[64]017920
funcGetUserPosition#6
in 32Bout 16392B
input1 field · 32B
nametypeoffsetbyteslayout
uidid032
output2 fields · 16392B
nametypeoffsetbyteslayout
countsint6408
pPositionInfo[1024]816384
funcGetApprovedAmount#7
in 32Bout 8B
input1 field · 32B
nametypeoffsetbyteslayout
pkid032
output1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
funcGetTopProposals#8
in 0Bout 324B
output2 fields · 324B
nametypeoffsetbyteslayout
topProposalInfo[4]0320
uniqueCountsint323204

Structs

9Shared types
structQtryEventInfo
280B6 fields
fields
nametypeoffsetbyteslayout
eiduint6408
openDateDateAndTime88
endDateDateAndTime168
descid[4]24128
option0Descid[2]15264
option1Descid[2]21664
structQtryGOV
72B6 fields
fields
nametypeoffsetbyteslayout
mShareHolderFeeuint6408
mBurnFeeuint6488
mOperationFeeuint64168
mFeePerDaysint64248
mDepositAmountForDisputesint64328
mOperationIdid4032
structAsset
40B2 fields
fields
nametypeoffsetbyteslayout
issuerid032
assetNameuint64328
structDepositInfo
40B2 fields
fields
nametypeoffsetbyteslayout
pubkeyid032
amountsint64328
structPositionInfo
16B2 fields
fields
nametypeoffsetbyteslayout
eouint6408
amountsint6488
structQtryOrderWithPrice
48B2 fields
fields
nametypeoffsetbyteslayout
qoQtryOrder040
pricesint64408
structProposalInfo
80B2 fields
fields
nametypeoffsetbyteslayout
proposedQtryGOV072
totalVotessint64728
structDateAndTime
8B1 field
fields
nametypeoffsetbyteslayout
valueuint6408
structQtryOrder
40B2 fields
fields
nametypeoffsetbyteslayout
entityid032
amountsint64328

Raw JSON

/v1/contracts/2
contracts/2.json
{
  "contractIndex": 2,
  "contractName": "Quottery",
  "contractAddress": "CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACNKL",
  "epoch": 210,
  "coreVersion": "v1.288.0",
  "structs": {
    "QtryEventInfo": {
      "name": "QtryEventInfo",
      "fields": [
        {
          "name": "eid",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "openDate",
          "type": "struct",
          "offset": 8,
          "byteLength": 8,
          "structRef": "DateAndTime"
        },
        {
          "name": "endDate",
          "type": "struct",
          "offset": 16,
          "byteLength": 8,
          "structRef": "DateAndTime"
        },
        {
          "name": "desc",
          "type": "array",
          "offset": 24,
          "byteLength": 128,
          "arrayLength": 4,
          "arrayItemType": "id",
          "arrayItemByteLength": 32
        },
        {
          "name": "option0Desc",
          "type": "array",
          "offset": 152,
          "byteLength": 64,
          "arrayLength": 2,
          "arrayItemType": "id",
          "arrayItemByteLength": 32
        },
        {
          "name": "option1Desc",
          "type": "array",
          "offset": 216,
          "byteLength": 64,
          "arrayLength": 2,
          "arrayItemType": "id",
          "arrayItemByteLength": 32
        }
      ],
      "byteLength": 280
    },
    "QtryGOV": {
      "name": "QtryGOV",
      "fields": [
        {
          "name": "mShareHolderFee",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "mBurnFee",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "mOperationFee",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "mFeePerDay",
          "type": "sint64",
          "offset": 24,
          "byteLength": 8
        },
        {
          "name": "mDepositAmountForDispute",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "mOperationId",
          "type": "id",
          "offset": 40,
          "byteLength": 32
        }
      ],
      "byteLength": 72
    },
    "Asset": {
      "name": "Asset",
      "byteLength": 40,
      "fields": [
        {
          "name": "issuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "assetName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        }
      ]
    },
    "DepositInfo": {
      "name": "DepositInfo",
      "fields": [
        {
          "name": "pubkey",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "amount",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        }
      ],
      "byteLength": 40
    },
    "PositionInfo": {
      "name": "PositionInfo",
      "fields": [
        {
          "name": "eo",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "amount",
          "type": "sint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "byteLength": 16
    },
    "QtryOrderWithPrice": {
      "name": "QtryOrderWithPrice",
      "fields": [
        {
          "name": "qo",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "QtryOrder"
        },
        {
          "name": "price",
          "type": "sint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "byteLength": 48
    },
    "ProposalInfo": {
      "name": "ProposalInfo",
      "fields": [
        {
          "name": "proposed",
          "type": "struct",
          "offset": 0,
          "byteLength": 72,
          "structRef": "QtryGOV"
        },
        {
          "name": "totalVotes",
          "type": "sint64",
          "offset": 72,
          "byteLength": 8
        }
      ],
      "byteLength": 80
    },
    "DateAndTime": {
      "name": "DateAndTime",
      "byteLength": 8,
      "fields": [
        {
          "name": "value",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ]
    },
    "QtryOrder": {
      "name": "QtryOrder",
      "fields": [
        {
          "name": "entity",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "amount",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        }
      ],
      "byteLength": 40
    }
  },
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "CreateEvent",
      "inputFields": [
        {
          "name": "qei",
          "type": "struct",
          "offset": 0,
          "byteLength": 280,
          "structRef": "QtryEventInfo"
        }
      ],
      "outputFields": [],
      "inputSize": 280,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 2,
      "name": "AddToAskOrder",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "option",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "price",
          "type": "sint64",
          "offset": 24,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 3,
      "name": "RemoveAskOrder",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "option",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "price",
          "type": "sint64",
          "offset": 24,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 4,
      "name": "AddToBidOrder",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "option",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "amount",
          "type": "sint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "price",
          "type": "sint64",
          "offset": 24,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 5,
      "name": "RemoveBidOrder",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "option",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "price",
          "type": "sint64",
          "offset": 24,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 6,
      "name": "PublishResult",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "option",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 16,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 7,
      "name": "TryFinalizeEvent",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 8,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 8,
      "name": "Dispute",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 8,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 9,
      "name": "ResolveDispute",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "vote",
          "type": "sint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 16,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 10,
      "name": "UserClaimReward",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 8,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 11,
      "name": "GOForceClaimReward",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "pubkeys",
          "type": "array",
          "offset": 8,
          "byteLength": 512,
          "arrayLength": 16,
          "arrayItemType": "id",
          "arrayItemByteLength": 32
        }
      ],
      "outputFields": [],
      "inputSize": 520,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 12,
      "name": "TransferQUSD",
      "inputFields": [
        {
          "name": "receiver",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "amount",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "amount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 40,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 13,
      "name": "TransferShareManagementRights",
      "inputFields": [
        {
          "name": "asset",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "Asset"
        },
        {
          "name": "numberOfShares",
          "type": "sint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "newManagingContractIndex",
          "type": "uint32",
          "offset": 48,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "transferredNumberOfShares",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 52,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 14,
      "name": "CleanMemory",
      "inputFields": [],
      "outputFields": [],
      "inputSize": 0,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 15,
      "name": "TransferQTRYGOV",
      "inputFields": [
        {
          "name": "receiver",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "amount",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "amount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 40,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 20,
      "name": "UpdateFeeDiscountList",
      "inputFields": [
        {
          "name": "userId",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "newFeeRate",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "ops",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 48,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 100,
      "name": "ProposalVote",
      "inputFields": [
        {
          "name": "proposed",
          "type": "struct",
          "offset": 0,
          "byteLength": 72,
          "structRef": "QtryGOV"
        }
      ],
      "outputFields": [],
      "inputSize": 72,
      "outputSize": 0
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "BasicInfo",
      "inputFields": [],
      "outputFields": [
        {
          "name": "operationFee",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "shareholderFee",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "burnFee",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "nIssuedEvent",
          "type": "uint64",
          "offset": 24,
          "byteLength": 8
        },
        {
          "name": "shareholdersRevenue",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "operationRevenue",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "burnedAmount",
          "type": "uint64",
          "offset": 48,
          "byteLength": 8
        },
        {
          "name": "mFeePerDay",
          "type": "uint64",
          "offset": 56,
          "byteLength": 8
        },
        {
          "name": "antiSpamAmount",
          "type": "uint64",
          "offset": 64,
          "byteLength": 8
        },
        {
          "name": "depositAmountForDispute",
          "type": "uint64",
          "offset": 72,
          "byteLength": 8
        },
        {
          "name": "gameOperator",
          "type": "id",
          "offset": 80,
          "byteLength": 32
        }
      ],
      "inputSize": 0,
      "outputSize": 112
    },
    {
      "kind": "function",
      "inputType": 2,
      "name": "GetEventInfo",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "qei",
          "type": "struct",
          "offset": 0,
          "byteLength": 280,
          "structRef": "QtryEventInfo"
        },
        {
          "name": "resultByGO",
          "type": "sint32",
          "offset": 280,
          "byteLength": 4
        },
        {
          "name": "publishTickTime",
          "type": "uint32",
          "offset": 284,
          "byteLength": 4
        },
        {
          "name": "disputerInfo",
          "type": "struct",
          "offset": 288,
          "byteLength": 40,
          "structRef": "DepositInfo"
        },
        {
          "name": "computorsVote0",
          "type": "uint32",
          "offset": 328,
          "byteLength": 4
        },
        {
          "name": "computorsVote1",
          "type": "uint32",
          "offset": 332,
          "byteLength": 4
        }
      ],
      "inputSize": 8,
      "outputSize": 336
    },
    {
      "kind": "function",
      "inputType": 3,
      "name": "GetOrders",
      "inputFields": [
        {
          "name": "eventId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "option",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "isBid",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "offset",
          "type": "uint64",
          "offset": 24,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "orders",
          "type": "array",
          "offset": 0,
          "byteLength": 12288,
          "arrayLength": 256,
          "arrayItemStructRef": "QtryOrderWithPrice",
          "arrayItemByteLength": 48
        }
      ],
      "inputSize": 32,
      "outputSize": 12288
    },
    {
      "kind": "function",
      "inputType": 4,
      "name": "GetActiveEvent",
      "inputFields": [],
      "outputFields": [
        {
          "name": "recentActiveEvent",
          "type": "array",
          "offset": 0,
          "byteLength": 0,
          "arrayLength": 0,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 0
    },
    {
      "kind": "function",
      "inputType": 5,
      "name": "GetEventInfoBatch",
      "inputFields": [
        {
          "name": "eventIds",
          "type": "array",
          "offset": 0,
          "byteLength": 512,
          "arrayLength": 64,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "aqei",
          "type": "array",
          "offset": 0,
          "byteLength": 17920,
          "arrayLength": 64,
          "arrayItemStructRef": "QtryEventInfo",
          "arrayItemByteLength": 280
        }
      ],
      "inputSize": 512,
      "outputSize": 17920
    },
    {
      "kind": "function",
      "inputType": 6,
      "name": "GetUserPosition",
      "inputFields": [
        {
          "name": "uid",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "count",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "p",
          "type": "array",
          "offset": 8,
          "byteLength": 16384,
          "arrayLength": 1024,
          "arrayItemStructRef": "PositionInfo",
          "arrayItemByteLength": 16
        }
      ],
      "inputSize": 32,
      "outputSize": 16392
    },
    {
      "kind": "function",
      "inputType": 7,
      "name": "GetApprovedAmount",
      "inputFields": [
        {
          "name": "pk",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "amount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 8
    },
    {
      "kind": "function",
      "inputType": 8,
      "name": "GetTopProposals",
      "inputFields": [],
      "outputFields": [
        {
          "name": "top",
          "type": "array",
          "offset": 0,
          "byteLength": 320,
          "arrayLength": 4,
          "arrayItemStructRef": "ProposalInfo",
          "arrayItemByteLength": 80
        },
        {
          "name": "uniqueCount",
          "type": "sint32",
          "offset": 320,
          "byteLength": 4
        }
      ],
      "inputSize": 0,
      "outputSize": 324
    }
  ],
  "effectiveFromEpoch": 210,
  "effectiveToEpoch": null
}