Source on GitHub

Escrow

Idx 27·Since e210·1 ABI version
BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXPZM
5Procedures
2Functions
3Structs
1ABI Version

Current ABI

e210Open Snapshot →

Procedures

5State-changing
procCreateDeal#1
in 448Bout 0B
input7 fields · 448B
nametypeoffsetbyteslayout
acceptorIdid032
offeredQUuint64328
offeredAssetsNumberuint64408
offeredAssetsAssetWithAmount[4]48192
requestedQUuint642408
requestedAssetsNumberuint642488
requestedAssetsAssetWithAmount[4]256192
procAcceptDeal#2
in 8Bout 0B
input1 field · 8B
nametypeoffsetbyteslayout
indexsint6408
procMakeDealPublic#3
in 8Bout 0B
input1 field · 8B
nametypeoffsetbyteslayout
indexsint6408
procCancelDeal#4
in 8Bout 0B
input1 field · 8B
nametypeoffsetbyteslayout
indexsint6408
procTransferShareManagementRights#5
in 52Bout 8B
input3 fields · 52B
nametypeoffsetbyteslayout
assetAsset040
amountsint64408
newContractIndexuint32484
output1 field · 8B
nametypeoffsetbyteslayout
transferredSharessint6408

Functions

2Read-only
funcGetDeals#1
in 48Bout 47656B
input3 fields · 48B
nametypeoffsetbyteslayout
ownerid032
proposedDealsOffsetsint64328
publicDealsOffsetsint64408
output6 fields · 47656B
nametypeoffsetbyteslayout
ownedDealsAmountuint6408
proposedDealsAmountuint6488
publicDealsAmountuint64168
ownedDealsDeal[8]243664
proposedDealsDeal[32]368814656
publicDealsDeal[64]1834429312
funcGetFreeAssetAmount#2
in 72Bout 8B
input2 fields · 72B
nametypeoffsetbyteslayout
ownerid032
assetAsset3240
output1 field · 8B
nametypeoffsetbyteslayout
freeAmountsint6408

Structs

3Shared types
structAssetWithAmount
48B3 fields
fields
nametypeoffsetbyteslayout
issuerid032
nameuint64328
amountuint64408
structAsset
40B2 fields
fields
nametypeoffsetbyteslayout
issuerid032
assetNameuint64328
structDeal
458B9 fields
fields
nametypeoffsetbyteslayout
indexsint6408
acceptorIdid832
offeredQUuint64408
offeredAssetsNumberuint64488
offeredAssetsAssetWithAmount[4]56192
requestedQUuint642488
requestedAssetsNumberuint642568
requestedAssetsAssetWithAmount[4]264192
creationEpochuint164562

Raw JSON

/v1/contracts/27
contracts/27.json
{
  "contractIndex": 27,
  "contractName": "Escrow",
  "contractAddress": "BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXPZM",
  "epoch": 210,
  "coreVersion": "v1.288.0",
  "structs": {
    "AssetWithAmount": {
      "name": "AssetWithAmount",
      "fields": [
        {
          "name": "issuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "name",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "byteLength": 48
    },
    "Asset": {
      "name": "Asset",
      "byteLength": 40,
      "fields": [
        {
          "name": "issuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "assetName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        }
      ]
    },
    "Deal": {
      "name": "Deal",
      "fields": [
        {
          "name": "index",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "acceptorId",
          "type": "id",
          "offset": 8,
          "byteLength": 32
        },
        {
          "name": "offeredQU",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "offeredAssetsNumber",
          "type": "uint64",
          "offset": 48,
          "byteLength": 8
        },
        {
          "name": "offeredAssets",
          "type": "array",
          "offset": 56,
          "byteLength": 192,
          "arrayLength": 4,
          "arrayItemStructRef": "AssetWithAmount",
          "arrayItemByteLength": 48
        },
        {
          "name": "requestedQU",
          "type": "uint64",
          "offset": 248,
          "byteLength": 8
        },
        {
          "name": "requestedAssetsNumber",
          "type": "uint64",
          "offset": 256,
          "byteLength": 8
        },
        {
          "name": "requestedAssets",
          "type": "array",
          "offset": 264,
          "byteLength": 192,
          "arrayLength": 4,
          "arrayItemStructRef": "AssetWithAmount",
          "arrayItemByteLength": 48
        },
        {
          "name": "creationEpoch",
          "type": "uint16",
          "offset": 456,
          "byteLength": 2
        }
      ],
      "byteLength": 458
    }
  },
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "CreateDeal",
      "inputFields": [
        {
          "name": "acceptorId",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "offeredQU",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "offeredAssetsNumber",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "offeredAssets",
          "type": "array",
          "offset": 48,
          "byteLength": 192,
          "arrayLength": 4,
          "arrayItemStructRef": "AssetWithAmount",
          "arrayItemByteLength": 48
        },
        {
          "name": "requestedQU",
          "type": "uint64",
          "offset": 240,
          "byteLength": 8
        },
        {
          "name": "requestedAssetsNumber",
          "type": "uint64",
          "offset": 248,
          "byteLength": 8
        },
        {
          "name": "requestedAssets",
          "type": "array",
          "offset": 256,
          "byteLength": 192,
          "arrayLength": 4,
          "arrayItemStructRef": "AssetWithAmount",
          "arrayItemByteLength": 48
        }
      ],
      "outputFields": [],
      "inputSize": 448,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 2,
      "name": "AcceptDeal",
      "inputFields": [
        {
          "name": "index",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 8,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 3,
      "name": "MakeDealPublic",
      "inputFields": [
        {
          "name": "index",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 8,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 4,
      "name": "CancelDeal",
      "inputFields": [
        {
          "name": "index",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [],
      "inputSize": 8,
      "outputSize": 0
    },
    {
      "kind": "procedure",
      "inputType": 5,
      "name": "TransferShareManagementRights",
      "inputFields": [
        {
          "name": "asset",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "Asset"
        },
        {
          "name": "amount",
          "type": "sint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "newContractIndex",
          "type": "uint32",
          "offset": 48,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "transferredShares",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 52,
      "outputSize": 8
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "GetDeals",
      "inputFields": [
        {
          "name": "owner",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "proposedDealsOffset",
          "type": "sint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "publicDealsOffset",
          "type": "sint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "ownedDealsAmount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "proposedDealsAmount",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "publicDealsAmount",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "ownedDeals",
          "type": "array",
          "offset": 24,
          "byteLength": 3664,
          "arrayLength": 8,
          "arrayItemStructRef": "Deal",
          "arrayItemByteLength": 458
        },
        {
          "name": "proposedDeals",
          "type": "array",
          "offset": 3688,
          "byteLength": 14656,
          "arrayLength": 32,
          "arrayItemStructRef": "Deal",
          "arrayItemByteLength": 458
        },
        {
          "name": "publicDeals",
          "type": "array",
          "offset": 18344,
          "byteLength": 29312,
          "arrayLength": 64,
          "arrayItemStructRef": "Deal",
          "arrayItemByteLength": 458
        }
      ],
      "inputSize": 48,
      "outputSize": 47656
    },
    {
      "kind": "function",
      "inputType": 2,
      "name": "GetFreeAssetAmount",
      "inputFields": [
        {
          "name": "owner",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "asset",
          "type": "struct",
          "offset": 32,
          "byteLength": 40,
          "structRef": "Asset"
        }
      ],
      "outputFields": [
        {
          "name": "freeAmount",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 72,
      "outputSize": 8
    }
  ],
  "effectiveFromEpoch": 210,
  "effectiveToEpoch": null
}