UNPKG

zksync-sso

Version:
1,354 lines 36.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SsoAccountAbi = void 0; exports.SsoAccountAbi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { inputs: [ { internalType: "uint256", name: "value", type: "uint256", }, ], name: "ADDRESS_CAST_OVERFLOW", type: "error", }, { inputs: [], name: "FEE_PAYMENT_FAILED", type: "error", }, { inputs: [ { internalType: "address", name: "hook", type: "address", }, { internalType: "bool", name: "isValidation", type: "bool", }, ], name: "HOOK_ALREADY_EXISTS", type: "error", }, { inputs: [ { internalType: "address", name: "hookAddress", type: "address", }, { internalType: "bool", name: "isValidation", type: "bool", }, ], name: "HOOK_ERC165_FAIL", type: "error", }, { inputs: [ { internalType: "address", name: "hook", type: "address", }, { internalType: "bool", name: "isValidation", type: "bool", }, ], name: "HOOK_NOT_FOUND", type: "error", }, { inputs: [ { internalType: "uint256", name: "required", type: "uint256", }, { internalType: "uint256", name: "available", type: "uint256", }, ], name: "INSUFFICIENT_FUNDS", type: "error", }, { inputs: [], name: "INVALID_ACCOUNT_KEYS", type: "error", }, { inputs: [], name: "METHOD_NOT_IMPLEMENTED", type: "error", }, { inputs: [ { internalType: "uint256", name: "actualValue", type: "uint256", }, { internalType: "uint256", name: "expectedValue", type: "uint256", }, ], name: "MSG_VALUE_MISMATCH", type: "error", }, { inputs: [ { internalType: "address", name: "notBootloader", type: "address", }, ], name: "NOT_FROM_BOOTLOADER", type: "error", }, { inputs: [ { internalType: "address", name: "notSelf", type: "address", }, ], name: "NOT_FROM_SELF", type: "error", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, ], name: "OWNER_ALREADY_EXISTS", type: "error", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, ], name: "OWNER_NOT_FOUND", type: "error", }, { inputs: [ { internalType: "address", name: "validator", type: "address", }, ], name: "VALIDATOR_ALREADY_EXISTS", type: "error", }, { inputs: [ { internalType: "address", name: "validator", type: "address", }, ], name: "VALIDATOR_ERC165_FAIL", type: "error", }, { inputs: [ { internalType: "address", name: "validator", type: "address", }, ], name: "VALIDATOR_NOT_FOUND", type: "error", }, { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "index", type: "uint256", }, { indexed: false, internalType: "bytes", name: "revertData", type: "bytes", }, ], name: "BatchCallFailure", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "hook", type: "address", }, ], name: "HookAdded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "hook", type: "address", }, ], name: "HookRemoved", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "uint8", name: "version", type: "uint8", }, ], name: "Initialized", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "addr", type: "address", }, ], name: "K1OwnerAdded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "addr", type: "address", }, ], name: "K1OwnerRemoved", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "validator", type: "address", }, ], name: "ValidatorAdded", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "validator", type: "address", }, ], name: "ValidatorRemoved", type: "event", }, { inputs: [ { internalType: "address", name: "hook", type: "address", }, { internalType: "bool", name: "isValidation", type: "bool", }, { internalType: "bytes", name: "initData", type: "bytes", }, ], name: "addHook", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "addr", type: "address", }, ], name: "addK1Owner", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "validator", type: "address", }, { internalType: "bytes", name: "initData", type: "bytes", }, ], name: "addModuleValidator", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "address", name: "target", type: "address", }, { internalType: "bool", name: "allowFailure", type: "bool", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "bytes", name: "callData", type: "bytes", }, ], internalType: "struct IBatchCaller.Call[]", name: "_calls", type: "tuple[]", }, ], name: "batchCall", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [], name: "eip712Domain", outputs: [ { internalType: "bytes1", name: "fields", type: "bytes1", }, { internalType: "string", name: "name", type: "string", }, { internalType: "string", name: "version", type: "string", }, { internalType: "uint256", name: "chainId", type: "uint256", }, { internalType: "address", name: "verifyingContract", type: "address", }, { internalType: "bytes32", name: "salt", type: "bytes32", }, { internalType: "uint256[]", name: "extensions", type: "uint256[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, { internalType: "bytes32", name: "", type: "bytes32", }, { components: [ { internalType: "uint256", name: "txType", type: "uint256", }, { internalType: "uint256", name: "from", type: "uint256", }, { internalType: "uint256", name: "to", type: "uint256", }, { internalType: "uint256", name: "gasLimit", type: "uint256", }, { internalType: "uint256", name: "gasPerPubdataByteLimit", type: "uint256", }, { internalType: "uint256", name: "maxFeePerGas", type: "uint256", }, { internalType: "uint256", name: "maxPriorityFeePerGas", type: "uint256", }, { internalType: "uint256", name: "paymaster", type: "uint256", }, { internalType: "uint256", name: "nonce", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "uint256[4]", name: "reserved", type: "uint256[4]", }, { internalType: "bytes", name: "data", type: "bytes", }, { internalType: "bytes", name: "signature", type: "bytes", }, { internalType: "bytes32[]", name: "factoryDeps", type: "bytes32[]", }, { internalType: "bytes", name: "paymasterInput", type: "bytes", }, { internalType: "bytes", name: "reservedDynamic", type: "bytes", }, ], internalType: "struct Transaction", name: "_transaction", type: "tuple", }, ], name: "executeTransaction", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { components: [ { internalType: "uint256", name: "txType", type: "uint256", }, { internalType: "uint256", name: "from", type: "uint256", }, { internalType: "uint256", name: "to", type: "uint256", }, { internalType: "uint256", name: "gasLimit", type: "uint256", }, { internalType: "uint256", name: "gasPerPubdataByteLimit", type: "uint256", }, { internalType: "uint256", name: "maxFeePerGas", type: "uint256", }, { internalType: "uint256", name: "maxPriorityFeePerGas", type: "uint256", }, { internalType: "uint256", name: "paymaster", type: "uint256", }, { internalType: "uint256", name: "nonce", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "uint256[4]", name: "reserved", type: "uint256[4]", }, { internalType: "bytes", name: "data", type: "bytes", }, { internalType: "bytes", name: "signature", type: "bytes", }, { internalType: "bytes32[]", name: "factoryDeps", type: "bytes32[]", }, { internalType: "bytes", name: "paymasterInput", type: "bytes", }, { internalType: "bytes", name: "reservedDynamic", type: "bytes", }, ], internalType: "struct Transaction", name: "", type: "tuple", }, ], name: "executeTransactionFromOutside", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "bytes[]", name: "initialValidators", type: "bytes[]", }, { internalType: "address[]", name: "initialK1Owners", type: "address[]", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "addr", type: "address", }, ], name: "isHook", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "addr", type: "address", }, ], name: "isK1Owner", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "validator", type: "address", }, ], name: "isModuleValidator", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes32", name: "hash", type: "bytes32", }, { internalType: "bytes", name: "signature", type: "bytes", }, ], name: "isValidSignature", outputs: [ { internalType: "bytes4", name: "result", type: "bytes4", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bool", name: "isValidation", type: "bool", }, ], name: "listHooks", outputs: [ { internalType: "address[]", name: "hookList", type: "address[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "listK1Owners", outputs: [ { internalType: "address[]", name: "k1OwnerList", type: "address[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "listModuleValidators", outputs: [ { internalType: "address[]", name: "validatorList", type: "address[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "target", type: "address", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "bytes", name: "callData", type: "bytes", }, ], name: "noHooksCall", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, { internalType: "address", name: "", type: "address", }, { internalType: "uint256[]", name: "", type: "uint256[]", }, { internalType: "uint256[]", name: "", type: "uint256[]", }, { internalType: "bytes", name: "", type: "bytes", }, ], name: "onERC1155BatchReceived", outputs: [ { internalType: "bytes4", name: "", type: "bytes4", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, { internalType: "address", name: "", type: "address", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "bytes", name: "", type: "bytes", }, ], name: "onERC1155Received", outputs: [ { internalType: "bytes4", name: "", type: "bytes4", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, { internalType: "address", name: "", type: "address", }, { internalType: "uint256", name: "", type: "uint256", }, { internalType: "bytes", name: "", type: "bytes", }, ], name: "onERC721Received", outputs: [ { internalType: "bytes4", name: "", type: "bytes4", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, { internalType: "bytes32", name: "", type: "bytes32", }, { components: [ { internalType: "uint256", name: "txType", type: "uint256", }, { internalType: "uint256", name: "from", type: "uint256", }, { internalType: "uint256", name: "to", type: "uint256", }, { internalType: "uint256", name: "gasLimit", type: "uint256", }, { internalType: "uint256", name: "gasPerPubdataByteLimit", type: "uint256", }, { internalType: "uint256", name: "maxFeePerGas", type: "uint256", }, { internalType: "uint256", name: "maxPriorityFeePerGas", type: "uint256", }, { internalType: "uint256", name: "paymaster", type: "uint256", }, { internalType: "uint256", name: "nonce", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "uint256[4]", name: "reserved", type: "uint256[4]", }, { internalType: "bytes", name: "data", type: "bytes", }, { internalType: "bytes", name: "signature", type: "bytes", }, { internalType: "bytes32[]", name: "factoryDeps", type: "bytes32[]", }, { internalType: "bytes", name: "paymasterInput", type: "bytes", }, { internalType: "bytes", name: "reservedDynamic", type: "bytes", }, ], internalType: "struct Transaction", name: "_transaction", type: "tuple", }, ], name: "payForTransaction", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, { internalType: "bytes32", name: "", type: "bytes32", }, { components: [ { internalType: "uint256", name: "txType", type: "uint256", }, { internalType: "uint256", name: "from", type: "uint256", }, { internalType: "uint256", name: "to", type: "uint256", }, { internalType: "uint256", name: "gasLimit", type: "uint256", }, { internalType: "uint256", name: "gasPerPubdataByteLimit", type: "uint256", }, { internalType: "uint256", name: "maxFeePerGas", type: "uint256", }, { internalType: "uint256", name: "maxPriorityFeePerGas", type: "uint256", }, { internalType: "uint256", name: "paymaster", type: "uint256", }, { internalType: "uint256", name: "nonce", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "uint256[4]", name: "reserved", type: "uint256[4]", }, { internalType: "bytes", name: "data", type: "bytes", }, { internalType: "bytes", name: "signature", type: "bytes", }, { internalType: "bytes32[]", name: "factoryDeps", type: "bytes32[]", }, { internalType: "bytes", name: "paymasterInput", type: "bytes", }, { internalType: "bytes", name: "reservedDynamic", type: "bytes", }, ], internalType: "struct Transaction", name: "_transaction", type: "tuple", }, ], name: "prepareForPaymaster", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "hook", type: "address", }, { internalType: "bool", name: "isValidation", type: "bool", }, { internalType: "bytes", name: "deinitData", type: "bytes", }, ], name: "removeHook", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "addr", type: "address", }, ], name: "removeK1Owner", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "validator", type: "address", }, { internalType: "bytes", name: "deinitData", type: "bytes", }, ], name: "removeModuleValidator", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes4", name: "interfaceId", type: "bytes4", }, ], name: "supportsInterface", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "hook", type: "address", }, { internalType: "bool", name: "isValidation", type: "bool", }, { internalType: "bytes", name: "deinitData", type: "bytes", }, ], name: "unlinkHook", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "validator", type: "address", }, { internalType: "bytes", name: "deinitData", type: "bytes", }, ], name: "unlinkModuleValidator", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, { internalType: "bytes32", name: "_suggestedSignedHash", type: "bytes32", }, { components: [ { internalType: "uint256", name: "txType", type: "uint256", }, { internalType: "uint256", name: "from", type: "uint256", }, { internalType: "uint256", name: "to", type: "uint256", }, { internalType: "uint256", name: "gasLimit", type: "uint256", }, { internalType: "uint256", name: "gasPerPubdataByteLimit", type: "uint256", }, { internalType: "uint256", name: "maxFeePerGas", type: "uint256", }, { internalType: "uint256", name: "maxPriorityFeePerGas", type: "uint256", }, { internalType: "uint256", name: "paymaster", type: "uint256", }, { internalType: "uint256", name: "nonce", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "uint256[4]", name: "reserved", type: "uint256[4]", }, { internalType: "bytes", name: "data", type: "bytes", }, { internalType: "bytes", name: "signature", type: "bytes", }, { internalType: "bytes32[]", name: "factoryDeps", type: "bytes32[]", }, { internalType: "bytes", name: "paymasterInput", type: "bytes", }, { internalType: "bytes", name: "reservedDynamic", type: "bytes", }, ], internalType: "struct Transaction", name: "_transaction", type: "tuple", }, ], name: "validateTransaction", outputs: [ { internalType: "bytes4", name: "magic", type: "bytes4", }, ], stateMutability: "payable", type: "function", }, { stateMutability: "payable", type: "receive", }, ]; //# sourceMappingURL=SsoAccount.js.map