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