permissionless 0.1.48 → 0.1.49
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/_cjs/accounts/biconomy/abi/BiconomySmartAccountAbi.js +102 -0
- package/_cjs/accounts/biconomy/abi/BiconomySmartAccountAbi.js.map +1 -0
- package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js +14 -0
- package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -0
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +233 -0
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -0
- package/_cjs/accounts/index.js +30 -0
- package/_cjs/accounts/index.js.map +1 -0
- package/_cjs/accounts/kernel/abi/KernelAccountAbi.js +84 -0
- package/_cjs/accounts/kernel/abi/KernelAccountAbi.js.map +1 -0
- package/_cjs/accounts/kernel/abi/KernelV3AccountAbi.js +110 -0
- package/_cjs/accounts/kernel/abi/KernelV3AccountAbi.js.map +1 -0
- package/_cjs/accounts/kernel/abi/KernelV3MetaFactoryAbi.js +21 -0
- package/_cjs/accounts/kernel/abi/KernelV3MetaFactoryAbi.js.map +1 -0
- package/_cjs/accounts/kernel/constants.js +27 -0
- package/_cjs/accounts/kernel/constants.js.map +1 -0
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +332 -0
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -0
- package/_cjs/accounts/kernel/utils/encodeCallData.js +90 -0
- package/_cjs/accounts/kernel/utils/encodeCallData.js.map +1 -0
- package/_cjs/accounts/kernel/utils/getExecMode.js +15 -0
- package/_cjs/accounts/kernel/utils/getExecMode.js.map +1 -0
- package/_cjs/accounts/kernel/utils/getNonceKey.js +25 -0
- package/_cjs/accounts/kernel/utils/getNonceKey.js.map +1 -0
- package/_cjs/accounts/kernel/utils/isKernelV2.js +9 -0
- package/_cjs/accounts/kernel/utils/isKernelV2.js.map +1 -0
- package/_cjs/accounts/kernel/utils/signMessage.js +29 -0
- package/_cjs/accounts/kernel/utils/signMessage.js.map +1 -0
- package/_cjs/accounts/kernel/utils/signTypedData.js +41 -0
- package/_cjs/accounts/kernel/utils/signTypedData.js.map +1 -0
- package/_cjs/accounts/kernel/utils/wrapMessageHash.js +20 -0
- package/_cjs/accounts/kernel/utils/wrapMessageHash.js.map +1 -0
- package/_cjs/accounts/light/privateKeyToLightSmartAccount.js +14 -0
- package/_cjs/accounts/light/privateKeyToLightSmartAccount.js.map +1 -0
- package/_cjs/accounts/light/signerToLightSmartAccount.js +256 -0
- package/_cjs/accounts/light/signerToLightSmartAccount.js.map +1 -0
- package/_cjs/accounts/safe/privateKeyToSafeSmartAccount.js +14 -0
- package/_cjs/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -0
- package/_cjs/accounts/safe/signerToSafeSmartAccount.js +1012 -0
- package/_cjs/accounts/safe/signerToSafeSmartAccount.js.map +1 -0
- package/_cjs/accounts/simple/privateKeyToSimpleSmartAccount.js +14 -0
- package/_cjs/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -0
- package/_cjs/accounts/simple/signerToSimpleSmartAccount.js +259 -0
- package/_cjs/accounts/simple/signerToSimpleSmartAccount.js.map +1 -0
- package/_cjs/accounts/toSmartAccount.js +84 -0
- package/_cjs/accounts/toSmartAccount.js.map +1 -0
- package/_cjs/accounts/trust/privateKeyToTrustSmartAccount.js +14 -0
- package/_cjs/accounts/trust/privateKeyToTrustSmartAccount.js.map +1 -0
- package/_cjs/accounts/trust/signerToTrustSmartAccount.js +134 -0
- package/_cjs/accounts/trust/signerToTrustSmartAccount.js.map +1 -0
- package/_cjs/accounts/trust/utils/encodeCallData.js +74 -0
- package/_cjs/accounts/trust/utils/encodeCallData.js.map +1 -0
- package/_cjs/accounts/trust/utils/getAccountAddress.js +19 -0
- package/_cjs/accounts/trust/utils/getAccountAddress.js.map +1 -0
- package/_cjs/accounts/trust/utils/getDummySignature.js +8 -0
- package/_cjs/accounts/trust/utils/getDummySignature.js.map +1 -0
- package/_cjs/accounts/trust/utils/getFactoryData.js +43 -0
- package/_cjs/accounts/trust/utils/getFactoryData.js.map +1 -0
- package/_cjs/accounts/trust/utils/signMessage.js +9 -0
- package/_cjs/accounts/trust/utils/signMessage.js.map +1 -0
- package/_cjs/accounts/trust/utils/signTransaction.js +9 -0
- package/_cjs/accounts/trust/utils/signTransaction.js.map +1 -0
- package/_cjs/accounts/trust/utils/signUserOperation.js +19 -0
- package/_cjs/accounts/trust/utils/signUserOperation.js.map +1 -0
- package/_cjs/accounts/types.js +23 -0
- package/_cjs/accounts/types.js.map +1 -0
- package/_cjs/actions/bundler/chainId.js +11 -0
- package/_cjs/actions/bundler/chainId.js.map +1 -0
- package/_cjs/actions/bundler/estimateUserOperationGas.js +49 -0
- package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -0
- package/_cjs/actions/bundler/getUserOperationByHash.js +47 -0
- package/_cjs/actions/bundler/getUserOperationByHash.js.map +1 -0
- package/_cjs/actions/bundler/getUserOperationReceipt.js +52 -0
- package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -0
- package/_cjs/actions/bundler/sendUserOperation.js +23 -0
- package/_cjs/actions/bundler/sendUserOperation.js.map +1 -0
- package/_cjs/actions/bundler/supportedEntryPoints.js +11 -0
- package/_cjs/actions/bundler/supportedEntryPoints.js.map +1 -0
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js +67 -0
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
- package/_cjs/actions/erc7579/accountId.js +66 -0
- package/_cjs/actions/erc7579/accountId.js.map +1 -0
- package/_cjs/actions/erc7579/installModule.js +65 -0
- package/_cjs/actions/erc7579/installModule.js.map +1 -0
- package/_cjs/actions/erc7579/installModules.js +65 -0
- package/_cjs/actions/erc7579/installModules.js.map +1 -0
- package/_cjs/actions/erc7579/isModuleInstalled.js +86 -0
- package/_cjs/actions/erc7579/isModuleInstalled.js.map +1 -0
- package/_cjs/actions/erc7579/supportsExecutionMode.js +95 -0
- package/_cjs/actions/erc7579/supportsExecutionMode.js.map +1 -0
- package/_cjs/actions/erc7579/supportsModule.js +84 -0
- package/_cjs/actions/erc7579/supportsModule.js.map +1 -0
- package/_cjs/actions/erc7579/uninstallModule.js +65 -0
- package/_cjs/actions/erc7579/uninstallModule.js.map +1 -0
- package/_cjs/actions/erc7579/uninstallModules.js +65 -0
- package/_cjs/actions/erc7579/uninstallModules.js.map +1 -0
- package/_cjs/actions/erc7579.js +33 -0
- package/_cjs/actions/erc7579.js.map +1 -0
- package/_cjs/actions/index.js +25 -0
- package/_cjs/actions/index.js.map +1 -0
- package/_cjs/actions/pimlico/getUserOperationGasPrice.js +25 -0
- package/_cjs/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
- package/_cjs/actions/pimlico/getUserOperationStatus.js +11 -0
- package/_cjs/actions/pimlico/getUserOperationStatus.js.map +1 -0
- package/_cjs/actions/pimlico/sendCompressedUserOperation.js +16 -0
- package/_cjs/actions/pimlico/sendCompressedUserOperation.js.map +1 -0
- package/_cjs/actions/pimlico/sponsorUserOperation.js +43 -0
- package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -0
- package/_cjs/actions/pimlico/validateSponsorshipPolicies.js +16 -0
- package/_cjs/actions/pimlico/validateSponsorshipPolicies.js.map +1 -0
- package/_cjs/actions/pimlico.js +17 -0
- package/_cjs/actions/pimlico.js.map +1 -0
- package/_cjs/actions/public/getAccountNonce.js +38 -0
- package/_cjs/actions/public/getAccountNonce.js.map +1 -0
- package/_cjs/actions/public/getSenderAddress.js +59 -0
- package/_cjs/actions/public/getSenderAddress.js.map +1 -0
- package/_cjs/actions/smartAccount/deployContract.js +38 -0
- package/_cjs/actions/smartAccount/deployContract.js.map +1 -0
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +195 -0
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -0
- package/_cjs/actions/smartAccount/sendTransaction.js +43 -0
- package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -0
- package/_cjs/actions/smartAccount/sendTransactions.js +45 -0
- package/_cjs/actions/smartAccount/sendTransactions.js.map +1 -0
- package/_cjs/actions/smartAccount/sendUserOperation.js +21 -0
- package/_cjs/actions/smartAccount/sendUserOperation.js.map +1 -0
- package/_cjs/actions/smartAccount/signMessage.js +16 -0
- package/_cjs/actions/smartAccount/signMessage.js.map +1 -0
- package/_cjs/actions/smartAccount/signTypedData.js +34 -0
- package/_cjs/actions/smartAccount/signTypedData.js.map +1 -0
- package/_cjs/actions/smartAccount/writeContract.js +21 -0
- package/_cjs/actions/smartAccount/writeContract.js.map +1 -0
- package/_cjs/actions/smartAccount.js +20 -0
- package/_cjs/actions/smartAccount.js.map +1 -0
- package/_cjs/actions/stackup/accounts.js +12 -0
- package/_cjs/actions/stackup/accounts.js.map +1 -0
- package/_cjs/actions/stackup/sponsorUserOperation.js +32 -0
- package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -0
- package/_cjs/actions/stackup.js +10 -0
- package/_cjs/actions/stackup.js.map +1 -0
- package/_cjs/clients/createBundlerClient.js +17 -0
- package/_cjs/clients/createBundlerClient.js.map +1 -0
- package/_cjs/clients/createSmartAccountClient.js +20 -0
- package/_cjs/clients/createSmartAccountClient.js.map +1 -0
- package/_cjs/clients/decorators/bundler.js +24 -0
- package/_cjs/clients/decorators/bundler.js.map +1 -0
- package/_cjs/clients/decorators/pimlico.js +25 -0
- package/_cjs/clients/decorators/pimlico.js.map +1 -0
- package/_cjs/clients/decorators/smartAccount.js +43 -0
- package/_cjs/clients/decorators/smartAccount.js.map +1 -0
- package/_cjs/clients/decorators/stackup.js +14 -0
- package/_cjs/clients/decorators/stackup.js.map +1 -0
- package/_cjs/clients/pimlico.js +31 -0
- package/_cjs/clients/pimlico.js.map +1 -0
- package/_cjs/clients/stackup.js +20 -0
- package/_cjs/clients/stackup.js.map +1 -0
- package/_cjs/errors/account.js +311 -0
- package/_cjs/errors/account.js.map +1 -0
- package/_cjs/errors/bundler.js +61 -0
- package/_cjs/errors/bundler.js.map +1 -0
- package/_cjs/errors/estimateUserOperationGas.js +53 -0
- package/_cjs/errors/estimateUserOperationGas.js.map +1 -0
- package/_cjs/errors/gas.js +113 -0
- package/_cjs/errors/gas.js.map +1 -0
- package/_cjs/errors/index.js +35 -0
- package/_cjs/errors/index.js.map +1 -0
- package/_cjs/errors/paymaster.js +228 -0
- package/_cjs/errors/paymaster.js.map +1 -0
- package/_cjs/errors/sendUserOperation.js +37 -0
- package/_cjs/errors/sendUserOperation.js.map +1 -0
- package/_cjs/errors/utils.js +18 -0
- package/_cjs/errors/utils.js.map +1 -0
- package/_cjs/experimental/eip7677/actions/getPaymasterData.js +41 -0
- package/_cjs/experimental/eip7677/actions/getPaymasterData.js.map +1 -0
- package/_cjs/experimental/eip7677/actions/getPaymasterStubData.js +51 -0
- package/_cjs/experimental/eip7677/actions/getPaymasterStubData.js.map +1 -0
- package/_cjs/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js +21 -0
- package/_cjs/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js.map +1 -0
- package/_cjs/experimental/eip7677/index.js +10 -0
- package/_cjs/experimental/eip7677/index.js.map +1 -0
- package/_cjs/experimental/eip7677/types/paymaster.js +3 -0
- package/_cjs/experimental/eip7677/types/paymaster.js.map +1 -0
- package/_cjs/experimental/index.js +5 -0
- package/_cjs/experimental/index.js.map +1 -0
- package/_cjs/index.js +37 -0
- package/_cjs/index.js.map +1 -0
- package/_cjs/package.json +1 -0
- package/_cjs/types/bundler.js +3 -0
- package/_cjs/types/bundler.js.map +1 -0
- package/_cjs/types/entrypoint.js +3 -0
- package/_cjs/types/entrypoint.js.map +1 -0
- package/_cjs/types/index.js +3 -0
- package/_cjs/types/index.js.map +1 -0
- package/_cjs/types/pimlico.js +3 -0
- package/_cjs/types/pimlico.js.map +1 -0
- package/_cjs/types/stackup.js +3 -0
- package/_cjs/types/stackup.js.map +1 -0
- package/_cjs/types/userOperation.js +3 -0
- package/_cjs/types/userOperation.js.map +1 -0
- package/_cjs/utils/decodeNonce.js +12 -0
- package/_cjs/utils/decodeNonce.js.map +1 -0
- package/_cjs/utils/deepHexlify.js +31 -0
- package/_cjs/utils/deepHexlify.js.map +1 -0
- package/_cjs/utils/encode7579CallData.js +81 -0
- package/_cjs/utils/encode7579CallData.js.map +1 -0
- package/_cjs/utils/encodeNonce.js +11 -0
- package/_cjs/utils/encodeNonce.js.map +1 -0
- package/_cjs/utils/errors/getBundlerError.js +124 -0
- package/_cjs/utils/errors/getBundlerError.js.map +1 -0
- package/_cjs/utils/errors/getEstimateUserOperationGasError.js +19 -0
- package/_cjs/utils/errors/getEstimateUserOperationGasError.js.map +1 -0
- package/_cjs/utils/errors/getSendUserOperationError.js +19 -0
- package/_cjs/utils/errors/getSendUserOperationError.js.map +1 -0
- package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js +15 -0
- package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -0
- package/_cjs/utils/getEntryPointVersion.js +16 -0
- package/_cjs/utils/getEntryPointVersion.js.map +1 -0
- package/_cjs/utils/getPackedUserOperation.js +106 -0
- package/_cjs/utils/getPackedUserOperation.js.map +1 -0
- package/_cjs/utils/getRequiredPrefund.js +27 -0
- package/_cjs/utils/getRequiredPrefund.js.map +1 -0
- package/_cjs/utils/getUserOperationHash.js +94 -0
- package/_cjs/utils/getUserOperationHash.js.map +1 -0
- package/_cjs/utils/index.js +38 -0
- package/_cjs/utils/index.js.map +1 -0
- package/_cjs/utils/isSmartAccountDeployed.js +15 -0
- package/_cjs/utils/isSmartAccountDeployed.js.map +1 -0
- package/_cjs/utils/observe.js +44 -0
- package/_cjs/utils/observe.js.map +1 -0
- package/_cjs/utils/providerToSmartAccountSigner.js +32 -0
- package/_cjs/utils/providerToSmartAccountSigner.js.map +1 -0
- package/_cjs/utils/signUserOperationHashWithECDSA.js +58 -0
- package/_cjs/utils/signUserOperationHashWithECDSA.js.map +1 -0
- package/_cjs/utils/walletClientToSmartAccountSigner.js +23 -0
- package/_cjs/utils/walletClientToSmartAccountSigner.js.map +1 -0
- package/_cjs/vitest.config.js +31 -0
- package/_cjs/vitest.config.js.map +1 -0
- package/_esm/accounts/biconomy/abi/BiconomySmartAccountAbi.js +105 -0
- package/_esm/accounts/biconomy/abi/BiconomySmartAccountAbi.js.map +1 -0
- package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js +15 -0
- package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -0
- package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js +268 -0
- package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -0
- package/_esm/accounts/index.js +15 -0
- package/_esm/accounts/index.js.map +1 -0
- package/_esm/accounts/kernel/abi/KernelAccountAbi.js +87 -0
- package/_esm/accounts/kernel/abi/KernelAccountAbi.js.map +1 -0
- package/_esm/accounts/kernel/abi/KernelV3AccountAbi.js +107 -0
- package/_esm/accounts/kernel/abi/KernelV3AccountAbi.js.map +1 -0
- package/_esm/accounts/kernel/abi/KernelV3MetaFactoryAbi.js +18 -0
- package/_esm/accounts/kernel/abi/KernelV3MetaFactoryAbi.js.map +1 -0
- package/_esm/accounts/kernel/constants.js +24 -0
- package/_esm/accounts/kernel/constants.js.map +1 -0
- package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js +395 -0
- package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -0
- package/_esm/accounts/kernel/utils/encodeCallData.js +89 -0
- package/_esm/accounts/kernel/utils/encodeCallData.js.map +1 -0
- package/_esm/accounts/kernel/utils/getExecMode.js +11 -0
- package/_esm/accounts/kernel/utils/getExecMode.js.map +1 -0
- package/_esm/accounts/kernel/utils/getNonceKey.js +21 -0
- package/_esm/accounts/kernel/utils/getNonceKey.js.map +1 -0
- package/_esm/accounts/kernel/utils/isKernelV2.js +5 -0
- package/_esm/accounts/kernel/utils/isKernelV2.js.map +1 -0
- package/_esm/accounts/kernel/utils/signMessage.js +25 -0
- package/_esm/accounts/kernel/utils/signMessage.js.map +1 -0
- package/_esm/accounts/kernel/utils/signTypedData.js +39 -0
- package/_esm/accounts/kernel/utils/signTypedData.js.map +1 -0
- package/_esm/accounts/kernel/utils/wrapMessageHash.js +16 -0
- package/_esm/accounts/kernel/utils/wrapMessageHash.js.map +1 -0
- package/_esm/accounts/light/privateKeyToLightSmartAccount.js +15 -0
- package/_esm/accounts/light/privateKeyToLightSmartAccount.js.map +1 -0
- package/_esm/accounts/light/signerToLightSmartAccount.js +258 -0
- package/_esm/accounts/light/signerToLightSmartAccount.js.map +1 -0
- package/_esm/accounts/safe/privateKeyToSafeSmartAccount.js +15 -0
- package/_esm/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -0
- package/_esm/accounts/safe/signerToSafeSmartAccount.js +1014 -0
- package/_esm/accounts/safe/signerToSafeSmartAccount.js.map +1 -0
- package/_esm/accounts/simple/privateKeyToSimpleSmartAccount.js +15 -0
- package/_esm/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -0
- package/_esm/accounts/simple/signerToSimpleSmartAccount.js +261 -0
- package/_esm/accounts/simple/signerToSimpleSmartAccount.js.map +1 -0
- package/_esm/accounts/toSmartAccount.js +80 -0
- package/_esm/accounts/toSmartAccount.js.map +1 -0
- package/_esm/accounts/trust/privateKeyToTrustSmartAccount.js +15 -0
- package/_esm/accounts/trust/privateKeyToTrustSmartAccount.js.map +1 -0
- package/_esm/accounts/trust/signerToTrustSmartAccount.js +138 -0
- package/_esm/accounts/trust/signerToTrustSmartAccount.js.map +1 -0
- package/_esm/accounts/trust/utils/encodeCallData.js +70 -0
- package/_esm/accounts/trust/utils/encodeCallData.js.map +1 -0
- package/_esm/accounts/trust/utils/getAccountAddress.js +15 -0
- package/_esm/accounts/trust/utils/getAccountAddress.js.map +1 -0
- package/_esm/accounts/trust/utils/getDummySignature.js +4 -0
- package/_esm/accounts/trust/utils/getDummySignature.js.map +1 -0
- package/_esm/accounts/trust/utils/getFactoryData.js +42 -0
- package/_esm/accounts/trust/utils/getFactoryData.js.map +1 -0
- package/_esm/accounts/trust/utils/signMessage.js +5 -0
- package/_esm/accounts/trust/utils/signMessage.js.map +1 -0
- package/_esm/accounts/trust/utils/signTransaction.js +5 -0
- package/_esm/accounts/trust/utils/signTransaction.js.map +1 -0
- package/_esm/accounts/trust/utils/signUserOperation.js +15 -0
- package/_esm/accounts/trust/utils/signUserOperation.js.map +1 -0
- package/_esm/accounts/types.js +19 -0
- package/_esm/accounts/types.js.map +1 -0
- package/_esm/actions/bundler/chainId.js +29 -0
- package/_esm/actions/bundler/chainId.js.map +1 -0
- package/_esm/actions/bundler/estimateUserOperationGas.js +72 -0
- package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -0
- package/_esm/actions/bundler/getUserOperationByHash.js +65 -0
- package/_esm/actions/bundler/getUserOperationByHash.js.map +1 -0
- package/_esm/actions/bundler/getUserOperationReceipt.js +70 -0
- package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -0
- package/_esm/actions/bundler/sendUserOperation.js +44 -0
- package/_esm/actions/bundler/sendUserOperation.js.map +1 -0
- package/_esm/actions/bundler/supportedEntryPoints.js +29 -0
- package/_esm/actions/bundler/supportedEntryPoints.js.map +1 -0
- package/_esm/actions/bundler/waitForUserOperationReceipt.js +83 -0
- package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -0
- package/_esm/actions/erc7579/accountId.js +62 -0
- package/_esm/actions/erc7579/accountId.js.map +1 -0
- package/_esm/actions/erc7579/installModule.js +61 -0
- package/_esm/actions/erc7579/installModule.js.map +1 -0
- package/_esm/actions/erc7579/installModules.js +61 -0
- package/_esm/actions/erc7579/installModules.js.map +1 -0
- package/_esm/actions/erc7579/isModuleInstalled.js +82 -0
- package/_esm/actions/erc7579/isModuleInstalled.js.map +1 -0
- package/_esm/actions/erc7579/supportsExecutionMode.js +90 -0
- package/_esm/actions/erc7579/supportsExecutionMode.js.map +1 -0
- package/_esm/actions/erc7579/supportsModule.js +79 -0
- package/_esm/actions/erc7579/supportsModule.js.map +1 -0
- package/_esm/actions/erc7579/uninstallModule.js +61 -0
- package/_esm/actions/erc7579/uninstallModule.js.map +1 -0
- package/_esm/actions/erc7579/uninstallModules.js +61 -0
- package/_esm/actions/erc7579/uninstallModules.js.map +1 -0
- package/_esm/actions/erc7579.js +22 -0
- package/_esm/actions/erc7579.js.map +1 -0
- package/_esm/actions/index.js +12 -0
- package/_esm/actions/index.js.map +1 -0
- package/_esm/actions/pimlico/getUserOperationGasPrice.js +42 -0
- package/_esm/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
- package/_esm/actions/pimlico/getUserOperationStatus.js +30 -0
- package/_esm/actions/pimlico/getUserOperationStatus.js.map +1 -0
- package/_esm/actions/pimlico/sendCompressedUserOperation.js +37 -0
- package/_esm/actions/pimlico/sendCompressedUserOperation.js.map +1 -0
- package/_esm/actions/pimlico/sponsorUserOperation.js +64 -0
- package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -0
- package/_esm/actions/pimlico/validateSponsorshipPolicies.js +47 -0
- package/_esm/actions/pimlico/validateSponsorshipPolicies.js.map +1 -0
- package/_esm/actions/pimlico.js +8 -0
- package/_esm/actions/pimlico.js.map +1 -0
- package/_esm/actions/public/getAccountNonce.js +60 -0
- package/_esm/actions/public/getAccountNonce.js.map +1 -0
- package/_esm/actions/public/getSenderAddress.js +80 -0
- package/_esm/actions/public/getSenderAddress.js.map +1 -0
- package/_esm/actions/smartAccount/deployContract.js +62 -0
- package/_esm/actions/smartAccount/deployContract.js.map +1 -0
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js +195 -0
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -0
- package/_esm/actions/smartAccount/sendTransaction.js +85 -0
- package/_esm/actions/smartAccount/sendTransaction.js.map +1 -0
- package/_esm/actions/smartAccount/sendTransactions.js +87 -0
- package/_esm/actions/smartAccount/sendTransactions.js.map +1 -0
- package/_esm/actions/smartAccount/sendUserOperation.js +17 -0
- package/_esm/actions/smartAccount/sendUserOperation.js.map +1 -0
- package/_esm/actions/smartAccount/signMessage.js +58 -0
- package/_esm/actions/smartAccount/signMessage.js.map +1 -0
- package/_esm/actions/smartAccount/signTypedData.js +128 -0
- package/_esm/actions/smartAccount/signTypedData.js.map +1 -0
- package/_esm/actions/smartAccount/writeContract.js +17 -0
- package/_esm/actions/smartAccount/writeContract.js.map +1 -0
- package/_esm/actions/smartAccount.js +10 -0
- package/_esm/actions/smartAccount.js.map +1 -0
- package/_esm/actions/stackup/accounts.js +30 -0
- package/_esm/actions/stackup/accounts.js.map +1 -0
- package/_esm/actions/stackup/sponsorUserOperation.js +53 -0
- package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -0
- package/_esm/actions/stackup.js +5 -0
- package/_esm/actions/stackup.js.map +1 -0
- package/_esm/clients/createBundlerClient.js +32 -0
- package/_esm/clients/createBundlerClient.js.map +1 -0
- package/_esm/clients/createSmartAccountClient.js +35 -0
- package/_esm/clients/createSmartAccountClient.js.map +1 -0
- package/_esm/clients/decorators/bundler.js +21 -0
- package/_esm/clients/decorators/bundler.js.map +1 -0
- package/_esm/clients/decorators/pimlico.js +64 -0
- package/_esm/clients/decorators/pimlico.js.map +1 -0
- package/_esm/clients/decorators/smartAccount.js +39 -0
- package/_esm/clients/decorators/smartAccount.js.map +1 -0
- package/_esm/clients/decorators/stackup.js +10 -0
- package/_esm/clients/decorators/stackup.js.map +1 -0
- package/_esm/clients/pimlico.js +64 -0
- package/_esm/clients/pimlico.js.map +1 -0
- package/_esm/clients/stackup.js +35 -0
- package/_esm/clients/stackup.js.map +1 -0
- package/_esm/errors/account.js +298 -0
- package/_esm/errors/account.js.map +1 -0
- package/_esm/errors/bundler.js +56 -0
- package/_esm/errors/bundler.js.map +1 -0
- package/_esm/errors/estimateUserOperationGas.js +49 -0
- package/_esm/errors/estimateUserOperationGas.js.map +1 -0
- package/_esm/errors/gas.js +106 -0
- package/_esm/errors/gas.js.map +1 -0
- package/_esm/errors/index.js +8 -0
- package/_esm/errors/index.js.map +1 -0
- package/_esm/errors/paymaster.js +218 -0
- package/_esm/errors/paymaster.js.map +1 -0
- package/_esm/errors/sendUserOperation.js +33 -0
- package/_esm/errors/sendUserOperation.js.map +1 -0
- package/_esm/errors/utils.js +14 -0
- package/_esm/errors/utils.js.map +1 -0
- package/_esm/experimental/eip7677/actions/getPaymasterData.js +37 -0
- package/_esm/experimental/eip7677/actions/getPaymasterData.js.map +1 -0
- package/_esm/experimental/eip7677/actions/getPaymasterStubData.js +47 -0
- package/_esm/experimental/eip7677/actions/getPaymasterStubData.js.map +1 -0
- package/_esm/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js +18 -0
- package/_esm/experimental/eip7677/clients/decorators/paymasterActionsEip7677.js.map +1 -0
- package/_esm/experimental/eip7677/index.js +5 -0
- package/_esm/experimental/eip7677/index.js.map +1 -0
- package/_esm/experimental/eip7677/types/paymaster.js +2 -0
- package/_esm/experimental/eip7677/types/paymaster.js.map +1 -0
- package/_esm/experimental/index.js +2 -0
- package/_esm/experimental/index.js.map +1 -0
- package/_esm/index.js +20 -0
- package/_esm/index.js.map +1 -0
- package/_esm/package.json +1 -0
- package/_esm/types/bundler.js +2 -0
- package/_esm/types/bundler.js.map +1 -0
- package/_esm/types/entrypoint.js +2 -0
- package/_esm/types/entrypoint.js.map +1 -0
- package/_esm/types/index.js +2 -0
- package/_esm/types/index.js.map +1 -0
- package/_esm/types/pimlico.js +2 -0
- package/_esm/types/pimlico.js.map +1 -0
- package/_esm/types/stackup.js +2 -0
- package/_esm/types/stackup.js.map +1 -0
- package/_esm/types/userOperation.js +2 -0
- package/_esm/types/userOperation.js.map +1 -0
- package/_esm/utils/decodeNonce.js +8 -0
- package/_esm/utils/decodeNonce.js.map +1 -0
- package/_esm/utils/deepHexlify.js +30 -0
- package/_esm/utils/deepHexlify.js.map +1 -0
- package/_esm/utils/encode7579CallData.js +77 -0
- package/_esm/utils/encode7579CallData.js.map +1 -0
- package/_esm/utils/encodeNonce.js +7 -0
- package/_esm/utils/encodeNonce.js.map +1 -0
- package/_esm/utils/errors/getBundlerError.js +121 -0
- package/_esm/utils/errors/getBundlerError.js.map +1 -0
- package/_esm/utils/errors/getEstimateUserOperationGasError.js +18 -0
- package/_esm/utils/errors/getEstimateUserOperationGasError.js.map +1 -0
- package/_esm/utils/errors/getSendUserOperationError.js +15 -0
- package/_esm/utils/errors/getSendUserOperationError.js.map +1 -0
- package/_esm/utils/getAddressFromInitCodeOrPaymasterAndData.js +11 -0
- package/_esm/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -0
- package/_esm/utils/getEntryPointVersion.js +11 -0
- package/_esm/utils/getEntryPointVersion.js.map +1 -0
- package/_esm/utils/getPackedUserOperation.js +94 -0
- package/_esm/utils/getPackedUserOperation.js.map +1 -0
- package/_esm/utils/getRequiredPrefund.js +37 -0
- package/_esm/utils/getRequiredPrefund.js.map +1 -0
- package/_esm/utils/getUserOperationHash.js +111 -0
- package/_esm/utils/getUserOperationHash.js.map +1 -0
- package/_esm/utils/index.js +19 -0
- package/_esm/utils/index.js.map +1 -0
- package/_esm/utils/isSmartAccountDeployed.js +11 -0
- package/_esm/utils/isSmartAccountDeployed.js.map +1 -0
- package/_esm/utils/observe.js +47 -0
- package/_esm/utils/observe.js.map +1 -0
- package/_esm/utils/providerToSmartAccountSigner.js +28 -0
- package/_esm/utils/providerToSmartAccountSigner.js.map +1 -0
- package/_esm/utils/signUserOperationHashWithECDSA.js +76 -0
- package/_esm/utils/signUserOperationHashWithECDSA.js.map +1 -0
- package/_esm/utils/walletClientToSmartAccountSigner.js +19 -0
- package/_esm/utils/walletClientToSmartAccountSigner.js.map +1 -0
- package/_esm/vitest.config.js +29 -0
- package/_esm/vitest.config.js.map +1 -0
- package/_types/accounts/biconomy/abi/BiconomySmartAccountAbi.d.ts +59 -0
- package/_types/accounts/biconomy/abi/BiconomySmartAccountAbi.d.ts.map +1 -0
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts +13 -0
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts.map +1 -0
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts +29 -0
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts.map +1 -0
- package/_types/accounts/index.d.ts +15 -0
- package/_types/accounts/index.d.ts.map +1 -0
- package/_types/accounts/kernel/abi/KernelAccountAbi.d.ts +68 -0
- package/_types/accounts/kernel/abi/KernelAccountAbi.d.ts.map +1 -0
- package/_types/accounts/kernel/abi/KernelV3AccountAbi.d.ts +135 -0
- package/_types/accounts/kernel/abi/KernelV3AccountAbi.d.ts.map +1 -0
- package/_types/accounts/kernel/abi/KernelV3MetaFactoryAbi.d.ts +24 -0
- package/_types/accounts/kernel/abi/KernelV3MetaFactoryAbi.d.ts.map +1 -0
- package/_types/accounts/kernel/constants.d.ts +21 -0
- package/_types/accounts/kernel/constants.d.ts.map +1 -0
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts +44 -0
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/encodeCallData.d.ts +13 -0
- package/_types/accounts/kernel/utils/encodeCallData.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/getExecMode.d.ts +7 -0
- package/_types/accounts/kernel/utils/getExecMode.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/getNonceKey.d.ts +5 -0
- package/_types/accounts/kernel/utils/getNonceKey.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/isKernelV2.d.ts +4 -0
- package/_types/accounts/kernel/utils/isKernelV2.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/signMessage.d.ts +4 -0
- package/_types/accounts/kernel/utils/signMessage.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/signTypedData.d.ts +4 -0
- package/_types/accounts/kernel/utils/signTypedData.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/wrapMessageHash.d.ts +11 -0
- package/_types/accounts/kernel/utils/wrapMessageHash.d.ts.map +1 -0
- package/_types/accounts/light/privateKeyToLightSmartAccount.d.ts +14 -0
- package/_types/accounts/light/privateKeyToLightSmartAccount.d.ts.map +1 -0
- package/_types/accounts/light/signerToLightSmartAccount.d.ts +22 -0
- package/_types/accounts/light/signerToLightSmartAccount.d.ts.map +1 -0
- package/_types/accounts/safe/privateKeyToSafeSmartAccount.d.ts +13 -0
- package/_types/accounts/safe/privateKeyToSafeSmartAccount.d.ts.map +1 -0
- package/_types/accounts/safe/signerToSafeSmartAccount.d.ts +61 -0
- package/_types/accounts/safe/signerToSafeSmartAccount.d.ts.map +1 -0
- package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts +13 -0
- package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts.map +1 -0
- package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts +20 -0
- package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts.map +1 -0
- package/_types/accounts/toSmartAccount.d.ts +26 -0
- package/_types/accounts/toSmartAccount.d.ts.map +1 -0
- package/_types/accounts/trust/privateKeyToTrustSmartAccount.d.ts +13 -0
- package/_types/accounts/trust/privateKeyToTrustSmartAccount.d.ts.map +1 -0
- package/_types/accounts/trust/signerToTrustSmartAccount.d.ts +27 -0
- package/_types/accounts/trust/signerToTrustSmartAccount.d.ts.map +1 -0
- package/_types/accounts/trust/utils/encodeCallData.d.ts +12 -0
- package/_types/accounts/trust/utils/encodeCallData.d.ts.map +1 -0
- package/_types/accounts/trust/utils/getAccountAddress.d.ts +10 -0
- package/_types/accounts/trust/utils/getAccountAddress.d.ts.map +1 -0
- package/_types/accounts/trust/utils/getDummySignature.d.ts +3 -0
- package/_types/accounts/trust/utils/getDummySignature.d.ts.map +1 -0
- package/_types/accounts/trust/utils/getFactoryData.d.ts +10 -0
- package/_types/accounts/trust/utils/getFactoryData.d.ts.map +1 -0
- package/_types/accounts/trust/utils/signMessage.d.ts +4 -0
- package/_types/accounts/trust/utils/signMessage.d.ts.map +1 -0
- package/_types/accounts/trust/utils/signTransaction.d.ts +5 -0
- package/_types/accounts/trust/utils/signTransaction.d.ts.map +1 -0
- package/_types/accounts/trust/utils/signUserOperation.d.ts +9 -0
- package/_types/accounts/trust/utils/signUserOperation.d.ts.map +1 -0
- package/_types/accounts/types.d.ts +32 -0
- package/_types/accounts/types.d.ts.map +1 -0
- package/_types/actions/bundler/chainId.d.ts +27 -0
- package/_types/actions/bundler/chainId.d.ts.map +1 -0
- package/_types/actions/bundler/estimateUserOperationGas.d.ts +91 -0
- package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -0
- package/_types/actions/bundler/getUserOperationByHash.d.ts +39 -0
- package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -0
- package/_types/actions/bundler/getUserOperationReceipt.d.ts +58 -0
- package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -0
- package/_types/actions/bundler/sendUserOperation.d.ts +39 -0
- package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -0
- package/_types/actions/bundler/supportedEntryPoints.d.ts +27 -0
- package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -0
- package/_types/actions/bundler/waitForUserOperationReceipt.d.ts +43 -0
- package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -0
- package/_types/actions/erc7579/accountId.d.ts +6 -0
- package/_types/actions/erc7579/accountId.d.ts.map +1 -0
- package/_types/actions/erc7579/installModule.d.ts +16 -0
- package/_types/actions/erc7579/installModule.d.ts.map +1 -0
- package/_types/actions/erc7579/installModules.d.ts +18 -0
- package/_types/actions/erc7579/installModules.d.ts.map +1 -0
- package/_types/actions/erc7579/isModuleInstalled.d.ts +12 -0
- package/_types/actions/erc7579/isModuleInstalled.d.ts.map +1 -0
- package/_types/actions/erc7579/supportsExecutionMode.d.ts +15 -0
- package/_types/actions/erc7579/supportsExecutionMode.d.ts.map +1 -0
- package/_types/actions/erc7579/supportsModule.d.ts +11 -0
- package/_types/actions/erc7579/supportsModule.d.ts.map +1 -0
- package/_types/actions/erc7579/uninstallModule.d.ts +16 -0
- package/_types/actions/erc7579/uninstallModule.d.ts.map +1 -0
- package/_types/actions/erc7579/uninstallModules.d.ts +20 -0
- package/_types/actions/erc7579/uninstallModules.d.ts.map +1 -0
- package/_types/actions/erc7579.d.ts +30 -0
- package/_types/actions/erc7579.d.ts.map +1 -0
- package/_types/actions/index.d.ts +20 -0
- package/_types/actions/index.d.ts.map +1 -0
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +40 -0
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -0
- package/_types/actions/pimlico/getUserOperationStatus.d.ts +32 -0
- package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -0
- package/_types/actions/pimlico/sendCompressedUserOperation.d.ts +35 -0
- package/_types/actions/pimlico/sendCompressedUserOperation.d.ts.map +1 -0
- package/_types/actions/pimlico/sponsorUserOperation.d.ts +52 -0
- package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -0
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts +56 -0
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -0
- package/_types/actions/pimlico.d.ts +10 -0
- package/_types/actions/pimlico.d.ts.map +1 -0
- package/_types/actions/public/getAccountNonce.d.ts +36 -0
- package/_types/actions/public/getAccountNonce.d.ts.map +1 -0
- package/_types/actions/public/getSenderAddress.d.ts +48 -0
- package/_types/actions/public/getSenderAddress.d.ts.map +1 -0
- package/_types/actions/smartAccount/deployContract.d.ts +36 -0
- package/_types/actions/smartAccount/deployContract.d.ts.map +1 -0
- package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +28 -0
- package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -0
- package/_types/actions/smartAccount/sendTransaction.d.ts +54 -0
- package/_types/actions/smartAccount/sendTransaction.d.ts.map +1 -0
- package/_types/actions/smartAccount/sendTransactions.d.ts +64 -0
- package/_types/actions/smartAccount/sendTransactions.d.ts.map +1 -0
- package/_types/actions/smartAccount/sendUserOperation.d.ts +10 -0
- package/_types/actions/smartAccount/sendUserOperation.d.ts.map +1 -0
- package/_types/actions/smartAccount/signMessage.d.ts +51 -0
- package/_types/actions/smartAccount/signMessage.d.ts.map +1 -0
- package/_types/actions/smartAccount/signTypedData.d.ts +105 -0
- package/_types/actions/smartAccount/signTypedData.d.ts.map +1 -0
- package/_types/actions/smartAccount/writeContract.d.ts +58 -0
- package/_types/actions/smartAccount/writeContract.d.ts.map +1 -0
- package/_types/actions/smartAccount.d.ts +10 -0
- package/_types/actions/smartAccount.d.ts.map +1 -0
- package/_types/actions/stackup/accounts.d.ts +30 -0
- package/_types/actions/stackup/accounts.d.ts.map +1 -0
- package/_types/actions/stackup/sponsorUserOperation.d.ts +38 -0
- package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -0
- package/_types/actions/stackup.d.ts +7 -0
- package/_types/actions/stackup.d.ts.map +1 -0
- package/_types/clients/createBundlerClient.d.ts +28 -0
- package/_types/clients/createBundlerClient.d.ts.map +1 -0
- package/_types/clients/createSmartAccountClient.d.ts +40 -0
- package/_types/clients/createSmartAccountClient.d.ts.map +1 -0
- package/_types/clients/decorators/bundler.d.ts +175 -0
- package/_types/clients/decorators/bundler.d.ts.map +1 -0
- package/_types/clients/decorators/pimlico.d.ts +142 -0
- package/_types/clients/decorators/pimlico.d.ts.map +1 -0
- package/_types/clients/decorators/smartAccount.d.ts +330 -0
- package/_types/clients/decorators/smartAccount.d.ts.map +1 -0
- package/_types/clients/decorators/stackup.d.ts +55 -0
- package/_types/clients/decorators/stackup.d.ts.map +1 -0
- package/_types/clients/pimlico.d.ts +52 -0
- package/_types/clients/pimlico.d.ts.map +1 -0
- package/_types/clients/stackup.d.ts +29 -0
- package/_types/clients/stackup.d.ts.map +1 -0
- package/_types/errors/account.d.ts +121 -0
- package/_types/errors/account.d.ts.map +1 -0
- package/_types/errors/bundler.d.ts +24 -0
- package/_types/errors/bundler.d.ts.map +1 -0
- package/_types/errors/estimateUserOperationGas.d.ts +14 -0
- package/_types/errors/estimateUserOperationGas.d.ts.map +1 -0
- package/_types/errors/gas.d.ts +47 -0
- package/_types/errors/gas.d.ts.map +1 -0
- package/_types/errors/index.d.ts +8 -0
- package/_types/errors/index.d.ts.map +1 -0
- package/_types/errors/paymaster.d.ts +85 -0
- package/_types/errors/paymaster.d.ts.map +1 -0
- package/_types/errors/sendUserOperation.d.ts +14 -0
- package/_types/errors/sendUserOperation.d.ts.map +1 -0
- package/_types/errors/utils.d.ts +5 -0
- package/_types/errors/utils.d.ts.map +1 -0
- package/_types/experimental/eip7677/actions/getPaymasterData.d.ts +51 -0
- package/_types/experimental/eip7677/actions/getPaymasterData.d.ts.map +1 -0
- package/_types/experimental/eip7677/actions/getPaymasterStubData.d.ts +63 -0
- package/_types/experimental/eip7677/actions/getPaymasterStubData.d.ts.map +1 -0
- package/_types/experimental/eip7677/clients/decorators/paymasterActionsEip7677.d.ts +11 -0
- package/_types/experimental/eip7677/clients/decorators/paymasterActionsEip7677.d.ts.map +1 -0
- package/_types/experimental/eip7677/index.d.ts +6 -0
- package/_types/experimental/eip7677/index.d.ts.map +1 -0
- package/_types/experimental/eip7677/types/paymaster.d.ts +52 -0
- package/_types/experimental/eip7677/types/paymaster.d.ts.map +1 -0
- package/_types/experimental/index.d.ts +2 -0
- package/_types/experimental/index.d.ts.map +1 -0
- package/_types/index.d.ts +33 -0
- package/_types/index.d.ts.map +1 -0
- package/_types/types/bundler.d.ts +110 -0
- package/_types/types/bundler.d.ts.map +1 -0
- package/_types/types/entrypoint.d.ts +6 -0
- package/_types/types/entrypoint.d.ts.map +1 -0
- package/_types/types/index.d.ts +27 -0
- package/_types/types/index.d.ts.map +1 -0
- package/_types/types/pimlico.d.ts +93 -0
- package/_types/types/pimlico.d.ts.map +1 -0
- package/_types/types/stackup.d.ts +49 -0
- package/_types/types/stackup.d.ts.map +1 -0
- package/_types/types/userOperation.d.ts +93 -0
- package/_types/types/userOperation.d.ts.map +1 -0
- package/_types/utils/decodeNonce.d.ts +5 -0
- package/_types/utils/decodeNonce.d.ts.map +1 -0
- package/_types/utils/deepHexlify.d.ts +6 -0
- package/_types/utils/deepHexlify.d.ts.map +1 -0
- package/_types/utils/encode7579CallData.d.ts +16 -0
- package/_types/utils/encode7579CallData.d.ts.map +1 -0
- package/_types/utils/encodeNonce.d.ts +5 -0
- package/_types/utils/encodeNonce.d.ts.map +1 -0
- package/_types/utils/errors/getBundlerError.d.ts +11 -0
- package/_types/utils/errors/getBundlerError.d.ts.map +1 -0
- package/_types/utils/errors/getEstimateUserOperationGasError.d.ts +10 -0
- package/_types/utils/errors/getEstimateUserOperationGasError.d.ts.map +1 -0
- package/_types/utils/errors/getSendUserOperationError.d.ts +5 -0
- package/_types/utils/errors/getSendUserOperationError.d.ts.map +1 -0
- package/_types/utils/getAddressFromInitCodeOrPaymasterAndData.d.ts +3 -0
- package/_types/utils/getAddressFromInitCodeOrPaymasterAndData.d.ts.map +1 -0
- package/_types/utils/getEntryPointVersion.d.ts +8 -0
- package/_types/utils/getEntryPointVersion.d.ts.map +1 -0
- package/_types/utils/getPackedUserOperation.d.ts +39 -0
- package/_types/utils/getPackedUserOperation.d.ts.map +1 -0
- package/_types/utils/getRequiredPrefund.d.ts +21 -0
- package/_types/utils/getRequiredPrefund.d.ts.map +1 -0
- package/_types/utils/getUserOperationHash.d.ts +31 -0
- package/_types/utils/getUserOperationHash.d.ts.map +1 -0
- package/_types/utils/index.d.ts +16 -0
- package/_types/utils/index.d.ts.map +1 -0
- package/_types/utils/isSmartAccountDeployed.d.ts +3 -0
- package/_types/utils/isSmartAccountDeployed.d.ts.map +1 -0
- package/_types/utils/observe.d.ts +17 -0
- package/_types/utils/observe.d.ts.map +1 -0
- package/_types/utils/providerToSmartAccountSigner.d.ts +5 -0
- package/_types/utils/providerToSmartAccountSigner.d.ts.map +1 -0
- package/_types/utils/signUserOperationHashWithECDSA.d.ts +45 -0
- package/_types/utils/signUserOperationHashWithECDSA.d.ts.map +1 -0
- package/_types/utils/walletClientToSmartAccountSigner.d.ts +4 -0
- package/_types/utils/walletClientToSmartAccountSigner.d.ts.map +1 -0
- package/_types/vitest.config.d.ts +3 -0
- package/_types/vitest.config.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidPaymasterAndDataError = exports.PaymasterPostOpRevertedError = exports.PaymasterDataRejectedError = exports.PaymasterValidationRevertedError = exports.PaymasterValidityPeriodError = exports.PaymasterDepositTooLowError = exports.PaymasterNotDeployedError = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const utils_1 = require("../utils/index.js");
|
|
6
|
+
class PaymasterNotDeployedError extends viem_1.BaseError {
|
|
7
|
+
constructor({ cause, paymasterAndData, docsPath } = {}) {
|
|
8
|
+
const paymaster = paymasterAndData
|
|
9
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
10
|
+
: "0x";
|
|
11
|
+
super([
|
|
12
|
+
`Paymaster ${paymaster} is not deployed.`,
|
|
13
|
+
"",
|
|
14
|
+
"Possible solutions:",
|
|
15
|
+
"• Verify that the paymasterAndData field is correct, and that the first 20 bytes are the address of the paymaster contract you intend to use.",
|
|
16
|
+
"• Verify that the paymaster contract is deployed on the network you are using.",
|
|
17
|
+
"",
|
|
18
|
+
docsPath ? `Docs: ${docsPath}` : ""
|
|
19
|
+
].join("\n"), {
|
|
20
|
+
cause
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "name", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: "PaymasterNotDeployedError"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.PaymasterNotDeployedError = PaymasterNotDeployedError;
|
|
31
|
+
Object.defineProperty(PaymasterNotDeployedError, "message", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: /aa30/
|
|
36
|
+
});
|
|
37
|
+
class PaymasterDepositTooLowError extends viem_1.BaseError {
|
|
38
|
+
constructor({ cause, paymasterAndData, docsPath } = {}) {
|
|
39
|
+
const paymaster = paymasterAndData
|
|
40
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
41
|
+
: "0x";
|
|
42
|
+
super([
|
|
43
|
+
`Paymaster ${paymaster} contract does not have enough funds deposited into the EntryPoint contract to cover the required funds for the user operation.`,
|
|
44
|
+
"",
|
|
45
|
+
"Possible solutions:",
|
|
46
|
+
"• If you are using your own paymaster contract, deposit more funds into the EntryPoint contract through the deposit() function of the paymaster contract.",
|
|
47
|
+
"• Verify that the paymasterAndData field is correct, and that the first 20 bytes are the address of the paymaster contract you intend to useVerify that the paymasterAndData field is correct, and that the first 20 bytes are the address of the paymaster contract you intend to use.",
|
|
48
|
+
"• If you are using a paymaster service, reach out to them.",
|
|
49
|
+
"",
|
|
50
|
+
docsPath ? `Docs: ${docsPath}` : ""
|
|
51
|
+
].join("\n"), {
|
|
52
|
+
cause
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(this, "name", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
configurable: true,
|
|
57
|
+
writable: true,
|
|
58
|
+
value: "PaymasterDepositTooLowError"
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.PaymasterDepositTooLowError = PaymasterDepositTooLowError;
|
|
63
|
+
Object.defineProperty(PaymasterDepositTooLowError, "message", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
configurable: true,
|
|
66
|
+
writable: true,
|
|
67
|
+
value: /aa31/
|
|
68
|
+
});
|
|
69
|
+
class PaymasterValidityPeriodError extends viem_1.BaseError {
|
|
70
|
+
constructor({ cause, paymasterAndData, docsPath }) {
|
|
71
|
+
const paymaster = paymasterAndData
|
|
72
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
73
|
+
: "0x";
|
|
74
|
+
super([
|
|
75
|
+
`Paymaster ${paymaster}'s data used in the paymasterAndData field of the user operation is not valid, because it is outside of the time range it specified.`,
|
|
76
|
+
"",
|
|
77
|
+
"Possible reasons:",
|
|
78
|
+
"• This error occurs when the block.timestamp falls after the validUntil timestamp, or before the validAfter timestamp.",
|
|
79
|
+
"",
|
|
80
|
+
"Possible solutions:",
|
|
81
|
+
"• If you are using your own paymaster contract and using time-based signatures, verify that the validAfter and validUntil fields are set correctly and that the user operation is sent within the specified range.",
|
|
82
|
+
"• If you are using your own paymaster contract and not looking to use time-based signatures, verify that the validAfter and validUntil fields are set to 0.",
|
|
83
|
+
"• If you are using a service, contact your service provider for their paymaster's validity.",
|
|
84
|
+
"",
|
|
85
|
+
docsPath ? `Docs: ${docsPath}` : ""
|
|
86
|
+
].join("\n"), {
|
|
87
|
+
cause
|
|
88
|
+
});
|
|
89
|
+
Object.defineProperty(this, "name", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
value: "PaymasterValidityPeriodError"
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.PaymasterValidityPeriodError = PaymasterValidityPeriodError;
|
|
98
|
+
Object.defineProperty(PaymasterValidityPeriodError, "message", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
configurable: true,
|
|
101
|
+
writable: true,
|
|
102
|
+
value: /aa32/
|
|
103
|
+
});
|
|
104
|
+
class PaymasterValidationRevertedError extends viem_1.BaseError {
|
|
105
|
+
constructor({ cause, paymasterAndData, docsPath }) {
|
|
106
|
+
const paymaster = paymasterAndData
|
|
107
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
108
|
+
: "0x";
|
|
109
|
+
super([
|
|
110
|
+
`The validatePaymasterUserOp function of the paymaster ${paymaster} either reverted or ran out of gas.`,
|
|
111
|
+
"",
|
|
112
|
+
"Possible solutions:",
|
|
113
|
+
"• Verify that the verificationGasLimit is high enough to cover the validatePaymasterUserOp function's gas costs.",
|
|
114
|
+
"• If you are using your own paymaster contract, verify that the validatePaymasterUserOp function is implemented with the correct logic, and that the user operation is supposed to be valid.",
|
|
115
|
+
"• If you are using a paymaster service, and the user operation is well formed with a high enough verificationGasLimit, reach out to them.",
|
|
116
|
+
"• If you are not looking to use a paymaster to cover the gas fees, verify that the paymasterAndData field is not set.",
|
|
117
|
+
"",
|
|
118
|
+
docsPath ? `Docs: ${docsPath}` : ""
|
|
119
|
+
].join("\n"), {
|
|
120
|
+
cause
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(this, "name", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
configurable: true,
|
|
125
|
+
writable: true,
|
|
126
|
+
value: "PaymasterValidationRevertedError"
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.PaymasterValidationRevertedError = PaymasterValidationRevertedError;
|
|
131
|
+
Object.defineProperty(PaymasterValidationRevertedError, "message", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
configurable: true,
|
|
134
|
+
writable: true,
|
|
135
|
+
value: /aa33/
|
|
136
|
+
});
|
|
137
|
+
class PaymasterDataRejectedError extends viem_1.BaseError {
|
|
138
|
+
constructor({ cause, paymasterAndData, docsPath }) {
|
|
139
|
+
const paymaster = paymasterAndData
|
|
140
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
141
|
+
: "0x";
|
|
142
|
+
super([
|
|
143
|
+
`The validatePaymasterUserOp function of the paymaster ${paymaster} rejected paymasterAndData.`,
|
|
144
|
+
"",
|
|
145
|
+
"Possible solutions:",
|
|
146
|
+
"• If you are using your own paymaster contract, verify that the user operation was correctly signed according to your implementation, and that the paymaster signature was correctly encoded in the paymasterAndData field of the user operation.",
|
|
147
|
+
"• If you are using a paymaster service, make sure you do not modify any of the fields of the user operation after the paymaster signs over it (except the signature field).",
|
|
148
|
+
"• If you are using a paymaster service and you have not modified any of the fields except the signature but you are still getting this error, reach out to them.",
|
|
149
|
+
"",
|
|
150
|
+
docsPath ? `Docs: ${docsPath}` : ""
|
|
151
|
+
].join("\n"), {
|
|
152
|
+
cause
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(this, "name", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
configurable: true,
|
|
157
|
+
writable: true,
|
|
158
|
+
value: "PaymasterDataRejectedError"
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
exports.PaymasterDataRejectedError = PaymasterDataRejectedError;
|
|
163
|
+
Object.defineProperty(PaymasterDataRejectedError, "message", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
configurable: true,
|
|
166
|
+
writable: true,
|
|
167
|
+
value: /aa34/
|
|
168
|
+
});
|
|
169
|
+
class PaymasterPostOpRevertedError extends viem_1.BaseError {
|
|
170
|
+
constructor({ cause, paymasterAndData, docsPath }) {
|
|
171
|
+
const paymaster = paymasterAndData
|
|
172
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
173
|
+
: "0x";
|
|
174
|
+
super([
|
|
175
|
+
`The postOp function of the paymaster ${paymaster} reverted.`,
|
|
176
|
+
"",
|
|
177
|
+
"Possible solutions:",
|
|
178
|
+
"• If you are using your own paymaster contract, verify that that you have correctly implemented the postOp function (if you are using one). If you do not intent to make use of the postOp function, make sure you do not set the context parameter in the paymaster's validatePaymasterUserOp function.",
|
|
179
|
+
"• If you are using a paymaster service and you see this error, reach out to them.",
|
|
180
|
+
"",
|
|
181
|
+
docsPath ? `Docs: ${docsPath}` : ""
|
|
182
|
+
].join("\n"), {
|
|
183
|
+
cause
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(this, "name", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
configurable: true,
|
|
188
|
+
writable: true,
|
|
189
|
+
value: "PaymasterPostOpRevertedError"
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.PaymasterPostOpRevertedError = PaymasterPostOpRevertedError;
|
|
194
|
+
Object.defineProperty(PaymasterPostOpRevertedError, "message", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
configurable: true,
|
|
197
|
+
writable: true,
|
|
198
|
+
value: /aa50/
|
|
199
|
+
});
|
|
200
|
+
class InvalidPaymasterAndDataError extends viem_1.BaseError {
|
|
201
|
+
constructor({ cause, docsPath }) {
|
|
202
|
+
super([
|
|
203
|
+
"The paymasterAndData field of the user operation is invalid.",
|
|
204
|
+
"",
|
|
205
|
+
"Possible solutions:",
|
|
206
|
+
"• Make sure you have either not set a value for the paymasterAndData, or that it is at least 20 bytes long.",
|
|
207
|
+
"• If you are using a paymaster service, reach out to them.",
|
|
208
|
+
"",
|
|
209
|
+
docsPath ? `Docs: ${docsPath}` : ""
|
|
210
|
+
].join("\n"), {
|
|
211
|
+
cause
|
|
212
|
+
});
|
|
213
|
+
Object.defineProperty(this, "name", {
|
|
214
|
+
enumerable: true,
|
|
215
|
+
configurable: true,
|
|
216
|
+
writable: true,
|
|
217
|
+
value: "InvalidPaymasterAndDataError"
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
exports.InvalidPaymasterAndDataError = InvalidPaymasterAndDataError;
|
|
222
|
+
Object.defineProperty(InvalidPaymasterAndDataError, "message", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
configurable: true,
|
|
225
|
+
writable: true,
|
|
226
|
+
value: /aa93/
|
|
227
|
+
});
|
|
228
|
+
//# sourceMappingURL=paymaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymaster.js","sourceRoot":"","sources":["../../err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AqB;YACrB,6GAA6G;YAC7G,4DAA4D;YAC5D,EAAE;YACF,QAAQ,CAAC,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE;SACtC,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACI,KAAK;SACR,CACJ,CAAA;QArBI;;;;mBAAO,8BAA8B;WAAA;IAsB9C,CAAC;;AAxBL,oEAyBC;AAxBU;;;;WAAU,MAAM;EAAT,CAAS"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendUserOperationError = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const utils_1 = require("./utils.js");
|
|
6
|
+
class SendUserOperationError extends viem_1.BaseError {
|
|
7
|
+
constructor(cause, { userOperation, entryPoint, docsPath }) {
|
|
8
|
+
const prettyArgs = (0, utils_1.prettyPrint)({
|
|
9
|
+
...userOperation,
|
|
10
|
+
entryPoint
|
|
11
|
+
});
|
|
12
|
+
super(cause.shortMessage, {
|
|
13
|
+
cause,
|
|
14
|
+
docsPath,
|
|
15
|
+
metaMessages: [
|
|
16
|
+
...(cause.metaMessages ? [...cause.metaMessages, " "] : []),
|
|
17
|
+
"sendUserOperation Arguments:",
|
|
18
|
+
prettyArgs
|
|
19
|
+
].filter(Boolean)
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(this, "cause", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: void 0
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(this, "name", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: "SendUserOperationError"
|
|
32
|
+
});
|
|
33
|
+
this.cause = cause;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.SendUserOperationError = SendUserOperationError;
|
|
37
|
+
//# sourceMappingURL=sendUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../errors/sendUserOperation.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAGhC,mCAAqC;AAMrC,MAAa,sBAEX,SAAQ,gBAAS;IAKf,YACI,KAAgB,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EAGX;QAED,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC;YAC3B,GAAG,aAAa;YAChB,UAAU;SACb,CAAC,CAAA;QAEF,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE;YACtB,KAAK;YACL,QAAQ;YACR,YAAY,EAAE;gBACV,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3D,8BAA8B;gBAC9B,UAAU;aACb,CAAC,MAAM,CAAC,OAAO,CAAa;SAChC,CAAC,CAAA;QA3BG;;;;;WAAgB;QAEhB;;;;mBAAO,wBAAwB;WAAA;QA0BpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACtB,CAAC;CACJ;AAjCD,wDAiCC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prettyPrint = void 0;
|
|
4
|
+
function prettyPrint(args) {
|
|
5
|
+
const entries = Object.entries(args)
|
|
6
|
+
.map(([key, value]) => {
|
|
7
|
+
if (value === undefined || value === false)
|
|
8
|
+
return null;
|
|
9
|
+
return [key, value];
|
|
10
|
+
})
|
|
11
|
+
.filter(Boolean);
|
|
12
|
+
const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
|
|
13
|
+
return entries
|
|
14
|
+
.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`)
|
|
15
|
+
.join("\n");
|
|
16
|
+
}
|
|
17
|
+
exports.prettyPrint = prettyPrint;
|
|
18
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../errors/utils.ts"],"names":[],"mappings":";;;AAEA,SAAgB,WAAW,CACvB,IAA4E;IAE5E,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;SAC/B,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAClB,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK;YAAE,OAAO,IAAI,CAAA;QACvD,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACvB,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAuB,CAAA;IAC1C,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAC5B,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,EACzC,CAAC,CACJ,CAAA;IACD,OAAO,OAAO;SACT,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;SACvE,IAAI,CAAC,IAAI,CAAC,CAAA;AACnB,CAAC;AAhBD,kCAgBC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPaymasterData = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const utils_1 = require("../../../utils/index.js");
|
|
6
|
+
async function getPaymasterData(client, { userOperation, entryPoint, context, chain }) {
|
|
7
|
+
const chainId = chain?.id ?? client.chain?.id;
|
|
8
|
+
if (!chainId) {
|
|
9
|
+
throw new viem_1.ChainNotFoundError();
|
|
10
|
+
}
|
|
11
|
+
const params = context
|
|
12
|
+
? [
|
|
13
|
+
(0, utils_1.deepHexlify)(userOperation),
|
|
14
|
+
entryPoint,
|
|
15
|
+
(0, viem_1.toHex)(chainId),
|
|
16
|
+
context
|
|
17
|
+
]
|
|
18
|
+
: [
|
|
19
|
+
(0, utils_1.deepHexlify)(userOperation),
|
|
20
|
+
entryPoint,
|
|
21
|
+
(0, viem_1.toHex)(chainId)
|
|
22
|
+
];
|
|
23
|
+
const response = await client.request({
|
|
24
|
+
method: "pm_getPaymasterData",
|
|
25
|
+
params
|
|
26
|
+
});
|
|
27
|
+
const entryPointVersion = (0, utils_1.getEntryPointVersion)(entryPoint);
|
|
28
|
+
if (entryPointVersion === "v0.6") {
|
|
29
|
+
const responseV06 = response;
|
|
30
|
+
return {
|
|
31
|
+
paymasterAndData: responseV06.paymasterAndData
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const responseV07 = response;
|
|
35
|
+
return {
|
|
36
|
+
paymaster: responseV07.paymaster,
|
|
37
|
+
paymasterData: responseV07.paymasterData
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.getPaymasterData = getPaymasterData;
|
|
41
|
+
//# sourceMappingURL=getPaymasterData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPaymasterData.js","sourceRoot":"","sources":["../../../../experimental/eip7677/actions/getPaymasterData.ts"],"names":[],"mappings":";;;AAAA,+BASa;AAQb,0CAAkE;AA+D3D,KAAK,UAAU,gBAAgB,CAMlC,MAKC,EACD,EACI,aAAa,EACb,UAAU,EACV,OAAO,EACP,KAAK,EACyD;IAElE,MAAM,OAAO,GAAG,KAAK,EAAE,EAAE,IAAI,MAAM,CAAC,KAAK,EAAE,EAAE,CAAA;IAE7C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,MAAM,IAAI,yBAAkB,EAAE,CAAA;IAClC,CAAC;IAED,MAAM,MAAM,GAWF,OAAO;QACb,CAAC,CAAC;YACI,IAAA,mBAAW,EAAC,aAAa,CAExB;YACD,UAAU;YACV,IAAA,YAAK,EAAC,OAAO,CAAC;YACd,OAAO;SACV;QACH,CAAC,CAAC;YACI,IAAA,mBAAW,EAAC,aAAa,CAExB;YACD,UAAU;YACV,IAAA,YAAK,EAAC,OAAO,CAAC;SACjB,CAAA;IAEP,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,qBAAqB;QAC7B,MAAM;KACT,CAAC,CAAA;IAEF,MAAM,iBAAiB,GAAG,IAAA,4BAAoB,EAAC,UAAU,CAAC,CAAA;IAE1D,IAAI,iBAAiB,KAAK,MAAM,EAAE,CAAC;QAC/B,MAAM,WAAW,GACb,QAAsE,CAAA;QAE1E,OAAO;YACH,gBAAgB,EAAE,WAAW,CAAC,gBAAgB;SACN,CAAA;IAChD,CAAC;IAED,MAAM,WAAW,GACb,QAAsE,CAAA;IAE1E,OAAO;QACH,SAAS,EAAE,WAAW,CAAC,SAAS;QAChC,aAAa,EAAE,WAAW,CAAC,aAAa;KACA,CAAA;AAChD,CAAC;AA5ED,4CA4EC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPaymasterStubData = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const utils_1 = require("../../../utils/index.js");
|
|
6
|
+
async function getPaymasterStubData(client, { userOperation, entryPoint, context, chain }) {
|
|
7
|
+
const chainId = chain?.id ?? client.chain?.id;
|
|
8
|
+
if (!chainId) {
|
|
9
|
+
throw new viem_1.ChainNotFoundError();
|
|
10
|
+
}
|
|
11
|
+
const params = context
|
|
12
|
+
? [
|
|
13
|
+
(0, utils_1.deepHexlify)(userOperation),
|
|
14
|
+
entryPoint,
|
|
15
|
+
(0, viem_1.toHex)(chainId),
|
|
16
|
+
context
|
|
17
|
+
]
|
|
18
|
+
: [
|
|
19
|
+
(0, utils_1.deepHexlify)(userOperation),
|
|
20
|
+
entryPoint,
|
|
21
|
+
(0, viem_1.toHex)(chainId)
|
|
22
|
+
];
|
|
23
|
+
const response = await client.request({
|
|
24
|
+
method: "pm_getPaymasterStubData",
|
|
25
|
+
params
|
|
26
|
+
});
|
|
27
|
+
const entryPointVersion = (0, utils_1.getEntryPointVersion)(entryPoint);
|
|
28
|
+
if (entryPointVersion === "v0.6") {
|
|
29
|
+
const responseV06 = response;
|
|
30
|
+
return {
|
|
31
|
+
paymasterAndData: responseV06.paymasterAndData,
|
|
32
|
+
sponsor: responseV06.sponsor,
|
|
33
|
+
isFinal: responseV06.isFinal
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
const responseV07 = response;
|
|
37
|
+
return {
|
|
38
|
+
paymaster: responseV07.paymaster,
|
|
39
|
+
paymasterData: responseV07.paymasterData,
|
|
40
|
+
paymasterVerificationGasLimit: responseV07.paymasterVerificationGasLimit
|
|
41
|
+
? BigInt(responseV07.paymasterVerificationGasLimit)
|
|
42
|
+
: undefined,
|
|
43
|
+
paymasterPostOpGasLimit: responseV07.paymasterPostOpGasLimit
|
|
44
|
+
? BigInt(responseV07.paymasterPostOpGasLimit)
|
|
45
|
+
: undefined,
|
|
46
|
+
sponsor: responseV07.sponsor,
|
|
47
|
+
isFinal: responseV07.isFinal
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.getPaymasterStubData = getPaymasterStubData;
|
|
51
|
+
//# sourceMappingURL=getPaymasterStubData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPaymasterStubData.js","sourceRoot":"","sources":["../../../../experimental/eip7677/actions/getPaymasterStubData.ts"],"names":[],"mappings":";;;AAAA,+BASa;AAQb,0CAAkE;AAqE3D,KAAK,UAAU,oBAAoB,CAMtC,MAKC,EACD,EACI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,CAAC,SAAS;QACf,OAAO,EAAE,WAAW,CAAC,OAAO;QAC5B,OAAO,EAAE,WAAW,CAAC,OAAO;KACgB,CAAA;AACpD,CAAC;AAtFD,oDAsFC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paymasterActionsEip7677 = void 0;
|
|
4
|
+
const getPaymasterData_1 = require("../../actions/getPaymasterData.js");
|
|
5
|
+
const getPaymasterStubData_1 = require("../../actions/getPaymasterStubData.js");
|
|
6
|
+
const paymasterActionsEip7677 = (entryPoint) => (client) => ({
|
|
7
|
+
getPaymasterData: (args) => (0, getPaymasterData_1.getPaymasterData)(client, {
|
|
8
|
+
userOperation: args.userOperation,
|
|
9
|
+
context: args.context,
|
|
10
|
+
chain: args.chain,
|
|
11
|
+
entryPoint
|
|
12
|
+
}),
|
|
13
|
+
getPaymasterStubData: async (args) => (0, getPaymasterStubData_1.getPaymasterStubData)(client, {
|
|
14
|
+
userOperation: args.userOperation,
|
|
15
|
+
context: args.context,
|
|
16
|
+
chain: args.chain,
|
|
17
|
+
entryPoint
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
exports.paymasterActionsEip7677 = paymasterActionsEip7677;
|
|
21
|
+
//# sourceMappingURL=paymasterActionsEip7677.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymasterActionsEip7677.js","sourceRoot":"","sources":["../../../../../experimental/eip7677/clients/decorators/paymasterActionsEip7677.ts"],"names":[],"mappings":";;;AAEA,qEAIuC;AACvC,6EAI2C;AAyB3C,MAAM,uBAAuB,GACzB,CAAiC,UAAuB,EAAE,EAAE,CAC5D,CAII,MAAkC,EACU,EAAE,CAAC,CAAC;IAChD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CACvB,IAAA,mCAAgB,EACZ,MAKC,EACD;QACI,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,UAAU;KACb,CACJ;IACL,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CACjC,IAAA,2CAAoB,EAChB,MAKC,EACD;QACI,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,UAAU;KACb,CACJ;CACR,CAAC,CAAA;AAEG,0DAAuB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paymasterActionsEip7677 = exports.getPaymasterData = exports.getPaymasterStubData = void 0;
|
|
4
|
+
const getPaymasterData_1 = require("./actions/getPaymasterData.js");
|
|
5
|
+
Object.defineProperty(exports, "getPaymasterData", { enumerable: true, get: function () { return getPaymasterData_1.getPaymasterData; } });
|
|
6
|
+
const getPaymasterStubData_1 = require("./actions/getPaymasterStubData.js");
|
|
7
|
+
Object.defineProperty(exports, "getPaymasterStubData", { enumerable: true, get: function () { return getPaymasterStubData_1.getPaymasterStubData; } });
|
|
8
|
+
const paymasterActionsEip7677_1 = require("./clients/decorators/paymasterActionsEip7677.js");
|
|
9
|
+
Object.defineProperty(exports, "paymasterActionsEip7677", { enumerable: true, get: function () { return paymasterActionsEip7677_1.paymasterActionsEip7677; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../experimental/eip7677/index.ts"],"names":[],"mappings":";;;AAAA,iEAImC;AAkB/B,iGAnBA,mCAAgB,OAmBA;AAjBpB,yEAIuC;AAUnC,qGAXA,2CAAoB,OAWA;AATxB,0FAGqD;AAWjD,wGAZA,iDAAuB,OAYA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymaster.js","sourceRoot":"","sources":["../../../../experimental/eip7677/types/paymaster.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB"}
|
package/_cjs/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUserOperationHash = exports.smartAccountActions = exports.createSmartAccountClient = exports.WaitForUserOperationReceiptTimeoutError = exports.bundlerActions = exports.createBundlerClient = exports.waitForUserOperationReceipt = exports.getAccountNonce = exports.getSenderAddress = exports.getUserOperationReceipt = exports.getUserOperationByHash = exports.chainId = exports.supportedEntryPoints = exports.estimateUserOperationGas = exports.sendUserOperation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const getSenderAddress_1 = require("./actions/public/getSenderAddress.js");
|
|
6
|
+
Object.defineProperty(exports, "getSenderAddress", { enumerable: true, get: function () { return getSenderAddress_1.getSenderAddress; } });
|
|
7
|
+
const chainId_1 = require("./actions/bundler/chainId.js");
|
|
8
|
+
Object.defineProperty(exports, "chainId", { enumerable: true, get: function () { return chainId_1.chainId; } });
|
|
9
|
+
const estimateUserOperationGas_1 = require("./actions/bundler/estimateUserOperationGas.js");
|
|
10
|
+
Object.defineProperty(exports, "estimateUserOperationGas", { enumerable: true, get: function () { return estimateUserOperationGas_1.estimateUserOperationGas; } });
|
|
11
|
+
const getUserOperationByHash_1 = require("./actions/bundler/getUserOperationByHash.js");
|
|
12
|
+
Object.defineProperty(exports, "getUserOperationByHash", { enumerable: true, get: function () { return getUserOperationByHash_1.getUserOperationByHash; } });
|
|
13
|
+
const getUserOperationReceipt_1 = require("./actions/bundler/getUserOperationReceipt.js");
|
|
14
|
+
Object.defineProperty(exports, "getUserOperationReceipt", { enumerable: true, get: function () { return getUserOperationReceipt_1.getUserOperationReceipt; } });
|
|
15
|
+
const sendUserOperation_1 = require("./actions/bundler/sendUserOperation.js");
|
|
16
|
+
Object.defineProperty(exports, "sendUserOperation", { enumerable: true, get: function () { return sendUserOperation_1.sendUserOperation; } });
|
|
17
|
+
const supportedEntryPoints_1 = require("./actions/bundler/supportedEntryPoints.js");
|
|
18
|
+
Object.defineProperty(exports, "supportedEntryPoints", { enumerable: true, get: function () { return supportedEntryPoints_1.supportedEntryPoints; } });
|
|
19
|
+
const waitForUserOperationReceipt_1 = require("./actions/bundler/waitForUserOperationReceipt.js");
|
|
20
|
+
Object.defineProperty(exports, "waitForUserOperationReceipt", { enumerable: true, get: function () { return waitForUserOperationReceipt_1.waitForUserOperationReceipt; } });
|
|
21
|
+
const waitForUserOperationReceipt_2 = require("./actions/bundler/waitForUserOperationReceipt.js");
|
|
22
|
+
Object.defineProperty(exports, "WaitForUserOperationReceiptTimeoutError", { enumerable: true, get: function () { return waitForUserOperationReceipt_2.WaitForUserOperationReceiptTimeoutError; } });
|
|
23
|
+
const getAccountNonce_1 = require("./actions/public/getAccountNonce.js");
|
|
24
|
+
Object.defineProperty(exports, "getAccountNonce", { enumerable: true, get: function () { return getAccountNonce_1.getAccountNonce; } });
|
|
25
|
+
const createBundlerClient_1 = require("./clients/createBundlerClient.js");
|
|
26
|
+
Object.defineProperty(exports, "createBundlerClient", { enumerable: true, get: function () { return createBundlerClient_1.createBundlerClient; } });
|
|
27
|
+
const createSmartAccountClient_1 = require("./clients/createSmartAccountClient.js");
|
|
28
|
+
Object.defineProperty(exports, "createSmartAccountClient", { enumerable: true, get: function () { return createSmartAccountClient_1.createSmartAccountClient; } });
|
|
29
|
+
const bundler_1 = require("./clients/decorators/bundler.js");
|
|
30
|
+
Object.defineProperty(exports, "bundlerActions", { enumerable: true, get: function () { return bundler_1.bundlerActions; } });
|
|
31
|
+
const smartAccount_1 = require("./clients/decorators/smartAccount.js");
|
|
32
|
+
Object.defineProperty(exports, "smartAccountActions", { enumerable: true, get: function () { return smartAccount_1.smartAccountActions; } });
|
|
33
|
+
const getUserOperationHash_1 = require("./utils/getUserOperationHash.js");
|
|
34
|
+
Object.defineProperty(exports, "getUserOperationHash", { enumerable: true, get: function () { return getUserOperationHash_1.getUserOperationHash; } });
|
|
35
|
+
tslib_1.__exportStar(require("./utils/index.js"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./errors/index.js"), exports);
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAaA,wEAAoE;AAwDhE,iGAxDK,mCAAgB,OAwDL;AAtDpB,uDAAmD;AAmD/C,wFAnDK,iBAAO,OAmDL;AAlDX,yFAAqF;AAgDjF,yGAhDK,mDAAwB,OAgDL;AA/C5B,qFAAiF;AAkD7E,uGAlDK,+CAAsB,OAkDL;AAjD1B,uFAAmF;AAkD/E,wGAlDK,iDAAuB,OAkDL;AAjD3B,2EAAuE;AA4CnE,kGA5CK,qCAAiB,OA4CL;AA3CrB,iFAA6E;AA6CzE,qGA7CK,2CAAoB,OA6CL;AA5CxB,+FAA2F;AAkDvF,4GAlDK,yDAA2B,OAkDL;AAjD/B,+FAGsD;AAiDlD,wHAlDA,qEAAuC,OAkDA;AA/C3C,sEAAkE;AA2C9D,gGA3CK,iCAAe,OA2CL;AA1CnB,uEAGsC;AAyClC,oGA1CA,yCAAmB,OA0CA;AAxCvB,iFAA6E;AA2CzE,yGA3CK,mDAAwB,OA2CL;AArC5B,0DAA6D;AAmCzD,+FAnCK,wBAAc,OAmCL;AAlClB,oEAG0C;AAkCtC,oGAnCA,kCAAmB,OAmCA;AAOvB,uEAAmE;AAE1D,qGAFA,2CAAoB,OAEA;AAC7B,mDAAwB;AACxB,oDAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../types/bundler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["../../types/entrypoint.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../types/pimlico.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stackup.js","sourceRoot":"","sources":["../../types/stackup.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userOperation.js","sourceRoot":"","sources":["../../types/userOperation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.decodeNonce = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
function decodeNonce(nonce) {
|
|
6
|
+
const parsedNonce = BigInt((0, viem_1.toHex)(nonce, { size: 32 }));
|
|
7
|
+
const key = parsedNonce >> BigInt(64);
|
|
8
|
+
const sequence = parsedNonce & BigInt("0xFFFFFFFFFFFFFFFF");
|
|
9
|
+
return { key, sequence };
|
|
10
|
+
}
|
|
11
|
+
exports.decodeNonce = decodeNonce;
|
|
12
|
+
//# sourceMappingURL=decodeNonce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decodeNonce.js","sourceRoot":"","sources":["../../utils/decodeNonce.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAE5B,SAAgB,WAAW,CAAC,KAAa;IACrC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAA,YAAK,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;IAEtD,MAAM,GAAG,GAAG,WAAW,IAAI,MAAM,CAAC,EAAE,CAAC,CAAA;IACrC,MAAM,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAA;IAE3D,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAA;AAC5B,CAAC;AAPD,kCAOC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deepHexlify = exports.transactionReceiptStatus = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
exports.transactionReceiptStatus = {
|
|
6
|
+
"0x0": "reverted",
|
|
7
|
+
"0x1": "success"
|
|
8
|
+
};
|
|
9
|
+
function deepHexlify(obj) {
|
|
10
|
+
if (typeof obj === "function") {
|
|
11
|
+
return undefined;
|
|
12
|
+
}
|
|
13
|
+
if (obj == null || typeof obj === "string" || typeof obj === "boolean") {
|
|
14
|
+
return obj;
|
|
15
|
+
}
|
|
16
|
+
if (typeof obj === "bigint") {
|
|
17
|
+
return (0, viem_1.toHex)(obj);
|
|
18
|
+
}
|
|
19
|
+
if (obj._isBigNumber != null || typeof obj !== "object") {
|
|
20
|
+
return (0, viem_1.toHex)(obj).replace(/^0x0/, "0x");
|
|
21
|
+
}
|
|
22
|
+
if (Array.isArray(obj)) {
|
|
23
|
+
return obj.map((member) => deepHexlify(member));
|
|
24
|
+
}
|
|
25
|
+
return Object.keys(obj).reduce((set, key) => {
|
|
26
|
+
set[key] = deepHexlify(obj[key]);
|
|
27
|
+
return set;
|
|
28
|
+
}, {});
|
|
29
|
+
}
|
|
30
|
+
exports.deepHexlify = deepHexlify;
|
|
31
|
+
//# sourceMappingURL=deepHexlify.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepHexlify.js","sourceRoot":"","sources":["../../utils/deepHexlify.ts"],"names":[],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