Source on GitHub

QReservePool

Idx 21·Since e201·2 ABI versions
VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAILLJ
4Procedures
2Functions
0Structs
2ABI Versions

Current ABI

e201Open Snapshot →

Procedures

4State-changing
procWithdrawReserve#1
in 8Bout 9B
input1 field · 8B
nametypeoffsetbyteslayout
revenueuint6408
output2 fields · 9B
nametypeoffsetbyteslayout
allocatedRevenueuint6408
returnCodeuint881
procAddAllowedSC#2
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
scIndexuint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procRemoveAllowedSC#3
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
scIndexuint6408
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801
procSendReserve#4
in 16Bout 1B
input2 fields · 16B
nametypeoffsetbyteslayout
scIndexuint6408
amountuint6488
output1 field · 1B
nametypeoffsetbyteslayout
returnCodeuint801

Functions

2Read-only
funcGetAvailableReserve#1
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
availableReserveuint6408
funcGetAllowedSC#2
in 0Bout 4096B
output1 field · 4096B
nametypeoffsetbyteslayout
allowedSCid[128]04096

Raw JSON

/v1/contracts/21
contracts/21.json
{
  "contractIndex": 21,
  "contractName": "QReservePool",
  "contractAddress": "VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAILLJ",
  "epoch": 201,
  "coreVersion": "v1.279.0",
  "structs": {},
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "WithdrawReserve",
      "inputFields": [
        {
          "name": "revenue",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "allocatedRevenue",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 8,
          "byteLength": 1
        }
      ],
      "inputSize": 8,
      "outputSize": 9
    },
    {
      "kind": "procedure",
      "inputType": 2,
      "name": "AddAllowedSC",
      "inputFields": [
        {
          "name": "scIndex",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 8,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 3,
      "name": "RemoveAllowedSC",
      "inputFields": [
        {
          "name": "scIndex",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 8,
      "outputSize": 1
    },
    {
      "kind": "procedure",
      "inputType": 4,
      "name": "SendReserve",
      "inputFields": [
        {
          "name": "scIndex",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "inputSize": 16,
      "outputSize": 1
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "GetAvailableReserve",
      "inputFields": [],
      "outputFields": [
        {
          "name": "availableReserve",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 8
    },
    {
      "kind": "function",
      "inputType": 2,
      "name": "GetAllowedSC",
      "inputFields": [],
      "outputFields": [
        {
          "name": "allowedSC",
          "type": "array",
          "offset": 0,
          "byteLength": 4096,
          "arrayLength": 128,
          "arrayItemType": "id",
          "arrayItemByteLength": 32
        }
      ],
      "inputSize": 0,
      "outputSize": 4096
    }
  ],
  "effectiveFromEpoch": 201,
  "effectiveToEpoch": null
}