UNPKG

@exromany/lido-csm-sdk

Version:

[![GitHub license](https://img.shields.io/github/license/lidofinance/lido-csm-sdk?color=limegreen)](https://github.com/lidofinance/lido-csm-sdk/blob/main/LICENSE.txt) [![Version npm](https://img.shields.io/npm/v/@lidofinance/lido-csm-sdk?label=version)](h

1,332 lines 32.8 kB
export const CSFeeOracleAbi = [ { "type": "constructor", "inputs": [ { "name": "feeDistributor", "type": "address", "internalType": "address" }, { "name": "strikes", "type": "address", "internalType": "address" }, { "name": "secondsPerSlot", "type": "uint256", "internalType": "uint256" }, { "name": "genesisTime", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "DEFAULT_ADMIN_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "FEE_DISTRIBUTOR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ICSFeeDistributor" } ], "stateMutability": "view" }, { "type": "function", "name": "GENESIS_TIME", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "MANAGE_CONSENSUS_CONTRACT_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "MANAGE_CONSENSUS_VERSION_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "PAUSE_INFINITELY", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "PAUSE_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "RECOVERER_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "RESUME_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "SECONDS_PER_SLOT", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "STRIKES", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ICSStrikes" } ], "stateMutability": "view" }, { "type": "function", "name": "SUBMIT_DATA_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "discardConsensusReport", "inputs": [ { "name": "refSlot", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "finalizeUpgradeV2", "inputs": [ { "name": "consensusVersion", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "getConsensusContract", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getConsensusReport", "inputs": [], "outputs": [ { "name": "hash", "type": "bytes32", "internalType": "bytes32" }, { "name": "refSlot", "type": "uint256", "internalType": "uint256" }, { "name": "processingDeadlineTime", "type": "uint256", "internalType": "uint256" }, { "name": "processingStarted", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "getConsensusVersion", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getContractVersion", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getLastProcessingRefSlot", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getResumeSinceTimestamp", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleAdmin", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMember", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "index", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "getRoleMemberCount", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "grantRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "hasRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "initialize", "inputs": [ { "name": "admin", "type": "address", "internalType": "address" }, { "name": "consensusContract", "type": "address", "internalType": "address" }, { "name": "consensusVersion", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "isPaused", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "pauseFor", "inputs": [ { "name": "duration", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "recoverERC1155", "inputs": [ { "name": "token", "type": "address", "internalType": "address" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "recoverERC20", "inputs": [ { "name": "token", "type": "address", "internalType": "address" }, { "name": "amount", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "recoverERC721", "inputs": [ { "name": "token", "type": "address", "internalType": "address" }, { "name": "tokenId", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "recoverEther", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "renounceRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "callerConfirmation", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "resume", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "revokeRole", "inputs": [ { "name": "role", "type": "bytes32", "internalType": "bytes32" }, { "name": "account", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setConsensusContract", "inputs": [ { "name": "addr", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setConsensusVersion", "inputs": [ { "name": "version", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "submitConsensusReport", "inputs": [ { "name": "reportHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "refSlot", "type": "uint256", "internalType": "uint256" }, { "name": "deadline", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "submitReportData", "inputs": [ { "name": "data", "type": "tuple", "internalType": "struct ICSFeeOracle.ReportData", "components": [ { "name": "consensusVersion", "type": "uint256", "internalType": "uint256" }, { "name": "refSlot", "type": "uint256", "internalType": "uint256" }, { "name": "treeRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "treeCid", "type": "string", "internalType": "string" }, { "name": "logCid", "type": "string", "internalType": "string" }, { "name": "distributed", "type": "uint256", "internalType": "uint256" }, { "name": "rebate", "type": "uint256", "internalType": "uint256" }, { "name": "strikesTreeRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "strikesTreeCid", "type": "string", "internalType": "string" } ] }, { "name": "contractVersion", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "supportsInterface", "inputs": [ { "name": "interfaceId", "type": "bytes4", "internalType": "bytes4" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "event", "name": "ConsensusHashContractSet", "inputs": [ { "name": "addr", "type": "address", "indexed": true, "internalType": "address" }, { "name": "prevAddr", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "ConsensusVersionSet", "inputs": [ { "name": "version", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "prevVersion", "type": "uint256", "indexed": true, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ContractVersionSet", "inputs": [ { "name": "version", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ERC1155Recovered", "inputs": [ { "name": "token", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tokenId", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ERC20Recovered", "inputs": [ { "name": "token", "type": "address", "indexed": true, "internalType": "address" }, { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ERC721Recovered", "inputs": [ { "name": "token", "type": "address", "indexed": true, "internalType": "address" }, { "name": "tokenId", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "EtherRecovered", "inputs": [ { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "Initialized", "inputs": [ { "name": "version", "type": "uint64", "indexed": false, "internalType": "uint64" } ], "anonymous": false }, { "type": "event", "name": "Paused", "inputs": [ { "name": "duration", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ProcessingStarted", "inputs": [ { "name": "refSlot", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "hash", "type": "bytes32", "indexed": false, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "ReportDiscarded", "inputs": [ { "name": "refSlot", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "hash", "type": "bytes32", "indexed": false, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "ReportSubmitted", "inputs": [ { "name": "refSlot", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "hash", "type": "bytes32", "indexed": false, "internalType": "bytes32" }, { "name": "processingDeadlineTime", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "Resumed", "inputs": [], "anonymous": false }, { "type": "event", "name": "RoleAdminChanged", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "previousAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "newAdminRole", "type": "bytes32", "indexed": true, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "RoleGranted", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "RoleRevoked", "inputs": [ { "name": "role", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "account", "type": "address", "indexed": true, "internalType": "address" }, { "name": "sender", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "StETHSharesRecovered", "inputs": [ { "name": "recipient", "type": "address", "indexed": true, "internalType": "address" }, { "name": "shares", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "WarnProcessingMissed", "inputs": [ { "name": "refSlot", "type": "uint256", "indexed": true, "internalType": "uint256" } ], "anonymous": false }, { "type": "error", "name": "AccessControlBadConfirmation", "inputs": [] }, { "type": "error", "name": "AccessControlUnauthorizedAccount", "inputs": [ { "name": "account", "type": "address", "internalType": "address" }, { "name": "neededRole", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "AddressCannotBeSame", "inputs": [] }, { "type": "error", "name": "AddressCannotBeZero", "inputs": [] }, { "type": "error", "name": "FailedToSendEther", "inputs": [] }, { "type": "error", "name": "HashCannotBeZero", "inputs": [] }, { "type": "error", "name": "InitialRefSlotCannotBeLessThanProcessingOne", "inputs": [ { "name": "initialRefSlot", "type": "uint256", "internalType": "uint256" }, { "name": "processingRefSlot", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "InvalidContractVersion", "inputs": [] }, { "type": "error", "name": "InvalidContractVersionIncrement", "inputs": [] }, { "type": "error", "name": "InvalidInitialization", "inputs": [] }, { "type": "error", "name": "NoConsensusReportToProcess", "inputs": [] }, { "type": "error", "name": "NonZeroContractVersionOnInit", "inputs": [] }, { "type": "error", "name": "NotAllowedToRecover", "inputs": [] }, { "type": "error", "name": "NotInitializing", "inputs": [] }, { "type": "error", "name": "PauseUntilMustBeInFuture", "inputs": [] }, { "type": "error", "name": "PausedExpected", "inputs": [] }, { "type": "error", "name": "ProcessingDeadlineMissed", "inputs": [ { "name": "deadline", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "RefSlotAlreadyProcessing", "inputs": [] }, { "type": "error", "name": "RefSlotCannotDecrease", "inputs": [ { "name": "refSlot", "type": "uint256", "internalType": "uint256" }, { "name": "prevRefSlot", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "RefSlotMustBeGreaterThanProcessingOne", "inputs": [ { "name": "refSlot", "type": "uint256", "internalType": "uint256" }, { "name": "processingRefSlot", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "ResumedExpected", "inputs": [] }, { "type": "error", "name": "SafeCastOverflowedUintDowncast", "inputs": [ { "name": "bits", "type": "uint8", "internalType": "uint8" }, { "name": "value", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "SecondsPerSlotCannotBeZero", "inputs": [] }, { "type": "error", "name": "SenderIsNotTheConsensusContract", "inputs": [] }, { "type": "error", "name": "SenderNotAllowed", "inputs": [] }, { "type": "error", "name": "UnexpectedChainConfig", "inputs": [] }, { "type": "error", "name": "UnexpectedConsensusVersion", "inputs": [ { "name": "expectedVersion", "type": "uint256", "internalType": "uint256" }, { "name": "receivedVersion", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "UnexpectedContractVersion", "inputs": [ { "name": "expected", "type": "uint256", "internalType": "uint256" }, { "name": "received", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "UnexpectedDataHash", "inputs": [ { "name": "consensusHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "receivedHash", "type": "bytes32", "internalType": "bytes32" } ] }, { "type": "error", "name": "UnexpectedRefSlot", "inputs": [ { "name": "consensusRefSlot", "type": "uint256", "internalType": "uint256" }, { "name": "dataRefSlot", "type": "uint256", "internalType": "uint256" } ] }, { "type": "error", "name": "VersionCannotBeSame", "inputs": [] }, { "type": "error", "name": "VersionCannotBeZero", "inputs": [] }, { "type": "error", "name": "ZeroAdminAddress", "inputs": [] }, { "type": "error", "name": "ZeroFeeDistributorAddress", "inputs": [] }, { "type": "error", "name": "ZeroPauseDuration", "inputs": [] }, { "type": "error", "name": "ZeroStrikesAddress", "inputs": [] } ]; //# sourceMappingURL=CSFeeOracle.js.map