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,335 lines 33.5 kB
export const VettedGateAbi = [ { "type": "constructor", "inputs": [ { "name": "module", "type": "address", "internalType": "address" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "ACCOUNTING", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ICSAccounting" } ], "stateMutability": "view" }, { "type": "function", "name": "DEFAULT_ADMIN_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "END_REFERRAL_SEASON_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "MODULE", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "contract ICSModule" } ], "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": "SET_TREE_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "START_REFERRAL_SEASON_ROLE", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "addNodeOperatorETH", "inputs": [ { "name": "keysCount", "type": "uint256", "internalType": "uint256" }, { "name": "publicKeys", "type": "bytes", "internalType": "bytes" }, { "name": "signatures", "type": "bytes", "internalType": "bytes" }, { "name": "managementProperties", "type": "tuple", "internalType": "struct NodeOperatorManagementProperties", "components": [ { "name": "managerAddress", "type": "address", "internalType": "address" }, { "name": "rewardAddress", "type": "address", "internalType": "address" }, { "name": "extendedManagerPermissions", "type": "bool", "internalType": "bool" } ] }, { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "referrer", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "nodeOperatorId", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "payable" }, { "type": "function", "name": "addNodeOperatorStETH", "inputs": [ { "name": "keysCount", "type": "uint256", "internalType": "uint256" }, { "name": "publicKeys", "type": "bytes", "internalType": "bytes" }, { "name": "signatures", "type": "bytes", "internalType": "bytes" }, { "name": "managementProperties", "type": "tuple", "internalType": "struct NodeOperatorManagementProperties", "components": [ { "name": "managerAddress", "type": "address", "internalType": "address" }, { "name": "rewardAddress", "type": "address", "internalType": "address" }, { "name": "extendedManagerPermissions", "type": "bool", "internalType": "bool" } ] }, { "name": "permit", "type": "tuple", "internalType": "struct ICSAccounting.PermitInput", "components": [ { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "deadline", "type": "uint256", "internalType": "uint256" }, { "name": "v", "type": "uint8", "internalType": "uint8" }, { "name": "r", "type": "bytes32", "internalType": "bytes32" }, { "name": "s", "type": "bytes32", "internalType": "bytes32" } ] }, { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "referrer", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "nodeOperatorId", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "addNodeOperatorWstETH", "inputs": [ { "name": "keysCount", "type": "uint256", "internalType": "uint256" }, { "name": "publicKeys", "type": "bytes", "internalType": "bytes" }, { "name": "signatures", "type": "bytes", "internalType": "bytes" }, { "name": "managementProperties", "type": "tuple", "internalType": "struct NodeOperatorManagementProperties", "components": [ { "name": "managerAddress", "type": "address", "internalType": "address" }, { "name": "rewardAddress", "type": "address", "internalType": "address" }, { "name": "extendedManagerPermissions", "type": "bool", "internalType": "bool" } ] }, { "name": "permit", "type": "tuple", "internalType": "struct ICSAccounting.PermitInput", "components": [ { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "deadline", "type": "uint256", "internalType": "uint256" }, { "name": "v", "type": "uint8", "internalType": "uint8" }, { "name": "r", "type": "bytes32", "internalType": "bytes32" }, { "name": "s", "type": "bytes32", "internalType": "bytes32" } ] }, { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" }, { "name": "referrer", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "nodeOperatorId", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "claimBondCurve", "inputs": [ { "name": "nodeOperatorId", "type": "uint256", "internalType": "uint256" }, { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "claimReferrerBondCurve", "inputs": [ { "name": "nodeOperatorId", "type": "uint256", "internalType": "uint256" }, { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "curveId", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "endCurrentReferralProgramSeason", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "getInitializedVersion", "inputs": [], "outputs": [ { "name": "", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "getReferralsCount", "inputs": [ { "name": "referrer", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getReferralsCount", "inputs": [ { "name": "referrer", "type": "address", "internalType": "address" }, { "name": "season", "type": "uint256", "internalType": "uint256" } ], "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": "hashLeaf", "inputs": [ { "name": "member", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "pure" }, { "type": "function", "name": "initialize", "inputs": [ { "name": "_curveId", "type": "uint256", "internalType": "uint256" }, { "name": "_treeRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "_treeCid", "type": "string", "internalType": "string" }, { "name": "admin", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "isConsumed", "inputs": [ { "name": "member", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isPaused", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isReferralProgramSeasonActive", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isReferrerConsumed", "inputs": [ { "name": "referrer", "type": "address", "internalType": "address" } ], "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": "referralCurveId", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "referralProgramSeasonNumber", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "referralsThreshold", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "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": "setTreeParams", "inputs": [ { "name": "_treeRoot", "type": "bytes32", "internalType": "bytes32" }, { "name": "_treeCid", "type": "string", "internalType": "string" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "startNewReferralProgramSeason", "inputs": [ { "name": "_referralCurveId", "type": "uint256", "internalType": "uint256" }, { "name": "_referralsThreshold", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "season", "type": "uint256", "internalType": "uint256" } ], "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": "member", "type": "address", "internalType": "address" }, { "name": "proof", "type": "bytes32[]", "internalType": "bytes32[]" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "event", "name": "Consumed", "inputs": [ { "name": "member", "type": "address", "indexed": true, "internalType": "address" } ], "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": "ReferralProgramSeasonEnded", "inputs": [ { "name": "season", "type": "uint256", "indexed": true, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ReferralProgramSeasonStarted", "inputs": [ { "name": "season", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "referralCurveId", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "referralsThreshold", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ReferralRecorded", "inputs": [ { "name": "referrer", "type": "address", "indexed": true, "internalType": "address" }, { "name": "season", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "referralNodeOperatorId", "type": "uint256", "indexed": true, "internalType": "uint256" } ], "anonymous": false }, { "type": "event", "name": "ReferrerConsumed", "inputs": [ { "name": "referrer", "type": "address", "indexed": true, "internalType": "address" }, { "name": "season", "type": "uint256", "indexed": true, "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": "TreeSet", "inputs": [ { "name": "treeRoot", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "treeCid", "type": "string", "indexed": false, "internalType": "string" } ], "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": "AlreadyConsumed", "inputs": [] }, { "type": "error", "name": "InvalidCurveId", "inputs": [] }, { "type": "error", "name": "InvalidInitialization", "inputs": [] }, { "type": "error", "name": "InvalidProof", "inputs": [] }, { "type": "error", "name": "InvalidReferralsThreshold", "inputs": [] }, { "type": "error", "name": "InvalidTreeCid", "inputs": [] }, { "type": "error", "name": "InvalidTreeRoot", "inputs": [] }, { "type": "error", "name": "NodeOperatorDoesNotExist", "inputs": [] }, { "type": "error", "name": "NotAllowedToClaim", "inputs": [] }, { "type": "error", "name": "NotEnoughReferrals", "inputs": [] }, { "type": "error", "name": "NotInitializing", "inputs": [] }, { "type": "error", "name": "PauseUntilMustBeInFuture", "inputs": [] }, { "type": "error", "name": "PausedExpected", "inputs": [] }, { "type": "error", "name": "ReferralProgramIsActive", "inputs": [] }, { "type": "error", "name": "ReferralProgramIsNotActive", "inputs": [] }, { "type": "error", "name": "ResumedExpected", "inputs": [] }, { "type": "error", "name": "ZeroAdminAddress", "inputs": [] }, { "type": "error", "name": "ZeroModuleAddress", "inputs": [] }, { "type": "error", "name": "ZeroPauseDuration", "inputs": [] } ]; //# sourceMappingURL=VettedGate.js.map