UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

418 lines (417 loc) 14.5 kB
/** * @see [TvmTvmEventAlien](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/MultiVaultTvmTvmEventAlien.abi.json) */ export const TvmTvmEventAlienAbi = { '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: 'receivePredeployedToken', inputs: [ { name: '_nativeProxy', type: 'address' }, { components: [ { name: 'internalToken', type: 'address' }, { name: 'externalNativeProxyWallet', type: 'address' }, ], name: '_tokenData', type: 'optional(tuple)', }, ], outputs: [], }, { name: 'takeWalletAddress', id: '0xD1735400', inputs: [ { name: 'value0', type: 'uint64' }, { name: '_wallet', type: 'address' }, { name: 'additionalData', type: 'optional(cell)' }, ], outputs: [], }, { name: 'receiveAlienTokenRoot', inputs: [{ name: '_token', type: 'address' }], outputs: [], }, { name: 'takeInfoAlienTvm', id: '0x96B5C11A', inputs: [ { name: 'value0', type: 'uint64' }, { name: 'value1', type: 'uint8' }, { name: 'value2', type: 'int32' }, { name: 'value3', type: 'address' }, { name: 'value4', type: 'string' }, { name: 'value5', type: 'string' }, { name: 'value6', type: 'cell' }, { name: 'value7', type: 'optional(cell)' }, ], outputs: [], }, { name: 'receiveMergeRouter', inputs: [{ name: '_router', type: 'address' }], outputs: [], }, { name: 'receiveMergeRouterPool', inputs: [{ name: '_pool', type: 'address' }], outputs: [], }, { name: 'receiveMergePoolCanon', inputs: [ { name: '_canon', type: 'address' }, { components: [ { name: 'decimals', type: 'uint8' }, { name: 'enabled', type: 'bool' }, ], name: '_canonToken', type: 'tuple', }, ], outputs: [], }, { name: 'getEventData', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'base_chainId', type: 'int32' }, { name: 'base_token', type: 'address' }, { name: 'base_native_proxy_wallet', type: 'address' }, { name: 'name', type: 'string' }, { name: 'symbol', type: 'string' }, { name: 'decimals', type: 'uint8' }, { name: 'amount', type: 'uint128' }, { name: 'recipient', type: 'address' }, { name: 'sender', type: 'address' }, { name: 'attached_gas', type: 'uint128' }, { name: 'expected_gas', type: 'uint128' }, { name: 'payload', type: 'optional(cell)' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'getTransitionalData', inputs: [], outputs: [ { components: [ { name: 'proxy', type: 'address' }, { name: 'token', type: 'address' }, { name: 'router', type: 'address' }, { name: 'pool', type: 'address' }, { name: 'canon', type: 'address' }, { name: 'target_token', type: 'address' }, { name: 'target_amount', type: 'uint128' }, { name: 'native_proxy', type: 'address' }, { name: 'native_proxy_token_wallet', type: 'optional(address)' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'getDecodedData', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { name: 'base_chainId_', type: 'int32' }, { name: 'base_token_', type: 'address' }, { name: 'base_native_proxy_wallet_', type: 'address' }, { name: 'name_', type: 'string' }, { name: 'symbol_', type: 'string' }, { name: 'decimals_', type: 'uint8' }, { 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: 'token_', type: 'address' }, { name: 'native_proxy_token_wallet', type: 'optional(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: 'address' }, { name: '_remainingGasTo', type: 'address' }, { name: '_expectedGas', type: 'uint128' }, { name: '_eventPayload', type: 'optional(cell)' }, { name: '_predeployedTokenData', 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: '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: 'transitionalDataCell', inputs: [], outputs: [{ name: 'transitionalDataCell', type: 'cell' }], }, { 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: 'transitionalDataCell', type: 'cell' }, { name: '_tokenDeployStatus', type: 'uint8' }, { name: '_routerDeployStatus', type: 'uint8' }, { name: 'bounty', type: 'uint128' }, { name: 'eventTokenWallet', type: 'address' }, { name: 'limitApprover', type: 'address' }, { name: 'isLimitApproved', type: 'bool' }, { name: 'isWNative', type: 'bool' }, ], };