Source on GitHub

qRWA

Idx 20·Since e212·3 ABI versions
UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHQEE
6Procedures
14Functions
4Structs
3ABI Versions

Current ABI

e212Open Snapshot →

Procedures

6State-changing
procDonateToTreasury#3
in 8Bout 8B
input1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
output1 field · 8B
nametypeoffsetbyteslayout
statusuint6408
procVoteGovParams#4
in 184Bout 8B
input1 field · 184B
nametypeoffsetbyteslayout
proposalQRWAGovParams0184
output1 field · 8B
nametypeoffsetbyteslayout
statusuint6408
procDepositGeneralAsset#7
in 48Bout 8B
input2 fields · 48B
nametypeoffsetbyteslayout
assetAsset040
amountuint64408
output1 field · 8B
nametypeoffsetbyteslayout
statusuint6408
procRevokeAssetManagementRights#8
in 48Bout 16B
input2 fields · 48B
nametypeoffsetbyteslayout
assetAsset040
numberOfSharessint64408
output2 fields · 16B
nametypeoffsetbyteslayout
transferredNumberOfSharessint6408
statusuint6488
procSetPoolARevenueAddress#9
in 32Bout 8B
input1 field · 32B
nametypeoffsetbyteslayout
newAddressid032
output1 field · 8B
nametypeoffsetbyteslayout
statusuint6408
procSetPoolDRevenueAddress#10
in 32Bout 8B
input1 field · 32B
nametypeoffsetbyteslayout
newAddressid032
output1 field · 8B
nametypeoffsetbyteslayout
statusuint6408

Functions

14Read-only
funcGetGovParams#1
in 0Bout 184B
output1 field · 184B
nametypeoffsetbyteslayout
paramsQRWAGovParams0184
funcGetGovPoll#2
in 8Bout 216B
input1 field · 8B
nametypeoffsetbyteslayout
proposalIduint6408
output2 fields · 216B
nametypeoffsetbyteslayout
proposalQRWAGovProposal0208
statusuint642088
funcGetTreasuryBalance#4
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
balanceuint6408
funcGetDividendBalances#5
in 0Bout 96B
output12 fields · 96B
nametypeoffsetbyteslayout
revenuePoolAuint6408
revenuePoolBuint6488
dedicatedRevenuePooluint64168
poolAQmineDividenduint64248
poolAQrwaDividenduint64328
poolBQmineDividenduint64408
poolBQrwaDividenduint64488
poolCQmineDividenduint64568
poolCQrwaDividenduint64648
poolDRevenuePooluint64728
poolDQmineDividenduint64808
poolDQrwaDividenduint64888
funcGetTotalDistributed#6
in 0Bout 40B
output5 fields · 40B
nametypeoffsetbyteslayout
totalPoolADistributeduint6408
totalPoolBDistributeduint6488
totalPoolCDistributeduint64168
totalPoolDDistributeduint64248
payoutTotalQmineBeginuint64328
funcGetActiveGovPollIds#8
in 0Bout 520B
output2 fields · 520B
nametypeoffsetbyteslayout
countuint6408
idsuint64[64]8512
funcGetGeneralAssetBalance#9
in 40Bout 16B
input1 field · 40B
nametypeoffsetbyteslayout
assetAsset040
output2 fields · 16B
nametypeoffsetbyteslayout
balanceuint6408
statusuint6488
funcGetGeneralAssets#10
in 0Bout 49160B
output3 fields · 49160B
nametypeoffsetbyteslayout
countuint6408
assetsAsset[1024]840960
balancesuint64[1024]409688192
funcGetPayoutsQmine#11
in 2Bout 32776B
input1 field · 2B
nametypeoffsetbyteslayout
pageuint1602
output5 fields · 32776B
nametypeoffsetbyteslayout
payoutsQRWAPayoutEntry[512]032768
nextIdxuint16327682
returnedCountuint16327702
pageuint16327722
totalPagesuint16327742
funcGetContractAddresses#12
in 0Bout 160B
output5 fields · 160B
nametypeoffsetbyteslayout
dedicatedRevenueAddressid032
poolARevenueAddressid3232
poolDRevenueAddressid6432
fundraisingAddressid9632
exchangeAddressid12832
funcGetPayoutsQrwa#13
in 2Bout 32776B
input1 field · 2B
nametypeoffsetbyteslayout
pageuint1602
output5 fields · 32776B
nametypeoffsetbyteslayout
payoutsQRWAPayoutEntry[512]032768
nextIdxuint16327682
returnedCountuint16327702
pageuint16327722
totalPagesuint16327742
funcGetPayoutsDedicated#14
in 2Bout 32776B
input1 field · 2B
nametypeoffsetbyteslayout
pageuint1602
output5 fields · 32776B
nametypeoffsetbyteslayout
payoutsQRWAPayoutEntry[512]032768
nextIdxuint16327682
returnedCountuint16327702
pageuint16327722
totalPagesuint16327742
funcGetScDividendTracking#15
in 0Bout 40968B
output3 fields · 40968B
nametypeoffsetbyteslayout
countuint6408
scContractIdsid[1024]832768
cumulativeDividendsuint64[1024]327768192
funcGetPayoutsPoolD#16
in 2Bout 32776B
input1 field · 2B
nametypeoffsetbyteslayout
pageuint1602
output5 fields · 32776B
nametypeoffsetbyteslayout
payoutsQRWAPayoutEntry[512]032768
nextIdxuint16327682
returnedCountuint16327702
pageuint16327722
totalPagesuint16327742

Structs

4Shared types
structQRWAGovParams
184B8 fields
fields
nametypeoffsetbyteslayout
mAdminAddressid032
electricityAddressid3232
maintenanceAddressid6432
reinvestmentAddressid9632
qmineDevAddressid12832
electricityPercentuint641608
maintenancePercentuint641688
reinvestmentPercentuint641768
structAsset
40B2 fields
fields
nametypeoffsetbyteslayout
issuerid032
assetNameuint64328
structQRWAGovProposal
208B4 fields
fields
nametypeoffsetbyteslayout
proposalIduint6408
statusuint6488
scoreuint64168
paramsQRWAGovParams24184
structQRWAPayoutEntry
64B8 fields
fields
nametypeoffsetbyteslayout
recipientid032
amountuint64328
qmineHoldinguint64408
qrwaHoldinguint64488
tickuint32564
epochuint16602
payoutTypeuint8621
_pad0uint8631

Raw JSON

/v1/contracts/20
contracts/20.json
{
  "contractIndex": 20,
  "contractName": "qRWA",
  "contractAddress": "UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHQEE",
  "epoch": 212,
  "coreVersion": "v1.290.0",
  "structs": {
    "QRWAGovParams": {
      "name": "QRWAGovParams",
      "fields": [
        {
          "name": "mAdminAddress",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "electricityAddress",
          "type": "id",
          "offset": 32,
          "byteLength": 32
        },
        {
          "name": "maintenanceAddress",
          "type": "id",
          "offset": 64,
          "byteLength": 32
        },
        {
          "name": "reinvestmentAddress",
          "type": "id",
          "offset": 96,
          "byteLength": 32
        },
        {
          "name": "qmineDevAddress",
          "type": "id",
          "offset": 128,
          "byteLength": 32
        },
        {
          "name": "electricityPercent",
          "type": "uint64",
          "offset": 160,
          "byteLength": 8
        },
        {
          "name": "maintenancePercent",
          "type": "uint64",
          "offset": 168,
          "byteLength": 8
        },
        {
          "name": "reinvestmentPercent",
          "type": "uint64",
          "offset": 176,
          "byteLength": 8
        }
      ],
      "byteLength": 184
    },
    "Asset": {
      "name": "Asset",
      "byteLength": 40,
      "fields": [
        {
          "name": "issuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "assetName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        }
      ]
    },
    "QRWAGovProposal": {
      "name": "QRWAGovProposal",
      "fields": [
        {
          "name": "proposalId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "status",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "score",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "params",
          "type": "struct",
          "offset": 24,
          "byteLength": 184,
          "structRef": "QRWAGovParams"
        }
      ],
      "byteLength": 208
    },
    "QRWAPayoutEntry": {
      "name": "QRWAPayoutEntry",
      "fields": [
        {
          "name": "recipient",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "qmineHolding",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "qrwaHolding",
          "type": "uint64",
          "offset": 48,
          "byteLength": 8
        },
        {
          "name": "tick",
          "type": "uint32",
          "offset": 56,
          "byteLength": 4
        },
        {
          "name": "epoch",
          "type": "uint16",
          "offset": 60,
          "byteLength": 2
        },
        {
          "name": "payoutType",
          "type": "uint8",
          "offset": 62,
          "byteLength": 1
        },
        {
          "name": "_pad0",
          "type": "uint8",
          "offset": 63,
          "byteLength": 1
        }
      ],
      "byteLength": 64
    }
  },
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 3,
      "name": "DonateToTreasury",
      "inputFields": [
        {
          "name": "amount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 8,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 4,
      "name": "VoteGovParams",
      "inputFields": [
        {
          "name": "proposal",
          "type": "struct",
          "offset": 0,
          "byteLength": 184,
          "structRef": "QRWAGovParams"
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 184,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 7,
      "name": "DepositGeneralAsset",
      "inputFields": [
        {
          "name": "asset",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "Asset"
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 48,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 8,
      "name": "RevokeAssetManagementRights",
      "inputFields": [
        {
          "name": "asset",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "Asset"
        },
        {
          "name": "numberOfShares",
          "type": "sint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "transferredNumberOfShares",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "status",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "inputSize": 48,
      "outputSize": 16
    },
    {
      "kind": "procedure",
      "inputType": 9,
      "name": "SetPoolARevenueAddress",
      "inputFields": [
        {
          "name": "newAddress",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 8
    },
    {
      "kind": "procedure",
      "inputType": 10,
      "name": "SetPoolDRevenueAddress",
      "inputFields": [
        {
          "name": "newAddress",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "status",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 8
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "GetGovParams",
      "inputFields": [],
      "outputFields": [
        {
          "name": "params",
          "type": "struct",
          "offset": 0,
          "byteLength": 184,
          "structRef": "QRWAGovParams"
        }
      ],
      "inputSize": 0,
      "outputSize": 184
    },
    {
      "kind": "function",
      "inputType": 2,
      "name": "GetGovPoll",
      "inputFields": [
        {
          "name": "proposalId",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "proposal",
          "type": "struct",
          "offset": 0,
          "byteLength": 208,
          "structRef": "QRWAGovProposal"
        },
        {
          "name": "status",
          "type": "uint64",
          "offset": 208,
          "byteLength": 8
        }
      ],
      "inputSize": 8,
      "outputSize": 216
    },
    {
      "kind": "function",
      "inputType": 4,
      "name": "GetTreasuryBalance",
      "inputFields": [],
      "outputFields": [
        {
          "name": "balance",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 8
    },
    {
      "kind": "function",
      "inputType": 5,
      "name": "GetDividendBalances",
      "inputFields": [],
      "outputFields": [
        {
          "name": "revenuePoolA",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "revenuePoolB",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "dedicatedRevenuePool",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "poolAQmineDividend",
          "type": "uint64",
          "offset": 24,
          "byteLength": 8
        },
        {
          "name": "poolAQrwaDividend",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "poolBQmineDividend",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "poolBQrwaDividend",
          "type": "uint64",
          "offset": 48,
          "byteLength": 8
        },
        {
          "name": "poolCQmineDividend",
          "type": "uint64",
          "offset": 56,
          "byteLength": 8
        },
        {
          "name": "poolCQrwaDividend",
          "type": "uint64",
          "offset": 64,
          "byteLength": 8
        },
        {
          "name": "poolDRevenuePool",
          "type": "uint64",
          "offset": 72,
          "byteLength": 8
        },
        {
          "name": "poolDQmineDividend",
          "type": "uint64",
          "offset": 80,
          "byteLength": 8
        },
        {
          "name": "poolDQrwaDividend",
          "type": "uint64",
          "offset": 88,
          "byteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 96
    },
    {
      "kind": "function",
      "inputType": 6,
      "name": "GetTotalDistributed",
      "inputFields": [],
      "outputFields": [
        {
          "name": "totalPoolADistributed",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "totalPoolBDistributed",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "totalPoolCDistributed",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "totalPoolDDistributed",
          "type": "uint64",
          "offset": 24,
          "byteLength": 8
        },
        {
          "name": "payoutTotalQmineBegin",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 40
    },
    {
      "kind": "function",
      "inputType": 8,
      "name": "GetActiveGovPollIds",
      "inputFields": [],
      "outputFields": [
        {
          "name": "count",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "ids",
          "type": "array",
          "offset": 8,
          "byteLength": 512,
          "arrayLength": 64,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 520
    },
    {
      "kind": "function",
      "inputType": 9,
      "name": "GetGeneralAssetBalance",
      "inputFields": [
        {
          "name": "asset",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "Asset"
        }
      ],
      "outputFields": [
        {
          "name": "balance",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "status",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "inputSize": 40,
      "outputSize": 16
    },
    {
      "kind": "function",
      "inputType": 10,
      "name": "GetGeneralAssets",
      "inputFields": [],
      "outputFields": [
        {
          "name": "count",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "assets",
          "type": "array",
          "offset": 8,
          "byteLength": 40960,
          "arrayLength": 1024,
          "arrayItemStructRef": "Asset",
          "arrayItemByteLength": 40
        },
        {
          "name": "balances",
          "type": "array",
          "offset": 40968,
          "byteLength": 8192,
          "arrayLength": 1024,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 49160
    },
    {
      "kind": "function",
      "inputType": 11,
      "name": "GetPayoutsQmine",
      "inputFields": [
        {
          "name": "page",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "payouts",
          "type": "array",
          "offset": 0,
          "byteLength": 32768,
          "arrayLength": 512,
          "arrayItemStructRef": "QRWAPayoutEntry",
          "arrayItemByteLength": 64
        },
        {
          "name": "nextIdx",
          "type": "uint16",
          "offset": 32768,
          "byteLength": 2
        },
        {
          "name": "returnedCount",
          "type": "uint16",
          "offset": 32770,
          "byteLength": 2
        },
        {
          "name": "page",
          "type": "uint16",
          "offset": 32772,
          "byteLength": 2
        },
        {
          "name": "totalPages",
          "type": "uint16",
          "offset": 32774,
          "byteLength": 2
        }
      ],
      "inputSize": 2,
      "outputSize": 32776
    },
    {
      "kind": "function",
      "inputType": 12,
      "name": "GetContractAddresses",
      "inputFields": [],
      "outputFields": [
        {
          "name": "dedicatedRevenueAddress",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "poolARevenueAddress",
          "type": "id",
          "offset": 32,
          "byteLength": 32
        },
        {
          "name": "poolDRevenueAddress",
          "type": "id",
          "offset": 64,
          "byteLength": 32
        },
        {
          "name": "fundraisingAddress",
          "type": "id",
          "offset": 96,
          "byteLength": 32
        },
        {
          "name": "exchangeAddress",
          "type": "id",
          "offset": 128,
          "byteLength": 32
        }
      ],
      "inputSize": 0,
      "outputSize": 160
    },
    {
      "kind": "function",
      "inputType": 13,
      "name": "GetPayoutsQrwa",
      "inputFields": [
        {
          "name": "page",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "payouts",
          "type": "array",
          "offset": 0,
          "byteLength": 32768,
          "arrayLength": 512,
          "arrayItemStructRef": "QRWAPayoutEntry",
          "arrayItemByteLength": 64
        },
        {
          "name": "nextIdx",
          "type": "uint16",
          "offset": 32768,
          "byteLength": 2
        },
        {
          "name": "returnedCount",
          "type": "uint16",
          "offset": 32770,
          "byteLength": 2
        },
        {
          "name": "page",
          "type": "uint16",
          "offset": 32772,
          "byteLength": 2
        },
        {
          "name": "totalPages",
          "type": "uint16",
          "offset": 32774,
          "byteLength": 2
        }
      ],
      "inputSize": 2,
      "outputSize": 32776
    },
    {
      "kind": "function",
      "inputType": 14,
      "name": "GetPayoutsDedicated",
      "inputFields": [
        {
          "name": "page",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "payouts",
          "type": "array",
          "offset": 0,
          "byteLength": 32768,
          "arrayLength": 512,
          "arrayItemStructRef": "QRWAPayoutEntry",
          "arrayItemByteLength": 64
        },
        {
          "name": "nextIdx",
          "type": "uint16",
          "offset": 32768,
          "byteLength": 2
        },
        {
          "name": "returnedCount",
          "type": "uint16",
          "offset": 32770,
          "byteLength": 2
        },
        {
          "name": "page",
          "type": "uint16",
          "offset": 32772,
          "byteLength": 2
        },
        {
          "name": "totalPages",
          "type": "uint16",
          "offset": 32774,
          "byteLength": 2
        }
      ],
      "inputSize": 2,
      "outputSize": 32776
    },
    {
      "kind": "function",
      "inputType": 15,
      "name": "GetScDividendTracking",
      "inputFields": [],
      "outputFields": [
        {
          "name": "count",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "scContractIds",
          "type": "array",
          "offset": 8,
          "byteLength": 32768,
          "arrayLength": 1024,
          "arrayItemType": "id",
          "arrayItemByteLength": 32
        },
        {
          "name": "cumulativeDividends",
          "type": "array",
          "offset": 32776,
          "byteLength": 8192,
          "arrayLength": 1024,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 40968
    },
    {
      "kind": "function",
      "inputType": 16,
      "name": "GetPayoutsPoolD",
      "inputFields": [
        {
          "name": "page",
          "type": "uint16",
          "offset": 0,
          "byteLength": 2
        }
      ],
      "outputFields": [
        {
          "name": "payouts",
          "type": "array",
          "offset": 0,
          "byteLength": 32768,
          "arrayLength": 512,
          "arrayItemStructRef": "QRWAPayoutEntry",
          "arrayItemByteLength": 64
        },
        {
          "name": "nextIdx",
          "type": "uint16",
          "offset": 32768,
          "byteLength": 2
        },
        {
          "name": "returnedCount",
          "type": "uint16",
          "offset": 32770,
          "byteLength": 2
        },
        {
          "name": "page",
          "type": "uint16",
          "offset": 32772,
          "byteLength": 2
        },
        {
          "name": "totalPages",
          "type": "uint16",
          "offset": 32774,
          "byteLength": 2
        }
      ],
      "inputSize": 2,
      "outputSize": 32776
    }
  ],
  "effectiveFromEpoch": 212,
  "effectiveToEpoch": null
}