{
"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
}