@funkit/core 0.8.0
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/README.md +110 -0
- package/dist/fetch-polyfill.d.ts +1 -0
- package/dist/fetch-polyfill.js +35 -0
- package/dist/fetch-polyfill.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/src/abis/ApproveAndExec.json +1 -0
- package/dist/src/abis/ApproveAndSwap.json +1 -0
- package/dist/src/abis/ERC20.json +1 -0
- package/dist/src/abis/ERC721.json +1 -0
- package/dist/src/abis/EntryPoint.json +1 -0
- package/dist/src/abis/EstimationPaymaster.json +1 -0
- package/dist/src/abis/FeePercentOracle.json +1 -0
- package/dist/src/abis/FunWallet.json +1 -0
- package/dist/src/abis/FunWalletFactory.json +1 -0
- package/dist/src/abis/GaslessPaymaster.json +1 -0
- package/dist/src/abis/LidoWithdrawQueue.json +1 -0
- package/dist/src/abis/RoleBasedAccessControl.json +1 -0
- package/dist/src/abis/TestNFT.json +1 -0
- package/dist/src/abis/TokenPaymaster.json +1 -0
- package/dist/src/abis/TokenPriceOracle.json +1 -0
- package/dist/src/abis/UniswapV2Factory.json +1 -0
- package/dist/src/abis/UniswapV2Router02.json +1 -0
- package/dist/src/abis/UniswapV3LimitOrder.json +1 -0
- package/dist/src/abis/UserAuthentication.json +1 -0
- package/dist/src/abis/univ3factory.json +1 -0
- package/dist/src/abis/univ3quoter.json +1 -0
- package/dist/src/abis/univ3router.json +1 -0
- package/dist/src/actions/AccessControl.d.ts +9 -0
- package/dist/src/actions/AccessControl.js +88 -0
- package/dist/src/actions/AccessControl.js.map +1 -0
- package/dist/src/actions/BatchActions.d.ts +3 -0
- package/dist/src/actions/BatchActions.js +12 -0
- package/dist/src/actions/BatchActions.js.map +1 -0
- package/dist/src/actions/FirstClassActions.d.ts +161 -0
- package/dist/src/actions/FirstClassActions.js +347 -0
- package/dist/src/actions/FirstClassActions.js.map +1 -0
- package/dist/src/actions/Group.d.ts +6 -0
- package/dist/src/actions/Group.js +44 -0
- package/dist/src/actions/Group.js.map +1 -0
- package/dist/src/actions/LimitOrder.d.ts +4 -0
- package/dist/src/actions/LimitOrder.js +45 -0
- package/dist/src/actions/LimitOrder.js.map +1 -0
- package/dist/src/actions/Stake.d.ts +8 -0
- package/dist/src/actions/Stake.js +124 -0
- package/dist/src/actions/Stake.js.map +1 -0
- package/dist/src/actions/Swap.d.ts +9 -0
- package/dist/src/actions/Swap.js +169 -0
- package/dist/src/actions/Swap.js.map +1 -0
- package/dist/src/actions/Token.d.ts +12 -0
- package/dist/src/actions/Token.js +102 -0
- package/dist/src/actions/Token.js.map +1 -0
- package/dist/src/actions/index.d.ts +7 -0
- package/dist/src/actions/index.js +24 -0
- package/dist/src/actions/index.js.map +1 -0
- package/dist/src/actions/types.d.ts +117 -0
- package/dist/src/actions/types.js +11 -0
- package/dist/src/actions/types.js.map +1 -0
- package/dist/src/apis/AccessControlApis.d.ts +5 -0
- package/dist/src/apis/AccessControlApis.js +22 -0
- package/dist/src/apis/AccessControlApis.js.map +1 -0
- package/dist/src/apis/AssetApis.d.ts +79 -0
- package/dist/src/apis/AssetApis.js +100 -0
- package/dist/src/apis/AssetApis.js.map +1 -0
- package/dist/src/apis/ContractApis.d.ts +1 -0
- package/dist/src/apis/ContractApis.js +11 -0
- package/dist/src/apis/ContractApis.js.map +1 -0
- package/dist/src/apis/GroupApis.d.ts +8 -0
- package/dist/src/apis/GroupApis.js +45 -0
- package/dist/src/apis/GroupApis.js.map +1 -0
- package/dist/src/apis/InfoApis.d.ts +6 -0
- package/dist/src/apis/InfoApis.js +59 -0
- package/dist/src/apis/InfoApis.js.map +1 -0
- package/dist/src/apis/ListenerApis.d.ts +3 -0
- package/dist/src/apis/ListenerApis.js +36 -0
- package/dist/src/apis/ListenerApis.js.map +1 -0
- package/dist/src/apis/NFTApis.d.ts +22 -0
- package/dist/src/apis/NFTApis.js +34 -0
- package/dist/src/apis/NFTApis.js.map +1 -0
- package/dist/src/apis/OnOffRampApis.d.ts +2 -0
- package/dist/src/apis/OnOffRampApis.js +23 -0
- package/dist/src/apis/OnOffRampApis.js.map +1 -0
- package/dist/src/apis/OnOffRampUtils.d.ts +2 -0
- package/dist/src/apis/OnOffRampUtils.js +23 -0
- package/dist/src/apis/OnOffRampUtils.js.map +1 -0
- package/dist/src/apis/OperationApis.d.ts +14 -0
- package/dist/src/apis/OperationApis.js +77 -0
- package/dist/src/apis/OperationApis.js.map +1 -0
- package/dist/src/apis/PaymasterApis.d.ts +15 -0
- package/dist/src/apis/PaymasterApis.js +89 -0
- package/dist/src/apis/PaymasterApis.js.map +1 -0
- package/dist/src/apis/UserApis.d.ts +12 -0
- package/dist/src/apis/UserApis.js +77 -0
- package/dist/src/apis/UserApis.js.map +1 -0
- package/dist/src/apis/index.d.ts +10 -0
- package/dist/src/apis/index.js +27 -0
- package/dist/src/apis/index.js.map +1 -0
- package/dist/src/apis/types.d.ts +49 -0
- package/dist/src/apis/types.js +3 -0
- package/dist/src/apis/types.js.map +1 -0
- package/dist/src/auth/Auth.d.ts +81 -0
- package/dist/src/auth/Auth.js +317 -0
- package/dist/src/auth/Auth.js.map +1 -0
- package/dist/src/auth/SessionKeyAuth.d.ts +19 -0
- package/dist/src/auth/SessionKeyAuth.js +118 -0
- package/dist/src/auth/SessionKeyAuth.js.map +1 -0
- package/dist/src/auth/index.d.ts +2 -0
- package/dist/src/auth/index.js +19 -0
- package/dist/src/auth/index.js.map +1 -0
- package/dist/src/auth/types.d.ts +20 -0
- package/dist/src/auth/types.js +3 -0
- package/dist/src/auth/types.js.map +1 -0
- package/dist/src/common/constants.d.ts +1072 -0
- package/dist/src/common/constants.js +153 -0
- package/dist/src/common/constants.js.map +1 -0
- package/dist/src/common/index.d.ts +2 -0
- package/dist/src/common/index.js +19 -0
- package/dist/src/common/index.js.map +1 -0
- package/dist/src/common/types.d.ts +32 -0
- package/dist/src/common/types.js +3 -0
- package/dist/src/common/types.js.map +1 -0
- package/dist/src/config/Config.d.ts +3 -0
- package/dist/src/config/Config.js +46 -0
- package/dist/src/config/Config.js.map +1 -0
- package/dist/src/config/index.d.ts +2 -0
- package/dist/src/config/index.js +19 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/types.d.ts +21 -0
- package/dist/src/config/types.js +3 -0
- package/dist/src/config/types.js.map +1 -0
- package/dist/src/data/Chain.d.ts +29 -0
- package/dist/src/data/Chain.js +174 -0
- package/dist/src/data/Chain.js.map +1 -0
- package/dist/src/data/NFT.d.ts +24 -0
- package/dist/src/data/NFT.js +104 -0
- package/dist/src/data/NFT.js.map +1 -0
- package/dist/src/data/Operation.d.ts +33 -0
- package/dist/src/data/Operation.js +68 -0
- package/dist/src/data/Operation.js.map +1 -0
- package/dist/src/data/SolidityData.d.ts +8 -0
- package/dist/src/data/SolidityData.js +72 -0
- package/dist/src/data/SolidityData.js.map +1 -0
- package/dist/src/data/Token.d.ts +26 -0
- package/dist/src/data/Token.js +122 -0
- package/dist/src/data/Token.js.map +1 -0
- package/dist/src/data/index.d.ts +6 -0
- package/dist/src/data/index.js +23 -0
- package/dist/src/data/index.js.map +1 -0
- package/dist/src/data/types.d.ts +112 -0
- package/dist/src/data/types.js +25 -0
- package/dist/src/data/types.js.map +1 -0
- package/dist/src/errors/BaseError.d.ts +9 -0
- package/dist/src/errors/BaseError.js +23 -0
- package/dist/src/errors/BaseError.js.map +1 -0
- package/dist/src/errors/ClientError.d.ts +22 -0
- package/dist/src/errors/ClientError.js +75 -0
- package/dist/src/errors/ClientError.js.map +1 -0
- package/dist/src/errors/ServerError.d.ts +7 -0
- package/dist/src/errors/ServerError.js +18 -0
- package/dist/src/errors/ServerError.js.map +1 -0
- package/dist/src/errors/index.d.ts +4 -0
- package/dist/src/errors/index.js +21 -0
- package/dist/src/errors/index.js.map +1 -0
- package/dist/src/errors/types.d.ts +54 -0
- package/dist/src/errors/types.js +45 -0
- package/dist/src/errors/types.js.map +1 -0
- package/dist/src/sponsors/GaslessSponsor.d.ts +19 -0
- package/dist/src/sponsors/GaslessSponsor.js +91 -0
- package/dist/src/sponsors/GaslessSponsor.js.map +1 -0
- package/dist/src/sponsors/Sponsor.d.ts +31 -0
- package/dist/src/sponsors/Sponsor.js +94 -0
- package/dist/src/sponsors/Sponsor.js.map +1 -0
- package/dist/src/sponsors/TokenSponsor.d.ts +40 -0
- package/dist/src/sponsors/TokenSponsor.js +271 -0
- package/dist/src/sponsors/TokenSponsor.js.map +1 -0
- package/dist/src/sponsors/index.d.ts +3 -0
- package/dist/src/sponsors/index.js +20 -0
- package/dist/src/sponsors/index.js.map +1 -0
- package/dist/src/sponsors/types.d.ts +9 -0
- package/dist/src/sponsors/types.js +10 -0
- package/dist/src/sponsors/types.js.map +1 -0
- package/dist/src/utils/ApiUtils.d.ts +19 -0
- package/dist/src/utils/ApiUtils.js +97 -0
- package/dist/src/utils/ApiUtils.js.map +1 -0
- package/dist/src/utils/AuthUtils.d.ts +4 -0
- package/dist/src/utils/AuthUtils.js +54 -0
- package/dist/src/utils/AuthUtils.js.map +1 -0
- package/dist/src/utils/ChainUtils.d.ts +12 -0
- package/dist/src/utils/ChainUtils.js +89 -0
- package/dist/src/utils/ChainUtils.js.map +1 -0
- package/dist/src/utils/MerkleUtils.d.ts +18 -0
- package/dist/src/utils/MerkleUtils.js +96 -0
- package/dist/src/utils/MerkleUtils.js.map +1 -0
- package/dist/src/utils/PaymasterUtils.d.ts +3 -0
- package/dist/src/utils/PaymasterUtils.js +17 -0
- package/dist/src/utils/PaymasterUtils.js.map +1 -0
- package/dist/src/utils/SwapUtils.d.ts +35 -0
- package/dist/src/utils/SwapUtils.js +193 -0
- package/dist/src/utils/SwapUtils.js.map +1 -0
- package/dist/src/utils/TypeUtils.d.ts +1 -0
- package/dist/src/utils/TypeUtils.js +13 -0
- package/dist/src/utils/TypeUtils.js.map +1 -0
- package/dist/src/utils/UserOpUtils.d.ts +12 -0
- package/dist/src/utils/UserOpUtils.js +166 -0
- package/dist/src/utils/UserOpUtils.js.map +1 -0
- package/dist/src/utils/ViemUtils.d.ts +9 -0
- package/dist/src/utils/ViemUtils.js +30 -0
- package/dist/src/utils/ViemUtils.js.map +1 -0
- package/dist/src/utils/WalletUtils.d.ts +11 -0
- package/dist/src/utils/WalletUtils.js +61 -0
- package/dist/src/utils/WalletUtils.js.map +1 -0
- package/dist/src/utils/index.d.ts +7 -0
- package/dist/src/utils/index.js +24 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/src/viem/ContractInterface.d.ts +19 -0
- package/dist/src/viem/ContractInterface.js +88 -0
- package/dist/src/viem/ContractInterface.js.map +1 -0
- package/dist/src/viem/Converter.d.ts +1770 -0
- package/dist/src/viem/Converter.js +50 -0
- package/dist/src/viem/Converter.js.map +1 -0
- package/dist/src/viem/index.d.ts +2 -0
- package/dist/src/viem/index.js +19 -0
- package/dist/src/viem/index.js.map +1 -0
- package/dist/src/wallet/FunWallet.d.ts +185 -0
- package/dist/src/wallet/FunWallet.js +720 -0
- package/dist/src/wallet/FunWallet.js.map +1 -0
- package/dist/src/wallet/index.d.ts +2 -0
- package/dist/src/wallet/index.js +19 -0
- package/dist/src/wallet/index.js.map +1 -0
- package/dist/src/wallet/types.d.ts +13 -0
- package/dist/src/wallet/types.js +3 -0
- package/dist/src/wallet/types.js.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "abi": [{ "inputs": [{ "internalType": "address", "name": "_wstETH", "type": "address" }, { "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "string", "name": "_symbol", "type": "string" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "AdminZeroAddress", "type": "error" }, { "inputs": [], "name": "ApprovalToOwner", "type": "error" }, { "inputs": [], "name": "ApproveToCaller", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "_firstArrayLength", "type": "uint256" }, { "internalType": "uint256", "name": "_secondArrayLength", "type": "uint256" }], "name": "ArraysLengthMismatch", "type": "error" }, { "inputs": [], "name": "BatchesAreNotSorted", "type": "error" }, { "inputs": [], "name": "CantSendValueRecipientMayHaveReverted", "type": "error" }, { "inputs": [], "name": "EmptyBatches", "type": "error" }, { "inputs": [], "name": "InvalidContractVersionIncrement", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "_hint", "type": "uint256" }], "name": "InvalidHint", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "InvalidOwnerAddress", "type": "error" }, { "inputs": [], "name": "InvalidReportTimestamp", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "_requestId", "type": "uint256" }], "name": "InvalidRequestId", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "startId", "type": "uint256" }, { "internalType": "uint256", "name": "endId", "type": "uint256" }], "name": "InvalidRequestIdRange", "type": "error" }, { "inputs": [], "name": "InvalidState", "type": "error" }, { "inputs": [], "name": "NonZeroContractVersionOnInit", "type": "error" }, { "inputs": [], "name": "NotEnoughEther", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "_sender", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "name": "NotOwner", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "NotOwnerOrApproved", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "sender", "type": "address" }], "name": "NotOwnerOrApprovedForAll", "type": "error" }, { "inputs": [], "name": "PauseUntilMustBeInFuture", "type": "error" }, { "inputs": [], "name": "PausedExpected", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "_requestId", "type": "uint256" }], "name": "RequestAlreadyClaimed", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "_amountOfStETH", "type": "uint256" }], "name": "RequestAmountTooLarge", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "_amountOfStETH", "type": "uint256" }], "name": "RequestAmountTooSmall", "type": "error" }, { "inputs": [], "name": "RequestIdsNotSorted", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "_requestId", "type": "uint256" }], "name": "RequestNotFoundOrNotFinalized", "type": "error" }, { "inputs": [], "name": "ResumedExpected", "type": "error" }, { "inputs": [{ "internalType": "string", "name": "str", "type": "string" }], "name": "StringTooLong", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "sent", "type": "uint256" }, { "internalType": "uint256", "name": "maxExpected", "type": "uint256" }], "name": "TooMuchEtherToFinalize", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "realOwner", "type": "address" }], "name": "TransferFromIncorrectOwner", "type": "error" }, { "inputs": [], "name": "TransferFromZeroAddress", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "TransferToNonIERC721Receiver", "type": "error" }, { "inputs": [], "name": "TransferToThemselves", "type": "error" }, { "inputs": [], "name": "TransferToZeroAddress", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "expected", "type": "uint256" }, { "internalType": "uint256", "name": "received", "type": "uint256" }], "name": "UnexpectedContractVersion", "type": "error" }, { "inputs": [], "name": "ZeroAmountOfETH", "type": "error" }, { "inputs": [], "name": "ZeroMetadata", "type": "error" }, { "inputs": [], "name": "ZeroPauseDuration", "type": "error" }, { "inputs": [], "name": "ZeroRecipient", "type": "error" }, { "inputs": [], "name": "ZeroShareRate", "type": "error" }, { "inputs": [], "name": "ZeroTimestamp", "type": "error" }, { "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": false, "internalType": "string", "name": "baseURI", "type": "string" }], "name": "BaseURISet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "_fromTokenId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_toTokenId", "type": "uint256" }], "name": "BatchMetadataUpdate", "type": "event" }, { "anonymous": false, "inputs": [], "name": "BunkerModeDisabled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "_sinceTimestamp", "type": "uint256" }], "name": "BunkerModeEnabled", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "version", "type": "uint256" }], "name": "ContractVersionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "_admin", "type": "address" }], "name": "InitializedV1", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "_tokenId", "type": "uint256" }], "name": "MetadataUpdate", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "nftDescriptorAddress", "type": "address" }], "name": "NftDescriptorAddressSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint256", "name": "duration", "type": "uint256" }], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [], "name": "Resumed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "previousAdminRole", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "newAdminRole", "type": "bytes32" }], "name": "RoleAdminChanged", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleGranted", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "sender", "type": "address" }], "name": "RoleRevoked", "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" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "receiver", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountOfETH", "type": "uint256" }], "name": "WithdrawalClaimed", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "requestId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "requestor", "type": "address" }, { "indexed": true, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amountOfStETH", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountOfShares", "type": "uint256" }], "name": "WithdrawalRequested", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "uint256", "name": "from", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "to", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amountOfETHLocked", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "sharesToBurn", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" }], "name": "WithdrawalsFinalized", "type": "event" }, { "inputs": [], "name": "BUNKER_MODE_DISABLED_TIMESTAMP", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DEFAULT_ADMIN_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "FINALIZE_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MANAGE_TOKEN_URI_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_BATCHES_LENGTH", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MAX_STETH_WITHDRAWAL_AMOUNT", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_STETH_WITHDRAWAL_AMOUNT", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ORACLE_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PAUSE_INFINITELY", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PAUSE_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "RESUME_ROLE", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "STETH", "outputs": [{ "internalType": "contractIStETH", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WSTETH", "outputs": [{ "internalType": "contractIWstETH", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_requestId", "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": [], "name": "bunkerModeSinceTimestamp", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_maxShareRate", "type": "uint256" }, { "internalType": "uint256", "name": "_maxTimestamp", "type": "uint256" }, { "internalType": "uint256", "name": "_maxRequestsPerCall", "type": "uint256" }, { "components": [{ "internalType": "uint256", "name": "remainingEthBudget", "type": "uint256" }, { "internalType": "bool", "name": "finished", "type": "bool" }, { "internalType": "uint256[36]", "name": "batches", "type": "uint256[36]" }, { "internalType": "uint256", "name": "batchesLength", "type": "uint256" }], "internalType": "structWithdrawalQueueBase.BatchesCalculationState", "name": "_state", "type": "tuple" }], "name": "calculateFinalizationBatches", "outputs": [{ "components": [{ "internalType": "uint256", "name": "remainingEthBudget", "type": "uint256" }, { "internalType": "bool", "name": "finished", "type": "bool" }, { "internalType": "uint256[36]", "name": "batches", "type": "uint256[36]" }, { "internalType": "uint256", "name": "batchesLength", "type": "uint256" }], "internalType": "structWithdrawalQueueBase.BatchesCalculationState", "name": "", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_requestId", "type": "uint256" }], "name": "claimWithdrawal", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_requestIds", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "_hints", "type": "uint256[]" }], "name": "claimWithdrawals", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_requestIds", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "_hints", "type": "uint256[]" }, { "internalType": "address", "name": "_recipient", "type": "address" }], "name": "claimWithdrawalsTo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_lastRequestIdToBeFinalized", "type": "uint256" }, { "internalType": "uint256", "name": "_maxShareRate", "type": "uint256" }], "name": "finalize", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_requestIds", "type": "uint256[]" }, { "internalType": "uint256", "name": "_firstIndex", "type": "uint256" }, { "internalType": "uint256", "name": "_lastIndex", "type": "uint256" }], "name": "findCheckpointHints", "outputs": [{ "internalType": "uint256[]", "name": "hintIds", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_requestId", "type": "uint256" }], "name": "getApproved", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getBaseURI", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_requestIds", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "_hints", "type": "uint256[]" }], "name": "getClaimableEther", "outputs": [{ "internalType": "uint256[]", "name": "claimableEthValues", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getContractVersion", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLastCheckpointIndex", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLastFinalizedRequestId", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLastRequestId", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getLockedEtherAmount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getNFTDescriptorAddress", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getResumeSinceTimestamp", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], "name": "getRoleAdmin", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "uint256", "name": "index", "type": "uint256" }], "name": "getRoleMember", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }], "name": "getRoleMemberCount", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_owner", "type": "address" }], "name": "getWithdrawalRequests", "outputs": [{ "internalType": "uint256[]", "name": "requestsIds", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_requestIds", "type": "uint256[]" }], "name": "getWithdrawalStatus", "outputs": [{ "components": [{ "internalType": "uint256", "name": "amountOfStETH", "type": "uint256" }, { "internalType": "uint256", "name": "amountOfShares", "type": "uint256" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" }, { "internalType": "bool", "name": "isFinalized", "type": "bool" }, { "internalType": "bool", "name": "isClaimed", "type": "bool" }], "internalType": "structWithdrawalQueueBase.WithdrawalRequestStatus[]", "name": "statuses", "type": "tuple[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "grantRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "hasRole", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_admin", "type": "address" }], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "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": [], "name": "isBunkerModeActive", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "isPaused", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bool", "name": "_isBunkerModeNow", "type": "bool" }, { "internalType": "uint256", "name": "_bunkerStartTimestamp", "type": "uint256" }, { "internalType": "uint256", "name": "_currentReportTimestamp", "type": "uint256" }], "name": "onOracleReport", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_requestId", "type": "uint256" }], "name": "ownerOf", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_duration", "type": "uint256" }], "name": "pauseFor", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "_pauseUntilInclusive", "type": "uint256" }], "name": "pauseUntil", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_batches", "type": "uint256[]" }, { "internalType": "uint256", "name": "_maxShareRate", "type": "uint256" }], "name": "prefinalize", "outputs": [{ "internalType": "uint256", "name": "ethToLock", "type": "uint256" }, { "internalType": "uint256", "name": "sharesToBurn", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "renounceRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" }, { "internalType": "address", "name": "_owner", "type": "address" }], "name": "requestWithdrawals", "outputs": [{ "internalType": "uint256[]", "name": "requestIds", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "components": [{ "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "internalType": "structWithdrawalQueue.PermitInput", "name": "_permit", "type": "tuple" }], "name": "requestWithdrawalsWithPermit", "outputs": [{ "internalType": "uint256[]", "name": "requestIds", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" }, { "internalType": "address", "name": "_owner", "type": "address" }], "name": "requestWithdrawalsWstETH", "outputs": [{ "internalType": "uint256[]", "name": "requestIds", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256[]", "name": "_amounts", "type": "uint256[]" }, { "internalType": "address", "name": "_owner", "type": "address" }, { "components": [{ "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "internalType": "structWithdrawalQueue.PermitInput", "name": "_permit", "type": "tuple" }], "name": "requestWithdrawalsWstETHWithPermit", "outputs": [{ "internalType": "uint256[]", "name": "requestIds", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "resume", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "bytes32", "name": "role", "type": "bytes32" }, { "internalType": "address", "name": "account", "type": "address" }], "name": "revokeRole", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_from", "type": "address" }, { "internalType": "address", "name": "_to", "type": "address" }, { "internalType": "uint256", "name": "_requestId", "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": "_requestId", "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": "string", "name": "_baseURI", "type": "string" }], "name": "setBaseURI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_nftDescriptorAddress", "type": "address" }], "name": "setNFTDescriptorAddress", "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": "_requestId", "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": "_requestId", "type": "uint256" }], "name": "transferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unfinalizedRequestNumber", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "unfinalizedStETH", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }] }
|
|
@@ -0,0 +1 @@
|
|
|
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" } }
|
|
@@ -0,0 +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" } }
|
|
@@ -0,0 +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" } }
|
|
@@ -0,0 +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" } }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "name": "UniswapV2Factory", "abi": [{ "inputs": [{ "internalType": "address", "name": "_feeToSetter", "type": "address" }], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [{ "indexed": true, "internalType": "address", "name": "token0", "type": "address" }, { "indexed": true, "internalType": "address", "name": "token1", "type": "address" }, { "indexed": false, "internalType": "address", "name": "pair", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "", "type": "uint256" }], "name": "PairCreated", "type": "event" }, { "constant": true, "inputs": [], "name": "INIT_CODE_HASH", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "allPairs", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "allPairsLength", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }], "name": "createPair", "outputs": [{ "internalType": "address", "name": "pair", "type": "address" }], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "feeTo", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "feeToSetter", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }], "name": "getPair", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "_feeTo", "type": "address" }], "name": "setFeeTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "address", "name": "_feeToSetter", "type": "address" }], "name": "setFeeToSetter", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }], "addresses": { "5": "0x3000611369Ae8A009C8CB0e4011C765FdFB35802", "31337": "0x3489745eff9525CCC3d8c648102FE2cf3485e228", "36865": "0xF8c6B9d738D2E324bDe51760b798Bfa93dd077B3", "84531": "0x6d9888900b96a019982AC3CcF1A639a024851196" } }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "name": "UniswapV2Router02", "abi": [{ "inputs": [{ "internalType": "address", "name": "_factory", "type": "address" }, { "internalType": "address", "name": "_WETH", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "WETH", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }, { "internalType": "uint256", "name": "amountADesired", "type": "uint256" }, { "internalType": "uint256", "name": "amountBDesired", "type": "uint256" }, { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "addLiquidity", "outputs": [{ "internalType": "uint256", "name": "amountA", "type": "uint256" }, { "internalType": "uint256", "name": "amountB", "type": "uint256" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amountTokenDesired", "type": "uint256" }, { "internalType": "uint256", "name": "amountTokenMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountETHMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "addLiquidityETH", "outputs": [{ "internalType": "uint256", "name": "amountToken", "type": "uint256" }, { "internalType": "uint256", "name": "amountETH", "type": "uint256" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "factory", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "reserveIn", "type": "uint256" }, { "internalType": "uint256", "name": "reserveOut", "type": "uint256" }], "name": "getAmountIn", "outputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "reserveIn", "type": "uint256" }, { "internalType": "uint256", "name": "reserveOut", "type": "uint256" }], "name": "getAmountOut", "outputs": [{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }], "name": "getAmountsIn", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }], "name": "getAmountsOut", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountA", "type": "uint256" }, { "internalType": "uint256", "name": "reserveA", "type": "uint256" }, { "internalType": "uint256", "name": "reserveB", "type": "uint256" }], "name": "quote", "outputs": [{ "internalType": "uint256", "name": "amountB", "type": "uint256" }], "stateMutability": "pure", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "removeLiquidity", "outputs": [{ "internalType": "uint256", "name": "amountA", "type": "uint256" }, { "internalType": "uint256", "name": "amountB", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "amountTokenMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountETHMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "removeLiquidityETH", "outputs": [{ "internalType": "uint256", "name": "amountToken", "type": "uint256" }, { "internalType": "uint256", "name": "amountETH", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "amountTokenMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountETHMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "removeLiquidityETHSupportingFeeOnTransferTokens", "outputs": [{ "internalType": "uint256", "name": "amountETH", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "amountTokenMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountETHMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "bool", "name": "approveMax", "type": "bool" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "removeLiquidityETHWithPermit", "outputs": [{ "internalType": "uint256", "name": "amountToken", "type": "uint256" }, { "internalType": "uint256", "name": "amountETH", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "amountTokenMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountETHMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "bool", "name": "approveMax", "type": "bool" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "removeLiquidityETHWithPermitSupportingFeeOnTransferTokens", "outputs": [{ "internalType": "uint256", "name": "amountETH", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "tokenA", "type": "address" }, { "internalType": "address", "name": "tokenB", "type": "address" }, { "internalType": "uint256", "name": "liquidity", "type": "uint256" }, { "internalType": "uint256", "name": "amountAMin", "type": "uint256" }, { "internalType": "uint256", "name": "amountBMin", "type": "uint256" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "bool", "name": "approveMax", "type": "bool" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" }], "name": "removeLiquidityWithPermit", "outputs": [{ "internalType": "uint256", "name": "amountA", "type": "uint256" }, { "internalType": "uint256", "name": "amountB", "type": "uint256" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapETHForExactTokens", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapExactETHForTokens", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapExactETHForTokensSupportingFeeOnTransferTokens", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapExactTokensForETH", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapExactTokensForETHSupportingFeeOnTransferTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapExactTokensForTokens", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountIn", "type": "uint256" }, { "internalType": "uint256", "name": "amountOutMin", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapExactTokensForTokensSupportingFeeOnTransferTokens", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapTokensForExactETH", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint256", "name": "amountOut", "type": "uint256" }, { "internalType": "uint256", "name": "amountInMax", "type": "uint256" }, { "internalType": "address[]", "name": "path", "type": "address[]" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "deadline", "type": "uint256" }], "name": "swapTokensForExactTokens", "outputs": [{ "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" }], "addresses": { "5": "0x5D581A65D141A18BAc677bdf566390f8E99EDa9D", "36865": "0x6488FA4B83343041E7712434F26d157Cc3310E4d" } }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "name": "UniswapV3LimitOrder", "abi": [{ "inputs": [{ "internalType": "address", "name": "_router", "type": "address" }, { "internalType": "address", "name": "_quoter", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "EMPTY_STATE", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "execute", "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": [], "name": "moduleId", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "payFee", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "quoter", "outputs": [{ "internalType": "contractIQuoterV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "router", "outputs": [{ "internalType": "contractISwapRouter", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "bytes", "name": "data", "type": "bytes" }], "name": "validate", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }], "addresses": { "1": "0x16F0623a6A9E0f9992A5c5589c98F2607CB6AF51", "5": "0x16F0623a6A9E0f9992A5c5589c98F2607CB6AF51", "10": "0x16F0623a6A9E0f9992A5c5589c98F2607CB6AF51", "137": "0x16F0623a6A9E0f9992A5c5589c98F2607CB6AF51", "8453": "0x16F0623a6A9E0f9992A5c5589c98F2607CB6AF51", "36865": "0x16F0623a6A9E0f9992A5c5589c98F2607CB6AF51", "42161": "0x16F0623a6A9E0f9992A5c5589c98F2607CB6AF51" } }
|
|
@@ -0,0 +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" } }
|
|
@@ -0,0 +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": { "5": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "10": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "137": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "8453": "0x33128a8fC17869897dcE68Ed026d694621f6FDfD", "36865": "0x1F98431c8aD98523631AE4a59f267346ea31F984", "42161": "0x1F98431c8aD98523631AE4a59f267346ea31F984" } }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "name": "univ3quoter", "abi": [], "addresses": { "5": "0x61fFE014bA17989E743c5F6cB21bF9697530B21e", "10": "0x61fFE014bA17989E743c5F6cB21bF9697530B21e", "137": "0x61fFE014bA17989E743c5F6cB21bF9697530B21e", "8453": "0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a", "36865": "0x61fFE014bA17989E743c5F6cB21bF9697530B21e", "42161": "0x61fFE014bA17989E743c5F6cB21bF9697530B21e" } }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "name": "univ3router", "abi": [], "addresses": { "5": "0xc104A3e2CDC1c29a2a284C515d4e10102D2e39cE", "10": "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45", "137": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "8453": "0x2626664c2603336E57B271c5C0b26F421741e481", "36865": "0xE592427A0AEce92De3Edee1F18E0157C05861564", "42161": "0xE592427A0AEce92De3Edee1F18E0157C05861564" } }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AddOwnerParams, RemoveOwnerParams, SessionKeyParams } from "./types";
|
|
2
|
+
import { SessionKeyAuth } from "../auth";
|
|
3
|
+
import { TransactionParams } from "../common";
|
|
4
|
+
import { EnvOption } from "../config";
|
|
5
|
+
export declare const HashOne: `0x${string}`;
|
|
6
|
+
export declare const createSessionKeyTransactionParams: (params: SessionKeyParams, txOptions?: EnvOption) => Promise<TransactionParams>;
|
|
7
|
+
export declare const createSessionUser: () => SessionKeyAuth;
|
|
8
|
+
export declare const addOwnerTxParams: (params: AddOwnerParams, txOptions?: EnvOption) => Promise<TransactionParams>;
|
|
9
|
+
export declare const removeOwnerTxParams: (params: RemoveOwnerParams, txOptions?: EnvOption) => Promise<TransactionParams>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.removeOwnerTxParams = exports.addOwnerTxParams = exports.createSessionUser = exports.createSessionKeyTransactionParams = exports.HashOne = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const auth_1 = require("../auth");
|
|
6
|
+
const common_1 = require("../common");
|
|
7
|
+
const data_1 = require("../data");
|
|
8
|
+
const Token_1 = require("../data/Token");
|
|
9
|
+
const errors_1 = require("../errors");
|
|
10
|
+
const utils_1 = require("../utils");
|
|
11
|
+
const MerkleUtils_1 = require("../utils/MerkleUtils");
|
|
12
|
+
const ViemUtils_1 = require("../utils/ViemUtils");
|
|
13
|
+
exports.HashOne = (0, viem_1.padHex)("0x1", { size: 32 });
|
|
14
|
+
const createSessionKeyTransactionParams = async (params, txOptions = globalThis.globalEnvOption) => {
|
|
15
|
+
if (params.targetWhitelist.length === 0) {
|
|
16
|
+
throw new errors_1.InvalidParameterError(errors_1.ErrorCode.MissingParameter, "targetWhitelist is required", { params }, "Provide targetWhitelist when creating a session key.", "https://docs.fun.xyz");
|
|
17
|
+
}
|
|
18
|
+
let { actionValueLimit, feeValueLimit } = params;
|
|
19
|
+
actionValueLimit ?? (actionValueLimit = 0n);
|
|
20
|
+
feeValueLimit ?? (feeValueLimit = 0n);
|
|
21
|
+
const selectors = [];
|
|
22
|
+
params.actionWhitelist.forEach((actionWhitelistItem) => {
|
|
23
|
+
if (typeof actionWhitelistItem === "string") {
|
|
24
|
+
selectors.push(actionWhitelistItem);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
selectors.push(...actionWhitelistItem.functionWhitelist.map((functionName) => (0, ViemUtils_1.getSigHash)(actionWhitelistItem.abi, functionName)));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
const targets = params.targetWhitelist.map((target) => (0, viem_1.getAddress)(target));
|
|
31
|
+
let feeRecipientTokenMerkleRootHash = exports.HashOne;
|
|
32
|
+
if (params.feeRecipientWhitelist && params.feeTokenWhitelist) {
|
|
33
|
+
const recipients = params.feeRecipientWhitelist.map((recipient) => (0, viem_1.getAddress)(recipient));
|
|
34
|
+
const tokens = await Promise.all(params.feeTokenWhitelist.map((token) => Token_1.Token.getAddress(token)));
|
|
35
|
+
const feeRecipientAndTokenMerkleTree = new MerkleUtils_1.MerkleTree([...recipients, ...tokens]);
|
|
36
|
+
feeRecipientTokenMerkleRootHash = feeRecipientAndTokenMerkleTree.getRoot();
|
|
37
|
+
params.user.setFeeRecipientMerkleTree(feeRecipientAndTokenMerkleTree);
|
|
38
|
+
}
|
|
39
|
+
const targetSelectorMerkleTree = new MerkleUtils_1.MerkleTree([...targets, ...selectors]);
|
|
40
|
+
const targetSelectorMerkleRootHash = targetSelectorMerkleTree.getRoot();
|
|
41
|
+
params.user.setTargetSelectorMerkleTree(targetSelectorMerkleTree);
|
|
42
|
+
const ruleStruct = {
|
|
43
|
+
deadline: convertTimestampToBigInt(params.deadline),
|
|
44
|
+
targetSelectorMerkleRootHash,
|
|
45
|
+
feeRecipientTokenMerkleRootHash,
|
|
46
|
+
actionValueLimit,
|
|
47
|
+
feeValueLimit
|
|
48
|
+
};
|
|
49
|
+
const roleId = params.user.roleId;
|
|
50
|
+
const ruleId = params.user.ruleId;
|
|
51
|
+
const userid = await params.user.getUserId();
|
|
52
|
+
const setRuleCallData = common_1.RBAC_CONTRACT_INTERFACE.encodeData("setRule", [ruleId, ruleStruct]);
|
|
53
|
+
const connectRuleAndRoleCallData = common_1.RBAC_CONTRACT_INTERFACE.encodeData("addRuleToRole", [roleId, ruleId]);
|
|
54
|
+
const connectUserToRoleCallData = common_1.RBAC_CONTRACT_INTERFACE.encodeData("addUserToRole", [roleId, userid]);
|
|
55
|
+
const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
|
|
56
|
+
const rbacAddress = await chain.getAddress("rbacAddress");
|
|
57
|
+
return common_1.RBAC_CONTRACT_INTERFACE.encodeTransactionParams(rbacAddress, "multiCall", [
|
|
58
|
+
[setRuleCallData, connectRuleAndRoleCallData, connectUserToRoleCallData]
|
|
59
|
+
]);
|
|
60
|
+
};
|
|
61
|
+
exports.createSessionKeyTransactionParams = createSessionKeyTransactionParams;
|
|
62
|
+
const createSessionUser = () => {
|
|
63
|
+
return new auth_1.SessionKeyAuth({ privateKey: (0, utils_1.randomBytes)(32) });
|
|
64
|
+
};
|
|
65
|
+
exports.createSessionUser = createSessionUser;
|
|
66
|
+
const addOwnerTxParams = async (params, txOptions = globalThis.globalEnvOption) => {
|
|
67
|
+
const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
|
|
68
|
+
const rbacAddress = await chain.getAddress("rbacAddress");
|
|
69
|
+
return common_1.RBAC_CONTRACT_INTERFACE.encodeTransactionParams(rbacAddress, "addOwner", [(0, viem_1.pad)(params.ownerId, { size: 32 })]);
|
|
70
|
+
};
|
|
71
|
+
exports.addOwnerTxParams = addOwnerTxParams;
|
|
72
|
+
const removeOwnerTxParams = async (params, txOptions = globalThis.globalEnvOption) => {
|
|
73
|
+
const chain = await data_1.Chain.getChain({ chainIdentifier: txOptions.chain });
|
|
74
|
+
const rbacAddress = await chain.getAddress("rbacAddress");
|
|
75
|
+
return common_1.RBAC_CONTRACT_INTERFACE.encodeTransactionParams(rbacAddress, "removeOwner", [(0, viem_1.pad)(params.ownerId, { size: 32 })]);
|
|
76
|
+
};
|
|
77
|
+
exports.removeOwnerTxParams = removeOwnerTxParams;
|
|
78
|
+
const convertTimestampToBigInt = (timestamp) => {
|
|
79
|
+
if (Math.abs(Date.now() - timestamp) < Math.abs(Date.now() - timestamp * 1000)) {
|
|
80
|
+
// timestamp is in mills
|
|
81
|
+
return BigInt(Math.floor(timestamp)) / 1000n;
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
// timestamp is seconds
|
|
85
|
+
return BigInt(Math.floor(timestamp));
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=AccessControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessControl.js","sourceRoot":"","sources":["../../../src/actions/AccessControl.ts"],"names":[],"mappings":";;;AAAA,+BAAmD;AAEnD,kCAAwC;AACxC,sCAAsE;AAEtE,kCAA+B;AAC/B,yCAAqC;AACrC,sCAA4D;AAC5D,oCAAsC;AACtC,sDAAiD;AACjD,kDAA+C;AAElC,QAAA,OAAO,GAAG,IAAA,aAAM,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAA;AAE3C,MAAM,iCAAiC,GAAG,KAAK,EAClD,MAAwB,EACxB,YAAwB,UAAkB,CAAC,eAAe,EAChC,EAAE;IAC5B,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE;QACrC,MAAM,IAAI,8BAAqB,CAC3B,kBAAS,CAAC,gBAAgB,EAC1B,6BAA6B,EAC7B,EAAE,MAAM,EAAE,EACV,sDAAsD,EACtD,sBAAsB,CACzB,CAAA;KACJ;IACD,IAAI,EAAE,gBAAgB,EAAE,aAAa,EAAE,GAAG,MAAM,CAAA;IAChD,gBAAgB,KAAhB,gBAAgB,GAAK,EAAE,EAAA;IACvB,aAAa,KAAb,aAAa,GAAK,EAAE,EAAA;IACpB,MAAM,SAAS,GAAU,EAAE,CAAA;IAC3B,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,mBAAmB,EAAE,EAAE;QACnD,IAAI,OAAO,mBAAmB,KAAK,QAAQ,EAAE;YACzC,SAAS,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAA;SACtC;aAAM;YACH,SAAS,CAAC,IAAI,CACV,GAAG,mBAAmB,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,IAAA,sBAAU,EAAC,mBAAmB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CACpH,CAAA;SACJ;IACL,CAAC,CAAC,CAAA;IACF,MAAM,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,iBAAU,EAAC,MAAM,CAAC,CAAC,CAAA;IAE1E,IAAI,+BAA+B,GAAG,eAAO,CAAA;IAC7C,IAAI,MAAM,CAAC,qBAAqB,IAAI,MAAM,CAAC,iBAAiB,EAAE;QAC1D,MAAM,UAAU,GAAG,MAAM,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,iBAAU,EAAC,SAAS,CAAC,CAAC,CAAA;QACzF,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,aAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAClG,MAAM,8BAA8B,GAAG,IAAI,wBAAU,CAAC,CAAC,GAAG,UAAU,EAAE,GAAG,MAAM,CAAC,CAAC,CAAA;QACjF,+BAA+B,GAAG,8BAA8B,CAAC,OAAO,EAAE,CAAA;QAC1E,MAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,8BAA8B,CAAC,CAAA;KACxE;IACD,MAAM,wBAAwB,GAAG,IAAI,wBAAU,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,SAAS,CAAC,CAAC,CAAA;IAC3E,MAAM,4BAA4B,GAAG,wBAAwB,CAAC,OAAO,EAAE,CAAA;IACvE,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,wBAAwB,CAAC,CAAA;IACjE,MAAM,UAAU,GAAe;QAC3B,QAAQ,EAAE,wBAAwB,CAAC,MAAM,CAAC,QAAQ,CAAC;QACnD,4BAA4B;QAC5B,+BAA+B;QAC/B,gBAAgB;QAChB,aAAa;KAChB,CAAA;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAA;IACjC,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAA;IACjC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,CAAA;IAE5C,MAAM,eAAe,GAAG,gCAAuB,CAAC,UAAU,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAA;IAC3F,MAAM,0BAA0B,GAAG,gCAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACxG,MAAM,yBAAyB,GAAG,gCAAuB,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACvG,MAAM,KAAK,GAAG,MAAM,YAAK,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC,CAAA;IACxE,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;IACzD,OAAO,gCAAuB,CAAC,uBAAuB,CAAC,WAAW,EAAE,WAAW,EAAE;QAC7E,CAAC,eAAe,EAAE,0BAA0B,EAAE,yBAAyB,CAAC;KAC3E,CAAC,CAAA;AACN,CAAC,CAAA;AA1DY,QAAA,iCAAiC,qCA0D7C;AAEM,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAClC,OAAO,IAAI,qBAAc,CAAC,EAAE,UAAU,EAAE,IAAA,mBAAW,EAAC,EAAE,CAAC,EAAE,CAAC,CAAA;AAC9D,CAAC,CAAA;AAFY,QAAA,iBAAiB,qBAE7B;AAEM,MAAM,gBAAgB,GAAG,KAAK,EACjC,MAAsB,EACtB,YAAwB,UAAkB,CAAC,eAAe,EAChC,EAAE;IAC5B,MAAM,KAAK,GAAG,MAAM,YAAK,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC,CAAA;IACxE,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;IACzD,OAAO,gCAAuB,CAAC,uBAAuB,CAAC,WAAW,EAAE,UAAU,EAAE,CAAC,IAAA,UAAG,EAAC,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AACxH,CAAC,CAAA;AAPY,QAAA,gBAAgB,oBAO5B;AAEM,MAAM,mBAAmB,GAAG,KAAK,EACpC,MAAyB,EACzB,YAAwB,UAAkB,CAAC,eAAe,EAChC,EAAE;IAC5B,MAAM,KAAK,GAAG,MAAM,YAAK,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC,CAAA;IACxE,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;IACzD,OAAO,gCAAuB,CAAC,uBAAuB,CAAC,WAAW,EAAE,aAAa,EAAE,CAAC,IAAA,UAAG,EAAC,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AAC3H,CAAC,CAAA;AAPY,QAAA,mBAAmB,uBAO/B;AAED,MAAM,wBAAwB,GAAG,CAAC,SAAiB,EAAU,EAAE;IAC3D,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE;QAC5E,wBAAwB;QACxB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,KAAK,CAAA;KAC/C;SAAM;QACH,uBAAuB;QACvB,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAA;KACvC;AACL,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createExecuteBatchTxParams = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
const createExecuteBatchTxParams = (params, walletAddress) => {
|
|
6
|
+
const targets = params.map((param) => param.to);
|
|
7
|
+
const values = params.map((param) => param.value ?? 0n);
|
|
8
|
+
const datas = params.map((param) => param.data ?? "0x");
|
|
9
|
+
return common_1.WALLET_CONTRACT_INTERFACE.encodeTransactionParams(walletAddress, "executeBatch", [targets, values, datas]);
|
|
10
|
+
};
|
|
11
|
+
exports.createExecuteBatchTxParams = createExecuteBatchTxParams;
|
|
12
|
+
//# sourceMappingURL=BatchActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchActions.js","sourceRoot":"","sources":["../../../src/actions/BatchActions.ts"],"names":[],"mappings":";;;AACA,sCAAwE;AAEjE,MAAM,0BAA0B,GAAG,CAAC,MAA2B,EAAE,aAAsB,EAAqB,EAAE;IACjH,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;IACvD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;IACvD,OAAO,kCAAyB,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAA;AACrH,CAAC,CAAA;AALY,QAAA,0BAA0B,8BAKtC"}
|