Source on GitHub

VottunBridge

Idx 25·Since e206·1 ABI version
ZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZUQI
8Procedures
7Functions
3Structs
1ABI Version

Current ABI

e206Open Snapshot →

Procedures

8State-changing
proccreateOrder#1
in 105Bout 9B
input4 fields · 105B
nametypeoffsetbyteslayout
qubicDestinationid032
amountuint64328
ethAddressuint8[64]4064
fromQubicToEthereumuint81041
output2 fields · 9B
nametypeoffsetbyteslayout
statusuint801
orderIduint6418
proccompleteOrder#2
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
orderIduint6408
output1 field · 1B
nametypeoffsetbyteslayout
statusuint801
procrefundOrder#3
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
orderIduint6408
output1 field · 1B
nametypeoffsetbyteslayout
statusuint801
proctransferToContract#4
in 16Bout 1B
input2 fields · 16B
nametypeoffsetbyteslayout
amountuint6408
orderIduint6488
output1 field · 1B
nametypeoffsetbyteslayout
statusuint801
procaddLiquidity#5
in 0Bout 17B
output3 fields · 17B
nametypeoffsetbyteslayout
statusuint801
addedAmountuint6418
totalLockeduint6498
proccreateProposal#6
in 73Bout 9B
input4 fields · 73B
nametypeoffsetbyteslayout
proposalTypeuint801
targetAddressid132
oldAddressid3332
amountuint64658
output2 fields · 9B
nametypeoffsetbyteslayout
statusuint801
proposalIduint6418
procapproveProposal#7
in 8Bout 2B
input1 field · 8B
nametypeoffsetbyteslayout
proposalIduint6408
output2 fields · 2B
nametypeoffsetbyteslayout
statusuint801
executeduint811
proccancelProposal#8
in 8Bout 1B
input1 field · 8B
nametypeoffsetbyteslayout
proposalIduint6408
output1 field · 1B
nametypeoffsetbyteslayout
statusuint801

Functions

7Read-only
funcgetOrder#1
in 8Bout 246B
input1 field · 8B
nametypeoffsetbyteslayout
orderIduint6408
output3 fields · 246B
nametypeoffsetbyteslayout
statusuint801
orderOrderResponse1213
messageuint8[32]21432
funcgetTotalReceivedTokens#3
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
totalTokensuint6408
funcgetTotalLockedTokens#4
in 0Bout 8B
output1 field · 8B
nametypeoffsetbyteslayout
totalLockedTokensuint6408
funcgetOrderByDetails#5
in 73Bout 41B
input3 fields · 73B
nametypeoffsetbyteslayout
ethAddressuint8[64]064
amountuint64648
statusuint8721
output3 fields · 41B
nametypeoffsetbyteslayout
statusuint801
orderIduint6418
qubicDestinationid932
funcgetContractInfo#6
in 0Bout 3474B
output14 fields · 3474B
nametypeoffsetbyteslayout
managersid[16]0512
nextOrderIduint645128
lockedTokensuint645208
totalReceivedTokensuint645288
earnedFeesuint645368
tradeFeeBillionthsuint325444
sourceChainuint325484
firstOrdersBridgeOrder[16]5522384
totalOrdersFounduint6429368
emptySlotsuint6429448
multisigAdminsid[16]2952512
numberOfAdminsuint834641
requiredApprovalsuint834651
totalProposalsuint6434668
funcgetAvailableFees#7
in 0Bout 24B
output3 fields · 24B
nametypeoffsetbyteslayout
availableFeesuint6408
totalEarnedFeesuint6488
totalDistributedFeesuint64168
funcgetProposal#8
in 8Bout 597B
input1 field · 8B
nametypeoffsetbyteslayout
proposalIduint6408
output2 fields · 597B
nametypeoffsetbyteslayout
statusuint801
proposalAdminProposal1596

Structs

3Shared types
structOrderResponse
213B8 fields
fields
nametypeoffsetbyteslayout
originAccountid032
destinationAccountuint8[64]3264
orderIduint64968
amountuint641048
memouint8[64]11264
sourceChainuint321764
qubicDestinationid18032
statusuint82121
structAdminProposal
596B9 fields
fields
nametypeoffsetbyteslayout
proposalIduint6408
proposalTypeuint881
targetAddressid932
oldAddressid4132
amountuint64738
approvalsid[16]81512
approvalsCountuint85931
executeduint85941
activeuint85951
structBridgeOrder
149B10 fields
fields
nametypeoffsetbyteslayout
qubicSenderid032
qubicDestinationid3232
ethAddressuint8[64]6464
orderIduint641288
amountuint641368
orderTypeuint81441
statusuint81451
fromQubicToEthereumuint81461
tokensReceiveduint81471
tokensLockeduint81481

Raw JSON

/v1/contracts/25
contracts/25.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
}