{
"contractIndex": 11,
"contractName": "MsVault",
"contractAddress": "LAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKPTJ",
"epoch": 181,
"coreVersion": "v1.262.0",
"structs": {
"Asset": {
"name": "Asset",
"byteLength": 40,
"fields": [
{
"name": "issuer",
"type": "id",
"offset": 0,
"byteLength": 32
},
{
"name": "assetName",
"type": "uint64",
"offset": 32,
"byteLength": 8
}
]
},
"AssetBalance": {
"name": "AssetBalance",
"fields": [
{
"name": "asset",
"type": "struct",
"offset": 0,
"byteLength": 40,
"structRef": "Asset"
},
{
"name": "balance",
"type": "uint64",
"offset": 40,
"byteLength": 8
}
],
"byteLength": 48
},
"MsVaultFeeVote": {
"name": "MsVaultFeeVote",
"fields": [
{
"name": "registeringFee",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "releaseFee",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "releaseResetFee",
"type": "uint64",
"offset": 16,
"byteLength": 8
},
{
"name": "holdingFee",
"type": "uint64",
"offset": 24,
"byteLength": 8
},
{
"name": "depositFee",
"type": "uint64",
"offset": 32,
"byteLength": 8
},
{
"name": "burnFee",
"type": "uint64",
"offset": 40,
"byteLength": 8
}
],
"byteLength": 48
}
},
"procedures": [
{
"kind": "procedure",
"inputType": 1,
"name": "registerVault",
"inputFields": [
{
"name": "vaultName",
"type": "id",
"offset": 0,
"byteLength": 32
},
{
"name": "owners",
"type": "array",
"offset": 32,
"byteLength": 512,
"arrayLength": 16,
"arrayItemType": "id",
"arrayItemByteLength": 32
},
{
"name": "requiredApprovals",
"type": "uint64",
"offset": 544,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 552,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 2,
"name": "deposit",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 8,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 3,
"name": "releaseTo",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "amount",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "destination",
"type": "id",
"offset": 16,
"byteLength": 32
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 48,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 4,
"name": "resetRelease",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 8,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 13,
"name": "voteFeeChange",
"inputFields": [
{
"name": "newRegisteringFee",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "newReleaseFee",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "newReleaseResetFee",
"type": "uint64",
"offset": 16,
"byteLength": 8
},
{
"name": "newHoldingFee",
"type": "uint64",
"offset": 24,
"byteLength": 8
},
{
"name": "newDepositFee",
"type": "uint64",
"offset": 32,
"byteLength": 8
},
{
"name": "burnFee",
"type": "uint64",
"offset": 40,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 48,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 19,
"name": "depositAsset",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "asset",
"type": "struct",
"offset": 8,
"byteLength": 40,
"structRef": "Asset"
},
{
"name": "amount",
"type": "uint64",
"offset": 48,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 56,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 20,
"name": "releaseAssetTo",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "asset",
"type": "struct",
"offset": 8,
"byteLength": 40,
"structRef": "Asset"
},
{
"name": "amount",
"type": "uint64",
"offset": 48,
"byteLength": 8
},
{
"name": "destination",
"type": "id",
"offset": 56,
"byteLength": 32
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 88,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 21,
"name": "resetAssetRelease",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 8,
"outputSize": 8
},
{
"kind": "procedure",
"inputType": 25,
"name": "revokeAssetManagementRights",
"inputFields": [
{
"name": "asset",
"type": "struct",
"offset": 0,
"byteLength": 40,
"structRef": "Asset"
},
{
"name": "numberOfShares",
"type": "sint64",
"offset": 40,
"byteLength": 8
}
],
"outputFields": [
{
"name": "transferredNumberOfShares",
"type": "sint64",
"offset": 0,
"byteLength": 8
},
{
"name": "status",
"type": "uint64",
"offset": 8,
"byteLength": 8
}
],
"inputSize": 48,
"outputSize": 16
}
],
"functions": [
{
"kind": "function",
"inputType": 5,
"name": "getVaults",
"inputFields": [
{
"name": "publicKey",
"type": "id",
"offset": 0,
"byteLength": 32
}
],
"outputFields": [
{
"name": "numberOfVaults",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "vaultIds",
"type": "array",
"offset": 8,
"byteLength": 64,
"arrayLength": 8,
"arrayItemType": "uint64",
"arrayItemByteLength": 8
},
{
"name": "vaultNames",
"type": "array",
"offset": 72,
"byteLength": 256,
"arrayLength": 8,
"arrayItemType": "id",
"arrayItemByteLength": 32
}
],
"inputSize": 32,
"outputSize": 328
},
{
"kind": "function",
"inputType": 6,
"name": "getReleaseStatus",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "amounts",
"type": "array",
"offset": 8,
"byteLength": 128,
"arrayLength": 16,
"arrayItemType": "uint64",
"arrayItemByteLength": 8
},
{
"name": "destinations",
"type": "array",
"offset": 136,
"byteLength": 512,
"arrayLength": 16,
"arrayItemType": "id",
"arrayItemByteLength": 32
}
],
"inputSize": 8,
"outputSize": 648
},
{
"kind": "function",
"inputType": 7,
"name": "getBalanceOf",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "balance",
"type": "sint64",
"offset": 8,
"byteLength": 8
}
],
"inputSize": 8,
"outputSize": 16
},
{
"kind": "function",
"inputType": 8,
"name": "getVaultName",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "vaultName",
"type": "id",
"offset": 8,
"byteLength": 32
}
],
"inputSize": 8,
"outputSize": 40
},
{
"kind": "function",
"inputType": 9,
"name": "getRevenueInfo",
"inputFields": [],
"outputFields": [
{
"name": "numberOfActiveVaults",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "totalRevenue",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "totalDistributedToShareholders",
"type": "uint64",
"offset": 16,
"byteLength": 8
},
{
"name": "burnedAmount",
"type": "uint64",
"offset": 24,
"byteLength": 8
}
],
"inputSize": 0,
"outputSize": 32
},
{
"kind": "function",
"inputType": 10,
"name": "getFees",
"inputFields": [],
"outputFields": [
{
"name": "registeringFee",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "releaseFee",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "releaseResetFee",
"type": "uint64",
"offset": 16,
"byteLength": 8
},
{
"name": "holdingFee",
"type": "uint64",
"offset": 24,
"byteLength": 8
},
{
"name": "depositFee",
"type": "uint64",
"offset": 32,
"byteLength": 8
},
{
"name": "burnFee",
"type": "uint64",
"offset": 40,
"byteLength": 8
}
],
"inputSize": 0,
"outputSize": 48
},
{
"kind": "function",
"inputType": 11,
"name": "getVaultOwners",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "numberOfOwners",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "owners",
"type": "array",
"offset": 16,
"byteLength": 512,
"arrayLength": 16,
"arrayItemType": "id",
"arrayItemByteLength": 32
},
{
"name": "requiredApprovals",
"type": "uint64",
"offset": 528,
"byteLength": 8
}
],
"inputSize": 8,
"outputSize": 536
},
{
"kind": "function",
"inputType": 12,
"name": "isShareHolder",
"inputFields": [
{
"name": "candidate",
"type": "id",
"offset": 0,
"byteLength": 32
}
],
"outputFields": [
{
"name": "result",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 32,
"outputSize": 8
},
{
"kind": "function",
"inputType": 14,
"name": "getFeeVotes",
"inputFields": [],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "numberOfFeeVotes",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "feeVotes",
"type": "array",
"offset": 16,
"byteLength": 3072,
"arrayLength": 64,
"arrayItemStructRef": "MsVaultFeeVote",
"arrayItemByteLength": 48
}
],
"inputSize": 0,
"outputSize": 3088
},
{
"kind": "function",
"inputType": 15,
"name": "getFeeVotesOwner",
"inputFields": [],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "numberOfFeeVotes",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "feeVotesOwner",
"type": "array",
"offset": 16,
"byteLength": 2048,
"arrayLength": 64,
"arrayItemType": "id",
"arrayItemByteLength": 32
}
],
"inputSize": 0,
"outputSize": 2064
},
{
"kind": "function",
"inputType": 16,
"name": "getFeeVotesScore",
"inputFields": [],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "numberOfFeeVotes",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "feeVotesScore",
"type": "array",
"offset": 16,
"byteLength": 512,
"arrayLength": 64,
"arrayItemType": "uint64",
"arrayItemByteLength": 8
}
],
"inputSize": 0,
"outputSize": 528
},
{
"kind": "function",
"inputType": 17,
"name": "getUniqueFeeVotes",
"inputFields": [],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "numberOfUniqueFeeVotes",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "uniqueFeeVotes",
"type": "array",
"offset": 16,
"byteLength": 3072,
"arrayLength": 64,
"arrayItemStructRef": "MsVaultFeeVote",
"arrayItemByteLength": 48
}
],
"inputSize": 0,
"outputSize": 3088
},
{
"kind": "function",
"inputType": 18,
"name": "getUniqueFeeVotesRanking",
"inputFields": [],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "numberOfUniqueFeeVotes",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "uniqueFeeVotesRanking",
"type": "array",
"offset": 16,
"byteLength": 512,
"arrayLength": 64,
"arrayItemType": "uint64",
"arrayItemByteLength": 8
}
],
"inputSize": 0,
"outputSize": 528
},
{
"kind": "function",
"inputType": 22,
"name": "getVaultAssetBalances",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "numberOfAssetTypes",
"type": "uint64",
"offset": 8,
"byteLength": 8
},
{
"name": "assetBalances",
"type": "array",
"offset": 16,
"byteLength": 384,
"arrayLength": 8,
"arrayItemStructRef": "AssetBalance",
"arrayItemByteLength": 48
}
],
"inputSize": 8,
"outputSize": 400
},
{
"kind": "function",
"inputType": 23,
"name": "getAssetReleaseStatus",
"inputFields": [
{
"name": "vaultId",
"type": "uint64",
"offset": 0,
"byteLength": 8
}
],
"outputFields": [
{
"name": "status",
"type": "uint64",
"offset": 0,
"byteLength": 8
},
{
"name": "assets",
"type": "array",
"offset": 8,
"byteLength": 640,
"arrayLength": 16,
"arrayItemStructRef": "Asset",
"arrayItemByteLength": 40
},
{
"name": "amounts",
"type": "array",
"offset": 648,
"byteLength": 128,
"arrayLength": 16,
"arrayItemType": "uint64",
"arrayItemByteLength": 8
},
{
"name": "destinations",
"type": "array",
"offset": 776,
"byteLength": 512,
"arrayLength": 16,
"arrayItemType": "id",
"arrayItemByteLength": 32
}
],
"inputSize": 8,
"outputSize": 1288
},
{
"kind": "function",
"inputType": 24,
"name": "getManagedAssetBalance",
"inputFields": [
{
"name": "asset",
"type": "struct",
"offset": 0,
"byteLength": 40,
"structRef": "Asset"
},
{
"name": "owner",
"type": "id",
"offset": 40,
"byteLength": 32
}
],
"outputFields": [
{
"name": "balance",
"type": "sint64",
"offset": 0,
"byteLength": 8
}
],
"inputSize": 72,
"outputSize": 8
}
],
"effectiveFromEpoch": 181,
"effectiveToEpoch": null
}