navskit
Version:
Deploy TypeScript logic on Ethereum. Includes core library, CLI tools, and utilities.
5 lines (4 loc) • 11 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.abi = void 0;
exports.abi = [{ "type": "constructor", "inputs": [{ "name": "_permissionController", "type": "address", "internalType": "contract IPermissionController" }, { "name": "_reservationRegistry", "type": "address", "internalType": "contract IReservationRegistry" }, { "name": "_slashingRegistryCoordinator", "type": "address", "internalType": "contract ISlashingRegistryCoordinator" }, { "name": "_indexRegistry", "type": "address", "internalType": "contract IIndexRegistry" }, { "name": "_stakeRegistry", "type": "address", "internalType": "contract IStakeRegistry" }, { "name": "_paymentToken", "type": "address", "internalType": "contract IERC20" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "DENOMINATOR", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "THRESHOLD", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "getFinalizedResponse", "inputs": [{ "name": "requestIndex", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "status", "type": "uint8", "internalType": "enum IReexecutionEndpoint.RequestStatus" }, { "name": "finalizedResultHash", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "getFinalizedResponseView", "inputs": [{ "name": "requestIndex", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "status", "type": "uint8", "internalType": "enum IReexecutionEndpoint.RequestStatus" }, { "name": "finalizedResultHash", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "getRequest", "inputs": [{ "name": "requestIndex", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "request", "type": "tuple", "internalType": "struct IReexecutionEndpoint.ReexecutionRequest", "components": [{ "name": "avs", "type": "address", "internalType": "address" }, { "name": "imageID", "type": "uint32", "internalType": "uint32" }, { "name": "syncPayloadHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "taskID", "type": "bytes32", "internalType": "bytes32" }, { "name": "taskPayloadHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "requestBlock", "type": "uint32", "internalType": "uint32" }, { "name": "epochStartBlockNumber", "type": "uint32", "internalType": "uint32" }, { "name": "totalStakeWeight", "type": "uint96", "internalType": "uint96" }, { "name": "finalizedResultHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "feePerOperator", "type": "uint256", "internalType": "uint256" }, { "name": "status", "type": "uint8", "internalType": "enum IReexecutionEndpoint.RequestStatus" }] }], "stateMutability": "view" }, { "type": "function", "name": "getRequestCount", "inputs": [], "outputs": [{ "name": "count", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "getRequestFee", "inputs": [{ "name": "blockNumber", "type": "uint32", "internalType": "uint32" }], "outputs": [{ "name": "requiredFee", "type": "uint256", "internalType": "uint256" }, { "name": "feePerOperator", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "getRequestStatus", "inputs": [{ "name": "requestIndex", "type": "uint256", "internalType": "uint256" }], "outputs": [{ "name": "status", "type": "uint8", "internalType": "enum IReexecutionEndpoint.RequestStatus" }], "stateMutability": "view" }, { "type": "function", "name": "getResultHash", "inputs": [{ "name": "requestIndex", "type": "uint256", "internalType": "uint256" }, { "name": "operator", "type": "address", "internalType": "address" }], "outputs": [{ "name": "resultHash", "type": "bytes32", "internalType": "bytes32" }], "stateMutability": "view" }, { "type": "function", "name": "hasOperatorResponded", "inputs": [{ "name": "requestIndex", "type": "uint256", "internalType": "uint256" }, { "name": "operator", "type": "address", "internalType": "address" }], "outputs": [{ "name": "", "type": "bool", "internalType": "bool" }], "stateMutability": "view" }, { "type": "function", "name": "indexRegistry", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract IIndexRegistry" }], "stateMutability": "view" }, { "type": "function", "name": "initialize", "inputs": [{ "name": "initialOwner", "type": "address", "internalType": "address" }, { "name": "_responseFeePerOperator", "type": "uint256", "internalType": "uint256" }, { "name": "_reexecutionFeePerOperator", "type": "uint256", "internalType": "uint256" }, { "name": "_responseWindowBlocks", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "owner", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "paymentToken", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract IERC20" }], "stateMutability": "view" }, { "type": "function", "name": "permissionController", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract IPermissionController" }], "stateMutability": "view" }, { "type": "function", "name": "reexecutionFeePerOperator", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "renounceOwnership", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "requestReexecution", "inputs": [{ "name": "imageID", "type": "uint32", "internalType": "uint32" }, { "name": "syncPayload", "type": "bytes", "internalType": "bytes" }, { "name": "taskID", "type": "bytes32", "internalType": "bytes32" }, { "name": "taskPayload", "type": "bytes", "internalType": "bytes" }], "outputs": [{ "name": "requestIndex", "type": "uint256", "internalType": "uint256" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "reservationRegistry", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract IReservationRegistry" }], "stateMutability": "view" }, { "type": "function", "name": "respond", "inputs": [{ "name": "operator", "type": "address", "internalType": "address" }, { "name": "requestIndex", "type": "uint256", "internalType": "uint256" }, { "name": "resultHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "responseFeePerOperator", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "responseWindowBlocks", "inputs": [], "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }], "stateMutability": "view" }, { "type": "function", "name": "setReexecutionFeePerOperator", "inputs": [{ "name": "_reexecutionFeePerOperator", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setResponseFeePerOperator", "inputs": [{ "name": "_responseFeePerOperator", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setResponseWindowBlocks", "inputs": [{ "name": "_responseWindowBlocks", "type": "uint256", "internalType": "uint256" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "slashingRegistryCoordinator", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract ISlashingRegistryCoordinator" }], "stateMutability": "view" }, { "type": "function", "name": "stakeRegistry", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract IStakeRegistry" }], "stateMutability": "view" }, { "type": "function", "name": "transferOwnership", "inputs": [{ "name": "newOwner", "type": "address", "internalType": "address" }], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "Initialized", "inputs": [{ "name": "version", "type": "uint8", "indexed": false, "internalType": "uint8" }], "anonymous": false }, { "type": "event", "name": "OperatorResponse", "inputs": [{ "name": "requestIndex", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "operator", "type": "address", "indexed": true, "internalType": "address" }, { "name": "response", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "stake", "type": "uint256", "indexed": false, "internalType": "uint256" }], "anonymous": false }, { "type": "event", "name": "OwnershipTransferred", "inputs": [{ "name": "previousOwner", "type": "address", "indexed": true, "internalType": "address" }, { "name": "newOwner", "type": "address", "indexed": true, "internalType": "address" }], "anonymous": false }, { "type": "event", "name": "ReexecutionRequestCreated", "inputs": [{ "name": "requestIndex", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "avs", "type": "address", "indexed": true, "internalType": "address" }, { "name": "reservationID", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "imageID", "type": "uint32", "indexed": false, "internalType": "uint32" }, { "name": "syncPayload", "type": "bytes", "indexed": false, "internalType": "bytes" }, { "name": "taskID", "type": "bytes32", "indexed": false, "internalType": "bytes32" }, { "name": "taskPayload", "type": "bytes", "indexed": false, "internalType": "bytes" }, { "name": "requestBlock", "type": "uint32", "indexed": false, "internalType": "uint32" }], "anonymous": false }, { "type": "event", "name": "ResponseFinalized", "inputs": [{ "name": "requestIndex", "type": "uint256", "indexed": true, "internalType": "uint256" }, { "name": "finalizedResultHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }], "anonymous": false }, { "type": "error", "name": "InvalidPermissions", "inputs": [] }, { "type": "error", "name": "InvalidRequest", "inputs": [] }, { "type": "error", "name": "InvalidRequestIndex", "inputs": [] }, { "type": "error", "name": "MaxRequestsPerReservationExceeded", "inputs": [] }, { "type": "error", "name": "OperatorAlreadyResponded", "inputs": [] }, { "type": "error", "name": "OperatorHasNotResponded", "inputs": [] }, { "type": "error", "name": "OperatorNotRegistered", "inputs": [] }, { "type": "error", "name": "RequestNotPending", "inputs": [] }, { "type": "error", "name": "ResponseDeadlineNotPassed", "inputs": [] }, { "type": "error", "name": "ResponseDeadlinePassed", "inputs": [] }, { "type": "error", "name": "TimestampBeforeGenesis", "inputs": [] }];