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/_types/index.d.ts
CHANGED
|
@@ -1,33 +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, type 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
|
|
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, type 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
24
|
export type { SendUserOperationParameters, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType, GetSenderAddressParams, GetAccountNonceParams, BundlerClient, BundlerActions, WaitForUserOperationReceiptParameters, SmartAccountClient, SmartAccountClientConfig, SmartAccountActions };
|
|
25
25
|
export { sendUserOperation, estimateUserOperationGas, supportedEntryPoints, chainId, getUserOperationByHash, getUserOperationReceipt, getSenderAddress, getAccountNonce, waitForUserOperationReceipt, createBundlerClient, bundlerActions, WaitForUserOperationReceiptTimeoutError, createSmartAccountClient, smartAccountActions };
|
|
26
|
-
import type { UserOperation } from "./types/userOperation
|
|
26
|
+
import type { UserOperation } from "./types/userOperation";
|
|
27
27
|
export { type UserOperation };
|
|
28
|
-
import type { GetUserOperationHashParams } from "./utils/getUserOperationHash
|
|
29
|
-
import { getUserOperationHash } from "./utils/getUserOperationHash
|
|
28
|
+
import type { GetUserOperationHashParams } from "./utils/getUserOperationHash";
|
|
29
|
+
import { getUserOperationHash } from "./utils/getUserOperationHash";
|
|
30
30
|
export { getUserOperationHash, type GetUserOperationHashParams };
|
|
31
|
-
export * from "./utils
|
|
32
|
-
export * from "./errors
|
|
31
|
+
export * from "./utils";
|
|
32
|
+
export * from "./errors";
|
|
33
33
|
//# sourceMappingURL=index.d.ts.map
|
package/_types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kCAAkC,EAClC,kCAAkC,EACrC,MAAM
|
|
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,2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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,OAAO,EAAE,KAAK,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, Hash, Hex } from "viem";
|
|
2
2
|
import type { PartialBy } from "viem/types/utils";
|
|
3
|
-
import type { UserOperationWithBigIntAsHex } from "./userOperation
|
|
3
|
+
import type { UserOperationWithBigIntAsHex } from "./userOperation";
|
|
4
4
|
export type BundlerRpcSchema = [
|
|
5
5
|
{
|
|
6
6
|
Method: "eth_sendUserOperation";
|
|
@@ -1 +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,4BAA4B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../types/b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B,QAAQ,EAAE,GAAG,CAAA;QACb,gBAAgB,EAAE,GAAG,CAAA;QACrB,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,GAAG,EAAE,CAAA;KAChB,EAAE,CAAA;CACN,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,CAAC,CAAC,EAAE,MAAM,GAAG;QACT,OAAO,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"}
|
package/_types/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Account, Chain, Client, Transport } from "viem";
|
|
2
|
-
import type { SmartAccount } from "../accounts/types
|
|
3
|
-
import type { UserOperation } from "./userOperation
|
|
2
|
+
import type { SmartAccount } from "../accounts/types";
|
|
3
|
+
import type { UserOperation } from "./userOperation";
|
|
4
4
|
export type { UserOperation };
|
|
5
5
|
type IsUndefined<T> = [undefined] extends [T] ? true : false;
|
|
6
6
|
export type GetAccountParameterWithClient<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined> = IsUndefined<TAccount> extends true ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":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EAAE,CAAA;AAEN,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAG9E,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,GAAG,IAAI,CAAC,SAAS,GAAG,GACvD,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACV,KAAK,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, Hash, Hex } from "viem";
|
|
2
2
|
import type { PartialBy } from "viem/types/utils";
|
|
3
|
-
import type { UserOperationWithBigIntAsHex } from "./userOperation
|
|
3
|
+
import type { UserOperationWithBigIntAsHex } from "./userOperation";
|
|
4
4
|
type PimlicoUserOperationGasPriceWithBigIntAsHex = {
|
|
5
5
|
slow: {
|
|
6
6
|
maxFeePerGas: Hex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../types/pimlico.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,4BAA4B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../types/pimlico.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,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAEnE,KAAK,2CAA2C,GAAG;IAC/C,IAAI,EAAE;QACF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AAG,CAAA;YACrB,kBAAkB,EAAE,GAAG,CAAA;YACvB,oBAAoB,EAAE,GAAG,CAAA;YACzB,YAAY,EAAE,GAAG,CAAA;SACpB,CAAA;KACJ;IACD;QACI,MAAM,EAAE,gCAAgC,CAAA;QACxC,UAAU,EAAE;YACR,aAAa,EAAE,4BAA4B;YAC3C,UAAU,EAAE,OAAO;YACnB,oBAAoB,EAAE,MAAM,EAAE;SACjC,CAAA;QACD,UAAU,EAAE;YACR,mBAAmB,EAAE,MAAM,CAAA;YAC3B,IAAI,EAAE;gBACF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;gBACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;gBACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;gBACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;aAC7B,CAAA;SACJ,EAAE,CAAA;KACN;CACJ,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, Hex } from "viem";
|
|
2
2
|
import type { PartialBy } from "viem/types/utils";
|
|
3
|
-
import type { UserOperationWithBigIntAsHex } from "./userOperation
|
|
3
|
+
import type { UserOperationWithBigIntAsHex } from "./userOperation";
|
|
4
4
|
interface StackupPaymasterContextType {
|
|
5
5
|
type: "erc20token" | "payg";
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stackup.d.ts","sourceRoot":"","sources":["../../types/stackup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"stackup.d.ts","sourceRoot":"","sources":["../../types/stackup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAEnE,UAAU,2BAA2B;IACjC,IAAI,EAAE,YAAY,GAAG,MAAM,CAAA;CAC9B;AAED,MAAM,MAAM,uBAAuB,GAC7B,CAAC,2BAA2B,GAAG;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,GACrE,CAAC,2BAA2B,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAEtD,MAAM,MAAM,yBAAyB,GAAG;IACpC;QACI,MAAM,EAAE,yBAAyB,CAAA;QACjC,UAAU,EAAE;YACR,aAAa,EAAE,SAAS,CACpB,4BAA4B,EAC1B,cAAc,GACd,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,CACvB;YACD,UAAU,EAAE,OAAO;YACnB,OAAO,EAAE,uBAAuB;SACnC,CAAA;QACD,UAAU,EAAE;YACR,gBAAgB,EAAE,GAAG,CAAA;YACrB,kBAAkB,EAAE,GAAG,CAAA;YACvB,oBAAoB,EAAE,GAAG,CAAA;YACzB,YAAY,EAAE,GAAG,CAAA;SACpB,CAAA;KACJ;IACD;QACI,MAAM,EAAE,aAAa,CAAA;QACrB,UAAU,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;QACjC,UAAU,EAAE,OAAO,EAAE,CAAA;KACxB;CACJ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userOperation.d.ts","sourceRoot":"","sources":["../../types/userOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"userOperation.d.ts","sourceRoot":"","sources":["../../types/userOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE/B,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAE5C,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,kBAAkB,EAAE,GAAG,CAAA;IACvB,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Address, Hash } from "viem";
|
|
2
|
-
import type { UserOperation } from "../types/userOperation
|
|
2
|
+
import type { UserOperation } from "../types/userOperation";
|
|
3
3
|
export type GetUserOperationHashParams = {
|
|
4
4
|
userOperation: UserOperation;
|
|
5
5
|
entryPoint: Address;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserOperationHash.d.ts","sourceRoot":"","sources":["../../utils/getUserOperationHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAO,MAAM,MAAM,CAAA;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getUserOperationHash.d.ts","sourceRoot":"","sources":["../../utils/getUserOperationHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAO,MAAM,MAAM,CAAA;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAmC3D,MAAM,MAAM,0BAA0B,GAAG;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,oBAAoB,2CAI9B,0BAA0B,KAAG,IAO/B,CAAA"}
|
package/_types/utils/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { Account, Address } from "viem";
|
|
2
|
-
import { deepHexlify, transactionReceiptStatus } from "./deepHexlify
|
|
3
|
-
import { getAction } from "./getAction
|
|
4
|
-
import { getAddressFromInitCodeOrPaymasterAndData } from "./getAddressFromInitCodeOrPaymasterAndData
|
|
5
|
-
import { type GetRequiredPrefundReturnType, getRequiredPrefund } from "./getRequiredPrefund
|
|
6
|
-
import { type GetUserOperationHashParams, getUserOperationHash } from "./getUserOperationHash
|
|
7
|
-
import { isSmartAccountDeployed } from "./isSmartAccountDeployed
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { deepHexlify, transactionReceiptStatus } from "./deepHexlify";
|
|
3
|
+
import { getAction } from "./getAction";
|
|
4
|
+
import { getAddressFromInitCodeOrPaymasterAndData } from "./getAddressFromInitCodeOrPaymasterAndData";
|
|
5
|
+
import { type GetRequiredPrefundReturnType, getRequiredPrefund } from "./getRequiredPrefund";
|
|
6
|
+
import { type GetUserOperationHashParams, getUserOperationHash } from "./getUserOperationHash";
|
|
7
|
+
import { isSmartAccountDeployed } from "./isSmartAccountDeployed";
|
|
8
|
+
import { providerToSmartAccountSigner } from "./providerToSmartAccountSigner";
|
|
9
|
+
import { AccountOrClientNotFoundError, type SignUserOperationHashWithECDSAParams, signUserOperationHashWithECDSA } from "./signUserOperationHashWithECDSA";
|
|
10
|
+
import { walletClientToSmartAccountSigner } from "./walletClientToSmartAccountSigner";
|
|
10
11
|
export declare function parseAccount(account: Address | Account): Account;
|
|
11
|
-
export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund,
|
|
12
|
+
export { transactionReceiptStatus, deepHexlify, getAction, getUserOperationHash, getRequiredPrefund, walletClientToSmartAccountSigner, type GetRequiredPrefundReturnType, type GetUserOperationHashParams, signUserOperationHashWithECDSA, type SignUserOperationHashWithECDSAParams, AccountOrClientNotFoundError, isSmartAccountDeployed, providerToSmartAccountSigner, getAddressFromInitCodeOrPaymasterAndData };
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAA;AACrG,OAAO,EACH,KAAK,4BAA4B,EACjC,kBAAkB,EACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACH,KAAK,0BAA0B,EAC/B,oBAAoB,EACvB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAC7E,OAAO,EACH,4BAA4B,EAC5B,KAAK,oCAAoC,EACzC,8BAA8B,EACjC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAA;AAErF,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAIhE;AAED,OAAO,EACH,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,gCAAgC,EAChC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,8BAA8B,EAC9B,KAAK,oCAAoC,EACzC,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC5B,wCAAwC,EAC3C,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type EIP1193Provider, type Hex } from "viem";
|
|
2
|
+
export declare const providerToSmartAccountSigner: (provider: EIP1193Provider, signerAddress?: Hex) => Promise<import("../accounts").SmartAccountSigner<"custom", `0x${string}`>>;
|
|
3
|
+
//# sourceMappingURL=providerToSmartAccountSigner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providerToSmartAccountSigner.d.ts","sourceRoot":"","sources":["../../utils/providerToSmartAccountSigner.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,eAAe,EACpB,KAAK,GAAG,EAGX,MAAM,MAAM,CAAA;AAGb,eAAO,MAAM,4BAA4B,aAC3B,eAAe,kBACT,GAAG,+EAatB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Account, type Address, BaseError, type Chain, type Hash, type Hex, type Transport } from "viem";
|
|
2
|
-
import { type GetAccountParameterWithClient } from "../types
|
|
3
|
-
import type { UserOperation } from "../types/userOperation
|
|
2
|
+
import { type GetAccountParameterWithClient } from "../types";
|
|
3
|
+
import type { UserOperation } from "../types/userOperation";
|
|
4
4
|
export type SignUserOperationHashWithECDSAParams<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined> = GetAccountParameterWithClient<TTransport, TChain, TAccount> & ({
|
|
5
5
|
hash: Hash;
|
|
6
6
|
userOperation?: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUserOperationHashWithECDSA.d.ts","sourceRoot":"","sources":["../../utils/signUserOperationHashWithECDSA.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EAEV,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,SAAS,EACjB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"signUserOperationHashWithECDSA.d.ts","sourceRoot":"","sources":["../../utils/signUserOperationHashWithECDSA.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EAEV,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,SAAS,EACjB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,WAAW,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAI3D,MAAM,MAAM,oCAAoC,CAC5C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IAC1D,6BAA6B,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,GAC3D,CACM;IACI,IAAI,EAAE,IAAI,CAAA;IACV,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,OAAO,CAAC,EAAE,SAAS,CAAA;CACtB,GACD;IACI,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAClB,CACN,CAAA;AAEL,qBAAa,4BAA6B,SAAQ,SAAS;IAC9C,IAAI,SAAiC;gBAClC,EAAE,QAAQ,EAAE,GAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAO;CAYvD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,8BAA8B,+SAevC,QAAQ,GAAG,CAsCd,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Account, Address, Chain, Transport, WalletClient } from "viem";
|
|
2
|
+
import type { SmartAccountSigner } from "../accounts/types";
|
|
3
|
+
export declare function walletClientToSmartAccountSigner<TChain extends Chain | undefined = Chain | undefined>(walletClient: WalletClient<Transport, TChain, Account>): SmartAccountSigner<"custom", Address>;
|
|
4
|
+
//# sourceMappingURL=walletClientToSmartAccountSigner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"walletClientToSmartAccountSigner.d.ts","sourceRoot":"","sources":["../../utils/walletClientToSmartAccountSigner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EAGL,SAAS,EAGT,YAAY,EACf,MAAM,MAAM,CAAA;AAGb,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,wBAAgB,gCAAgC,CAC5C,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,YAAY,EAAE,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,GACvD,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CA0BvC"}
|
|
@@ -9,7 +9,7 @@ import { privateKeyToAccount } from "viem/accounts"
|
|
|
9
9
|
import {
|
|
10
10
|
type BiconomySmartAccount,
|
|
11
11
|
signerToBiconomySmartAccount
|
|
12
|
-
} from "./signerToBiconomySmartAccount
|
|
12
|
+
} from "./signerToBiconomySmartAccount"
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @description Creates a Biconomy Smart Account from a private key.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypedData } from "
|
|
1
|
+
import type { TypedData } from "viem"
|
|
2
2
|
import {
|
|
3
3
|
type Address,
|
|
4
4
|
type Chain,
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
} from "viem"
|
|
19
19
|
import { toAccount } from "viem/accounts"
|
|
20
20
|
import { getChainId, signMessage, signTypedData } from "viem/actions"
|
|
21
|
-
import { getAccountNonce } from "../../actions/public/getAccountNonce
|
|
22
|
-
import { getUserOperationHash } from "../../utils/getUserOperationHash
|
|
23
|
-
import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed
|
|
21
|
+
import { getAccountNonce } from "../../actions/public/getAccountNonce"
|
|
22
|
+
import { getUserOperationHash } from "../../utils/getUserOperationHash"
|
|
23
|
+
import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed"
|
|
24
24
|
import {
|
|
25
25
|
SignTransactionNotSupportedBySmartAccount,
|
|
26
26
|
type SmartAccount,
|
|
27
27
|
type SmartAccountSigner
|
|
28
|
-
} from "../types
|
|
28
|
+
} from "../types"
|
|
29
29
|
import {
|
|
30
30
|
BiconomyExecuteAbi,
|
|
31
31
|
BiconomyInitAbi
|
|
32
|
-
} from "./abi/BiconomySmartAccountAbi
|
|
32
|
+
} from "./abi/BiconomySmartAccountAbi"
|
|
33
33
|
// import Abis
|
|
34
34
|
|
|
35
35
|
export type BiconomySmartAccount<
|
package/accounts/index.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { privateKeyToSimpleSmartAccount } from "./privateKeyToSimpleSmartAccount
|
|
1
|
+
import { privateKeyToSimpleSmartAccount } from "./privateKeyToSimpleSmartAccount"
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
type SimpleSmartAccount,
|
|
5
5
|
signerToSimpleSmartAccount
|
|
6
|
-
} from "./signerToSimpleSmartAccount
|
|
6
|
+
} from "./signerToSimpleSmartAccount"
|
|
7
7
|
|
|
8
|
-
import { privateKeyToSafeSmartAccount } from "./privateKeyToSafeSmartAccount
|
|
8
|
+
import { privateKeyToSafeSmartAccount } from "./privateKeyToSafeSmartAccount"
|
|
9
9
|
|
|
10
10
|
import {
|
|
11
11
|
type SafeSmartAccount,
|
|
12
12
|
type SafeVersion,
|
|
13
13
|
signerToSafeSmartAccount
|
|
14
|
-
} from "./signerToSafeSmartAccount
|
|
14
|
+
} from "./signerToSafeSmartAccount"
|
|
15
15
|
|
|
16
16
|
import {
|
|
17
17
|
type KernelEcdsaSmartAccount,
|
|
18
18
|
signerToEcdsaKernelSmartAccount
|
|
19
|
-
} from "./kernel/signerToEcdsaKernelSmartAccount
|
|
19
|
+
} from "./kernel/signerToEcdsaKernelSmartAccount"
|
|
20
20
|
|
|
21
21
|
import {
|
|
22
22
|
type BiconomySmartAccount,
|
|
23
23
|
signerToBiconomySmartAccount
|
|
24
|
-
} from "./biconomy/signerToBiconomySmartAccount
|
|
24
|
+
} from "./biconomy/signerToBiconomySmartAccount"
|
|
25
25
|
|
|
26
|
-
import { privateKeyToBiconomySmartAccount } from "./biconomy/privateKeyToBiconomySmartAccount
|
|
26
|
+
import { privateKeyToBiconomySmartAccount } from "./biconomy/privateKeyToBiconomySmartAccount"
|
|
27
27
|
|
|
28
28
|
import {
|
|
29
29
|
SignTransactionNotSupportedBySmartAccount,
|
|
30
30
|
type SmartAccount,
|
|
31
31
|
type SmartAccountSigner
|
|
32
|
-
} from "./types
|
|
32
|
+
} from "./types"
|
|
33
33
|
|
|
34
34
|
export {
|
|
35
35
|
type SafeVersion,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypedData } from "
|
|
1
|
+
import type { TypedData } from "viem"
|
|
2
2
|
import {
|
|
3
3
|
type Address,
|
|
4
4
|
type Chain,
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
signMessage,
|
|
19
19
|
signTypedData
|
|
20
20
|
} from "viem/actions"
|
|
21
|
-
import { getAccountNonce } from "../../actions/public/getAccountNonce
|
|
22
|
-
import { getSenderAddress } from "../../actions/public/getSenderAddress
|
|
23
|
-
import { getUserOperationHash } from "../../utils/getUserOperationHash
|
|
24
|
-
import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed
|
|
25
|
-
import type { SmartAccount } from "../types
|
|
21
|
+
import { getAccountNonce } from "../../actions/public/getAccountNonce"
|
|
22
|
+
import { getSenderAddress } from "../../actions/public/getSenderAddress"
|
|
23
|
+
import { getUserOperationHash } from "../../utils/getUserOperationHash"
|
|
24
|
+
import { isSmartAccountDeployed } from "../../utils/isSmartAccountDeployed"
|
|
25
|
+
import type { SmartAccount } from "../types"
|
|
26
26
|
import {
|
|
27
27
|
SignTransactionNotSupportedBySmartAccount,
|
|
28
28
|
type SmartAccountSigner
|
|
29
|
-
} from "../types
|
|
30
|
-
import { KernelExecuteAbi, KernelInitAbi } from "./abi/KernelAccountAbi
|
|
29
|
+
} from "../types"
|
|
30
|
+
import { KernelExecuteAbi, KernelInitAbi } from "./abi/KernelAccountAbi"
|
|
31
31
|
|
|
32
32
|
export type KernelEcdsaSmartAccount<
|
|
33
33
|
transport extends Transport = Transport,
|
|
@@ -9,7 +9,7 @@ import { privateKeyToAccount } from "viem/accounts"
|
|
|
9
9
|
import {
|
|
10
10
|
type SimpleSmartAccount,
|
|
11
11
|
signerToSimpleSmartAccount
|
|
12
|
-
} from "./signerToSimpleSmartAccount
|
|
12
|
+
} from "./signerToSimpleSmartAccount"
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @description Creates an Simple Account from a private key.
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
signMessage,
|
|
28
28
|
signTypedData
|
|
29
29
|
} from "viem/actions"
|
|
30
|
-
import { getAccountNonce } from "../actions/public/getAccountNonce
|
|
31
|
-
import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed
|
|
30
|
+
import { getAccountNonce } from "../actions/public/getAccountNonce"
|
|
31
|
+
import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed"
|
|
32
32
|
import {
|
|
33
33
|
SignTransactionNotSupportedBySmartAccount,
|
|
34
34
|
type SmartAccount,
|
|
35
35
|
type SmartAccountSigner
|
|
36
|
-
} from "./types
|
|
36
|
+
} from "./types"
|
|
37
37
|
|
|
38
38
|
export type SafeVersion = "1.4.1"
|
|
39
39
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TypedData } from "
|
|
1
|
+
import type { TypedData } from "viem"
|
|
2
2
|
import {
|
|
3
3
|
type Address,
|
|
4
4
|
type Chain,
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
} from "viem"
|
|
13
13
|
import { toAccount } from "viem/accounts"
|
|
14
14
|
import { getChainId, signMessage, signTypedData } from "viem/actions"
|
|
15
|
-
import { getAccountNonce } from "../actions/public/getAccountNonce
|
|
16
|
-
import { getSenderAddress } from "../actions/public/getSenderAddress
|
|
17
|
-
import { getUserOperationHash } from "../utils/getUserOperationHash
|
|
18
|
-
import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed
|
|
15
|
+
import { getAccountNonce } from "../actions/public/getAccountNonce"
|
|
16
|
+
import { getSenderAddress } from "../actions/public/getSenderAddress"
|
|
17
|
+
import { getUserOperationHash } from "../utils/getUserOperationHash"
|
|
18
|
+
import { isSmartAccountDeployed } from "../utils/isSmartAccountDeployed"
|
|
19
19
|
import {
|
|
20
20
|
SignTransactionNotSupportedBySmartAccount,
|
|
21
21
|
type SmartAccount,
|
|
22
22
|
type SmartAccountSigner
|
|
23
|
-
} from "./types
|
|
23
|
+
} from "./types"
|
|
24
24
|
|
|
25
25
|
export type SimpleSmartAccount<
|
|
26
26
|
transport extends Transport = Transport,
|
package/accounts/types.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
type LocalAccount
|
|
8
8
|
} from "viem"
|
|
9
9
|
import type { Chain, EncodeDeployDataParameters, Transport } from "viem"
|
|
10
|
-
import { type UserOperation } from "../types
|
|
10
|
+
import { type UserOperation } from "../types"
|
|
11
11
|
|
|
12
12
|
export class SignTransactionNotSupportedBySmartAccount extends BaseError {
|
|
13
13
|
override name = "SignTransactionNotSupportedBySmartAccount"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Account, Chain, Client, Transport } from "viem"
|
|
2
|
-
import type { BundlerClient } from "../../clients/createBundlerClient
|
|
3
|
-
import type { BundlerRpcSchema } from "../../types/bundler
|
|
2
|
+
import type { BundlerClient } from "../../clients/createBundlerClient"
|
|
3
|
+
import type { BundlerRpcSchema } from "../../types/bundler"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns the supported chain id by the bundler service
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
type Transport
|
|
8
8
|
} from "viem"
|
|
9
9
|
import type { PartialBy } from "viem/types/utils"
|
|
10
|
-
import type { BundlerClient } from "../../clients/createBundlerClient
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type { UserOperation } from "../../types/userOperation
|
|
14
|
-
import { deepHexlify } from "../../utils/deepHexlify
|
|
10
|
+
import type { BundlerClient } from "../../clients/createBundlerClient"
|
|
11
|
+
import type { Prettify } from "../../types/"
|
|
12
|
+
import type { BundlerRpcSchema, StateOverrides } from "../../types/bundler"
|
|
13
|
+
import type { UserOperation } from "../../types/userOperation"
|
|
14
|
+
import { deepHexlify } from "../../utils/deepHexlify"
|
|
15
15
|
import {
|
|
16
16
|
type GetEstimateUserOperationGasErrorReturnType,
|
|
17
17
|
getEstimateUserOperationGasError
|
|
18
|
-
} from "../../utils/errors/getEstimateUserOperationGasError
|
|
18
|
+
} from "../../utils/errors/getEstimateUserOperationGasError"
|
|
19
19
|
|
|
20
20
|
export type EstimateUserOperationGasParameters = {
|
|
21
21
|
userOperation: PartialBy<
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Account, Address, Chain, Client, Hash, Transport } from "viem"
|
|
2
|
-
import type { BundlerClient } from "../../clients/createBundlerClient
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import type { UserOperation } from "../../types/userOperation
|
|
2
|
+
import type { BundlerClient } from "../../clients/createBundlerClient"
|
|
3
|
+
import type { Prettify } from "../../types/"
|
|
4
|
+
import type { BundlerRpcSchema } from "../../types/bundler"
|
|
5
|
+
import type { UserOperation } from "../../types/userOperation"
|
|
6
6
|
|
|
7
7
|
export type GetUserOperationByHashParameters = {
|
|
8
8
|
hash: Hash
|
|
@@ -7,11 +7,11 @@ import type {
|
|
|
7
7
|
Hex,
|
|
8
8
|
Transport
|
|
9
9
|
} from "viem"
|
|
10
|
-
import type { BundlerClient } from "../../clients/createBundlerClient
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type { TStatus } from "../../types/userOperation
|
|
14
|
-
import { transactionReceiptStatus } from "../../utils/deepHexlify
|
|
10
|
+
import type { BundlerClient } from "../../clients/createBundlerClient"
|
|
11
|
+
import type { Prettify } from "../../types"
|
|
12
|
+
import type { BundlerRpcSchema } from "../../types/bundler"
|
|
13
|
+
import type { TStatus } from "../../types/userOperation"
|
|
14
|
+
import { transactionReceiptStatus } from "../../utils/deepHexlify"
|
|
15
15
|
|
|
16
16
|
export type GetUserOperationReceiptParameters = {
|
|
17
17
|
hash: Hash
|
|
@@ -7,15 +7,15 @@ import type {
|
|
|
7
7
|
Hash,
|
|
8
8
|
Transport
|
|
9
9
|
} from "viem"
|
|
10
|
-
import type { BundlerClient } from "../../clients/createBundlerClient
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
10
|
+
import type { BundlerClient } from "../../clients/createBundlerClient"
|
|
11
|
+
import type { Prettify } from "../../types/"
|
|
12
|
+
import type { BundlerRpcSchema } from "../../types/bundler"
|
|
13
13
|
import type {
|
|
14
14
|
UserOperation,
|
|
15
15
|
UserOperationWithBigIntAsHex
|
|
16
|
-
} from "../../types/userOperation
|
|
17
|
-
import { deepHexlify } from "../../utils/deepHexlify
|
|
18
|
-
import { getSendUserOperationError } from "../../utils/errors/getSendUserOperationError
|
|
16
|
+
} from "../../types/userOperation"
|
|
17
|
+
import { deepHexlify } from "../../utils/deepHexlify"
|
|
18
|
+
import { getSendUserOperationError } from "../../utils/errors/getSendUserOperationError"
|
|
19
19
|
|
|
20
20
|
export type SendUserOperationParameters = {
|
|
21
21
|
userOperation: UserOperation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Account, Address, Chain, Client, Transport } from "viem"
|
|
2
|
-
import type { BundlerClient } from "../../clients/createBundlerClient
|
|
3
|
-
import type { BundlerRpcSchema } from "../../types/bundler
|
|
2
|
+
import type { BundlerClient } from "../../clients/createBundlerClient"
|
|
3
|
+
import type { BundlerRpcSchema } from "../../types/bundler"
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Returns the supported entrypoints by the bundler service
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
type Transport,
|
|
8
8
|
stringify
|
|
9
9
|
} from "viem"
|
|
10
|
-
import type { Prettify } from "../../types/
|
|
11
|
-
import { getAction } from "../../utils/getAction
|
|
12
|
-
import { observe } from "../../utils/observe
|
|
10
|
+
import type { Prettify } from "../../types/"
|
|
11
|
+
import { getAction } from "../../utils/getAction"
|
|
12
|
+
import { observe } from "../../utils/observe"
|
|
13
13
|
import {
|
|
14
14
|
type GetUserOperationReceiptReturnType,
|
|
15
15
|
getUserOperationReceipt
|
|
16
|
-
} from "./getUserOperationReceipt
|
|
16
|
+
} from "./getUserOperationReceipt"
|
|
17
17
|
|
|
18
18
|
export class WaitForUserOperationReceiptTimeoutError extends BaseError {
|
|
19
19
|
override name = "WaitForUserOperationReceiptTimeoutError"
|