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,14 @@
|
|
|
1
|
+
import { BaseError } from "viem";
|
|
2
|
+
import type { EstimateUserOperationGasParameters } from "../actions/bundler/estimateUserOperationGas";
|
|
3
|
+
import type { EntryPoint } from "../types/entrypoint";
|
|
4
|
+
export type EstimateUserOperationGasErrorType<entryPoint extends EntryPoint> = EstimateUserOperationGasError<entryPoint> & {
|
|
5
|
+
name: "EstimateUserOperationGasError";
|
|
6
|
+
};
|
|
7
|
+
export declare class EstimateUserOperationGasError<entryPoint extends EntryPoint> extends BaseError {
|
|
8
|
+
cause: BaseError;
|
|
9
|
+
name: string;
|
|
10
|
+
constructor(cause: BaseError, { userOperation, entryPoint, docsPath }: EstimateUserOperationGasParameters<entryPoint> & {
|
|
11
|
+
docsPath?: string;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=estimateUserOperationGas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../errors/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAA;AACrG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGrD,MAAM,MAAM,iCAAiC,CAAC,UAAU,SAAS,UAAU,IACvE,6BAA6B,CAAC,UAAU,CAAC,GAAG;IACxC,IAAI,EAAE,+BAA+B,CAAA;CACxC,CAAA;AACL,qBAAa,6BAA6B,CACtC,UAAU,SAAS,UAAU,CAC/B,SAAQ,SAAS;IACN,KAAK,EAAE,SAAS,CAAA;IAEhB,IAAI,SAAkC;gBAG3C,KAAK,EAAE,SAAS,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EACX,EAAE,kCAAkC,CAAC,UAAU,CAAC,GAAG;QAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAmCR"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BaseError } from "viem";
|
|
2
|
+
export type VerificationGasLimitTooLowErrorType = VerificationGasLimitTooLowError & {
|
|
3
|
+
name: "VerificationGasLimitTooLowError";
|
|
4
|
+
};
|
|
5
|
+
export declare class VerificationGasLimitTooLowError extends BaseError {
|
|
6
|
+
static message: RegExp;
|
|
7
|
+
name: string;
|
|
8
|
+
constructor({ cause, verificationGasLimit, docsPath }: {
|
|
9
|
+
cause?: BaseError;
|
|
10
|
+
verificationGasLimit?: bigint;
|
|
11
|
+
docsPath?: string;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export type ActualGasCostTooHighErrorType = ActualGasCostTooHighError & {
|
|
15
|
+
name: "ActualGasCostTooHighError";
|
|
16
|
+
};
|
|
17
|
+
export declare class ActualGasCostTooHighError extends BaseError {
|
|
18
|
+
static message: RegExp;
|
|
19
|
+
name: string;
|
|
20
|
+
constructor({ cause, docsPath }: {
|
|
21
|
+
cause?: BaseError;
|
|
22
|
+
docsPath?: string;
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export type GasValuesOverflowErrorType = GasValuesOverflowError & {
|
|
26
|
+
name: "GasValuesOverflowError";
|
|
27
|
+
};
|
|
28
|
+
export declare class GasValuesOverflowError extends BaseError {
|
|
29
|
+
static message: RegExp;
|
|
30
|
+
name: string;
|
|
31
|
+
constructor({ cause, docsPath }: {
|
|
32
|
+
cause?: BaseError;
|
|
33
|
+
docsPath?: string;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
export type BundlerOutOfGasErrorType = BundlerOutOfGasError & {
|
|
37
|
+
name: "BundlerOutOfGasError";
|
|
38
|
+
};
|
|
39
|
+
export declare class BundlerOutOfGasError extends BaseError {
|
|
40
|
+
static message: RegExp;
|
|
41
|
+
name: string;
|
|
42
|
+
constructor({ cause, docsPath }: {
|
|
43
|
+
cause?: BaseError;
|
|
44
|
+
docsPath?: string;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=gas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gas.d.ts","sourceRoot":"","sources":["../../errors/gas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAEhC,MAAM,MAAM,mCAAmC,GAC3C,+BAA+B,GAAG;IAC9B,IAAI,EAAE,iCAAiC,CAAA;CAC1C,CAAA;AACL,qBAAa,+BAAgC,SAAQ,SAAS;IAC1D,MAAM,CAAC,OAAO,SAAY;IACjB,IAAI,SAAoC;gBACrC,EACR,KAAK,EACL,oBAAoB,EACpB,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;QAC7B,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG;IACpE,IAAI,EAAE,2BAA2B,CAAA;CACpC,CAAA;AACD,qBAAa,yBAA0B,SAAQ,SAAS;IACpD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAA8B;gBAC/B,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ;AAED,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAC9D,IAAI,EAAE,wBAAwB,CAAA;CACjC,CAAA;AACD,qBAAa,sBAAuB,SAAQ,SAAS;IACjD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAA2B;gBAC5B,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAYJ;AAED,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,GAAG;IAC1D,IAAI,EAAE,sBAAsB,CAAA;CAC/B,CAAA;AACD,qBAAa,oBAAqB,SAAQ,SAAS;IAC/C,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAAyB;gBAC1B,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InitCodeDidNotDeploySenderError, type InitCodeDidNotDeploySenderErrorType, InitCodeRevertedError, type InitCodeRevertedErrorType, InvalidSmartAccountNonceError, type InvalidSmartAccountNonceErrorType, InvalidSmartAccountSignatureError, type InvalidSmartAccountSignatureErrorType, SenderAddressMismatchError, type SenderAddressMismatchErrorType, SenderAlreadyDeployedError, type SenderAlreadyDeployedErrorType, SenderNotDeployedError, type SenderNotDeployedErrorType, SmartAccountInsufficientFundsError, type SmartAccountInsufficientFundsErrorType, SmartAccountSignatureValidityPeriodError, type SmartAccountSignatureValidityPeriodErrorType, SmartAccountValidationRevertedError, type SmartAccountValidationRevertedErrorType } from "./account";
|
|
2
|
+
import { EstimateUserOperationGasError, type EstimateUserOperationGasErrorType } from "./estimateUserOperationGas";
|
|
3
|
+
import { SendUserOperationError, type SendUserOperationErrorType } from "./sendUserOperation";
|
|
4
|
+
import { InvalidPaymasterAndDataError, type InvalidPaymasterAndDataErrorType, PaymasterDataRejectedError, type PaymasterDataRejectedErrorType, PaymasterDepositTooLowError, type PaymasterDepositTooLowErrorType, PaymasterNotDeployedError, type PaymasterNotDeployedErrorType, PaymasterPostOpRevertedError, type PaymasterPostOpRevertedErrorType, PaymasterValidationRevertedError, type PaymasterValidationRevertedErrorType, PaymasterValidityPeriodError, type PaymasterValidityPeriodErrorType } from "./paymaster";
|
|
5
|
+
import { InvalidAggregatorError, type InvalidAggregatorErrorType, InvalidBeneficiaryAddressError, type InvalidBeneficiaryAddressErrorType } from "./bundler";
|
|
6
|
+
import { ActualGasCostTooHighError, type ActualGasCostTooHighErrorType, BundlerOutOfGasError, type BundlerOutOfGasErrorType, GasValuesOverflowError, type GasValuesOverflowErrorType, VerificationGasLimitTooLowError, type VerificationGasLimitTooLowErrorType } from "./gas";
|
|
7
|
+
export { type InitCodeDidNotDeploySenderErrorType, type InitCodeRevertedErrorType, type InvalidSmartAccountNonceErrorType, type InvalidSmartAccountSignatureErrorType, type SenderAddressMismatchErrorType, type SenderAlreadyDeployedErrorType, type SenderNotDeployedErrorType, type SmartAccountInsufficientFundsErrorType, type SmartAccountSignatureValidityPeriodErrorType, type SmartAccountValidationRevertedErrorType, type InvalidPaymasterAndDataErrorType, type PaymasterDataRejectedErrorType, type PaymasterDepositTooLowErrorType, type PaymasterNotDeployedErrorType, type PaymasterPostOpRevertedErrorType, type PaymasterValidationRevertedErrorType, type PaymasterValidityPeriodErrorType, type InvalidAggregatorErrorType, type InvalidBeneficiaryAddressErrorType, type ActualGasCostTooHighErrorType, type BundlerOutOfGasErrorType, type GasValuesOverflowErrorType, type VerificationGasLimitTooLowErrorType, SenderAlreadyDeployedError, EstimateUserOperationGasError, InitCodeRevertedError, SenderAddressMismatchError, InitCodeDidNotDeploySenderError, SenderNotDeployedError, SmartAccountInsufficientFundsError, SmartAccountSignatureValidityPeriodError, SmartAccountValidationRevertedError, InvalidSmartAccountNonceError, PaymasterNotDeployedError, PaymasterDepositTooLowError, InvalidSmartAccountSignatureError, InvalidBeneficiaryAddressError, InvalidAggregatorError, InvalidPaymasterAndDataError, PaymasterDataRejectedError, PaymasterValidityPeriodError, PaymasterValidationRevertedError, VerificationGasLimitTooLowError, ActualGasCostTooHighError, GasValuesOverflowError, BundlerOutOfGasError, PaymasterPostOpRevertedError, SendUserOperationError, type EstimateUserOperationGasErrorType, type SendUserOperationErrorType };
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,+BAA+B,EAC/B,KAAK,mCAAmC,EACxC,qBAAqB,EACrB,KAAK,yBAAyB,EAC9B,6BAA6B,EAC7B,KAAK,iCAAiC,EACtC,iCAAiC,EACjC,KAAK,qCAAqC,EAC1C,0BAA0B,EAC1B,KAAK,8BAA8B,EACnC,0BAA0B,EAC1B,KAAK,8BAA8B,EACnC,sBAAsB,EACtB,KAAK,0BAA0B,EAC/B,kCAAkC,EAClC,KAAK,sCAAsC,EAC3C,wCAAwC,EACxC,KAAK,4CAA4C,EACjD,mCAAmC,EACnC,KAAK,uCAAuC,EAC/C,MAAM,WAAW,CAAA;AAClB,OAAO,EACH,6BAA6B,EAC7B,KAAK,iCAAiC,EACzC,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACH,sBAAsB,EACtB,KAAK,0BAA0B,EAClC,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EACH,4BAA4B,EAC5B,KAAK,gCAAgC,EACrC,0BAA0B,EAC1B,KAAK,8BAA8B,EACnC,2BAA2B,EAC3B,KAAK,+BAA+B,EACpC,yBAAyB,EACzB,KAAK,6BAA6B,EAClC,4BAA4B,EAC5B,KAAK,gCAAgC,EACrC,gCAAgC,EAChC,KAAK,oCAAoC,EACzC,4BAA4B,EAC5B,KAAK,gCAAgC,EACxC,MAAM,aAAa,CAAA;AAEpB,OAAO,EACH,sBAAsB,EACtB,KAAK,0BAA0B,EAC/B,8BAA8B,EAC9B,KAAK,kCAAkC,EAC1C,MAAM,WAAW,CAAA;AAElB,OAAO,EACH,yBAAyB,EACzB,KAAK,6BAA6B,EAClC,oBAAoB,EACpB,KAAK,wBAAwB,EAC7B,sBAAsB,EACtB,KAAK,0BAA0B,EAC/B,+BAA+B,EAC/B,KAAK,mCAAmC,EAC3C,MAAM,OAAO,CAAA;AAEd,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,sCAAsC,EAC3C,KAAK,4CAA4C,EACjD,KAAK,uCAAuC,EAC5C,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,oCAAoC,EACzC,KAAK,gCAAgC,EACrC,KAAK,0BAA0B,EAC/B,KAAK,kCAAkC,EACvC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,0BAA0B,EAC1B,6BAA6B,EAC7B,qBAAqB,EACrB,0BAA0B,EAC1B,+BAA+B,EAC/B,sBAAsB,EACtB,kCAAkC,EAClC,wCAAwC,EACxC,mCAAmC,EACnC,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,iCAAiC,EACjC,8BAA8B,EAC9B,sBAAsB,EACtB,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,gCAAgC,EAChC,+BAA+B,EAC/B,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EACtB,KAAK,iCAAiC,EACtC,KAAK,0BAA0B,EAClC,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { BaseError, type Hex } from "viem";
|
|
2
|
+
export type PaymasterNotDeployedErrorType = PaymasterNotDeployedError & {
|
|
3
|
+
name: "PaymasterNotDeployedError";
|
|
4
|
+
};
|
|
5
|
+
export declare class PaymasterNotDeployedError extends BaseError {
|
|
6
|
+
static message: RegExp;
|
|
7
|
+
name: string;
|
|
8
|
+
constructor({ cause, paymasterAndData, docsPath }?: {
|
|
9
|
+
cause?: BaseError;
|
|
10
|
+
paymasterAndData?: Hex;
|
|
11
|
+
docsPath?: string;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export type PaymasterDepositTooLowErrorType = PaymasterDepositTooLowError & {
|
|
15
|
+
name: "PaymasterDepositTooLowError";
|
|
16
|
+
};
|
|
17
|
+
export declare class PaymasterDepositTooLowError extends BaseError {
|
|
18
|
+
static message: RegExp;
|
|
19
|
+
name: string;
|
|
20
|
+
constructor({ cause, paymasterAndData, docsPath }?: {
|
|
21
|
+
cause?: BaseError;
|
|
22
|
+
paymasterAndData?: Hex;
|
|
23
|
+
docsPath?: string;
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export type PaymasterValidityPeriodErrorType = PaymasterValidityPeriodError & {
|
|
27
|
+
name: "PaymasterValidityPeriodError";
|
|
28
|
+
};
|
|
29
|
+
export declare class PaymasterValidityPeriodError extends BaseError {
|
|
30
|
+
static message: RegExp;
|
|
31
|
+
name: string;
|
|
32
|
+
constructor({ cause, paymasterAndData, docsPath }: {
|
|
33
|
+
cause?: BaseError;
|
|
34
|
+
paymasterAndData?: Hex;
|
|
35
|
+
docsPath?: string;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export type PaymasterValidationRevertedErrorType = PaymasterValidationRevertedError & {
|
|
39
|
+
name: "PaymasterValidationRevertedError";
|
|
40
|
+
};
|
|
41
|
+
export declare class PaymasterValidationRevertedError extends BaseError {
|
|
42
|
+
static message: RegExp;
|
|
43
|
+
name: string;
|
|
44
|
+
constructor({ cause, paymasterAndData, docsPath }: {
|
|
45
|
+
cause?: BaseError;
|
|
46
|
+
paymasterAndData?: Hex;
|
|
47
|
+
docsPath?: string;
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export type PaymasterDataRejectedErrorType = PaymasterDataRejectedError & {
|
|
51
|
+
name: "PaymasterDataRejectedError";
|
|
52
|
+
};
|
|
53
|
+
export declare class PaymasterDataRejectedError extends BaseError {
|
|
54
|
+
static message: RegExp;
|
|
55
|
+
name: string;
|
|
56
|
+
constructor({ cause, paymasterAndData, docsPath }: {
|
|
57
|
+
cause?: BaseError;
|
|
58
|
+
paymasterAndData?: Hex;
|
|
59
|
+
docsPath?: string;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
export type PaymasterPostOpRevertedErrorType = PaymasterPostOpRevertedError & {
|
|
63
|
+
name: "PaymasterPostOpRevertedError";
|
|
64
|
+
};
|
|
65
|
+
export declare class PaymasterPostOpRevertedError extends BaseError {
|
|
66
|
+
static message: RegExp;
|
|
67
|
+
name: string;
|
|
68
|
+
constructor({ cause, paymasterAndData, docsPath }: {
|
|
69
|
+
cause?: BaseError;
|
|
70
|
+
paymasterAndData?: Hex;
|
|
71
|
+
docsPath?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export type InvalidPaymasterAndDataErrorType = InvalidPaymasterAndDataError & {
|
|
75
|
+
name: "InvalidPaymasterAndDataError";
|
|
76
|
+
};
|
|
77
|
+
export declare class InvalidPaymasterAndDataError extends BaseError {
|
|
78
|
+
static message: RegExp;
|
|
79
|
+
name: string;
|
|
80
|
+
constructor({ cause, docsPath }: {
|
|
81
|
+
cause?: BaseError;
|
|
82
|
+
docsPath?: string;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=paymaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymaster.d.ts","sourceRoot":"","sources":["../../errors/paymaster.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAA;AAG1C,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG;IACpE,IAAI,EAAE,2BAA2B,CAAA;CACpC,CAAA;AACD,qB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BAAgB,CAAC,EAAE,GAAG,CAAA;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAsBJ;AAED,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,GAAG;IACtE,IAAI,EAAE,4BAA4B,CAAA;CACrC,CAAA;AACD,qBAAa,0BAA2B,SAAQ,SAAS;IACrD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAA+B;gBAChC,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,gBAAgB,CAAC,EAAE,GAAG,CAAA;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAqBJ;AAED,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,GAAG;IAC1E,IAAI,EAAE,8BAA8B,CAAA;CACvC,CAAA;AACD,qBAAa,4BAA6B,SAAQ,SAAS;IACvD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAAiC;gBAClC,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,gBAAgB,CAAC,EAAE,GAAG,CAAA;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAoBJ;AAED,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,GAAG;IAC1E,IAAI,EAAE,8BAA8B,CAAA;CACvC,CAAA;AACD,qBAAa,4BAA6B,SAAQ,SAAS;IACvD,MAAM,CAAC,OAAO,SAAS;IACd,IAAI,SAAiC;gBAClC,EACR,KAAK,EACL,QAAQ,EACX,EAAE;QACC,KAAK,CAAC,EAAE,SAAS,CAAA;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAgBJ"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseError } from "viem";
|
|
2
|
+
import type { SendUserOperationParameters } from "../actions/bundler/sendUserOperation";
|
|
3
|
+
import type { EntryPoint } from "../types/entrypoint";
|
|
4
|
+
export type SendUserOperationErrorType<entryPoint extends EntryPoint> = SendUserOperationError<entryPoint> & {
|
|
5
|
+
name: "SendUserOperationError";
|
|
6
|
+
};
|
|
7
|
+
export declare class SendUserOperationError<entryPoint extends EntryPoint> extends BaseError {
|
|
8
|
+
cause: BaseError;
|
|
9
|
+
name: string;
|
|
10
|
+
constructor(cause: BaseError, { userOperation, entryPoint, docsPath }: SendUserOperationParameters<entryPoint> & {
|
|
11
|
+
docsPath?: string;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=sendUserOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../errors/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAA;AACvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGrD,MAAM,MAAM,0BAA0B,CAAC,UAAU,SAAS,UAAU,IAChE,sBAAsB,CAAC,UAAU,CAAC,GAAG;IACjC,IAAI,EAAE,wBAAwB,CAAA;CACjC,CAAA;AACL,qBAAa,sBAAsB,CAC/B,UAAU,SAAS,UAAU,CAC/B,SAAQ,SAAS;IACN,KAAK,EAAE,SAAS,CAAA;IAEhB,IAAI,SAA2B;gBAGpC,KAAK,EAAE,SAAS,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EACX,EAAE,2BAA2B,CAAC,UAAU,CAAC,GAAG;QACzC,QAAQ,CAAC,EAAE,MAAM,CAAA;KACpB;CAkBR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../errors/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,IAAI,SAAS,MAAM,GAAG,OAAO,IAAI,KAAK,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAA;AAE7E,wBAAgB,WAAW,CACvB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC,UAe/E"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type Address, type Chain, type Client, type GetChainParameter, type Hex, type Transport } from "viem";
|
|
2
|
+
import type { EntryPoint, GetEntryPointVersion } from "../../../types/entrypoint";
|
|
3
|
+
import type { Eip7677RpcSchema } from "../types/paymaster";
|
|
4
|
+
export type GetPaymasterDataParameters<TEntryPoint extends EntryPoint, TChain extends Chain | undefined = Chain | undefined, TChainOverride extends Chain | undefined = Chain | undefined> = {
|
|
5
|
+
userOperation: GetEntryPointVersion<TEntryPoint> extends "v0.6" ? {
|
|
6
|
+
sender: Address;
|
|
7
|
+
nonce: bigint;
|
|
8
|
+
initCode: Hex;
|
|
9
|
+
callData: Hex;
|
|
10
|
+
callGasLimit: bigint;
|
|
11
|
+
verificationGasLimit: bigint;
|
|
12
|
+
preVerificationGas: bigint;
|
|
13
|
+
maxFeePerGas: bigint;
|
|
14
|
+
maxPriorityFeePerGas: bigint;
|
|
15
|
+
paymasterAndData?: Hex;
|
|
16
|
+
signature?: Hex;
|
|
17
|
+
factory?: never;
|
|
18
|
+
factoryData?: never;
|
|
19
|
+
paymaster?: never;
|
|
20
|
+
paymasterVerificationGasLimit?: never;
|
|
21
|
+
paymasterPostOpGasLimit?: never;
|
|
22
|
+
paymasterData?: never;
|
|
23
|
+
} : {
|
|
24
|
+
sender: Address;
|
|
25
|
+
nonce: bigint;
|
|
26
|
+
factory?: Address;
|
|
27
|
+
factoryData?: Hex;
|
|
28
|
+
callData: Hex;
|
|
29
|
+
callGasLimit: bigint;
|
|
30
|
+
verificationGasLimit: bigint;
|
|
31
|
+
preVerificationGas: bigint;
|
|
32
|
+
maxFeePerGas: bigint;
|
|
33
|
+
maxPriorityFeePerGas: bigint;
|
|
34
|
+
paymaster?: Address;
|
|
35
|
+
paymasterData?: Hex;
|
|
36
|
+
signature?: Hex;
|
|
37
|
+
paymasterAndData?: never;
|
|
38
|
+
paymasterVerificationGasLimit: bigint;
|
|
39
|
+
paymasterPostOpGasLimit: bigint;
|
|
40
|
+
};
|
|
41
|
+
entryPoint: TEntryPoint;
|
|
42
|
+
context?: Record<string, unknown>;
|
|
43
|
+
} & GetChainParameter<TChain, TChainOverride>;
|
|
44
|
+
export type GetPaymasterDataReturnType<TEntryPoint extends EntryPoint> = GetEntryPointVersion<TEntryPoint> extends "v0.6" ? {
|
|
45
|
+
paymasterAndData: Hex;
|
|
46
|
+
} : {
|
|
47
|
+
paymaster: Hex;
|
|
48
|
+
paymasterData: Hex;
|
|
49
|
+
};
|
|
50
|
+
export declare function getPaymasterData<TEntryPoint extends EntryPoint, TChain extends Chain | undefined, TTransport extends Transport = Transport, TChainOverride extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined, Eip7677RpcSchema<TEntryPoint>>, { userOperation, entryPoint, context, chain }: GetPaymasterDataParameters<TEntryPoint, TChain, TChainOverride>): Promise<GetPaymasterDataReturnType<TEntryPoint>>;
|
|
51
|
+
//# sourceMappingURL=getPaymasterData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPaymasterData.d.ts","sourceRoot":"","sources":["../../../../experimental/eip7677/actions/getPaymasterData.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EAEV,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,GAAG,EACR,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAGR,UAAU,EACV,oBAAoB,EACvB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EACR,gBAAgB,EAEnB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,MAAM,0BA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ACf,gBAAgB,CAAC,EAAE,KAAK,CAAA;QACxB,6BAA6B,EAAE,MAAM,CAAA;QACrC,uBAAuB,EAAE,MAAM,CAAA;KAClC,CAAA;IACP,UAAU,EAAE,WAAW,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC,GAAG,iBAAiB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;AAE7C,MAAM,MAAM,0BAA0B,CAAC,WAAW,SAAS,UAAU,IACjE,oBAAoB,CAAC,WAAW,CAAC,SAAS,MAAM,GAC1C;IACI,gBAAgB,EAAE,GAAG,CAAA;CACxB,GACD;IACI,SAAS,EAAE,GAAG,CAAA;IACd,aAAa,EAAE,GAAG,CAAA;CACrB,CAAA;AAEX,wBAAsB,gBAAgB,CAClC,WAAW,SAAS,UAAU,EAC9B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,gBAAgB,CAAC,WAAW,CAAC,CAChC,EACD,EACI,aAAa,EACb,UAAU,EACV,OAAO,EACP,KAAK,EACR,EAAE,0BAA0B,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,GACnE,OAAO,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAAC,CA0DlD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type Address, type Chain, type Client, type GetChainParameter, type Hex, type Transport } from "viem";
|
|
2
|
+
import type { EntryPoint, GetEntryPointVersion } from "../../../types/entrypoint";
|
|
3
|
+
import type { Eip7677RpcSchema } from "../types/paymaster";
|
|
4
|
+
export type GetPaymasterStubDataParameters<TEntryPoint extends EntryPoint, TChain extends Chain | undefined, TChainOverride extends Chain | undefined = Chain | undefined> = {
|
|
5
|
+
userOperation: GetEntryPointVersion<TEntryPoint> extends "v0.6" ? {
|
|
6
|
+
sender: Address;
|
|
7
|
+
nonce: bigint;
|
|
8
|
+
initCode: Hex;
|
|
9
|
+
callData: Hex;
|
|
10
|
+
callGasLimit: bigint;
|
|
11
|
+
verificationGasLimit: bigint;
|
|
12
|
+
preVerificationGas: bigint;
|
|
13
|
+
maxFeePerGas: bigint;
|
|
14
|
+
maxPriorityFeePerGas: bigint;
|
|
15
|
+
paymasterAndData?: Hex;
|
|
16
|
+
signature?: Hex;
|
|
17
|
+
factory?: never;
|
|
18
|
+
factoryData?: never;
|
|
19
|
+
paymaster?: never;
|
|
20
|
+
paymasterVerificationGasLimit?: never;
|
|
21
|
+
paymasterPostOpGasLimit?: never;
|
|
22
|
+
paymasterData?: never;
|
|
23
|
+
} : {
|
|
24
|
+
sender: Address;
|
|
25
|
+
nonce: bigint;
|
|
26
|
+
factory?: Address;
|
|
27
|
+
factoryData?: Hex;
|
|
28
|
+
callData: Hex;
|
|
29
|
+
callGasLimit: bigint;
|
|
30
|
+
verificationGasLimit: bigint;
|
|
31
|
+
preVerificationGas: bigint;
|
|
32
|
+
maxFeePerGas: bigint;
|
|
33
|
+
maxPriorityFeePerGas: bigint;
|
|
34
|
+
paymaster?: Address;
|
|
35
|
+
paymasterData?: Hex;
|
|
36
|
+
signature?: Hex;
|
|
37
|
+
paymasterAndData?: never;
|
|
38
|
+
paymasterVerificationGasLimit?: bigint;
|
|
39
|
+
paymasterPostOpGasLimit?: bigint;
|
|
40
|
+
};
|
|
41
|
+
entryPoint: TEntryPoint;
|
|
42
|
+
context?: Record<string, unknown>;
|
|
43
|
+
} & GetChainParameter<TChain, TChainOverride>;
|
|
44
|
+
export type GetPaymasterStubDataReturnType<TEntryPoint extends EntryPoint> = GetEntryPointVersion<TEntryPoint> extends "v0.6" ? {
|
|
45
|
+
paymasterAndData: Hex;
|
|
46
|
+
sponsor?: {
|
|
47
|
+
name: string;
|
|
48
|
+
icon?: string;
|
|
49
|
+
};
|
|
50
|
+
isFinal?: boolean;
|
|
51
|
+
} : {
|
|
52
|
+
paymaster: Hex;
|
|
53
|
+
paymasterData: Hex;
|
|
54
|
+
paymasterVerificationGasLimit?: bigint;
|
|
55
|
+
paymasterPostOpGasLimit?: bigint;
|
|
56
|
+
sponsor?: {
|
|
57
|
+
name: string;
|
|
58
|
+
icon?: string;
|
|
59
|
+
};
|
|
60
|
+
isFinal?: boolean;
|
|
61
|
+
};
|
|
62
|
+
export declare function getPaymasterStubData<TEntryPoint extends EntryPoint, TChain extends Chain | undefined, TTransport extends Transport = Transport, TChainOverride extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined, Eip7677RpcSchema<TEntryPoint>>, { userOperation, entryPoint, context, chain }: GetPaymasterStubDataParameters<TEntryPoint, TChain, TChainOverride>): Promise<GetPaymasterStubDataReturnType<TEntryPoint>>;
|
|
63
|
+
//# sourceMappingURL=getPaymasterStubData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPaymasterStubData.d.ts","sourceRoot":"","sources":["../../../../experimental/eip7677/actions/getPaymasterStubData.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EAEV,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,GAAG,EACR,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAGR,UAAU,EACV,oBAAoB,EACvB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EACR,gBAAgB,EAEnB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,MAAM,8BAA8B,CACtC,WAAW,SAAS,UAAU,EAC9B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAC5D;IACA,aAAa,EAAE,oBAAoB,CAAC,WAAW,CAAC,SAAS,MAAM,GACzD;QACI,MAAM,EAAE,OAAO,CAAA;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AAM,EAAE,cAAc,CAAC,CAAA;AAE7C,MAAM,MAAM,8BAA8B,CAAC,WAAW,SAAS,UAAU,IACrE,oBAAoB,CAAC,WAAW,CAAC,SAAS,MAAM,GAC1C;IACI,gBAAgB,EAAE,GAAG,CAAA;IACrB,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB,GACD;IACI,SAAS,EAAE,GAAG,CAAA;IACd,aAAa,EAAE,GAAG,CAAA;IAClB,6BAA6B,CAAC,EAAE,MAAM,CAAA;IACtC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,OAAO,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB,CAAA;AAEX,wBAAsB,oBAAoB,CACtC,WAAW,SAAS,UAAU,EAC9B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAE5D,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,gBAAgB,CAAC,WAAW,CAAC,CAChC,EACD,EACI,aAAa,EACb,UAAU,EACV,OAAO,EACP,KAAK,EACR,EAAE,8BAA8B,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,GACvE,OAAO,CAAC,8BAA8B,CAAC,WAAW,CAAC,CAAC,CAoEtD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Chain, Client, Transport } from "viem";
|
|
2
|
+
import type { EntryPoint } from "../../../../types/entrypoint";
|
|
3
|
+
import { type GetPaymasterDataParameters, type GetPaymasterDataReturnType } from "../../actions/getPaymasterData";
|
|
4
|
+
import { type GetPaymasterStubDataParameters, type GetPaymasterStubDataReturnType } from "../../actions/getPaymasterStubData";
|
|
5
|
+
export type PaymasterActionsEip7677<TEntryPoint extends EntryPoint, TChain extends Chain | undefined = Chain | undefined> = {
|
|
6
|
+
getPaymasterData: <TChainOverride extends Chain | undefined = Chain | undefined>(args: Omit<GetPaymasterDataParameters<TEntryPoint, TChain, TChainOverride>, "entryPoint">) => Promise<GetPaymasterDataReturnType<TEntryPoint>>;
|
|
7
|
+
getPaymasterStubData: <TChainOverride extends Chain | undefined = Chain | undefined>(args: Omit<GetPaymasterStubDataParameters<TEntryPoint, TChain, TChainOverride>, "entryPoint">) => Promise<GetPaymasterStubDataReturnType<TEntryPoint>>;
|
|
8
|
+
};
|
|
9
|
+
declare const paymasterActionsEip7677: <TEntryPoint extends EntryPoint>(entryPoint: TEntryPoint) => <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain>) => PaymasterActionsEip7677<TEntryPoint, TChain>;
|
|
10
|
+
export { paymasterActionsEip7677 };
|
|
11
|
+
//# sourceMappingURL=paymasterActionsEip7677.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymasterActionsEip7677.d.ts","sourceRoot":"","sources":["../../../../../experimental/eip7677/clients/decorators/paymasterActionsEip7677.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAElC,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EAEtC,MAAM,oCAAoC,CAAA;AAG3C,MAAM,MAAM,uBAAuB,CAC/B,WAAW,SAAS,UAAU,EAC9B,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IACpD;IACA,gBAAgB,EAAE,CACd,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAE5D,IAAI,EAAE,IAAI,CACN,0BAA0B,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EAC/D,YAAY,CACf,KACA,OAAO,CAAC,0BAA0B,CAAC,WAAW,CAAC,CAAC,CAAA;IACrD,oBAAoB,EAAE,CAClB,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAE5D,IAAI,EAAE,IAAI,CACN,8BAA8B,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,CAAC,EACnE,YAAY,CACf,KACA,OAAO,CAAC,8BAA8B,CAAC,WAAW,CAAC,CAAC,CAAA;CAC5D,CAAA;AAED,QAAA,MAAM,uBAAuB,+CACoB,WAAW,kGAK5C,OAAO,UAAU,EAAE,MAAM,CAAC,KACnC,wBAAwB,WAAW,EAAE,MAAM,CA+B5C,CAAA;AAEN,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type GetPaymasterDataParameters, type GetPaymasterDataReturnType, getPaymasterData } from "./actions/getPaymasterData";
|
|
2
|
+
import { type GetPaymasterStubDataParameters, type GetPaymasterStubDataReturnType, getPaymasterStubData } from "./actions/getPaymasterStubData";
|
|
3
|
+
import { type PaymasterActionsEip7677, paymasterActionsEip7677 } from "./clients/decorators/paymasterActionsEip7677";
|
|
4
|
+
import type { Eip7677RpcSchema } from "./types/paymaster";
|
|
5
|
+
export { type GetPaymasterStubDataParameters, type GetPaymasterStubDataReturnType, getPaymasterStubData, type GetPaymasterDataReturnType, type GetPaymasterDataParameters, getPaymasterData, type PaymasterActionsEip7677, paymasterActionsEip7677, type Eip7677RpcSchema };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../experimental/eip7677/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,gBAAgB,EACnB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,oBAAoB,EACvB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,KAAK,uBAAuB,EAC5B,uBAAuB,EAC1B,MAAM,8CAA8C,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,OAAO,EACH,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,oBAAoB,EACpB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,gBAAgB,EAChB,KAAK,uBAAuB,EAC5B,uBAAuB,EACvB,KAAK,gBAAgB,EACxB,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { Hex } from "viem";
|
|
2
|
+
import type { EntryPoint, GetEntryPointVersion } from "../../../types/entrypoint";
|
|
3
|
+
import type { UserOperationWithBigIntAsHex } from "../../../types/userOperation";
|
|
4
|
+
export type GetRpcPaymasterStubDataParameters<entryPoint extends EntryPoint> = [
|
|
5
|
+
userOperation: UserOperationWithBigIntAsHex<GetEntryPointVersion<entryPoint>>,
|
|
6
|
+
entryPoint: entryPoint,
|
|
7
|
+
chainId: Hex,
|
|
8
|
+
context?: Record<string, unknown>
|
|
9
|
+
];
|
|
10
|
+
export type GetRpcPaymasterStubDataReturnType<entryPoint extends EntryPoint> = GetEntryPointVersion<entryPoint> extends "v0.6" ? {
|
|
11
|
+
paymasterAndData: Hex;
|
|
12
|
+
sponsor?: {
|
|
13
|
+
name: string;
|
|
14
|
+
icon?: string;
|
|
15
|
+
};
|
|
16
|
+
isFinal?: boolean;
|
|
17
|
+
} : {
|
|
18
|
+
paymaster: Hex;
|
|
19
|
+
paymasterData: Hex;
|
|
20
|
+
paymasterVerificationGasLimit?: Hex | null;
|
|
21
|
+
paymasterPostOpGasLimit?: Hex | null;
|
|
22
|
+
sponsor?: {
|
|
23
|
+
name: string;
|
|
24
|
+
icon?: string;
|
|
25
|
+
};
|
|
26
|
+
isFinal?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type GetRpcPaymasterDataParameters<entryPoint extends EntryPoint> = [
|
|
29
|
+
userOperation: UserOperationWithBigIntAsHex<GetEntryPointVersion<entryPoint>>,
|
|
30
|
+
entryPoint: entryPoint,
|
|
31
|
+
chainId: Hex,
|
|
32
|
+
context?: Record<string, unknown>
|
|
33
|
+
];
|
|
34
|
+
export type GetRpcPaymasterDataReturnType<entryPoint extends EntryPoint> = GetEntryPointVersion<entryPoint> extends "v0.6" ? {
|
|
35
|
+
paymasterAndData: Hex;
|
|
36
|
+
} : {
|
|
37
|
+
paymaster: Hex;
|
|
38
|
+
paymasterData: Hex;
|
|
39
|
+
};
|
|
40
|
+
export type Eip7677RpcSchema<entryPoint extends EntryPoint> = [
|
|
41
|
+
{
|
|
42
|
+
Method: "pm_getPaymasterStubData";
|
|
43
|
+
Parameters: GetRpcPaymasterStubDataParameters<entryPoint>;
|
|
44
|
+
ReturnType: GetRpcPaymasterStubDataReturnType<entryPoint>;
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
Method: "pm_getPaymasterData";
|
|
48
|
+
Paremeters: GetRpcPaymasterDataParameters<entryPoint>;
|
|
49
|
+
ReturnType: GetRpcPaymasterDataReturnType<entryPoint>;
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
//# sourceMappingURL=paymaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paymaster.d.ts","sourceRoot":"","sources":["../../../../experimental/eip7677/types/paymaster.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,KAAK,EACR,UAAU,EACV,oBAAoB,EACvB,MAAM,2BAA2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AM,GACzC;IACI,gBAAgB,EAAE,GAAG,CAAA;CACxB,GACD;IACI,SAAS,EAAE,GAAG,CAAA;IACd,aAAa,EAAE,GAAG,CAAA;CACrB,CAAA;AAEX,MAAM,MAAM,gBAAgB,CAAC,UAAU,SAAS,UAAU,IAAI;IAC1D;QACI,MAAM,EAAE,yBAAyB,CAAA;QACjC,UAAU,EAAE,iCAAiC,CAAC,UAAU,CAAC,CAAA;QACzD,UAAU,EAAE,iCAAiC,CAAC,UAAU,CAAC,CAAA;KAC5D;IACD;QACI,MAAM,EAAE,qBAAqB,CAAA;QAC7B,UAAU,EAAE,6BAA6B,CAAC,UAAU,CAAC,CAAA;QACrD,UAAU,EAAE,6BAA6B,CAAC,UAAU,CAAC,CAAA;KACxD;CACJ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType } from "./actions/bundler/estimateUserOperationGas";
|
|
2
|
+
import type { GetUserOperationByHashParameters } from "./actions/bundler/getUserOperationByHash";
|
|
3
|
+
import type { GetUserOperationByHashReturnType } from "./actions/bundler/getUserOperationByHash";
|
|
4
|
+
import type { GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType } from "./actions/bundler/getUserOperationReceipt";
|
|
5
|
+
import type { SendUserOperationParameters } from "./actions/bundler/sendUserOperation";
|
|
6
|
+
import type { GetSenderAddressParams } from "./actions/public/getSenderAddress";
|
|
7
|
+
import { getSenderAddress } from "./actions/public/getSenderAddress";
|
|
8
|
+
import { chainId } from "./actions/bundler/chainId";
|
|
9
|
+
import { estimateUserOperationGas } from "./actions/bundler/estimateUserOperationGas";
|
|
10
|
+
import { getUserOperationByHash } from "./actions/bundler/getUserOperationByHash";
|
|
11
|
+
import { getUserOperationReceipt } from "./actions/bundler/getUserOperationReceipt";
|
|
12
|
+
import { sendUserOperation } from "./actions/bundler/sendUserOperation";
|
|
13
|
+
import { supportedEntryPoints } from "./actions/bundler/supportedEntryPoints";
|
|
14
|
+
import { waitForUserOperationReceipt } from "./actions/bundler/waitForUserOperationReceipt";
|
|
15
|
+
import { type WaitForUserOperationReceiptParameters, WaitForUserOperationReceiptTimeoutError } from "./actions/bundler/waitForUserOperationReceipt";
|
|
16
|
+
import type { GetAccountNonceParams } from "./actions/public/getAccountNonce";
|
|
17
|
+
import { getAccountNonce } from "./actions/public/getAccountNonce";
|
|
18
|
+
import { type BundlerClient, createBundlerClient } from "./clients/createBundlerClient";
|
|
19
|
+
import { createSmartAccountClient } from "./clients/createSmartAccountClient";
|
|
20
|
+
import type { SmartAccountClient, SmartAccountClientConfig } from "./clients/createSmartAccountClient";
|
|
21
|
+
import type { BundlerActions } from "./clients/decorators/bundler";
|
|
22
|
+
import { bundlerActions } from "./clients/decorators/bundler";
|
|
23
|
+
import { type SmartAccountActions, smartAccountActions } from "./clients/decorators/smartAccount";
|
|
24
|
+
export type { SendUserOperationParameters, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType, GetSenderAddressParams, GetAccountNonceParams, BundlerClient, BundlerActions, WaitForUserOperationReceiptParameters, SmartAccountClient, SmartAccountClientConfig, SmartAccountActions };
|
|
25
|
+
export { sendUserOperation, estimateUserOperationGas, supportedEntryPoints, chainId, getUserOperationByHash, getUserOperationReceipt, getSenderAddress, getAccountNonce, waitForUserOperationReceipt, createBundlerClient, bundlerActions, WaitForUserOperationReceiptTimeoutError, createSmartAccountClient, smartAccountActions };
|
|
26
|
+
import type { UserOperation } from "./types/userOperation";
|
|
27
|
+
export type { UserOperation };
|
|
28
|
+
import type { GetUserOperationHashParams } from "./utils/getUserOperationHash";
|
|
29
|
+
import { getUserOperationHash } from "./utils/getUserOperationHash";
|
|
30
|
+
export { getUserOperationHash, type GetUserOperationHashParams };
|
|
31
|
+
export * from "./utils";
|
|
32
|
+
export * from "./errors";
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kCAAkC,EAClC,kCAAkC,EACrC,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAA;AAChG,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAA;AAChG,OAAO,KAAK,EACR,iCAAiC,EACjC,iCAAiC,EACpC,MAAM,2CAA2C,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AAEtF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAA;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAA;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAA;AAC3F,OAAO,EACH,KAAK,qCAAqC,EAC1C,uCAAuC,EAC1C,MAAM,+CAA+C,CAAA;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EACH,KAAK,aAAa,EAClB,mBAAmB,EACtB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAA;AAC7E,OAAO,KAAK,EACR,kBAAkB,EAClB,wBAAwB,EAC3B,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EACH,KAAK,mBAAmB,EACxB,mBAAmB,EACtB,MAAM,mCAAmC,CAAA;AAE1C,YAAY,EACR,2BAA2B,EAC3B,kCAAkC,EAClC,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,iCAAiC,EACjC,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,qCAAqC,EACrC,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACtB,CAAA;AAED,OAAO,EACH,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,OAAO,EACP,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,EACd,uCAAuC,EACvC,wBAAwB,EACxB,mBAAmB,EACtB,CAAA;AACD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,YAAY,EAAE,aAAa,EAAE,CAAA;AAE7B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAEnE,OAAO,EAAE,oBAAoB,EAAE,KAAK,0BAA0B,EAAE,CAAA;AAChE,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { Address, Hash, Hex } from "viem";
|
|
2
|
+
import type { PartialBy } from "viem/types/utils";
|
|
3
|
+
import type { EntryPoint, GetEntryPointVersion } from "./entrypoint";
|
|
4
|
+
import type { UserOperationWithBigIntAsHex } from "./userOperation";
|
|
5
|
+
export type BundlerRpcSchema<entryPoint extends EntryPoint> = [
|
|
6
|
+
{
|
|
7
|
+
Method: "eth_sendUserOperation";
|
|
8
|
+
Parameters: [
|
|
9
|
+
userOperation: UserOperationWithBigIntAsHex<GetEntryPointVersion<entryPoint>>,
|
|
10
|
+
entryPoint: entryPoint
|
|
11
|
+
];
|
|
12
|
+
ReturnType: Hash;
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
Method: "eth_estimateUserOperationGas";
|
|
16
|
+
Parameters: [
|
|
17
|
+
userOperation: GetEntryPointVersion<entryPoint> extends "v0.6" ? PartialBy<UserOperationWithBigIntAsHex<"v0.6">, "callGasLimit" | "preVerificationGas" | "verificationGasLimit"> : PartialBy<UserOperationWithBigIntAsHex<"v0.7">, "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "paymasterVerificationGasLimit" | "paymasterPostOpGasLimit">,
|
|
18
|
+
entryPoint: entryPoint,
|
|
19
|
+
stateOverrides?: StateOverrides
|
|
20
|
+
];
|
|
21
|
+
ReturnType: GetEntryPointVersion<entryPoint> extends "v0.6" ? {
|
|
22
|
+
preVerificationGas: Hex;
|
|
23
|
+
verificationGasLimit: Hex;
|
|
24
|
+
callGasLimit: Hex;
|
|
25
|
+
} : {
|
|
26
|
+
preVerificationGas: Hex;
|
|
27
|
+
verificationGasLimit: Hex;
|
|
28
|
+
callGasLimit?: Hex | null;
|
|
29
|
+
paymasterVerificationGasLimit?: Hex | null;
|
|
30
|
+
paymasterPostOpGasLimit?: Hex | null;
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
Method: "eth_supportedEntryPoints";
|
|
35
|
+
Parameters: [];
|
|
36
|
+
ReturnType: Address[];
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
Method: "eth_chainId";
|
|
40
|
+
Parameters: [];
|
|
41
|
+
ReturnType: Hex;
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
Method: "eth_getUserOperationByHash";
|
|
45
|
+
Parameters: [hash: Hash];
|
|
46
|
+
ReturnType: {
|
|
47
|
+
userOperation: UserOperationWithBigIntAsHex<GetEntryPointVersion<entryPoint>>;
|
|
48
|
+
entryPoint: entryPoint;
|
|
49
|
+
transactionHash: Hash;
|
|
50
|
+
blockHash: Hash;
|
|
51
|
+
blockNumber: Hex;
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
Method: "eth_getUserOperationReceipt";
|
|
56
|
+
Parameters: [hash: Hash];
|
|
57
|
+
ReturnType: UserOperationReceiptWithBigIntAsHex;
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
type UserOperationReceiptWithBigIntAsHex = {
|
|
61
|
+
userOpHash: Hash;
|
|
62
|
+
entryPoint: Address;
|
|
63
|
+
sender: Address;
|
|
64
|
+
nonce: Hex;
|
|
65
|
+
paymaster?: Address;
|
|
66
|
+
actualGasUsed: Hex;
|
|
67
|
+
actualGasCost: Hex;
|
|
68
|
+
success: boolean;
|
|
69
|
+
reason?: string;
|
|
70
|
+
receipt: {
|
|
71
|
+
transactionHash: Hex;
|
|
72
|
+
transactionIndex: Hex;
|
|
73
|
+
blockHash: Hash;
|
|
74
|
+
blockNumber: Hex;
|
|
75
|
+
from: Address;
|
|
76
|
+
to: Address | null;
|
|
77
|
+
cumulativeGasUsed: Hex;
|
|
78
|
+
status: "0x0" | "0x1";
|
|
79
|
+
gasUsed: Hex;
|
|
80
|
+
contractAddress: Address | null;
|
|
81
|
+
logsBloom: Hex;
|
|
82
|
+
effectiveGasPrice: Hex;
|
|
83
|
+
};
|
|
84
|
+
logs: {
|
|
85
|
+
data: Hex;
|
|
86
|
+
blockNumber: Hex;
|
|
87
|
+
blockHash: Hash;
|
|
88
|
+
transactionHash: Hash;
|
|
89
|
+
logIndex: Hex;
|
|
90
|
+
transactionIndex: Hex;
|
|
91
|
+
address: Address;
|
|
92
|
+
topics: [Hex, ...Hex[]] | [];
|
|
93
|
+
removed: boolean;
|
|
94
|
+
}[];
|
|
95
|
+
};
|
|
96
|
+
export type StateOverrides = {
|
|
97
|
+
[x: string]: {
|
|
98
|
+
balance?: bigint | undefined;
|
|
99
|
+
nonce?: bigint | number | undefined;
|
|
100
|
+
code?: Hex | undefined;
|
|
101
|
+
state?: {
|
|
102
|
+
[x: Hex]: Hex;
|
|
103
|
+
};
|
|
104
|
+
stateDiff?: {
|
|
105
|
+
[x: Hex]: Hex;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export {};
|
|
110
|
+
//# sourceMappingURL=bundler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../types/bundler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AACpE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAEnE,MAAM,MAAM,gBAAgB,CAAC,UAAU,SAAS,UAAU,IAAI;IAC1D;QACI,MAAM,EAAE,uBAAuB,CAAA;QAC/B,UAAU,EAAE;YACR,aAAa,EAAE,4BAA4B,CACvC,oBAAoB,CAAC,UAAU,CAAC,CACnC;YACD,UAAU,EAAE,UAAU;SACzB,CAAA;QACD,UAAU,EAAE,IAAI,CAAA;KACnB;IACD;QACI,MAAM,EAAE,8BAA8B,CAAA;QACtC,UAAU,EAAE;YACR,aAAa,EAAE,oBAAoB,CAAC,UAAU,CAAC,SAAS,MAAM,GACxD,SAAS,CACL,4BAA4B,CAAC,MAAM,CAAC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,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;QACnC,IAAI,CAAC,EAAE,GAAG,GAAG,SAAS,CAAA;QACtB,KAAK,CAAC,EAAE;YACJ,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG,CAAA;SAChB,CAAA;QACD,SAAS,CAAC,EAAE;YACR,CAAC,CAAC,EAAE,GAAG,GAAG,GAAG,CAAA;SAChB,CAAA;KACJ,CAAA;CACJ,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type EntryPointVersion = "v0.6" | "v0.7";
|
|
2
|
+
export type ENTRYPOINT_ADDRESS_V06_TYPE = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
3
|
+
export type ENTRYPOINT_ADDRESS_V07_TYPE = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
4
|
+
export type GetEntryPointVersion<entryPoint extends EntryPoint> = entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE ? "v0.6" : "v0.7";
|
|
5
|
+
export type EntryPoint = ENTRYPOINT_ADDRESS_V06_TYPE | ENTRYPOINT_ADDRESS_V07_TYPE;
|
|
6
|
+
//# sourceMappingURL=entrypoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../types/entrypoint.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAA;AAE/C,MAAM,MAAM,2BAA2B,GACnC,4CAA4C,CAAA;AAChD,MAAM,MAAM,2BAA2B,GACnC,4CAA4C,CAAA;AAEhD,MAAM,MAAM,oBAAoB,CAAC,UAAU,SAAS,UAAU,IAC1D,UAAU,SAAS,2BAA2B,GAAG,MAAM,GAAG,MAAM,CAAA;AAEpE,MAAM,MAAM,UAAU,GAChB,2BAA2B,GAC3B,2BAA2B,CAAA"}
|