UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

379 lines (378 loc) 12.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TvmTvmEventNativeAbi = void 0; /** * @see [TvmTvmEventNative](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/MultiVaultTvmTvmEventNative.abi.json) */ exports.TvmTvmEventNativeAbi = { 'ABI version': 2, version: '2.3', header: ['pubkey', 'time', 'expire'], functions: [ { name: 'constructor', inputs: [ { name: '_initializer', type: 'address' }, { name: '_meta', type: 'cell' }, { name: '_transactionChecker', type: 'address' }, { name: '_eventBody', type: 'cell' }, { name: '_eventInitialBalance', type: 'uint128' }, ], outputs: [], }, { name: 'processProof', inputs: [ { components: [ { name: 'msgHash', type: 'uint256' }, { name: 'messageIndex', type: 'uint15' }, { name: 'txBlockProof', type: 'cell' }, { name: 'txProof', type: 'cell' }, ], name: '_eventVoteData', type: 'tuple', }, ], outputs: [], }, { name: 'onTrustlessVerify', id: '0x756ADFF1', inputs: [ { name: '_success', type: 'bool' }, { name: 'value1', type: 'uint256' }, ], 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: 'int32' }, { name: 'proxy', type: 'address' }, { name: 'startTimestamp', type: 'uint32' }, { name: 'endTimestamp', type: 'uint32' }, ], name: '_networkConfiguration', type: 'tuple', }, { name: 'value2', type: 'cell' }, ], outputs: [], }, { name: 'getDecodedData', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { name: 'token_', type: 'address' }, { name: 'name_', type: 'string' }, { name: 'symbol_', type: 'string' }, { name: 'decimals_', type: 'uint8' }, { name: 'sender_', type: 'address' }, { name: 'amount_', type: 'uint128' }, { name: 'recipient_', type: 'address' }, { name: 'value_', type: 'uint128' }, { name: 'expected_gas_', type: 'uint128' }, { name: 'payload_', type: 'optional(cell)' }, { name: 'proxy_', type: 'address' }, { name: 'tokenWallet_', type: 'address' }, { name: 'bounty_', type: 'uint128' }, ], }, { name: 'notEnoughLiquidity', inputs: [{ name: '_wNativeAddresses', type: 'map(address,bool)' }], outputs: [], }, { name: 'takeWalletAddress', id: '0xD1735400', inputs: [ { name: 'value0', type: 'uint64' }, { name: '_wallet', type: 'address' }, { name: 'value2', type: 'optional(cell)' }, ], outputs: [], }, { name: 'cancel', inputs: [ { name: '_newRecipient', type: 'address' }, { name: '_remainingGasTo', type: 'address' }, { name: '_expectedGas', type: 'uint128' }, { name: '_eventPayload', type: 'optional(cell)' }, { 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: 'dailyLimitReached', inputs: [{ name: '_approver', type: 'address' }], outputs: [], }, { name: 'approveLimit', inputs: [], outputs: [], }, { name: 'rejectLimit', inputs: [{ name: '_expectedGasReceiver', type: 'address' }], outputs: [], }, { name: 'retry', inputs: [], outputs: [], }, { name: 'getEventInitData', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'msgHash', type: 'uint256' }, { name: 'configuration', type: 'address' }, { name: 'chainId', type: 'int32' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'getDetails', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'msgHash', type: 'uint256' }, { name: 'configuration', type: 'address' }, { name: 'chainId', type: 'int32' }, ], name: '_eventInitData', type: 'tuple', }, { name: '_initializer', type: 'address' }, { name: '_meta', type: 'cell' }, { name: '_status', type: 'uint8' }, ], }, { name: 'status', inputs: [], outputs: [{ name: 'status', type: 'uint8' }], }, { name: 'initializer', inputs: [], outputs: [{ name: 'initializer', type: 'address' }], }, { name: 'meta', inputs: [], outputs: [{ name: 'meta', type: 'cell' }], }, { name: 'transactionChecker', inputs: [], outputs: [{ name: 'transactionChecker', type: 'address' }], }, { name: 'nonce', inputs: [], outputs: [{ name: 'nonce', type: 'uint32' }], }, { name: 'eventInitialBalance', inputs: [], outputs: [{ name: 'eventInitialBalance', type: 'uint128' }], }, { name: 'token', inputs: [], outputs: [{ name: 'token', type: 'address' }], }, { name: 'name', inputs: [], outputs: [{ name: 'name', type: 'string' }], }, { name: 'symbol', inputs: [], outputs: [{ name: 'symbol', type: 'string' }], }, { name: 'decimals', inputs: [], outputs: [{ name: 'decimals', type: 'uint8' }], }, { name: 'proxyTokenWallet', inputs: [], outputs: [{ name: 'proxyTokenWallet', type: 'address' }], }, { name: 'sender', inputs: [], outputs: [{ name: 'sender', type: 'address' }], }, { name: 'amount', inputs: [], outputs: [{ name: 'amount', type: 'uint128' }], }, { name: 'recipient', inputs: [], outputs: [{ name: 'recipient', type: 'address' }], }, { name: 'attached_gas', inputs: [], outputs: [{ name: 'attached_gas', type: 'uint128' }], }, { name: 'expected_gas', inputs: [], outputs: [{ name: 'expected_gas', type: 'uint128' }], }, { name: 'payload', inputs: [], outputs: [{ name: 'payload', type: 'optional(cell)' }], }, { name: 'proxy', inputs: [], outputs: [{ name: 'proxy', 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: [ { name: 'msgHash', type: 'uint256' }, { name: 'configuration', type: 'address' }, { name: 'chainId', type: 'int32' }, ], key: 1, name: 'eventInitData', type: 'tuple', }, ], events: [ { name: 'Confirmed', inputs: [], outputs: [], }, { name: 'LiquidityRequested', inputs: [{ name: 'bounty', type: 'uint128' }], outputs: [], }, { name: 'Cancelled', inputs: [], outputs: [], }, { name: 'LiquidityProvided', inputs: [{ name: 'tokenSender', type: 'address' }], outputs: [], }, { name: 'LimitReached', inputs: [{ name: 'approver', type: 'address' }], outputs: [], }, ], fields: [ { name: '_pubkey', type: 'uint256' }, { name: '_timestamp', type: 'uint64' }, { name: '_constructorFlag', type: 'bool' }, { name: 'status', type: 'uint8' }, { name: 'initializer', type: 'address' }, { name: 'meta', type: 'cell' }, { name: 'transactionChecker', type: 'address' }, { components: [ { name: 'msgHash', type: 'uint256' }, { name: 'configuration', type: 'address' }, { name: 'chainId', type: 'int32' }, ], name: 'eventInitData', type: 'tuple', }, { name: 'nonce', type: 'uint32' }, { name: 'eventBody', type: 'cell' }, { name: 'eventInitialBalance', type: 'uint128' }, { name: 'token', type: 'address' }, { name: 'name', type: 'string' }, { name: 'symbol', type: 'string' }, { name: 'decimals', type: 'uint8' }, { name: 'proxyTokenWallet', type: 'address' }, { name: 'sender', type: 'address' }, { name: 'amount', type: 'uint128' }, { name: 'recipient', type: 'address' }, { name: 'attached_gas', type: 'uint128' }, { name: 'expected_gas', type: 'uint128' }, { name: 'payload', type: 'optional(cell)' }, { name: 'proxy', type: 'address' }, { name: 'setupFinished', type: 'bool' }, { name: 'bounty', type: 'uint128' }, { name: 'eventTokenWallet', type: 'address' }, { name: 'limitApprover', type: 'address' }, { name: 'isLimitApproved', type: 'bool' }, { name: 'isWNative', type: 'bool' }, ], };