@broxus/js-core
Version:
MobX-based JavaScript Core library
209 lines (208 loc) • 7.43 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TokenRootAbi = void 0;
/**
* **TokenRoot ABI v2.7**
*
* This ABI is used for interacting with the `TokenRoot` contract on the TVM blockchain.
* @see [TokenRoot](https://github.com/broxus/tip3/blob/master/build/TokenRoot.abi.json)
*/
exports.TokenRootAbi = {
'ABI version': 2,
version: '2.7',
header: ['pubkey', 'time', 'expire'],
functions: [
{
name: 'constructor',
inputs: [
{ name: 'initialSupplyTo', type: 'address' },
{ name: 'initialSupply', type: 'uint128' },
{ name: 'deployWalletValue', type: 'uint128' },
{ name: 'mintDisabled', type: 'bool' },
{ name: 'burnByRootDisabled', type: 'bool' },
{ name: 'burnPaused', type: 'bool' },
{ name: 'remainingGasTo', type: 'address' },
],
outputs: [],
},
{
name: 'supportsInterface',
inputs: [
{ name: 'answerId', type: 'uint32' },
{ name: 'interfaceID', type: 'uint32' },
],
outputs: [{ name: 'value0', type: 'bool' }],
},
{
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: '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: '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: 'sendSurplusGas',
inputs: [{ name: 'to', type: 'address' }],
outputs: [],
},
],
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' }],
},
],
events: [],
fields: [
{ init: true, name: '_pubkey', type: 'fixedbytes32' },
{ init: false, name: '_timestamp', type: 'uint64' },
{ init: false, name: '_constructorFlag', type: 'bool' },
{ init: true, name: 'name_', type: 'string' },
{ init: true, name: 'symbol_', type: 'string' },
{ init: true, name: 'decimals_', type: 'uint8' },
{ init: true, name: 'rootOwner_', type: 'address' },
{ init: true, name: 'walletCode_', type: 'cell' },
{ init: false, name: 'totalSupply_', type: 'uint128' },
{ init: false, name: 'burnPaused_', type: 'bool' },
{ init: false, name: 'burnByRootDisabled_', type: 'bool' },
{ init: false, name: 'mintDisabled_', type: 'bool' },
{ init: true, name: 'randomNonce_', type: 'uint256' },
{ init: true, name: 'deployer_', type: 'address' },
],
};