export const abi = [ { "type": "fallback", "stateMutability": "payable" }, { "type": "receive", "stateMutability": "payable" }, { "type": "function", "name": "ANY_FN_SEL", "inputs": [], "outputs": [ { "name": "", "type": "bytes4", "internalType": "bytes4" } ], "stateMutability": "view" }, { "type": "function", "name": "ANY_KEYHASH", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "ANY_TARGET", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "EMPTY_CALLDATA_FN_SEL", "inputs": [], "outputs": [ { "name": "", "type": "bytes4", "internalType": "bytes4" } ], "stateMutability": "view" }, { "type": "function", "name": "callCheckerInfos", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "results", "type": "tuple[]", "internalType": "struct GuardedExecutor.CallCheckerInfo[]", "components": [ { "name": "target", "type": "address", "internalType": "address" }, { "name": "checker", "type": "address", "internalType": "address" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "canExecute", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "target", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "canExecutePackedInfos", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bytes32[]", "internalType": "bytes32[]" } ], "stateMutability": "view" }, { "type": "function", "name": "execute", "inputs": [ { "name": "mode", "type": "bytes32", "internalType": "bytes32" }, { "name": "executionData", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "payable" }, { "type": "function", "name": "removeSpendLimit", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "token", "type": "address", "internalType": "address" }, { "name": "period", "type": "uint8", "internalType": "enum GuardedExecutor.SpendPeriod" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setCallChecker", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "target", "type": "address", "internalType": "address" }, { "name": "checker", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setCanExecute", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "target", "type": "address", "internalType": "address" }, { "name": "fnSel", "type": "bytes4", "internalType": "bytes4" }, { "name": "can", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setSpendLimit", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "token", "type": "address", "internalType": "address" }, { "name": "period", "type": "uint8", "internalType": "enum GuardedExecutor.SpendPeriod" }, { "name": "limit", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "spendAndExecuteInfos", "inputs": [ { "name": "keyHashes", "type": "bytes32[]", "internalType": "bytes32[]" } ], "outputs": [ { "name": "spends", "type": "tuple[][]", "internalType": "struct GuardedExecutor.SpendInfo[][]", "components": [ { "name": "token", "type": "address", "internalType": "address" }, { "name": "period", "type": "uint8", "internalType": "enum GuardedExecutor.SpendPeriod" }, { "name": "limit", "type": "uint256", "internalType": "uint256" }, { "name": "spent", "type": "uint256", "internalType": "uint256" }, { "name": "lastUpdated", "type": "uint256", "internalType": "uint256" }, { "name": "currentSpent", "type": "uint256", "internalType": "uint256" }, { "name": "current", "type": "uint256", "internalType": "uint256" } ] }, { "name": "executes", "type": "bytes32[][]", "internalType": "bytes32[][]" } ], "stateMutability": "view" }, { "type": "function", "name": "spendInfos", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "results", "type": "tuple[]", "internalType": "struct GuardedExecutor.SpendInfo[]", "components": [ { "name": "token", "type": "address", "internalType": "address" }, { "name": "period", "type": "uint8", "internalType": "enum GuardedExecutor.SpendPeriod" }, { "name": "limit", "type": "uint256", "internalType": "uint256" }, { "name": "spent", "type": "uint256", "internalType": "uint256" }, { "name": "lastUpdated", "type": "uint256", "internalType": "uint256" }, { "name": "currentSpent", "type": "uint256", "internalType": "uint256" }, { "name": "current", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "startOfSpendPeriod", "inputs": [ { "name": "unixTimestamp", "type": "uint256", "internalType": "uint256" }, { "name": "period", "type": "uint8", "internalType": "enum GuardedExecutor.SpendPeriod" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "pure" }, { "type": "function", "name": "supportsExecutionMode", "inputs": [ { "name": "mode", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "result", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "event", "name": "CallCheckerSet", "inputs": [ { "name": "keyHash", "type": "bytes32", "indexed": false, "internalType": "bytes32" }, { "name": "target", "type": "address", "indexed": false, "internalType": "address" }, { "name": "checker", "type": "address", "indexed": false, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "CanExecuteSet", "inputs": [ { "name": "keyHash", "type": "bytes32", "indexed": false, "internalType": "bytes32" }, { "name": "target", "type": "address", "indexed": false, "internalType": "address" }, { "name": "fnSel", "type": "bytes4", "indexed": false, "internalType": "bytes4" }, { "name": "can", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "SpendLimitRemoved", "inputs": [ { "name": "keyHash", "type": "bytes32", "indexed": false, "internalType": "bytes32" }, { "name": "token", "type": "address", "indexed": false, "internalType": "address" }, { "name": "period", "type": "uint8", "indexed": false, "internalType": "enum GuardedExecutor.SpendPeriod" } ], "anonymous": false }, { "type": "event", "name": "SpendLimitSet", "inputs": [ { "name": "keyHash", "type": "bytes32", "indexed": false, "internalType": "bytes32" }, { "name": "token", "type": "address", "indexed": false, "internalType": "address" }, { "name": "period", "type": "uint8", "indexed": false, "internalType": "enum GuardedExecutor.SpendPeriod" }, { "name": "limit", "type": "uint256", "indexed": false, "internalType": "uint256" } ], "anonymous": false }, { "type": "error", "name": "BatchOfBatchesDecodingError", "inputs": [] }, { "type": "error", "name": "CannotSelfExecute", "inputs": [] }, { "type": "error", "name": "ExceededSpendLimit", "inputs": [ { "name": "token", "type": "address", "internalType": "address" } ] }, { "type": "error", "name": "ExceedsCapacity", "inputs": [] }, { "type": "error", "name": "FnSelectorNotRecognized", "inputs": [] }, { "type": "error", "name": "IndexOutOfBounds", "inputs": [] }, { "type": "error", "name": "KeyHashIsZero", "inputs": [] }, { "type": "error", "name": "NoSpendPermissions", "inputs": [] }, { "type": "error", "name": "SuperAdminCanExecuteEverything", "inputs": [] }, { "type": "error", "name": "SuperAdminCanSpendAnything", "inputs": [] }, { "type": "error", "name": "Unauthorized", "inputs": [] }, { "type": "error", "name": "UnauthorizedCall", "inputs": [ { "name": "keyHash", "type": "bytes32", "internalType": "bytes32" }, { "name": "target", "type": "address", "internalType": "address" }, { "name": "data", "type": "bytes", "internalType": "bytes" } ] }, { "type": "error", "name": "UnsupportedExecutionMode", "inputs": [] } ] as const; export const code = "0x" as const;