UNPKG

@lidofinance/lido-ethereum-sdk

Version:

<div style="display: flex;" align="center"> <h1 align="center">Lido Ethereum SDK</h1> </div>

1,149 lines 29.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LazyOracleAbi = void 0; const abi = [ { inputs: [ { internalType: 'address', name: '_lidoLocator', type: 'address', }, ], stateMutability: 'nonpayable', type: 'constructor', }, { inputs: [], name: 'AccessControlBadConfirmation', type: 'error', }, { inputs: [ { internalType: 'address', name: 'account', type: 'address', }, { internalType: 'bytes32', name: 'neededRole', type: 'bytes32', }, ], name: 'AccessControlUnauthorizedAccount', type: 'error', }, { inputs: [], name: 'AdminCannotBeZero', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'feeIncrease', type: 'uint256', }, { internalType: 'uint256', name: 'maxFeeIncrease', type: 'uint256', }, ], name: 'CumulativeLidoFeesTooLarge', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'reportingFees', type: 'uint256', }, { internalType: 'uint256', name: 'previousFees', type: 'uint256', }, ], name: 'CumulativeLidoFeesTooLow', type: 'error', }, { inputs: [], name: 'InOutDeltaCacheIsOverwritten', type: 'error', }, { inputs: [], name: 'InvalidInitialization', type: 'error', }, { inputs: [], name: 'InvalidMaxLiabilityShares', type: 'error', }, { inputs: [], name: 'InvalidProof', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'feeRate', type: 'uint256', }, { internalType: 'uint256', name: 'maxFeeRate', type: 'uint256', }, ], name: 'MaxLidoFeeRatePerSecondTooLarge', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'rewardRatio', type: 'uint256', }, { internalType: 'uint256', name: 'maxRewardRatio', type: 'uint256', }, ], name: 'MaxRewardRatioTooLarge', type: 'error', }, { inputs: [], name: 'NotAuthorized', type: 'error', }, { inputs: [], name: 'NotInitializing', type: 'error', }, { inputs: [ { internalType: 'uint256', name: 'quarantinePeriod', type: 'uint256', }, { internalType: 'uint256', name: 'maxQuarantinePeriod', type: 'uint256', }, ], name: 'QuarantinePeriodTooLarge', type: 'error', }, { inputs: [], name: 'TotalValueTooLarge', type: 'error', }, { inputs: [], name: 'UnderflowInTotalValueCalculation', type: 'error', }, { inputs: [], name: 'VaultReportIsFreshEnough', type: 'error', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint64', name: 'version', type: 'uint64', }, ], name: 'Initialized', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'vault', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'delta', type: 'uint256', }, ], name: 'QuarantineActivated', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'vault', type: 'address', }, { indexed: false, internalType: 'uint256', name: 'delta', type: 'uint256', }, ], name: 'QuarantineReleased', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'address', name: 'vault', type: 'address', }, ], name: 'QuarantineRemoved', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint256', name: 'totalValueReminder', type: 'uint256', }, ], name: 'QuarantineUpdated', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32', }, { indexed: true, internalType: 'bytes32', name: 'previousAdminRole', type: 'bytes32', }, { indexed: true, internalType: 'bytes32', name: 'newAdminRole', type: 'bytes32', }, ], name: 'RoleAdminChanged', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32', }, { indexed: true, internalType: 'address', name: 'account', type: 'address', }, { indexed: true, internalType: 'address', name: 'sender', type: 'address', }, ], name: 'RoleGranted', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'bytes32', name: 'role', type: 'bytes32', }, { indexed: true, internalType: 'address', name: 'account', type: 'address', }, { indexed: true, internalType: 'address', name: 'sender', type: 'address', }, ], name: 'RoleRevoked', type: 'event', }, { anonymous: false, inputs: [ { indexed: false, internalType: 'uint256', name: 'quarantinePeriod', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'maxRewardRatioBP', type: 'uint256', }, { indexed: false, internalType: 'uint256', name: 'maxLidoFeeRatePerSecond', type: 'uint256', }, ], name: 'SanityParamsUpdated', type: 'event', }, { anonymous: false, inputs: [ { indexed: true, internalType: 'uint256', name: 'timestamp', type: 'uint256', }, { indexed: true, internalType: 'uint256', name: 'refSlot', type: 'uint256', }, { indexed: true, internalType: 'bytes32', name: 'root', type: 'bytes32', }, { indexed: false, internalType: 'string', name: 'cid', type: 'string', }, ], name: 'VaultsReportDataUpdated', type: 'event', }, { inputs: [], name: 'DEFAULT_ADMIN_ROLE', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'LIDO_LOCATOR', outputs: [ { internalType: 'contract ILidoLocator', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MAX_LIDO_FEE_RATE_PER_SECOND', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MAX_QUARANTINE_PERIOD', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'MAX_REWARD_RATIO', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'UPDATE_SANITY_PARAMS_ROLE', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes[]', name: '_pubkeys', type: 'bytes[]', }, ], name: 'batchValidatorStatuses', outputs: [ { components: [ { internalType: 'enum IPredepositGuarantee.ValidatorStage', name: 'stage', type: 'uint8', }, { internalType: 'contract IStakingVault', name: 'stakingVault', type: 'address', }, { internalType: 'address', name: 'nodeOperator', type: 'address', }, ], internalType: 'struct IPredepositGuarantee.ValidatorStatus[]', name: 'batch', type: 'tuple[]', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: '_offset', type: 'uint256', }, { internalType: 'uint256', name: '_limit', type: 'uint256', }, ], name: 'batchVaultsInfo', outputs: [ { components: [ { internalType: 'address', name: 'vault', type: 'address', }, { internalType: 'uint256', name: 'aggregatedBalance', type: 'uint256', }, { internalType: 'int256', name: 'inOutDelta', type: 'int256', }, { internalType: 'bytes32', name: 'withdrawalCredentials', type: 'bytes32', }, { internalType: 'uint256', name: 'liabilityShares', type: 'uint256', }, { internalType: 'uint256', name: 'maxLiabilityShares', type: 'uint256', }, { internalType: 'uint256', name: 'mintableStETH', type: 'uint256', }, { internalType: 'uint96', name: 'shareLimit', type: 'uint96', }, { internalType: 'uint16', name: 'reserveRatioBP', type: 'uint16', }, { internalType: 'uint16', name: 'forcedRebalanceThresholdBP', type: 'uint16', }, { internalType: 'uint16', name: 'infraFeeBP', type: 'uint16', }, { internalType: 'uint16', name: 'liquidityFeeBP', type: 'uint16', }, { internalType: 'uint16', name: 'reservationFeeBP', type: 'uint16', }, { internalType: 'bool', name: 'pendingDisconnect', type: 'bool', }, ], internalType: 'struct LazyOracle.VaultInfo[]', name: '', type: 'tuple[]', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, ], name: 'getRoleAdmin', outputs: [ { internalType: 'bytes32', name: '', type: 'bytes32', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, { internalType: 'uint256', name: 'index', type: 'uint256', }, ], name: 'getRoleMember', outputs: [ { internalType: 'address', name: '', type: 'address', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, ], name: 'getRoleMemberCount', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, ], name: 'getRoleMembers', outputs: [ { internalType: 'address[]', name: '', type: 'address[]', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, { internalType: 'address', name: 'account', type: 'address', }, ], name: 'grantRole', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, { internalType: 'address', name: 'account', type: 'address', }, ], name: 'hasRole', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_admin', type: 'address', }, { internalType: 'uint256', name: '_quarantinePeriod', type: 'uint256', }, { internalType: 'uint256', name: '_maxRewardRatioBP', type: 'uint256', }, { internalType: 'uint256', name: '_maxLidoFeeRatePerSecond', type: 'uint256', }, ], name: 'initialize', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [], name: 'latestReportData', outputs: [ { internalType: 'uint256', name: 'timestamp', type: 'uint256', }, { internalType: 'uint256', name: 'refSlot', type: 'uint256', }, { internalType: 'bytes32', name: 'treeRoot', type: 'bytes32', }, { internalType: 'string', name: 'reportCid', type: 'string', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'latestReportTimestamp', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'maxLidoFeeRatePerSecond', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'maxRewardRatioBP', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'quarantinePeriod', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_vault', type: 'address', }, ], name: 'quarantineValue', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_vault', type: 'address', }, ], name: 'removeVaultQuarantine', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, { internalType: 'address', name: 'callerConfirmation', type: 'address', }, ], name: 'renounceRole', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes32', name: 'role', type: 'bytes32', }, { internalType: 'address', name: 'account', type: 'address', }, ], name: 'revokeRole', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'bytes4', name: 'interfaceId', type: 'bytes4', }, ], name: 'supportsInterface', outputs: [ { internalType: 'bool', name: '', type: 'bool', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'uint256', name: '_vaultsDataTimestamp', type: 'uint256', }, { internalType: 'uint256', name: '_vaultsDataRefSlot', type: 'uint256', }, { internalType: 'bytes32', name: '_vaultsDataTreeRoot', type: 'bytes32', }, { internalType: 'string', name: '_vaultsDataReportCid', type: 'string', }, ], name: 'updateReportData', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'uint256', name: '_quarantinePeriod', type: 'uint256', }, { internalType: 'uint256', name: '_maxRewardRatioBP', type: 'uint256', }, { internalType: 'uint256', name: '_maxLidoFeeRatePerSecond', type: 'uint256', }, ], name: 'updateSanityParams', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: '_vault', type: 'address', }, { internalType: 'uint256', name: '_totalValue', type: 'uint256', }, { internalType: 'uint256', name: '_cumulativeLidoFees', type: 'uint256', }, { internalType: 'uint256', name: '_liabilityShares', type: 'uint256', }, { internalType: 'uint256', name: '_maxLiabilityShares', type: 'uint256', }, { internalType: 'uint256', name: '_slashingReserve', type: 'uint256', }, { internalType: 'bytes32[]', name: '_proof', type: 'bytes32[]', }, ], name: 'updateVaultData', outputs: [], stateMutability: 'nonpayable', type: 'function', }, { inputs: [ { internalType: 'address', name: '_vault', type: 'address', }, ], name: 'vaultInfo', outputs: [ { components: [ { internalType: 'address', name: 'vault', type: 'address', }, { internalType: 'uint256', name: 'aggregatedBalance', type: 'uint256', }, { internalType: 'int256', name: 'inOutDelta', type: 'int256', }, { internalType: 'bytes32', name: 'withdrawalCredentials', type: 'bytes32', }, { internalType: 'uint256', name: 'liabilityShares', type: 'uint256', }, { internalType: 'uint256', name: 'maxLiabilityShares', type: 'uint256', }, { internalType: 'uint256', name: 'mintableStETH', type: 'uint256', }, { internalType: 'uint96', name: 'shareLimit', type: 'uint96', }, { internalType: 'uint16', name: 'reserveRatioBP', type: 'uint16', }, { internalType: 'uint16', name: 'forcedRebalanceThresholdBP', type: 'uint16', }, { internalType: 'uint16', name: 'infraFeeBP', type: 'uint16', }, { internalType: 'uint16', name: 'liquidityFeeBP', type: 'uint16', }, { internalType: 'uint16', name: 'reservationFeeBP', type: 'uint16', }, { internalType: 'bool', name: 'pendingDisconnect', type: 'bool', }, ], internalType: 'struct LazyOracle.VaultInfo', name: '', type: 'tuple', }, ], stateMutability: 'view', type: 'function', }, { inputs: [ { internalType: 'address', name: '_vault', type: 'address', }, ], name: 'vaultQuarantine', outputs: [ { components: [ { internalType: 'bool', name: 'isActive', type: 'bool', }, { internalType: 'uint256', name: 'pendingTotalValueIncrease', type: 'uint256', }, { internalType: 'uint256', name: 'startTimestamp', type: 'uint256', }, { internalType: 'uint256', name: 'endTimestamp', type: 'uint256', }, { internalType: 'uint256', name: 'totalValueRemainder', type: 'uint256', }, ], internalType: 'struct LazyOracle.QuarantineInfo', name: '', type: 'tuple', }, ], stateMutability: 'view', type: 'function', }, { inputs: [], name: 'vaultsCount', outputs: [ { internalType: 'uint256', name: '', type: 'uint256', }, ], stateMutability: 'view', type: 'function', }, ]; exports.LazyOracleAbi = abi; //# sourceMappingURL=LazyOracle.js.map