permissionless 0.0.35 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +32 -15
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +38 -20
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
- package/_cjs/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -1
- package/_cjs/accounts/safe/signerToSafeSmartAccount.js +42 -11
- package/_cjs/accounts/safe/signerToSafeSmartAccount.js.map +1 -1
- package/_cjs/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -1
- package/_cjs/accounts/simple/signerToSimpleSmartAccount.js +104 -44
- package/_cjs/accounts/simple/signerToSimpleSmartAccount.js.map +1 -1
- package/_cjs/accounts/types.js.map +1 -1
- package/_cjs/actions/bundler/chainId.js.map +1 -1
- package/_cjs/actions/bundler/estimateUserOperationGas.js +20 -3
- package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -1
- package/_cjs/actions/bundler/getUserOperationByHash.js +28 -11
- package/_cjs/actions/bundler/getUserOperationByHash.js.map +1 -1
- package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -1
- package/_cjs/actions/bundler/sendUserOperation.js.map +1 -1
- package/_cjs/actions/bundler/supportedEntryPoints.js.map +1 -1
- package/_cjs/actions/pimlico/getUserOperationGasPrice.js +7 -7
- package/_cjs/actions/pimlico/getUserOperationGasPrice.js.map +1 -1
- package/_cjs/actions/pimlico/sponsorUserOperation.js +19 -7
- package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -1
- package/_cjs/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
- package/_cjs/actions/public/getAccountNonce.js.map +1 -1
- package/_cjs/actions/public/getSenderAddress.js +5 -2
- package/_cjs/actions/public/getSenderAddress.js.map +1 -1
- package/_cjs/actions/smartAccount/deployContract.js +3 -4
- package/_cjs/actions/smartAccount/deployContract.js.map +1 -1
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +142 -19
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
- package/_cjs/actions/smartAccount/sendTransaction.js +3 -4
- package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -1
- package/_cjs/actions/smartAccount/sendTransactions.js +3 -4
- package/_cjs/actions/smartAccount/sendTransactions.js.map +1 -1
- package/_cjs/actions/smartAccount/sendUserOperation.js +1 -1
- package/_cjs/actions/smartAccount/sendUserOperation.js.map +1 -1
- package/_cjs/actions/smartAccount/signMessage.js.map +1 -1
- package/_cjs/actions/smartAccount/signTypedData.js.map +1 -1
- package/_cjs/actions/smartAccount/writeContract.js.map +1 -1
- package/_cjs/actions/stackup/accounts.js +2 -2
- package/_cjs/actions/stackup/accounts.js.map +1 -1
- package/_cjs/actions/stackup/sponsorUserOperation.js +20 -12
- package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -1
- package/_cjs/clients/createBundlerClient.js +1 -1
- package/_cjs/clients/createBundlerClient.js.map +1 -1
- package/_cjs/clients/createSmartAccountClient.js +3 -3
- package/_cjs/clients/createSmartAccountClient.js.map +1 -1
- package/_cjs/clients/decorators/bundler.js +6 -3
- package/_cjs/clients/decorators/bundler.js.map +1 -1
- package/_cjs/clients/decorators/pimlico.js +6 -3
- package/_cjs/clients/decorators/pimlico.js.map +1 -1
- package/_cjs/clients/decorators/smartAccount.js +7 -7
- package/_cjs/clients/decorators/smartAccount.js.map +1 -1
- package/_cjs/clients/decorators/stackup.js.map +1 -1
- package/_cjs/clients/pimlico.js +4 -2
- package/_cjs/clients/pimlico.js.map +1 -1
- package/_cjs/clients/stackup.js +3 -1
- package/_cjs/clients/stackup.js.map +1 -1
- package/_cjs/errors/estimateUserOperationGas.js.map +1 -1
- package/_cjs/errors/sendUserOperation.js.map +1 -1
- package/_cjs/types/entrypoint.js +3 -0
- package/_cjs/types/entrypoint.js.map +1 -0
- package/_cjs/utils/errors/getBundlerError.js.map +1 -1
- package/_cjs/utils/errors/getEstimateUserOperationGasError.js.map +1 -1
- package/_cjs/utils/errors/getSendUserOperationError.js.map +1 -1
- package/_cjs/utils/getEntryPointVersion.js +8 -0
- package/_cjs/utils/getEntryPointVersion.js.map +1 -0
- package/_cjs/utils/getRequiredPrefund.js +19 -6
- package/_cjs/utils/getRequiredPrefund.js.map +1 -1
- package/_cjs/utils/getUserOperationHash.js +81 -17
- package/_cjs/utils/getUserOperationHash.js.map +1 -1
- package/_cjs/utils/index.js +5 -1
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/providerToSmartAccountSigner.js +1 -1
- package/_cjs/utils/providerToSmartAccountSigner.js.map +1 -1
- package/_cjs/utils/signUserOperationHashWithECDSA.js +2 -2
- package/_cjs/utils/signUserOperationHashWithECDSA.js.map +1 -1
- package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
- package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js +32 -15
- package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
- package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js +38 -21
- package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
- package/_esm/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -1
- package/_esm/accounts/safe/signerToSafeSmartAccount.js +42 -11
- package/_esm/accounts/safe/signerToSafeSmartAccount.js.map +1 -1
- package/_esm/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -1
- package/_esm/accounts/simple/signerToSimpleSmartAccount.js +105 -44
- package/_esm/accounts/simple/signerToSimpleSmartAccount.js.map +1 -1
- package/_esm/accounts/types.js +0 -1
- package/_esm/accounts/types.js.map +1 -1
- package/_esm/actions/bundler/chainId.js.map +1 -1
- package/_esm/actions/bundler/estimateUserOperationGas.js +20 -3
- package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -1
- package/_esm/actions/bundler/getUserOperationByHash.js +28 -11
- package/_esm/actions/bundler/getUserOperationByHash.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/supportedEntryPoints.js.map +1 -1
- package/_esm/actions/pimlico/getUserOperationGasPrice.js +7 -7
- package/_esm/actions/pimlico/getUserOperationGasPrice.js.map +1 -1
- package/_esm/actions/pimlico/sponsorUserOperation.js +19 -7
- package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -1
- package/_esm/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
- package/_esm/actions/public/getAccountNonce.js.map +1 -1
- package/_esm/actions/public/getSenderAddress.js +6 -3
- package/_esm/actions/public/getSenderAddress.js.map +1 -1
- package/_esm/actions/smartAccount/deployContract.js +3 -4
- package/_esm/actions/smartAccount/deployContract.js.map +1 -1
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js +142 -19
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
- package/_esm/actions/smartAccount/sendTransaction.js +3 -4
- package/_esm/actions/smartAccount/sendTransaction.js.map +1 -1
- package/_esm/actions/smartAccount/sendTransactions.js +3 -4
- 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/stackup/accounts.js +2 -2
- package/_esm/actions/stackup/accounts.js.map +1 -1
- package/_esm/actions/stackup/sponsorUserOperation.js +20 -12
- package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -1
- package/_esm/clients/createBundlerClient.js +1 -1
- package/_esm/clients/createBundlerClient.js.map +1 -1
- package/_esm/clients/createSmartAccountClient.js +22 -3
- package/_esm/clients/createSmartAccountClient.js.map +1 -1
- package/_esm/clients/decorators/bundler.js +6 -3
- package/_esm/clients/decorators/bundler.js.map +1 -1
- package/_esm/clients/decorators/pimlico.js +6 -3
- package/_esm/clients/decorators/pimlico.js.map +1 -1
- package/_esm/clients/decorators/smartAccount.js +7 -7
- package/_esm/clients/decorators/smartAccount.js.map +1 -1
- package/_esm/clients/decorators/stackup.js.map +1 -1
- package/_esm/clients/pimlico.js +4 -2
- package/_esm/clients/pimlico.js.map +1 -1
- package/_esm/clients/stackup.js +3 -1
- package/_esm/clients/stackup.js.map +1 -1
- package/_esm/errors/estimateUserOperationGas.js.map +1 -1
- package/_esm/errors/sendUserOperation.js.map +1 -1
- package/_esm/types/entrypoint.js +2 -0
- package/_esm/types/entrypoint.js.map +1 -0
- package/_esm/utils/errors/getBundlerError.js.map +1 -1
- package/_esm/utils/errors/getEstimateUserOperationGasError.js.map +1 -1
- package/_esm/utils/errors/getSendUserOperationError.js.map +1 -1
- package/_esm/utils/getEntryPointVersion.js +4 -0
- package/_esm/utils/getEntryPointVersion.js.map +1 -0
- package/_esm/utils/getRequiredPrefund.js +19 -6
- package/_esm/utils/getRequiredPrefund.js.map +1 -1
- package/_esm/utils/getUserOperationHash.js +82 -18
- package/_esm/utils/getUserOperationHash.js.map +1 -1
- package/_esm/utils/index.js +2 -1
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/providerToSmartAccountSigner.js +1 -1
- package/_esm/utils/providerToSmartAccountSigner.js.map +1 -1
- package/_esm/utils/signUserOperationHashWithECDSA.js +2 -3
- package/_esm/utils/signUserOperationHashWithECDSA.js.map +1 -1
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts +4 -4
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts.map +1 -1
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts +5 -4
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts +5 -4
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts.map +1 -1
- package/_types/accounts/safe/privateKeyToSafeSmartAccount.d.ts +4 -4
- package/_types/accounts/safe/privateKeyToSafeSmartAccount.d.ts.map +1 -1
- package/_types/accounts/safe/signerToSafeSmartAccount.d.ts +6 -5
- package/_types/accounts/safe/signerToSafeSmartAccount.d.ts.map +1 -1
- package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts +4 -4
- package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts.map +1 -1
- package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts +5 -4
- package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +8 -5
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/bundler/chainId.d.ts +2 -1
- package/_types/actions/bundler/chainId.d.ts.map +1 -1
- package/_types/actions/bundler/estimateUserOperationGas.d.ts +14 -7
- package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
- package/_types/actions/bundler/getUserOperationByHash.d.ts +10 -3
- package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -1
- package/_types/actions/bundler/getUserOperationReceipt.d.ts +2 -1
- package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -1
- package/_types/actions/bundler/sendUserOperation.d.ts +6 -5
- package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/bundler/supportedEntryPoints.d.ts +3 -2
- package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -1
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
- package/_types/actions/pimlico/sponsorUserOperation.d.ts +47 -6
- package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts +10 -5
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -1
- package/_types/actions/public/getAccountNonce.d.ts +2 -1
- package/_types/actions/public/getAccountNonce.d.ts.map +1 -1
- package/_types/actions/public/getSenderAddress.d.ts +11 -3
- package/_types/actions/public/getSenderAddress.d.ts.map +1 -1
- package/_types/actions/smartAccount/deployContract.d.ts +4 -3
- package/_types/actions/smartAccount/deployContract.d.ts.map +1 -1
- package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +21 -11
- package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -1
- package/_types/actions/smartAccount/sendTransaction.d.ts +4 -3
- package/_types/actions/smartAccount/sendTransaction.d.ts.map +1 -1
- package/_types/actions/smartAccount/sendTransactions.d.ts +5 -4
- package/_types/actions/smartAccount/sendTransactions.d.ts.map +1 -1
- package/_types/actions/smartAccount/sendUserOperation.d.ts +6 -5
- package/_types/actions/smartAccount/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/smartAccount/signMessage.d.ts +2 -1
- package/_types/actions/smartAccount/signMessage.d.ts.map +1 -1
- package/_types/actions/smartAccount/signTypedData.d.ts +3 -2
- package/_types/actions/smartAccount/signTypedData.d.ts.map +1 -1
- package/_types/actions/smartAccount/writeContract.d.ts +4 -3
- package/_types/actions/smartAccount/writeContract.d.ts.map +1 -1
- package/_types/actions/smartAccount.d.ts +2 -2
- package/_types/actions/smartAccount.d.ts.map +1 -1
- package/_types/actions/stackup/accounts.d.ts +4 -3
- package/_types/actions/stackup/accounts.d.ts.map +1 -1
- package/_types/actions/stackup/sponsorUserOperation.d.ts +6 -6
- package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -1
- package/_types/clients/createBundlerClient.d.ts +6 -3
- package/_types/clients/createBundlerClient.d.ts.map +1 -1
- package/_types/clients/createSmartAccountClient.d.ts +9 -5
- package/_types/clients/createSmartAccountClient.d.ts.map +1 -1
- package/_types/clients/decorators/bundler.d.ts +7 -7
- package/_types/clients/decorators/bundler.d.ts.map +1 -1
- package/_types/clients/decorators/pimlico.d.ts +6 -5
- package/_types/clients/decorators/pimlico.d.ts.map +1 -1
- package/_types/clients/decorators/smartAccount.d.ts +12 -12
- package/_types/clients/decorators/smartAccount.d.ts.map +1 -1
- package/_types/clients/decorators/stackup.d.ts +5 -4
- package/_types/clients/decorators/stackup.d.ts.map +1 -1
- package/_types/clients/pimlico.d.ts +11 -6
- package/_types/clients/pimlico.d.ts.map +1 -1
- package/_types/clients/stackup.d.ts +6 -3
- package/_types/clients/stackup.d.ts.map +1 -1
- package/_types/errors/estimateUserOperationGas.d.ts +4 -3
- package/_types/errors/estimateUserOperationGas.d.ts.map +1 -1
- package/_types/errors/sendUserOperation.d.ts +4 -3
- package/_types/errors/sendUserOperation.d.ts.map +1 -1
- package/_types/types/bundler.d.ts +16 -21
- package/_types/types/bundler.d.ts.map +1 -1
- package/_types/types/entrypoint.d.ts +6 -0
- package/_types/types/entrypoint.d.ts.map +1 -0
- package/_types/types/index.d.ts +6 -4
- package/_types/types/index.d.ts.map +1 -1
- package/_types/types/pimlico.d.ts +20 -6
- package/_types/types/pimlico.d.ts.map +1 -1
- package/_types/types/stackup.d.ts +18 -4
- package/_types/types/stackup.d.ts.map +1 -1
- package/_types/types/userOperation.d.ts +51 -2
- package/_types/types/userOperation.d.ts.map +1 -1
- package/_types/utils/errors/getBundlerError.d.ts +4 -4
- package/_types/utils/errors/getBundlerError.d.ts.map +1 -1
- package/_types/utils/errors/getEstimateUserOperationGasError.d.ts +3 -2
- package/_types/utils/errors/getEstimateUserOperationGasError.d.ts.map +1 -1
- package/_types/utils/errors/getSendUserOperationError.d.ts +2 -1
- package/_types/utils/errors/getSendUserOperationError.d.ts.map +1 -1
- package/_types/utils/getEntryPointVersion.d.ts +6 -0
- package/_types/utils/getEntryPointVersion.d.ts.map +1 -0
- package/_types/utils/getRequiredPrefund.d.ts +5 -4
- package/_types/utils/getRequiredPrefund.d.ts.map +1 -1
- package/_types/utils/getUserOperationHash.d.ts +6 -5
- package/_types/utils/getUserOperationHash.d.ts.map +1 -1
- package/_types/utils/index.d.ts +2 -1
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/providerToSmartAccountSigner.d.ts +4 -1
- package/_types/utils/providerToSmartAccountSigner.d.ts.map +1 -1
- package/_types/utils/signUserOperationHashWithECDSA.d.ts +6 -6
- package/_types/utils/signUserOperationHashWithECDSA.d.ts.map +1 -1
- package/accounts/biconomy/privateKeyToBiconomySmartAccount.ts +17 -6
- package/accounts/biconomy/signerToBiconomySmartAccount.ts +50 -21
- package/accounts/kernel/signerToEcdsaKernelSmartAccount.ts +64 -30
- package/accounts/safe/privateKeyToSafeSmartAccount.ts +8 -5
- package/accounts/safe/signerToSafeSmartAccount.ts +57 -17
- package/accounts/simple/privateKeyToSimpleSmartAccount.ts +25 -7
- package/accounts/simple/signerToSimpleSmartAccount.ts +127 -56
- package/accounts/types.ts +12 -4
- package/actions/bundler/chainId.ts +3 -1
- package/actions/bundler/estimateUserOperationGas.ts +77 -22
- package/actions/bundler/getUserOperationByHash.ts +44 -15
- package/actions/bundler/getUserOperationReceipt.ts +3 -1
- package/actions/bundler/sendUserOperation.ts +13 -17
- package/actions/bundler/supportedEntryPoints.ts +5 -3
- package/actions/pimlico/getUserOperationGasPrice.ts +7 -9
- package/actions/pimlico/sponsorUserOperation.ts +97 -23
- package/actions/pimlico/validateSponsorshipPolicies.ts +18 -7
- package/actions/public/getAccountNonce.ts +2 -1
- package/actions/public/getSenderAddress.ts +30 -5
- package/actions/smartAccount/deployContract.ts +14 -10
- package/actions/smartAccount/prepareUserOperationRequest.ts +339 -49
- package/actions/smartAccount/sendTransaction.ts +20 -11
- package/actions/smartAccount/sendTransactions.ts +17 -11
- package/actions/smartAccount/sendUserOperation.ts +56 -23
- package/actions/smartAccount/signMessage.ts +3 -1
- package/actions/smartAccount/signTypedData.ts +3 -1
- package/actions/smartAccount/writeContract.ts +12 -5
- package/actions/smartAccount.ts +2 -2
- package/actions/stackup/accounts.ts +7 -6
- package/actions/stackup/sponsorUserOperation.ts +85 -31
- package/clients/createBundlerClient.ts +11 -6
- package/clients/createSmartAccountClient.ts +34 -20
- package/clients/decorators/bundler.ts +51 -27
- package/clients/decorators/pimlico.ts +43 -17
- package/clients/decorators/smartAccount.ts +115 -37
- package/clients/decorators/stackup.ts +14 -10
- package/clients/pimlico.ts +22 -13
- package/clients/stackup.ts +13 -7
- package/errors/estimateUserOperationGas.ts +7 -4
- package/errors/sendUserOperation.ts +9 -5
- package/package.json +1 -1
- package/types/bundler.ts +40 -28
- package/types/entrypoint.ts +13 -0
- package/types/index.ts +15 -5
- package/types/pimlico.ts +43 -17
- package/types/stackup.ts +39 -15
- package/types/userOperation.ts +82 -26
- package/utils/errors/getBundlerError.ts +10 -6
- package/utils/errors/getEstimateUserOperationGasError.ts +13 -10
- package/utils/errors/getSendUserOperationError.ts +4 -3
- package/utils/getEntryPointVersion.ts +15 -0
- package/utils/getRequiredPrefund.ts +35 -11
- package/utils/getUserOperationHash.ts +113 -23
- package/utils/index.ts +9 -1
- package/utils/providerToSmartAccountSigner.ts +6 -3
- package/utils/signUserOperationHashWithECDSA.ts +13 -7
|
@@ -51,7 +51,7 @@ import { sendUserOperation } from "./sendUserOperation.js";
|
|
|
51
51
|
* }])
|
|
52
52
|
*/
|
|
53
53
|
export async function sendTransactions(client, args) {
|
|
54
|
-
const { account: account_ = client.account, transactions,
|
|
54
|
+
const { account: account_ = client.account, transactions, middleware, maxFeePerGas, maxPriorityFeePerGas, nonce } = args;
|
|
55
55
|
if (!account_) {
|
|
56
56
|
throw new AccountOrClientNotFoundError({
|
|
57
57
|
docsPath: "/docs/actions/wallet/sendTransaction"
|
|
@@ -70,17 +70,16 @@ export async function sendTransactions(client, args) {
|
|
|
70
70
|
data: data || "0x"
|
|
71
71
|
};
|
|
72
72
|
}));
|
|
73
|
-
const userOpHash = await getAction(client, sendUserOperation)({
|
|
73
|
+
const userOpHash = await getAction(client, (sendUserOperation))({
|
|
74
74
|
userOperation: {
|
|
75
75
|
sender: account.address,
|
|
76
|
-
paymasterAndData: "0x",
|
|
77
76
|
maxFeePerGas: maxFeePerGas || 0n,
|
|
78
77
|
maxPriorityFeePerGas: maxPriorityFeePerGas || 0n,
|
|
79
78
|
callData: callData,
|
|
80
79
|
nonce: nonce
|
|
81
80
|
},
|
|
82
81
|
account: account,
|
|
83
|
-
|
|
82
|
+
middleware
|
|
84
83
|
});
|
|
85
84
|
const userOperationReceipt = await getAction(client, waitForUserOperationReceipt)({
|
|
86
85
|
hash: userOpHash
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendTransactions.js","sourceRoot":"","sources":["../../../actions/smartAccount/sendTransactions.ts"],"names":[],"mappings":"AASA,OAAO,EAAqB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"sendTransactions.js","sourceRoot":"","sources":["../../../actions/smartAccount/sendTransactions.ts"],"names":[],"mappings":"AASA,OAAO,EAAqB,MAAM,sBAAsB,CAAA;AAGxD,OAAO,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAA;AACpF,OAAO,EAAmB,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAgBvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAKlC,MAA2C,EAC3C,IAEC;IAED,MAAM,EACF,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACR,GAAG,IAAI,CAAA;IAER,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,4BAA4B,CAAC;YACnC,QAAQ,EAAE,sCAAsC;SACnD,CAAC,CAAA;IACN,CAAC;IAED,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAA6B,CAAA;IAElE,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC3B,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;IACrD,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,cAAc,CACzC,YAAY,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QACrC,IAAI,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;QAC9C,OAAO;YACH,EAAE;YACF,KAAK,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,EAAE,IAAI,IAAI,IAAI;SACrB,CAAA;IACL,CAAC,CAAC,CACL,CAAA;IAED,MAAM,UAAU,GAAG,MAAM,SAAS,CAC9B,MAAM,EACN,CAAA,iBAA6B,CAAA,CAChC,CAAC;QACE,aAAa,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,OAAO;YACvB,YAAY,EAAE,YAAY,IAAI,EAAE;YAChC,oBAAoB,EAAE,oBAAoB,IAAI,EAAE;YAChD,QAAQ,EAAE,QAAQ;YAClB,KAAK,EAAE,KAAK;SACf;QACD,OAAO,EAAE,OAAO;QAChB,UAAU;KACb,CAAC,CAAA;IAEF,MAAM,oBAAoB,GAAG,MAAM,SAAS,CACxC,MAAM,EACN,2BAA2B,CAC9B,CAAC;QACE,IAAI,EAAE,UAAU;KACnB,CAAC,CAAA;IAEF,OAAO,oBAAoB,EAAE,OAAO,CAAC,eAAe,CAAA;AACxD,CAAC"}
|
|
@@ -7,7 +7,7 @@ export async function sendUserOperation(client, args) {
|
|
|
7
7
|
if (!account_)
|
|
8
8
|
throw new AccountOrClientNotFoundError();
|
|
9
9
|
const account = parseAccount(account_);
|
|
10
|
-
const userOperation = await getAction(client, prepareUserOperationRequest)(args);
|
|
10
|
+
const userOperation = await getAction(client, (prepareUserOperationRequest))(args);
|
|
11
11
|
userOperation.signature = await account.signUserOperation(userOperation);
|
|
12
12
|
return sendUserOperationBundler(client, {
|
|
13
13
|
userOperation: userOperation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../../actions/smartAccount/sendUserOperation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../../actions/smartAccount/sendUserOperation.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,iBAAiB,IAAI,wBAAwB,EAAE,MAAM,8BAA8B,CAAA;AAC5F,OAAO,EAEH,2BAA2B,EAC9B,MAAM,+BAA+B,CAAA;AA0CtC,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAQnC,MAA4C,EAC5C,IAAiE;IAEjE,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAA;IACnD,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,4BAA4B,EAAE,CAAA;IAEvD,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAA6B,CAAA;IAElE,MAAM,aAAa,GAAG,MAAM,SAAS,CACjC,MAAM,EACN,CAAA,2BAAqE,CAAA,CACxE,CAAC,IAAI,CAAC,CAAA;IAEP,aAAa,CAAC,SAAS,GAAG,MAAM,OAAO,CAAC,iBAAiB,CACrD,aAAgE,CACnE,CAAA;IAED,OAAO,wBAAwB,CAAC,MAAM,EAAE;QACpC,aAAa,EAAE,aAEd;QACD,UAAU,EAAE,OAAO,CAAC,UAAU;KACjC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../actions/smartAccount/signMessage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAqB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../actions/smartAccount/signMessage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAqB,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAK7B,MAA2C,EAC3C,EACI,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,OAAO,EACuB;IAElC,IAAI,CAAC,QAAQ;QACT,MAAM,IAAI,4BAA4B,CAAC;YACnC,QAAQ,EAAE,kCAAkC;SAC/C,CAAC,CAAA;IAEN,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IACtC,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IAErE,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAA;AACpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../actions/smartAccount/signTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,EAQH,uBAAuB,EACvB,iBAAiB,EACpB,MAAM,MAAM,CAAA;AACb,OAAO,EAAqB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../actions/smartAccount/signTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,EAQH,uBAAuB,EACvB,iBAAiB,EACpB,MAAM,MAAM,CAAA;AACb,OAAO,EAAqB,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,4BAA4B,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAO/B,MAA2C,EAC3C,EACI,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,EAAE,MAAM,EAC6C;IAE9D,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,4BAA4B,CAAC;YACnC,QAAQ,EAAE,kCAAkC;SAC/C,CAAC,CAAA;IACN,CAAC;IAED,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;IAEtC,MAAM,KAAK,GAAG;QACV,YAAY,EAAE,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;QACjD,GAAI,MAAqB;KAC5B,CAAA;IAED,iBAAiB,CAAC;QACd,MAAM;QACN,OAAO;QACP,WAAW;QACX,KAAK;KACe,CAAC,CAAA;IAEzB,IAAI,OAAO,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;QAC3B,OAAO,OAAO,CAAC,aAAa,CAAC;YACzB,MAAM;YACN,WAAW;YACX,KAAK;YACL,OAAO;SACa,CAAC,CAAA;IAC7B,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAA;AACzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/smartAccount/writeContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAUH,kBAAkB,EACrB,MAAM,MAAM,CAAA;AACb,OAAO,EAAqB,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../actions/smartAccount/writeContract.ts"],"names":[],"mappings":"AAAA,OAAO,EAUH,kBAAkB,EACrB,MAAM,MAAM,CAAA;AACb,OAAO,EAAqB,MAAM,sBAAsB,CAAA;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAmB,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAEH,eAAe,EAClB,MAAM,mBAAmB,CAAA;AAgF1B,MAAM,CAAC,KAAK,UAAU,aAAa,CAgB/B,MAA2C,EAC3C,EACI,GAAG,EACH,OAAO,EACP,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,GAAG,OAAO,EASb;IAED,MAAM,IAAI,GAAG,kBAAkB,CAAsB;QACjD,GAAG;QACH,IAAI;QACJ,YAAY;KACsC,CAAC,CAAA;IACvD,MAAM,IAAI,GAAG,MAAM,SAAS,CACxB,MAAM,EACN,CAAA,eAA6D,CAAA,CAChE,CAAC;QACE,IAAI,EAAE,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;QAChE,EAAE,EAAE,OAAO;QACX,GAAG,OAAO;KAMb,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACf,CAAC"}
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
* }})
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export const accounts = async (client, { entryPoint }) => {
|
|
23
|
+
export const accounts = async (client, { entryPoint: entryPointAddress }) => {
|
|
24
24
|
const response = await client.request({
|
|
25
25
|
method: "pm_accounts",
|
|
26
|
-
params: [
|
|
26
|
+
params: [entryPointAddress]
|
|
27
27
|
});
|
|
28
28
|
return response;
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../actions/stackup/accounts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../actions/stackup/accounts.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,EACzB,MAA0C,EAC1C,EAAE,UAAU,EAAE,iBAAiB,EAAkC,EAC/C,EAAE;IACpB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,CAAC,iBAAiB,CAAC;KAC9B,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAA;AACnB,CAAC,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {} from "../../clients/stackup.js";
|
|
2
2
|
import { deepHexlify } from "../../utils/deepHexlify.js";
|
|
3
|
+
import { ENTRYPOINT_ADDRESS_V06 } from "../../utils/getEntryPointVersion.js";
|
|
3
4
|
/**
|
|
4
5
|
* Returns paymasterAndData & updated gas parameters required to sponsor a userOperation.
|
|
5
6
|
*
|
|
@@ -28,19 +29,26 @@ import { deepHexlify } from "../../utils/deepHexlify.js";
|
|
|
28
29
|
export const sponsorUserOperation = async (client, args) => {
|
|
29
30
|
const response = await client.request({
|
|
30
31
|
method: "pm_sponsorUserOperation",
|
|
31
|
-
params: [
|
|
32
|
-
deepHexlify(args.userOperation),
|
|
33
|
-
args.entryPoint,
|
|
34
|
-
args.context
|
|
35
|
-
]
|
|
32
|
+
params: [deepHexlify(args.userOperation), args.entryPoint, args.context]
|
|
36
33
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
if (args.entryPoint === ENTRYPOINT_ADDRESS_V06) {
|
|
35
|
+
const responseV06 = response;
|
|
36
|
+
return {
|
|
37
|
+
paymasterAndData: responseV06.paymasterAndData,
|
|
38
|
+
preVerificationGas: BigInt(responseV06.preVerificationGas),
|
|
39
|
+
verificationGasLimit: BigInt(responseV06.verificationGasLimit),
|
|
40
|
+
callGasLimit: BigInt(responseV06.callGasLimit)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const responseV07 = response;
|
|
44
|
+
return {
|
|
45
|
+
callGasLimit: BigInt(responseV07.callGasLimit),
|
|
46
|
+
verificationGasLimit: BigInt(responseV07.verificationGasLimit),
|
|
47
|
+
preVerificationGas: BigInt(responseV07.preVerificationGas),
|
|
48
|
+
paymaster: responseV07.paymaster,
|
|
49
|
+
paymasterVerificationGasLimit: BigInt(responseV07.paymasterVerificationGasLimit),
|
|
50
|
+
paymasterPostOpGasLimit: BigInt(responseV07.paymasterPostOpGasLimit),
|
|
51
|
+
paymasterData: responseV07.paymasterData
|
|
43
52
|
};
|
|
44
|
-
return userOperation;
|
|
45
53
|
};
|
|
46
54
|
//# sourceMappingURL=sponsorUserOperation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sponsorUserOperation.js","sourceRoot":"","sources":["../../../actions/stackup/sponsorUserOperation.ts"],"names":[],"mappings":"AAEA,OAAO,EAA+B,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"sponsorUserOperation.js","sourceRoot":"","sources":["../../../actions/stackup/sponsorUserOperation.ts"],"names":[],"mappings":"AAEA,OAAO,EAA+B,MAAM,uBAAuB,CAAA;AAOnE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAwCzE;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACrC,MAA0C,EAC1C,IAAgD,EACG,EAAE;IACrD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC;KAC3E,CAAC,CAAA;IAEF,IAAI,IAAI,CAAC,UAAU,KAAK,sBAAsB,EAAE,CAAC;QAC7C,MAAM,WAAW,GAAG,QASnB,CAAA;QACD,OAAO;YACH,gBAAgB,EAAE,WAAW,CAAC,gBAAgB;YAC9C,kBAAkB,EAAE,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC;YAC1D,oBAAoB,EAAE,MAAM,CAAC,WAAW,CAAC,oBAAoB,CAAC;YAC9D,YAAY,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;SACH,CAAA;IACnD,CAAC;IAED,MAAM,WAAW,GAAG,QASnB,CAAA;IAED,OAAO;QACH,YAAY,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAAC;QAC9C,oBAAoB,EAAE,MAAM,CAAC,WAAW,CAAC,oBAAoB,CAAC;QAC9D,kBAAkB,EAAE,MAAM,CAAC,WAAW,CAAC,kBAAkB,CAAC;QAC1D,SAAS,EAAE,WAAW,CAAC,SAAS;QAChC,6BAA6B,EAAE,MAAM,CACjC,WAAW,CAAC,6BAA6B,CAC5C;QACD,uBAAuB,EAAE,MAAM,CAAC,WAAW,CAAC,uBAAuB,CAAC;QACpE,aAAa,EAAE,WAAW,CAAC,aAAa;KACG,CAAA;AACnD,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBundlerClient.js","sourceRoot":"","sources":["../../clients/createBundlerClient.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"createBundlerClient.js","sourceRoot":"","sources":["../../clients/createBundlerClient.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAGnC,OAAO,EAAuB,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAY1E;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAK/B,UAEC,EACwB,EAAE;IAC3B,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,gBAAgB,EAAE,GAAG,UAAU,CAAA;IAC9D,MAAM,MAAM,GAAG,YAAY,CAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,eAAe;KACxB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA;AAC/D,CAAC,CAAA"}
|
|
@@ -3,17 +3,36 @@ import {} from "../accounts/types.js";
|
|
|
3
3
|
import {} from "../actions/smartAccount/prepareUserOperationRequest.js";
|
|
4
4
|
import {} from "../types/bundler.js";
|
|
5
5
|
import { smartAccountActions } from "./decorators/smartAccount.js";
|
|
6
|
+
/**
|
|
7
|
+
* Creates a EIP-4337 compliant Bundler Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
|
|
8
|
+
*
|
|
9
|
+
* - Docs: https://docs.pimlico.io/permissionless/reference/clients/smartAccountClient
|
|
10
|
+
*
|
|
11
|
+
* A Bundler Client is an interface to "erc 4337" [JSON-RPC API](https://eips.ethereum.org/EIPS/eip-4337#rpc-methods-eth-namespace) methods such as sending user operation, estimating gas for a user operation, get user operation receipt, etc through Bundler Actions.
|
|
12
|
+
*
|
|
13
|
+
* @param parameters - {@link WalletClientConfig}
|
|
14
|
+
* @returns A Bundler Client. {@link SmartAccountClient}
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* import { createPublicClient, http } from 'viem'
|
|
18
|
+
* import { mainnet } from 'viem/chains'
|
|
19
|
+
*
|
|
20
|
+
* const smartAccountClient = createSmartAccountClient({
|
|
21
|
+
* chain: mainnet,
|
|
22
|
+
* transport: http(BUNDLER_URL),
|
|
23
|
+
* })
|
|
24
|
+
*/
|
|
6
25
|
export function createSmartAccountClient(parameters) {
|
|
7
|
-
const { key = "Account", name = "Smart Account Client",
|
|
26
|
+
const { key = "Account", name = "Smart Account Client", bundlerTransport } = parameters;
|
|
8
27
|
const client = createClient({
|
|
9
28
|
...parameters,
|
|
10
29
|
key,
|
|
11
30
|
name,
|
|
12
|
-
transport:
|
|
31
|
+
transport: bundlerTransport,
|
|
13
32
|
type: "smartAccountClient"
|
|
14
33
|
});
|
|
15
34
|
return client.extend(smartAccountActions({
|
|
16
|
-
|
|
35
|
+
middleware: parameters.middleware
|
|
17
36
|
}));
|
|
18
37
|
}
|
|
19
38
|
//# sourceMappingURL=createSmartAccountClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSmartAccountClient.js","sourceRoot":"","sources":["../../clients/createSmartAccountClient.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAqB,MAAM,mBAAmB,CAAA;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"createSmartAccountClient.js","sourceRoot":"","sources":["../../clients/createSmartAccountClient.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAAqB,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAmB,MAAM,qDAAqD,CAAA;AAErF,OAAO,EAAyB,MAAM,kBAAkB,CAAA;AAExD,OAAO,EAEH,mBAAmB,EACtB,MAAM,2BAA2B,CAAA;AA2ClC;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,UAAU,wBAAwB,CAQpC,UAKC;IAED,MAAM,EACF,GAAG,GAAG,SAAS,EACf,IAAI,GAAG,sBAAsB,EAC7B,gBAAgB,EACnB,GAAG,UAAU,CAAA;IACd,MAAM,MAAM,GAAG,YAAY,CAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,SAAS,EAAE,gBAAgB;QAC3B,IAAI,EAAE,oBAAoB;KAC7B,CAAC,CAAA;IAEF,OAAO,MAAM,CAAC,MAAM,CAChB,mBAAmB,CAAC;QAChB,UAAU,EAAE,UAAU,CAAC,UAAU;KACpC,CAAC,CACgE,CAAA;AAC1E,CAAC"}
|
|
@@ -5,9 +5,12 @@ import { getUserOperationReceipt } from "../../actions/bundler/getUserOperationR
|
|
|
5
5
|
import { sendUserOperation } from "../../actions/bundler/sendUserOperation.js";
|
|
6
6
|
import { supportedEntryPoints } from "../../actions/bundler/supportedEntryPoints.js";
|
|
7
7
|
import { waitForUserOperationReceipt } from "../../actions/bundler/waitForUserOperationReceipt.js";
|
|
8
|
-
const bundlerActions = (client) => ({
|
|
9
|
-
sendUserOperation: async (args) => sendUserOperation(client,
|
|
10
|
-
|
|
8
|
+
const bundlerActions = (entryPointAddress) => (client) => ({
|
|
9
|
+
sendUserOperation: async (args) => sendUserOperation(client, {
|
|
10
|
+
...args,
|
|
11
|
+
entryPoint: entryPointAddress
|
|
12
|
+
}),
|
|
13
|
+
estimateUserOperationGas: (args, stateOverrides) => estimateUserOperationGas(client, { ...args, entryPoint: entryPointAddress }, stateOverrides),
|
|
11
14
|
supportedEntryPoints: () => supportedEntryPoints(client),
|
|
12
15
|
chainId: () => chainId(client),
|
|
13
16
|
getUserOperationByHash: (args) => getUserOperationByHash(client, args),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../../clients/decorators/bundler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../../clients/decorators/bundler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AACvD,OAAO,EAGH,wBAAwB,EAC3B,MAAM,gDAAgD,CAAA;AACvD,OAAO,EAGH,sBAAsB,EACzB,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAGH,uBAAuB,EAC1B,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAEH,iBAAiB,EACpB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AACjF,OAAO,EAEH,2BAA2B,EAC9B,MAAM,mDAAmD,CAAA;AA0L1D,MAAM,cAAc,GAChB,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA8B,EAAE,CAAC,CAAC;IAC7C,iBAAiB,EAAE,KAAK,EACpB,IAAiE,EACpD,EAAE,CACf,iBAAiB,CAAa,MAAmC,EAAE;QAC/D,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CAAC;IACN,wBAAwB,EAAE,CACtB,IAGC,EACD,cAA+B,EACjC,EAAE,CACA,wBAAwB,CACpB,MAAmC,EACnC,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAC1C,cAAc,CACjB;IACL,oBAAoB,EAAE,GAA0B,EAAE,CAC9C,oBAAoB,CAAC,MAAmC,CAAC;IAC7D,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAmC,CAAC;IAC3D,sBAAsB,EAAE,CAAC,IAAsC,EAAE,EAAE,CAC/D,sBAAsB,CAClB,MAAmC,EACnC,IAAI,CACP;IACL,uBAAuB,EAAE,CAAC,IAAuC,EAAE,EAAE,CACjE,uBAAuB,CAAC,MAAmC,EAAE,IAAI,CAAC;IACtE,2BAA2B,EAAE,CACzB,IAA2C,EAC7C,EAAE,CACA,2BAA2B,CACvB,MAAmC,EACnC,IAAI,CACP;CACR,CAAC,CAAA;AAEN,OAAO,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -42,9 +42,12 @@ export const pimlicoBundlerActions = (client) => ({
|
|
|
42
42
|
* }
|
|
43
43
|
* ]
|
|
44
44
|
*/
|
|
45
|
-
export const pimlicoPaymasterActions = (client) => ({
|
|
46
|
-
sponsorUserOperation: async (args) => sponsorUserOperation(client,
|
|
47
|
-
|
|
45
|
+
export const pimlicoPaymasterActions = (entryPointAddress) => (client) => ({
|
|
46
|
+
sponsorUserOperation: async (args) => sponsorUserOperation(client, {
|
|
47
|
+
...args,
|
|
48
|
+
entryPoint: entryPointAddress
|
|
49
|
+
}),
|
|
50
|
+
validateSponsorshipPolicies: async (args) => validateSponsorshipPolicies(client, { ...args, entryPoint: entryPointAddress })
|
|
48
51
|
});
|
|
49
52
|
/**
|
|
50
53
|
* TODO: Add support for pimlicoActions after we support all the actions of v2 of the Pimlico API.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../../clients/decorators/pimlico.ts"],"names":[],"mappings":"AACA,OAAO,EAIH,2BAA2B,EAC3B,2BAA2B,EAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAEH,wBAAwB,EAC3B,MAAM,gDAAgD,CAAA;AACvD,OAAO,EAGH,sBAAsB,EACzB,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAGH,oBAAoB,EACvB,MAAM,4CAA4C,CAAA;
|
|
1
|
+
{"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../../clients/decorators/pimlico.ts"],"names":[],"mappings":"AACA,OAAO,EAIH,2BAA2B,EAC3B,2BAA2B,EAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAEH,wBAAwB,EAC3B,MAAM,gDAAgD,CAAA;AACvD,OAAO,EAGH,sBAAsB,EACzB,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAGH,oBAAoB,EACvB,MAAM,4CAA4C,CAAA;AA+EnD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACjC,MAAc,EACO,EAAE,CAAC,CAAC;IACzB,wBAAwB,EAAE,KAAK,IAAI,EAAE,CACjC,wBAAwB,CAAC,MAA0C,CAAC;IACxE,sBAAsB,EAAE,KAAK,EAAE,IAAsC,EAAE,EAAE,CACrE,sBAAsB,CAClB,MAA0C,EAC1C,IAAI,CACP;IACL,2BAA2B,EAAE,KAAK,EAC9B,IAA2C,EAC7C,EAAE,CACA,2BAA2B,CACvB,MAA0C,EAC1C,IAAI,CACP;CACR,CAAC,CAAA;AAmCF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAChC,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA6C,EAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,KAAK,EACvB,IAGC,EACH,EAAE,CACA,oBAAoB,CAChB,MAA4C,EAC5C;QACI,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CACJ;IACL,2BAA2B,EAAE,KAAK,EAC9B,IAGC,EACH,EAAE,CACA,2BAA2B,CACvB,MAA4C,EAC5C,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAC7C;CACR,CAAC,CAAA;AAEN;;GAEG;AACH,sDAAsD;AACtD,eAAe;AACf,4CAA4C;AAC5C,6CAA6C;AAC7C,QAAQ;AACR,IAAI"}
|
|
@@ -6,33 +6,33 @@ import { sendUserOperation } from "../../actions/smartAccount/sendUserOperation.
|
|
|
6
6
|
import { signMessage } from "../../actions/smartAccount/signMessage.js";
|
|
7
7
|
import { signTypedData } from "../../actions/smartAccount/signTypedData.js";
|
|
8
8
|
import { writeContract } from "../../actions/smartAccount/writeContract.js";
|
|
9
|
-
export function smartAccountActions({
|
|
9
|
+
export function smartAccountActions({ middleware }) {
|
|
10
10
|
return (client) => ({
|
|
11
11
|
prepareUserOperationRequest: (args, stateOverrides) => prepareUserOperationRequest(client, {
|
|
12
12
|
...args,
|
|
13
|
-
|
|
13
|
+
middleware
|
|
14
14
|
}, stateOverrides),
|
|
15
15
|
deployContract: (args) => deployContract(client, {
|
|
16
16
|
...args,
|
|
17
|
-
|
|
17
|
+
middleware
|
|
18
18
|
}),
|
|
19
19
|
sendTransaction: (args) => sendTransaction(client, {
|
|
20
20
|
...args,
|
|
21
|
-
|
|
21
|
+
middleware
|
|
22
22
|
}),
|
|
23
23
|
sendTransactions: (args) => sendTransactions(client, {
|
|
24
24
|
...args,
|
|
25
|
-
|
|
25
|
+
middleware
|
|
26
26
|
}),
|
|
27
27
|
sendUserOperation: (args) => sendUserOperation(client, {
|
|
28
28
|
...args,
|
|
29
|
-
|
|
29
|
+
middleware
|
|
30
30
|
}),
|
|
31
31
|
signMessage: (args) => signMessage(client, args),
|
|
32
32
|
signTypedData: (args) => signTypedData(client, args),
|
|
33
33
|
writeContract: (args) => writeContract(client, {
|
|
34
34
|
...args,
|
|
35
|
-
|
|
35
|
+
middleware
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartAccount.js","sourceRoot":"","sources":["../../../clients/decorators/smartAccount.ts"],"names":[],"mappings":"AAcA,OAAO,EAEH,gBAAgB,EACnB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEH,cAAc,EACjB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAGH,2BAA2B,EAC9B,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAEH,eAAe,EAClB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAEH,iBAAiB,EACpB,MAAM,8CAA8C,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAA;AACxE,OAAO,EAEH,aAAa,EAChB,MAAM,0CAA0C,CAAA;
|
|
1
|
+
{"version":3,"file":"smartAccount.js","sourceRoot":"","sources":["../../../clients/decorators/smartAccount.ts"],"names":[],"mappings":"AAcA,OAAO,EAEH,gBAAgB,EACnB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEH,cAAc,EACjB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAGH,2BAA2B,EAC9B,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAEH,eAAe,EAClB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAEH,iBAAiB,EACpB,MAAM,8CAA8C,CA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../../clients/decorators/stackup.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,QAAQ,EACX,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAGH,oBAAoB,EACvB,MAAM,4CAA4C,CAAA;
|
|
1
|
+
{"version":3,"file":"stackup.js","sourceRoot":"","sources":["../../../clients/decorators/stackup.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,QAAQ,EACX,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAGH,oBAAoB,EACvB,MAAM,4CAA4C,CAAA;AAEnD,OAAO,EAA+B,MAAM,YAAY,CAAA;AAuDxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACnC,MAAc,EAC2B,EAAE,CAAC,CAAC;IAC7C,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CACjC,oBAAoB,CAChB,MAA4C,EAC5C,IAAI,CACP;IACL,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CACrB,QAAQ,CAAC,MAA4C,EAAE,IAAI,CAAC;CACnE,CAAC,CAAA"}
|
package/_esm/clients/pimlico.js
CHANGED
|
@@ -28,7 +28,9 @@ export const createPimlicoBundlerClient = (parameters) => {
|
|
|
28
28
|
name,
|
|
29
29
|
type: "pimlicoBundlerClient"
|
|
30
30
|
});
|
|
31
|
-
return client
|
|
31
|
+
return client
|
|
32
|
+
.extend(bundlerActions(parameters.entryPoint))
|
|
33
|
+
.extend(pimlicoBundlerActions);
|
|
32
34
|
};
|
|
33
35
|
/**
|
|
34
36
|
* Creates a pimlico specific Paymaster Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
|
|
@@ -57,6 +59,6 @@ export const createPimlicoPaymasterClient = (parameters) => {
|
|
|
57
59
|
name,
|
|
58
60
|
type: "pimlicoPaymasterClient"
|
|
59
61
|
});
|
|
60
|
-
return client.extend(pimlicoPaymasterActions);
|
|
62
|
+
return client.extend(pimlicoPaymasterActions(parameters.entryPoint));
|
|
61
63
|
};
|
|
62
64
|
//# sourceMappingURL=pimlico.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../clients/pimlico.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../clients/pimlico.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAMnC,OAAO,EAAuB,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAGH,qBAAqB,EACrB,uBAAuB,EAC1B,MAAM,sBAAsB,CAAA;AAkB7B;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAKtC,UAEC,EAC+B,EAAE;IAClC,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,wBAAwB,EAAE,GAAG,UAAU,CAAA;IACtE,MAAM,MAAM,GAAG,YAAY,CAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,sBAAsB;KAC/B,CAAC,CAAA;IACF,OAAO,MAAM;SACR,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;SAC7C,MAAM,CAAC,qBAAqB,CAAC,CAAA;AACtC,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAKxC,UAEC,EACiC,EAAE;IACpC,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,0BAA0B,EAAE,GAAG,UAAU,CAAA;IACxE,MAAM,MAAM,GAAG,YAAY,CAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,wBAAwB;KACjC,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAA;AACxE,CAAC,CAAA"}
|
package/_esm/clients/stackup.js
CHANGED
|
@@ -28,6 +28,8 @@ export const createStackupPaymasterClient = (parameters) => {
|
|
|
28
28
|
name,
|
|
29
29
|
type: "stackupPaymasterClient"
|
|
30
30
|
});
|
|
31
|
-
return client
|
|
31
|
+
return client
|
|
32
|
+
.extend(bundlerActions(parameters.entryPoint))
|
|
33
|
+
.extend((stackupPaymasterActions));
|
|
32
34
|
};
|
|
33
35
|
//# sourceMappingURL=stackup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stackup.js","sourceRoot":"","sources":["../../clients/stackup.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,YAAY,EACf,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"stackup.js","sourceRoot":"","sources":["../../clients/stackup.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,YAAY,EACf,MAAM,MAAM,CAAA;AAGb,OAAO,EAAuB,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAEH,uBAAuB,EAC1B,MAAM,sBAAsB,CAAA;AAU7B;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAKxC,UAEC,EACiC,EAAE;IACpC,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,0BAA0B,EAAE,GAAG,UAAU,CAAA;IACxE,MAAM,MAAM,GAAG,YAAY,CAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,wBAAwB;KACjC,CAAC,CAAA;IACF,OAAO,MAAM;SACR,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;SAC7C,MAAM,CAAC,CAAA,uBAAmC,CAAA,CAAC,CAAA;AACpD,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimateUserOperationGas.js","sourceRoot":"","sources":["../../errors/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"estimateUserOperationGas.js","sourceRoot":"","sources":["../../errors/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAGhC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMrC,MAAM,OAAO,6BAEX,SAAQ,SAAS;IAKf,YACI,KAAgB,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EAGX;QAED,MAAM,UAAU,GAAG,WAAW,CAAC;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,yBAAyB;gBACzB,UAAU;aACb,CAAC,MAAM,CAAC,OAAO,CAAa;SAChC,CAAC,CAAA;QArCG;;;;;WAAgB;QAEhB;;;;mBAAO,+BAA+B;WAAA;QAoC3C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;IACtB,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../errors/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,OAAO,EAAoC,MAAM,sCAAsC,CAAA;
|
|
1
|
+
{"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../errors/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,OAAO,EAAoC,MAAM,sCAAsC,CAAA;AAEvF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAMrC,MAAM,OAAO,sBAEX,SAAQ,SAAS;IAKf,YACI,KAAgB,EAChB,EACI,aAAa,EACb,UAAU,EACV,QAAQ,EAGX;QAED,MAAM,UAAU,GAAG,WAAW,CAAC;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoint.js","sourceRoot":"","sources":["../../types/entrypoint.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBundlerError.js","sourceRoot":"","sources":["../../../utils/errors/getBundlerError.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,SAAS,EACT,sBAAsB,EAEtB,gBAAgB,EAEnB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EACH,+BAA+B,EAE/B,qBAAqB,EAErB,6BAA6B,EAE7B,0BAA0B,EAG1B,sBAAsB,EAEtB,kCAAkC,EAElC,wCAAwC,EAExC,mCAAmC,EAEtC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACH,0BAA0B,EAE1B,2BAA2B,EAE3B,yBAAyB,EAEzB,gCAAgC,EAEhC,4BAA4B,EAE/B,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"getBundlerError.js","sourceRoot":"","sources":["../../../utils/errors/getBundlerError.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,SAAS,EACT,sBAAsB,EAEtB,gBAAgB,EAEnB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EACH,+BAA+B,EAE/B,qBAAqB,EAErB,6BAA6B,EAE7B,0BAA0B,EAG1B,sBAAsB,EAEtB,kCAAkC,EAElC,wCAAwC,EAExC,mCAA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AAQ,EACJ,kEAAkE;SACzE,CAAqC,CAAA;IAC1C,CAAC;IAED,IAAI,gCAAgC,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACzD,OAAO,IAAI,gCAAgC,CAAC;YACxC,KAAK,EAAE,GAAG;YACV,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB;YACrD,QAAQ,EACJ,kEAAkE;SACzE,CAAyC,CAAA;IAC9C,CAAC;IAED,IAAI,0BAA0B,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QACnD,OAAO,IAAI,0BAA0B,CAAC;YAClC,KAAK,EAAE,GAAG;YACV,gBAAgB,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB;YACrD,QAAQ,EACJ,kEAAkE;SACzE,CAAmC,CAAA;IACxC,CAAC;IAED,OAAO,IAAI,gBAAgB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAyB,CAAA;AACvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEstimateUserOperationGasError.js","sourceRoot":"","sources":["../../../utils/errors/getEstimateUserOperationGasError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAElD,OAAO,EACH,6BAA6B,EAEhC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAkB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"getEstimateUserOperationGasError.js","sourceRoot":"","sources":["../../../utils/errors/getEstimateUserOperationGasError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAElD,OAAO,EACH,6BAA6B,EAEhC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAAkB,MAAM,oBAAoB,CAAA;AAEnD,OAAO,EAGH,eAAe,EAClB,MAAM,mBAAmB,CAAA;AAS1B,MAAM,UAAU,gCAAgC,CAG9C,KAAU,EAAE,IAAoD;IAC9D,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;QAChB,MAAM,KAAK,GAAG,eAAe;QACzB,4DAA4D;QAC5D,KAAwB,EACxB,IAA6C,CAChD,CAAA;QACD,4DAA4D;QAC5D,IAAI,KAAK,YAAY,gBAAgB;YAAE,OAAO,KAAwB,CAAA;QACtE,OAAO,KAAK,CAAA;IAChB,CAAC,CAAC,EAAE,CAAA;IAEJ,MAAM,IAAI,6BAA6B,CAAC,KAAK,EAAE;QAC3C,GAAG,IAAI;KACV,CAAgE,CAAA;AACrE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSendUserOperationError.js","sourceRoot":"","sources":["../../../utils/errors/getSendUserOperationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAElD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"getSendUserOperationError.js","sourceRoot":"","sources":["../../../utils/errors/getSendUserOperationError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAA;AAElD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAErD,OAAO,EAEH,eAAe,EAClB,MAAM,mBAAmB,CAAA;AAE1B,MAAM,UAAU,yBAAyB,CACrC,GAAc,EACd,IAA6C;IAE7C,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;QAChB,MAAM,KAAK,GAAG,eAAe,CACzB,GAAgB,EAChB,IAA6C,CAChD,CAAA;QACD,IAAI,KAAK,YAAY,gBAAgB;YAAE,OAAO,GAAgB,CAAA;QAC9D,OAAO,KAAK,CAAA;IAChB,CAAC,CAAC,EAAE,CAAA;IAEJ,MAAM,IAAI,sBAAsB,CAAC,KAAK,EAAE;QACpC,GAAG,IAAI;KACV,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const ENTRYPOINT_ADDRESS_V06 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
2
|
+
export const ENTRYPOINT_ADDRESS_V07 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
3
|
+
export const getEntryPointVersion = (entryPoint) => entryPoint === ENTRYPOINT_ADDRESS_V06 ? "v0.6" : "v0.7";
|
|
4
|
+
//# sourceMappingURL=getEntryPointVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEntryPointVersion.js","sourceRoot":"","sources":["../../utils/getEntryPointVersion.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,sBAAsB,GAC/B,4CAA4C,CAAA;AAChD,MAAM,CAAC,MAAM,sBAAsB,GAC/B,4CAA4C,CAAA;AAEhD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAChC,UAAsB,EACU,EAAE,CAClC,UAAU,KAAK,sBAAsB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ENTRYPOINT_ADDRESS_V06 } from "./getEntryPointVersion.js";
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
* Returns the minimum required funds in the senders's smart account to execute the user operation.
|
|
@@ -12,11 +13,23 @@
|
|
|
12
13
|
* userOperation
|
|
13
14
|
* })
|
|
14
15
|
*/
|
|
15
|
-
export const getRequiredPrefund = ({ userOperation }) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
export const getRequiredPrefund = ({ userOperation, entryPoint: entryPointAddress }) => {
|
|
17
|
+
if (entryPointAddress === ENTRYPOINT_ADDRESS_V06) {
|
|
18
|
+
const userOperationVersion0_6 = userOperation;
|
|
19
|
+
const multiplier = userOperationVersion0_6.paymasterAndData.length > 2 ? 3n : 1n;
|
|
20
|
+
const requiredGas = userOperationVersion0_6.callGasLimit +
|
|
21
|
+
userOperationVersion0_6.verificationGasLimit * multiplier +
|
|
22
|
+
userOperationVersion0_6.preVerificationGas;
|
|
23
|
+
return (BigInt(requiredGas) * BigInt(userOperationVersion0_6.maxFeePerGas));
|
|
24
|
+
}
|
|
25
|
+
const userOperationV07 = userOperation;
|
|
26
|
+
const multiplier = userOperationV07.paymaster ? 3n : 1n;
|
|
27
|
+
const verificationGasLimit = userOperationV07.verificationGasLimit +
|
|
28
|
+
(userOperationV07.paymasterPostOpGasLimit || 0n) +
|
|
29
|
+
(userOperationV07.paymasterVerificationGasLimit || 0n);
|
|
30
|
+
const requiredGas = userOperationV07.callGasLimit +
|
|
31
|
+
verificationGasLimit * multiplier +
|
|
32
|
+
userOperationV07.preVerificationGas;
|
|
33
|
+
return BigInt(requiredGas) * BigInt(userOperationV07.maxFeePerGas);
|
|
21
34
|
};
|
|
22
35
|
//# sourceMappingURL=getRequiredPrefund.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRequiredPrefund.js","sourceRoot":"","sources":["../../utils/getRequiredPrefund.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getRequiredPrefund.js","sourceRoot":"","sources":["../../utils/getRequiredPrefund.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAO/D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAgC,EAC9D,aAAa,EACb,UAAU,EAAE,iBAAiB,EACU,EAAU,EAAE;IACnD,IAAI,iBAAiB,KAAK,sBAAsB,EAAE,CAAC;QAC/C,MAAM,uBAAuB,GAAG,aAAsC,CAAA;QACtE,MAAM,UAAU,GACZ,uBAAuB,CAAC,gBAAgB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QACj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