diff --git a/scripts/configs/abis.ts b/scripts/configs/abis.ts index dc538ce9..5881a96e 100644 --- a/scripts/configs/abis.ts +++ b/scripts/configs/abis.ts @@ -28,6 +28,7 @@ export const ABI_INTERFACES = [ 'IPool', 'IPoolAddressesProvider', 'IPoolConfigurator', + 'IStakeToken', ]; export const DOWNLOAD_ABI_INTERFACES = [ @@ -51,10 +52,6 @@ export const DOWNLOAD_ABI_INTERFACES = [ address: mainnetProtoV3Pool.additionalAddresses.UI_POOL_DATA_PROVIDER, name: 'IUiPoolDataProvider', }, - { - address: '0x50f9d4e28309303f0cdcac8af0b569e8b75ab857', - name: 'IStakeToken', - }, { address: '0x5D4Aa78B08Bc7C530e21bf7447988b1Be7991322', name: 'IAaveToken', diff --git a/src/common/IStakeToken.sol b/src/common/IStakeToken.sol index b64434c5..412bb230 100644 --- a/src/common/IStakeToken.sol +++ b/src/common/IStakeToken.sol @@ -1,6 +1,6 @@ pragma solidity ^0.8.10; -interface StakeToken { +interface IStakeToken { event Approval(address indexed owner, address indexed spender, uint256 value); event AssetConfigUpdated(address indexed asset, uint256 emission); event AssetIndexUpdated(address indexed asset, uint256 index); diff --git a/src/ts/abis/IAggregatedStakeToken.ts b/src/ts/abis/IAggregatedStakeToken.ts deleted file mode 100644 index 8ae9800a..00000000 --- a/src/ts/abis/IAggregatedStakeToken.ts +++ /dev/null @@ -1,153 +0,0 @@ -// AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR -export const IAggregatedStakeToken_ABI = [ - { - inputs: [ - { - internalType: 'address', - name: '_logic', - type: 'address', - components: [], - }, - { - internalType: 'address', - name: 'admin_', - type: 'address', - components: [], - }, - { - internalType: 'bytes', - name: '_data', - type: 'bytes', - components: [], - }, - ], - stateMutability: 'payable', - type: 'constructor', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'previousAdmin', - type: 'address', - components: [], - indexed: false, - }, - { - internalType: 'address', - name: 'newAdmin', - type: 'address', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'AdminChanged', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'implementation', - type: 'address', - components: [], - indexed: true, - }, - ], - type: 'event', - name: 'Upgraded', - outputs: [], - anonymous: false, - }, - { - inputs: [], - stateMutability: 'payable', - type: 'fallback', - outputs: [], - }, - { - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - name: 'admin', - outputs: [ - { - internalType: 'address', - name: 'admin_', - type: 'address', - components: [], - }, - ], - }, - { - inputs: [ - { - internalType: 'address', - name: 'newAdmin', - type: 'address', - components: [], - }, - ], - stateMutability: 'nonpayable', - type: 'function', - name: 'changeAdmin', - outputs: [], - }, - { - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - name: 'implementation', - outputs: [ - { - internalType: 'address', - name: 'implementation_', - type: 'address', - components: [], - }, - ], - }, - { - inputs: [ - { - internalType: 'address', - name: 'newImplementation', - type: 'address', - components: [], - }, - ], - stateMutability: 'nonpayable', - type: 'function', - name: 'upgradeTo', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'newImplementation', - type: 'address', - components: [], - }, - { - internalType: 'bytes', - name: 'data', - type: 'bytes', - components: [], - }, - ], - stateMutability: 'payable', - type: 'function', - name: 'upgradeToAndCall', - outputs: [], - }, - { - inputs: [], - stateMutability: 'payable', - type: 'receive', - outputs: [], - }, -] as const; diff --git a/src/ts/abis/IGovernanceDataHelper.ts b/src/ts/abis/IGovernanceDataHelper.ts index 70d0ca25..37789a6f 100644 --- a/src/ts/abis/IGovernanceDataHelper.ts +++ b/src/ts/abis/IGovernanceDataHelper.ts @@ -1,272 +1,235 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IGovernanceDataHelper_ABI = [ { + type: 'function', + name: 'getConstants', inputs: [ { - internalType: 'contract IGovernanceCore', name: 'govCore', type: 'address', - components: [], + internalType: 'contract IGovernanceCore', }, { - internalType: 'enum PayloadsControllerUtils.AccessControl[]', name: 'accessLevels', type: 'uint8[]', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl[]', }, ], - stateMutability: 'view', - type: 'function', - name: 'getConstants', outputs: [ { - internalType: 'struct IGovernanceDataHelper.Constants', name: '', type: 'tuple', + internalType: 'struct IGovernanceDataHelper.Constants', components: [ { - internalType: 'struct IGovernanceDataHelper.VotingConfig[]', name: 'votingConfigs', type: 'tuple[]', + internalType: 'struct IGovernanceDataHelper.VotingConfig[]', components: [ { - internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl', }, { - internalType: 'struct IGovernanceCore.VotingConfig', name: 'config', type: 'tuple', + internalType: 'struct IGovernanceCore.VotingConfig', components: [ { - internalType: 'uint24', name: 'coolDownBeforeVotingStart', type: 'uint24', - components: [], + internalType: 'uint24', }, { - internalType: 'uint24', name: 'votingDuration', type: 'uint24', - components: [], + internalType: 'uint24', }, { - internalType: 'uint56', name: 'yesThreshold', type: 'uint56', - components: [], + internalType: 'uint56', }, { - internalType: 'uint56', name: 'yesNoDifferential', type: 'uint56', - components: [], + internalType: 'uint56', }, { - internalType: 'uint56', name: 'minPropositionPower', type: 'uint56', - components: [], + internalType: 'uint56', }, ], }, ], }, { - internalType: 'uint256', name: 'precisionDivider', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'cooldownPeriod', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'expirationTime', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'cancellationFee', type: 'uint256', - components: [], + internalType: 'uint256', }, ], }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getProposalsData', inputs: [ { - internalType: 'contract IGovernanceCore', name: 'govCore', type: 'address', - components: [], + internalType: 'contract IGovernanceCore', }, { - internalType: 'uint256', name: 'from', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'to', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'pageSize', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'getProposalsData', outputs: [ { - internalType: 'struct IGovernanceDataHelper.Proposal[]', name: '', type: 'tuple[]', + internalType: 'struct IGovernanceDataHelper.Proposal[]', components: [ { - internalType: 'uint256', name: 'id', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'votingChainId', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'struct IGovernanceCore.Proposal', name: 'proposalData', type: 'tuple', + internalType: 'struct IGovernanceCore.Proposal', components: [ { - internalType: 'enum IGovernanceCore.State', name: 'state', type: 'uint8', - components: [], + internalType: 'enum IGovernanceCore.State', }, { - internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl', }, { - internalType: 'uint40', name: 'creationTime', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint24', name: 'votingDuration', type: 'uint24', - components: [], + internalType: 'uint24', }, { - internalType: 'uint40', name: 'votingActivationTime', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'queuingTime', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'cancelTimestamp', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'address', name: 'creator', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'votingPortal', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'bytes32', name: 'snapshotBlockHash', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'bytes32', name: 'ipfsHash', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'uint128', name: 'forVotes', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'againstVotes', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint256', name: 'cancellationFee', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'struct PayloadsControllerUtils.Payload[]', name: 'payloads', type: 'tuple[]', + internalType: 'struct PayloadsControllerUtils.Payload[]', components: [ { - internalType: 'uint256', name: 'chain', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl', }, { - internalType: 'address', name: 'payloadsController', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint40', name: 'payloadId', type: 'uint40', - components: [], + internalType: 'uint40', }, ], }, @@ -275,70 +238,64 @@ export const IGovernanceDataHelper_ABI = [ ], }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getRepresentationData', inputs: [ { - internalType: 'contract IGovernanceCore', name: 'govCore', type: 'address', - components: [], + internalType: 'contract IGovernanceCore', }, { - internalType: 'address', name: 'wallet', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256[]', name: 'chainIds', type: 'uint256[]', - components: [], + internalType: 'uint256[]', }, ], - stateMutability: 'view', - type: 'function', - name: 'getRepresentationData', outputs: [ { - internalType: 'struct IGovernanceDataHelper.Representatives[]', name: '', type: 'tuple[]', + internalType: 'struct IGovernanceDataHelper.Representatives[]', components: [ { - internalType: 'uint256', name: 'chainId', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', name: 'representative', type: 'address', - components: [], + internalType: 'address', }, ], }, { - internalType: 'struct IGovernanceDataHelper.Represented[]', name: '', type: 'tuple[]', + internalType: 'struct IGovernanceDataHelper.Represented[]', components: [ { - internalType: 'uint256', name: 'chainId', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address[]', name: 'votersRepresented', type: 'address[]', - components: [], + internalType: 'address[]', }, ], }, ], + stateMutability: 'view', }, ] as const; diff --git a/src/ts/abis/IMetaDelegateHelper.ts b/src/ts/abis/IMetaDelegateHelper.ts index 87feb884..3ea2ee91 100644 --- a/src/ts/abis/IMetaDelegateHelper.ts +++ b/src/ts/abis/IMetaDelegateHelper.ts @@ -1,66 +1,58 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IMetaDelegateHelper_ABI = [ { + type: 'function', + name: 'batchMetaDelegate', inputs: [ { - internalType: 'struct IMetaDelegateHelper.MetaDelegateParams[]', name: 'delegateParams', type: 'tuple[]', + internalType: 'struct IMetaDelegateHelper.MetaDelegateParams[]', components: [ { - internalType: 'contract IGovernancePowerDelegationToken', name: 'underlyingAsset', type: 'address', - components: [], + internalType: 'contract IGovernancePowerDelegationToken', }, { - internalType: 'enum IMetaDelegateHelper.DelegationType', name: 'delegationType', type: 'uint8', - components: [], + internalType: 'enum IMetaDelegateHelper.DelegationType', }, { - internalType: 'address', name: 'delegator', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'delegatee', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'deadline', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint8', name: 'v', type: 'uint8', - components: [], + internalType: 'uint8', }, { - internalType: 'bytes32', name: 'r', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'bytes32', name: 's', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'batchMetaDelegate', outputs: [], + stateMutability: 'nonpayable', }, ] as const; diff --git a/src/ts/abis/IPayloadsControllerDataHelper.ts b/src/ts/abis/IPayloadsControllerDataHelper.ts index 2d2b3b79..2732b2f9 100644 --- a/src/ts/abis/IPayloadsControllerDataHelper.ts +++ b/src/ts/abis/IPayloadsControllerDataHelper.ts @@ -1,193 +1,168 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IPayloadsControllerDataHelper_ABI = [ { + type: 'function', + name: 'getExecutorConfigs', inputs: [ { - internalType: 'contract IPayloadsController', name: 'payloadsController', type: 'address', - components: [], + internalType: 'contract IPayloadsController', }, { - internalType: 'enum PayloadsControllerUtils.AccessControl[]', name: 'accessLevels', type: 'uint8[]', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl[]', }, ], - stateMutability: 'view', - type: 'function', - name: 'getExecutorConfigs', outputs: [ { - internalType: 'struct IPayloadsControllerDataHelper.ExecutorConfig[]', name: '', type: 'tuple[]', + internalType: 'struct IPayloadsControllerDataHelper.ExecutorConfig[]', components: [ { - internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl', }, { - internalType: 'struct IPayloadsControllerCore.ExecutorConfig', name: 'config', type: 'tuple', + internalType: 'struct IPayloadsControllerCore.ExecutorConfig', components: [ { - internalType: 'address', name: 'executor', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint40', name: 'delay', type: 'uint40', - components: [], + internalType: 'uint40', }, ], }, ], }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getPayloadsData', inputs: [ { - internalType: 'contract IPayloadsController', name: 'payloadsController', type: 'address', - components: [], + internalType: 'contract IPayloadsController', }, { - internalType: 'uint40[]', name: 'payloadsIds', type: 'uint40[]', - components: [], + internalType: 'uint40[]', }, ], - stateMutability: 'view', - type: 'function', - name: 'getPayloadsData', outputs: [ { - internalType: 'struct IPayloadsControllerDataHelper.Payload[]', name: '', type: 'tuple[]', + internalType: 'struct IPayloadsControllerDataHelper.Payload[]', components: [ { - internalType: 'uint256', name: 'id', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'struct IPayloadsControllerCore.Payload', name: 'data', type: 'tuple', + internalType: 'struct IPayloadsControllerCore.Payload', components: [ { - internalType: 'address', name: 'creator', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'maximumAccessLevelRequired', type: 'uint8', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl', }, { - internalType: 'enum IPayloadsControllerCore.PayloadState', name: 'state', type: 'uint8', - components: [], + internalType: 'enum IPayloadsControllerCore.PayloadState', }, { - internalType: 'uint40', name: 'createdAt', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'queuedAt', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'executedAt', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'cancelledAt', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'expirationTime', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'delay', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'gracePeriod', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', name: 'actions', type: 'tuple[]', + internalType: 'struct IPayloadsControllerCore.ExecutionAction[]', components: [ { - internalType: 'address', name: 'target', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'bool', name: 'withDelegateCall', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'enum PayloadsControllerUtils.AccessControl', name: 'accessLevel', type: 'uint8', - components: [], + internalType: 'enum PayloadsControllerUtils.AccessControl', }, { - internalType: 'uint256', name: 'value', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'string', name: 'signature', type: 'string', - components: [], + internalType: 'string', }, { - internalType: 'bytes', name: 'callData', type: 'bytes', - components: [], + internalType: 'bytes', }, ], }, @@ -196,5 +171,6 @@ export const IPayloadsControllerDataHelper_ABI = [ ], }, ], + stateMutability: 'view', }, ] as const; diff --git a/src/ts/abis/IStakeToken.ts b/src/ts/abis/IStakeToken.ts index 238f609c..0b6e7304 100644 --- a/src/ts/abis/IStakeToken.ts +++ b/src/ts/abis/IStakeToken.ts @@ -1,2007 +1,1500 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IStakeToken_ABI = [ { - inputs: [ - { - internalType: 'string', - name: 'name', - type: 'string', - components: [], - }, - { - internalType: 'contract IERC20', - name: 'stakedToken', - type: 'address', - components: [], - }, - { - internalType: 'contract IERC20', - name: 'rewardToken', - type: 'address', - components: [], - }, - { - internalType: 'uint256', - name: 'unstakeWindow', - type: 'uint256', - components: [], - }, - { - internalType: 'address', - name: 'rewardsVault', - type: 'address', - components: [], - }, - { - internalType: 'address', - name: 'emissionManager', - type: 'address', - components: [], - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'target', - type: 'address', - components: [], - }, - ], - type: 'error', - name: 'AddressEmptyCode', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - components: [], - }, - ], - type: 'error', - name: 'AddressInsufficientBalance', - outputs: [], - }, - { + type: 'function', + name: 'CLAIM_HELPER_ROLE', inputs: [], - type: 'error', - name: 'ECDSAInvalidSignature', - outputs: [], - }, - { - inputs: [ - { - internalType: 'uint256', - name: 'length', - type: 'uint256', - components: [], - }, - ], - type: 'error', - name: 'ECDSAInvalidSignatureLength', - outputs: [], - }, - { - inputs: [ - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - components: [], - }, - ], - type: 'error', - name: 'ECDSAInvalidSignatureS', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'spender', - type: 'address', - components: [], - }, + outputs: [ { - internalType: 'uint256', - name: 'allowance', + name: '', type: 'uint256', - components: [], - }, - { internalType: 'uint256', - name: 'needed', - type: 'uint256', - components: [], }, ], - type: 'error', - name: 'ERC20InsufficientAllowance', - outputs: [], + stateMutability: 'view', }, { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - components: [], - }, + type: 'function', + name: 'COOLDOWN_ADMIN_ROLE', + inputs: [], + outputs: [ { - internalType: 'uint256', - name: 'balance', + name: '', type: 'uint256', - components: [], - }, - { internalType: 'uint256', - name: 'needed', - type: 'uint256', - components: [], - }, - ], - type: 'error', - name: 'ERC20InsufficientBalance', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'approver', - type: 'address', - components: [], }, ], - type: 'error', - name: 'ERC20InvalidApprover', - outputs: [], + stateMutability: 'view', }, { - inputs: [ + type: 'function', + name: 'DOMAIN_SEPARATOR', + inputs: [], + outputs: [ { - internalType: 'address', - name: 'receiver', - type: 'address', - components: [], + name: '', + type: 'bytes32', + internalType: 'bytes32', }, ], - type: 'error', - name: 'ERC20InvalidReceiver', - outputs: [], + stateMutability: 'view', }, { - inputs: [ + type: 'function', + name: 'EMISSION_MANAGER', + inputs: [], + outputs: [ { - internalType: 'address', - name: 'sender', + name: '', type: 'address', - components: [], - }, - ], - type: 'error', - name: 'ERC20InvalidSender', - outputs: [], - }, - { - inputs: [ - { internalType: 'address', - name: 'spender', - type: 'address', - components: [], }, ], - type: 'error', - name: 'ERC20InvalidSpender', - outputs: [], + stateMutability: 'view', }, { - inputs: [ + type: 'function', + name: 'EXCHANGE_RATE_UNIT', + inputs: [], + outputs: [ { - internalType: 'uint256', - name: 'deadline', + name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - type: 'error', - name: 'ERC2612ExpiredSignature', - outputs: [], + stateMutability: 'view', }, { - inputs: [ - { - internalType: 'address', - name: 'signer', - type: 'address', - components: [], - }, + type: 'function', + name: 'INITIAL_EXCHANGE_RATE', + inputs: [], + outputs: [ { - internalType: 'address', - name: 'owner', - type: 'address', - components: [], + name: '', + type: 'uint216', + internalType: 'uint216', }, ], - type: 'error', - name: 'ERC2612InvalidSigner', - outputs: [], + stateMutability: 'view', }, { + type: 'function', + name: 'LOWER_BOUND', inputs: [], - type: 'error', - name: 'FailedInnerCall', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'account', - type: 'address', - components: [], - }, + outputs: [ { - internalType: 'uint256', - name: 'currentNonce', + name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - type: 'error', - name: 'InvalidAccountNonce', - outputs: [], - }, - { - inputs: [], - type: 'error', - name: 'InvalidInitialization', - outputs: [], - }, - { - inputs: [], - type: 'error', - name: 'InvalidShortString', - outputs: [], + stateMutability: 'view', }, { + type: 'function', + name: 'PRECISION', inputs: [], - type: 'error', - name: 'NotInitializing', - outputs: [], - }, - { - inputs: [ + outputs: [ { - internalType: 'uint8', - name: 'bits', + name: '', type: 'uint8', - components: [], - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - components: [], + internalType: 'uint8', }, ], - type: 'error', - name: 'SafeCastOverflowedUintDowncast', - outputs: [], + stateMutability: 'view', }, { - inputs: [ + type: 'function', + name: 'REWARDS_VAULT', + inputs: [], + outputs: [ { - internalType: 'address', - name: 'token', + name: '', type: 'address', - components: [], - }, - ], - type: 'error', - name: 'SafeERC20FailedOperation', - outputs: [], - }, - { - inputs: [ - { - internalType: 'string', - name: 'str', - type: 'string', - components: [], + internalType: 'address', }, ], - type: 'error', - name: 'StringTooLong', - outputs: [], + stateMutability: 'view', }, { - inputs: [ + type: 'function', + name: 'REWARD_TOKEN', + inputs: [], + outputs: [ { - internalType: 'address', - name: 'owner', + name: '', type: 'address', - components: [], - indexed: true, - }, - { internalType: 'address', - name: 'spender', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'uint256', - name: 'value', - type: 'uint256', - components: [], - indexed: false, }, ], - type: 'event', - name: 'Approval', - outputs: [], - anonymous: false, + stateMutability: 'view', }, { - inputs: [ - { - internalType: 'address', - name: 'asset', - type: 'address', - components: [], - indexed: true, - }, + type: 'function', + name: 'SLASH_ADMIN_ROLE', + inputs: [], + outputs: [ { - internalType: 'uint256', - name: 'emission', + name: '', type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'AssetConfigUpdated', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'asset', - type: 'address', - components: [], - indexed: true, - }, - { internalType: 'uint256', - name: 'index', - type: 'uint256', - components: [], - indexed: false, }, ], - type: 'event', - name: 'AssetIndexUpdated', - outputs: [], - anonymous: false, + stateMutability: 'view', }, { - inputs: [ + type: 'function', + name: 'STAKED_TOKEN', + inputs: [], + outputs: [ { - internalType: 'address', - name: 'user', + name: '', type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], - indexed: false, + internalType: 'address', }, ], - type: 'event', - name: 'Cooldown', - outputs: [], - anonymous: false, + stateMutability: 'view', }, { - inputs: [ + type: 'function', + name: 'UNSTAKE_WINDOW', + inputs: [], + outputs: [ { - internalType: 'uint256', - name: 'cooldownSeconds', + name: '', type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'CooldownSecondsChanged', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { internalType: 'uint256', - name: 'endTimestamp', - type: 'uint256', - components: [], - indexed: false, }, ], - type: 'event', - name: 'DistributionEndChanged', - outputs: [], - anonymous: false, - }, - { - inputs: [], - type: 'event', - name: 'EIP712DomainChanged', - outputs: [], - anonymous: false, + stateMutability: 'view', }, { + type: 'function', + name: 'allowance', inputs: [ { - internalType: 'uint216', - name: 'exchangeRate', - type: 'uint216', - components: [], - indexed: false, + name: 'owner', + type: 'address', + internalType: 'address', }, - ], - type: 'event', - name: 'ExchangeRateChanged', - outputs: [], - anonymous: false, - }, - { - inputs: [ { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'FundsReturned', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'uint64', - name: 'version', - type: 'uint64', - components: [], - indexed: false, + name: 'spender', + type: 'address', + internalType: 'address', }, ], - type: 'event', - name: 'Initialized', - outputs: [], - anonymous: false, - }, - { - inputs: [ + outputs: [ { - internalType: 'uint256', - name: 'newPercentage', + name: '', type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'MaxSlashablePercentageChanged', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'newPendingAdmin', - type: 'address', - components: [], - indexed: true, - }, - { internalType: 'uint256', - name: 'role', - type: 'uint256', - components: [], - indexed: false, }, ], - type: 'event', - name: 'PendingAdminChanged', - outputs: [], - anonymous: false, + stateMutability: 'view', }, { + type: 'function', + name: 'approve', inputs: [ { - internalType: 'address', - name: 'from', + name: 'spender', type: 'address', - components: [], - indexed: true, - }, - { internalType: 'address', - name: 'to', - type: 'address', - components: [], - indexed: true, }, { - internalType: 'uint256', - name: 'assets', + name: 'value', type: 'uint256', - components: [], - indexed: false, - }, - { internalType: 'uint256', - name: 'shares', - type: 'uint256', - components: [], - indexed: false, }, ], - type: 'event', - name: 'Redeem', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'user', - type: 'address', - components: [], - indexed: false, - }, + outputs: [ { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], - indexed: false, + name: '', + type: 'bool', + internalType: 'bool', }, ], - type: 'event', - name: 'RewardsAccrued', - outputs: [], - anonymous: false, + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'assets', inputs: [ { - internalType: 'address', - name: 'from', + name: '', type: 'address', - components: [], - indexed: true, - }, - { internalType: 'address', - name: 'to', - type: 'address', - components: [], - indexed: true, }, + ], + outputs: [ { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], - indexed: false, + name: 'emissionPerSecond', + type: 'uint128', + internalType: 'uint128', }, - ], - type: 'event', - name: 'RewardsClaimed', - outputs: [], - anonymous: false, - }, - { - inputs: [ { - internalType: 'address', - name: 'newAdmin', - type: 'address', - components: [], - indexed: true, + name: 'lastUpdateTimestamp', + type: 'uint128', + internalType: 'uint128', }, { - internalType: 'uint256', - name: 'role', + name: 'index', type: 'uint256', - components: [], - indexed: false, + internalType: 'uint256', }, ], - type: 'event', - name: 'RoleClaimed', - outputs: [], - anonymous: false, + stateMutability: 'view', }, { + type: 'function', + name: 'balanceOf', inputs: [ { - internalType: 'address', - name: 'destination', + name: 'account', type: 'address', - components: [], - indexed: true, + internalType: 'address', }, + ], + outputs: [ { - internalType: 'uint256', - name: 'amount', + name: '', type: 'uint256', - components: [], - indexed: false, + internalType: 'uint256', }, ], - type: 'event', - name: 'Slashed', - outputs: [], - anonymous: false, + stateMutability: 'view', }, { + type: 'function', + name: 'claimRewards', inputs: [ { - internalType: 'uint256', - name: 'windowSeconds', + name: 'to', + type: 'address', + internalType: 'address', + }, + { + name: 'amount', type: 'uint256', - components: [], - indexed: false, + internalType: 'uint256', }, ], - type: 'event', - name: 'SlashingExitWindowDurationChanged', - outputs: [], - anonymous: false, - }, - { - inputs: [], - type: 'event', - name: 'SlashingSettled', outputs: [], - anonymous: false, + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'claimRewardsAndRedeem', inputs: [ { - internalType: 'address', - name: 'from', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'address', name: 'to', type: 'address', - components: [], - indexed: true, + internalType: 'address', }, { - internalType: 'uint256', - name: 'assets', + name: 'claimAmount', type: 'uint256', - components: [], - indexed: false, + internalType: 'uint256', }, { - internalType: 'uint256', - name: 'shares', + name: 'redeemAmount', type: 'uint256', - components: [], - indexed: false, + internalType: 'uint256', }, ], - type: 'event', - name: 'Staked', outputs: [], - anonymous: false, + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'claimRewardsAndRedeemOnBehalf', inputs: [ { - internalType: 'address', name: 'from', type: 'address', - components: [], - indexed: true, + internalType: 'address', }, { - internalType: 'address', name: 'to', type: 'address', - components: [], - indexed: true, + internalType: 'address', }, { + name: 'claimAmount', + type: 'uint256', internalType: 'uint256', - name: 'value', + }, + { + name: 'redeemAmount', type: 'uint256', - components: [], - indexed: false, + internalType: 'uint256', }, ], - type: 'event', - name: 'Transfer', outputs: [], - anonymous: false, + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'claimRewardsOnBehalf', inputs: [ { - internalType: 'address', - name: 'user', + name: 'from', type: 'address', - components: [], - indexed: true, + internalType: 'address', }, { - internalType: 'address', - name: 'asset', + name: 'to', type: 'address', - components: [], - indexed: true, + internalType: 'address', }, { - internalType: 'uint256', - name: 'index', + name: 'amount', type: 'uint256', - components: [], - indexed: false, + internalType: 'uint256', }, ], - type: 'event', - name: 'UserIndexUpdated', - outputs: [], - anonymous: false, - }, - { - inputs: [], - stateMutability: 'view', - type: 'function', - name: 'CLAIM_HELPER_ROLE', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'COOLDOWN_ADMIN_ROLE', - outputs: [ + name: 'claimRoleAdmin', + inputs: [ { - internalType: 'uint256', - name: '', + name: 'role', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + outputs: [], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'DOMAIN_SEPARATOR', - outputs: [ + name: 'configureAssets', + inputs: [ { - internalType: 'bytes32', - name: '', - type: 'bytes32', - components: [], + name: 'assetsConfigInput', + type: 'tuple[]', + internalType: 'struct IStakeToken.AssetConfigInput[]', + components: [ + { + name: 'emissionPerSecond', + type: 'uint128', + internalType: 'uint128', + }, + { + name: 'totalStaked', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'underlyingAsset', + type: 'address', + internalType: 'address', + }, + ], }, ], + outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'cooldown', inputs: [], - stateMutability: 'view', + outputs: [], + stateMutability: 'nonpayable', + }, + { type: 'function', - name: 'EMISSION_MANAGER', - outputs: [ + name: 'cooldownOnBehalfOf', + inputs: [ { - internalType: 'address', - name: '', + name: 'from', type: 'address', - components: [], + internalType: 'address', }, ], + outputs: [], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'EXCHANGE_RATE_UNIT', + name: 'decimals', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', - type: 'uint256', - components: [], + type: 'uint8', + internalType: 'uint8', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'INITIAL_EXCHANGE_RATE', + name: 'distributionEnd', + inputs: [], outputs: [ { - internalType: 'uint216', name: '', - type: 'uint216', - components: [], + type: 'uint256', + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'LOWER_BOUND', + name: 'eip712Domain', + inputs: [], outputs: [ { - internalType: 'uint256', - name: '', + name: 'fields', + type: 'bytes1', + internalType: 'bytes1', + }, + { + name: 'name', + type: 'string', + internalType: 'string', + }, + { + name: 'version', + type: 'string', + internalType: 'string', + }, + { + name: 'chainId', type: 'uint256', - components: [], + internalType: 'uint256', + }, + { + name: 'verifyingContract', + type: 'address', + internalType: 'address', + }, + { + name: 'salt', + type: 'bytes32', + internalType: 'bytes32', + }, + { + name: 'extensions', + type: 'uint256[]', + internalType: 'uint256[]', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'PRECISION', + name: 'getAdmin', + inputs: [ + { + name: 'role', + type: 'uint256', + internalType: 'uint256', + }, + ], outputs: [ { - internalType: 'uint8', name: '', - type: 'uint8', - components: [], + type: 'address', + internalType: 'address', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'REWARDS_VAULT', + name: 'getCooldownSeconds', + inputs: [], outputs: [ { - internalType: 'address', name: '', - type: 'address', - components: [], + type: 'uint256', + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'REWARD_TOKEN', + name: 'getExchangeRate', + inputs: [], outputs: [ { - internalType: 'contract IERC20', name: '', - type: 'address', - components: [], + type: 'uint216', + internalType: 'uint216', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'SLASH_ADMIN_ROLE', + name: 'getMaxSlashablePercentage', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'STAKED_TOKEN', - outputs: [ + name: 'getPendingAdmin', + inputs: [ { - internalType: 'contract IERC20', - name: '', - type: 'address', - components: [], + name: 'role', + type: 'uint256', + internalType: 'uint256', }, ], - }, - { - inputs: [], - stateMutability: 'view', - type: 'function', - name: 'UNSTAKE_WINDOW', outputs: [ { - internalType: 'uint256', name: '', - type: 'uint256', - components: [], + type: 'address', + internalType: 'address', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getTotalRewardsBalance', inputs: [ { - internalType: 'address', - name: 'owner', + name: 'staker', type: 'address', - components: [], - }, - { internalType: 'address', - name: 'spender', - type: 'address', - components: [], }, ], - stateMutability: 'view', - type: 'function', - name: 'allowance', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getUserAssetData', inputs: [ { + name: 'user', + type: 'address', internalType: 'address', - name: 'spender', + }, + { + name: 'asset', type: 'address', - components: [], + internalType: 'address', }, + ], + outputs: [ { - internalType: 'uint256', - name: 'value', + name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', + stateMutability: 'view', + }, + { type: 'function', - name: 'approve', + name: 'inPostSlashingPeriod', + inputs: [], outputs: [ { - internalType: 'bool', name: '', type: 'bool', - components: [], + internalType: 'bool', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'initialize', inputs: [ { - internalType: 'address', - name: '', + name: 'name', + type: 'string', + internalType: 'string', + }, + { + name: 'symbol', + type: 'string', + internalType: 'string', + }, + { + name: 'slashingAdmin', type: 'address', - components: [], + internalType: 'address', }, - ], - stateMutability: 'view', - type: 'function', - name: 'assets', - outputs: [ { - internalType: 'uint128', - name: 'emissionPerSecond', - type: 'uint128', - components: [], + name: 'cooldownPauseAdmin', + type: 'address', + internalType: 'address', }, { - internalType: 'uint128', - name: 'lastUpdateTimestamp', - type: 'uint128', - components: [], + name: 'claimHelper', + type: 'address', + internalType: 'address', }, { + name: 'maxSlashablePercentage', + type: 'uint256', internalType: 'uint256', - name: 'index', + }, + { + name: 'cooldownSeconds', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + outputs: [], + stateMutability: 'nonpayable', }, { - inputs: [ + type: 'function', + name: 'name', + inputs: [], + outputs: [ { - internalType: 'address', - name: 'account', - type: 'address', - components: [], + name: '', + type: 'string', + internalType: 'string', }, ], stateMutability: 'view', + }, + { type: 'function', - name: 'balanceOf', + name: 'nonces', + inputs: [ + { + name: 'owner', + type: 'address', + internalType: 'address', + }, + ], outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'permit', inputs: [ { + name: 'owner', + type: 'address', internalType: 'address', - name: 'to', + }, + { + name: 'spender', type: 'address', - components: [], + internalType: 'address', }, { + name: 'value', + type: 'uint256', internalType: 'uint256', - name: 'amount', + }, + { + name: 'deadline', type: 'uint256', - components: [], + internalType: 'uint256', + }, + { + name: 'v', + type: 'uint8', + internalType: 'uint8', + }, + { + name: 'r', + type: 'bytes32', + internalType: 'bytes32', + }, + { + name: 's', + type: 'bytes32', + internalType: 'bytes32', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'claimRewards', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'previewRedeem', inputs: [ { - internalType: 'address', - name: 'to', - type: 'address', - components: [], + name: 'shares', + type: 'uint256', + internalType: 'uint256', }, + ], + outputs: [ { - internalType: 'uint256', - name: 'claimAmount', + name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, + ], + stateMutability: 'view', + }, + { + type: 'function', + name: 'previewStake', + inputs: [ { + name: 'assets', + type: 'uint256', internalType: 'uint256', - name: 'redeemAmount', + }, + ], + outputs: [ + { + name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'claimRewardsAndRedeem', - outputs: [], + stateMutability: 'view', }, { + type: 'function', + name: 'redeem', inputs: [ { - internalType: 'address', - name: 'from', - type: 'address', - components: [], - }, - { - internalType: 'address', name: 'to', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', - name: 'claimAmount', + name: 'amount', type: 'uint256', - components: [], - }, - { internalType: 'uint256', - name: 'redeemAmount', - type: 'uint256', - components: [], }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'claimRewardsAndRedeemOnBehalf', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'redeemOnBehalf', inputs: [ { - internalType: 'address', name: 'from', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'to', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'amount', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + outputs: [], stateMutability: 'nonpayable', + }, + { type: 'function', - name: 'claimRewardsOnBehalf', - outputs: [ + name: 'returnFunds', + inputs: [ { - internalType: 'uint256', - name: '', + name: 'amount', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'setCooldownSeconds', inputs: [ { - internalType: 'uint256', - name: 'role', + name: 'cooldownSeconds', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'claimRoleAdmin', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'setDistributionEnd', inputs: [ { - internalType: 'struct DistributionTypes.AssetConfigInput[]', - name: 'assetsConfigInput', - type: 'tuple[]', - components: [ - { - internalType: 'uint128', - name: 'emissionPerSecond', - type: 'uint128', - components: [], - }, - { - internalType: 'uint256', - name: 'totalStaked', - type: 'uint256', - components: [], - }, - { - internalType: 'address', - name: 'underlyingAsset', - type: 'address', - components: [], - }, - ], + name: 'newDistributionEnd', + type: 'uint256', + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'configureAssets', outputs: [], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'nonpayable', type: 'function', - name: 'cooldown', + name: 'setMaxSlashablePercentage', + inputs: [ + { + name: 'percentage', + type: 'uint256', + internalType: 'uint256', + }, + ], outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'setPendingAdmin', inputs: [ { - internalType: 'address', - name: 'from', + name: 'role', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'newPendingAdmin', type: 'address', - components: [], + internalType: 'address', }, ], + outputs: [], stateMutability: 'nonpayable', + }, + { type: 'function', - name: 'cooldownOnBehalfOf', + name: 'settleSlashing', + inputs: [], outputs: [], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'decimals', - outputs: [ + name: 'slash', + inputs: [ { - internalType: 'uint8', - name: '', - type: 'uint8', - components: [], + name: 'destination', + type: 'address', + internalType: 'address', + }, + { + name: 'amount', + type: 'uint256', + internalType: 'uint256', }, ], - }, - { - inputs: [], - stateMutability: 'view', - type: 'function', - name: 'distributionEnd', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'eip712Domain', - outputs: [ + name: 'stake', + inputs: [ { - internalType: 'bytes1', - name: 'fields', - type: 'bytes1', - components: [], + name: 'to', + type: 'address', + internalType: 'address', }, { - internalType: 'string', - name: 'name', - type: 'string', - components: [], + name: 'amount', + type: 'uint256', + internalType: 'uint256', }, + ], + outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'function', + name: 'stakeWithPermit', + inputs: [ { - internalType: 'string', - name: 'version', - type: 'string', - components: [], + name: 'amount', + type: 'uint256', + internalType: 'uint256', }, { - internalType: 'uint256', - name: 'chainId', + name: 'deadline', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', - name: 'verifyingContract', - type: 'address', - components: [], + name: 'v', + type: 'uint8', + internalType: 'uint8', }, { - internalType: 'bytes32', - name: 'salt', + name: 'r', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'uint256[]', - name: 'extensions', - type: 'uint256[]', - components: [], + name: 's', + type: 'bytes32', + internalType: 'bytes32', }, ], + outputs: [], + stateMutability: 'nonpayable', }, { - inputs: [ - { - internalType: 'uint256', - name: 'role', - type: 'uint256', - components: [], - }, - ], - stateMutability: 'view', type: 'function', - name: 'getAdmin', - outputs: [ + name: 'stakerRewardsToClaim', + inputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], - }, - { - inputs: [], - stateMutability: 'view', - type: 'function', - name: 'getCooldownSeconds', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - }, - { - inputs: [], stateMutability: 'view', - type: 'function', - name: 'getExchangeRate', - outputs: [ - { - internalType: 'uint216', - name: '', - type: 'uint216', - components: [], - }, - ], }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'getMaxSlashablePercentage', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - components: [], - }, - ], - }, - { + name: 'stakersCooldowns', inputs: [ { - internalType: 'uint256', - name: 'role', - type: 'uint256', - components: [], - }, - ], - stateMutability: 'view', - type: 'function', - name: 'getPendingAdmin', - outputs: [ - { - internalType: 'address', name: '', type: 'address', - components: [], - }, - ], - }, - { - inputs: [ - { internalType: 'address', - name: 'staker', - type: 'address', - components: [], }, ], - stateMutability: 'view', - type: 'function', - name: 'getTotalRewardsBalance', outputs: [ { - internalType: 'uint256', - name: '', - type: 'uint256', - components: [], - }, - ], - }, - { - inputs: [ - { - internalType: 'address', - name: 'user', - type: 'address', - components: [], + name: 'timestamp', + type: 'uint40', + internalType: 'uint40', }, { - internalType: 'address', - name: 'asset', - type: 'address', - components: [], + name: 'amount', + type: 'uint216', + internalType: 'uint216', }, ], stateMutability: 'view', + }, + { type: 'function', - name: 'getUserAssetData', + name: 'symbol', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', - type: 'uint256', - components: [], + type: 'string', + internalType: 'string', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', - name: 'inPostSlashingPeriod', + name: 'totalSupply', + inputs: [], outputs: [ { - internalType: 'bool', name: '', - type: 'bool', - components: [], + type: 'uint256', + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'transfer', inputs: [ { - internalType: 'string', - name: 'name', - type: 'string', - components: [], - }, - { - internalType: 'string', - name: 'symbol', - type: 'string', - components: [], - }, - { - internalType: 'address', - name: 'slashingAdmin', - type: 'address', - components: [], - }, - { - internalType: 'address', - name: 'cooldownPauseAdmin', + name: 'to', type: 'address', - components: [], - }, - { internalType: 'address', - name: 'claimHelper', - type: 'address', - components: [], }, { - internalType: 'uint256', - name: 'maxSlashablePercentage', + name: 'value', type: 'uint256', - components: [], - }, - { internalType: 'uint256', - name: 'cooldownSeconds', - type: 'uint256', - components: [], }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'initialize', - outputs: [], - }, - { - inputs: [], - stateMutability: 'view', - type: 'function', - name: 'name', outputs: [ { - internalType: 'string', name: '', - type: 'string', - components: [], + type: 'bool', + internalType: 'bool', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'transferFrom', inputs: [ { + name: 'from', + type: 'address', internalType: 'address', - name: 'owner', + }, + { + name: 'to', type: 'address', - components: [], + internalType: 'address', + }, + { + name: 'value', + type: 'uint256', + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'nonces', outputs: [ { - internalType: 'uint256', name: '', - type: 'uint256', - components: [], + type: 'bool', + internalType: 'bool', }, ], + stateMutability: 'nonpayable', }, { + type: 'event', + name: 'Approval', inputs: [ { - internalType: 'address', name: 'owner', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'address', name: 'spender', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'uint256', name: 'value', type: 'uint256', - components: [], - }, - { + indexed: false, internalType: 'uint256', - name: 'deadline', - type: 'uint256', - components: [], - }, - { - internalType: 'uint8', - name: 'v', - type: 'uint8', - components: [], - }, - { - internalType: 'bytes32', - name: 'r', - type: 'bytes32', - components: [], - }, - { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - components: [], }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'permit', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'AssetConfigUpdated', inputs: [ { - internalType: 'uint256', - name: 'shares', - type: 'uint256', - components: [], + name: 'asset', + type: 'address', + indexed: true, + internalType: 'address', }, - ], - stateMutability: 'view', - type: 'function', - name: 'previewRedeem', - outputs: [ { - internalType: 'uint256', - name: '', + name: 'emission', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, { + type: 'event', + name: 'AssetIndexUpdated', inputs: [ { - internalType: 'uint256', - name: 'assets', - type: 'uint256', - components: [], + name: 'asset', + type: 'address', + indexed: true, + internalType: 'address', }, - ], - stateMutability: 'view', - type: 'function', - name: 'previewStake', - outputs: [ { - internalType: 'uint256', - name: '', + name: 'index', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, { + type: 'event', + name: 'Cooldown', inputs: [ { - internalType: 'address', - name: 'to', + name: 'user', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'uint256', name: 'amount', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'redeem', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'CooldownSecondsChanged', inputs: [ { - internalType: 'address', - name: 'from', - type: 'address', - components: [], - }, - { - internalType: 'address', - name: 'to', - type: 'address', - components: [], + name: 'cooldownSeconds', + type: 'uint256', + indexed: false, + internalType: 'uint256', }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'DistributionEndChanged', + inputs: [ { - internalType: 'uint256', - name: 'amount', + name: 'endTimestamp', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'redeemOnBehalf', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'EIP712DomainChanged', + inputs: [], + anonymous: false, + }, + { + type: 'event', + name: 'ExchangeRateChanged', inputs: [ { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], + name: 'exchangeRate', + type: 'uint216', + indexed: false, + internalType: 'uint216', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'returnFunds', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'FundsReturned', inputs: [ { - internalType: 'uint256', - name: 'cooldownSeconds', + name: 'amount', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'setCooldownSeconds', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'Initialized', inputs: [ { - internalType: 'uint256', - name: 'newDistributionEnd', - type: 'uint256', - components: [], + name: 'version', + type: 'uint64', + indexed: false, + internalType: 'uint64', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'setDistributionEnd', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'MaxSlashablePercentageChanged', inputs: [ { - internalType: 'uint256', - name: 'percentage', + name: 'newPercentage', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'setMaxSlashablePercentage', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'PendingAdminChanged', inputs: [ { - internalType: 'uint256', - name: 'role', - type: 'uint256', - components: [], - }, - { - internalType: 'address', name: 'newPendingAdmin', type: 'address', - components: [], + indexed: true, + internalType: 'address', + }, + { + name: 'role', + type: 'uint256', + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'setPendingAdmin', - outputs: [], - }, - { - inputs: [], - stateMutability: 'nonpayable', - type: 'function', - name: 'settleSlashing', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'Redeem', inputs: [ { + name: 'from', + type: 'address', + indexed: true, internalType: 'address', - name: 'destination', + }, + { + name: 'to', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'uint256', - name: 'amount', + name: 'assets', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, - ], - stateMutability: 'nonpayable', - type: 'function', - name: 'slash', - outputs: [ { - internalType: 'uint256', - name: '', + name: 'shares', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, { + type: 'event', + name: 'RewardsAccrued', inputs: [ { - internalType: 'address', - name: 'to', + name: 'user', type: 'address', - components: [], + indexed: false, + internalType: 'address', }, { - internalType: 'uint256', name: 'amount', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'stake', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'RewardsClaimed', inputs: [ { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], - }, - { - internalType: 'uint256', - name: 'deadline', - type: 'uint256', - components: [], - }, - { - internalType: 'uint8', - name: 'v', - type: 'uint8', - components: [], + name: 'from', + type: 'address', + indexed: true, + internalType: 'address', }, { - internalType: 'bytes32', - name: 'r', - type: 'bytes32', - components: [], + name: 'to', + type: 'address', + indexed: true, + internalType: 'address', }, { - internalType: 'bytes32', - name: 's', - type: 'bytes32', - components: [], + name: 'amount', + type: 'uint256', + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'stakeWithPermit', - outputs: [], + anonymous: false, }, { + type: 'event', + name: 'RoleClaimed', inputs: [ { - internalType: 'address', - name: '', + name: 'newAdmin', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, - ], - stateMutability: 'view', - type: 'function', - name: 'stakerRewardsToClaim', - outputs: [ { - internalType: 'uint256', - name: '', + name: 'role', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, { + type: 'event', + name: 'Slashed', inputs: [ { - internalType: 'address', - name: '', + name: 'destination', type: 'address', - components: [], - }, - ], - stateMutability: 'view', - type: 'function', - name: 'stakersCooldowns', - outputs: [ - { - internalType: 'uint40', - name: 'timestamp', - type: 'uint40', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'uint216', name: 'amount', - type: 'uint216', - components: [], + type: 'uint256', + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, { - inputs: [], - stateMutability: 'view', - type: 'function', - name: 'symbol', - outputs: [ + type: 'event', + name: 'SlashingExitWindowDurationChanged', + inputs: [ { - internalType: 'string', - name: '', - type: 'string', - components: [], + name: 'windowSeconds', + type: 'uint256', + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, { + type: 'event', + name: 'SlashingSettled', inputs: [], - stateMutability: 'view', - type: 'function', - name: 'totalSupply', - outputs: [ - { - internalType: 'uint256', - name: '', - type: 'uint256', - components: [], - }, - ], + anonymous: false, }, { + type: 'event', + name: 'Staked', inputs: [ { + name: 'from', + type: 'address', + indexed: true, internalType: 'address', + }, + { name: 'to', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'uint256', - name: 'value', + name: 'assets', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, - ], - stateMutability: 'nonpayable', - type: 'function', - name: 'transfer', - outputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - components: [], + name: 'shares', + type: 'uint256', + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, { + type: 'event', + name: 'Transfer', inputs: [ { - internalType: 'address', name: 'from', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'address', name: 'to', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { - internalType: 'uint256', name: 'value', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'transferFrom', - outputs: [ + anonymous: false, + }, + { + type: 'event', + name: 'UserIndexUpdated', + inputs: [ { - internalType: 'bool', - name: '', - type: 'bool', - components: [], + name: 'user', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'asset', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'index', + type: 'uint256', + indexed: false, + internalType: 'uint256', }, ], + anonymous: false, }, ] as const; diff --git a/src/ts/abis/IStaticATokenFactory.ts b/src/ts/abis/IStaticATokenFactory.ts index e8198857..518b6ecd 100644 --- a/src/ts/abis/IStaticATokenFactory.ts +++ b/src/ts/abis/IStaticATokenFactory.ts @@ -1,190 +1,171 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IStaticATokenFactory_ABI = [ { + type: 'constructor', inputs: [ { - internalType: 'contract IPool', name: 'pool', type: 'address', - components: [], + internalType: 'contract IPool', }, { - internalType: 'address', name: 'proxyAdmin', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'contract ITransparentProxyFactory', name: 'transparentProxyFactory', type: 'address', - components: [], + internalType: 'contract ITransparentProxyFactory', }, { - internalType: 'address', name: 'staticATokenImpl', type: 'address', - components: [], - }, - ], - stateMutability: 'nonpayable', - type: 'constructor', - outputs: [], - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'version', - type: 'uint8', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'Initialized', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'staticAToken', - type: 'address', - components: [], - indexed: true, - }, - { internalType: 'address', - name: 'underlying', - type: 'address', - components: [], - indexed: true, }, ], - type: 'event', - name: 'StaticTokenCreated', - outputs: [], - anonymous: false, + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'ADMIN', + inputs: [], outputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'POOL', + inputs: [], outputs: [ { - internalType: 'contract IPool', name: '', type: 'address', - components: [], + internalType: 'contract IPool', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'STATIC_A_TOKEN_IMPL', + inputs: [], outputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'TRANSPARENT_PROXY_FACTORY', + inputs: [], outputs: [ { - internalType: 'contract ITransparentProxyFactory', name: '', type: 'address', - components: [], + internalType: 'contract ITransparentProxyFactory', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'createStaticATokens', inputs: [ { - internalType: 'address[]', name: 'underlyings', type: 'address[]', - components: [], + internalType: 'address[]', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'createStaticATokens', outputs: [ { - internalType: 'address[]', name: '', type: 'address[]', - components: [], + internalType: 'address[]', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'getStaticAToken', inputs: [ { - internalType: 'address', name: 'underlying', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'getStaticAToken', outputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'getStaticATokens', + inputs: [], outputs: [ { - internalType: 'address[]', name: '', type: 'address[]', - components: [], + internalType: 'address[]', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'nonpayable', type: 'function', name: 'initialize', + inputs: [], outputs: [], + stateMutability: 'nonpayable', + }, + { + type: 'event', + name: 'Initialized', + inputs: [ + { + name: 'version', + type: 'uint8', + indexed: false, + internalType: 'uint8', + }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'StaticTokenCreated', + inputs: [ + { + name: 'staticAToken', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'underlying', + type: 'address', + indexed: true, + internalType: 'address', + }, + ], + anonymous: false, }, ] as const; diff --git a/src/ts/abis/IStaticATokenLM.ts b/src/ts/abis/IStaticATokenLM.ts index b45f920a..73fc6f7b 100644 --- a/src/ts/abis/IStaticATokenLM.ts +++ b/src/ts/abis/IStaticATokenLM.ts @@ -1,1505 +1,1337 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IStaticATokenLM_ABI = [ { + type: 'constructor', inputs: [ { - internalType: 'contract IPool', name: 'pool', type: 'address', - components: [], + internalType: 'contract IPool', }, { - internalType: 'contract IRewardsController', name: 'rewardsController', type: 'address', - components: [], + internalType: 'contract IRewardsController', }, ], stateMutability: 'nonpayable', - type: 'constructor', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'token', - type: 'address', - components: [], - }, - ], - type: 'error', - name: 'SafeERC20FailedOperation', - outputs: [], - }, - { - inputs: [ - { - internalType: 'address', - name: 'owner', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'address', - name: 'spender', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'Approval', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'address', - name: 'owner', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'uint256', - name: 'assets', - type: 'uint256', - components: [], - indexed: false, - }, - { - internalType: 'uint256', - name: 'shares', - type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'Deposit', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'uint8', - name: 'version', - type: 'uint8', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'Initialized', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'aToken', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'string', - name: 'staticATokenName', - type: 'string', - components: [], - indexed: false, - }, - { - internalType: 'string', - name: 'staticATokenSymbol', - type: 'string', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'Initialized', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'reward', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'uint256', - name: 'startIndex', - type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'RewardTokenRegistered', - outputs: [], - anonymous: false, - }, - { - inputs: [ - { - internalType: 'address', - name: 'from', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'address', - name: 'to', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'uint256', - name: 'amount', - type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'Transfer', - outputs: [], - anonymous: false, }, { - inputs: [ - { - internalType: 'address', - name: 'sender', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'address', - name: 'receiver', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'address', - name: 'owner', - type: 'address', - components: [], - indexed: true, - }, - { - internalType: 'uint256', - name: 'assets', - type: 'uint256', - components: [], - indexed: false, - }, - { - internalType: 'uint256', - name: 'shares', - type: 'uint256', - components: [], - indexed: false, - }, - ], - type: 'event', - name: 'Withdraw', - outputs: [], - anonymous: false, - }, - { - inputs: [], - stateMutability: 'view', type: 'function', name: 'DOMAIN_SEPARATOR', + inputs: [], outputs: [ { - internalType: 'bytes32', name: '', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'INCENTIVES_CONTROLLER', + inputs: [], outputs: [ { - internalType: 'contract IRewardsController', name: '', type: 'address', - components: [], + internalType: 'contract IRewardsController', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'METADEPOSIT_TYPEHASH', + inputs: [], outputs: [ { - internalType: 'bytes32', name: '', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'METAWITHDRAWAL_TYPEHASH', + inputs: [], outputs: [ { - internalType: 'bytes32', name: '', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'POOL', + inputs: [], outputs: [ { - internalType: 'contract IPool', name: '', type: 'address', - components: [], + internalType: 'contract IPool', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'STATIC__ATOKEN_LM_REVISION', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'aToken', + inputs: [], outputs: [ { - internalType: 'contract IERC20', name: '', type: 'address', - components: [], + internalType: 'contract IERC20', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'allowance', inputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'allowance', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'approve', inputs: [ { - internalType: 'address', name: 'spender', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'amount', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'approve', outputs: [ { - internalType: 'bool', name: '', type: 'bool', - components: [], + internalType: 'bool', }, ], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'asset', + inputs: [], outputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'balanceOf', inputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'balanceOf', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'claimRewards', inputs: [ { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address[]', name: 'rewards', type: 'address[]', - components: [], + internalType: 'address[]', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'claimRewards', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'claimRewardsOnBehalf', inputs: [ { - internalType: 'address', name: 'onBehalfOf', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address[]', name: 'rewards', type: 'address[]', - components: [], + internalType: 'address[]', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'claimRewardsOnBehalf', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'claimRewardsToSelf', inputs: [ { - internalType: 'address[]', name: 'rewards', type: 'address[]', - components: [], + internalType: 'address[]', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'claimRewardsToSelf', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'collectAndUpdateRewards', inputs: [ { - internalType: 'address', name: 'reward', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'collectAndUpdateRewards', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'convertToAssets', inputs: [ { - internalType: 'uint256', name: 'shares', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'convertToAssets', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'convertToShares', inputs: [ { - internalType: 'uint256', name: 'assets', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'convertToShares', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'decimals', + inputs: [], outputs: [ { - internalType: 'uint8', name: '', type: 'uint8', - components: [], + internalType: 'uint8', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'deposit', inputs: [ { - internalType: 'uint256', name: 'assets', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint16', name: 'referralCode', type: 'uint16', - components: [], + internalType: 'uint16', }, { - internalType: 'bool', name: 'depositToAave', type: 'bool', - components: [], + internalType: 'bool', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'deposit', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'deposit', inputs: [ { - internalType: 'uint256', name: 'assets', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'deposit', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'getClaimableRewards', inputs: [ { - internalType: 'address', name: 'user', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'reward', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'getClaimableRewards', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getCurrentRewardsIndex', inputs: [ { - internalType: 'address', name: 'reward', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'getCurrentRewardsIndex', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getTotalClaimableRewards', inputs: [ { - internalType: 'address', name: 'reward', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'getTotalClaimableRewards', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getUnclaimedRewards', inputs: [ { - internalType: 'address', name: 'user', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'reward', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'getUnclaimedRewards', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'initialize', inputs: [ { - internalType: 'address', name: 'newAToken', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'string', name: 'staticATokenName', type: 'string', - components: [], + internalType: 'string', }, { - internalType: 'string', name: 'staticATokenSymbol', type: 'string', - components: [], + internalType: 'string', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'initialize', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'isRegisteredRewardToken', inputs: [ { - internalType: 'address', name: 'reward', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'isRegisteredRewardToken', outputs: [ { - internalType: 'bool', name: '', type: 'bool', - components: [], + internalType: 'bool', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'maxDeposit', inputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'maxDeposit', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'maxMint', inputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'maxMint', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'maxRedeem', inputs: [ { - internalType: 'address', name: 'owner', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'maxRedeem', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'maxWithdraw', inputs: [ { - internalType: 'address', name: 'owner', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'maxWithdraw', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'metaDeposit', inputs: [ { - internalType: 'address', name: 'depositor', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'assets', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint16', name: 'referralCode', type: 'uint16', - components: [], + internalType: 'uint16', }, { - internalType: 'bool', name: 'depositToAave', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint256', name: 'deadline', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'struct IStaticATokenLM.PermitParams', name: 'permit', type: 'tuple', + internalType: 'struct IStaticATokenLM.PermitParams', components: [ { - internalType: 'address', name: 'owner', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'spender', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'value', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'deadline', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint8', name: 'v', type: 'uint8', - components: [], + internalType: 'uint8', }, { - internalType: 'bytes32', name: 'r', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'bytes32', name: 's', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], }, { - internalType: 'struct IStaticATokenLM.SignatureParams', name: 'sigParams', type: 'tuple', + internalType: 'struct IStaticATokenLM.SignatureParams', components: [ { - internalType: 'uint8', name: 'v', type: 'uint8', - components: [], + internalType: 'uint8', }, { - internalType: 'bytes32', name: 'r', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'bytes32', name: 's', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'metaDeposit', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'metaWithdraw', inputs: [ { - internalType: 'address', name: 'owner', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'shares', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'assets', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'bool', name: 'withdrawFromAave', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint256', name: 'deadline', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'struct IStaticATokenLM.SignatureParams', name: 'sigParams', type: 'tuple', + internalType: 'struct IStaticATokenLM.SignatureParams', components: [ { - internalType: 'uint8', name: 'v', type: 'uint8', - components: [], + internalType: 'uint8', }, { - internalType: 'bytes32', name: 'r', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'bytes32', name: 's', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'metaWithdraw', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'mint', inputs: [ { - internalType: 'uint256', name: 'shares', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'mint', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'name', + inputs: [], outputs: [ { - internalType: 'string', name: '', type: 'string', - components: [], + internalType: 'string', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'nonces', inputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'nonces', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'permit', inputs: [ { - internalType: 'address', name: 'owner', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'spender', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'value', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'deadline', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint8', name: 'v', type: 'uint8', - components: [], + internalType: 'uint8', }, { - internalType: 'bytes32', name: 'r', type: 'bytes32', - components: [], + internalType: 'bytes32', }, { - internalType: 'bytes32', name: 's', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'permit', outputs: [], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'previewDeposit', inputs: [ { - internalType: 'uint256', name: 'assets', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'previewDeposit', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'previewMint', inputs: [ { - internalType: 'uint256', name: 'shares', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'previewMint', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'previewRedeem', inputs: [ { - internalType: 'uint256', name: 'shares', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'previewRedeem', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'previewWithdraw', inputs: [ { - internalType: 'uint256', name: 'assets', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'view', - type: 'function', - name: 'previewWithdraw', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'rate', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'redeem', inputs: [ { - internalType: 'uint256', name: 'shares', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'owner', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'redeem', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'redeem', inputs: [ { - internalType: 'uint256', name: 'shares', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', name: 'receiver', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'owner', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'bool', name: 'withdrawFromAave', type: 'bool', - components: [], + internalType: 'bool', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'redeem', outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'nonpayable', type: 'function', name: 'refreshRewardTokens', + inputs: [], outputs: [], + stateMutability: 'nonpayable', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'rewardTokens', + inputs: [], outputs: [ { - internalType: 'address[]', name: '', type: 'address[]', - components: [], + internalType: 'address[]', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'symbol', + inputs: [], outputs: [ { - internalType: 'string', name: '', type: 'string', - components: [], + internalType: 'string', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'totalAssets', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'totalSupply', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'transfer', inputs: [ { - internalType: 'address', name: 'to', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'amount', type: 'uint256', - components: [], + internalType: 'uint256', }, ], - stateMutability: 'nonpayable', - type: 'function', - name: 'transfer', outputs: [ { - internalType: 'bool', name: '', type: 'bool', - components: [], + internalType: 'bool', }, ], + stateMutability: 'nonpayable', }, { + type: 'function', + name: 'transferFrom', inputs: [ { - internalType: 'address', name: 'from', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'to', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'amount', type: 'uint256', - components: [], + internalType: 'uint256', + }, + ], + outputs: [ + { + name: '', + type: 'bool', + internalType: 'bool', }, ], stateMutability: 'nonpayable', + }, + { type: 'function', - name: 'transferFrom', + name: 'withdraw', + inputs: [ + { + name: 'assets', + type: 'uint256', + internalType: 'uint256', + }, + { + name: 'receiver', + type: 'address', + internalType: 'address', + }, + { + name: 'owner', + type: 'address', + internalType: 'address', + }, + ], outputs: [ { - internalType: 'bool', name: '', - type: 'bool', - components: [], + type: 'uint256', + internalType: 'uint256', }, ], + stateMutability: 'nonpayable', }, { + type: 'event', + name: 'Approval', inputs: [ { + name: 'owner', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'spender', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'amount', + type: 'uint256', + indexed: false, internalType: 'uint256', + }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'Deposit', + inputs: [ + { + name: 'sender', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'owner', + type: 'address', + indexed: true, + internalType: 'address', + }, + { name: 'assets', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', + }, + { + name: 'shares', + type: 'uint256', + indexed: false, + internalType: 'uint256', + }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'Initialized', + inputs: [ + { + name: 'version', + type: 'uint8', + indexed: false, + internalType: 'uint8', }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'Initialized', + inputs: [ { + name: 'aToken', + type: 'address', + indexed: true, internalType: 'address', - name: 'receiver', + }, + { + name: 'staticATokenName', + type: 'string', + indexed: false, + internalType: 'string', + }, + { + name: 'staticATokenSymbol', + type: 'string', + indexed: false, + internalType: 'string', + }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'RewardTokenRegistered', + inputs: [ + { + name: 'reward', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'startIndex', + type: 'uint256', + indexed: false, + internalType: 'uint256', + }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'Transfer', + inputs: [ + { + name: 'from', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'to', + type: 'address', + indexed: true, + internalType: 'address', + }, + { + name: 'amount', + type: 'uint256', + indexed: false, + internalType: 'uint256', + }, + ], + anonymous: false, + }, + { + type: 'event', + name: 'Withdraw', + inputs: [ + { + name: 'sender', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, { + name: 'receiver', + type: 'address', + indexed: true, internalType: 'address', + }, + { name: 'owner', type: 'address', - components: [], + indexed: true, + internalType: 'address', }, - ], - stateMutability: 'nonpayable', - type: 'function', - name: 'withdraw', - outputs: [ { + name: 'assets', + type: 'uint256', + indexed: false, internalType: 'uint256', - name: '', + }, + { + name: 'shares', type: 'uint256', - components: [], + indexed: false, + internalType: 'uint256', + }, + ], + anonymous: false, + }, + { + type: 'error', + name: 'SafeERC20FailedOperation', + inputs: [ + { + name: 'token', + type: 'address', + internalType: 'address', }, ], }, diff --git a/src/ts/abis/IUiPoolDataProvider.ts b/src/ts/abis/IUiPoolDataProvider.ts index a3505919..2af5d187 100644 --- a/src/ts/abis/IUiPoolDataProvider.ts +++ b/src/ts/abis/IUiPoolDataProvider.ts @@ -1,573 +1,493 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IUiPoolDataProvider_ABI = [ { + type: 'constructor', inputs: [ { - internalType: 'contract IEACAggregatorProxy', name: '_networkBaseTokenPriceInUsdProxyAggregator', type: 'address', - components: [], + internalType: 'contract IEACAggregatorProxy', }, { - internalType: 'contract IEACAggregatorProxy', name: '_marketReferenceCurrencyPriceInUsdProxyAggregator', type: 'address', - components: [], + internalType: 'contract IEACAggregatorProxy', }, ], stateMutability: 'nonpayable', - type: 'constructor', - outputs: [], }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'ETH_CURRENCY_UNIT', + inputs: [], outputs: [ { - internalType: 'uint256', name: '', type: 'uint256', - components: [], + internalType: 'uint256', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'MKR_ADDRESS', + inputs: [], outputs: [ { - internalType: 'address', name: '', type: 'address', - components: [], + internalType: 'address', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'bytes32ToString', inputs: [ { - internalType: 'bytes32', name: '_bytes32', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], - stateMutability: 'pure', - type: 'function', - name: 'bytes32ToString', outputs: [ { - internalType: 'string', name: '', type: 'string', - components: [], + internalType: 'string', }, ], + stateMutability: 'pure', }, { + type: 'function', + name: 'getReservesData', inputs: [ { - internalType: 'contract IPoolAddressesProvider', name: 'provider', type: 'address', - components: [], + internalType: 'contract IPoolAddressesProvider', }, ], - stateMutability: 'view', - type: 'function', - name: 'getReservesData', outputs: [ { - internalType: 'struct IUiPoolDataProviderV3.AggregatedReserveData[]', name: '', type: 'tuple[]', + internalType: 'struct IUiPoolDataProviderV3.AggregatedReserveData[]', components: [ { - internalType: 'address', name: 'underlyingAsset', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'string', name: 'name', type: 'string', - components: [], + internalType: 'string', }, { - internalType: 'string', name: 'symbol', type: 'string', - components: [], + internalType: 'string', }, { - internalType: 'uint256', name: 'decimals', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'baseLTVasCollateral', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'reserveLiquidationThreshold', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'reserveLiquidationBonus', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'reserveFactor', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'bool', name: 'usageAsCollateralEnabled', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'bool', name: 'borrowingEnabled', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'bool', name: 'stableBorrowRateEnabled', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'bool', name: 'isActive', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'bool', name: 'isFrozen', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint128', name: 'liquidityIndex', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'variableBorrowIndex', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'liquidityRate', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'variableBorrowRate', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'stableBorrowRate', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint40', name: 'lastUpdateTimestamp', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'address', name: 'aTokenAddress', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'stableDebtTokenAddress', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'variableDebtTokenAddress', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'address', name: 'interestRateStrategyAddress', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'availableLiquidity', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'totalPrincipalStableDebt', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'averageStableRate', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'stableDebtLastUpdateTimestamp', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'totalScaledVariableDebt', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'priceInMarketReferenceCurrency', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'address', name: 'priceOracle', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'variableRateSlope1', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'variableRateSlope2', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'stableRateSlope1', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'stableRateSlope2', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'baseStableBorrowRate', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'baseVariableBorrowRate', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'optimalUsageRatio', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'bool', name: 'isPaused', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'bool', name: 'isSiloedBorrowing', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint128', name: 'accruedToTreasury', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'unbacked', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'isolationModeTotalDebt', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'bool', name: 'flashLoanEnabled', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint256', name: 'debtCeiling', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'debtCeilingDecimals', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint8', name: 'eModeCategoryId', type: 'uint8', - components: [], + internalType: 'uint8', }, { - internalType: 'uint256', name: 'borrowCap', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'supplyCap', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint16', name: 'eModeLtv', type: 'uint16', - components: [], + internalType: 'uint16', }, { - internalType: 'uint16', name: 'eModeLiquidationThreshold', type: 'uint16', - components: [], + internalType: 'uint16', }, { - internalType: 'uint16', name: 'eModeLiquidationBonus', type: 'uint16', - components: [], + internalType: 'uint16', }, { - internalType: 'address', name: 'eModePriceSource', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'string', name: 'eModeLabel', type: 'string', - components: [], + internalType: 'string', }, { - internalType: 'bool', name: 'borrowableInIsolation', type: 'bool', - components: [], + internalType: 'bool', }, ], }, { - internalType: 'struct IUiPoolDataProviderV3.BaseCurrencyInfo', name: '', type: 'tuple', + internalType: 'struct IUiPoolDataProviderV3.BaseCurrencyInfo', components: [ { - internalType: 'uint256', name: 'marketReferenceCurrencyUnit', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'int256', name: 'marketReferenceCurrencyPriceInUsd', type: 'int256', - components: [], + internalType: 'int256', }, { - internalType: 'int256', name: 'networkBaseTokenPriceInUsd', type: 'int256', - components: [], + internalType: 'int256', }, { - internalType: 'uint8', name: 'networkBaseTokenPriceDecimals', type: 'uint8', - components: [], + internalType: 'uint8', }, ], }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getReservesList', inputs: [ { - internalType: 'contract IPoolAddressesProvider', name: 'provider', type: 'address', - components: [], + internalType: 'contract IPoolAddressesProvider', }, ], - stateMutability: 'view', - type: 'function', - name: 'getReservesList', outputs: [ { - internalType: 'address[]', name: '', type: 'address[]', - components: [], + internalType: 'address[]', }, ], + stateMutability: 'view', }, { + type: 'function', + name: 'getUserReservesData', inputs: [ { - internalType: 'contract IPoolAddressesProvider', name: 'provider', type: 'address', - components: [], + internalType: 'contract IPoolAddressesProvider', }, { - internalType: 'address', name: 'user', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'getUserReservesData', outputs: [ { - internalType: 'struct IUiPoolDataProviderV3.UserReserveData[]', name: '', type: 'tuple[]', + internalType: 'struct IUiPoolDataProviderV3.UserReserveData[]', components: [ { - internalType: 'address', name: 'underlyingAsset', type: 'address', - components: [], + internalType: 'address', }, { - internalType: 'uint256', name: 'scaledATokenBalance', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'bool', name: 'usageAsCollateralEnabledOnUser', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint256', name: 'stableBorrowRate', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'scaledVariableDebt', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'principalStableDebt', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'stableBorrowLastUpdateTimestamp', type: 'uint256', - components: [], + internalType: 'uint256', }, ], }, { - internalType: 'uint8', name: '', type: 'uint8', - components: [], + internalType: 'uint8', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'marketReferenceCurrencyPriceInUsdProxyAggregator', + inputs: [], outputs: [ { - internalType: 'contract IEACAggregatorProxy', name: '', type: 'address', - components: [], + internalType: 'contract IEACAggregatorProxy', }, ], + stateMutability: 'view', }, { - inputs: [], - stateMutability: 'view', type: 'function', name: 'networkBaseTokenPriceInUsdProxyAggregator', + inputs: [], outputs: [ { - internalType: 'contract IEACAggregatorProxy', name: '', type: 'address', - components: [], + internalType: 'contract IEACAggregatorProxy', }, ], + stateMutability: 'view', }, ] as const; diff --git a/src/ts/abis/IVotingMachineDataHelper.ts b/src/ts/abis/IVotingMachineDataHelper.ts index c4ad4291..4e6528e9 100644 --- a/src/ts/abis/IVotingMachineDataHelper.ts +++ b/src/ts/abis/IVotingMachineDataHelper.ts @@ -1,179 +1,157 @@ // AUTOGENERATED - MANUALLY CHANGES WILL BE REVERTED BY THE GENERATOR export const IVotingMachineDataHelper_ABI = [ { + type: 'function', + name: 'getProposalsData', inputs: [ { - internalType: 'contract IVotingMachineWithProofs', name: 'votingMachine', type: 'address', - components: [], + internalType: 'contract IVotingMachineWithProofs', }, { - internalType: 'struct IVotingMachineDataHelper.InitialProposal[]', name: 'initialProposals', type: 'tuple[]', + internalType: 'struct IVotingMachineDataHelper.InitialProposal[]', components: [ { - internalType: 'uint256', name: 'id', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'bytes32', name: 'snapshotBlockHash', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], }, { - internalType: 'address', name: 'user', type: 'address', - components: [], + internalType: 'address', }, ], - stateMutability: 'view', - type: 'function', - name: 'getProposalsData', outputs: [ { - internalType: 'struct IVotingMachineDataHelper.Proposal[]', name: '', type: 'tuple[]', + internalType: 'struct IVotingMachineDataHelper.Proposal[]', components: [ { - internalType: 'struct IVotingMachineWithProofs.ProposalWithoutVotes', name: 'proposalData', type: 'tuple', + internalType: 'struct IVotingMachineWithProofs.ProposalWithoutVotes', components: [ { - internalType: 'uint256', name: 'id', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'bool', name: 'sentToGovernance', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint40', name: 'startTime', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'endTime', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint40', name: 'votingClosedAndSentTimestamp', type: 'uint40', - components: [], + internalType: 'uint40', }, { - internalType: 'uint128', name: 'forVotes', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint128', name: 'againstVotes', type: 'uint128', - components: [], + internalType: 'uint128', }, { - internalType: 'uint256', name: 'creationBlockNumber', type: 'uint256', - components: [], + internalType: 'uint256', }, { - internalType: 'uint256', name: 'votingClosedAndSentBlockNumber', type: 'uint256', - components: [], + internalType: 'uint256', }, ], }, { - internalType: 'struct IVotingMachineDataHelper.VotedInfo', name: 'votedInfo', type: 'tuple', + internalType: 'struct IVotingMachineDataHelper.VotedInfo', components: [ { - internalType: 'bool', name: 'support', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'uint248', name: 'votingPower', type: 'uint248', - components: [], + internalType: 'uint248', }, ], }, { - internalType: 'contract IVotingStrategy', name: 'strategy', type: 'address', - components: [], + internalType: 'contract IVotingStrategy', }, { - internalType: 'contract IDataWarehouse', name: 'dataWarehouse', type: 'address', - components: [], + internalType: 'contract IDataWarehouse', }, { - internalType: 'address[]', name: 'votingAssets', type: 'address[]', - components: [], + internalType: 'address[]', }, { - internalType: 'bool', name: 'hasRequiredRoots', type: 'bool', - components: [], + internalType: 'bool', }, { - internalType: 'struct IVotingMachineWithProofs.ProposalVoteConfiguration', name: 'voteConfig', type: 'tuple', + internalType: 'struct IVotingMachineWithProofs.ProposalVoteConfiguration', components: [ { - internalType: 'uint24', name: 'votingDuration', type: 'uint24', - components: [], + internalType: 'uint24', }, { - internalType: 'bytes32', name: 'l1ProposalBlockHash', type: 'bytes32', - components: [], + internalType: 'bytes32', }, ], }, { - internalType: 'enum IVotingMachineWithProofs.ProposalState', name: 'state', type: 'uint8', - components: [], + internalType: 'enum IVotingMachineWithProofs.ProposalState', }, ], }, ], + stateMutability: 'view', }, ] as const;