Variable STAKING_PRECOMPILE_ABIConst
STAKING_PRECOMPILE_ABI: readonly [
{
inputs: readonly [
{ internalType: "string"; name: "valAddress"; type: "string" },
];
name: "delegate";
outputs: readonly [
{ internalType: "bool"; name: "success"; type: "bool" },
];
stateMutability: "payable";
type: "function";
},
{
inputs: readonly [
{ internalType: "string"; name: "srcAddress"; type: "string" },
{ internalType: "string"; name: "dstAddress"; type: "string" },
{ internalType: "uint256"; name: "amount"; type: "uint256" },
];
name: "redelegate";
outputs: readonly [
{ internalType: "bool"; name: "success"; type: "bool" },
];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "string"; name: "valAddress"; type: "string" },
{ internalType: "uint256"; name: "amount"; type: "uint256" },
];
name: "undelegate";
outputs: readonly [
{ internalType: "bool"; name: "success"; type: "bool" },
];
stateMutability: "nonpayable";
type: "function";
},
{
inputs: readonly [
{ internalType: "address"; name: "delegator"; type: "address" },
{ internalType: "string"; name: "valAddress"; type: "string" },
];
name: "delegation";
outputs: readonly [
{
components: readonly [
{
components: readonly [
{ internalType: "uint256"; name: "amount"; type: "uint256" },
{ internalType: "string"; name: "denom"; type: "string" },
];
internalType: "struct Balance";
name: "balance";
type: "tuple";
},
{
components: readonly [
{
internalType: "string";
name: "delegator_address";
type: "string";
},
{ internalType: "uint256"; name: "shares"; type: "uint256" },
{ internalType: "uint256"; name: "decimals"; type: "uint256" },
{ internalType: "string"; name: "validator_address"; type: "string" },
];
internalType: "struct DelegationDetails";
name: "delegation";
type: "tuple";
},
];
internalType: "struct Delegation";
name: "delegation";
type: "tuple";
},
];
stateMutability: "view";
type: "function";
},
] = ...
The ABI for the Staking precompile contract.