Escrow
Idx 27·Since e210·1 ABI version
BBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXPZM
Procedures
5procCreateDeal#1
in 448Bout 0B
→input7 fields · 448B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| acceptorId | id | 0 | 32 | |
| offeredQU | uint64 | 32 | 8 | |
| offeredAssetsNumber | uint64 | 40 | 8 | |
| offeredAssets | AssetWithAmount[4] | 48 | 192 | |
| requestedQU | uint64 | 240 | 8 | |
| requestedAssetsNumber | uint64 | 248 | 8 | |
| requestedAssets | AssetWithAmount[4] | 256 | 192 |
procAcceptDeal#2
in 8Bout 0B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| index | sint64 | 0 | 8 |
procMakeDealPublic#3
in 8Bout 0B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| index | sint64 | 0 | 8 |
procCancelDeal#4
in 8Bout 0B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| index | sint64 | 0 | 8 |
Functions
2funcGetDeals#1
in 48Bout 47656B
→input3 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| owner | id | 0 | 32 | |
| proposedDealsOffset | sint64 | 32 | 8 | |
| publicDealsOffset | sint64 | 40 | 8 |
←output6 fields · 47656B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| ownedDealsAmount | uint64 | 0 | 8 | |
| proposedDealsAmount | uint64 | 8 | 8 | |
| publicDealsAmount | uint64 | 16 | 8 | |
| ownedDeals | Deal[8] | 24 | 3664 | |
| proposedDeals | Deal[32] | 3688 | 14656 | |
| publicDeals | Deal[64] | 18344 | 29312 |
funcGetFreeAssetAmount#2
in 72Bout 8B
→input2 fields · 72B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| owner | id | 0 | 32 | |
| asset | Asset | 32 | 40 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| freeAmount | sint64 | 0 | 8 |
Structs
3structAssetWithAmount
48B3 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| issuer | id | 0 | 32 | |
| name | uint64 | 32 | 8 | |
| amount | uint64 | 40 | 8 |
structAsset
40B2 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| issuer | id | 0 | 32 | |
| assetName | uint64 | 32 | 8 |
structDeal
458B9 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| index | sint64 | 0 | 8 | |
| acceptorId | id | 8 | 32 | |
| offeredQU | uint64 | 40 | 8 | |
| offeredAssetsNumber | uint64 | 48 | 8 | |
| offeredAssets | AssetWithAmount[4] | 56 | 192 | |
| requestedQU | uint64 | 248 | 8 | |
| requestedAssetsNumber | uint64 | 256 | 8 | |
| requestedAssets | AssetWithAmount[4] | 264 | 192 | |
| creationEpoch | uint16 | 456 | 2 |
Raw 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 }