VottunBridge
Idx 25·Since e206·1 ABI version
ZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZUQI
Procedures
8proccreateOrder#1
in 105Bout 9B
→input4 fields · 105B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| qubicDestination | id | 0 | 32 | |
| amount | uint64 | 32 | 8 | |
| ethAddress | uint8[64] | 40 | 64 | |
| fromQubicToEthereum | uint8 | 104 | 1 |
←output2 fields · 9B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 | |
| orderId | uint64 | 1 | 8 |
proccompleteOrder#2
in 8Bout 1B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| orderId | uint64 | 0 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 |
procrefundOrder#3
in 8Bout 1B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| orderId | uint64 | 0 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 |
proctransferToContract#4
in 16Bout 1B
→input2 fields · 16B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| amount | uint64 | 0 | 8 | |
| orderId | uint64 | 8 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 |
procaddLiquidity#5
in 0Bout 17B
←output3 fields · 17B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 | |
| addedAmount | uint64 | 1 | 8 | |
| totalLocked | uint64 | 9 | 8 |
proccreateProposal#6
in 73Bout 9B
→input4 fields · 73B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalType | uint8 | 0 | 1 | |
| targetAddress | id | 1 | 32 | |
| oldAddress | id | 33 | 32 | |
| amount | uint64 | 65 | 8 |
←output2 fields · 9B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 | |
| proposalId | uint64 | 1 | 8 |
procapproveProposal#7
in 8Bout 2B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalId | uint64 | 0 | 8 |
←output2 fields · 2B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 | |
| executed | uint8 | 1 | 1 |
proccancelProposal#8
in 8Bout 1B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalId | uint64 | 0 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 |
Functions
7funcgetOrder#1
in 8Bout 246B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| orderId | uint64 | 0 | 8 |
←output3 fields · 246B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 | |
| order | OrderResponse | 1 | 213 | |
| message | uint8[32] | 214 | 32 |
funcgetTotalReceivedTokens#3
in 0Bout 8B
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| totalTokens | uint64 | 0 | 8 |
funcgetTotalLockedTokens#4
in 0Bout 8B
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| totalLockedTokens | uint64 | 0 | 8 |
funcgetOrderByDetails#5
in 73Bout 41B
→input3 fields · 73B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| ethAddress | uint8[64] | 0 | 64 | |
| amount | uint64 | 64 | 8 | |
| status | uint8 | 72 | 1 |
←output3 fields · 41B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 | |
| orderId | uint64 | 1 | 8 | |
| qubicDestination | id | 9 | 32 |
funcgetContractInfo#6
in 0Bout 3474B
←output14 fields · 3474B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| managers | id[16] | 0 | 512 | |
| nextOrderId | uint64 | 512 | 8 | |
| lockedTokens | uint64 | 520 | 8 | |
| totalReceivedTokens | uint64 | 528 | 8 | |
| earnedFees | uint64 | 536 | 8 | |
| tradeFeeBillionths | uint32 | 544 | 4 | |
| sourceChain | uint32 | 548 | 4 | |
| firstOrders | BridgeOrder[16] | 552 | 2384 | |
| totalOrdersFound | uint64 | 2936 | 8 | |
| emptySlots | uint64 | 2944 | 8 | |
| multisigAdmins | id[16] | 2952 | 512 | |
| numberOfAdmins | uint8 | 3464 | 1 | |
| requiredApprovals | uint8 | 3465 | 1 | |
| totalProposals | uint64 | 3466 | 8 |
funcgetAvailableFees#7
in 0Bout 24B
←output3 fields · 24B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| availableFees | uint64 | 0 | 8 | |
| totalEarnedFees | uint64 | 8 | 8 | |
| totalDistributedFees | uint64 | 16 | 8 |
funcgetProposal#8
in 8Bout 597B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalId | uint64 | 0 | 8 |
←output2 fields · 597B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint8 | 0 | 1 | |
| proposal | AdminProposal | 1 | 596 |
Structs
3structOrderResponse
213B8 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| originAccount | id | 0 | 32 | |
| destinationAccount | uint8[64] | 32 | 64 | |
| orderId | uint64 | 96 | 8 | |
| amount | uint64 | 104 | 8 | |
| memo | uint8[64] | 112 | 64 | |
| sourceChain | uint32 | 176 | 4 | |
| qubicDestination | id | 180 | 32 | |
| status | uint8 | 212 | 1 |
structAdminProposal
596B9 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| proposalId | uint64 | 0 | 8 | |
| proposalType | uint8 | 8 | 1 | |
| targetAddress | id | 9 | 32 | |
| oldAddress | id | 41 | 32 | |
| amount | uint64 | 73 | 8 | |
| approvals | id[16] | 81 | 512 | |
| approvalsCount | uint8 | 593 | 1 | |
| executed | uint8 | 594 | 1 | |
| active | uint8 | 595 | 1 |
structBridgeOrder
149B10 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| qubicSender | id | 0 | 32 | |
| qubicDestination | id | 32 | 32 | |
| ethAddress | uint8[64] | 64 | 64 | |
| orderId | uint64 | 128 | 8 | |
| amount | uint64 | 136 | 8 | |
| orderType | uint8 | 144 | 1 | |
| status | uint8 | 145 | 1 | |
| fromQubicToEthereum | uint8 | 146 | 1 | |
| tokensReceived | uint8 | 147 | 1 | |
| tokensLocked | uint8 | 148 | 1 |
Raw JSON
{ "contractIndex": 25, "contractName": "VottunBridge", "contractAddress": "ZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZUQI", "epoch": 206, "coreVersion": "v1.284.0", "structs": { "OrderResponse": { "name": "OrderResponse", "fields": [ { "name": "originAccount", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "destinationAccount", "type": "array", "offset": 32, "byteLength": 64, "arrayLength": 64, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "orderId", "type": "uint64", "offset": 96, "byteLength": 8 }, { "name": "amount", "type": "uint64", "offset": 104, "byteLength": 8 }, { "name": "memo", "type": "array", "offset": 112, "byteLength": 64, "arrayLength": 64, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "sourceChain", "type": "uint32", "offset": 176, "byteLength": 4 }, { "name": "qubicDestination", "type": "id", "offset": 180, "byteLength": 32 }, { "name": "status", "type": "uint8", "offset": 212, "byteLength": 1 } ], "byteLength": 213 }, "AdminProposal": { "name": "AdminProposal", "fields": [ { "name": "proposalId", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "proposalType", "type": "uint8", "offset": 8, "byteLength": 1 }, { "name": "targetAddress", "type": "id", "offset": 9, "byteLength": 32 }, { "name": "oldAddress", "type": "id", "offset": 41, "byteLength": 32 }, { "name": "amount", "type": "uint64", "offset": 73, "byteLength": 8 }, { "name": "approvals", "type": "array", "offset": 81, "byteLength": 512, "arrayLength": 16, "arrayItemType": "id", "arrayItemByteLength": 32 }, { "name": "approvalsCount", "type": "uint8", "offset": 593, "byteLength": 1 }, { "name": "executed", "type": "uint8", "offset": 594, "byteLength": 1 }, { "name": "active", "type": "uint8", "offset": 595, "byteLength": 1 } ], "byteLength": 596 }, "BridgeOrder": { "name": "BridgeOrder", "fields": [ { "name": "qubicSender", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "qubicDestination", "type": "id", "offset": 32, "byteLength": 32 }, { "name": "ethAddress", "type": "array", "offset": 64, "byteLength": 64, "arrayLength": 64, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "orderId", "type": "uint64", "offset": 128, "byteLength": 8 }, { "name": "amount", "type": "uint64", "offset": 136, "byteLength": 8 }, { "name": "orderType", "type": "uint8", "offset": 144, "byteLength": 1 }, { "name": "status", "type": "uint8", "offset": 145, "byteLength": 1 }, { "name": "fromQubicToEthereum", "type": "uint8", "offset": 146, "byteLength": 1 }, { "name": "tokensReceived", "type": "uint8", "offset": 147, "byteLength": 1 }, { "name": "tokensLocked", "type": "uint8", "offset": 148, "byteLength": 1 } ], "byteLength": 149 } }, "procedures": [ { "kind": "procedure", "inputType": 1, "name": "createOrder", "inputFields": [ { "name": "qubicDestination", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "amount", "type": "uint64", "offset": 32, "byteLength": 8 }, { "name": "ethAddress", "type": "array", "offset": 40, "byteLength": 64, "arrayLength": 64, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "fromQubicToEthereum", "type": "uint8", "offset": 104, "byteLength": 1 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "orderId", "type": "uint64", "offset": 1, "byteLength": 8 } ], "inputSize": 105, "outputSize": 9 }, { "kind": "procedure", "inputType": 2, "name": "completeOrder", "inputFields": [ { "name": "orderId", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 8, "outputSize": 1 }, { "kind": "procedure", "inputType": 3, "name": "refundOrder", "inputFields": [ { "name": "orderId", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 8, "outputSize": 1 }, { "kind": "procedure", "inputType": 4, "name": "transferToContract", "inputFields": [ { "name": "amount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "orderId", "type": "uint64", "offset": 8, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 16, "outputSize": 1 }, { "kind": "procedure", "inputType": 5, "name": "addLiquidity", "inputFields": [], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "addedAmount", "type": "uint64", "offset": 1, "byteLength": 8 }, { "name": "totalLocked", "type": "uint64", "offset": 9, "byteLength": 8 } ], "inputSize": 0, "outputSize": 17 }, { "kind": "procedure", "inputType": 6, "name": "createProposal", "inputFields": [ { "name": "proposalType", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "targetAddress", "type": "id", "offset": 1, "byteLength": 32 }, { "name": "oldAddress", "type": "id", "offset": 33, "byteLength": 32 }, { "name": "amount", "type": "uint64", "offset": 65, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "proposalId", "type": "uint64", "offset": 1, "byteLength": 8 } ], "inputSize": 73, "outputSize": 9 }, { "kind": "procedure", "inputType": 7, "name": "approveProposal", "inputFields": [ { "name": "proposalId", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "executed", "type": "uint8", "offset": 1, "byteLength": 1 } ], "inputSize": 8, "outputSize": 2 }, { "kind": "procedure", "inputType": 8, "name": "cancelProposal", "inputFields": [ { "name": "proposalId", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 } ], "inputSize": 8, "outputSize": 1 } ], "functions": [ { "kind": "function", "inputType": 1, "name": "getOrder", "inputFields": [ { "name": "orderId", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "order", "type": "struct", "offset": 1, "byteLength": 213, "structRef": "OrderResponse" }, { "name": "message", "type": "array", "offset": 214, "byteLength": 32, "arrayLength": 32, "arrayItemType": "uint8", "arrayItemByteLength": 1 } ], "inputSize": 8, "outputSize": 246 }, { "kind": "function", "inputType": 3, "name": "getTotalReceivedTokens", "inputFields": [], "outputFields": [ { "name": "totalTokens", "type": "uint64", "offset": 0, "byteLength": 8 } ], "inputSize": 0, "outputSize": 8 }, { "kind": "function", "inputType": 4, "name": "getTotalLockedTokens", "inputFields": [], "outputFields": [ { "name": "totalLockedTokens", "type": "uint64", "offset": 0, "byteLength": 8 } ], "inputSize": 0, "outputSize": 8 }, { "kind": "function", "inputType": 5, "name": "getOrderByDetails", "inputFields": [ { "name": "ethAddress", "type": "array", "offset": 0, "byteLength": 64, "arrayLength": 64, "arrayItemType": "uint8", "arrayItemByteLength": 1 }, { "name": "amount", "type": "uint64", "offset": 64, "byteLength": 8 }, { "name": "status", "type": "uint8", "offset": 72, "byteLength": 1 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "orderId", "type": "uint64", "offset": 1, "byteLength": 8 }, { "name": "qubicDestination", "type": "id", "offset": 9, "byteLength": 32 } ], "inputSize": 73, "outputSize": 41 }, { "kind": "function", "inputType": 6, "name": "getContractInfo", "inputFields": [], "outputFields": [ { "name": "managers", "type": "array", "offset": 0, "byteLength": 512, "arrayLength": 16, "arrayItemType": "id", "arrayItemByteLength": 32 }, { "name": "nextOrderId", "type": "uint64", "offset": 512, "byteLength": 8 }, { "name": "lockedTokens", "type": "uint64", "offset": 520, "byteLength": 8 }, { "name": "totalReceivedTokens", "type": "uint64", "offset": 528, "byteLength": 8 }, { "name": "earnedFees", "type": "uint64", "offset": 536, "byteLength": 8 }, { "name": "tradeFeeBillionths", "type": "uint32", "offset": 544, "byteLength": 4 }, { "name": "sourceChain", "type": "uint32", "offset": 548, "byteLength": 4 }, { "name": "firstOrders", "type": "array", "offset": 552, "byteLength": 2384, "arrayLength": 16, "arrayItemStructRef": "BridgeOrder", "arrayItemByteLength": 149 }, { "name": "totalOrdersFound", "type": "uint64", "offset": 2936, "byteLength": 8 }, { "name": "emptySlots", "type": "uint64", "offset": 2944, "byteLength": 8 }, { "name": "multisigAdmins", "type": "array", "offset": 2952, "byteLength": 512, "arrayLength": 16, "arrayItemType": "id", "arrayItemByteLength": 32 }, { "name": "numberOfAdmins", "type": "uint8", "offset": 3464, "byteLength": 1 }, { "name": "requiredApprovals", "type": "uint8", "offset": 3465, "byteLength": 1 }, { "name": "totalProposals", "type": "uint64", "offset": 3466, "byteLength": 8 } ], "inputSize": 0, "outputSize": 3474 }, { "kind": "function", "inputType": 7, "name": "getAvailableFees", "inputFields": [], "outputFields": [ { "name": "availableFees", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "totalEarnedFees", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "totalDistributedFees", "type": "uint64", "offset": 16, "byteLength": 8 } ], "inputSize": 0, "outputSize": 24 }, { "kind": "function", "inputType": 8, "name": "getProposal", "inputFields": [ { "name": "proposalId", "type": "uint64", "offset": 0, "byteLength": 8 } ], "outputFields": [ { "name": "status", "type": "uint8", "offset": 0, "byteLength": 1 }, { "name": "proposal", "type": "struct", "offset": 1, "byteLength": 596, "structRef": "AdminProposal" } ], "inputSize": 8, "outputSize": 597 } ], "effectiveFromEpoch": 206, "effectiveToEpoch": null }