@broxus/js-core
Version:
MobX-based JavaScript Core library
199 lines (198 loc) • 6.69 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VaultTokenWalletAbi = void 0;
/**
* **VaultTokenWallet ABI v2.7**
*
* This ABI is used for interacting with the `VaultTokenWallet` contract on the TVM blockchain.
* @see [VaultTokenWallet](https://github.com/broxus/flatqube-contracts/blob/master/build/VaultTokenWallet_V1.abi.json)
*/
exports.VaultTokenWalletAbi = {
'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: 'specialWalletOwners',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'address[]' }],
},
{
name: 'platformCode',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'cell' }],
},
{
name: 'onDeployRetry',
id: '0x15A038FB',
inputs: [
{ name: 'value0', type: 'cell' },
{ name: 'value1', type: 'uint32' },
{ name: 'sender', type: 'address' },
{ name: 'remainingGasTo', type: 'address' },
],
outputs: [],
},
{
name: 'version',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'uint32' }],
},
{
name: 'upgrade',
inputs: [{ name: 'remainingGasTo', type: 'address' }],
outputs: [],
},
{
name: 'acceptUpgrade',
inputs: [
{ name: 'newCode', type: 'cell' },
{ name: 'newVersion', type: 'uint32' },
{ name: 'remainingGasTo', type: 'address' },
],
outputs: [],
},
{
name: 'acceptMint',
id: '0x4384F298',
inputs: [
{ name: 'amount', type: 'uint128' },
{ name: 'remainingGasTo', type: 'address' },
{ name: 'notify', type: 'bool' },
{ name: 'innerPayload', type: 'cell' },
],
outputs: [],
},
{
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: 'acceptNative',
inputs: [
{ name: 'amount', type: 'uint128' },
{ name: 'deployWalletValue', type: 'uint128' },
{ name: 'remainingGasTo', type: 'address' },
{ 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: 'burnByRoot',
inputs: [
{ name: 'amount', type: 'uint128' },
{ name: 'remainingGasTo', type: 'address' },
{ name: 'callbackTo', type: 'address' },
{ name: 'payload', type: 'cell' },
],
outputs: [],
},
{
name: 'destroy',
inputs: [{ name: 'remainingGasTo', type: 'address' }],
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: 'transferToWallet',
inputs: [
{ name: 'amount', type: 'uint128' },
{ name: 'recipientTokenWallet', type: 'address' },
{ name: 'remainingGasTo', type: 'address' },
{ name: 'notify', type: 'bool' },
{ name: 'payload', 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' },
{ init: false, name: 'version_', type: 'uint32' },
{ init: false, name: 'platformCode_', type: 'cell' },
],
};