QBond
Idx 17·Since e204·2 ABI versions
RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADKAH
Procedures
8procStake#1
in 8Bout 0B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| quMillions | sint64 | 0 | 8 |
procTransferMBondOwnershipAndPossession#2
in 48Bout 8B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| newOwnerAndPossessor | id | 0 | 32 | |
| epoch | sint64 | 32 | 8 | |
| numberOfMBonds | sint64 | 40 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| transferredMBonds | sint64 | 0 | 8 |
procAddAskOrder#3
in 24Bout 8B
→input3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 | |
| price | sint64 | 8 | 8 | |
| numberOfMBonds | sint64 | 16 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| addedMBondsAmount | sint64 | 0 | 8 |
procRemoveAskOrder#4
in 24Bout 8B
→input3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 | |
| price | sint64 | 8 | 8 | |
| numberOfMBonds | sint64 | 16 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| removedMBondsAmount | sint64 | 0 | 8 |
procAddBidOrder#5
in 24Bout 8B
→input3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 | |
| price | sint64 | 8 | 8 | |
| numberOfMBonds | sint64 | 16 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| addedMBondsAmount | sint64 | 0 | 8 |
procRemoveBidOrder#6
in 24Bout 8B
→input3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 | |
| price | sint64 | 8 | 8 | |
| numberOfMBonds | sint64 | 16 | 8 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| removedMBondsAmount | sint64 | 0 | 8 |
procBurnQU#7
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 |
procUpdateCFA#8
in 33Bout 1B
→input2 fields · 33B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| user | id | 0 | 32 | |
| operation | uint8 | 32 | 1 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| result | uint8 | 0 | 1 |
Functions
8funcGetFees#1
in 0Bout 24B
←output3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| stakeFeePercent | uint64 | 0 | 8 | |
| tradeFeePercent | uint64 | 8 | 8 | |
| transferFee | uint64 | 16 | 8 |
funcGetEarnedFees#2
in 0Bout 16B
←output2 fields · 16B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| stakeFees | uint64 | 0 | 8 | |
| tradeFees | uint64 | 8 | 8 |
funcGetInfoPerEpoch#3
in 8Bout 24B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 |
←output3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| stakersAmount | uint64 | 0 | 8 | |
| totalStaked | sint64 | 8 | 8 | |
| apy | sint64 | 16 | 8 |
funcGetOrders#4
in 24Bout 24576B
→input3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 | |
| askOrdersOffset | sint64 | 8 | 8 | |
| bidOrdersOffset | sint64 | 16 | 8 |
←output2 fields · 24576B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| askOrders | Order[256] | 0 | 12288 | |
| bidOrders | Order[256] | 12288 | 12288 |
funcGetUserOrders#5
in 48Bout 24576B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| owner | id | 0 | 32 | |
| askOrdersOffset | sint64 | 32 | 8 | |
| bidOrdersOffset | sint64 | 40 | 8 |
←output2 fields · 24576B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| askOrders | Order[256] | 0 | 12288 | |
| bidOrders | Order[256] | 12288 | 12288 |
funcGetMBondsTable#6
in 0Bout 16384B
←output1 field · 16384B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| info | TableEntry[512] | 0 | 16384 |
funcGetUserMBonds#7
in 32Bout 6152B
→input1 field · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| owner | id | 0 | 32 |
←output2 fields · 6152B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| totalMBondsAmount | sint64 | 0 | 8 | |
| mbonds | MBondEntity[256] | 8 | 6144 |
funcGetCFA#8
in 0Bout 32768B
←output1 field · 32768B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| commissionFreeAddresses | id[1024] | 0 | 32768 |
Structs
3structOrder
48B3 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| owner | id | 0 | 32 | |
| epoch | sint64 | 32 | 8 | |
| numberOfMBonds | sint64 | 40 | 8 |
structTableEntry
32B4 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 | |
| totalStakedQBond | sint64 | 8 | 8 | |
| totalStakedQEarn | sint64 | 16 | 8 | |
| apy | uint64 | 24 | 8 |
structMBondEntity
24B3 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | sint64 | 0 | 8 | |
| amount | sint64 | 8 | 8 | |
| apy | uint64 | 16 | 8 |
Raw JSON
{ "contractIndex": 17, "contractName": "QBond", "contractAddress": "RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADKAH", "epoch": 204, "coreVersion": "v1.282.0", "structs": { "Order": { "name": "Order", "fields": [ { "name": "owner", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "epoch", "type": "sint64", "offset": 32, "byteLength": 8 }, { "name": "numberOfMBonds", "type": "sint64", "offset": 40, "byteLength": 8 } ], "byteLength": 48 }, "TableEntry": { "name": "TableEntry", "fields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "totalStakedQBond", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "totalStakedQEarn", "type": "sint64", "offset": 16, "byteLength": 8 }, { "name": "apy", "type": "uint64", "offset": 24, "byteLength": 8 } ], "byteLength": 32 }, "MBondEntity": { "name": "MBondEntity", "fields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "amount", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "apy", "type": "uint64", "offset": 16, "byteLength": 8 } ], "byteLength": 24 } }, "procedures": [ { "kind": "procedure", "inputType": 1, "name": "Stake", "inputFields": [ { "name": "quMillions", "type": "sint64", "offset": 0, "byteLength": 8 } ], "outputFields": [], "inputSize": 8, "outputSize": 0 }, { "kind": "procedure", "inputType": 2, "name": "TransferMBondOwnershipAndPossession", "inputFields": [ { "name": "newOwnerAndPossessor", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "epoch", "type": "sint64", "offset": 32, "byteLength": 8 }, { "name": "numberOfMBonds", "type": "sint64", "offset": 40, "byteLength": 8 } ], "outputFields": [ { "name": "transferredMBonds", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 48, "outputSize": 8 }, { "kind": "procedure", "inputType": 3, "name": "AddAskOrder", "inputFields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "price", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "numberOfMBonds", "type": "sint64", "offset": 16, "byteLength": 8 } ], "outputFields": [ { "name": "addedMBondsAmount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 24, "outputSize": 8 }, { "kind": "procedure", "inputType": 4, "name": "RemoveAskOrder", "inputFields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "price", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "numberOfMBonds", "type": "sint64", "offset": 16, "byteLength": 8 } ], "outputFields": [ { "name": "removedMBondsAmount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 24, "outputSize": 8 }, { "kind": "procedure", "inputType": 5, "name": "AddBidOrder", "inputFields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "price", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "numberOfMBonds", "type": "sint64", "offset": 16, "byteLength": 8 } ], "outputFields": [ { "name": "addedMBondsAmount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 24, "outputSize": 8 }, { "kind": "procedure", "inputType": 6, "name": "RemoveBidOrder", "inputFields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "price", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "numberOfMBonds", "type": "sint64", "offset": 16, "byteLength": 8 } ], "outputFields": [ { "name": "removedMBondsAmount", "type": "sint64", "offset": 0, "byteLength": 8 } ], "inputSize": 24, "outputSize": 8 }, { "kind": "procedure", "inputType": 7, "name": "BurnQU", "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": 8, "name": "UpdateCFA", "inputFields": [ { "name": "user", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "operation", "type": "uint8", "offset": 32, "byteLength": 1 } ], "outputFields": [ { "name": "result", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 33, "outputSize": 1 } ], "functions": [ { "kind": "function", "inputType": 1, "name": "GetFees", "inputFields": [], "outputFields": [ { "name": "stakeFeePercent", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "tradeFeePercent", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "transferFee", "type": "uint64", "offset": 16, "byteLength": 8 } ], "inputSize": 0, "outputSize": 24 }, { "kind": "function", "inputType": 2, "name": "GetEarnedFees", "inputFields": [], "outputFields": [ { "name": "stakeFees", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "tradeFees", "type": "uint64", "offset": 8, "byteLength": 8 } ], "inputSize": 0, "outputSize": 16 }, { "kind": "function", "inputType": 3, "name": "GetInfoPerEpoch", "inputFields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "stakersAmount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "totalStaked", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "apy", "type": "sint64", "offset": 16, "byteLength": 8 } ], "inputSize": 8, "outputSize": 24 }, { "kind": "function", "inputType": 4, "name": "GetOrders", "inputFields": [ { "name": "epoch", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "askOrdersOffset", "type": "sint64", "offset": 8, "byteLength": 8 }, { "name": "bidOrdersOffset", "type": "sint64", "offset": 16, "byteLength": 8 } ], "outputFields": [ { "name": "askOrders", "type": "array", "offset": 0, "byteLength": 12288, "arrayLength": 256, "arrayItemStructRef": "Order", "arrayItemByteLength": 48 }, { "name": "bidOrders", "type": "array", "offset": 12288, "byteLength": 12288, "arrayLength": 256, "arrayItemStructRef": "Order", "arrayItemByteLength": 48 } ], "inputSize": 24, "outputSize": 24576 }, { "kind": "function", "inputType": 5, "name": "GetUserOrders", "inputFields": [ { "name": "owner", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "askOrdersOffset", "type": "sint64", "offset": 32, "byteLength": 8 }, { "name": "bidOrdersOffset", "type": "sint64", "offset": 40, "byteLength": 8 } ], "outputFields": [ { "name": "askOrders", "type": "array", "offset": 0, "byteLength": 12288, "arrayLength": 256, "arrayItemStructRef": "Order", "arrayItemByteLength": 48 }, { "name": "bidOrders", "type": "array", "offset": 12288, "byteLength": 12288, "arrayLength": 256, "arrayItemStructRef": "Order", "arrayItemByteLength": 48 } ], "inputSize": 48, "outputSize": 24576 }, { "kind": "function", "inputType": 6, "name": "GetMBondsTable", "inputFields": [], "outputFields": [ { "name": "info", "type": "array", "offset": 0, "byteLength": 16384, "arrayLength": 512, "arrayItemStructRef": "TableEntry", "arrayItemByteLength": 32 } ], "inputSize": 0, "outputSize": 16384 }, { "kind": "function", "inputType": 7, "name": "GetUserMBonds", "inputFields": [ { "name": "owner", "type": "id", "offset": 0, "byteLength": 32 } ], "outputFields": [ { "name": "totalMBondsAmount", "type": "sint64", "offset": 0, "byteLength": 8 }, { "name": "mbonds", "type": "array", "offset": 8, "byteLength": 6144, "arrayLength": 256, "arrayItemStructRef": "MBondEntity", "arrayItemByteLength": 24 } ], "inputSize": 32, "outputSize": 6152 }, { "kind": "function", "inputType": 8, "name": "GetCFA", "inputFields": [], "outputFields": [ { "name": "commissionFreeAddresses", "type": "array", "offset": 0, "byteLength": 32768, "arrayLength": 1024, "arrayItemType": "id", "arrayItemByteLength": 32 } ], "inputSize": 0, "outputSize": 32768 } ], "effectiveFromEpoch": 204, "effectiveToEpoch": null }