ees-sdk
Version:
SDK for EES (Ethereum Execution Service)
5 lines (4 loc) • 15.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.coordinatorAbi = void 0;
exports.coordinatorAbi = [{ "type": "constructor", "inputs": [{ "name": "_spec", "type": "tuple", "internalType": "struct ICoordinator.InitSpec", "components": [{ "name": "stakingToken", "type": "address", "internalType": "address" }, { "name": "stakingAmountPerModule", "type": "uint256", "internalType": "uint256" }, { "name": "minimumRegistrationPeriod", "type": "uint256", "internalType": "uint256" }, { "name": "stakingBalanceThresholdPerModule", "type": "uint256", "internalType": "uint256" }, { "name": "inactiveSlashingAmountPerModule", "type": "uint256", "internalType": "uint256" }, { "name": "commitSlashingAmountPerModule", "type": "uint256", "internalType": "uint256" }, { "name": "roundDuration", "type": "uint8", "internalType": "uint8" }, { "name": "roundsPerEpoch", "type": "uint8", "internalType": "uint8" }, { "name": "roundBuffer", "type": "uint8", "internalType": "uint8" }, { "name": "commitPhaseDuration", "type": "uint8", "internalType": "uint8" }, { "name": "revealPhaseDuration", "type": "uint8", "internalType": "uint8" }, { "name": "slashingDuration", "type": "uint8", "internalType": "uint8" }, { "name": "executionTax", "type": "uint256", "internalType": "uint256" }, { "name": "zeroFeeExecutionTax", "type": "uint256", "internalType": "uint256" }, { "name": "protocolPoolCutBps", "type": "uint256", "internalType": "uint256" }] }, { "name": "_treasury", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "activeExecutors", "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "addExecutionModule", "inputs": [{ "name": "_module", "type": "address", "internalType": "contract IExecutionModule" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "addFeeModule", "inputs": [{ "name": "_module", "type": "address", "internalType": "contract IFeeModule" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "addJobRegistry", "inputs": [{ "name": "_registry", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "commit", "inputs": [{ "name": "_commitment", "type": "bytes32", "internalType": "bytes32" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "commitmentMap", "inputs": [{ "name": "", "type": "address", "internalType": "address" }], "outputs": [{ "name": "commitment", "type": "bytes32", "internalType": "bytes32" }, { "name": "epoch", "type": "uint192", "internalType": "uint192" }, { "name": "revealed", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "deregisterModules", "inputs": [{ "name": "_modulesBitset", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "epoch", "inputs": [], "outputs": [{ "name": "", "type": "uint192", "internalType": "uint192" }], "stateMutability": "view" }, { "type": "function", "name": "epochEndTime", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "epochPoolBalance", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "executeBatch", "inputs": [{ "name": "_indices", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "_gasLimits", "type": "uint256[]", "internalType": "uint256[]" }, { "name": "_feeRecipient", "type": "address", "internalType": "address" }, { "name": "_jobRegistryIndex", "type": "uint8", "internalType": "uint8" }], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint96", "internalType": "uint96" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "executedJobsInRoundsOfEpoch", "inputs": [], "outputs": [{ "name": "", "type": "uint96", "internalType": "uint96" }], "stateMutability": "view" }, { "type": "function", "name": "executorInfo", "inputs": [{ "name": "", "type": "address", "internalType": "address" }], "outputs": [{ "name": "balance", "type": "uint256", "internalType": "uint256" }, { "name": "active", "type": "bool", "internalType": "bool" }, { "name": "initialized", "type": "bool", "internalType": "bool" }, { "name": "arrayIndex", "type": "uint32", "internalType": "uint32" }, { "name": "roundsCheckedInEpoch", "type": "uint8", "internalType": "uint8" }, { "name": "lastCheckinRound", "type": "uint8", "internalType": "uint8" }, { "name": "lastCheckinEpoch", "type": "uint96", "internalType": "uint96" }, { "name": "executionsInRoundsInEpoch", "type": "uint96", "internalType": "uint96" }, { "name": "lastRegistrationTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "registeredModules", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "exportConfig", "inputs": [], "outputs": [{ "name": "", "type": "bytes", "internalType": "bytes" }], "stateMutability": "view" }, { "type": "function", "name": "getTaxConfig", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "initiateEpoch", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "isJobRegistry", "inputs": [{ "name": "", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "jobRegistries", "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "modules", "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "module", "type": "address", "internalType": "address" }, { "name": "isExecutionModule", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "nextEpochPoolBalance", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "numberOfActiveExecutors", "inputs": [], "outputs": [{ "name": "", "type": "uint32", "internalType": "uint32" }], "stateMutability": "view" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "poolCutReceivers", "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "protocolBalance", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "registerModules", "inputs": [{ "name": "_modulesBitset", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "reveal", "inputs": [{ "name": "_signature", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "seed", "inputs": [], "outputs": [{ "name": "", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "slashCommitter", "inputs": [{ "name": "_executor", "type": "address", "internalType": "address" }, { "name": "_recipient", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "slashInactiveExecutor", "inputs": [{ "name": "_executor", "type": "address", "internalType": "address" }, { "name": "_round", "type": "uint8", "internalType": "uint8" }, { "name": "_recipient", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "stake", "inputs": [{ "name": "_modulesBitset", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "stakingAmount", "type": "uint256", "internalType": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "topup", "inputs": [{ "name": "_amount", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "transferOwnership", "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "unstake", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateExecutionTax", "inputs": [{ "name": "_executionTax", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateProtocolPoolCutBps", "inputs": [{ "name": "_protocolPoolCutBps", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateZeroFeeExecutionTax", "inputs": [{ "name": "_zeroFeeExecutionTax", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdrawProtocolBalance", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "nonpayable" }, { "type": "event", "name": "BatchExecution", "inputs": [{ "name": "jobRegistryIndex", "type": "uint8", "indexed": false, "internalType": "uint8" }, { "name": "standardTax", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "zeroFeeTax", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "inRound", "type": "bool", "indexed": false, "internalType": "bool" }], "anonymous": false }, { "type": "event", "name": "CheckIn", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "epoch", "type": "uint192", "indexed": true, "internalType": "uint192" }, { "name": "round", "type": "uint8", "indexed": false, "internalType": "uint8" }], "anonymous": false }, { "type": "event", "name": "Commitment", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "epoch", "type": "uint192", "indexed": true, "internalType": "uint192" }], "anonymous": false }, { "type": "event", "name": "EpochInitiated", "inputs": [{ "name": "epoch", "type": "uint192", "indexed": false, "internalType": "uint192" }, { "name": "previousEpochPoolDistributed", "type": "uint256", "indexed": false, "internalType": "uint256" }, { "name": "protocolCut", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "ExecutorActivated", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "ExecutorDeactivated", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "ModulesDeregistered", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "modulesBitset", "type": "uint256", "indexed": true, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "ModulesRegistered", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "modulesBitset", "type": "uint256", "indexed": true, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "OwnershipTransferred", "inputs": [{ "name": "user", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "Reveal", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "epoch", "type": "uint192", "indexed": true, "internalType": "uint192" }, { "name": "newSeed", "type": "bytes32", "indexed": false, "internalType": "bytes32" }], "anonymous": false }, { "type": "event", "name": "SlashCommitter", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "slasher", "type": "address", "indexed": true, "internalType": "address" }, { "name": "epoch", "type": "uint192", "indexed": true, "internalType": "uint192" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "SlashInactiveExecutor", "inputs": [{ "name": "executor", "type": "address", "indexed": true, "internalType": "address" }, { "name": "slasher", "type": "address", "indexed": true, "internalType": "address" }, { "name": "epoch", "type": "uint192", "indexed": true, "internalType": "uint192" }, { "name": "round", "type": "uint8", "indexed": false, "internalType": "uint8" }, { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "error", "name": "AlreadyCheckedIn", "inputs": [] }, { "type": "error", "name": "AlreadyStaked", "inputs": [] }, { "type": "error", "name": "CheckInOutsideRound", "inputs": [] }, { "type": "error", "name": "CommitmentRevealed", "inputs": [] }, { "type": "error", "name": "DesignatedExecutorSupportsModules", "inputs": [] }, { "type": "error", "name": "ExecutorNotRegisteredForModules", "inputs": [] }, { "type": "error", "name": "ExecutorNotSelectedForRound", "inputs": [] }, { "type": "error", "name": "FinalBalanceBelowMinimum", "inputs": [] }, { "type": "error", "name": "InvalidBlockTime", "inputs": [] }, { "type": "error", "name": "InvalidSignature", "inputs": [] }, { "type": "error", "name": "InvalidSignatureLength", "inputs": [] }, { "type": "error", "name": "JobRegistryNotSet", "inputs": [] }, { "type": "error", "name": "MinimumRegistrationPeriodNotOver", "inputs": [] }, { "type": "error", "name": "NoModulesToRegister", "inputs": [] }, { "type": "error", "name": "NotActiveExecutor", "inputs": [] }, { "type": "error", "name": "NotInitializedExecutor", "inputs": [] }, { "type": "error", "name": "NumberOfRegisteredModulesBelowMinimum", "inputs": [] }, { "type": "error", "name": "OldEpoch", "inputs": [] }, { "type": "error", "name": "RoundExceedingTotal", "inputs": [] }, { "type": "error", "name": "RoundExecuted", "inputs": [] }, { "type": "error", "name": "SomeModulesAlreadyRegistered", "inputs": [] }, { "type": "error", "name": "TaxUpdateTooLarge", "inputs": [] }, { "type": "error", "name": "UpdateOnCooldown", "inputs": [] }, { "type": "error", "name": "WrongCommitment", "inputs": [] }, { "type": "error", "name": "WrongNumberOfRandomWords", "inputs": [] }];