permissionless 0.0.32 → 0.0.34
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/CHANGELOG.md +14 -0
- package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js +2 -2
- package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +16 -16
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
- package/_cjs/accounts/index.js +16 -16
- package/_cjs/accounts/index.js.map +1 -1
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +16 -16
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
- package/_cjs/accounts/privateKeyToSafeSmartAccount.js +2 -2
- package/_cjs/accounts/privateKeyToSafeSmartAccount.js.map +1 -1
- package/_cjs/accounts/privateKeyToSimpleSmartAccount.js +2 -2
- package/_cjs/accounts/privateKeyToSimpleSmartAccount.js.map +1 -1
- package/_cjs/accounts/signerToSafeSmartAccount.js +8 -8
- package/_cjs/accounts/signerToSafeSmartAccount.js.map +1 -1
- package/_cjs/accounts/signerToSimpleSmartAccount.js +12 -12
- package/_cjs/accounts/signerToSimpleSmartAccount.js.map +1 -1
- package/_cjs/actions/bundler/estimateUserOperationGas.js +5 -5
- package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -1
- package/_cjs/actions/bundler/getUserOperationReceipt.js +2 -2
- package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -1
- package/_cjs/actions/bundler/sendUserOperation.js +4 -4
- package/_cjs/actions/bundler/sendUserOperation.js.map +1 -1
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js +5 -5
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
- package/_cjs/actions/index.js +21 -21
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/pimlico/sponsorUserOperation.js +3 -3
- package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -1
- package/_cjs/actions/pimlico/validateSponsorshipPolicies.js +2 -2
- package/_cjs/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
- package/_cjs/actions/pimlico.js +13 -13
- package/_cjs/actions/pimlico.js.map +1 -1
- package/_cjs/actions/public/getAccountNonce.js +2 -2
- package/_cjs/actions/public/getAccountNonce.js.map +1 -1
- package/_cjs/actions/public/getSenderAddress.js +2 -2
- package/_cjs/actions/public/getSenderAddress.js.map +1 -1
- package/_cjs/actions/smartAccount/deployContract.js +9 -9
- package/_cjs/actions/smartAccount/deployContract.js.map +1 -1
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +6 -6
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
- package/_cjs/actions/smartAccount/sendTransaction.js +8 -8
- package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -1
- package/_cjs/actions/smartAccount/sendTransactions.js +8 -8
- package/_cjs/actions/smartAccount/sendTransactions.js.map +1 -1
- package/_cjs/actions/smartAccount/sendUserOperation.js +8 -8
- package/_cjs/actions/smartAccount/sendUserOperation.js.map +1 -1
- package/_cjs/actions/smartAccount/signMessage.js +3 -3
- package/_cjs/actions/smartAccount/signMessage.js.map +1 -1
- package/_cjs/actions/smartAccount/signTypedData.js +3 -3
- package/_cjs/actions/smartAccount/signTypedData.js.map +1 -1
- package/_cjs/actions/smartAccount/writeContract.js +3 -3
- package/_cjs/actions/smartAccount/writeContract.js.map +1 -1
- package/_cjs/actions/smartAccount.js +16 -16
- package/_cjs/actions/smartAccount.js.map +1 -1
- package/_cjs/actions/stackup/sponsorUserOperation.js +2 -2
- package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -1
- package/_cjs/actions/stackup.js +6 -6
- package/_cjs/actions/stackup.js.map +1 -1
- package/_cjs/clients/createBundlerClient.js +2 -2
- package/_cjs/clients/createBundlerClient.js.map +1 -1
- package/_cjs/clients/createSmartAccountClient.js +2 -2
- package/_cjs/clients/createSmartAccountClient.js.map +1 -1
- package/_cjs/clients/decorators/bundler.js +14 -14
- package/_cjs/clients/decorators/bundler.js.map +1 -1
- package/_cjs/clients/decorators/pimlico.js +9 -9
- package/_cjs/clients/decorators/pimlico.js.map +1 -1
- package/_cjs/clients/decorators/smartAccount.js +16 -16
- package/_cjs/clients/decorators/smartAccount.js.map +1 -1
- package/_cjs/clients/decorators/stackup.js +4 -4
- package/_cjs/clients/decorators/stackup.js.map +1 -1
- package/_cjs/clients/pimlico.js +4 -4
- package/_cjs/clients/pimlico.js.map +1 -1
- package/_cjs/clients/stackup.js +3 -3
- package/_cjs/clients/stackup.js.map +1 -1
- package/_cjs/errors/estimateUserOperationGas.js +2 -2
- package/_cjs/errors/estimateUserOperationGas.js.map +1 -1
- package/_cjs/errors/index.js +31 -31
- package/_cjs/errors/index.js.map +1 -1
- package/_cjs/errors/paymaster.js +7 -7
- package/_cjs/errors/paymaster.js.map +1 -1
- package/_cjs/errors/sendUserOperation.js +2 -2
- package/_cjs/errors/sendUserOperation.js.map +1 -1
- package/_cjs/index.js +30 -30
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/errors/getBundlerError.js +3 -3
- package/_cjs/utils/errors/getEstimateUserOperationGasError.js +2 -2
- package/_cjs/utils/errors/getSendUserOperationError.js +2 -2
- package/_cjs/utils/index.js +21 -19
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/providerToSmartAccountSigner.js +22 -0
- package/_cjs/utils/providerToSmartAccountSigner.js.map +1 -0
- package/_cjs/utils/signUserOperationHashWithECDSA.js +4 -4
- package/_cjs/utils/signUserOperationHashWithECDSA.js.map +1 -1
- package/_cjs/utils/{walletClientToCustomSigner.js → walletClientToSmartAccountSigner.js} +4 -4
- package/_cjs/utils/walletClientToSmartAccountSigner.js.map +1 -0
- package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
- package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
- package/_esm/accounts/index.js.map +1 -1
- package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
- package/_esm/accounts/privateKeyToSafeSmartAccount.js.map +1 -1
- package/_esm/accounts/privateKeyToSimpleSmartAccount.js.map +1 -1
- package/_esm/accounts/signerToSafeSmartAccount.js.map +1 -1
- package/_esm/accounts/signerToSimpleSmartAccount.js.map +1 -1
- package/_esm/accounts/types.js.map +1 -1
- package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -1
- package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -1
- package/_esm/actions/bundler/sendUserOperation.js.map +1 -1
- package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/pimlico/sendCompressedUserOperation.js.map +1 -1
- package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -1
- package/_esm/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
- package/_esm/actions/pimlico.js.map +1 -1
- package/_esm/actions/public/getAccountNonce.js.map +1 -1
- package/_esm/actions/public/getSenderAddress.js.map +1 -1
- package/_esm/actions/smartAccount/deployContract.js +1 -1
- package/_esm/actions/smartAccount/deployContract.js.map +1 -1
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js +1 -1
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
- package/_esm/actions/smartAccount/sendTransaction.js +1 -1
- package/_esm/actions/smartAccount/sendTransaction.js.map +1 -1
- package/_esm/actions/smartAccount/sendTransactions.js +1 -1
- package/_esm/actions/smartAccount/sendTransactions.js.map +1 -1
- package/_esm/actions/smartAccount/sendUserOperation.js +1 -1
- package/_esm/actions/smartAccount/sendUserOperation.js.map +1 -1
- package/_esm/actions/smartAccount/signMessage.js.map +1 -1
- package/_esm/actions/smartAccount/signTypedData.js.map +1 -1
- package/_esm/actions/smartAccount/writeContract.js.map +1 -1
- package/_esm/actions/smartAccount.js.map +1 -1
- package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -1
- package/_esm/actions/stackup.js.map +1 -1
- package/_esm/clients/createBundlerClient.js.map +1 -1
- package/_esm/clients/createSmartAccountClient.js.map +1 -1
- package/_esm/clients/decorators/bundler.js.map +1 -1
- package/_esm/clients/decorators/pimlico.js.map +1 -1
- package/_esm/clients/decorators/smartAccount.js.map +1 -1
- package/_esm/clients/decorators/stackup.js.map +1 -1
- package/_esm/clients/pimlico.js.map +1 -1
- package/_esm/clients/stackup.js.map +1 -1
- package/_esm/errors/estimateUserOperationGas.js.map +1 -1
- package/_esm/errors/index.js.map +1 -1
- package/_esm/errors/paymaster.js.map +1 -1
- package/_esm/errors/sendUserOperation.js.map +1 -1
- package/_esm/index.js.map +1 -1
- package/_esm/utils/errors/getBundlerError.js +3 -3
- package/_esm/utils/errors/getEstimateUserOperationGasError.js +3 -3
- package/_esm/utils/errors/getSendUserOperationError.js +2 -2
- package/_esm/utils/index.js +3 -2
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/providerToSmartAccountSigner.js +18 -0
- package/_esm/utils/providerToSmartAccountSigner.js.map +1 -0
- package/_esm/utils/signUserOperationHashWithECDSA.js +1 -1
- package/_esm/utils/signUserOperationHashWithECDSA.js.map +1 -1
- package/_esm/utils/{walletClientToCustomSigner.js → walletClientToSmartAccountSigner.js} +2 -2
- package/_esm/utils/walletClientToSmartAccountSigner.js.map +1 -0
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts +1 -1
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts.map +1 -1
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts +1 -1
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts.map +1 -1
- package/_types/accounts/index.d.ts +8 -8
- package/_types/accounts/index.d.ts.map +1 -1
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts +2 -2
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts.map +1 -1
- package/_types/accounts/privateKeyToSafeSmartAccount.d.ts +1 -1
- package/_types/accounts/privateKeyToSafeSmartAccount.d.ts.map +1 -1
- package/_types/accounts/privateKeyToSimpleSmartAccount.d.ts +1 -1
- package/_types/accounts/privateKeyToSimpleSmartAccount.d.ts.map +1 -1
- package/_types/accounts/signerToSafeSmartAccount.d.ts +1 -1
- package/_types/accounts/signerToSafeSmartAccount.d.ts.map +1 -1
- package/_types/accounts/signerToSimpleSmartAccount.d.ts +1 -1
- package/_types/accounts/signerToSimpleSmartAccount.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +1 -1
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/bundler/chainId.d.ts +1 -1
- package/_types/actions/bundler/chainId.d.ts.map +1 -1
- package/_types/actions/bundler/estimateUserOperationGas.d.ts +4 -4
- package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
- package/_types/actions/bundler/getUserOperationByHash.d.ts +3 -3
- package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -1
- package/_types/actions/bundler/getUserOperationReceipt.d.ts +3 -3
- package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -1
- package/_types/actions/bundler/sendUserOperation.d.ts +3 -3
- package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/bundler/supportedEntryPoints.d.ts +1 -1
- package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -1
- package/_types/actions/bundler/waitForUserOperationReceipt.d.ts +2 -2
- package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
- package/_types/actions/index.d.ts +17 -17
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +2 -2
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
- package/_types/actions/pimlico/getUserOperationStatus.d.ts +2 -2
- package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -1
- package/_types/actions/pimlico/sendCompressedUserOperation.d.ts +2 -2
- package/_types/actions/pimlico/sendCompressedUserOperation.d.ts.map +1 -1
- package/_types/actions/pimlico/sponsorUserOperation.d.ts +3 -3
- package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts +3 -3
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -1
- package/_types/actions/pimlico.d.ts +7 -7
- package/_types/actions/pimlico.d.ts.map +1 -1
- package/_types/actions/public/getAccountNonce.d.ts +1 -1
- package/_types/actions/public/getAccountNonce.d.ts.map +1 -1
- package/_types/actions/public/getSenderAddress.d.ts +1 -1
- package/_types/actions/public/getSenderAddress.d.ts.map +1 -1
- package/_types/actions/smartAccount/deployContract.d.ts +3 -3
- package/_types/actions/smartAccount/deployContract.d.ts.map +1 -1
- package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +3 -3
- package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -1
- package/_types/actions/smartAccount/sendTransaction.d.ts +3 -3
- package/_types/actions/smartAccount/sendTransaction.d.ts.map +1 -1
- package/_types/actions/smartAccount/sendTransactions.d.ts +3 -3
- package/_types/actions/smartAccount/sendTransactions.d.ts.map +1 -1
- package/_types/actions/smartAccount/sendUserOperation.d.ts +3 -3
- package/_types/actions/smartAccount/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/smartAccount/signMessage.d.ts +1 -1
- package/_types/actions/smartAccount/signMessage.d.ts.map +1 -1
- package/_types/actions/smartAccount/signTypedData.d.ts +1 -1
- package/_types/actions/smartAccount/signTypedData.d.ts.map +1 -1
- package/_types/actions/smartAccount/writeContract.d.ts +2 -2
- package/_types/actions/smartAccount/writeContract.d.ts.map +1 -1
- package/_types/actions/smartAccount.d.ts +8 -8
- package/_types/actions/smartAccount.d.ts.map +1 -1
- package/_types/actions/stackup/accounts.d.ts +1 -1
- package/_types/actions/stackup/accounts.d.ts.map +1 -1
- package/_types/actions/stackup/sponsorUserOperation.d.ts +3 -3
- package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -1
- package/_types/actions/stackup.d.ts +4 -4
- package/_types/actions/stackup.d.ts.map +1 -1
- package/_types/clients/createBundlerClient.d.ts +2 -2
- package/_types/clients/createBundlerClient.d.ts.map +1 -1
- package/_types/clients/createSmartAccountClient.d.ts +5 -5
- package/_types/clients/createSmartAccountClient.d.ts.map +1 -1
- package/_types/clients/decorators/bundler.d.ts +8 -8
- package/_types/clients/decorators/bundler.d.ts.map +1 -1
- package/_types/clients/decorators/pimlico.d.ts +5 -5
- package/_types/clients/decorators/pimlico.d.ts.map +1 -1
- package/_types/clients/decorators/smartAccount.d.ts +11 -11
- package/_types/clients/decorators/smartAccount.d.ts.map +1 -1
- package/_types/clients/decorators/stackup.d.ts +2 -2
- package/_types/clients/decorators/stackup.d.ts.map +1 -1
- package/_types/clients/pimlico.d.ts +3 -3
- package/_types/clients/pimlico.d.ts.map +1 -1
- package/_types/clients/stackup.d.ts +3 -3
- package/_types/clients/stackup.d.ts.map +1 -1
- package/_types/errors/estimateUserOperationGas.d.ts +1 -1
- package/_types/errors/estimateUserOperationGas.d.ts.map +1 -1
- package/_types/errors/index.d.ts +6 -6
- package/_types/errors/index.d.ts.map +1 -1
- package/_types/errors/sendUserOperation.d.ts +1 -1
- package/_types/errors/sendUserOperation.d.ts.map +1 -1
- package/_types/index.d.ts +28 -28
- package/_types/index.d.ts.map +1 -1
- package/_types/types/bundler.d.ts +1 -1
- package/_types/types/bundler.d.ts.map +1 -1
- package/_types/types/index.d.ts +2 -2
- package/_types/types/index.d.ts.map +1 -1
- package/_types/types/pimlico.d.ts +1 -1
- package/_types/types/pimlico.d.ts.map +1 -1
- package/_types/types/stackup.d.ts +1 -1
- package/_types/types/stackup.d.ts.map +1 -1
- package/_types/types/userOperation.d.ts +1 -1
- package/_types/types/userOperation.d.ts.map +1 -1
- package/_types/utils/getUserOperationHash.d.ts +1 -1
- package/_types/utils/getUserOperationHash.d.ts.map +1 -1
- package/_types/utils/index.d.ts +10 -9
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/providerToSmartAccountSigner.d.ts +3 -0
- package/_types/utils/providerToSmartAccountSigner.d.ts.map +1 -0
- package/_types/utils/signUserOperationHashWithECDSA.d.ts +2 -2
- package/_types/utils/signUserOperationHashWithECDSA.d.ts.map +1 -1
- package/_types/utils/walletClientToSmartAccountSigner.d.ts +4 -0
- package/_types/utils/walletClientToSmartAccountSigner.d.ts.map +1 -0
- package/accounts/biconomy/privateKeyToBiconomySmartAccount.ts +1 -1
- package/accounts/biconomy/signerToBiconomySmartAccount.ts +6 -6
- package/accounts/index.ts +8 -8
- package/accounts/kernel/signerToEcdsaKernelSmartAccount.ts +8 -8
- package/accounts/privateKeyToSafeSmartAccount.ts +1 -1
- package/accounts/privateKeyToSimpleSmartAccount.ts +1 -1
- package/accounts/signerToSafeSmartAccount.ts +3 -3
- package/accounts/signerToSimpleSmartAccount.ts +6 -6
- package/accounts/types.ts +1 -1
- package/actions/bundler/chainId.ts +2 -2
- package/actions/bundler/estimateUserOperationGas.ts +6 -6
- package/actions/bundler/getUserOperationByHash.ts +4 -4
- package/actions/bundler/getUserOperationReceipt.ts +5 -5
- package/actions/bundler/sendUserOperation.ts +6 -6
- package/actions/bundler/supportedEntryPoints.ts +2 -2
- package/actions/bundler/waitForUserOperationReceipt.ts +4 -4
- package/actions/index.ts +17 -17
- package/actions/pimlico/getUserOperationGasPrice.ts +2 -2
- package/actions/pimlico/getUserOperationStatus.ts +3 -3
- package/actions/pimlico/sendCompressedUserOperation.ts +2 -2
- package/actions/pimlico/sponsorUserOperation.ts +4 -4
- package/actions/pimlico/validateSponsorshipPolicies.ts +4 -4
- package/actions/pimlico.ts +7 -7
- package/actions/public/getAccountNonce.ts +2 -2
- package/actions/public/getSenderAddress.ts +2 -2
- package/actions/smartAccount/deployContract.ts +8 -8
- package/actions/smartAccount/prepareUserOperationRequest.ts +6 -9
- package/actions/smartAccount/sendTransaction.ts +7 -10
- package/actions/smartAccount/sendTransactions.ts +7 -10
- package/actions/smartAccount/sendUserOperation.ts +6 -9
- package/actions/smartAccount/signMessage.ts +2 -5
- package/actions/smartAccount/signTypedData.ts +2 -5
- package/actions/smartAccount/writeContract.ts +4 -4
- package/actions/smartAccount.ts +8 -8
- package/actions/stackup/accounts.ts +1 -1
- package/actions/stackup/sponsorUserOperation.ts +4 -4
- package/actions/stackup.ts +4 -4
- package/clients/createBundlerClient.ts +2 -2
- package/clients/createSmartAccountClient.ts +5 -5
- package/clients/decorators/bundler.ts +11 -11
- package/clients/decorators/pimlico.ts +6 -9
- package/clients/decorators/smartAccount.ts +11 -11
- package/clients/decorators/stackup.ts +3 -3
- package/clients/pimlico.ts +3 -3
- package/clients/stackup.ts +3 -3
- package/errors/estimateUserOperationGas.ts +2 -2
- package/errors/index.ts +6 -6
- package/errors/paymaster.ts +1 -1
- package/errors/sendUserOperation.ts +2 -2
- package/index.ts +28 -28
- package/package.json +1 -1
- package/types/bundler.ts +1 -1
- package/types/index.ts +2 -2
- package/types/pimlico.ts +1 -1
- package/types/stackup.ts +1 -1
- package/types/userOperation.ts +1 -1
- package/utils/getUserOperationHash.ts +1 -1
- package/utils/index.ts +11 -9
- package/utils/providerToSmartAccountSigner.ts +24 -0
- package/utils/signUserOperationHashWithECDSA.ts +4 -4
- package/utils/{walletClientToCustomSigner.ts → walletClientToSmartAccountSigner.ts} +2 -2
- package/_cjs/utils/walletClientToCustomSigner.js.map +0 -1
- package/_esm/utils/walletClientToCustomSigner.js.map +0 -1
- package/_types/utils/walletClientToCustomSigner.d.ts +0 -4
- package/_types/utils/walletClientToCustomSigner.d.ts.map +0 -1
package/_cjs/errors/index.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SendUserOperationError = exports.PaymasterPostOpRevertedError = exports.BundlerOutOfGasError = exports.GasValuesOverflowError = exports.ActualGasCostTooHighError = exports.VerificationGasLimitTooLowError = exports.PaymasterValidationRevertedError = exports.PaymasterValidityPeriodError = exports.PaymasterDataRejectedError = exports.InvalidPaymasterAndDataError = exports.InvalidAggregatorError = exports.InvalidBeneficiaryAddressError = exports.InvalidSmartAccountSignatureError = exports.PaymasterDepositTooLowError = exports.PaymasterNotDeployedError = exports.InvalidSmartAccountNonceError = exports.SmartAccountValidationRevertedError = exports.SmartAccountSignatureValidityPeriodError = exports.SmartAccountInsufficientFundsError = exports.SenderNotDeployedError = exports.InitCodeDidNotDeploySenderError = exports.SenderAddressMismatchError = exports.InitCodeRevertedError = exports.EstimateUserOperationGasError = exports.SenderAlreadyDeployedError = void 0;
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "InitCodeDidNotDeploySenderError", { enumerable: true, get: function () { return
|
|
6
|
-
Object.defineProperty(exports, "InitCodeRevertedError", { enumerable: true, get: function () { return
|
|
7
|
-
Object.defineProperty(exports, "InvalidSmartAccountNonceError", { enumerable: true, get: function () { return
|
|
8
|
-
Object.defineProperty(exports, "InvalidSmartAccountSignatureError", { enumerable: true, get: function () { return
|
|
9
|
-
Object.defineProperty(exports, "SenderAddressMismatchError", { enumerable: true, get: function () { return
|
|
10
|
-
Object.defineProperty(exports, "SenderAlreadyDeployedError", { enumerable: true, get: function () { return
|
|
11
|
-
Object.defineProperty(exports, "SenderNotDeployedError", { enumerable: true, get: function () { return
|
|
12
|
-
Object.defineProperty(exports, "SmartAccountInsufficientFundsError", { enumerable: true, get: function () { return
|
|
13
|
-
Object.defineProperty(exports, "SmartAccountSignatureValidityPeriodError", { enumerable: true, get: function () { return
|
|
14
|
-
Object.defineProperty(exports, "SmartAccountValidationRevertedError", { enumerable: true, get: function () { return
|
|
15
|
-
const
|
|
16
|
-
Object.defineProperty(exports, "EstimateUserOperationGasError", { enumerable: true, get: function () { return
|
|
17
|
-
const
|
|
18
|
-
Object.defineProperty(exports, "SendUserOperationError", { enumerable: true, get: function () { return
|
|
19
|
-
const
|
|
20
|
-
Object.defineProperty(exports, "InvalidPaymasterAndDataError", { enumerable: true, get: function () { return
|
|
21
|
-
Object.defineProperty(exports, "PaymasterDataRejectedError", { enumerable: true, get: function () { return
|
|
22
|
-
Object.defineProperty(exports, "PaymasterDepositTooLowError", { enumerable: true, get: function () { return
|
|
23
|
-
Object.defineProperty(exports, "PaymasterNotDeployedError", { enumerable: true, get: function () { return
|
|
24
|
-
Object.defineProperty(exports, "PaymasterPostOpRevertedError", { enumerable: true, get: function () { return
|
|
25
|
-
Object.defineProperty(exports, "PaymasterValidationRevertedError", { enumerable: true, get: function () { return
|
|
26
|
-
Object.defineProperty(exports, "PaymasterValidityPeriodError", { enumerable: true, get: function () { return
|
|
27
|
-
const
|
|
28
|
-
Object.defineProperty(exports, "InvalidAggregatorError", { enumerable: true, get: function () { return
|
|
29
|
-
Object.defineProperty(exports, "InvalidBeneficiaryAddressError", { enumerable: true, get: function () { return
|
|
30
|
-
const
|
|
31
|
-
Object.defineProperty(exports, "ActualGasCostTooHighError", { enumerable: true, get: function () { return
|
|
32
|
-
Object.defineProperty(exports, "BundlerOutOfGasError", { enumerable: true, get: function () { return
|
|
33
|
-
Object.defineProperty(exports, "GasValuesOverflowError", { enumerable: true, get: function () { return
|
|
34
|
-
Object.defineProperty(exports, "VerificationGasLimitTooLowError", { enumerable: true, get: function () { return
|
|
4
|
+
const account_1 = require("./account.js");
|
|
5
|
+
Object.defineProperty(exports, "InitCodeDidNotDeploySenderError", { enumerable: true, get: function () { return account_1.InitCodeDidNotDeploySenderError; } });
|
|
6
|
+
Object.defineProperty(exports, "InitCodeRevertedError", { enumerable: true, get: function () { return account_1.InitCodeRevertedError; } });
|
|
7
|
+
Object.defineProperty(exports, "InvalidSmartAccountNonceError", { enumerable: true, get: function () { return account_1.InvalidSmartAccountNonceError; } });
|
|
8
|
+
Object.defineProperty(exports, "InvalidSmartAccountSignatureError", { enumerable: true, get: function () { return account_1.InvalidSmartAccountSignatureError; } });
|
|
9
|
+
Object.defineProperty(exports, "SenderAddressMismatchError", { enumerable: true, get: function () { return account_1.SenderAddressMismatchError; } });
|
|
10
|
+
Object.defineProperty(exports, "SenderAlreadyDeployedError", { enumerable: true, get: function () { return account_1.SenderAlreadyDeployedError; } });
|
|
11
|
+
Object.defineProperty(exports, "SenderNotDeployedError", { enumerable: true, get: function () { return account_1.SenderNotDeployedError; } });
|
|
12
|
+
Object.defineProperty(exports, "SmartAccountInsufficientFundsError", { enumerable: true, get: function () { return account_1.SmartAccountInsufficientFundsError; } });
|
|
13
|
+
Object.defineProperty(exports, "SmartAccountSignatureValidityPeriodError", { enumerable: true, get: function () { return account_1.SmartAccountSignatureValidityPeriodError; } });
|
|
14
|
+
Object.defineProperty(exports, "SmartAccountValidationRevertedError", { enumerable: true, get: function () { return account_1.SmartAccountValidationRevertedError; } });
|
|
15
|
+
const estimateUserOperationGas_1 = require("./estimateUserOperationGas.js");
|
|
16
|
+
Object.defineProperty(exports, "EstimateUserOperationGasError", { enumerable: true, get: function () { return estimateUserOperationGas_1.EstimateUserOperationGasError; } });
|
|
17
|
+
const sendUserOperation_1 = require("./sendUserOperation.js");
|
|
18
|
+
Object.defineProperty(exports, "SendUserOperationError", { enumerable: true, get: function () { return sendUserOperation_1.SendUserOperationError; } });
|
|
19
|
+
const paymaster_1 = require("./paymaster.js");
|
|
20
|
+
Object.defineProperty(exports, "InvalidPaymasterAndDataError", { enumerable: true, get: function () { return paymaster_1.InvalidPaymasterAndDataError; } });
|
|
21
|
+
Object.defineProperty(exports, "PaymasterDataRejectedError", { enumerable: true, get: function () { return paymaster_1.PaymasterDataRejectedError; } });
|
|
22
|
+
Object.defineProperty(exports, "PaymasterDepositTooLowError", { enumerable: true, get: function () { return paymaster_1.PaymasterDepositTooLowError; } });
|
|
23
|
+
Object.defineProperty(exports, "PaymasterNotDeployedError", { enumerable: true, get: function () { return paymaster_1.PaymasterNotDeployedError; } });
|
|
24
|
+
Object.defineProperty(exports, "PaymasterPostOpRevertedError", { enumerable: true, get: function () { return paymaster_1.PaymasterPostOpRevertedError; } });
|
|
25
|
+
Object.defineProperty(exports, "PaymasterValidationRevertedError", { enumerable: true, get: function () { return paymaster_1.PaymasterValidationRevertedError; } });
|
|
26
|
+
Object.defineProperty(exports, "PaymasterValidityPeriodError", { enumerable: true, get: function () { return paymaster_1.PaymasterValidityPeriodError; } });
|
|
27
|
+
const bundler_1 = require("./bundler.js");
|
|
28
|
+
Object.defineProperty(exports, "InvalidAggregatorError", { enumerable: true, get: function () { return bundler_1.InvalidAggregatorError; } });
|
|
29
|
+
Object.defineProperty(exports, "InvalidBeneficiaryAddressError", { enumerable: true, get: function () { return bundler_1.InvalidBeneficiaryAddressError; } });
|
|
30
|
+
const gas_1 = require("./gas.js");
|
|
31
|
+
Object.defineProperty(exports, "ActualGasCostTooHighError", { enumerable: true, get: function () { return gas_1.ActualGasCostTooHighError; } });
|
|
32
|
+
Object.defineProperty(exports, "BundlerOutOfGasError", { enumerable: true, get: function () { return gas_1.BundlerOutOfGasError; } });
|
|
33
|
+
Object.defineProperty(exports, "GasValuesOverflowError", { enumerable: true, get: function () { return gas_1.GasValuesOverflowError; } });
|
|
34
|
+
Object.defineProperty(exports, "VerificationGasLimitTooLowError", { enumerable: true, get: function () { return gas_1.VerificationGasLimitTooLowError; } });
|
|
35
35
|
//# sourceMappingURL=index.js.map
|
package/_cjs/errors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../errors/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../errors/index.ts"],"names":[],"mappings":";;;AAAA,uCAqBkB;AAyEd,gHA7FA,yCAA+B,OA6FA;AAF/B,sGAzFA,+BAAqB,OAyFA;AAOrB,8GA9FA,uCAA6B,OA8FA;AAG7B,kHA/FA,2CAAiC,OA+FA;AATjC,2GApFA,oCAA0B,OAoFA;AAH1B,2GA/EA,oCAA0B,OA+EA;AAK1B,uGAlFA,gCAAsB,OAkFA;AACtB,mHAjFA,4CAAkC,OAiFA;AAClC,yHAhFA,kDAAwC,OAgFA;AACxC,oHA/EA,6CAAmC,OA+EA;AA5EvC,yEAGmC;AAkE/B,8GApEA,wDAA6B,OAoEA;AAjEjC,2DAG4B;AAqFxB,uGAvFA,0CAAsB,OAuFA;AAnF1B,2CAeoB;AA2DhB,6GAzEA,wCAA4B,OAyEA;AAC5B,2GAxEA,sCAA0B,OAwEA;AAL1B,4GAjEA,uCAA2B,OAiEA;AAD3B,0GA9DA,qCAAyB,OA8DA;AAazB,6GAzEA,wCAA4B,OAyEA;AAL5B,iHAlEA,4CAAgC,OAkEA;AADhC,6GA/DA,wCAA4B,OA+DA;AA3DhC,uCAKkB;AAmDd,uGAvDA,gCAAsB,OAuDA;AADtB,+GApDA,wCAA8B,OAoDA;AAhDlC,+BASc;AA8CV,0GAtDA,+BAAyB,OAsDA;AAEzB,qGAtDA,0BAAoB,OAsDA;AADpB,uGAnDA,4BAAsB,OAmDA;AAFtB,gHA/CA,qCAA+B,OA+CA"}
|
package/_cjs/errors/paymaster.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidPaymasterAndDataError = exports.PaymasterPostOpRevertedError = exports.PaymasterDataRejectedError = exports.PaymasterValidationRevertedError = exports.PaymasterValidityPeriodError = exports.PaymasterDepositTooLowError = exports.PaymasterNotDeployedError = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../utils/index.js");
|
|
6
6
|
class PaymasterNotDeployedError extends viem_1.BaseError {
|
|
7
7
|
constructor({ cause, paymasterAndData, docsPath } = {}) {
|
|
8
8
|
const paymaster = paymasterAndData
|
|
9
|
-
? (0,
|
|
9
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
10
10
|
: "0x";
|
|
11
11
|
super([
|
|
12
12
|
`Paymaster ${paymaster} is not deployed.`,
|
|
@@ -37,7 +37,7 @@ Object.defineProperty(PaymasterNotDeployedError, "message", {
|
|
|
37
37
|
class PaymasterDepositTooLowError extends viem_1.BaseError {
|
|
38
38
|
constructor({ cause, paymasterAndData, docsPath } = {}) {
|
|
39
39
|
const paymaster = paymasterAndData
|
|
40
|
-
? (0,
|
|
40
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
41
41
|
: "0x";
|
|
42
42
|
super([
|
|
43
43
|
`Paymaster ${paymaster} contract does not have enough funds deposited into the EntryPoint contract to cover the required funds for the user operation.`,
|
|
@@ -69,7 +69,7 @@ Object.defineProperty(PaymasterDepositTooLowError, "message", {
|
|
|
69
69
|
class PaymasterValidityPeriodError extends viem_1.BaseError {
|
|
70
70
|
constructor({ cause, paymasterAndData, docsPath }) {
|
|
71
71
|
const paymaster = paymasterAndData
|
|
72
|
-
? (0,
|
|
72
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
73
73
|
: "0x";
|
|
74
74
|
super([
|
|
75
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.`,
|
|
@@ -104,7 +104,7 @@ Object.defineProperty(PaymasterValidityPeriodError, "message", {
|
|
|
104
104
|
class PaymasterValidationRevertedError extends viem_1.BaseError {
|
|
105
105
|
constructor({ cause, paymasterAndData, docsPath }) {
|
|
106
106
|
const paymaster = paymasterAndData
|
|
107
|
-
? (0,
|
|
107
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
108
108
|
: "0x";
|
|
109
109
|
super([
|
|
110
110
|
`The validatePaymasterUserOp function of the paymaster ${paymaster} either reverted or ran out of gas.`,
|
|
@@ -137,7 +137,7 @@ Object.defineProperty(PaymasterValidationRevertedError, "message", {
|
|
|
137
137
|
class PaymasterDataRejectedError extends viem_1.BaseError {
|
|
138
138
|
constructor({ cause, paymasterAndData, docsPath }) {
|
|
139
139
|
const paymaster = paymasterAndData
|
|
140
|
-
? (0,
|
|
140
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
141
141
|
: "0x";
|
|
142
142
|
super([
|
|
143
143
|
`The validatePaymasterUserOp function of the paymaster ${paymaster} rejected paymasterAndData.`,
|
|
@@ -169,7 +169,7 @@ Object.defineProperty(PaymasterDataRejectedError, "message", {
|
|
|
169
169
|
class PaymasterPostOpRevertedError extends viem_1.BaseError {
|
|
170
170
|
constructor({ cause, paymasterAndData, docsPath }) {
|
|
171
171
|
const paymaster = paymasterAndData
|
|
172
|
-
? (0,
|
|
172
|
+
? (0, utils_1.getAddressFromInitCodeOrPaymasterAndData)(paymasterAndData)
|
|
173
173
|
: "0x";
|
|
174
174
|
super([
|
|
175
175
|
`The postOp function of the paymaster ${paymaster} reverted.`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymaster.js","sourceRoot":"","sources":["../../errors/paymaster.ts"],"names":[],"mappings":";;;AAAA,+BAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"paymaster.js","sourceRoot":"","sources":["../../errors/paymaster.ts"],"names":[],"mappings":";;;AAAA,+BAA0C;AAC1C,qCAAoE;AAKpE,MAAa,yBAA0B,SAAQ,gBAAS;IAGpD,YAAY,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,KAKR,EAAE;QACF,MAAM,SAAS,GAAG,gBAAgB;YAC9B,CAAC,CAAC,IAAA,gDAAwC,EAAC,gBAAgB,CAAC;YAC5D,CAAC,CAAC,IAAI,CAAA;QAEV,KAAK,CACD;YACI,aAAa,SAAS,mBAAmB;YACzC,EAAE;YACF,qBAAqB;YACrB,+IAA+I;YAC/I,gFAAgF;YAChF,EAAE;YACF,QAAQ,CAAC,CAAC,CAAC,SAAS,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE;SACtC,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACI,KAAK;SACR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;WAAU,MAAM;EAAT,CAAS;AAoC3B,MAAa,4BAA6B,SAAQ,gBAAS;IAGvD,YAAY,EACR,KAAK,EACL,gBAAgB,EAChB,QAAQ,EAKX;QACG,MAAM,SAAS,GAAG,gBAAgB;YAC9B,CAAC,CAAC,IAAA,gDAAwC,EAAC,gBAAgB,CAAC;YAC5D,CAAC,CAAC,IAAI,CAAA;QAEV,KAAK,CACD;YACI,wCAAwC,SAAS,YAAY;YAC7D,EAAE;YACF,qBAAqB;YACrB,0SAA0S;YAC1S,mFAAmF;YACnF,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;QA3BI;;;;mBAAO,8BAA8B;WAAA;IA4B9C,CAAC;;AA9BL,oEA+BC;AA9BU;;;;WAAU,MAAM;EAAT,CAAS;AAmC3B,MAAa,4BAA6B,SAAQ,gBAAS;IAGvD,YAAY,EACR,KAAK,EACL,QAAQ,EAIX;QACG,KAAK,CACD;YACI,8DAA8D;YAC9D,EAAE;YACF,qBAAqB;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"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SendUserOperationError = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("./utils.js");
|
|
6
6
|
class SendUserOperationError extends viem_1.BaseError {
|
|
7
7
|
constructor(cause, { userOperation, entryPoint, docsPath }) {
|
|
8
|
-
const prettyArgs = (0,
|
|
8
|
+
const prettyArgs = (0, utils_1.prettyPrint)({
|
|
9
9
|
sender: userOperation.sender,
|
|
10
10
|
nonce: userOperation.nonce,
|
|
11
11
|
initCode: userOperation.initCode,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../errors/sendUserOperation.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEhC,
|
|
1
|
+
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../errors/sendUserOperation.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAEhC,mCAAqC;AAKrC,MAAa,sBAAuB,SAAQ,gBAAS;IAKjD,YACI,KAAgB,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EAGX;QAED,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC;YAC3B,MAAM,EAAE,aAAa,CAAC,MAAM;YAC5B,KAAK,EAAE,aAAa,CAAC,KAAK;YAC1B,QAAQ,EAAE,aAAa,CAAC,QAAQ;YAChC,QAAQ,EAAE,aAAa,CAAC,QAAQ;YAChC,YAAY,EAAE,aAAa,CAAC,YAAY;YACxC,oBAAoB,EAAE,aAAa,CAAC,oBAAoB;YACxD,kBAAkB,EAAE,aAAa,CAAC,kBAAkB;YACpD,YAAY,EAAE,aAAa,CAAC,YAAY;YACxC,oBAAoB,EAAE,aAAa,CAAC,oBAAoB;YACxD,gBAAgB,EAAE,aAAa,CAAC,gBAAgB;YAChD,SAAS,EAAE,aAAa,CAAC,SAAS;YAClC,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;QArCG;;;;;WAAgB;QAEhB;;;;mBAAO,wBAAwB;WAAA;QAoCpC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACtB,CAAC;CACJ;AAzCD,wDAyCC"}
|
package/_cjs/index.js
CHANGED
|
@@ -2,36 +2,36 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
6
|
-
Object.defineProperty(exports, "getSenderAddress", { enumerable: true, get: function () { return
|
|
7
|
-
const
|
|
8
|
-
Object.defineProperty(exports, "chainId", { enumerable: true, get: function () { return
|
|
9
|
-
const
|
|
10
|
-
Object.defineProperty(exports, "estimateUserOperationGas", { enumerable: true, get: function () { return
|
|
11
|
-
const
|
|
12
|
-
Object.defineProperty(exports, "getUserOperationByHash", { enumerable: true, get: function () { return
|
|
13
|
-
const
|
|
14
|
-
Object.defineProperty(exports, "getUserOperationReceipt", { enumerable: true, get: function () { return
|
|
15
|
-
const
|
|
16
|
-
Object.defineProperty(exports, "sendUserOperation", { enumerable: true, get: function () { return
|
|
17
|
-
const
|
|
18
|
-
Object.defineProperty(exports, "supportedEntryPoints", { enumerable: true, get: function () { return
|
|
19
|
-
const
|
|
20
|
-
Object.defineProperty(exports, "waitForUserOperationReceipt", { enumerable: true, get: function () { return
|
|
21
|
-
const
|
|
22
|
-
Object.defineProperty(exports, "WaitForUserOperationReceiptTimeoutError", { enumerable: true, get: function () { return
|
|
23
|
-
const
|
|
24
|
-
Object.defineProperty(exports, "getAccountNonce", { enumerable: true, get: function () { return
|
|
25
|
-
const
|
|
26
|
-
Object.defineProperty(exports, "createBundlerClient", { enumerable: true, get: function () { return
|
|
27
|
-
const
|
|
28
|
-
Object.defineProperty(exports, "createSmartAccountClient", { enumerable: true, get: function () { return
|
|
29
|
-
const
|
|
30
|
-
Object.defineProperty(exports, "bundlerActions", { enumerable: true, get: function () { return
|
|
31
|
-
const
|
|
32
|
-
Object.defineProperty(exports, "smartAccountActions", { enumerable: true, get: function () { return
|
|
33
|
-
const
|
|
34
|
-
Object.defineProperty(exports, "getUserOperationHash", { enumerable: true, get: function () { return
|
|
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
35
|
tslib_1.__exportStar(require("./utils/index.js"), exports);
|
|
36
36
|
tslib_1.__exportStar(require("./errors/index.js"), exports);
|
|
37
37
|
//# sourceMappingURL=index.js.map
|
package/_cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;AAaA,
|
|
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"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBundlerError = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
-
const errors_1 = require("../../errors");
|
|
6
|
-
const account_1 = require("../../errors/account");
|
|
7
|
-
const paymaster_1 = require("../../errors/paymaster");
|
|
5
|
+
const errors_1 = require("../../errors/index.js");
|
|
6
|
+
const account_1 = require("../../errors/account.js");
|
|
7
|
+
const paymaster_1 = require("../../errors/paymaster.js");
|
|
8
8
|
function getBundlerError(err, args) {
|
|
9
9
|
const message = (err.details || "").toLowerCase();
|
|
10
10
|
const executionRevertedError = err instanceof viem_1.BaseError
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getEstimateUserOperationGasError = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
-
const estimateUserOperationGas_1 = require("../../errors/estimateUserOperationGas");
|
|
6
|
-
const getBundlerError_1 = require("./getBundlerError");
|
|
5
|
+
const estimateUserOperationGas_1 = require("../../errors/estimateUserOperationGas.js");
|
|
6
|
+
const getBundlerError_1 = require("./getBundlerError.js");
|
|
7
7
|
function getEstimateUserOperationGasError(error, args) {
|
|
8
8
|
const cause = (() => {
|
|
9
9
|
const cause = (0, getBundlerError_1.getBundlerError)(error, args);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSendUserOperationError = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
-
const errors_1 = require("../../errors");
|
|
6
|
-
const getBundlerError_1 = require("./getBundlerError");
|
|
5
|
+
const errors_1 = require("../../errors/index.js");
|
|
6
|
+
const getBundlerError_1 = require("./getBundlerError.js");
|
|
7
7
|
function getSendUserOperationError(err, args) {
|
|
8
8
|
const cause = (() => {
|
|
9
9
|
const cause = (0, getBundlerError_1.getBundlerError)(err, args);
|
package/_cjs/utils/index.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAddressFromInitCodeOrPaymasterAndData = exports.isSmartAccountDeployed = exports.AccountOrClientNotFoundError = exports.signUserOperationHashWithECDSA = exports.
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "deepHexlify", { enumerable: true, get: function () { return
|
|
6
|
-
Object.defineProperty(exports, "transactionReceiptStatus", { enumerable: true, get: function () { return
|
|
7
|
-
const
|
|
8
|
-
Object.defineProperty(exports, "getAction", { enumerable: true, get: function () { return
|
|
9
|
-
const
|
|
10
|
-
Object.defineProperty(exports, "getAddressFromInitCodeOrPaymasterAndData", { enumerable: true, get: function () { return
|
|
11
|
-
const
|
|
12
|
-
Object.defineProperty(exports, "getRequiredPrefund", { enumerable: true, get: function () { return
|
|
13
|
-
const
|
|
14
|
-
Object.defineProperty(exports, "getUserOperationHash", { enumerable: true, get: function () { return
|
|
15
|
-
const
|
|
16
|
-
Object.defineProperty(exports, "isSmartAccountDeployed", { enumerable: true, get: function () { return
|
|
17
|
-
const
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.getAddressFromInitCodeOrPaymasterAndData = exports.providerToSmartAccountSigner = exports.isSmartAccountDeployed = exports.AccountOrClientNotFoundError = exports.signUserOperationHashWithECDSA = exports.walletClientToSmartAccountSigner = exports.getRequiredPrefund = exports.getUserOperationHash = exports.getAction = exports.deepHexlify = exports.transactionReceiptStatus = exports.parseAccount = void 0;
|
|
4
|
+
const deepHexlify_1 = require("./deepHexlify.js");
|
|
5
|
+
Object.defineProperty(exports, "deepHexlify", { enumerable: true, get: function () { return deepHexlify_1.deepHexlify; } });
|
|
6
|
+
Object.defineProperty(exports, "transactionReceiptStatus", { enumerable: true, get: function () { return deepHexlify_1.transactionReceiptStatus; } });
|
|
7
|
+
const getAction_1 = require("./getAction.js");
|
|
8
|
+
Object.defineProperty(exports, "getAction", { enumerable: true, get: function () { return getAction_1.getAction; } });
|
|
9
|
+
const getAddressFromInitCodeOrPaymasterAndData_1 = require("./getAddressFromInitCodeOrPaymasterAndData.js");
|
|
10
|
+
Object.defineProperty(exports, "getAddressFromInitCodeOrPaymasterAndData", { enumerable: true, get: function () { return getAddressFromInitCodeOrPaymasterAndData_1.getAddressFromInitCodeOrPaymasterAndData; } });
|
|
11
|
+
const getRequiredPrefund_1 = require("./getRequiredPrefund.js");
|
|
12
|
+
Object.defineProperty(exports, "getRequiredPrefund", { enumerable: true, get: function () { return getRequiredPrefund_1.getRequiredPrefund; } });
|
|
13
|
+
const getUserOperationHash_1 = require("./getUserOperationHash.js");
|
|
14
|
+
Object.defineProperty(exports, "getUserOperationHash", { enumerable: true, get: function () { return getUserOperationHash_1.getUserOperationHash; } });
|
|
15
|
+
const isSmartAccountDeployed_1 = require("./isSmartAccountDeployed.js");
|
|
16
|
+
Object.defineProperty(exports, "isSmartAccountDeployed", { enumerable: true, get: function () { return isSmartAccountDeployed_1.isSmartAccountDeployed; } });
|
|
17
|
+
const providerToSmartAccountSigner_1 = require("./providerToSmartAccountSigner.js");
|
|
18
|
+
Object.defineProperty(exports, "providerToSmartAccountSigner", { enumerable: true, get: function () { return providerToSmartAccountSigner_1.providerToSmartAccountSigner; } });
|
|
19
|
+
const signUserOperationHashWithECDSA_1 = require("./signUserOperationHashWithECDSA.js");
|
|
20
|
+
Object.defineProperty(exports, "AccountOrClientNotFoundError", { enumerable: true, get: function () { return signUserOperationHashWithECDSA_1.AccountOrClientNotFoundError; } });
|
|
21
|
+
Object.defineProperty(exports, "signUserOperationHashWithECDSA", { enumerable: true, get: function () { return signUserOperationHashWithECDSA_1.signUserOperationHashWithECDSA; } });
|
|
22
|
+
const walletClientToSmartAccountSigner_1 = require("./walletClientToSmartAccountSigner.js");
|
|
23
|
+
Object.defineProperty(exports, "walletClientToSmartAccountSigner", { enumerable: true, get: function () { return walletClientToSmartAccountSigner_1.walletClientToSmartAccountSigner; } });
|
|
22
24
|
function parseAccount(account) {
|
|
23
25
|
if (typeof account === "string")
|
|
24
26
|
return { address: account, type: "json-rpc" };
|
package/_cjs/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":";;;AACA,+CAAqE;AA4BjE,4FA5BK,yBAAW,OA4BL;AADX,yGA3BkB,sCAAwB,OA2BlB;AA1B5B,2CAAuC;AA4BnC,0FA5BK,qBAAS,OA4BL;AA3Bb,yGAAqG;AAsCjG,yHAtCK,mFAAwC,OAsCL;AArC5C,6DAG6B;AAyBzB,mGA1BA,uCAAkB,OA0BA;AAxBtB,iEAG+B;AAoB3B,qGArBA,2CAAoB,OAqBA;AAnBxB,qEAAiE;AA2B7D,uGA3BK,+CAAsB,OA2BL;AA1B1B,iFAA6E;AA2BzE,6GA3BK,2DAA4B,OA2BL;AA1BhC,qFAIyC;AAoBrC,6GAvBA,6DAA4B,OAuBA;AAF5B,+GAnBA,+DAA8B,OAmBA;AAjBlC,yFAAqF;AAcjF,iHAdK,mEAAgC,OAcL;AAZpC,SAAgB,YAAY,CAAC,OAA0B;IACnD,IAAI,OAAO,OAAO,KAAK,QAAQ;QAC3B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;IACjD,OAAO,OAAO,CAAA;AAClB,CAAC;AAJD,oCAIC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.providerToSmartAccountSigner = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const walletClientToSmartAccountSigner_1 = require("./walletClientToSmartAccountSigner.js");
|
|
6
|
+
const providerToSmartAccountSigner = async (provider, signerAddress) => {
|
|
7
|
+
let account;
|
|
8
|
+
if (!signerAddress) {
|
|
9
|
+
;
|
|
10
|
+
[account] = await provider.request({ method: "eth_requestAccounts" });
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
account = signerAddress;
|
|
14
|
+
}
|
|
15
|
+
const walletClient = (0, viem_1.createWalletClient)({
|
|
16
|
+
account: account,
|
|
17
|
+
transport: (0, viem_1.custom)(provider)
|
|
18
|
+
});
|
|
19
|
+
return (0, walletClientToSmartAccountSigner_1.walletClientToSmartAccountSigner)(walletClient);
|
|
20
|
+
};
|
|
21
|
+
exports.providerToSmartAccountSigner = providerToSmartAccountSigner;
|
|
22
|
+
//# sourceMappingURL=providerToSmartAccountSigner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerToSmartAccountSigner.js","sourceRoot":"","sources":["../../utils/providerToSmartAccountSigner.ts"],"names":[],"mappings":";;;AAAA,+BAKa;AACb,yFAAqF;AAE9E,MAAM,4BAA4B,GAAG,KAAK,EAC7C,QAAyB,EACzB,aAAmB,EACrB,EAAE;IACA,IAAI,OAAY,CAAA;IAChB,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,CAAC;QAAA,CAAC,OAAO,CAAC,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC,CAAA;IAC1E,CAAC;SAAM,CAAC;QACJ,OAAO,GAAG,aAAa,CAAA;IAC3B,CAAC;IACD,MAAM,YAAY,GAAG,IAAA,yBAAkB,EAAC;QACpC,OAAO,EAAE,OAAc;QACvB,SAAS,EAAE,IAAA,aAAM,EAAC,QAAQ,CAAC;KAC9B,CAAC,CAAA;IACF,OAAO,IAAA,mEAAgC,EAAC,YAAY,CAAC,CAAA;AACzD,CAAC,CAAA;AAfY,QAAA,4BAA4B,gCAexC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.signUserOperationHashWithECDSA = exports.AccountOrClientNotFoundError = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const _1 = require("./index.js");
|
|
6
|
+
const getUserOperationHash_1 = require("./getUserOperationHash.js");
|
|
7
7
|
class AccountOrClientNotFoundError extends viem_1.BaseError {
|
|
8
8
|
constructor({ docsPath } = {}) {
|
|
9
9
|
super([
|
|
@@ -32,13 +32,13 @@ const signUserOperationHashWithECDSA = async ({ client, account: account_ = clie
|
|
|
32
32
|
userOperationHash = hash;
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
35
|
-
userOperationHash = (0,
|
|
35
|
+
userOperationHash = (0, getUserOperationHash_1.getUserOperationHash)({
|
|
36
36
|
userOperation,
|
|
37
37
|
chainId,
|
|
38
38
|
entryPoint
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
const account = (0,
|
|
41
|
+
const account = (0, _1.parseAccount)(account_);
|
|
42
42
|
if (account.type === "local")
|
|
43
43
|
return account.signMessage({
|
|
44
44
|
message: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUserOperationHashWithECDSA.js","sourceRoot":"","sources":["../../utils/signUserOperationHashWithECDSA.ts"],"names":[],"mappings":";;;AAAA,+BASa;AAGb,
|
|
1
|
+
{"version":3,"file":"signUserOperationHashWithECDSA.js","sourceRoot":"","sources":["../../utils/signUserOperationHashWithECDSA.ts"],"names":[],"mappings":";;;AAAA,+BASa;AAGb,yBAAiC;AACjC,iEAA6D;AAsB7D,MAAa,4BAA6B,SAAQ,gBAAS;IAEvD,YAAY,EAAE,QAAQ,KAA4B,EAAE;QAChD,KAAK,CACD;YACI,wDAAwD;YACxD,wHAAwH;SAC3H,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACI,QAAQ;YACR,QAAQ,EAAE,SAAS;SACtB,CACJ,CAAA;QAXI;;;;mBAAO,8BAA8B;WAAA;IAY9C,CAAC;CACJ;AAdD,oEAcC;AAyBM,MAAM,8BAA8B,GAAG,KAAK,EAIjD,EACE,MAAM,EACN,OAAO,EAAE,QAAQ,GAAG,MAAM,EAAE,OAAO,EACnC,IAAI,EACJ,aAAa,EACb,OAAO,EACP,UAAU,EAKb,EAAgB,EAAE;IACf,IAAI,CAAC,QAAQ;QACT,MAAM,IAAI,4BAA4B,CAAC;YACnC,QAAQ,EACJ,gEAAgE;SACvE,CAAC,CAAA;IAEN,IAAI,iBAAuB,CAAA;IAE3B,IAAI,IAAI,EAAE,CAAC;QACP,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC;SAAM,CAAC;QACJ,iBAAiB,GAAG,IAAA,2CAAoB,EAAC;YACrC,aAAa;YACb,OAAO;YACP,UAAU;SACb,CAAC,CAAA;IACN,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,eAAY,EAAC,QAAQ,CAAC,CAAA;IAEtC,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO;QACxB,OAAO,OAAO,CAAC,WAAW,CAAC;YACvB,OAAO,EAAE;gBACL,GAAG,EAAE,iBAAiB;aACzB;SACJ,CAAC,CAAA;IAEN,IAAI,CAAC,MAAM;QACP,MAAM,IAAI,4BAA4B,CAAC;YACnC,QAAQ,EACJ,gEAAgE;SACvE,CAAC,CAAA;IAEN,OAAO,MAAM,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,eAAe;QACvB,MAAM,EAAE,CAAC,iBAAiB,EAAE,OAAO,CAAC,OAAO,CAAC;KAC/C,CAAC,CAAA;AACN,CAAC,CAAA;AArDY,QAAA,8BAA8B,kCAqD1C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.walletClientToSmartAccountSigner = void 0;
|
|
4
4
|
const actions_1 = require("viem/actions");
|
|
5
|
-
function
|
|
5
|
+
function walletClientToSmartAccountSigner(walletClient) {
|
|
6
6
|
return {
|
|
7
7
|
address: walletClient.account.address,
|
|
8
8
|
type: "local",
|
|
@@ -19,5 +19,5 @@ function walletClientToCustomSigner(walletClient) {
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
exports.
|
|
23
|
-
//# sourceMappingURL=
|
|
22
|
+
exports.walletClientToSmartAccountSigner = walletClientToSmartAccountSigner;
|
|
23
|
+
//# sourceMappingURL=walletClientToSmartAccountSigner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletClientToSmartAccountSigner.js","sourceRoot":"","sources":["../../utils/walletClientToSmartAccountSigner.ts"],"names":[],"mappings":";;;AAYA,0CAA4C;AAG5C,SAAgB,gCAAgC,CAG5C,YAAsD;IAEtD,OAAO;QACH,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO;QACrC,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO;QACvC,WAAW,EAAE,KAAK,EAAE,EAChB,OAAO,EACoB,EAAgB,EAAE;YAC7C,OAAO,YAAY,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;QAChD,CAAC;QACD,KAAK,CAAC,aAAa,CAKjB,SAAwD;YACtD,OAAO,IAAA,uBAAa,EAChB,YAAY,EACZ;gBACI,OAAO,EAAE,YAAY,CAAC,OAAO;gBAC7B,GAAG,SAAS;aACf,CACJ,CAAA;QACL,CAAC;KACJ,CAAA;AACL,CAAC;AA9BD,4EA8BC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateKeyToBiconomySmartAccount.js","sourceRoot":"","sources":["../../../accounts/biconomy/privateKeyToBiconomySmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAEH,4BAA4B,EAC/B,MAAM,
|
|
1
|
+
{"version":3,"file":"privateKeyToBiconomySmartAccount.js","sourceRoot":"","sources":["../../../accounts/biconomy/privateKeyToBiconomySmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAEH,4BAA4B,EAC/B,MAAM,gCAAgC,CAAA;AAEvC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAIlD,MAA6C,EAC7C,EACI,UAAU,EACV,UAAU,EACV,KAAK,GAAG,EAAE,EAKb;IAED,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAA;IACzD,OAAO,4BAA4B,CAAC,MAAM,EAAE;QACxC,MAAM,EAAE,iBAAiB;QACzB,UAAU;QACV,KAAK;KACR,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerToBiconomySmartAccount.js","sourceRoot":"","sources":["../../../accounts/biconomy/signerToBiconomySmartAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAQH,SAAS,EACT,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,kBAAkB,EACrB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"signerToBiconomySmartAccount.js","sourceRoot":"","sources":["../../../accounts/biconomy/signerToBiconomySmartAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAQH,SAAS,EACT,mBAAmB,EACnB,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,kBAAkB,EACrB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;A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AAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC;aAC1B,CAAC,CAAA;QACN,CAAC;QAED,4DAA4D;QAC5D,KAAK,CAAC,iBAAiB,CAAC,cAAc;YAClC,MAAM,aAAa,GACf,kBAAkB,CAAC,+BAA+B,CAAA;YACtD,MAAM,WAAW,GAAG,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;YAC9D,OAAO,6FAA6F,WAAW,kQAAkQ,CAAA;QACrX,CAAC;KACJ,CAAA;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../accounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAEjF,OAAO,EAEH,0BAA0B,EAC7B,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAE7E,OAAO,EAGH,wBAAwB,EAC3B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAEH,+BAA+B,EAClC,MAAM,0CAA0C,CAAA;AAEjD,OAAO,EAEH,4BAA4B,EAC/B,MAAM,yCAAyC,CAAA;AAEhD,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAA;AAE9F,OAAO,EACH,yCAAyC,EAG5C,MAAM,SAAS,CAAA;AAEhB,OAAO,EAIH,wBAAwB,EAExB,0BAA0B,EAC1B,yCAAyC,EACzC,gCAAgC,EAChC,8BAA8B,EAE9B,4BAA4B,EAE5B,+BAA+B,EAE/B,4BAA4B,EAC/B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerToEcdsaKernelSmartAccount.js","sourceRoot":"","sources":["../../../accounts/kernel/signerToEcdsaKernelSmartAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAQH,SAAS,EACT,kBAAkB,EAClB,cAAc,EACjB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EACH,UAAU,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EAChB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"signerToEcdsaKernelSmartAccount.js","sourceRoot":"","sources":["../../../accounts/kernel/signerToEcdsaKernelSmartAccount.ts"],"names":[],"mappings":"AACA,OAAO,EAQH,SAAS,EACT,kBAAkB,EAClB,cAAc,EACjB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EACH,UAAU,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EAChB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAE3E,OAAO,EACH,yCAAyC,EAE5C,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAOxE;;GAEG;AACH,MAAM,gBAAgB,GAAG;IACrB;QACI,MAAM,EAAE;YACJ;gBACI,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,SAAS;aAClB;YACD;gBACI,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,OAAO;aAChB;YACD;gBACI,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE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AAkB,CAAC;oBACtB,GAAG,EAAE,gBAAgB;oBACrB,YAAY,EAAE,cAAc;oBAC5B,IAAI,EAAE;wBACF,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;4BACb,EAAE,EAAE,EAAE,CAAC,EAAE;4BACT,KAAK,EAAE,EAAE,CAAC,KAAK;4BACf,IAAI,EAAE,EAAE,CAAC,IAAI;yBAChB,CAAC,CAAC;qBACN;iBACJ,CAAC,CAAA;YACN,CAAC;YACD,uBAAuB;YACvB,OAAO,kBAAkB,CAAC;gBACtB,GAAG,EAAE,gBAAgB;gBACrB,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;aACzC,CAAC,CAAA;QACN,CAAC;QAED,6BAA6B;QAC7B,KAAK,CAAC,iBAAiB,CAAC,cAAc;YAClC,OAAO,8IAA8I,CAAA;QACzJ,CAAC;KACJ,CAAA;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateKeyToSafeSmartAccount.js","sourceRoot":"","sources":["../../accounts/privateKeyToSafeSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAGH,wBAAwB,EAC3B,MAAM
|
|
1
|
+
{"version":3,"file":"privateKeyToSafeSmartAccount.js","sourceRoot":"","sources":["../../accounts/privateKeyToSafeSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAGH,wBAAwB,EAC3B,MAAM,4BAA4B,CAAA;AAEnC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAI9C,MAAkC,EAClC,EACI,UAAU,EACV,WAAW,EACX,UAAU,EACV,mBAAmB,EAAE,oBAAoB,EACzC,qBAAqB,EAAE,sBAAsB,EAC7C,uBAAuB,EAAE,wBAAwB,EACjD,oBAAoB,EAAE,qBAAqB,EAC3C,gBAAgB,EAAE,iBAAiB,EACnC,wBAAwB,EAAE,yBAAyB,EACnD,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,EAAE,EAChB,iBAAiB,GAAG,EAAE,EAkBzB;IAED,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAA;IAEzD,OAAO,wBAAwB,CAAC,MAAM,EAAE;QACpC,MAAM,EAAE,iBAAiB;QACzB,WAAW;QACX,UAAU;QACV,mBAAmB,EAAE,oBAAoB;QACzC,qBAAqB,EAAE,sBAAsB;QAC7C,uBAAuB,EAAE,wBAAwB;QACjD,oBAAoB,EAAE,qBAAqB;QAC3C,gBAAgB,EAAE,iBAAiB;QACnC,wBAAwB,EAAE,yBAAyB;QACnD,SAAS;QACT,WAAW;QACX,iBAAiB;KACpB,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateKeyToSimpleSmartAccount.js","sourceRoot":"","sources":["../../accounts/privateKeyToSimpleSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAEH,0BAA0B,EAC7B,MAAM,
|
|
1
|
+
{"version":3,"file":"privateKeyToSimpleSmartAccount.js","sourceRoot":"","sources":["../../accounts/privateKeyToSimpleSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAMN,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAEH,0BAA0B,EAC7B,MAAM,8BAA8B,CAAA;AAErC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAIhD,MAA6C,EAC7C,EACI,UAAU,EACV,cAAc,EACd,UAAU,EACV,KAAK,GAAG,EAAE,EAMb;IAED,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAA;IAEzD,OAAO,0BAA0B,CAAC,MAAM,EAAE;QACtC,MAAM,EAAE,iBAAiB;QACzB,cAAc;QACd,UAAU;QACV,KAAK;KACR,CAAC,CAAA;AACN,CAAC"}
|