UNPKG

@broxus/js-bridge-essentials

Version:

Bridge JavaScript Essentials library

440 lines (439 loc) 16.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TonAlienProxyV1Abi = void 0; /** * @see [TonAlienProxyV1](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/ProxyMultiVaultAlienJetton_V1.abi.json) */ exports.TonAlienProxyV1Abi = { 'ABI version': 2, version: '2.3', header: ['pubkey', 'time'], functions: [ { name: 'constructor', inputs: [{ name: '_owner', type: 'address' }], outputs: [], }, { name: 'apiVersion', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint8' }], }, { name: 'upgrade', inputs: [{ name: '_code', type: 'cell' }], outputs: [], }, { name: 'deriveMergeRouter', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_token', type: 'address' }, ], outputs: [{ name: 'router', type: 'address' }], }, { name: 'deployMergeRouter', inputs: [{ name: '_token', type: 'address' }], outputs: [], }, { name: 'setMergeRouter', inputs: [{ name: '_mergeRouter', type: 'cell' }], outputs: [], }, { name: 'deriveMergePool', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_nonce', type: 'uint256' }, ], outputs: [{ name: 'pool', type: 'address' }], }, { name: 'deployMergePool', inputs: [ { name: '_nonce', type: 'uint256' }, { name: '_tokens', type: 'address[]' }, { name: '_canonId', type: 'uint256' }, ], outputs: [], }, { name: 'mintTokensByMergePool', inputs: [ { name: '_mergePoolNonce', type: 'uint256' }, { name: '_token', type: 'address' }, { name: '_amount', type: 'uint128' }, { name: '_recipient', type: 'address' }, { name: '_remainingGasTo', type: 'address' }, { name: '_payload', type: 'cell' }, ], outputs: [], }, { name: 'withdrawTokensToEvmByMergePool', id: '0x73273E9F', inputs: [ { name: '_mergePoolNonce', type: 'uint256' }, { name: '_nonce', type: 'uint32' }, { name: '_token', type: 'address' }, { name: '_amount', type: 'uint128' }, { name: '_recipient', type: 'uint160' }, { name: '_remainingGasTo', type: 'address' }, { name: '_sender', type: 'address' }, { components: [ { name: 'recipient', type: 'uint160' }, { name: 'payload', type: 'bytes' }, { name: 'strict', type: 'bool' }, ], name: '_callback', type: 'tuple', }, ], outputs: [], }, { name: 'withdrawTokensToSvmByMergePool', id: '0x31D2E438', inputs: [ { name: '_mergePoolNonce', type: 'uint256' }, { name: '_nonce', type: 'uint32' }, { name: '_token', type: 'address' }, { name: '_amount', type: 'uint128' }, { name: '_recipient', type: 'uint256' }, { name: '_remainingGasTo', type: 'address' }, { name: '_sender', type: 'address' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: '_executeAccounts', type: 'tuple[]', }, { name: '_executePayloadNeeded', type: 'bool' }, { components: [ { name: 'account', type: 'uint256' }, { name: 'readOnly', type: 'bool' }, { name: 'isSigner', type: 'bool' }, ], name: '_executePayloadAccounts', type: 'tuple[]', }, { name: '_svmPayload', type: 'bytes' }, ], outputs: [], }, { name: 'upgradeMergePool', inputs: [{ name: '_pool', type: 'address' }], outputs: [], }, { name: 'setMergePoolPlatform', inputs: [{ name: '_mergePoolPlatform', type: 'cell' }], outputs: [], }, { name: 'setMergePool', inputs: [{ name: '_mergePool', type: 'cell' }], outputs: [], }, { name: 'onAcceptTokensBurn', inputs: [ { name: '_amount', type: 'uint128' }, { name: '_sender', type: 'address' }, { name: 'value2', type: 'address' }, { name: 'value3', type: 'address' }, { name: '_payload', type: 'cell' }, ], outputs: [], }, { name: 'onEventConfirmedExtended', inputs: [ { 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: '_meta', type: 'cell' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'onSvmEventConfirmedExtended', id: '0x28A93BCD', inputs: [ { components: [ { components: [ { name: 'accountSeed', type: 'uint128' }, { name: 'slot', type: 'uint64' }, { name: 'blockTime', type: 'uint64' }, { name: 'txSignature', type: 'string' }, { name: 'eventData', type: 'cell' }, ], name: 'voteData', type: 'tuple', }, { name: 'configuration', type: 'address' }, { name: 'roundDeployer', type: 'address' }, ], name: '_eventInitData', type: 'tuple', }, { name: '_meta', type: 'cell' }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'deployEvmAlienToken', id: '0x4910ABE7', inputs: [ { name: '_chainId', type: 'uint256' }, { name: '_token', type: 'uint160' }, { name: '_name', type: 'string' }, { name: '_symbol', type: 'string' }, { name: '_decimals', type: 'uint8' }, { name: 'value5', type: 'address' }, ], outputs: [], }, { name: 'deriveEvmAlienTokenRoot', id: '0x3777BD0C', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_chainId', type: 'uint256' }, { name: '_token', type: 'uint160' }, { name: '_name', type: 'string' }, { name: '_symbol', type: 'string' }, { name: '_decimals', type: 'uint8' }, ], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'deploySvmAlienToken', id: '0x3CF41DA', inputs: [ { name: '_token', type: 'uint256' }, { name: '_name', type: 'string' }, { name: '_symbol', type: 'string' }, { name: '_decimals', type: 'uint8' }, { name: 'value4', type: 'address' }, ], outputs: [], }, { name: 'deriveSvmAlienTokenRoot', id: '0x15A93EF7', inputs: [ { name: 'answerId', type: 'uint32' }, { name: '_token', type: 'uint256' }, { name: '_name', type: 'string' }, { name: '_symbol', type: 'string' }, { name: '_decimals', type: 'uint8' }, ], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'getConfiguration', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'tvmConfiguration', type: 'address' }, { name: 'evmConfigurations', type: 'address[]' }, { name: 'alienTokenRootCode', type: 'cell' }, { name: 'alienTokenWalletCode', type: 'cell' }, { name: 'alienTokenWalletPlatformCode', type: 'cell' }, ], name: 'value0', type: 'tuple', }, { components: [ { name: 'tvmConfiguration', type: 'address' }, { name: 'svmConfiguration', type: 'address' }, { name: 'alienTokenRootCode', type: 'cell' }, { name: 'alienTokenWalletCode', type: 'cell' }, { name: 'alienTokenWalletPlatformCode', type: 'cell' }, ], name: 'value1', type: 'tuple', }, ], }, { name: 'setEvmConfiguration', id: '0x35F0E881', inputs: [ { components: [ { name: 'tvmConfiguration', type: 'address' }, { name: 'evmConfigurations', type: 'address[]' }, { name: 'alienTokenRootCode', type: 'cell' }, { name: 'alienTokenWalletCode', type: 'cell' }, { name: 'alienTokenWalletPlatformCode', type: 'cell' }, ], name: '_config', type: 'tuple', }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setSvmConfiguration', id: '0x6ED3EE10', inputs: [ { components: [ { name: 'tvmConfiguration', type: 'address' }, { name: 'svmConfiguration', type: 'address' }, { name: 'alienTokenRootCode', type: 'cell' }, { name: 'alienTokenWalletCode', type: 'cell' }, { name: 'alienTokenWalletPlatformCode', type: 'cell' }, ], name: '_config', type: 'tuple', }, { name: '_remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setManager', inputs: [{ name: '_manager', type: 'address' }], outputs: [], }, { name: 'transferOwnership', inputs: [{ name: 'newOwner', type: 'address' }], outputs: [], }, { name: 'renounceOwnership', inputs: [], outputs: [], }, { name: 'owner', inputs: [], outputs: [{ name: 'owner', type: 'address' }], }, { name: 'manager', inputs: [], outputs: [{ name: 'manager', type: 'address' }], }, { name: 'mergeRouter', inputs: [], outputs: [{ name: 'mergeRouter', type: 'cell' }], }, { name: 'mergePool', inputs: [], outputs: [{ name: 'mergePool', type: 'cell' }], }, { name: 'mergePoolPlatform', inputs: [], outputs: [{ name: 'mergePoolPlatform', type: 'cell' }], }, { name: 'mergePoolVersion', inputs: [], outputs: [{ name: 'mergePoolVersion', type: 'uint8' }], }, { name: '_randomNonce', inputs: [], outputs: [{ name: '_randomNonce', type: 'uint256' }], }, ], data: [{ key: 1, name: '_randomNonce', type: 'uint256' }], events: [ { name: 'OwnershipTransferred', inputs: [ { name: 'previousOwner', type: 'address' }, { name: 'newOwner', type: 'address' }, ], outputs: [], }, { name: 'EvmAlienTransfer', inputs: [ { name: 'token', type: 'uint160' }, { name: 'amount', type: 'uint128' }, { name: 'recipient', type: 'uint160' }, { name: 'chainId', type: 'uint256' }, { name: 'callbackRecipient', type: 'uint160' }, { name: 'callbackPayload', type: 'bytes' }, { name: 'callbackStrict', type: 'bool' }, ], outputs: [], }, ], fields: [ { name: '_pubkey', type: 'uint256' }, { name: '_timestamp', type: 'uint64' }, { name: '_constructorFlag', type: 'bool' }, { name: 'owner', type: 'address' }, { components: [ { name: 'tvmConfiguration', type: 'address' }, { name: 'svmConfiguration', type: 'address' }, { name: 'alienTokenRootCode', type: 'cell' }, { name: 'alienTokenWalletCode', type: 'cell' }, { name: 'alienTokenWalletPlatformCode', type: 'cell' }, ], name: 'svmConfiguration', type: 'tuple', }, { components: [ { name: 'tvmConfiguration', type: 'address' }, { name: 'evmConfigurations', type: 'address[]' }, { name: 'alienTokenRootCode', type: 'cell' }, { name: 'alienTokenWalletCode', type: 'cell' }, { name: 'alienTokenWalletPlatformCode', type: 'cell' }, ], name: 'evmConfiguration', type: 'tuple', }, { name: 'api_version', type: 'uint8' }, { name: 'manager', type: 'address' }, { name: 'mergeRouter', type: 'cell' }, { name: 'mergePool', type: 'cell' }, { name: 'mergePoolPlatform', type: 'cell' }, { name: 'mergePoolVersion', type: 'uint8' }, { name: '_randomNonce', type: 'uint256' }, ], };