Variable BANK_PRECOMPILE_ABIConst
BANK_PRECOMPILE_ABI: readonly [
{
inputs: readonly [
{ internalType: "address"; name: "acc"; type: "address" },
];
name: "all_balances";
outputs: readonly [
{
components: readonly [
{ 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: readonly [
{ internalType: "address"; name: "acc"; type: "address" },
{ internalType: "string"; name: "denom"; type: "string" },
];
name: "balance";
outputs: readonly [
{ internalType: "uint256"; name: "amount"; type: "uint256" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "string"; name: "denom"; type: "string" },
];
name: "decimals";
outputs: readonly [
{ internalType: "uint8"; name: "response"; type: "uint8" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "string"; name: "denom"; type: "string" },
];
name: "name";
outputs: readonly [
{ internalType: "string"; name: "response"; type: "string" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ 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: readonly [
{ internalType: "bool"; name: "success"; type: "bool" },
];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "string"; name: "toNativeAddress"; type: "string" },
];
name: "sendNative";
outputs: readonly [
{ internalType: "bool"; name: "success"; type: "bool" },
];
stateMutability: "payable";
type: "function";
},
{
inputs: readonly [
{ internalType: "string"; name: "denom"; type: "string" },
];
name: "supply";
outputs: readonly [
{ internalType: "uint256"; name: "response"; type: "uint256" },
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "string"; name: "denom"; type: "string" },
];
name: "symbol";
outputs: readonly [
{ internalType: "string"; name: "response"; type: "string" },
];
stateMutability: "view";
type: "function";
},
] = ...
The ABI for the Bank precompile contract.