@funkit/core 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/abis/ApproveAndExec.json +1 -1
- package/dist/src/abis/ApproveAndSwap.json +1 -1
- package/dist/src/abis/EntryPoint.json +2 -1
- package/dist/src/abis/EstimationPaymaster.json +1 -1
- package/dist/src/abis/FeePercentOracle.json +1 -1
- package/dist/src/abis/FunWallet.json +2 -1
- package/dist/src/abis/FunWalletFactory.json +1 -1
- package/dist/src/abis/GaslessPaymaster.json +1 -1
- package/dist/src/abis/RoleBasedAccessControl.json +2 -1
- package/dist/src/abis/TestNFT.json +1 -1
- package/dist/src/abis/TokenPaymaster.json +1 -1
- package/dist/src/abis/TokenPriceOracle.json +1 -1
- package/dist/src/abis/UserAuthentication.json +1 -1
- package/dist/src/abis/univ3factory.json +1 -1
- package/dist/src/abis/univ3router.json +1 -1
- package/dist/src/apis/CheckoutApis.d.ts +3 -2
- package/dist/src/apis/CheckoutApis.js +16 -2
- package/dist/src/apis/CheckoutApis.js.map +1 -1
- package/dist/src/apis/types.d.ts +19 -0
- package/dist/src/apis/types.js.map +1 -1
- package/dist/src/common/constants.d.ts +75 -0
- package/dist/src/common/constants.js +44 -26
- package/dist/src/common/constants.js.map +1 -1
- package/dist/src/config/Config.d.ts +1 -0
- package/dist/src/config/Config.js +5 -1
- package/dist/src/config/Config.js.map +1 -1
- package/dist/src/wallet/FunWallet.js +7 -1
- package/dist/src/wallet/FunWallet.js.map +1 -1
- package/package.json +2 -1
|
@@ -1 +1,2 @@
|
|
|
1
|
-
{ "name": "RoleBasedAccessControl", "abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }], "name": "AddTargetWildcard", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }], "name": "RemoveTargetWildcard", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }], "name": "RoleBasedAccessControlInitialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "user", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleAddedToRole", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleDeleted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "user", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleRemoved", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleRemovedFromRole", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }, { "components": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint256", "name": "actionValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "targetSelectorMerkleRootHash", "type": "bytes32" }, { "internalType": "uint256", "name": "feeValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "feeRecipientTokenMerkleRootHash", "type": "bytes32" }], "indexed": false, "internalType": "structRule", "name": "rule", "type": "tuple" }], "name": "RuleSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "UserAddedToRole", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "UserRemovedFromRole", "type": "event" }, { "inputs": [], "name": "INIT_HASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TARGET_WILDCARD_RULE_ID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WILDCARD_RULE_ID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ownerId", "type": "bytes32" }], "name": "addOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "addRuleToRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "address", "name": "target", "type": "address" }], "name": "addTargetWildcard", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "addUserToRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "bytes", "name": "", "type": "bytes" }], "name": "authenticateUserOp", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "deleteRule", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "getRule", "outputs": [{ "components": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint256", "name": "actionValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "targetSelectorMerkleRootHash", "type": "bytes32" }, { "internalType": "uint256", "name": "feeValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "feeRecipientTokenMerkleRootHash", "type": "bytes32" }], "internalType": "structRule", "name": "rule", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState", "outputs": [{ "internalType": "bytes", "name": "state", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState32", "outputs": [{ "internalType": "bytes32", "name": "state", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "initData", "type": "bytes" }], "name": "init", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "isValidAction", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "addresspayable", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "internalType": "structUserOperationFee", "name": "feedata", "type": "tuple" }], "name": "isValidActionAndFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "moduleId", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "calls", "type": "bytes[]" }], "name": "multiCall", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ownerId", "type": "bytes32" }], "name": "removeOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "removeRuleFromRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "address", "name": "target", "type": "address" }], "name": "removeTargetWildcard", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "removeUserFromRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }, { "components": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint256", "name": "actionValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "targetSelectorMerkleRootHash", "type": "bytes32" }, { "internalType": "uint256", "name": "feeValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "feeRecipientTokenMerkleRootHash", "type": "bytes32" }], "internalType": "structRule", "name": "rule", "type": "tuple" }], "name": "setRule", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "5": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "10": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "137": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "8453": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "36865": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "42161": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E" } }
|
|
1
|
+
{ "name": "RoleBasedAccessControl", "abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }], "name": "AddTargetWildcard", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }], "name": "RemoveTargetWildcard", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }], "name": "RoleBasedAccessControlInitialized", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "user", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleAdded", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleAddedToRole", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleDeleted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "user", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleRemoved", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "RuleRemovedFromRole", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }, { "components": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint256", "name": "actionValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "targetSelectorMerkleRootHash", "type": "bytes32" }, { "internalType": "uint256", "name": "feeValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "feeRecipientTokenMerkleRootHash", "type": "bytes32" }], "indexed": false, "internalType": "structRule", "name": "rule", "type": "tuple" }], "name": "RuleSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "UserAddedToRole", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "UserRemovedFromRole", "type": "event" }, { "inputs": [], "name": "INIT_HASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TARGET_WILDCARD_RULE_ID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WILDCARD_RULE_ID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ownerId", "type": "bytes32" }], "name": "addOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "addRuleToRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "address", "name": "target", "type": "address" }], "name": "addTargetWildcard", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "addUserToRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "bytes", "name": "", "type": "bytes" }], "name": "authenticateUserOp", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "deleteRule", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "getRule", "outputs": [{ "components": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint256", "name": "actionValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "targetSelectorMerkleRootHash", "type": "bytes32" }, { "internalType": "uint256", "name": "feeValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "feeRecipientTokenMerkleRootHash", "type": "bytes32" }], "internalType": "structRule", "name": "rule", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState", "outputs": [{ "internalType": "bytes", "name": "state", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState32", "outputs": [{ "internalType": "bytes32", "name": "state", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "initData", "type": "bytes" }], "name": "init", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "isValidAction", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "components": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "addresspayable", "name": "recipient", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "internalType": "structUserOperationFee", "name": "feedata", "type": "tuple" }], "name": "isValidActionAndFee", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "moduleId", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "calls", "type": "bytes[]" }], "name": "multiCall", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ownerId", "type": "bytes32" }], "name": "removeOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }], "name": "removeRuleFromRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "address", "name": "target", "type": "address" }], "name": "removeTargetWildcard", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "roleId", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "removeUserFromRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "ruleId", "type": "bytes32" }, { "components": [{ "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint256", "name": "actionValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "targetSelectorMerkleRootHash", "type": "bytes32" }, { "internalType": "uint256", "name": "feeValueLimit", "type": "uint256" }, { "internalType": "bytes32", "name": "feeRecipientTokenMerkleRootHash", "type": "bytes32" }], "internalType": "structRule", "name": "rule", "type": "tuple" }], "name": "setRule", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "5": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "10": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "137": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "8453": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "36865": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E", "42161": "0x996eAcBd74D94C77bD6edA46dAbF99608dBb336E",
|
|
2
|
+
"421614": "0xb46435650a06BE6ab62cc1Aa08CdC642b14d0b64" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "TestNFT", "abi": [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "approved", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" }], "name": "ApprovalForAll", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "approve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "getApproved", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" }], "name": "isApprovedForAll", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "ownerOf", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" }], "name": "setApprovalForAll", "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": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "tokenURI", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "transferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "5": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "10": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "137": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "8453": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "36865": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "42161": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592" } }
|
|
1
|
+
{ "name": "TestNFT", "abi": [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "approved", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Approval", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" }], "name": "ApprovalForAll", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "Transfer", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "approve", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }], "name": "balanceOf", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "getApproved", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" }], "name": "isApprovedForAll", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "ownerOf", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "safeTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "bool", "name": "approved", "type": "bool" }], "name": "setApprovalForAll", "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": [], "name": "symbol", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "tokenURI", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }], "name": "transferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "5": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "10": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "137": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "8453": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "36865": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "42161": "0x25E07d90a4e2e9fb627FcF5f4FAd5165dDA6d592", "421614": "0xbE13b0335996f57bBa63C8C197Ded28a28Cbe5dF" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "TokenPaymaster", "abi": [{ "inputs": [{ "internalType": "contractIEntryPoint", "name": "_entryPoint", "type": "address" }, { "internalType": "contractIImplementationRegistry", "name": "_implementationRegistry", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddTokenDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "AddTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "BatchActions", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }], "name": "LockTokenDeposit", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferStarted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contractIEntryPoint", "name": "entryPoint", "type": "address" }], "name": "PaymasterCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "opHash", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "spenderCost", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sponsorCost", "type": "uint256" }], "name": "PostOpGasPaid", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes", "name": "context", "type": "bytes" }, { "indexed": false, "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "PostOpReverted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }], "name": "RemoveTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "RemoveTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "indexed": true, "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "SetTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "unlockBlockNum", "type": "uint256" }], "name": "UnlockTokenDepositAfter", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawTokenDepositTo", "type": "event" }, { "inputs": [], "name": "COST_OF_SIG", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "COST_OF_TRANSFER", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ETH", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "accumulatedEthDust", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "unstakeDelaySec", "type": "uint32" }], "name": "addStakeToEntryPoint", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "addTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "batchActions", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "entryPoint", "outputs": [{ "internalType": "contractIEntryPoint", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getAllTokenData", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAllTokens", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getCanPayThroughApproval", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getHasBalance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSponsorTokenUsage", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "getToken", "outputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getTokenBalance", "outputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint256", "name": "ethBought", "type": "uint256" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getUnlockBlock", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "implementationRegistry", "outputs": [{ "internalType": "contractIImplementationRegistry", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "lockTokenDeposit", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "enumIPaymaster.PostOpMode", "name": "mode", "type": "uint8" }, { "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "postOp", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "tokenListIndex", "type": "uint256" }], "name": "removeTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "removeTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "setTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "tokens", "outputs": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unlockStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "num", "type": "uint256" }], "name": "unlockTokenDepositAfter", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "uint256", "name": "maxCost", "type": "uint256" }], "name": "validatePaymasterUserOp", "outputs": [{ "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "withdrawEthDust", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "withdrawAddress", "type": "address" }], "name": "withdrawStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }], "addresses": { "1": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "5": "0x2b098A9B293EE50a1362D0500A5dC519E2E34d35", "10": "0x4Aabd0420D4ae964f065F9feb2fa0b04A8D65eAF", "137": "0x81051ac27b665B3c28bD7398DbA111E760f1DE4c", "8453": "0x31A2E8D96d96735daC5Af28A2073e6aEaF76BDe3", "36865": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "42161": "0x2AF4CEc1525Fc62a0D4d91c4c1872dF5FB09c963" } }
|
|
1
|
+
{ "name": "TokenPaymaster", "abi": [{ "inputs": [{ "internalType": "contractIEntryPoint", "name": "_entryPoint", "type": "address" }, { "internalType": "contractIImplementationRegistry", "name": "_implementationRegistry", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "AddTokenDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "AddTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "BatchActions", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }], "name": "LockTokenDeposit", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferStarted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "contractIEntryPoint", "name": "entryPoint", "type": "address" }], "name": "PaymasterCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "opHash", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "spenderCost", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sponsorCost", "type": "uint256" }], "name": "PostOpGasPaid", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "bytes", "name": "context", "type": "bytes" }, { "indexed": false, "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "PostOpReverted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }], "name": "RemoveTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address[]", "name": "tokens", "type": "address[]" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }], "name": "RemoveTokens", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetSpenderWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenBlacklistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "indexed": true, "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "SetTokenData", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenListMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sponsor", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "mode", "type": "bool" }], "name": "SetTokenWhitelistMode", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "unlockBlockNum", "type": "uint256" }], "name": "UnlockTokenDepositAfter", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "caller", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawEthDepositTo", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": true, "internalType": "address", "name": "target", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "WithdrawTokenDepositTo", "type": "event" }, { "inputs": [], "name": "COST_OF_SIG", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "COST_OF_TRANSFER", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ETH", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "accumulatedEthDust", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "unstakeDelaySec", "type": "uint32" }], "name": "addStakeToEntryPoint", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "addTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "addTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "data", "type": "bytes[]" }], "name": "batchActions", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "entryPoint", "outputs": [{ "internalType": "contractIEntryPoint", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getAllTokenData", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getAllTokens", "outputs": [{ "internalType": "address[]", "name": "", "type": "address[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getCanPayThroughApproval", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "name": "getHasBalance", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSpenderWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getSponsorTokenUsage", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "getToken", "outputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getTokenBalance", "outputs": [{ "internalType": "uint256", "name": "tokenAmount", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenBlacklisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenListMode", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_token", "type": "address" }, { "internalType": "uint256", "name": "ethBought", "type": "uint256" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }], "name": "getTokenWhitelisted", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }], "name": "getUnlockBlock", "outputs": [{ "internalType": "uint256", "name": "unlockBlock", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "implementationRegistry", "outputs": [{ "internalType": "contractIImplementationRegistry", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], "name": "lockTokenDeposit", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pendingOwner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "enumIPaymaster.PostOpMode", "name": "mode", "type": "uint8" }, { "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "actualGasCost", "type": "uint256" }], "name": "postOp", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenAddress", "type": "address" }, { "internalType": "uint256", "name": "tokenListIndex", "type": "uint256" }], "name": "removeTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address[]", "name": "_tokens", "type": "address[]" }], "name": "removeTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setSpenderWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenBlacklistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "internalType": "structTokenData", "name": "data", "type": "tuple" }], "name": "setTokenData", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenListMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "bool", "name": "mode", "type": "bool" }], "name": "setTokenWhitelistMode", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "tokens", "outputs": [{ "internalType": "contractITokenPriceOracle", "name": "oracle", "type": "address" }, { "internalType": "contractIERC20", "name": "token", "type": "address" }, { "internalType": "uint8", "name": "decimals", "type": "uint8" }, { "internalType": "address", "name": "aggregator", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unlockStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "num", "type": "uint256" }], "name": "unlockTokenDepositAfter", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "uint256", "name": "maxCost", "type": "uint256" }], "name": "validatePaymasterUserOp", "outputs": [{ "internalType": "bytes", "name": "context", "type": "bytes" }, { "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawEthDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "withdrawEthDust", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "addresspayable", "name": "withdrawAddress", "type": "address" }], "name": "withdrawStakeFromEntryPoint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "address", "name": "target", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }], "name": "withdrawTokenDepositTo", "outputs": [], "stateMutability": "payable", "type": "function" }], "addresses": { "1": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "5": "0x2b098A9B293EE50a1362D0500A5dC519E2E34d35", "10": "0x4Aabd0420D4ae964f065F9feb2fa0b04A8D65eAF", "137": "0x81051ac27b665B3c28bD7398DbA111E760f1DE4c", "8453": "0x31A2E8D96d96735daC5Af28A2073e6aEaF76BDe3", "36865": "0x6C5c2c8776Ecc5943760C68a200eC7e3650eFC2F", "42161": "0x2AF4CEc1525Fc62a0D4d91c4c1872dF5FB09c963", "421614": "0x49E64C6e75fa2317D2AEE59e571311ac5DCaB43d" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "TokenPriceOracle", "abi": [{ "inputs": [], "name": "MAX_DELAY", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WEI_IN_ETH", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "aggregatorOrToken", "type": "address" }, { "internalType": "uint256", "name": "ethAmount", "type": "uint256" }, { "internalType": "uint8", "name": "tokenDecimals", "type": "uint8" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "tokenValueOfEth", "type": "uint256" }, { "internalType": "uint256", "name": "oracleValidUntil", "type": "uint256" }], "stateMutability": "view", "type": "function" }], "addresses": { "1": "0x302275dcF9919c5449F2d53253ACD06315385272", "5": "0x302275dcF9919c5449F2d53253ACD06315385272", "10": "0x302275dcF9919c5449F2d53253ACD06315385272", "137": "0x302275dcF9919c5449F2d53253ACD06315385272", "8453": "0x302275dcF9919c5449F2d53253ACD06315385272", "36865": "0x302275dcF9919c5449F2d53253ACD06315385272", "42161": "0x302275dcF9919c5449F2d53253ACD06315385272" } }
|
|
1
|
+
{ "name": "TokenPriceOracle", "abi": [{ "inputs": [], "name": "MAX_DELAY", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WEI_IN_ETH", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "aggregatorOrToken", "type": "address" }, { "internalType": "uint256", "name": "ethAmount", "type": "uint256" }, { "internalType": "uint8", "name": "tokenDecimals", "type": "uint8" }], "name": "getTokenValueOfEth", "outputs": [{ "internalType": "uint256", "name": "tokenValueOfEth", "type": "uint256" }, { "internalType": "uint256", "name": "oracleValidUntil", "type": "uint256" }], "stateMutability": "view", "type": "function" }], "addresses": { "1": "0x302275dcF9919c5449F2d53253ACD06315385272", "5": "0x302275dcF9919c5449F2d53253ACD06315385272", "10": "0x302275dcF9919c5449F2d53253ACD06315385272", "137": "0x302275dcF9919c5449F2d53253ACD06315385272", "8453": "0x302275dcF9919c5449F2d53253ACD06315385272", "36865": "0x302275dcF9919c5449F2d53253ACD06315385272", "42161": "0x302275dcF9919c5449F2d53253ACD06315385272", "421614": "0xB3Bb6f2F6C4bc17F1E91E393d6331a899D1e8FC7" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "UserAuthentication", "abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "MultiSigGroupDeleted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": false, "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "UserAuthenticationInitialized", "type": "event" }, { "inputs": [], "name": "ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INIT_HASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes", "name": "", "type": "bytes" }], "name": "authenticateUserOp", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "createMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "deleteMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState", "outputs": [{ "internalType": "bytes", "name": "state", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState32", "outputs": [{ "internalType": "bytes32", "name": "state", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "init", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "internalType": "bytes32", "name": "_hash", "type": "bytes32" }], "name": "isValidAction", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "moduleId", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "calls", "type": "bytes[]" }], "name": "multiCall", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "signature", "type": "bytes" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "subValidateSignatureECDSA", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "updateMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "5": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "10": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "137": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "8453": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "36865": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "42161": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F" } }
|
|
1
|
+
{ "name": "UserAuthentication", "abi": [{ "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupCreated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "MultiSigGroupDeleted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "indexed": false, "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "MultiSigGroupUpdated", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "wallet", "type": "address" }, { "indexed": false, "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "UserAuthenticationInitialized", "type": "event" }, { "inputs": [], "name": "ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "INIT_HASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "VERSION", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "nonce", "type": "uint256" }, { "internalType": "bytes", "name": "initCode", "type": "bytes" }, { "internalType": "bytes", "name": "callData", "type": "bytes" }, { "internalType": "uint256", "name": "callGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "verificationGasLimit", "type": "uint256" }, { "internalType": "uint256", "name": "preVerificationGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxFeePerGas", "type": "uint256" }, { "internalType": "uint256", "name": "maxPriorityFeePerGas", "type": "uint256" }, { "internalType": "bytes", "name": "paymasterAndData", "type": "bytes" }, { "internalType": "bytes", "name": "signature", "type": "bytes" }], "internalType": "structUserOperation", "name": "userOp", "type": "tuple" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes", "name": "", "type": "bytes" }], "name": "authenticateUserOp", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "createMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }], "name": "deleteMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState", "outputs": [{ "internalType": "bytes", "name": "state", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "key", "type": "bytes32" }], "name": "getState32", "outputs": [{ "internalType": "bytes32", "name": "state", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "multiSigInitData", "type": "bytes" }], "name": "init", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "bytes", "name": "_signature", "type": "bytes" }, { "internalType": "bytes32", "name": "_hash", "type": "bytes32" }], "name": "isValidAction", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "moduleId", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes[]", "name": "calls", "type": "bytes[]" }], "name": "multiCall", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "signature", "type": "bytes" }, { "internalType": "bytes32", "name": "userOpHash", "type": "bytes32" }, { "internalType": "bytes32", "name": "userId", "type": "bytes32" }], "name": "subValidateSignatureECDSA", "outputs": [{ "internalType": "uint256", "name": "sigTimeRange", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "groupId", "type": "bytes32" }, { "components": [{ "internalType": "bytes32[]", "name": "userIds", "type": "bytes32[]" }, { "internalType": "uint256", "name": "threshold", "type": "uint256" }], "internalType": "structMultiSigGroup", "name": "group", "type": "tuple" }], "name": "updateMultiSigGroup", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "5": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "10": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "137": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "8453": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "36865": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "42161": "0xb3DeA1dd1d9aC323041850c0A15C578C883F3f6F", "421614": "0x65f595b02909ea5767B7b0a70E89c1505DBC1300" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "univ3factory", "abi": [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint24", "name": "fee", "type": "uint24" }, { "indexed": true, "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "name": "FeeAmountEnabled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnerChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token0", "type": "address" }, { "indexed": true, "internalType": "address", "name": "token1", "type": "address" }, { "indexed": true, "internalType": "uint24", "name": "fee", "type": "uint24" }, { "indexed": false, "internalType": "int24", "name": "tickSpacing", "type": "int24" }, { "indexed": false, "internalType": "address", "name": "pool", "type": "address" }], "name": "PoolCreated", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }, { "internalType": "uint24", "name": "fee", "type": "uint24" }], "name": "createPool", "outputs": [{ "internalType": "address", "name": "pool", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint24", "name": "fee", "type": "uint24" }, { "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "name": "enableFeeAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint24", "name": "", "type": "uint24" }], "name": "feeAmountTickSpacing", "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint24", "name": "", "type": "uint24" }], "name": "getPool", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "parameters", "outputs": [{ "internalType": "address", "name": "factory", "type": "address" }, { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" }, { "internalType": "uint24", "name": "fee", "type": "uint24" }, { "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_owner", "type": "address" }], "name": "setOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "5": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "10": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "137": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "8453": "0x33128a8fC17869897dcE68Ed026d694621f6FDfD", "36865": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "42161": "0x1F98431c8aD98523631AE4a59f267346ea31F984" } }
|
|
1
|
+
{ "name": "univ3factory", "abi": [{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint24", "name": "fee", "type": "uint24" }, { "indexed": true, "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "name": "FeeAmountEnabled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "oldOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }], "name": "OwnerChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token0", "type": "address" }, { "indexed": true, "internalType": "address", "name": "token1", "type": "address" }, { "indexed": true, "internalType": "uint24", "name": "fee", "type": "uint24" }, { "indexed": false, "internalType": "int24", "name": "tickSpacing", "type": "int24" }, { "indexed": false, "internalType": "address", "name": "pool", "type": "address" }], "name": "PoolCreated", "type": "event" }, { "inputs": [{ "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }, { "internalType": "uint24", "name": "fee", "type": "uint24" }], "name": "createPool", "outputs": [{ "internalType": "address", "name": "pool", "type": "address" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint24", "name": "fee", "type": "uint24" }, { "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "name": "enableFeeAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint24", "name": "", "type": "uint24" }], "name": "feeAmountTickSpacing", "outputs": [{ "internalType": "int24", "name": "", "type": "int24" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint24", "name": "", "type": "uint24" }], "name": "getPool", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "parameters", "outputs": [{ "internalType": "address", "name": "factory", "type": "address" }, { "internalType": "address", "name": "token0", "type": "address" }, { "internalType": "address", "name": "token1", "type": "address" }, { "internalType": "uint24", "name": "fee", "type": "uint24" }, { "internalType": "int24", "name": "tickSpacing", "type": "int24" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_owner", "type": "address" }], "name": "setOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "5": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "10": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "137": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "8453": "0x33128a8fC17869897dcE68Ed026d694621f6FDfD", "36865": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "42161": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "421614": "0x1F98431c8aD98523631AE4a59f267346ea31F984" } }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "name": "univ3router", "abi": [], "addresses": { "1": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "5": "0xc104A3e2CDC1c29a2a284C515d4e10102D2e39cE", "10": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", "137": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "8453": "0x2626664c2603336E57B271c5C0b26F421741e481", "36865": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "42161": "0xE592427A0AEce92De3Edee1F18E0157C05861564" } }
|
|
1
|
+
{ "name": "univ3router", "abi": [], "addresses": { "1": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "5": "0xc104A3e2CDC1c29a2a284C515d4e10102D2e39cE", "10": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", "137": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "8453": "0x2626664c2603336E57B271c5C0b26F421741e481", "36865": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "42161": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "421614": "0xE592427A0AEce92De3Edee1F18E0157C05861564" } }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address } from 'viem';
|
|
2
|
-
import { CheckoutCoreInitParams, CheckoutCoreQuoteParams, CheckoutCoreQuoteResponse, CheckoutHistoryItem } from './types';
|
|
2
|
+
import { CheckoutCoreInitParams, CheckoutCoreQuoteParams, CheckoutCoreQuoteResponse, CheckoutHistoryItem, CheckoutTransferSponsorshipCoreParams, CheckoutTransferSponsorshipResponse } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Gets a checkout quote (estimation).
|
|
5
5
|
* @param fromChainId The ID of the chain where funds will be provided from.
|
|
@@ -11,7 +11,7 @@ import { CheckoutCoreInitParams, CheckoutCoreQuoteParams, CheckoutCoreQuoteRespo
|
|
|
11
11
|
* @param apiKey A valid fun api key.
|
|
12
12
|
* @return {Promise<CheckoutCoreQuoteResponse>} The formatted quote object
|
|
13
13
|
*/
|
|
14
|
-
export declare function getCheckoutQuote({ fromChainId, fromTokenAddress, toChainId, toTokenAddress, toTokenAmount, expirationTimestampMs, apiKey, }: CheckoutCoreQuoteParams): Promise<CheckoutCoreQuoteResponse>;
|
|
14
|
+
export declare function getCheckoutQuote({ fromChainId, fromTokenAddress, toChainId, toTokenAddress, toTokenAmount, expirationTimestampMs, sponsorInitialTransferGasLimit, apiKey, }: CheckoutCoreQuoteParams): Promise<CheckoutCoreQuoteResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* Initializes a checkout
|
|
17
17
|
* @param userOp The checkout UserOp, signed.
|
|
@@ -41,3 +41,4 @@ export declare function getCheckoutsByFunWalletAddress({ funWalletAddress, apiKe
|
|
|
41
41
|
funWalletAddress: Address;
|
|
42
42
|
apiKey: string;
|
|
43
43
|
}): Promise<CheckoutHistoryItem[]>;
|
|
44
|
+
export declare function getPaymasterDataForCheckoutSponsoredTransfer({ depositAddress, transferUserOp, apiKey, }: CheckoutTransferSponsorshipCoreParams): Promise<CheckoutTransferSponsorshipResponse>;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getCheckoutsByFunWalletAddress = exports.getCheckoutByDepositAddress = exports.initializeCheckout = exports.getCheckoutQuote = void 0;
|
|
6
|
+
exports.getPaymasterDataForCheckoutSponsoredTransfer = exports.getCheckoutsByFunWalletAddress = exports.getCheckoutByDepositAddress = exports.initializeCheckout = exports.getCheckoutQuote = void 0;
|
|
7
7
|
const big_js_1 = __importDefault(require("big.js"));
|
|
8
8
|
const constants_1 = require("../common/constants");
|
|
9
9
|
const errors_1 = require("../errors");
|
|
@@ -20,7 +20,7 @@ const CheckoutUtils_1 = require("../utils/CheckoutUtils");
|
|
|
20
20
|
* @param apiKey A valid fun api key.
|
|
21
21
|
* @return {Promise<CheckoutCoreQuoteResponse>} The formatted quote object
|
|
22
22
|
*/
|
|
23
|
-
async function getCheckoutQuote({ fromChainId, fromTokenAddress, toChainId, toTokenAddress, toTokenAmount, expirationTimestampMs, apiKey, }) {
|
|
23
|
+
async function getCheckoutQuote({ fromChainId, fromTokenAddress, toChainId, toTokenAddress, toTokenAmount, expirationTimestampMs, sponsorInitialTransferGasLimit, apiKey, }) {
|
|
24
24
|
try {
|
|
25
25
|
const toDecimals = await (0, CheckoutUtils_1.getDecimals)({
|
|
26
26
|
chainId: toChainId,
|
|
@@ -37,6 +37,7 @@ async function getCheckoutQuote({ fromChainId, fromTokenAddress, toChainId, toTo
|
|
|
37
37
|
// Reference: https://vintage-heaven-3cd.notion.site/API-Gateway-Caching-and-Pre-Warming-System-Draft-ee7909d9b85f43c793ce7bd2607bec02?pvs=4
|
|
38
38
|
// Note: Rounding *down* instead of a regular round to safeguard against edge case of timing passing frontend range validation but failing backend range validation
|
|
39
39
|
checkoutExpirationTimestampSeconds: (0, CheckoutUtils_1.roundToNearestBottomTenth)(Math.round((Date.now() + expirationTimestampMs) / 1000)).toString(),
|
|
40
|
+
sponsorInitialTransferGasLimit,
|
|
40
41
|
};
|
|
41
42
|
const searchParams = new URLSearchParams(queryParams);
|
|
42
43
|
const url = `checkout/quote?${searchParams}`;
|
|
@@ -121,4 +122,17 @@ async function getCheckoutsByFunWalletAddress({ funWalletAddress, apiKey, }) {
|
|
|
121
122
|
return res || [];
|
|
122
123
|
}
|
|
123
124
|
exports.getCheckoutsByFunWalletAddress = getCheckoutsByFunWalletAddress;
|
|
125
|
+
async function getPaymasterDataForCheckoutSponsoredTransfer({ depositAddress, transferUserOp, apiKey, }) {
|
|
126
|
+
const body = {
|
|
127
|
+
depositAddress,
|
|
128
|
+
userOp: transferUserOp,
|
|
129
|
+
};
|
|
130
|
+
const res = await (0, ApiUtils_1.sendPostRequest)(constants_1.API_URL, 'checkout/sponsor-transfer', body, apiKey);
|
|
131
|
+
if (!res) {
|
|
132
|
+
// TODO: Better error handling
|
|
133
|
+
throw new Error('Unable to get sponsorship information');
|
|
134
|
+
}
|
|
135
|
+
return res;
|
|
136
|
+
}
|
|
137
|
+
exports.getPaymasterDataForCheckoutSponsoredTransfer = getPaymasterDataForCheckoutSponsoredTransfer;
|
|
124
138
|
//# sourceMappingURL=CheckoutApis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutApis.js","sourceRoot":"","sources":["../../../src/apis/CheckoutApis.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAwB;AAGxB,mDAA6C;AAC7C,sCAA4D;AAC5D,gDAAmE;AACnE,0DAI+B;
|
|
1
|
+
{"version":3,"file":"CheckoutApis.js","sourceRoot":"","sources":["../../../src/apis/CheckoutApis.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAwB;AAGxB,mDAA6C;AAC7C,sCAA4D;AAC5D,gDAAmE;AACnE,0DAI+B;AAe/B;;;;;;;;;;GAUG;AACI,KAAK,UAAU,gBAAgB,CAAC,EACrC,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,8BAA8B,EAC9B,MAAM,GACkB;IACxB,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,IAAA,2BAAW,EAAC;YACnC,OAAO,EAAE,SAAS;YAClB,YAAY,EAAE,cAAc;SAC7B,CAAC,CAAA;QACF,MAAM,WAAW,GAAG,EAAE,IAAI,UAAU,CAAA;QAEpC,MAAM,WAAW,GAAG;YAClB,WAAW;YACX,gBAAgB;YAChB,SAAS;YACT,cAAc;YACd,gBAAgB,EAAE,CAAC,aAAa,GAAG,WAAW,CAAC,CAAC,QAAQ,EAAE;YAC1D,qGAAqG;YACrG,4IAA4I;YAC5I,mKAAmK;YACnK,kCAAkC,EAAE,IAAA,yCAAyB,EAC3D,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,qBAAqB,CAAC,GAAG,IAAI,CAAC,CACxD,CAAC,QAAQ,EAAE;YACZ,8BAA8B;SACL,CAAA;QAE3B,MAAM,YAAY,GAAG,IAAI,eAAe,CAAC,WAAW,CAAC,CAAA;QACrD,MAAM,GAAG,GAAG,kBAAkB,YAAY,EAAE,CAAA;QAC5C,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAA,yBAAc,EACpC,mBAAO,EACP,GAAG,EACH,MAAM,CACP,CAA6B,CAAA;QAE9B,MAAM,YAAY,GAAG,MAAM,IAAA,2BAAW,EAAC;YACrC,OAAO,EAAE,WAAW;YACpB,YAAY,EAAE,gBAAgB;SAC/B,CAAC,CAAA;QACF,MAAM,aAAa,GAAG,EAAE,IAAI,YAAY,CAAA;QAExC,yCAAyC;QACzC,OAAO;YACL,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;YAC3C,UAAU,EAAE,QAAQ,CAAC,UAAU;YAC/B,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;YAC7C,0BAA0B,EAAE,QAAQ,CAAC,0BAA0B;YAC/D,yBAAyB,EAAE,QAAQ,CAAC,yBAAyB;YAC7D,eAAe;YACf,iBAAiB,EAAE,IAAI,gBAAG,CAAC,QAAQ,CAAC,yBAAyB,CAAC;iBAC3D,GAAG,CAAC,aAAa,CAAC;iBAClB,QAAQ,EAAE;YACb,kBAAkB,EAAE,IAAI,gBAAG,CAAC,QAAQ,CAAC,0BAA0B,CAAC;iBAC7D,GAAG,CAAC,aAAa,CAAC;iBAClB,QAAQ,EAAE;SACe,CAAA;IAChC,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,yDAAyD,GAAG,CAAC,OAAO,EAAE,CACvE,CAAA;IACH,CAAC;AACH,CAAC;AApED,4CAoEC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,kBAAkB,CAAC,EACvC,MAAM,EACN,OAAO,EACP,MAAM,EACN,cAAc,GACS;IACvB,MAAM,IAAI,GAAG;QACX,MAAM;QACN,OAAO;QACP,IAAI,EAAE,IAAA,0CAA0B,GAAE;QAClC,cAAc;KACU,CAAA;IAC1B,MAAM,GAAG,GAAG,MAAM,IAAA,0BAAe,EAAC,mBAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAA;IACpE,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,CAAC;QACtB,MAAM,IAAI,8BAAqB,CAC7B,kBAAS,CAAC,+BAA+B,EACzC,+BAA+B,EAC/B,IAAI,EACJ,EAAE,EACF,sBAAsB,CACvB,CAAA;IACH,CAAC;IACD,OAAO,GAAG,CAAC,WAAuC,CAAA;AACpD,CAAC;AAvBD,gDAuBC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,2BAA2B,CAAC,EAChD,cAAc,EACd,MAAM,GAIP;IACC,IAAI,CAAC;QACH,OAAO,MAAM,IAAA,yBAAc,EAAC,mBAAO,EAAE,YAAY,cAAc,EAAE,EAAE,MAAM,CAAC,CAAA;IAC5E,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,GAAG,YAAY,8BAAqB,EAAE,CAAC;YACzC,OAAO,IAAI,CAAA;QACb,CAAC;QACD,MAAM,GAAG,CAAA;IACX,CAAC;AACH,CAAC;AAfD,kEAeC;AAED;;;;;GAKG;AACI,KAAK,UAAU,8BAA8B,CAAC,EACnD,gBAAgB,EAChB,MAAM,GAIP;IACC,MAAM,GAAG,GAAG,uBAAuB,gBAAgB,EAAE,CAAA;IACrD,MAAM,GAAG,GAAG,MAAM,IAAA,yBAAc,EAAC,mBAAO,EAAE,GAAG,EAAE,MAAM,CAAC,CAAA;IACtD,OAAO,GAAG,IAAI,EAAE,CAAA;AAClB,CAAC;AAVD,wEAUC;AAEM,KAAK,UAAU,4CAA4C,CAAC,EACjE,cAAc,EACd,cAAc,EACd,MAAM,GACgC;IACtC,MAAM,IAAI,GAAG;QACX,cAAc;QACd,MAAM,EAAE,cAAc;KACiB,CAAA;IACzC,MAAM,GAAG,GAAG,MAAM,IAAA,0BAAe,EAC/B,mBAAO,EACP,2BAA2B,EAC3B,IAAI,EACJ,MAAM,CACP,CAAA;IACD,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,8BAA8B;QAC9B,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAA;IAC1D,CAAC;IACD,OAAO,GAA0C,CAAA;AACnD,CAAC;AApBD,oGAoBC"}
|
package/dist/src/apis/types.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export type CheckoutApiQuoteParams = {
|
|
|
62
62
|
toTokenAddress: Address;
|
|
63
63
|
toAmountBaseUnit: string;
|
|
64
64
|
checkoutExpirationTimestampSeconds: string;
|
|
65
|
+
sponsorInitialTransferGasLimit: string;
|
|
65
66
|
};
|
|
66
67
|
export type CheckoutCoreQuoteParams = Omit<CheckoutApiQuoteParams, 'toAmountBaseUnit' | 'checkoutExpirationTimestampSeconds'> & {
|
|
67
68
|
toTokenAmount: number;
|
|
@@ -123,3 +124,21 @@ export type CheckoutHistoryItem = {
|
|
|
123
124
|
version: number;
|
|
124
125
|
clientMetadata: object;
|
|
125
126
|
};
|
|
127
|
+
/**===============================*
|
|
128
|
+
* CHECKOUT TRANSFER SPONSORSHIP *
|
|
129
|
+
*================================*/
|
|
130
|
+
export type CheckoutTransferSponsorshipCoreParams = {
|
|
131
|
+
transferUserOp: UserOperation;
|
|
132
|
+
depositAddress: Address;
|
|
133
|
+
apiKey: string;
|
|
134
|
+
};
|
|
135
|
+
export type CheckoutTransferSponsorshipApiParams = {
|
|
136
|
+
userOp: UserOperation;
|
|
137
|
+
depositAddress: Address;
|
|
138
|
+
};
|
|
139
|
+
export type CheckoutTransferSponsorshipResponse = {
|
|
140
|
+
signerAddress: Address;
|
|
141
|
+
signature: Hex;
|
|
142
|
+
deadline: number;
|
|
143
|
+
paymasterAndData: Hex;
|
|
144
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/apis/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/apis/types.ts"],"names":[],"mappings":";;;AA4HA,6HAA6H;AAC7H,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,qBAAqB;IACrB,gDAA+B,CAAA;IAC/B,4CAA2B,CAAA;IAC3B,4CAA2B,CAAA;IAC3B,4CAA2B,CAAA;IAC3B,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,kBAAkB;IAClB,wCAAuB,CAAA;IACvB,kDAAiC,CAAA;IACjC,oCAAmB,CAAA;AACrB,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB"}
|