UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

823 lines (822 loc) 20.6 kB
/** * @see https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/MultiVaultEverscaleEVMEventAlien.abi.json */ export const TvmEvmEventAlienAbi = { 'ABI version': 2, data: [ { components: [ { components: [ { name: 'eventTransactionLt', type: 'uint64', }, { name: 'eventTimestamp', type: 'uint32', }, { name: 'eventData', type: 'cell', }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address', }, { name: 'staking', type: 'address', }, ], key: 1, name: 'eventInitData', type: 'tuple', }, ], events: [ { inputs: [ { name: 'relay', type: 'uint256', }, { name: 'signature', type: 'bytes', }, ], name: 'Confirm', outputs: [], }, { inputs: [ { name: 'relay', type: 'uint256', }, ], name: 'Reject', outputs: [], }, { inputs: [], name: 'Closed', outputs: [], }, { inputs: [], name: 'Confirmed', outputs: [], }, { inputs: [ { name: 'reason', type: 'uint32', }, ], name: 'Rejected', outputs: [], }, ], fields: [ { name: '_pubkey', type: 'uint256', }, { name: '_constructorFlag', type: 'bool', }, { name: '_status', type: 'uint8', }, { name: 'votes', type: 'map(uint256,uint8)', }, { name: 'initializer', type: 'address', }, { name: 'meta', type: 'cell', }, { name: 'requiredVotes', type: 'uint32', }, { name: 'confirms', type: 'uint16', }, { name: 'rejects', type: 'uint16', }, { name: 'relay_round', type: 'address', }, { name: 'round_number', type: 'uint32', }, { name: 'createdAt', type: 'uint32', }, { components: [ { components: [ { name: 'eventTransactionLt', type: 'uint64', }, { name: 'eventTimestamp', type: 'uint32', }, { name: 'eventData', type: 'cell', }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address', }, { name: 'staking', type: 'address', }, ], name: 'eventInitData', type: 'tuple', }, { name: 'signatures', type: 'map(uint256,bytes)', }, { name: 'nonce', type: 'uint32', }, { name: 'proxy', type: 'address', }, { name: 'token', type: 'address', }, { name: 'remainingGasTo', type: 'address', }, { name: 'amount', type: 'uint128', }, { name: 'recipient', type: 'uint160', }, { name: 'sender', type: 'address', }, { name: 'initial_balance', type: 'uint128', }, { name: 'callback_recipient', type: 'uint160', }, { name: 'callback_payload', type: 'bytes', }, { name: 'callback_strict', type: 'bool', }, { name: 'base_chainId', type: 'uint256', }, { name: 'base_token', type: 'uint160', }, { name: 'expectedToken', type: 'address', }, ], functions: [ { inputs: [ { name: '_initializer', type: 'address', }, { name: '_meta', type: 'cell', }, ], name: 'constructor', outputs: [], }, { inputs: [ { name: 'base_chainId_', type: 'uint256', }, { name: 'base_token_', type: 'uint160', }, { name: 'name', type: 'string', }, { name: 'symbol', type: 'string', }, { name: 'decimals', type: 'uint8', }, ], name: 'receiveTokenMeta', outputs: [], }, { inputs: [ { name: 'token_', type: 'address', }, ], name: 'receiveAlienTokenRoot', outputs: [], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getDecodedData', outputs: [ { name: 'proxy_', type: 'address', }, { name: 'token_', type: 'address', }, { name: 'remainingGasTo_', type: 'address', }, { name: 'amount_', type: 'uint128', }, { name: 'recipient_', type: 'uint160', }, { components: [ { name: 'recipient', type: 'uint160', }, { name: 'payload', type: 'bytes', }, { name: 'strict', type: 'bool', }, ], name: 'callback', type: 'tuple', }, { name: 'base_chainId_', type: 'uint256', }, { name: 'base_token_', type: 'uint160', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getEventInitData', outputs: [ { components: [ { components: [ { name: 'eventTransactionLt', type: 'uint64', }, { name: 'eventTimestamp', type: 'uint32', }, { name: 'eventData', type: 'cell', }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address', }, { name: 'staking', type: 'address', }, ], name: 'value0', type: 'tuple', }, ], }, { inputs: [ { name: 'signature', type: 'bytes', }, { name: 'voteReceiver', type: 'address', }, ], name: 'confirm', outputs: [], }, { inputs: [ { name: 'voteReceiver', type: 'address', }, ], name: 'reject', outputs: [], }, { inputs: [], name: 'close', outputs: [], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getDetails', outputs: [ { components: [ { components: [ { name: 'eventTransactionLt', type: 'uint64', }, { name: 'eventTimestamp', type: 'uint32', }, { name: 'eventData', type: 'cell', }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address', }, { name: 'staking', type: 'address', }, ], name: '_eventInitData', type: 'tuple', }, { name: '_status', type: 'uint8', }, { name: '_confirms', type: 'uint256[]', }, { name: '_rejects', type: 'uint256[]', }, { name: 'empty', type: 'uint256[]', }, { name: '_signatures', type: 'bytes[]', }, { name: 'balance', type: 'uint128', }, { name: '_initializer', type: 'address', }, { name: '_meta', type: 'cell', }, { name: '_requiredVotes', type: 'uint32', }, ], }, { inputs: [], name: 'status', outputs: [ { name: 'value0', type: 'uint8', }, ], }, { inputs: [ { name: 'roundContract', type: 'address', }, { name: 'roundNum', type: 'uint32', }, ], name: 'receiveRoundAddress', outputs: [], }, { inputs: [ { name: 'keys', type: 'uint256[]', }, ], name: 'receiveRoundRelays', outputs: [], }, { inputs: [ { name: 'answerId', type: 'uint32', }, { name: 'vote', type: 'uint8', }, ], name: 'getVoters', outputs: [ { name: 'voters', type: 'uint256[]', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, { name: 'voter', type: 'uint256', }, ], name: 'getVote', outputs: [ { name: 'vote', type: 'optional(uint8)', }, ], }, { inputs: [ { name: 'answerId', type: 'uint32', }, ], name: 'getApiVersion', outputs: [ { name: 'value0', type: 'uint32', }, ], }, { inputs: [], name: 'votes', outputs: [ { name: 'votes', type: 'map(uint256,uint8)', }, ], }, { inputs: [], name: 'initializer', outputs: [ { name: 'initializer', type: 'address', }, ], }, { inputs: [], name: 'meta', outputs: [ { name: 'meta', type: 'cell', }, ], }, { inputs: [], name: 'requiredVotes', outputs: [ { name: 'requiredVotes', type: 'uint32', }, ], }, { inputs: [], name: 'confirms', outputs: [ { name: 'confirms', type: 'uint16', }, ], }, { inputs: [], name: 'rejects', outputs: [ { name: 'rejects', type: 'uint16', }, ], }, { inputs: [], name: 'relay_round', outputs: [ { name: 'relay_round', type: 'address', }, ], }, { inputs: [], name: 'round_number', outputs: [ { name: 'round_number', type: 'uint32', }, ], }, { inputs: [], name: 'createdAt', outputs: [ { name: 'createdAt', type: 'uint32', }, ], }, { inputs: [], name: 'signatures', outputs: [ { name: 'signatures', type: 'map(uint256,bytes)', }, ], }, { inputs: [], name: 'nonce', outputs: [ { name: 'nonce', type: 'uint32', }, ], }, { inputs: [], name: 'proxy', outputs: [ { name: 'proxy', type: 'address', }, ], }, { inputs: [], name: 'token', outputs: [ { name: 'token', type: 'address', }, ], }, { inputs: [], name: 'remainingGasTo', outputs: [ { name: 'remainingGasTo', type: 'address', }, ], }, { inputs: [], name: 'amount', outputs: [ { name: 'amount', type: 'uint128', }, ], }, { inputs: [], name: 'recipient', outputs: [ { name: 'recipient', type: 'uint160', }, ], }, { inputs: [], name: 'sender', outputs: [ { name: 'sender', type: 'address', }, ], }, { inputs: [], name: 'initial_balance', outputs: [ { name: 'initial_balance', type: 'uint128', }, ], }, { inputs: [], name: 'callback_recipient', outputs: [ { name: 'callback_recipient', type: 'uint160', }, ], }, { inputs: [], name: 'callback_payload', outputs: [ { name: 'callback_payload', type: 'bytes', }, ], }, { inputs: [], name: 'callback_strict', outputs: [ { name: 'callback_strict', type: 'bool', }, ], }, { inputs: [], name: 'base_chainId', outputs: [ { name: 'base_chainId', type: 'uint256', }, ], }, { inputs: [], name: 'base_token', outputs: [ { name: 'base_token', type: 'uint160', }, ], }, { inputs: [], name: 'expectedToken', outputs: [ { name: 'expectedToken', type: 'address', }, ], }, ], header: [ 'pubkey', 'time', 'expire', ], version: '2.2', };