@broxus/js-core
Version:
MobX-based JavaScript Core library
116 lines (115 loc) • 3.97 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TokenFactoryAbi = void 0;
/**
* **TokenFactory ABI v2.7**
*
* This ABI is used for interacting with the `TokenFactory` contract on the TVM blockchain.
* @see [TokenFactory](https://github.com/broxus/tip3/blob/master/build/TokenFactory.abi.json)
*/
exports.TokenFactoryAbi = {
'ABI version': 2,
version: '2.7',
header: ['pubkey', 'time'],
functions: [
{
name: 'constructor',
inputs: [{ name: '_owner', type: 'address' }],
outputs: [],
},
{
name: 'owner',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'address' }],
},
{
name: 'pendingOwner',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'address' }],
},
{
name: 'rootCode',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'cell' }],
},
{
name: 'walletCode',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'cell' }],
},
{
name: 'walletPlatformCode',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'cell' }],
},
{
name: 'createToken',
inputs: [
{ name: 'callId', type: 'uint32' },
{ name: 'name', type: 'string' },
{ name: 'symbol', type: 'string' },
{ name: 'decimals', type: 'uint8' },
{ 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: 'transferOwner',
inputs: [
{ name: 'answerId', type: 'uint32' },
{ name: 'newOwner', type: 'address' },
],
outputs: [{ name: 'value0', type: 'address' }],
},
{
name: 'acceptOwner',
inputs: [{ name: 'answerId', type: 'uint32' }],
outputs: [{ name: 'value0', type: 'address' }],
},
{
name: 'setRootCode',
inputs: [{ name: '_rootCode', type: 'cell' }],
outputs: [],
},
{
name: 'setWalletCode',
inputs: [{ name: '_walletCode', type: 'cell' }],
outputs: [],
},
{
name: 'setWalletPlatformCode',
inputs: [{ name: '_walletPlatformCode', type: 'cell' }],
outputs: [],
},
{
name: 'upgrade',
inputs: [{ name: 'code', type: 'cell' }],
outputs: [],
},
],
getters: [],
events: [
{
name: 'TokenCreated',
inputs: [{ name: 'tokenRoot', type: 'address' }],
outputs: [],
},
],
fields: [
{ init: true, name: '_pubkey', type: 'fixedbytes32' },
{ init: false, name: '_timestamp', type: 'uint64' },
{ init: false, name: '_constructorFlag', type: 'bool' },
{ init: true, name: 'randomNonce_', type: 'uint32' },
{ init: false, name: 'owner_', type: 'address' },
{ init: false, name: 'pendingOwner_', type: 'address' },
{ init: false, name: 'rootCode_', type: 'cell' },
{ init: false, name: 'walletCode_', type: 'cell' },
{ init: false, name: 'walletPlatformCode_', type: 'cell' },
],
};