UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

468 lines (467 loc) 15.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EvmTonEventNativeAbi = void 0; /** * @see [EvmTonEventNative](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/MultiVaultEVMEverscaleEventNative.abi.json) */ exports.EvmTonEventNativeAbi = { 'ABI version': 2, version: '2.3', header: ['pubkey', 'time', 'expire'], functions: [ { name: 'constructor', inputs: [ { name: '_initializer', type: 'address' }, { name: '_meta', type: 'cell' }, ], outputs: [], }, { name: 'receiveConfigurationDetails', inputs: [ { components: [ { name: 'eventABI', type: 'bytes' }, { name: 'roundDeployer', type: 'address' }, { name: 'eventInitialBalance', type: 'uint64' }, { name: 'eventCode', type: 'cell' }, ], name: 'value0', type: 'tuple', }, { components: [ { name: 'chainId', type: 'uint32' }, { name: 'eventEmitter', type: 'uint160' }, { name: 'eventBlocksToConfirm', type: 'uint16' }, { name: 'proxy', type: 'address' }, { name: 'startBlockNumber', type: 'uint32' }, { name: 'endBlockNumber', type: 'uint32' }, ], name: '_networkConfiguration', type: 'tuple', }, { name: 'value2', type: 'cell' }, ], outputs: [], }, { name: 'takeWalletAddress', id: '0xD1735400', inputs: [ { name: 'value0', type: 'uint64' }, { name: '_wallet', type: 'address' }, { name: '_additionalData', type: 'optional(cell)' }, ], outputs: [], }, { name: 'getDecodedData', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { name: 'token_', type: 'address' }, { name: 'amount_', type: 'uint128' }, { name: 'recipient_', type: 'address' }, { name: 'value_', type: 'uint256' }, { name: 'expectedGas_', type: 'uint256' }, { name: 'payload_', type: 'cell' }, { name: 'proxy_', type: 'address' }, { name: 'tokenWallet_', type: 'address' }, ], }, { name: 'dailyLimitReached', inputs: [{ name: '_approver', type: 'address' }], outputs: [], }, { name: 'approveLimit', inputs: [], outputs: [], }, { name: 'rejectLimit', inputs: [{ name: '_expectedGasReceiver', type: 'address' }], outputs: [], }, { name: 'notEnoughLiquidity', inputs: [{ name: '_wNativeAddresses', type: 'map(address,bool)' }], outputs: [], }, { name: 'cancel', inputs: [ { name: '_newRecipient', type: 'uint160' }, { name: '_remainingGasTo', type: 'address' }, { components: [ { name: 'recipient', type: 'uint160' }, { name: 'payload', type: 'bytes' }, { name: 'strict', type: 'bool' }, ], name: '_callback', type: 'tuple', }, { name: '_name', type: 'string' }, { name: '_symbol', type: 'string' }, { name: '_decimals', type: 'uint8' }, { name: '_expectedGasReceiver', type: 'address' }, ], outputs: [], }, { name: 'setBounty', inputs: [{ name: '_bounty', type: 'uint128' }], outputs: [], }, { name: 'transferNotification', id: '0x7362D09C', inputs: [ { name: 'value0', type: 'uint64' }, { name: '_amount', type: 'varuint16' }, { name: '_tokenSender', type: 'address' }, { name: '_payload', type: 'optional(cell)' }, ], outputs: [], }, { name: 'retry', inputs: [], outputs: [], }, { name: 'getEventInitData', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'confirm', inputs: [{ name: '_voteReceiver', type: 'address' }], outputs: [], }, { name: 'reject', inputs: [{ name: '_voteReceiver', type: 'address' }], outputs: [], }, { name: 'getDetails', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], name: '_eventInitData', type: 'tuple', }, { name: '_status', type: 'uint8' }, { name: '_confirms', type: 'uint256[]' }, { name: '_rejects', type: 'uint256[]' }, { name: 'empty', type: 'uint256[]' }, { name: 'balance', type: 'uint128' }, { name: '_initializer', type: 'address' }, { name: '_meta', type: 'cell' }, { name: '_requiredVotes', type: 'uint32' }, ], }, { name: 'status', inputs: [], outputs: [{ name: 'value0', type: 'uint8' }], }, { name: 'receiveRoundAddress', inputs: [ { name: '_roundContract', type: 'address' }, { name: '_roundNum', type: 'uint32' }, ], outputs: [], }, { name: 'receiveRoundRelays', inputs: [{ name: '_keys', type: 'uint256[]' }], outputs: [], }, { name: 'getVoters', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_vote', type: 'uint8' }, ], outputs: [{ name: 'voters', type: 'uint256[]' }], }, { name: 'getVote', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_voter', type: 'uint256' }, ], outputs: [{ name: 'vote', type: 'optional(uint8)' }], }, { name: 'getApiVersion', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint32' }], }, { name: 'votes', inputs: [], outputs: [{ name: 'votes', type: 'map(uint256,uint8)' }], }, { name: 'initializer', inputs: [], outputs: [{ name: 'initializer', type: 'address' }], }, { name: 'meta', inputs: [], outputs: [{ name: 'meta', type: 'cell' }], }, { name: 'requiredVotes', inputs: [], outputs: [{ name: 'requiredVotes', type: 'uint32' }], }, { name: 'confirms', inputs: [], outputs: [{ name: 'confirms', type: 'uint16' }], }, { name: 'rejects', inputs: [], outputs: [{ name: 'rejects', type: 'uint16' }], }, { name: 'relay_round', inputs: [], outputs: [{ name: 'relay_round', type: 'address' }], }, { name: 'round_number', inputs: [], outputs: [{ name: 'round_number', type: 'uint32' }], }, { name: 'nonce', inputs: [], outputs: [{ name: 'nonce', type: 'uint32' }], }, { name: 'token', inputs: [], outputs: [{ name: 'token', type: 'address' }], }, { name: 'amount', inputs: [], outputs: [{ name: 'amount', type: 'uint128' }], }, { name: 'recipient', inputs: [], outputs: [{ name: 'recipient', type: 'address' }], }, { name: 'value', inputs: [], outputs: [{ name: 'value', type: 'uint256' }], }, { name: 'expected_gas', inputs: [], outputs: [{ name: 'expected_gas', type: 'uint256' }], }, { name: 'payload', inputs: [], outputs: [{ name: 'payload', type: 'cell' }], }, { name: 'proxy', inputs: [], outputs: [{ name: 'proxy', type: 'address' }], }, { name: 'tokenWallet', inputs: [], outputs: [{ name: 'tokenWallet', type: 'address' }], }, { name: 'bounty', inputs: [], outputs: [{ name: 'bounty', type: 'uint128' }], }, { name: 'eventTokenWallet', inputs: [], outputs: [{ name: 'eventTokenWallet', type: 'address' }], }, { name: 'limitApprover', inputs: [], outputs: [{ name: 'limitApprover', type: 'address' }], }, { name: 'isLimitApproved', inputs: [], outputs: [{ name: 'isLimitApproved', type: 'bool' }], }, ], data: [ { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], key: 1, name: 'eventInitData', type: 'tuple', }, ], events: [ { name: 'Confirm', inputs: [{ name: 'relay', type: 'uint256' }], outputs: [], }, { name: 'Reject', inputs: [{ name: 'relay', type: 'uint256' }], outputs: [], }, { name: 'Closed', inputs: [], outputs: [], }, { name: 'Confirmed', inputs: [], outputs: [], }, { name: 'Rejected', inputs: [{ name: 'reason', type: 'uint32' }], outputs: [], }, { name: 'LimitReached', inputs: [{ name: 'approver', type: 'address' }], outputs: [], }, { name: 'LiquidityRequested', inputs: [{ name: 'bounty', type: 'uint128' }], outputs: [], }, { name: 'Cancelled', inputs: [], outputs: [], }, { name: 'LiquidityProvided', inputs: [{ name: 'tokenSender', type: 'address' }], 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' }, { components: [ { components: [ { name: 'eventTransaction', type: 'uint256' }, { name: 'eventIndex', type: 'uint32' }, { name: 'eventData', type: 'cell' }, { name: 'eventBlockNumber', type: 'uint32' }, { name: 'eventBlock', type: 'uint256' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, { name: 'chainId', type: 'uint32' }, ], name: 'eventInitData', type: 'tuple', }, { name: 'nonce', type: 'uint32' }, { name: 'token', type: 'address' }, { name: 'amount', type: 'uint128' }, { name: 'recipient', type: 'address' }, { name: 'value', type: 'uint256' }, { name: 'expected_gas', type: 'uint256' }, { name: 'payload', type: 'cell' }, { name: 'proxy', type: 'address' }, { name: 'tokenWallet', type: 'address' }, { name: 'bounty', type: 'uint128' }, { name: 'eventTokenWallet', type: 'address' }, { name: 'limitApprover', type: 'address' }, { name: 'isLimitApproved', type: 'bool' }, { name: 'isWNative', type: 'bool' }, ], };