QUtil
Idx 04·Since e210·10 ABI versions
EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVWRF
Procedures
13procSendToManyV1#1
in 40Bout 4B
→input2 fields · 40B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| dst0 | id | 0 | 32 | |
| amt0 | sint64 | 32 | 8 |
←output1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | sint32 | 0 | 4 |
procBurnQubic#2
in 8Bout 8B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| amount | sint64 | 0 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| amount | sint64 | 0 | 8 |
procSendToManyBenchmark#3
in 16Bout 20B
→input2 fields · 16B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| dstCount | sint64 | 0 | 8 | |
| numTransfersEach | sint64 | 8 | 8 |
←output3 fields · 20B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| dstCount | sint64 | 0 | 8 | |
| returnCode | sint32 | 8 | 4 | |
| total | sint64 | 12 | 8 |
procCreatePoll#4
in 952Bout 8B
→input6 fields · 952B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_name | id | 0 | 32 | |
| poll_type | uint64 | 32 | 8 | |
| min_amount | uint64 | 40 | 8 | |
| github_link | uint8[256] | 48 | 256 | |
| allowed_assets | Asset[16] | 304 | 640 | |
| num_assets | uint64 | 944 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_id | uint64 | 0 | 8 |
procVote#5
in 56Bout 1B
→input4 fields · 56B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_id | uint64 | 0 | 8 | |
| address | id | 8 | 32 | |
| amount | uint64 | 40 | 8 | |
| chosen_option | uint64 | 48 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| success | uint8 | 0 | 1 |
procCancelPoll#6
in 8Bout 1B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_id | uint64 | 0 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| success | uint8 | 0 | 1 |
procBurnQubicForContract#8
in 4Bout 8B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| contractIndexBurnedFor | uint32 | 0 | 4 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| amount | sint64 | 0 | 8 |
procQueryPriceOracle#100
in 108Bout 8B
→input2 fields · 108B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| priceOracleQuery | OI::Price::OracleQuery | 0 | 104 | |
| timeoutMilliseconds | uint32 | 104 | 4 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| oracleQueryId | sint64 | 0 | 8 |
procSubscribePriceOracle#101
in 109Bout 4B
→input3 fields · 109B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| priceOracleQuery | OI::Price::OracleQuery | 0 | 104 | |
| subscriptionPeriodMilliseconds | uint32 | 104 | 4 | |
| notifyPreviousValue | uint8 | 108 | 1 |
←output1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| oracleSubscriptionId | sint32 | 0 | 4 |
procUnsubscribeOracle#102
in 4Bout 1B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| subscriptionId | sint32 | 0 | 4 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| success | uint8 | 0 | 1 |
Functions
9funcGetSendToManyV1Fee#1
in 0Bout 8B
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| fee | sint64 | 0 | 8 |
funcGetCurrentResult#3
in 8Bout 1032B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_id | uint64 | 0 | 8 |
←output3 fields · 1032B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| result | uint64[64] | 0 | 512 | |
| voter_count | uint64[64] | 512 | 512 | |
| is_active | uint64 | 1024 | 8 |
funcGetPollsByCreator#4
in 32Bout 520B
→input1 field · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| creator | id | 0 | 32 |
←output2 fields · 520B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_ids | uint64[64] | 0 | 512 | |
| count | uint64 | 512 | 8 |
funcGetCurrentPollId#5
in 0Bout 528B
←output3 fields · 528B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| current_poll_id | uint64 | 0 | 8 | |
| active_poll_ids | uint64[64] | 8 | 512 | |
| active_count | uint64 | 520 | 8 |
funcGetPollInfo#6
in 8Bout 1000B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_id | uint64 | 0 | 8 |
←output3 fields · 1000B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| found | uint64 | 0 | 8 | |
| poll_info | Poll | 8 | 736 | |
| poll_link | uint8[256] | 744 | 256 |
funcGetFees#7
in 0Bout 88B
←output11 fields · 88B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| smt1InvocationFee | sint64 | 0 | 8 | |
| pollCreationFee | sint64 | 8 | 8 | |
| pollVoteFee | sint64 | 16 | 8 | |
| distributeQuToShareholderFeePerShareholder | sint64 | 24 | 8 | |
| shareholderProposalFee | sint64 | 32 | 8 | |
| _futureFeePlaceholder0 | sint64 | 40 | 8 | |
| _futureFeePlaceholder1 | sint64 | 48 | 8 | |
| _futureFeePlaceholder2 | sint64 | 56 | 8 | |
| _futureFeePlaceholder3 | sint64 | 64 | 8 | |
| _futureFeePlaceholder4 | sint64 | 72 | 8 | |
| _futureFeePlaceholder5 | sint64 | 80 | 8 |
funcQueryFeeReserve#8
in 4Bout 8B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| contractIndex | uint32 | 0 | 4 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| reserveAmount | sint64 | 0 | 8 |
funcGetBalances16#9
in 512Bout 128B
→input1 field · 512B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| publicKeys | id[16] | 0 | 512 |
←output1 field · 128B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| balances | sint64[16] | 0 | 128 |
Structs
4structAsset
40B2 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| issuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 |
structOI::Price::OracleQuery
104B4 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| oracle | id | 0 | 32 | |
| timestamp | DateAndTime | 32 | 8 | |
| currency1 | id | 40 | 32 | |
| currency2 | id | 72 | 32 |
structPoll
736B7 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| poll_name | id | 0 | 32 | |
| poll_type | uint64 | 32 | 8 | |
| min_amount | uint64 | 40 | 8 | |
| is_active | uint64 | 48 | 8 | |
| creator | id | 56 | 32 | |
| allowed_assets | Asset[16] | 88 | 640 | |
| num_assets | uint64 | 728 | 8 |
structDateAndTime
8B1 field
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| value | uint64 | 0 | 8 |
Raw JSON
{ "contractIndex": 4, "contractName": "QUtil", "contractAddress": "EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVWRF", "epoch": 210, "coreVersion": "v1.288.0", "structs": { "Asset": { "name": "Asset", "byteLength": 40, "fields": [ { "name": "issuer", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "assetName", "type": "uint64", "offset": 32, "byteLength": 8 } ] }, "OI::Price::OracleQuery": { "name": "OI::Price::OracleQuery", "byteLength": 104, "fields": [ { "name": "oracle", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "timestamp", "type": "struct", "offset": 32, "byteLength": 8, "structRef": "DateAndTime" }, { "name": "currency1", "type": "id", "offset": 40, "byteLength": 32 }, { "name": "currency2", "type": "id", "offset": 72, "byteLength": 32 } ] }, "Poll": { "name": "Poll", "fields": [ { "name": "poll_name", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "poll_type", "type": "uint64", "offset": 32, "byteLength": 8 }, { "name": "min_amount", "type": "uint64", "offset": 40, "byteLength": 8 }, { "name": "is_active", "type": "uint64", "offset": 48, "byteLength": 8 }, { "name": "creator", "type": "id", "offset": 56, "byteLength": 32 }, { "name": "allowed_assets", "type": "array", "offset": 88, "byteLength": 640, "arrayLength": 16, "arrayItemStructRef": "Asset", "arrayItemByteLength": 40 }, { "name": "num_assets", "type": "uint64", "offset": 728, "byteLength": 8 } ], "byteLength": 736 }, "DateAndTime": { "name": "DateAndTime", "byteLength": 8, "fields": [ { "name": "value", "type": "uint64", "offset": 0, "byteLength": 8 } ] } }, "procedures": [ { "kind": "procedure", "inputType": 1, "name": "SendToManyV1", "inputFields": [ { "name": "dst0", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "amt0", "type": "sint64", "offset": 32, "byteLength": 8 } ], "outputFields": [ { "name": "returnCode", "type": "sint32", "offset": 0, "byteLength": 4 } ], "inputSize": 40, "outputSize": 4 }, { "kind": "procedure", "inputType": 2, "name": "BurnQubic", "inputFields": [ { "name": "amount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "amount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 8, "outputSize": 8 }, { "kind": "procedure", "inputType": 3, "name": "SendToManyBenchmark", "inputFields": [ { "name": "dstCount", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "numTransfersEach", "type": "sint64", "offset": 8, "byteLength": 8 } ], "outputFields": [ { "name": "dstCount", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "returnCode", "type": "sint32", "offset": 8, "byteLength": 4 }, { "name": "total", "type": "sint64", "offset": 12, "byteLength": 8 } ], "inputSize": 16, "outputSize": 20 }, { "kind": "procedure", "inputType": 4, "name": "CreatePoll", "inputFields": [ { "name": "poll_name", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "poll_type", "type": "uint64", "offset": 32, "byteLength": 8 }, { "name": "min_amount", "type": "uint64", "offset": 40, "byteLength": 8 }, { "name": "github_link", "type": "array", "offset": 48, "byteLength": 256, "arrayLength": 256, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "allowed_assets", "type": "array", "offset": 304, "byteLength": 640, "arrayLength": 16, "arrayItemStructRef": "Asset", "arrayItemByteLength": 40 }, { "name": "num_assets", "type": "uint64", "offset": 944, "byteLength": 8 } ], "outputFields": [ { "name": "poll_id", "type": "uint64", "offset": 0, "byteLength": 8 } ], "inputSize": 952, "outputSize": 8 }, { "kind": "procedure", "inputType": 5, "name": "Vote", "inputFields": [ { "name": "poll_id", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "address", "type": "id", "offset": 8, "byteLength": 32 }, { "name": "amount", "type": "uint64", "offset": 40, "byteLength": 8 }, { "name": "chosen_option", "type": "uint64", "offset": 48, "byteLength": 8 } ], "outputFields": [ { "name": "success", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 56, "outputSize": 1 }, { "kind": "procedure", "inputType": 6, "name": "CancelPoll", "inputFields": [ { "name": "poll_id", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "success", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 8, "outputSize": 1 }, { "kind": "procedure", "inputType": 7, "name": "DistributeQuToShareholders", "inputFields": [ { "name": "asset", "type": "struct", "offset": 0, "byteLength": 40, "structRef": "Asset" } ], "outputFields": [ { "name": "shareholders", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "totalShares", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "amountPerShare", "type": "sint64", "offset": 16, "byteLength": 8 }, { "name": "fees", "type": "sint64", "offset": 24, "byteLength": 8 } ], "inputSize": 40, "outputSize": 32 }, { "kind": "procedure", "inputType": 8, "name": "BurnQubicForContract", "inputFields": [ { "name": "contractIndexBurnedFor", "type": "uint32", "offset": 0, "byteLength": 4 } ], "outputFields": [ { "name": "amount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 4, "outputSize": 8 }, { "kind": "procedure", "inputType": 9, "name": "TransferSharesToManyV1", "inputFields": [ { "name": "issuer", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "assetName", "type": "uint64", "offset": 32, "byteLength": 8 }, { "name": "dst0", "type": "id", "offset": 40, "byteLength": 32 }, { "name": "amt0", "type": "sint64", "offset": 72, "byteLength": 8 } ], "outputFields": [ { "name": "returnCode", "type": "sint32", "offset": 0, "byteLength": 4 } ], "inputSize": 80, "outputSize": 4 }, { "kind": "procedure", "inputType": 10, "name": "TransferSharesManagementRights", "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": 100, "name": "QueryPriceOracle", "inputFields": [ { "name": "priceOracleQuery", "type": "struct", "offset": 0, "byteLength": 104, "structRef": "OI::Price::OracleQuery" }, { "name": "timeoutMilliseconds", "type": "uint32", "offset": 104, "byteLength": 4 } ], "outputFields": [ { "name": "oracleQueryId", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 108, "outputSize": 8 }, { "kind": "procedure", "inputType": 101, "name": "SubscribePriceOracle", "inputFields": [ { "name": "priceOracleQuery", "type": "struct", "offset": 0, "byteLength": 104, "structRef": "OI::Price::OracleQuery" }, { "name": "subscriptionPeriodMilliseconds", "type": "uint32", "offset": 104, "byteLength": 4 }, { "name": "notifyPreviousValue", "type": "uint8", "offset": 108, "byteLength": 1 } ], "outputFields": [ { "name": "oracleSubscriptionId", "type": "sint32", "offset": 0, "byteLength": 4 } ], "inputSize": 109, "outputSize": 4 }, { "kind": "procedure", "inputType": 102, "name": "UnsubscribeOracle", "inputFields": [ { "name": "subscriptionId", "type": "sint32", "offset": 0, "byteLength": 4 } ], "outputFields": [ { "name": "success", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 4, "outputSize": 1 } ], "functions": [ { "kind": "function", "inputType": 1, "name": "GetSendToManyV1Fee", "inputFields": [], "outputFields": [ { "name": "fee", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 0, "outputSize": 8 }, { "kind": "function", "inputType": 2, "name": "GetTotalNumberOfAssetShares", "inputFields": [ { "name": "issuer", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "assetName", "type": "uint64", "offset": 32, "byteLength": 8 } ], "outputFields": [ { "name": "value", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 40, "outputSize": 8 }, { "kind": "function", "inputType": 3, "name": "GetCurrentResult", "inputFields": [ { "name": "poll_id", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "result", "type": "array", "offset": 0, "byteLength": 512, "arrayLength": 64, "arrayItemType": "uint64", "arrayItemByteLength": 8 }, { "name": "voter_count", "type": "array", "offset": 512, "byteLength": 512, "arrayLength": 64, "arrayItemType": "uint64", "arrayItemByteLength": 8 }, { "name": "is_active", "type": "uint64", "offset": 1024, "byteLength": 8 } ], "inputSize": 8, "outputSize": 1032 }, { "kind": "function", "inputType": 4, "name": "GetPollsByCreator", "inputFields": [ { "name": "creator", "type": "id", "offset": 0, "byteLength": 32 } ], "outputFields": [ { "name": "poll_ids", "type": "array", "offset": 0, "byteLength": 512, "arrayLength": 64, "arrayItemType": "uint64", "arrayItemByteLength": 8 }, { "name": "count", "type": "uint64", "offset": 512, "byteLength": 8 } ], "inputSize": 32, "outputSize": 520 }, { "kind": "function", "inputType": 5, "name": "GetCurrentPollId", "inputFields": [], "outputFields": [ { "name": "current_poll_id", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "active_poll_ids", "type": "array", "offset": 8, "byteLength": 512, "arrayLength": 64, "arrayItemType": "uint64", "arrayItemByteLength": 8 }, { "name": "active_count", "type": "uint64", "offset": 520, "byteLength": 8 } ], "inputSize": 0, "outputSize": 528 }, { "kind": "function", "inputType": 6, "name": "GetPollInfo", "inputFields": [ { "name": "poll_id", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "found", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "poll_info", "type": "struct", "offset": 8, "byteLength": 736, "structRef": "Poll" }, { "name": "poll_link", "type": "array", "offset": 744, "byteLength": 256, "arrayLength": 256, "arrayItemType": "uint8", "arrayItemByteLength": 1 } ], "inputSize": 8, "outputSize": 1000 }, { "kind": "function", "inputType": 7, "name": "GetFees", "inputFields": [], "outputFields": [ { "name": "smt1InvocationFee", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "pollCreationFee", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "pollVoteFee", "type": "sint64", "offset": 16, "byteLength": 8 }, { "name": "distributeQuToShareholderFeePerShareholder", "type": "sint64", "offset": 24, "byteLength": 8 }, { "name": "shareholderProposalFee", "type": "sint64", "offset": 32, "byteLength": 8 }, { "name": "_futureFeePlaceholder0", "type": "sint64", "offset": 40, "byteLength": 8 }, { "name": "_futureFeePlaceholder1", "type": "sint64", "offset": 48, "byteLength": 8 }, { "name": "_futureFeePlaceholder2", "type": "sint64", "offset": 56, "byteLength": 8 }, { "name": "_futureFeePlaceholder3", "type": "sint64", "offset": 64, "byteLength": 8 }, { "name": "_futureFeePlaceholder4", "type": "sint64", "offset": 72, "byteLength": 8 }, { "name": "_futureFeePlaceholder5", "type": "sint64", "offset": 80, "byteLength": 8 } ], "inputSize": 0, "outputSize": 88 }, { "kind": "function", "inputType": 8, "name": "QueryFeeReserve", "inputFields": [ { "name": "contractIndex", "type": "uint32", "offset": 0, "byteLength": 4 } ], "outputFields": [ { "name": "reserveAmount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 4, "outputSize": 8 }, { "kind": "function", "inputType": 9, "name": "GetBalances16", "inputFields": [ { "name": "publicKeys", "type": "array", "offset": 0, "byteLength": 512, "arrayLength": 16, "arrayItemType": "id", "arrayItemByteLength": 32 } ], "outputFields": [ { "name": "balances", "type": "array", "offset": 0, "byteLength": 128, "arrayLength": 16, "arrayItemType": "sint64", "arrayItemByteLength": 8 } ], "inputSize": 512, "outputSize": 128 } ], "effectiveFromEpoch": 210, "effectiveToEpoch": null }