@nodeset/contracts
Version:
Protocol for accessing NodeSet's Constellation Ethereum staking network
1,775 lines (1,748 loc) • 896 kB
text/typescript
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AddressQueueStorage
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const addressQueueStorageAbi = [
{
type: 'constructor',
inputs: [
{
name: '_rocketStorageAddress',
internalType: 'contract RocketStorageInterface',
type: 'address',
},
],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'capacity',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: '_key', internalType: 'bytes32', type: 'bytes32' }],
name: 'dequeueItem',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'enqueueItem',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'getIndexOf',
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_index', internalType: 'uint256', type: 'uint256' },
],
name: 'getItem',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: '_key', internalType: 'bytes32', type: 'bytes32' }],
name: 'getLength',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'removeItem',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'version',
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
stateMutability: 'view',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AddressQueueStorageInterface
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const addressQueueStorageInterfaceAbi = [
{
type: 'function',
inputs: [{ name: '_key', internalType: 'bytes32', type: 'bytes32' }],
name: 'dequeueItem',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'enqueueItem',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'getIndexOf',
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_index', internalType: 'uint256', type: 'uint256' },
],
name: 'getItem',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: '_key', internalType: 'bytes32', type: 'bytes32' }],
name: 'getLength',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'removeItem',
outputs: [],
stateMutability: 'nonpayable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AddressSetStorage
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const addressSetStorageAbi = [
{
type: 'constructor',
inputs: [
{
name: '_rocketStorageAddress',
internalType: 'contract RocketStorageInterface',
type: 'address',
},
],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'addItem',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: '_key', internalType: 'bytes32', type: 'bytes32' }],
name: 'getCount',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'getIndexOf',
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_index', internalType: 'uint256', type: 'uint256' },
],
name: 'getItem',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'removeItem',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'version',
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
stateMutability: 'view',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AddressSetStorageInterface
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const addressSetStorageInterfaceAbi = [
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'addItem',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: '_key', internalType: 'bytes32', type: 'bytes32' }],
name: 'getCount',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'getIndexOf',
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_index', internalType: 'uint256', type: 'uint256' },
],
name: 'getItem',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: '_key', internalType: 'bytes32', type: 'bytes32' },
{ name: '_value', internalType: 'address', type: 'address' },
],
name: 'removeItem',
outputs: [],
stateMutability: 'nonpayable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Constants
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const constantsAbi = [
{
type: 'function',
inputs: [],
name: 'ADMIN_ONLY_ERROR',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'CONTRACT_NOT_FOUND_ERROR',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'INITIALIZATION_ERROR',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'OPERATOR_DUPLICATE_ERROR',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'OPERATOR_NOT_FOUND_ERROR',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'TREASURER_ONLY_ERROR',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// DepositInterface
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const depositInterfaceAbi = [
{
type: 'function',
inputs: [
{ name: '_pubkey', internalType: 'bytes', type: 'bytes' },
{ name: '_withdrawalCredentials', internalType: 'bytes', type: 'bytes' },
{ name: '_signature', internalType: 'bytes', type: 'bytes' },
{ name: '_depositDataRoot', internalType: 'bytes32', type: 'bytes32' },
],
name: 'deposit',
outputs: [],
stateMutability: 'payable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Directory
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const directoryAbi = [
{ type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'previousAdmin',
internalType: 'address',
type: 'address',
indexed: false,
},
{
name: 'newAdmin',
internalType: 'address',
type: 'address',
indexed: false,
},
],
name: 'AdminChanged',
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'beacon',
internalType: 'address',
type: 'address',
indexed: true,
},
],
name: 'BeaconUpgraded',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
],
name: 'Initialized',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true },
{
name: 'previousAdminRole',
internalType: 'bytes32',
type: 'bytes32',
indexed: true,
},
{
name: 'newAdminRole',
internalType: 'bytes32',
type: 'bytes32',
indexed: true,
},
],
name: 'RoleAdminChanged',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true },
{
name: 'account',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'sender',
internalType: 'address',
type: 'address',
indexed: true,
},
],
name: 'RoleGranted',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32', indexed: true },
{
name: 'account',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'sender',
internalType: 'address',
type: 'address',
indexed: true,
},
],
name: 'RoleRevoked',
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'account',
internalType: 'address',
type: 'address',
indexed: false,
},
{
name: 'eoa_origin',
internalType: 'address',
type: 'address',
indexed: false,
},
],
name: 'SanctionViolation',
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'eoa_origin',
internalType: 'address',
type: 'address',
indexed: false,
},
],
name: 'SanctionViolation',
},
{ type: 'event', anonymous: false, inputs: [], name: 'SanctionsDisabled' },
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'implementation',
internalType: 'address',
type: 'address',
indexed: true,
},
],
name: 'Upgraded',
},
{
type: 'function',
inputs: [],
name: 'DEFAULT_ADMIN_ROLE',
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'disableSanctions',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'enableSanctions',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'getImplementation',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getMerkleClaimStreamerAddress',
outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getOperatorDistributorAddress',
outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getOperatorRewardAddress',
outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getOracleAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getPriceFetcherAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRPLAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRPLVaultAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketDAOProtocolProposalAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketDAOProtocolSettingsMinipool',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketDAOProtocolSettingsRewardsAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketDepositPoolAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketMerkleDistributorMainnetAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketMinipoolManagerAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketNetworkPenalties',
outputs: [
{
name: '',
internalType: 'contract IRocketNetworkPenalties',
type: 'address',
},
],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketNetworkPrices',
outputs: [
{
name: '',
internalType: 'contract IRocketNetworkPrices',
type: 'address',
},
],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketNetworkVotingAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketNodeDepositAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketNodeManagerAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketNodeStakingAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: '_tag', internalType: 'string', type: 'string' }],
name: 'getRocketPoolAddressByTag',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getRocketStorageAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }],
name: 'getRoleAdmin',
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getSuperNodeAddress',
outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getTreasuryAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getWETHAddress',
outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getWETHVaultAddress',
outputs: [{ name: '', internalType: 'address payable', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getWhitelistAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32' },
{ name: 'account', internalType: 'address', type: 'address' },
],
name: 'grantRole',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32' },
{ name: 'account', internalType: 'address', type: 'address' },
],
name: 'hasRole',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{
name: 'newProtocol',
internalType: 'struct Protocol',
type: 'tuple',
components: [
{ name: 'whitelist', internalType: 'address', type: 'address' },
{
name: 'wethVault',
internalType: 'address payable',
type: 'address',
},
{ name: 'rplVault', internalType: 'address', type: 'address' },
{
name: 'operatorDistributor',
internalType: 'address payable',
type: 'address',
},
{
name: 'merkleClaimStreamer',
internalType: 'address payable',
type: 'address',
},
{
name: 'operatorReward',
internalType: 'address payable',
type: 'address',
},
{ name: 'oracle', internalType: 'address', type: 'address' },
{ name: 'priceFetcher', internalType: 'address', type: 'address' },
{
name: 'superNode',
internalType: 'address payable',
type: 'address',
},
{ name: 'rocketStorage', internalType: 'address', type: 'address' },
{ name: 'weth', internalType: 'address payable', type: 'address' },
{ name: 'sanctions', internalType: 'address', type: 'address' },
],
},
{ name: 'treasury', internalType: 'address', type: 'address' },
{ name: 'treasurer', internalType: 'address', type: 'address' },
{ name: 'admin', internalType: 'address', type: 'address' },
],
name: 'initialize',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: '_account1', internalType: 'address', type: 'address' },
{ name: '_account2', internalType: 'address', type: 'address' },
],
name: 'isSanctioned',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: '_accounts', internalType: 'address[]', type: 'address[]' },
],
name: 'isSanctioned',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: '_account', internalType: 'address', type: 'address' }],
name: 'isSanctioned',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'proxiableUUID',
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32' },
{ name: 'account', internalType: 'address', type: 'address' },
],
name: 'renounceRole',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32' },
{ name: 'account', internalType: 'address', type: 'address' },
],
name: 'revokeRole',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{
name: 'newProtocol',
internalType: 'struct Protocol',
type: 'tuple',
components: [
{ name: 'whitelist', internalType: 'address', type: 'address' },
{
name: 'wethVault',
internalType: 'address payable',
type: 'address',
},
{ name: 'rplVault', internalType: 'address', type: 'address' },
{
name: 'operatorDistributor',
internalType: 'address payable',
type: 'address',
},
{
name: 'merkleClaimStreamer',
internalType: 'address payable',
type: 'address',
},
{
name: 'operatorReward',
internalType: 'address payable',
type: 'address',
},
{ name: 'oracle', internalType: 'address', type: 'address' },
{ name: 'priceFetcher', internalType: 'address', type: 'address' },
{
name: 'superNode',
internalType: 'address payable',
type: 'address',
},
{ name: 'rocketStorage', internalType: 'address', type: 'address' },
{ name: 'weth', internalType: 'address payable', type: 'address' },
{ name: 'sanctions', internalType: 'address', type: 'address' },
],
},
],
name: 'setAll',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: 'newOracle', internalType: 'address', type: 'address' }],
name: 'setOracle',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: 'newTreasury', internalType: 'address', type: 'address' }],
name: 'setTreasurer',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
name: 'supportsInterface',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'newImplementation', internalType: 'address', type: 'address' },
],
name: 'upgradeTo',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'newImplementation', internalType: 'address', type: 'address' },
{ name: 'data', internalType: 'bytes', type: 'bytes' },
],
name: 'upgradeToAndCall',
outputs: [],
stateMutability: 'payable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ERC20
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const erc20Abi = [
{
type: 'constructor',
inputs: [
{ name: 'name_', internalType: 'string', type: 'string' },
{ name: 'symbol_', internalType: 'string', type: 'string' },
],
stateMutability: 'nonpayable',
},
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'owner',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'spender',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Approval',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Transfer',
},
{
type: 'function',
inputs: [
{ name: 'owner', internalType: 'address', type: 'address' },
{ name: 'spender', internalType: 'address', type: 'address' },
],
name: 'allowance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'approve',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'decimals',
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'subtractedValue', internalType: 'uint256', type: 'uint256' },
],
name: 'decreaseAllowance',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'addedValue', internalType: 'uint256', type: 'uint256' },
],
name: 'increaseAllowance',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'name',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'symbol',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'recipient', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transfer',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'sender', internalType: 'address', type: 'address' },
{ name: 'recipient', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transferFrom',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ERC20Burnable
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const erc20BurnableAbi = [
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'owner',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'spender',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Approval',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Transfer',
},
{
type: 'function',
inputs: [
{ name: 'owner', internalType: 'address', type: 'address' },
{ name: 'spender', internalType: 'address', type: 'address' },
],
name: 'allowance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'approve',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
name: 'burn',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'account', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'burnFrom',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'decimals',
outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'subtractedValue', internalType: 'uint256', type: 'uint256' },
],
name: 'decreaseAllowance',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'addedValue', internalType: 'uint256', type: 'uint256' },
],
name: 'increaseAllowance',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'name',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'symbol',
outputs: [{ name: '', internalType: 'string', type: 'string' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'recipient', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transfer',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'sender', internalType: 'address', type: 'address' },
{ name: 'recipient', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transferFrom',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Errors
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const errorsAbi = [
{
type: 'error',
inputs: [
{ name: 'expectedBondAmount', internalType: 'uint256', type: 'uint256' },
{ name: 'actualBondAmount', internalType: 'uint256', type: 'uint256' },
],
name: 'BadBondAmount',
},
{
type: 'error',
inputs: [
{ name: 'expected', internalType: 'address', type: 'address' },
{ name: 'actual', internalType: 'address', type: 'address' },
],
name: 'BadPredictedCreation',
},
{
type: 'error',
inputs: [
{ name: 'role', internalType: 'bytes32', type: 'bytes32' },
{ name: 'user', internalType: 'address', type: 'address' },
],
name: 'BadRole',
},
{
type: 'error',
inputs: [
{ name: 'expectedSender', internalType: 'address', type: 'address' },
],
name: 'BadSender',
},
{
type: 'error',
inputs: [
{ name: 'expectedBalance', internalType: 'uint256', type: 'uint256' },
{ name: 'actualBalance', internalType: 'uint256', type: 'uint256' },
],
name: 'InsufficientBalance',
},
{
type: 'error',
inputs: [
{ name: 'success', internalType: 'bool', type: 'bool' },
{ name: 'data', internalType: 'bytes', type: 'bytes' },
],
name: 'LowLevelCall',
},
{
type: 'error',
inputs: [
{ name: 'success', internalType: 'bool', type: 'bool' },
{ name: 'data', internalType: 'bytes', type: 'bytes' },
],
name: 'LowLevelEthTransfer',
},
{
type: 'error',
inputs: [{ name: 'addr', internalType: 'address', type: 'address' }],
name: 'NotAContract',
},
{ type: 'error', inputs: [], name: 'ZeroAddressError' },
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// IConstellationOracle
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const iConstellationOracleAbi = [
{
type: 'function',
inputs: [],
name: 'getLastUpdatedTotalYieldAccrued',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getTotalYieldAccrued',
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
stateMutability: 'view',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// IERC20
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const ierc20Abi = [
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'owner',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'spender',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Approval',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Transfer',
},
{
type: 'function',
inputs: [
{ name: 'owner', internalType: 'address', type: 'address' },
{ name: 'spender', internalType: 'address', type: 'address' },
],
name: 'allowance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'approve',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transfer',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'from', internalType: 'address', type: 'address' },
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transferFrom',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// IERC20Burnable
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const ierc20BurnableAbi = [
{
type: 'event',
anonymous: false,
inputs: [
{
name: 'owner',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'spender',
internalType: 'address',
type: 'address',
indexed: true,
},
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Approval',
},
{
type: 'event',
anonymous: false,
inputs: [
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
{
name: 'value',
internalType: 'uint256',
type: 'uint256',
indexed: false,
},
],
name: 'Transfer',
},
{
type: 'function',
inputs: [
{ name: 'owner', internalType: 'address', type: 'address' },
{ name: 'spender', internalType: 'address', type: 'address' },
],
name: 'allowance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'spender', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'approve',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: 'account', internalType: 'address', type: 'address' }],
name: 'balanceOf',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
name: 'burn',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'account', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'burnFrom',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'totalSupply',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transfer',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [
{ name: 'from', internalType: 'address', type: 'address' },
{ name: 'to', internalType: 'address', type: 'address' },
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
],
name: 'transferFrom',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'nonpayable',
},
] as const
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// IMinipool
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
export const iMinipoolAbi = [
{
type: 'function',
inputs: [],
name: 'beginUserDistribute',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: '_balance', internalType: 'uint256', type: 'uint256' }],
name: 'calculateNodeShare',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: '_balance', internalType: 'uint256', type: 'uint256' }],
name: 'calculateUserShare',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'canPromote',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'canStake',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'close',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'delegateRollback',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'delegateUpgrade',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'deposit',
outputs: [],
stateMutability: 'payable',
},
{
type: 'function',
inputs: [],
name: 'dissolve',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [{ name: '_rewardsOnly', internalType: 'bool', type: 'bool' }],
name: 'distributeBalance',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'finalise',
outputs: [],
stateMutability: 'nonpayable',
},
{
type: 'function',
inputs: [],
name: 'getFinalised',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getNodeAddress',
outputs: [{ name: '', internalType: 'address', type: 'address' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getNodeDepositAssigned',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getNodeDepositBalance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getNodeFee',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getNodeRefundBalance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getNodeTopUpValue',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getPreLaunchValue',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getPreMigrationBalance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [{ name: '_member', internalType: 'address', type: 'address' }],
name: 'getScrubVoted',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getStatus',
outputs: [{ name: '', internalType: 'enum MinipoolStatus', type: 'uint8' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getStatusBlock',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getStatusTime',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getTotalScrubVotes',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getUserDepositAssigned',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getUserDepositAssignedTime',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getUserDepositBalance',
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getUserDistributed',
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
stateMutability: 'view',
},
{
type: 'function',
inputs: [],
name: 'getVacant',
outputs: [{ name: '