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

734 lines 17.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidatorStrikesAbi = void 0; exports.ValidatorStrikesAbi = [ { type: 'constructor', inputs: [ { name: 'module', type: 'address', internalType: 'address' }, { name: 'oracle', type: 'address', internalType: 'address' }, { name: 'exitPenalties', type: 'address', internalType: 'address' }, { name: 'parametersRegistry', type: 'address', internalType: 'address' } ], stateMutability: 'nonpayable' }, { type: 'function', name: 'ACCOUNTING', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IAccounting' } ], stateMutability: 'view' }, { type: 'function', name: 'DEFAULT_ADMIN_ROLE', inputs: [], outputs: [ { name: '', type: 'bytes32', internalType: 'bytes32' } ], stateMutability: 'view' }, { type: 'function', name: 'EXIT_PENALTIES', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IExitPenalties' } ], stateMutability: 'view' }, { type: 'function', name: 'MODULE', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract ICSModule' } ], stateMutability: 'view' }, { type: 'function', name: 'ORACLE', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'address' } ], stateMutability: 'view' }, { type: 'function', name: 'PARAMETERS_REGISTRY', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IParametersRegistry' } ], stateMutability: 'view' }, { type: 'function', name: 'ejector', inputs: [], outputs: [ { name: '', type: 'address', internalType: 'contract IEjector' } ], stateMutability: 'view' }, { type: 'function', name: 'getInitializedVersion', inputs: [], outputs: [ { name: '', type: 'uint64', internalType: 'uint64' } ], 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: 'hashLeaf', inputs: [ { name: 'keyStrikes', type: 'tuple', internalType: 'struct IValidatorStrikes.KeyStrikes', components: [ { name: 'nodeOperatorId', type: 'uint256', internalType: 'uint256' }, { name: 'keyIndex', type: 'uint256', internalType: 'uint256' }, { name: 'data', type: 'uint256[]', internalType: 'uint256[]' } ] }, { name: 'pubkey', type: 'bytes', internalType: 'bytes' } ], outputs: [ { name: '', type: 'bytes32', internalType: 'bytes32' } ], stateMutability: 'pure' }, { type: 'function', name: 'initialize', inputs: [ { name: 'admin', type: 'address', internalType: 'address' }, { name: '_ejector', type: 'address', internalType: 'address' } ], outputs: [], stateMutability: 'nonpayable' }, { type: 'function', name: 'processBadPerformanceProof', inputs: [ { name: 'keyStrikesList', type: 'tuple[]', internalType: 'struct IValidatorStrikes.KeyStrikes[]', components: [ { name: 'nodeOperatorId', type: 'uint256', internalType: 'uint256' }, { name: 'keyIndex', type: 'uint256', internalType: 'uint256' }, { name: 'data', type: 'uint256[]', internalType: 'uint256[]' } ] }, { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' }, { name: 'proofFlags', type: 'bool[]', internalType: 'bool[]' }, { name: 'refundRecipient', type: 'address', internalType: 'address' } ], outputs: [], stateMutability: 'payable' }, { type: 'function', name: 'processOracleReport', inputs: [ { name: '_treeRoot', type: 'bytes32', internalType: 'bytes32' }, { name: '_treeCid', type: 'string', internalType: 'string' } ], 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: 'revokeRole', inputs: [ { name: 'role', type: 'bytes32', internalType: 'bytes32' }, { name: 'account', type: 'address', internalType: 'address' } ], outputs: [], stateMutability: 'nonpayable' }, { type: 'function', name: 'setEjector', inputs: [ { name: '_ejector', type: 'address', internalType: 'address' } ], outputs: [], stateMutability: 'nonpayable' }, { type: 'function', name: 'supportsInterface', inputs: [ { name: 'interfaceId', type: 'bytes4', internalType: 'bytes4' } ], outputs: [ { name: '', type: 'bool', internalType: 'bool' } ], stateMutability: 'view' }, { type: 'function', name: 'treeCid', inputs: [], outputs: [ { name: '', type: 'string', internalType: 'string' } ], stateMutability: 'view' }, { type: 'function', name: 'treeRoot', inputs: [], outputs: [ { name: '', type: 'bytes32', internalType: 'bytes32' } ], stateMutability: 'view' }, { type: 'function', name: 'verifyProof', inputs: [ { name: 'keyStrikesList', type: 'tuple[]', internalType: 'struct IValidatorStrikes.KeyStrikes[]', components: [ { name: 'nodeOperatorId', type: 'uint256', internalType: 'uint256' }, { name: 'keyIndex', type: 'uint256', internalType: 'uint256' }, { name: 'data', type: 'uint256[]', internalType: 'uint256[]' } ] }, { name: 'pubkeys', type: 'bytes[]', internalType: 'bytes[]' }, { name: 'proof', type: 'bytes32[]', internalType: 'bytes32[]' }, { name: 'proofFlags', type: 'bool[]', internalType: 'bool[]' } ], outputs: [ { name: '', type: 'bool', internalType: 'bool' } ], stateMutability: 'view' }, { type: 'event', name: 'EjectorSet', inputs: [ { name: 'ejector', type: 'address', indexed: false, internalType: 'address' } ], anonymous: false }, { type: 'event', name: 'Initialized', inputs: [ { name: 'version', type: 'uint64', indexed: false, internalType: 'uint64' } ], 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: 'StrikesDataUpdated', inputs: [ { name: 'treeRoot', type: 'bytes32', indexed: false, internalType: 'bytes32' }, { name: 'treeCid', type: 'string', indexed: false, internalType: 'string' } ], anonymous: false }, { type: 'event', name: 'StrikesDataWiped', inputs: [], 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: 'EmptyKeyStrikesList', inputs: [] }, { type: 'error', name: 'InvalidInitialization', inputs: [] }, { type: 'error', name: 'InvalidProof', inputs: [] }, { type: 'error', name: 'InvalidReportData', inputs: [] }, { type: 'error', name: 'MerkleProofInvalidMultiproof', inputs: [] }, { type: 'error', name: 'NotEnoughStrikesToEject', inputs: [] }, { type: 'error', name: 'NotInitializing', inputs: [] }, { type: 'error', name: 'SenderIsNotOracle', inputs: [] }, { type: 'error', name: 'ValueNotEvenlyDivisible', inputs: [] }, { type: 'error', name: 'ZeroAdminAddress', inputs: [] }, { type: 'error', name: 'ZeroEjectorAddress', inputs: [] }, { type: 'error', name: 'ZeroExitPenaltiesAddress', inputs: [] }, { type: 'error', name: 'ZeroModuleAddress', inputs: [] }, { type: 'error', name: 'ZeroMsgValue', inputs: [] }, { type: 'error', name: 'ZeroOracleAddress', inputs: [] }, { type: 'error', name: 'ZeroParametersRegistryAddress', inputs: [] }, ]; //# sourceMappingURL=ValidatorStrikes.js.map