@sei-js/evm
Version:
TypeScript library for EVM interactions on the Sei blockchain
79 lines (78 loc) • 3.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DISTRIBUTION_PRECOMPILE_ABI = exports.DISTRIBUTION_PRECOMPILE_ADDRESS = void 0;
/**
* The address of the Distribution precompile contract.
* @category Cosmos Interoperability
*/
exports.DISTRIBUTION_PRECOMPILE_ADDRESS = '0x0000000000000000000000000000000000001007';
/**
* The ABI for the Distribution precompile contract.
* @category Cosmos Interoperability
*/
exports.DISTRIBUTION_PRECOMPILE_ABI = [
{
inputs: [{ internalType: 'address', name: 'withdrawAddr', type: 'address' }],
name: 'setWithdrawAddress',
outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [{ internalType: 'string', name: 'validator', type: 'string' }],
name: 'withdrawDelegationRewards',
outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [{ internalType: 'string[]', name: 'validators', type: 'string[]' }],
name: 'withdrawMultipleDelegationRewards',
outputs: [{ internalType: 'bool', name: 'success', type: 'bool' }],
stateMutability: 'nonpayable',
type: 'function'
},
{
inputs: [{ internalType: 'address', name: 'delegatorAddress', type: 'address' }],
name: 'rewards',
outputs: [
{
components: [
{
components: [
{
components: [
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{ internalType: 'uint256', name: 'decimals', type: 'uint256' },
{ internalType: 'string', name: 'denom', type: 'string' }
],
internalType: 'struct Coin[]',
name: 'coins',
type: 'tuple[]'
},
{ internalType: 'string', name: 'validator_address', type: 'string' }
],
internalType: 'struct Reward[]',
name: 'rewards',
type: 'tuple[]'
},
{
components: [
{ internalType: 'uint256', name: 'amount', type: 'uint256' },
{ internalType: 'uint256', name: 'decimals', type: 'uint256' },
{ internalType: 'string', name: 'denom', type: 'string' }
],
internalType: 'struct Coin[]',
name: 'total',
type: 'tuple[]'
}
],
internalType: 'struct Rewards',
name: 'rewards',
type: 'tuple'
}
],
stateMutability: 'view',
type: 'function'
}
];