@sei-js/evm
Version:
TypeScript library for EVM interactions on the Sei blockchain
89 lines (88 loc) • 3.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BANK_PRECOMPILE_ABI = exports.BANK_PRECOMPILE_ADDRESS = void 0;
/**
* The address of the Bank precompile contract.
* @category Cosmos Interoperability
*/
exports.BANK_PRECOMPILE_ADDRESS = '0x0000000000000000000000000000000000001001';
/**
* The ABI for the Bank precompile contract.
* @category Cosmos Interoperability
*/
exports.BANK_PRECOMPILE_ABI = [
{
inputs: [{ internalType: 'address', name: 'acc', type: 'address' }],
name: 'all_balances',
outputs: [
{
components: [
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{ internalType: 'string', name: 'denom', type: 'string' }
],
internalType: 'struct IBank.Coin[]',
name: 'response',
type: 'tuple[]'
}
],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'acc', type: 'address' },
{ internalType: 'string', name: 'denom', type: 'string' }
],
name: 'balance',
outputs: [{ internalType: 'uint256', name: 'amount', type: 'uint256' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [{ internalType: 'string', name: 'denom', type: 'string' }],
name: 'decimals',
outputs: [{ internalType: 'uint8', name: 'response', type: 'uint8' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [{ internalType: 'string', name: 'denom', type: 'string' }],
name: 'name',
outputs: [{ internalType: 'string', name: 'response', type: 'string' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [
{ internalType: 'address', name: 'fromAddress', type: 'address' },
{ internalType: 'address', name: 'toAddress', type: 'address' },
{ internalType: 'string', name: 'denom', type: 'string' },
{ internalType: 'uint256', name: 'amount', type: 'uint256' }
],
name: 'send',
outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [{ internalType: 'string', name: 'toNativeAddress', type: 'string' }],
name: 'sendNative',
outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }],
stateMutability: 'payable',
type: 'function'
},
{
inputs: [{ internalType: 'string', name: 'denom', type: 'string' }],
name: 'supply',
outputs: [{ internalType: 'uint256', name: 'response', type: 'uint256' }],
stateMutability: 'view',
type: 'function'
},
{
inputs: [{ internalType: 'string', name: 'denom', type: 'string' }],
name: 'symbol',
outputs: [{ internalType: 'string', name: 'response', type: 'string' }],
stateMutability: 'view',
type: 'function'
}
];