UNPKG

@broxus/js-core

Version:

MobX-based JavaScript Core library

339 lines (338 loc) 11.6 kB
/** * **VaultTokenRoot ABI v2.3** * * This ABI is used for interacting with the `VaultTokenRoot` contract on the TVM blockchain. * @see [VaultTokenRoot](https://github.com/broxus/flatqube-contracts/blob/master/build/VaultTokenRoot_V1.abi.json) */ export const VaultTokenRootAbi = { 'ABI version': 2, version: '2.3', header: ['pubkey', 'time', 'expire'], functions: [ { name: 'constructor', inputs: [], outputs: [], }, { name: 'setUpgradeAssistantAdmin', inputs: [{ name: 'admin', type: 'address' }], outputs: [], }, { name: 'setUpgradeAssistant', inputs: [{ name: 'assistant', type: 'address' }], outputs: [], }, { name: 'mint', 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: 'supportsInterface', inputs: [ { name: 'answerId', type: 'uint32' }, { name: 'interfaceID', type: 'uint32' }, ], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'specialWalletOwners', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'address[]' }], }, { name: 'requestUpgradeWallet', inputs: [ { name: 'currentVersion', type: 'uint32' }, { name: 'walletOwner', type: 'address' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'setWalletCode', inputs: [{ name: 'code', type: 'cell' }], outputs: [], }, { name: 'walletVersion', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint32' }], }, { name: 'platformCode', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'cell' }], }, { name: 'acceptBurn', id: '0x192B51B1', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'walletOwner', type: 'address' }, { name: 'remainingGasTo', type: 'address' }, { name: 'callbackTo', type: 'address' }, { name: 'innerPayload', type: 'cell' }, ], outputs: [], }, { name: 'getReserves', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint128' }], }, { name: 'acceptWrap', inputs: [ { name: 'walletOwner', type: 'address' }, { name: 'amount', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'getReceiveSafeFee', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'fixedValue', type: 'uint128' }, { name: 'dynamicGas', type: 'uint128' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'getWrapDeployWalletValue', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [ { components: [ { name: 'fixedValue', type: 'uint128' }, { name: 'dynamicGas', type: 'uint128' }, ], name: 'value0', type: 'tuple', }, ], }, { name: 'getInitialBalance', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint128' }], }, { name: 'grant', inputs: [], outputs: [], }, { name: 'wrap', inputs: [ { name: 'tokens', type: 'uint128' }, { name: 'recipient', type: 'address' }, { name: 'deployWalletValue', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, { name: 'notify', type: 'bool' }, { name: 'payload', type: 'cell' }, ], outputs: [], }, { name: 'upgradeWallets', inputs: [ { name: 'wallets', type: 'address[]' }, { name: 'accept_upgrade_value', type: 'uint128' }, { name: 'remainingGasTo', type: 'address' }, ], outputs: [], }, { name: 'upgrade', inputs: [{ name: 'code', type: 'cell' }], outputs: [], }, { name: 'disableMint', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'mintDisabled', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'burnTokens', inputs: [ { name: 'amount', type: 'uint128' }, { name: 'walletOwner', type: 'address' }, { name: 'remainingGasTo', type: 'address' }, { name: 'callbackTo', type: 'address' }, { name: 'payload', type: 'cell' }, ], outputs: [], }, { name: 'disableBurnByRoot', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'burnByRootDisabled', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'burnPaused', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'setBurnPaused', inputs: [ { name: 'answerId', type: 'uint32' }, { name: 'paused', type: 'bool' }, ], outputs: [{ name: 'value0', type: 'bool' }], }, { name: 'transferOwnership', inputs: [ { name: 'newOwner', type: 'address' }, { name: 'remainingGasTo', type: 'address' }, { components: [ { name: 'value', type: 'uint128' }, { name: 'payload', type: 'cell' }, ], name: 'callbacks', type: 'map(address,tuple)', }, ], outputs: [], }, { name: 'name', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'string' }], }, { name: 'symbol', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'string' }], }, { name: 'decimals', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint8' }], }, { name: 'totalSupply', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'uint128' }], }, { name: 'walletCode', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'cell' }], }, { name: 'rootOwner', inputs: [{ name: 'answerId', type: 'uint32' }], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'walletOf', inputs: [ { name: 'answerId', type: 'uint32' }, { name: 'walletOwner', type: 'address' }, ], outputs: [{ name: 'value0', type: 'address' }], }, { name: 'deployWallet', inputs: [ { name: 'answerId', type: 'uint32' }, { name: 'walletOwner', type: 'address' }, { name: 'deployWalletValue', type: 'uint128' }, ], outputs: [{ name: 'tokenWallet', type: 'address' }], }, { name: 'sendSurplusGas', inputs: [{ name: 'to', type: 'address' }], outputs: [], }, { name: 'upgrade_assistant_admin', inputs: [], outputs: [{ name: 'upgrade_assistant_admin', type: 'address' }], }, { name: 'upgrade_assistant', inputs: [], outputs: [{ name: 'upgrade_assistant', type: 'address' }], }, ], getters: [ { name: 'get_jetton_data', inputs: [], outputs: [ { name: 'value0', type: 'int257' }, { name: 'value1', type: 'bool' }, { name: 'value2', type: 'address_std' }, { name: 'value3', type: 'cell' }, { name: 'value4', type: 'cell' }, ], }, { name: 'get_wallet_address', inputs: [{ name: 'owner_address', type: 'address_std' }], outputs: [{ name: 'value0', type: 'address_std' }], }, ], data: [ { key: 1, name: 'name_', type: 'string' }, { key: 2, name: 'symbol_', type: 'string' }, { key: 3, name: 'decimals_', type: 'uint8' }, { key: 4, name: 'rootOwner_', type: 'address' }, { key: 5, name: 'walletCode_', type: 'cell' }, { key: 6, name: 'randomNonce_', type: 'uint256' }, { key: 7, name: 'deployer_', type: 'address' }, { key: 8, name: 'platformCode_', type: 'cell' }, ], events: [], fields: [ { name: '_pubkey', type: 'uint256' }, { name: '_timestamp', type: 'uint64' }, { name: '_constructorFlag', type: 'bool' }, { name: 'name_', type: 'string' }, { name: 'symbol_', type: 'string' }, { name: 'decimals_', type: 'uint8' }, { name: 'rootOwner_', type: 'address' }, { name: 'walletCode_', type: 'cell' }, { name: 'totalSupply_', type: 'uint128' }, { name: 'burnPaused_', type: 'bool' }, { name: 'burnByRootDisabled_', type: 'bool' }, { name: 'mintDisabled_', type: 'bool' }, { name: 'randomNonce_', type: 'uint256' }, { name: 'deployer_', type: 'address' }, { name: 'platformCode_', type: 'cell' }, { name: 'walletVersion_', type: 'uint32' }, { name: 'upgrade_assistant_admin', type: 'address' }, { name: 'upgrade_assistant', type: 'address' }, ], };