@broxus/js-bridge-essentials
Version:
Bridge JavaScript Essentials library
277 lines (276 loc) • 9.87 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TokenRootAlienTvmAbi = void 0;
/**
* @see [TokenRootAlienTVM](https://github.com/broxus/octusbridge-contracts/blob/master/everscale/build/TokenRootAlienTVM.abi.json)
*/
exports.TokenRootAlienTvmAbi = {
'ABI version': 2,
version: '2.3',
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: 'meta',
inputs: [
{ name: 'answerId', type: 'uint32' },
{ name: '_payload', type: 'cell' },
],
outputs: [
{ name: 'base_chainId', type: 'int32' },
{ name: 'base_token', type: 'address' },
{ name: 'base_native_proxy_wallet', type: 'address' },
{ name: 'name', type: 'string' },
{ name: 'symbol', type: 'string' },
{ name: 'decimals', type: 'uint8' },
{ name: 'payload', type: 'cell' },
],
},
{
name: 'supportsInterface',
inputs: [
{ name: 'answerId', type: 'uint32' },
{ name: 'interfaceID', type: 'uint32' },
],
outputs: [{ name: 'value0', type: 'bool' }],
},
{
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: 'requestUpgradeWallet',
inputs: [
{ name: 'currentVersion', type: 'uint32' },
{ name: 'walletOwner', type: 'address' },
{ name: 'remainingGasTo', type: 'address' },
],
outputs: [],
},
{
name: 'setWalletCode',
inputs: [{ name: 'code', type: 'cell' }],
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: '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_platform_data',
inputs: [],
outputs: [
{ name: 'value0', type: 'cell' },
{ name: 'value1', type: 'int257' },
],
},
{
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' },
{ key: 9, name: 'base_chainId_', type: 'int32' },
{ key: 10, name: 'base_token_', type: 'address' },
{ key: 11, name: 'base_native_proxy_wallet_', type: 'address' },
],
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: 'base_chainId_', type: 'int32' },
{ name: 'base_token_', type: 'address' },
{ name: 'base_native_proxy_wallet_', type: 'address' },
],
};