UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

144 lines (143 loc) 4.75 kB
/** * **TokenWallet ABI v2.7** * * This ABI is used for interacting with the `TokenWallet` contract on the TVM blockchain. * @see [TokenWallet](https://github.com/broxus/tip3/blob/master/build/TokenWallet.abi.json) */ export const TokenWalletAbi = { 'ABI version': 2, version: '2.7', header: ['pubkey', 'time', 'expire'], functions: [ { name: 'constructor', inputs: [], outputs: [], }, { name: 'supportsInterface', inputs: [ { name: 'answerId', type: 'uint32' }, { name: 'interfaceID', type: 'uint32' }, ], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'destroy', inputs: [{ name: 'remainingGasTo', type: 'address' }], outputs: [], }, { name: 'burnByRoot', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, { name: 'callbackTo', type: 'address' }, { name: 'payload', type: 'cell' }, ], outputs: [], }, { name: 'burn', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, { name: 'callbackTo', type: 'address' }, { name: 'payload', type: 'cell' }, ], outputs: [], }, { name: 'balance', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint128' }], }, { name: 'owner', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'root', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'walletCode', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'cell' }], }, { name: 'transfer', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'recipient', type: 'address' }, { name: 'deployWalletValue', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, { name: 'notify', type: 'bool' }, { name: 'payload', type: 'cell' }, ], outputs: [], }, { name: 'transferToWallet', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'recipientTokenWallet', type: 'address' }, { name: 'remainingGasTo', type: 'address' }, { name: 'notify', type: 'bool' }, { name: 'payload', type: 'cell' }, ], outputs: [], }, { name: 'acceptTransfer', id: '0x67A0B95F', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'sender', type: 'address' }, { name: 'remainingGasTo', type: 'address' }, { name: 'notify', type: 'bool' }, { name: 'innerPayload', type: 'cell' }, ], outputs: [], }, { name: 'acceptMint', id: '0x4384F298', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, { name: 'notify', type: 'bool' }, { name: 'innerPayload', type: 'cell' }, ], outputs: [], }, { name: 'sendSurplusGas', inputs: [{ name: 'to', type: 'address' }], outputs: [], }, ], getters: [ { name: 'get_wallet_data', inputs: [], outputs: [ { name: 'value0', type: 'int257' }, { name: 'value1', type: 'address_std' }, { name: 'value2', type: 'address_std' }, { name: 'value3', type: 'cell' }, ], }, ], events: [], fields: [ { init: true, name: '_pubkey', type: 'fixedbytes32' }, { init: false, name: '_timestamp', type: 'uint64' }, { init: false, name: '_constructorFlag', type: 'bool' }, { init: true, name: 'root_', type: 'address' }, { init: true, name: 'owner_', type: 'address' }, { init: false, name: 'balance_', type: 'uint128' }, ], };