permissionless 0.1.31 → 0.1.32
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 +6 -0
- package/_cjs/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +4 -3
- package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +42 -16
- package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
- package/_cjs/accounts/kernel/utils/encodeCallData.js +2 -1
- package/_cjs/accounts/kernel/utils/encodeCallData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/getNonceKey.js +2 -1
- package/_cjs/accounts/kernel/utils/getNonceKey.js.map +1 -1
- package/_cjs/accounts/kernel/utils/isKernelV2.js +9 -0
- package/_cjs/accounts/kernel/utils/isKernelV2.js.map +1 -0
- package/_cjs/accounts/kernel/utils/signMessage.js +2 -1
- package/_cjs/accounts/kernel/utils/signMessage.js.map +1 -1
- package/_cjs/accounts/kernel/utils/signTypedData.js +2 -1
- package/_cjs/accounts/kernel/utils/signTypedData.js.map +1 -1
- package/_cjs/accounts/kernel/utils/wrapMessageHash.js.map +1 -1
- package/_cjs/accounts/light/privateKeyToLightSmartAccount.js.map +1 -1
- package/_cjs/accounts/light/signerToLightSmartAccount.js +4 -3
- package/_cjs/accounts/light/signerToLightSmartAccount.js.map +1 -1
- package/_cjs/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -1
- package/_cjs/accounts/safe/signerToSafeSmartAccount.js +591 -174
- package/_cjs/accounts/safe/signerToSafeSmartAccount.js.map +1 -1
- package/_cjs/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -1
- package/_cjs/accounts/simple/signerToSimpleSmartAccount.js +4 -3
- package/_cjs/accounts/simple/signerToSimpleSmartAccount.js.map +1 -1
- package/_cjs/accounts/toSmartAccount.js.map +1 -1
- package/_cjs/accounts/trust/privateKeyToTrustSmartAccount.js.map +1 -1
- package/_cjs/accounts/trust/signerToTrustSmartAccount.js +4 -3
- package/_cjs/accounts/trust/signerToTrustSmartAccount.js.map +1 -1
- package/_cjs/accounts/trust/utils/signUserOperation.js +1 -1
- package/_cjs/accounts/trust/utils/signUserOperation.js.map +1 -1
- package/_cjs/accounts/types.js.map +1 -1
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js +1 -1
- package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
- package/_cjs/actions/erc7579/accountId.js +66 -0
- package/_cjs/actions/erc7579/accountId.js.map +1 -0
- package/_cjs/actions/erc7579/installModule.js +65 -0
- package/_cjs/actions/erc7579/installModule.js.map +1 -0
- package/_cjs/actions/erc7579/isModuleInstalled.js +86 -0
- package/_cjs/actions/erc7579/isModuleInstalled.js.map +1 -0
- package/_cjs/actions/erc7579/supportsExecutionMode.js +95 -0
- package/_cjs/actions/erc7579/supportsExecutionMode.js.map +1 -0
- package/_cjs/actions/erc7579/supportsModule.js +84 -0
- package/_cjs/actions/erc7579/supportsModule.js.map +1 -0
- package/_cjs/actions/erc7579/uninstallModule.js +65 -0
- package/_cjs/actions/erc7579/uninstallModule.js.map +1 -0
- package/_cjs/actions/erc7579.js +27 -0
- package/_cjs/actions/erc7579.js.map +1 -0
- package/_cjs/actions/smartAccount/deployContract.js.map +1 -1
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +0 -3
- package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
- package/_cjs/errors/estimateUserOperationGas.js +6 -0
- package/_cjs/errors/estimateUserOperationGas.js.map +1 -1
- package/_cjs/utils/encode7579CallData.js +81 -0
- package/_cjs/utils/encode7579CallData.js.map +1 -0
- package/_cjs/vitest.config.js +31 -0
- package/_cjs/vitest.config.js.map +1 -0
- package/_esm/accounts/biconomy/privateKeyToBiconomySmartAccount.js.map +1 -1
- package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js +4 -3
- package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
- package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js +46 -20
- package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
- package/_esm/accounts/kernel/utils/encodeCallData.js +2 -1
- package/_esm/accounts/kernel/utils/encodeCallData.js.map +1 -1
- package/_esm/accounts/kernel/utils/getNonceKey.js +2 -1
- package/_esm/accounts/kernel/utils/getNonceKey.js.map +1 -1
- package/_esm/accounts/kernel/utils/isKernelV2.js +5 -0
- package/_esm/accounts/kernel/utils/isKernelV2.js.map +1 -0
- package/_esm/accounts/kernel/utils/signMessage.js +2 -1
- package/_esm/accounts/kernel/utils/signMessage.js.map +1 -1
- package/_esm/accounts/kernel/utils/signTypedData.js +2 -1
- package/_esm/accounts/kernel/utils/signTypedData.js.map +1 -1
- package/_esm/accounts/kernel/utils/wrapMessageHash.js.map +1 -1
- package/_esm/accounts/light/privateKeyToLightSmartAccount.js.map +1 -1
- package/_esm/accounts/light/signerToLightSmartAccount.js +4 -3
- package/_esm/accounts/light/signerToLightSmartAccount.js.map +1 -1
- package/_esm/accounts/safe/privateKeyToSafeSmartAccount.js.map +1 -1
- package/_esm/accounts/safe/signerToSafeSmartAccount.js +593 -175
- package/_esm/accounts/safe/signerToSafeSmartAccount.js.map +1 -1
- package/_esm/accounts/simple/privateKeyToSimpleSmartAccount.js.map +1 -1
- package/_esm/accounts/simple/signerToSimpleSmartAccount.js +4 -3
- package/_esm/accounts/simple/signerToSimpleSmartAccount.js.map +1 -1
- package/_esm/accounts/toSmartAccount.js.map +1 -1
- package/_esm/accounts/trust/privateKeyToTrustSmartAccount.js +0 -1
- package/_esm/accounts/trust/privateKeyToTrustSmartAccount.js.map +1 -1
- package/_esm/accounts/trust/signerToTrustSmartAccount.js +4 -3
- package/_esm/accounts/trust/signerToTrustSmartAccount.js.map +1 -1
- package/_esm/accounts/trust/utils/signUserOperation.js +1 -1
- package/_esm/accounts/trust/utils/signUserOperation.js.map +1 -1
- package/_esm/accounts/types.js.map +1 -1
- package/_esm/actions/bundler/waitForUserOperationReceipt.js +1 -1
- package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
- package/_esm/actions/erc7579/accountId.js +62 -0
- package/_esm/actions/erc7579/accountId.js.map +1 -0
- package/_esm/actions/erc7579/installModule.js +61 -0
- package/_esm/actions/erc7579/installModule.js.map +1 -0
- package/_esm/actions/erc7579/isModuleInstalled.js +82 -0
- package/_esm/actions/erc7579/isModuleInstalled.js.map +1 -0
- package/_esm/actions/erc7579/supportsExecutionMode.js +90 -0
- package/_esm/actions/erc7579/supportsExecutionMode.js.map +1 -0
- package/_esm/actions/erc7579/supportsModule.js +79 -0
- package/_esm/actions/erc7579/supportsModule.js.map +1 -0
- package/_esm/actions/erc7579/uninstallModule.js +61 -0
- package/_esm/actions/erc7579/uninstallModule.js.map +1 -0
- package/_esm/actions/erc7579.js +18 -0
- package/_esm/actions/erc7579.js.map +1 -0
- package/_esm/actions/smartAccount/deployContract.js.map +1 -1
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js +0 -3
- package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
- package/_esm/errors/estimateUserOperationGas.js +6 -0
- package/_esm/errors/estimateUserOperationGas.js.map +1 -1
- package/_esm/utils/encode7579CallData.js +77 -0
- package/_esm/utils/encode7579CallData.js.map +1 -0
- package/_esm/vitest.config.js +29 -0
- package/_esm/vitest.config.js.map +1 -0
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts +2 -2
- package/_types/accounts/biconomy/privateKeyToBiconomySmartAccount.d.ts.map +1 -1
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts +3 -1
- package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts +7 -3
- package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/encodeCallData.d.ts +2 -1
- package/_types/accounts/kernel/utils/encodeCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/getExecMode.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/getNonceKey.d.ts +2 -1
- package/_types/accounts/kernel/utils/getNonceKey.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/isKernelV2.d.ts +4 -0
- package/_types/accounts/kernel/utils/isKernelV2.d.ts.map +1 -0
- package/_types/accounts/kernel/utils/signMessage.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/signTypedData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/wrapMessageHash.d.ts +3 -1
- package/_types/accounts/kernel/utils/wrapMessageHash.d.ts.map +1 -1
- package/_types/accounts/light/privateKeyToLightSmartAccount.d.ts +5 -4
- package/_types/accounts/light/privateKeyToLightSmartAccount.d.ts.map +1 -1
- package/_types/accounts/light/signerToLightSmartAccount.d.ts +3 -2
- package/_types/accounts/light/signerToLightSmartAccount.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 +38 -15
- package/_types/accounts/safe/signerToSafeSmartAccount.d.ts.map +1 -1
- package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts +2 -2
- package/_types/accounts/simple/privateKeyToSimpleSmartAccount.d.ts.map +1 -1
- package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts +3 -2
- package/_types/accounts/simple/signerToSimpleSmartAccount.d.ts.map +1 -1
- package/_types/accounts/toSmartAccount.d.ts +3 -3
- package/_types/accounts/toSmartAccount.d.ts.map +1 -1
- package/_types/accounts/trust/privateKeyToTrustSmartAccount.d.ts +2 -2
- package/_types/accounts/trust/privateKeyToTrustSmartAccount.d.ts.map +1 -1
- package/_types/accounts/trust/signerToTrustSmartAccount.d.ts +3 -2
- package/_types/accounts/trust/signerToTrustSmartAccount.d.ts.map +1 -1
- package/_types/accounts/trust/utils/encodeCallData.d.ts.map +1 -1
- package/_types/accounts/trust/utils/getAccountAddress.d.ts +1 -1
- package/_types/accounts/trust/utils/getAccountAddress.d.ts.map +1 -1
- package/_types/accounts/trust/utils/getDummySignature.d.ts.map +1 -1
- package/_types/accounts/trust/utils/getFactoryData.d.ts.map +1 -1
- package/_types/accounts/trust/utils/signMessage.d.ts.map +1 -1
- package/_types/accounts/trust/utils/signTransaction.d.ts +2 -2
- package/_types/accounts/trust/utils/signTransaction.d.ts.map +1 -1
- package/_types/accounts/trust/utils/signUserOperation.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +3 -3
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/bundler/chainId.d.ts.map +1 -1
- package/_types/actions/bundler/estimateUserOperationGas.d.ts +41 -2
- package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
- package/_types/actions/bundler/getUserOperationByHash.d.ts +1 -7
- package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -1
- package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -1
- package/_types/actions/bundler/sendUserOperation.d.ts +4 -1
- package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -1
- package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
- package/_types/actions/erc7579/accountId.d.ts +6 -0
- package/_types/actions/erc7579/accountId.d.ts.map +1 -0
- package/_types/actions/erc7579/installModule.d.ts +16 -0
- package/_types/actions/erc7579/installModule.d.ts.map +1 -0
- package/_types/actions/erc7579/isModuleInstalled.d.ts +12 -0
- package/_types/actions/erc7579/isModuleInstalled.d.ts.map +1 -0
- package/_types/actions/erc7579/supportsExecutionMode.d.ts +15 -0
- package/_types/actions/erc7579/supportsExecutionMode.d.ts.map +1 -0
- package/_types/actions/erc7579/supportsModule.d.ts +11 -0
- package/_types/actions/erc7579/supportsModule.d.ts.map +1 -0
- package/_types/actions/erc7579/uninstallModule.d.ts +16 -0
- package/_types/actions/erc7579/uninstallModule.d.ts.map +1 -0
- package/_types/actions/erc7579.d.ts +26 -0
- package/_types/actions/erc7579.d.ts.map +1 -0
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
- package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -1
- package/_types/actions/pimlico/sendCompressedUserOperation.d.ts.map +1 -1
- package/_types/actions/pimlico/sponsorUserOperation.d.ts +1 -41
- package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts +1 -5
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +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 +1 -1
- package/_types/actions/smartAccount/deployContract.d.ts.map +1 -1
- package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -1
- package/_types/actions/stackup/accounts.d.ts.map +1 -1
- package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -1
- package/_types/clients/createBundlerClient.d.ts +2 -18
- package/_types/clients/createBundlerClient.d.ts.map +1 -1
- package/_types/clients/decorators/bundler.d.ts.map +1 -1
- package/_types/clients/decorators/pimlico.d.ts.map +1 -1
- package/_types/clients/decorators/smartAccount.d.ts.map +1 -1
- package/_types/clients/decorators/stackup.d.ts.map +1 -1
- package/_types/clients/pimlico.d.ts +2 -34
- package/_types/clients/pimlico.d.ts.map +1 -1
- package/_types/clients/stackup.d.ts +1 -17
- package/_types/clients/stackup.d.ts.map +1 -1
- package/_types/errors/estimateUserOperationGas.d.ts.map +1 -1
- package/_types/experimental/eip7677/clients/decorators/paymasterActionsEip7677.d.ts.map +1 -1
- package/_types/types/index.d.ts +2 -2
- package/_types/types/index.d.ts.map +1 -1
- package/_types/utils/encode7579CallData.d.ts +16 -0
- package/_types/utils/encode7579CallData.d.ts.map +1 -0
- package/_types/utils/getRequiredPrefund.d.ts.map +1 -1
- package/_types/utils/getUserOperationHash.d.ts.map +1 -1
- package/_types/utils/signUserOperationHashWithECDSA.d.ts.map +1 -1
- package/_types/vitest.config.d.ts +3 -0
- package/_types/vitest.config.d.ts.map +1 -0
- package/accounts/biconomy/privateKeyToBiconomySmartAccount.ts +15 -2
- package/accounts/biconomy/signerToBiconomySmartAccount.ts +14 -5
- package/accounts/kernel/signerToEcdsaKernelSmartAccount.ts +80 -35
- package/accounts/kernel/utils/encodeCallData.ts +4 -2
- package/accounts/kernel/utils/getNonceKey.ts +4 -2
- package/accounts/kernel/utils/isKernelV2.ts +7 -0
- package/accounts/kernel/utils/signMessage.ts +2 -1
- package/accounts/kernel/utils/signTypedData.ts +2 -1
- package/accounts/kernel/utils/wrapMessageHash.ts +3 -1
- package/accounts/light/privateKeyToLightSmartAccount.ts +19 -5
- package/accounts/light/signerToLightSmartAccount.ts +15 -4
- package/accounts/safe/privateKeyToSafeSmartAccount.ts +18 -5
- package/accounts/safe/signerToSafeSmartAccount.ts +775 -199
- package/accounts/simple/privateKeyToSimpleSmartAccount.ts +16 -2
- package/accounts/simple/signerToSimpleSmartAccount.ts +15 -4
- package/accounts/toSmartAccount.ts +5 -3
- package/accounts/trust/privateKeyToTrustSmartAccount.ts +15 -2
- package/accounts/trust/signerToTrustSmartAccount.ts +15 -4
- package/accounts/trust/utils/signUserOperation.ts +1 -1
- package/accounts/types.ts +9 -3
- package/actions/bundler/chainId.test.ts +25 -0
- package/actions/bundler/estimateUserOperationGas.test.ts +205 -0
- package/actions/bundler/estimateUserOperationGas.ts +1 -1
- package/actions/bundler/getUserOperationByHash.test.ts +139 -0
- package/actions/bundler/getUserOperationReceipt.test.ts +127 -0
- package/actions/bundler/sendUserOperation.test.ts +126 -0
- package/actions/bundler/supportedEntryPoints.test.ts +27 -0
- package/actions/bundler/waitForUserOperationReceipt.test.ts +130 -0
- package/actions/bundler/waitForUserOperationReceipt.ts +1 -1
- package/actions/erc7579/accountId.test.ts +52 -0
- package/actions/erc7579/accountId.ts +91 -0
- package/actions/erc7579/installModule.test.ts +124 -0
- package/actions/erc7579/installModule.ts +109 -0
- package/actions/erc7579/isModuleInstalled.test.ts +119 -0
- package/actions/erc7579/isModuleInstalled.ts +122 -0
- package/actions/erc7579/supportsExecutionMode.test.ts +72 -0
- package/actions/erc7579/supportsExecutionMode.ts +154 -0
- package/actions/erc7579/supportsModule.test.ts +46 -0
- package/actions/erc7579/supportsModule.ts +117 -0
- package/actions/erc7579/uninstallModule.test.ts +158 -0
- package/actions/erc7579/uninstallModule.ts +113 -0
- package/actions/erc7579.ts +114 -0
- package/actions/index.test.ts +329 -0
- package/actions/pimlico/getUserOperationGasPrice.test.ts +33 -0
- package/actions/pimlico/getUserOperationStatus.test.ts +152 -0
- package/actions/pimlico/sponsorUserOperation.test.ts +126 -0
- package/actions/pimlico/validateSponsorshipPolicies.test.ts +56 -0
- package/actions/pimlico.test.ts +222 -0
- package/actions/public/getAccountNonce.test.ts +52 -0
- package/actions/public/getSenderAddress.test.ts +83 -0
- package/actions/smartAccount/deployContract.test.ts +118 -0
- package/actions/smartAccount/deployContract.ts +3 -1
- package/actions/smartAccount/prepareUserOperationRequest.test.ts +151 -0
- package/actions/smartAccount/prepareUserOperationRequest.ts +0 -4
- package/actions/smartAccount/sendTransaction.test.ts +108 -0
- package/actions/smartAccount/sendTransactions.test.ts +126 -0
- package/actions/smartAccount/sendUserOperation.test.ts +133 -0
- package/actions/smartAccount/signMessage.test.ts +89 -0
- package/actions/smartAccount/signTypedData.test.ts +118 -0
- package/actions/smartAccount/writeContract.test.ts +118 -0
- package/errors/estimateUserOperationGas.ts +7 -0
- package/experimental/eip7677/actions/getPaymasterData.test.ts +137 -0
- package/experimental/eip7677/actions/getPaymasterStubData.test.ts +84 -0
- package/package.json +7 -2
- package/types/index.ts +3 -4
- package/utils/encode7579CallData.ts +114 -0
- package/vitest.config.ts +29 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Address, type Chain, type Client, type Transport } from "viem";
|
|
1
|
+
import { type Address, type Chain, type Client, type PublicActions, type PublicRpcSchema, type Transport } from "viem";
|
|
2
2
|
import type { Prettify } from "../../types";
|
|
3
3
|
import type { EntryPoint } from "../../types/entrypoint";
|
|
4
4
|
import { type SmartAccount, type SmartAccountSigner } from "../types";
|
|
@@ -11,11 +11,12 @@ export type SignerToLightSmartAccountParameters<entryPoint extends EntryPoint, T
|
|
|
11
11
|
factoryAddress?: Address;
|
|
12
12
|
index?: bigint;
|
|
13
13
|
address?: Address;
|
|
14
|
+
nonceKey?: bigint;
|
|
14
15
|
}>;
|
|
15
16
|
/**
|
|
16
17
|
* @description Creates an Light Account from a private key.
|
|
17
18
|
*
|
|
18
19
|
* @returns A Private Key Light Account.
|
|
19
20
|
*/
|
|
20
|
-
export declare function signerToLightSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address>(client: Client<TTransport, TChain, undefined>, { signer, address, lightAccountVersion, entryPoint: entryPointAddress, index, factoryAddress: _factoryAddress }: SignerToLightSmartAccountParameters<entryPoint, TSource, TAddress>): Promise<LightSmartAccount<entryPoint, TTransport, TChain>>;
|
|
21
|
+
export declare function signerToLightSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address>(client: Client<TTransport, TChain, undefined, PublicRpcSchema, PublicActions>, { signer, address, lightAccountVersion, entryPoint: entryPointAddress, index, factoryAddress: _factoryAddress, nonceKey }: SignerToLightSmartAccountParameters<entryPoint, TSource, TAddress>): Promise<LightSmartAccount<entryPoint, TTransport, TChain>>;
|
|
21
22
|
//# sourceMappingURL=signerToLightSmartAccount.d.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AC,EAAE,MAAM,CAAA;CACpB,CAAC,CAAA;AAuDF;;;;GAIG;AACH,wBAAsB,yBAAyB,CAC3C,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,EAElC,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,CAChB,EACD,EACI,MAAM,EACN,OAAO,EACP,mBAAmB,EACnB,UAAU,EAAE,iBAAiB,EAC7B,KAAiB,EACjB,cAAc,EAAE,eAAe,EAC/B,QAAQ,EACX,EAAE,mCAAmC,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,GACtE,OAAO,CAAC,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CA6M5D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Chain, Client, Hex, Transport } from "viem";
|
|
2
|
-
import type {
|
|
1
|
+
import type { Chain, Client, Hex, PublicActions, PublicRpcSchema, Transport } from "viem";
|
|
2
|
+
import type { EntryPoint, Prettify } from "../../types";
|
|
3
3
|
import { type SafeSmartAccount, type SignerToSafeSmartAccountParameters } from "./signerToSafeSmartAccount";
|
|
4
|
-
export type PrivateKeyToSafeSmartAccountParameters<entryPoint extends
|
|
4
|
+
export type PrivateKeyToSafeSmartAccountParameters<entryPoint extends EntryPoint> = Prettify<{
|
|
5
5
|
privateKey: Hex;
|
|
6
6
|
} & Omit<SignerToSafeSmartAccountParameters<entryPoint>, "signer">>;
|
|
7
7
|
/**
|
|
@@ -9,5 +9,5 @@ export type PrivateKeyToSafeSmartAccountParameters<entryPoint extends ENTRYPOINT
|
|
|
9
9
|
*
|
|
10
10
|
* @returns A Private Key Simple Account.
|
|
11
11
|
*/
|
|
12
|
-
export declare function privateKeyToSafeSmartAccount<entryPoint extends
|
|
12
|
+
export declare function privateKeyToSafeSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined, PublicRpcSchema, PublicActions>, { privateKey, ...rest }: PrivateKeyToSafeSmartAccountParameters<entryPoint>): Promise<SafeSmartAccount<entryPoint, TTransport, TChain>>;
|
|
13
13
|
//# sourceMappingURL=privateKeyToSafeSmartAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateKeyToSafeSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/safe/privateKeyToSafeSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"privateKeyToSafeSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/safe/privateKeyToSafeSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,KAAK,EACL,MAAM,EACN,GAAG,EACH,aAAa,EACb,eAAe,EACf,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,kCAAkC,EAE1C,MAAM,4BAA4B,CAAA;AAEnC,MAAM,MAAM,sCAAsC,CAC9C,UAAU,SAAS,UAAU,IAC7B,QAAQ,CACR;IACI,UAAU,EAAE,GAAG,CAAA;CAClB,GAAG,IAAI,CAAC,kCAAkC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CACrE,CAAA;AAED;;;;GAIG;AACH,wBAAsB,4BAA4B,CAC9C,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,CAChB,EACD,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,sCAAsC,CAAC,UAAU,CAAC,GAC5E,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAO3D"}
|
|
@@ -1,34 +1,57 @@
|
|
|
1
|
-
import { type Address, type Chain, type Client, type Transport } from "viem";
|
|
2
|
-
import type { Prettify } from "../../types";
|
|
1
|
+
import { type Address, type Chain, type Client, type PublicActions, type PublicRpcSchema, type Transport } from "viem";
|
|
3
2
|
import type { EntryPoint } from "../../types";
|
|
4
3
|
import { type SmartAccount, type SmartAccountSigner } from "../types";
|
|
5
4
|
export type SafeVersion = "1.4.1";
|
|
6
5
|
export type SafeSmartAccount<entryPoint extends EntryPoint, transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined> = SmartAccount<entryPoint, "SafeSmartAccount", transport, chain>;
|
|
7
|
-
|
|
8
|
-
signer: SmartAccountSigner<TSource, TAddress>;
|
|
9
|
-
safeVersion: SafeVersion;
|
|
10
|
-
entryPoint: entryPoint;
|
|
11
|
-
address?: Address;
|
|
6
|
+
type GetErc7579Params<TErc7579 extends Address | undefined> = TErc7579 extends undefined ? {
|
|
12
7
|
safeModuleSetupAddress?: Address;
|
|
13
|
-
safe4337ModuleAddress?: Address;
|
|
14
|
-
safeProxyFactoryAddress?: Address;
|
|
15
|
-
safeSingletonAddress?: Address;
|
|
16
8
|
multiSendAddress?: Address;
|
|
17
9
|
multiSendCallOnlyAddress?: Address;
|
|
18
|
-
saltNonce?: bigint;
|
|
19
|
-
validUntil?: number;
|
|
20
|
-
validAfter?: number;
|
|
21
10
|
setupTransactions?: {
|
|
22
11
|
to: Address;
|
|
23
12
|
data: Address;
|
|
24
13
|
value: bigint;
|
|
25
14
|
}[];
|
|
26
15
|
safeModules?: Address[];
|
|
27
|
-
}
|
|
16
|
+
} : {
|
|
17
|
+
validators?: {
|
|
18
|
+
address: Address;
|
|
19
|
+
context: Address;
|
|
20
|
+
}[];
|
|
21
|
+
executors?: {
|
|
22
|
+
address: Address;
|
|
23
|
+
context: Address;
|
|
24
|
+
}[];
|
|
25
|
+
fallbacks?: {
|
|
26
|
+
address: Address;
|
|
27
|
+
context: Address;
|
|
28
|
+
}[];
|
|
29
|
+
hooks?: {
|
|
30
|
+
address: Address;
|
|
31
|
+
context: Address;
|
|
32
|
+
}[];
|
|
33
|
+
attesters?: Address[];
|
|
34
|
+
attestersThreshold?: number;
|
|
35
|
+
};
|
|
36
|
+
export type SignerToSafeSmartAccountParameters<entryPoint extends EntryPoint, TSource extends string = string, TAddress extends Address = Address, TErc7579 extends Address | undefined = Address | undefined> = {
|
|
37
|
+
signer: SmartAccountSigner<TSource, TAddress>;
|
|
38
|
+
safeVersion: SafeVersion;
|
|
39
|
+
entryPoint: entryPoint;
|
|
40
|
+
safe4337ModuleAddress?: Address;
|
|
41
|
+
erc7569LaunchpadAddress?: TErc7579;
|
|
42
|
+
safeProxyFactoryAddress?: Address;
|
|
43
|
+
safeSingletonAddress?: Address;
|
|
44
|
+
address?: Address;
|
|
45
|
+
saltNonce?: bigint;
|
|
46
|
+
validUntil?: number;
|
|
47
|
+
validAfter?: number;
|
|
48
|
+
nonceKey?: bigint;
|
|
49
|
+
} & GetErc7579Params<TErc7579>;
|
|
28
50
|
/**
|
|
29
51
|
* @description Creates an Simple Account from a private key.
|
|
30
52
|
*
|
|
31
53
|
* @returns A Private Key Simple Account.
|
|
32
54
|
*/
|
|
33
|
-
export declare function signerToSafeSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address
|
|
55
|
+
export declare function signerToSafeSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address, TErc7579 extends Address | undefined = undefined>(client: Client<TTransport, TChain, undefined, PublicRpcSchema, PublicActions>, args: SignerToSafeSmartAccountParameters<entryPoint, TSource, TAddress, TErc7579>): Promise<SafeSmartAccount<entryPoint, TTransport, TChain>>;
|
|
56
|
+
export {};
|
|
34
57
|
//# sourceMappingURL=signerToSafeSmartAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerToSafeSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/safe/signerToSafeSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"signerToSafeSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/safe/signerToSafeSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAGX,KAAK,aAAa,EAClB,KAAK,eAAe,EAEpB,KAAK,SAAS,EAiBjB,MAAM,MAAM,CAAA;AASb,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,aAAa,CAAA;AAS5D,OAAO,EAEH,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAC1B,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,WAAW,GAAG,OAAO,CAAA;AA8ejC,MAAM,MAAM,gBAAgB,CACxB,UAAU,SAAS,UAAU,EAC7B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IACnD,YAAY,CAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;AAsdlE,KAAK,gBAAgB,CAAC,QAAQ,SAAS,OAAO,GAAG,SAAS,IACtD,QAAQ,SAAS,SAAS,GACpB;IACI,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,wBAAwB,CAAC,EAAE,OAAO,CAAA;IAClC,iBAAiB,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CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAA;AAkB9B;;;;GAIG;AACH,wBAAsB,wBAAwB,CAC1C,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,EAClC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAEhD,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,CAChB,EACD,IAAI,EAAE,kCAAkC,CACpC,UAAU,EACV,OAAO,EACP,QAAQ,EACR,QAAQ,CACX,GACF,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAsZ3D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Chain, Client, Hex, Transport } from "viem";
|
|
1
|
+
import type { Chain, Client, Hex, PublicActions, PublicRpcSchema, Transport } from "viem";
|
|
2
2
|
import type { EntryPoint, Prettify } from "../../types";
|
|
3
3
|
import { type SignerToSimpleSmartAccountParameters, type SimpleSmartAccount } from "./signerToSimpleSmartAccount";
|
|
4
4
|
export type PrivateKeyToSimpleSmartAccountParameters<entryPoint extends EntryPoint> = Prettify<{
|
|
@@ -9,5 +9,5 @@ export type PrivateKeyToSimpleSmartAccountParameters<entryPoint extends EntryPoi
|
|
|
9
9
|
*
|
|
10
10
|
* @returns A Private Key Simple Account.
|
|
11
11
|
*/
|
|
12
|
-
export declare function privateKeyToSimpleSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined>, { privateKey, ...rest }: PrivateKeyToSimpleSmartAccountParameters<entryPoint>): Promise<SimpleSmartAccount<entryPoint, TTransport, TChain>>;
|
|
12
|
+
export declare function privateKeyToSimpleSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined, PublicRpcSchema, PublicActions>, { privateKey, ...rest }: PrivateKeyToSimpleSmartAccountParameters<entryPoint>): Promise<SimpleSmartAccount<entryPoint, TTransport, TChain>>;
|
|
13
13
|
//# sourceMappingURL=privateKeyToSimpleSmartAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateKeyToSimpleSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/simple/privateKeyToSimpleSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"privateKeyToSimpleSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/simple/privateKeyToSimpleSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,KAAK,EACL,MAAM,EACN,GAAG,EACH,aAAa,EACb,eAAe,EACf,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EACH,KAAK,oCAAoC,EACzC,KAAK,kBAAkB,EAE1B,MAAM,8BAA8B,CAAA;AAErC,MAAM,MAAM,wCAAwC,CAChD,UAAU,SAAS,UAAU,IAC7B,QAAQ,CACR;IACI,UAAU,EAAE,GAAG,CAAA;CAClB,GAAG,IAAI,CAAC,oCAAoC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CACvE,CAAA;AAED;;;;GAIG;AACH,wBAAsB,8BAA8B,CAChD,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,CAChB,EACD,EACI,UAAU,EACV,GAAG,IAAI,EACV,EAAE,wCAAwC,CAAC,UAAU,CAAC,GACxD,OAAO,CAAC,kBAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAa7D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Address, type Chain, type Client, type Transport } from "viem";
|
|
1
|
+
import { type Address, type Chain, type Client, type PublicActions, type PublicRpcSchema, type Transport } from "viem";
|
|
2
2
|
import type { Prettify } from "../../types";
|
|
3
3
|
import type { EntryPoint } from "../../types/entrypoint";
|
|
4
4
|
import { type SmartAccount, type SmartAccountSigner } from "../types";
|
|
@@ -9,11 +9,12 @@ export type SignerToSimpleSmartAccountParameters<entryPoint extends EntryPoint,
|
|
|
9
9
|
entryPoint: entryPoint;
|
|
10
10
|
index?: bigint;
|
|
11
11
|
address?: Address;
|
|
12
|
+
nonceKey?: bigint;
|
|
12
13
|
}>;
|
|
13
14
|
/**
|
|
14
15
|
* @description Creates an Simple Account from a private key.
|
|
15
16
|
*
|
|
16
17
|
* @returns A Private Key Simple Account.
|
|
17
18
|
*/
|
|
18
|
-
export declare function signerToSimpleSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address>(client: Client<TTransport, TChain, undefined>, { signer, factoryAddress: _factoryAddress, entryPoint: entryPointAddress, index, address }: SignerToSimpleSmartAccountParameters<entryPoint, TSource, TAddress>): Promise<SimpleSmartAccount<entryPoint, TTransport, TChain>>;
|
|
19
|
+
export declare function signerToSimpleSmartAccount<entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address>(client: Client<TTransport, TChain, undefined, PublicRpcSchema, PublicActions>, { signer, factoryAddress: _factoryAddress, entryPoint: entryPointAddress, index, address, nonceKey }: SignerToSimpleSmartAccountParameters<entryPoint, TSource, TAddress>): Promise<SimpleSmartAccount<entryPoint, TTransport, TChain>>;
|
|
19
20
|
//# sourceMappingURL=signerToSimpleSmartAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerToSimpleSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/simple/signerToSimpleSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAGX,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AAIb,OAAO,KAAK,EAGR,QAAQ,EACX,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAKxD,OAAO,EAEH,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAC1B,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,kBAAkB,CAC1B,UAAU,SAAS,UAAU,EAC7B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IACnD,YAAY,CAAC,UAAU,EAAE,oBAAoB,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;AA4EpE,MAAM,MAAM,oCAAoC,CAC5C,UAAU,SAAS,UAAU,EAC7B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,IAClC,QAAQ,CAAC;IACT,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC,CAAA;AAaF;;;;GAIG;AACH,wBAAsB,0BAA0B,C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AAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CACpB,CAAC,CAAA;AAaF;;;;GAIG;AACH,wBAAsB,0BAA0B,CAC5C,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,EAElC,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,CAChB,EACD,EACI,MAAM,EACN,cAAc,EAAE,eAAe,EAC/B,UAAU,EAAE,iBAAiB,EAC7B,KAAiB,EACjB,OAAO,EACP,QAAQ,EACX,EAAE,oCAAoC,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,GACvE,OAAO,CAAC,kBAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAmN7D"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type Abi, type Address, type Chain, type Client, type CustomSource, type EncodeDeployDataParameters, type Hex, type Transport } from "viem";
|
|
1
|
+
import { type Abi, type Address, type Chain, type Client, type CustomSource, type EncodeDeployDataParameters, type Hex, type PublicActions, type PublicRpcSchema, type Transport } from "viem";
|
|
2
2
|
import type { UserOperation } from "../types";
|
|
3
3
|
import type { EntryPoint, GetEntryPointVersion } from "../types/entrypoint";
|
|
4
4
|
import { type SmartAccount } from "./types";
|
|
5
5
|
export declare function toSmartAccount<TAccountSource extends CustomSource, TEntryPoint extends EntryPoint, TSource extends string = string, transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, TAbi extends Abi | readonly unknown[] = Abi>({ address, client, source, entryPoint, getNonce, getInitCode, getFactory, getFactoryData, encodeCallData, getDummySignature, encodeDeployCallData, signUserOperation, signMessage, signTypedData }: TAccountSource & {
|
|
6
6
|
source: TSource;
|
|
7
|
-
client: Client<transport, chain>;
|
|
7
|
+
client: Client<transport, chain, undefined, PublicRpcSchema, PublicActions>;
|
|
8
8
|
entryPoint: TEntryPoint;
|
|
9
|
-
getNonce: () => Promise<bigint>;
|
|
9
|
+
getNonce: (key?: bigint) => Promise<bigint>;
|
|
10
10
|
getInitCode: () => Promise<Hex>;
|
|
11
11
|
getFactory: () => Promise<Address | undefined>;
|
|
12
12
|
getFactoryData: () => Promise<Hex | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toSmartAccount.d.ts","sourceRoot":"","sources":["../../accounts/toSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"toSmartAccount.d.ts","sourceRoot":"","sources":["../../accounts/toSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,eAAe,EAEpB,KAAK,SAAS,EAIjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE3E,OAAO,EAEH,KAAK,YAAY,EACpB,MAAM,SAAS,CAAA;AAKhB,wBAAgB,cAAc,CAC1B,cAAc,SAAS,YAAY,EACnC,WAAW,SAAS,UAAU,EAC9B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,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aAAa,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC,KAC9D,OAAO,CAAC,GAAG,CAAC,CAAA;CACpB,GAAG,YAAY,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAsF7D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Chain, Client, Hex, PublicActions, PublicRpcSchema, Transport } from "viem";
|
|
2
2
|
import type { ENTRYPOINT_ADDRESS_V06_TYPE, Prettify } from "../../types";
|
|
3
3
|
import { type SignerToTrustSmartAccountParameters, type TrustSmartAccount } from "./signerToTrustSmartAccount";
|
|
4
4
|
export type PrivateKeyToTrustSmartAccountParameters<entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE> = Prettify<{
|
|
@@ -9,5 +9,5 @@ export type PrivateKeyToTrustSmartAccountParameters<entryPoint extends ENTRYPOIN
|
|
|
9
9
|
*
|
|
10
10
|
* @returns A Private Key Trust Account.
|
|
11
11
|
*/
|
|
12
|
-
export declare function privateKeyToTrustSmartAccount<entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined>, { privateKey, ...rest }: PrivateKeyToTrustSmartAccountParameters<entryPoint>): Promise<TrustSmartAccount<entryPoint, TTransport, TChain>>;
|
|
12
|
+
export declare function privateKeyToTrustSmartAccount<entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined, PublicRpcSchema, PublicActions>, { privateKey, ...rest }: PrivateKeyToTrustSmartAccountParameters<entryPoint>): Promise<TrustSmartAccount<entryPoint, TTransport, TChain>>;
|
|
13
13
|
//# sourceMappingURL=privateKeyToTrustSmartAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privateKeyToTrustSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/trust/privateKeyToTrustSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"privateKeyToTrustSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/trust/privateKeyToTrustSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,KAAK,EACL,MAAM,EACN,GAAG,EACH,aAAa,EACb,eAAe,EACf,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,2BAA2B,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,EACH,KAAK,mCAAmC,EACxC,KAAK,iBAAiB,EAEzB,MAAM,6BAA6B,CAAA;AAEpC,MAAM,MAAM,uCAAuC,CAC/C,UAAU,SAAS,2BAA2B,IAC9C,QAAQ,CACR;IACI,UAAU,EAAE,GAAG,CAAA;CAClB,GAAG,IAAI,CAAC,mCAAmC,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,CACtE,CAAA;AAED;;;;GAIG;AACH,wBAAsB,6BAA6B,CAC/C,UAAU,SAAS,2BAA2B,EAC9C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,CAChB,EACD,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,uCAAuC,CAAC,UAAU,CAAC,GAC7E,OAAO,CAAC,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAO5D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Address, type Chain, type Client, type Transport } from "viem";
|
|
1
|
+
import { type Address, type Chain, type Client, type PublicActions, type PublicRpcSchema, type Transport } from "viem";
|
|
2
2
|
import { type SmartAccount, type SmartAccountSigner } from "../types";
|
|
3
3
|
import type { ENTRYPOINT_ADDRESS_V06_TYPE } from "../../types";
|
|
4
4
|
/**
|
|
@@ -16,11 +16,12 @@ export type SignerToTrustSmartAccountParameters<entryPoint extends ENTRYPOINT_AD
|
|
|
16
16
|
index?: bigint;
|
|
17
17
|
address?: Address;
|
|
18
18
|
secp256k1VerificationFacetAddress?: Address;
|
|
19
|
+
nonceKey?: bigint;
|
|
19
20
|
};
|
|
20
21
|
/**
|
|
21
22
|
* @description Creates an Trust Smart Account from a private key.
|
|
22
23
|
*
|
|
23
24
|
* @returns A Private Key Trust Smart Account.
|
|
24
25
|
*/
|
|
25
|
-
export declare function signerToTrustSmartAccount<entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address>(client: Client<TTransport, TChain, undefined>, { signer, factoryAddress, entryPoint: entryPointAddress, index, secp256k1VerificationFacetAddress, address }: SignerToTrustSmartAccountParameters<entryPoint, TSource, TAddress>): Promise<TrustSmartAccount<entryPoint, TTransport, TChain>>;
|
|
26
|
+
export declare function signerToTrustSmartAccount<entryPoint extends ENTRYPOINT_ADDRESS_V06_TYPE, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TSource extends string = string, TAddress extends Address = Address>(client: Client<TTransport, TChain, undefined, PublicRpcSchema, PublicActions>, { signer, factoryAddress, entryPoint: entryPointAddress, index, secp256k1VerificationFacetAddress, address, nonceKey }: SignerToTrustSmartAccountParameters<entryPoint, TSource, TAddress>): Promise<TrustSmartAccount<entryPoint, TTransport, TChain>>;
|
|
26
27
|
//# sourceMappingURL=signerToTrustSmartAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signerToTrustSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/trust/signerToTrustSmartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAGX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AO,EACP,QAAQ,EACX,EAAE,mCAAmC,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,GACtE,OAAO,CAAC,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAwH5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encodeCallData.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/encodeCallData.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"encodeCallData.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/encodeCallData.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,aAExB;IACC,IAAI,EACE;QACI,EAAE,EAAE,KAAK,MAAM,EAAE,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,KAAK,MAAM,EAAE,CAAA;KACtB,GACD;QACI,EAAE,EAAE,KAAK,MAAM,EAAE,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,KAAK,MAAM,EAAE,CAAA;KACtB,EAAE,CAAA;CACZ,2BA8EA,CAAA"}
|
|
@@ -5,6 +5,6 @@ export declare const getAccountAddress: <entryPoint extends EntryPoint, TTranspo
|
|
|
5
5
|
bytes: `0x${string}`;
|
|
6
6
|
entryPoint: entryPoint;
|
|
7
7
|
secp256k1VerificationFacetAddress: Address;
|
|
8
|
-
index?: bigint
|
|
8
|
+
index?: bigint;
|
|
9
9
|
}) => Promise<Address>;
|
|
10
10
|
//# sourceMappingURL=getAccountAddress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccountAddress.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/getAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG7E,eAAO,MAAM,iBAAiB;
|
|
1
|
+
{"version":3,"file":"getAccountAddress.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/getAccountAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAA+B,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAG7E,eAAO,MAAM,iBAAiB,0IAKlB,OAAO,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,sGAO1C;IACC,cAAc,EAAE,OAAO,CAAA;IACvB,KAAK,EAAE,KAAK,MAAM,EAAE,CAAA;IACpB,YAAY,UAAU,CAAA;IACtB,iCAAiC,EAAE,OAAO,CAAA;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,KACF,QAAQ,OAAO,CAWjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDummySignature.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/getDummySignature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,UAAU,EACV,oBAAoB,EACpB,aAAa,EAChB,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"getDummySignature.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/getDummySignature.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,UAAU,EACV,oBAAoB,EACpB,aAAa,EAChB,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,iBAAiB,kDACV,cAAc,qBAAqB,UAAU,CAAC,CAAC,2BAGlE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFactoryData.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/getFactoryData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAGnC;;GAEG;AACH,eAAO,MAAM,cAAc;
|
|
1
|
+
{"version":3,"file":"getFactoryData.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/getFactoryData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAGnC;;GAEG;AACH,eAAO,MAAM,cAAc,wDAIxB;IACC,KAAK,EAAE,KAAK,MAAM,EAAE,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,iCAAiC,EAAE,OAAO,CAAA;CAC7C,2BAoCA,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/signMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,MAAM,CAAA;AAGjD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/signMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,MAAM,CAAA;AAGjD,eAAO,MAAM,WAAW,2GAIZ,OAAO,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,wBACvB,sBAAsB,SAAS,CAAC,2BAGzD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SerializeTransactionFn, TransactionSerializable } from "viem";
|
|
2
2
|
export declare const signTransaction: <serializer extends SerializeTransactionFn<TransactionSerializable> = SerializeTransactionFn<TransactionSerializable>, transaction extends Parameters<serializer>[0] = Parameters<serializer>[0]>(_transaction: transaction, _args?: {
|
|
3
|
-
serializer?: serializer
|
|
4
|
-
}
|
|
3
|
+
serializer?: serializer;
|
|
4
|
+
}) => never;
|
|
5
5
|
//# sourceMappingURL=signTransaction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signTransaction.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/signTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,MAAM,CAAA;AAG3E,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"signTransaction.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/signTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,MAAM,CAAA;AAG3E,eAAO,MAAM,eAAe,kNAKV,WAAW,UACjB;IACJ,UAAU,CAAC,EAAE,UAAU,CAAA;CAC1B,UAGJ,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUserOperation.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/signUserOperation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signUserOperation.d.ts","sourceRoot":"","sources":["../../../../accounts/trust/utils/signUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EACR,UAAU,EACV,oBAAoB,EACpB,aAAa,EAChB,MAAM,gBAAgB,CAAA;AAIvB,eAAO,MAAM,iBAAiB,0IAKlB,OAAO,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,sEAM1C;IACC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAA;IAC1B,aAAa,EAAE,cAAc,qBAAqB,UAAU,CAAC,CAAC,CAAA;IAC9D,YAAY,UAAU,CAAA;IACtB,OAAO,EAAE,MAAM,CAAA;CAClB,2BAYJ,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Abi, type Address, BaseError, type Client, type Hex, type LocalAccount } from "viem";
|
|
2
|
-
import type { Chain, EncodeDeployDataParameters, Transport } from "viem";
|
|
2
|
+
import type { Chain, EncodeDeployDataParameters, PublicActions, PublicRpcSchema, Transport } from "viem";
|
|
3
3
|
import type { UserOperation } from "../types";
|
|
4
4
|
import type { EntryPoint, GetEntryPointVersion } from "../types/entrypoint";
|
|
5
5
|
export declare class SignTransactionNotSupportedBySmartAccount extends BaseError {
|
|
@@ -9,9 +9,9 @@ export declare class SignTransactionNotSupportedBySmartAccount extends BaseError
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
export type SmartAccount<entryPoint extends EntryPoint, TSource extends string = string, transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, TAbi extends Abi | readonly unknown[] = Abi> = LocalAccount<TSource> & {
|
|
12
|
-
client: Client<transport, chain>;
|
|
12
|
+
client: Client<transport, chain, undefined, PublicRpcSchema, PublicActions>;
|
|
13
13
|
entryPoint: entryPoint;
|
|
14
|
-
getNonce: () => Promise<bigint>;
|
|
14
|
+
getNonce: (key?: bigint) => Promise<bigint>;
|
|
15
15
|
getInitCode: () => Promise<Hex>;
|
|
16
16
|
getFactory: () => Promise<Address | undefined>;
|
|
17
17
|
getFactoryData: () => Promise<Hex | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../accounts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,YAAY,EACpB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../accounts/types.ts"],"names":[],"mappings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AE,OAAO,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,GAAG,CAAA;KACZ,GACD;QACI,EAAE,EAAE,OAAO,CAAA;QACX,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,GAAG,CAAA;KACZ,EAAE,KACR,OAAO,CAAC,GAAG,CAAC,CAAA;IACjB,iBAAiB,CACb,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,GAC/D,OAAO,CAAC,GAAG,CAAC,CAAA;IACf,oBAAoB,EAAE,CAAC,EACnB,GAAG,EACH,IAAI,EACJ,QAAQ,EACX,EAAE,0BAA0B,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACpD,iBAAiB,EAAE,CACf,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,KAC7D,OAAO,CAAC,GAAG,CAAC,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,kBAAkB,CAC1B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,IAClC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chainId.d.ts","sourceRoot":"","sources":["../../../actions/bundler/chainId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"chainId.d.ts","sourceRoot":"","sources":["../../../actions/bundler/chainId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,OAAO,sMAMR,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,UAAU,CAAC,CAAC,oBAQ7E,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Account, Chain, Client, Transport } from "viem";
|
|
2
|
-
import type { PartialBy } from "viem/
|
|
2
|
+
import type { PartialBy } from "viem/chains";
|
|
3
3
|
import type { Prettify } from "../../types";
|
|
4
4
|
import type { BundlerRpcSchema, StateOverrides } from "../../types/bundler";
|
|
5
5
|
import type { EntryPoint, GetEntryPointVersion } from "../../types/entrypoint";
|
|
@@ -48,5 +48,44 @@ export type EstimateUserOperationErrorType<entryPoint extends EntryPoint> = GetE
|
|
|
48
48
|
* // Return {preVerificationGas: 43492n, verificationGasLimit: 59436n, callGasLimit: 9000n}
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
|
-
export declare const estimateUserOperationGas: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, args:
|
|
51
|
+
export declare const estimateUserOperationGas: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, args: {
|
|
52
|
+
userOperation: GetEntryPointVersion<entryPoint> extends "v0.6" ? PartialBy<{
|
|
53
|
+
sender: `0x${string}`;
|
|
54
|
+
nonce: bigint;
|
|
55
|
+
initCode: `0x${string}`;
|
|
56
|
+
callData: `0x${string}`;
|
|
57
|
+
callGasLimit: bigint;
|
|
58
|
+
verificationGasLimit: bigint;
|
|
59
|
+
preVerificationGas: bigint;
|
|
60
|
+
maxFeePerGas: bigint;
|
|
61
|
+
maxPriorityFeePerGas: bigint;
|
|
62
|
+
paymasterAndData: `0x${string}`;
|
|
63
|
+
signature: `0x${string}`;
|
|
64
|
+
factory?: undefined;
|
|
65
|
+
factoryData?: undefined;
|
|
66
|
+
paymaster?: undefined;
|
|
67
|
+
paymasterVerificationGasLimit?: undefined;
|
|
68
|
+
paymasterPostOpGasLimit?: undefined;
|
|
69
|
+
paymasterData?: undefined;
|
|
70
|
+
}, "callGasLimit" | "preVerificationGas" | "verificationGasLimit"> : PartialBy<{
|
|
71
|
+
sender: `0x${string}`;
|
|
72
|
+
nonce: bigint;
|
|
73
|
+
factory?: `0x${string}` | undefined;
|
|
74
|
+
factoryData?: `0x${string}` | undefined;
|
|
75
|
+
callData: `0x${string}`;
|
|
76
|
+
callGasLimit: bigint;
|
|
77
|
+
verificationGasLimit: bigint;
|
|
78
|
+
preVerificationGas: bigint;
|
|
79
|
+
maxFeePerGas: bigint;
|
|
80
|
+
maxPriorityFeePerGas: bigint;
|
|
81
|
+
paymaster?: `0x${string}` | undefined;
|
|
82
|
+
paymasterVerificationGasLimit?: bigint | undefined;
|
|
83
|
+
paymasterPostOpGasLimit?: bigint | undefined;
|
|
84
|
+
paymasterData?: `0x${string}` | undefined;
|
|
85
|
+
signature: `0x${string}`;
|
|
86
|
+
initCode?: undefined;
|
|
87
|
+
paymasterAndData?: undefined;
|
|
88
|
+
}, "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "paymasterVerificationGasLimit" | "paymasterPostOpGasLimit">;
|
|
89
|
+
entryPoint: entryPoint;
|
|
90
|
+
}, stateOverrides?: StateOverrides) => Promise<EstimateUserOperationGasReturnType<entryPoint>>;
|
|
52
91
|
//# sourceMappingURL=estimateUserOperationGas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../../actions/bundler/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,KAAK,EAAE,MAAM,EAAO,SAAS,EAAE,MAAM,MAAM,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../../actions/bundler/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,KAAK,EAAE,MAAM,EAAO,SAAS,EAAE,MAAM,MAAM,CAAA;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAG9D,OAAO,EACH,KAAK,0CAA0C,EAElD,MAAM,qDAAqD,CAAA;AAE5D,MAAM,MAAM,kCAAkC,CAAC,UAAU,SAAS,UAAU,IACxE;IACI,aAAa,EAAE,oBAAoB,CAAC,UAAU,CAAC,SAAS,MAAM,GACxD,SAAS,CACL,aAAa,CAAC,MAAM,CAAC,EACrB,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CACjE,GACD,SAAS,CACL,aAAa,CAAC,MAAM,CAAC,EACnB,cAAc,GACd,oBAAoB,GACpB,sBAAsB,GACtB,+BAA+B,GAC/B,yBAAyB,CAC9B,CAAA;IACP,UAAU,EAAE,UAAU,CAAA;CACzB,CAAA;AAEL,MAAM,MAAM,kCAAkC,CAAC,UAAU,SAAS,UAAU,IACxE,oBAAoB,CAAC,UAAU,CAAC,SAAS,MAAM,GACzC;IACI,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACvB,GACD;IACI,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,6BAA6B,CAAC,EAAE,MAAM,CAAA;IACtC,uBAAuB,CAAC,EAAE,MAAM,CAAA;CACnC,CAAA;AAEX,MAAM,MAAM,8BAA8B,CAAC,UAAU,SAAS,UAAU,IACpE,0CAA0C,CAAC,UAAU,CAAC,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAQhB,cAAc,4DA4DlC,CAAA"}
|
|
@@ -35,11 +35,5 @@ export type GetUserOperationByHashReturnType<entryPoint extends EntryPoint> = {
|
|
|
35
35
|
* getUserOperationByHash(bundlerClient, {hash: userOpHash})
|
|
36
36
|
*
|
|
37
37
|
*/
|
|
38
|
-
export declare const getUserOperationByHash: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, { hash }: Prettify<GetUserOperationByHashParameters>) => Promise<
|
|
39
|
-
userOperation: UserOperation<GetEntryPointVersion<entryPoint>>;
|
|
40
|
-
entryPoint: Address;
|
|
41
|
-
transactionHash: Hash;
|
|
42
|
-
blockHash: Hash;
|
|
43
|
-
blockNumber: bigint;
|
|
44
|
-
} | null>;
|
|
38
|
+
export declare const getUserOperationByHash: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, { hash }: Prettify<GetUserOperationByHashParameters>) => Promise<Prettify<GetUserOperationByHashReturnType<entryPoint>> | null>;
|
|
45
39
|
//# sourceMappingURL=getUserOperationByHash.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserOperationByHash.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationByHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAG9D,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,CAAC,UAAU,SAAS,UAAU,IAAI;IAC1E,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAA;IAC9D,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,IAAI,CAAA;IACrB,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"getUserOperationByHash.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationByHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,S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KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAGxD,MAAM,MAAM,iCAAiC,GAAG;IAC5C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC5C,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE;QACL,eAAe,EAAE,GAAG,CAAA;QACpB,gBAAgB,EAAE,MAAM,CAAA;QACxB,SAAS,EAAE,IAAI,CAAA;QACf,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,OAAO,CAAA;QACb,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;QAClB,iBAAiB,EAAE,MAAM,CAAA;QACzB,MAAM,EAAE,OAAO,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,eAAe,EAAE,OAAO,GAAG,IAAI,CAAA;QAC/B,SAAS,EAAE,GAAG,CAAA;QACd,iBAAiB,EAAE,MAAM,CAAA;KAC5B,CAAA;IACD,IAAI,EAAE,GAAG,EAAE,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"getUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,IAAI,EACJ,GAAG,EACH,GAAG,EACH,SAAS,EACZ,MAA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C,YAChE,SAAS,iCAAiC,CAAC,KACtD,QAAQ,SAAS,iCAAiC,CAAC,GAAG,IAAI,CAgD5D,CAAA"}
|
|
@@ -32,5 +32,8 @@ export type SendUserOperationParameters<entryPoint extends EntryPoint> = {
|
|
|
32
32
|
*
|
|
33
33
|
* // Return '0xe9fad2cd67f9ca1d0b7a6513b2a42066784c8df938518da2b51bb8cc9a89ea34'
|
|
34
34
|
*/
|
|
35
|
-
export declare const sendUserOperation: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, args:
|
|
35
|
+
export declare const sendUserOperation: <entryPoint extends EntryPoint, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema<entryPoint>>, args: {
|
|
36
|
+
userOperation: UserOperation<GetEntryPointVersion<entryPoint>>;
|
|
37
|
+
entryPoint: entryPoint;
|
|
38
|
+
}) => Promise<Hash>;
|
|
36
39
|
//# sourceMappingURL=sendUserOperation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,2BAA2B,CAAA;AAIlC,MAAM,MAAM,2BAA2B,CAAC,UAAU,SAAS,UAAU,IAAI;IACrE,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAA;IAC9D,UAAU,EAAE,UAAU,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAa,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,2BAA2B,CAAA;AAIlC,MAAM,MAAM,2BAA2B,CAAC,UAAU,SAAS,UAAU,IAAI;IACrE,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAA;IAC9D,UAAU,EAAE,UAAU,CAAA;CACzB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB;;;MAQ3B,QAAQ,IAAI,CAqBd,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supportedEntryPoints.d.ts","sourceRoot":"","sources":["../../../actions/bundler/supportedEntryPoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"supportedEntryPoints.d.ts","sourceRoot":"","sources":["../../../actions/bundler/supportedEntryPoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,oBAAoB,sMAMrB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,UAAU,CAAC,CAAC,KAC3E,QAAQ,UAAU,EAAE,CAKtB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EACH,KAAK,iCAAiC,EAEzC,MAAM,2BAA2B,CAAA;AAElC,qBAAa,uCAAwC,SAAQ,SAAS;IACzD,IAAI,SAA4C;gBAC7C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;CAKvC;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAA;IACV;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"waitForUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAE5C,OAAO,EACH,KAAK,iCAAiC,EAEzC,MAAM,2BAA2B,CAAA;AAElC,qBAAa,uCAAwC,SAAQ,SAAS;IACzD,IAAI,SAA4C;gBAC7C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;CAKvC;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAA;IACV;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,8KAKrB,OAAO,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,sCAKhD,SAAS,qCAAqC,CAAC,KACnD,QAAQ,SAAS,iCAAiC,CAAC,CA2DrD,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type Chain, type Client, type Transport } from "viem";
|
|
2
|
+
import type { SmartAccount } from "../../accounts/types";
|
|
3
|
+
import type { GetAccountParameter } from "../../types";
|
|
4
|
+
import type { EntryPoint } from "../../types/entrypoint";
|
|
5
|
+
export declare function accountId<TEntryPoint extends EntryPoint, TSmartAccount extends SmartAccount<TEntryPoint> | undefined, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, TSmartAccount>, args?: TSmartAccount extends undefined ? GetAccountParameter<TEntryPoint, TSmartAccount> : undefined): Promise<string>;
|
|
6
|
+
//# sourceMappingURL=accountId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountId.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/accountId.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAIxD,wBAAsB,SAAS,CAC3B,WAAW,SAAS,UAAU,EAC9B,aAAa,SAAS,YAAY,CAAC,WAAW,CAAC,GAAG,SAAS,EAC3D,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,IAAI,CAAC,EAAE,aAAa,SAAS,SAAS,GAChC,mBAAmB,CAAC,WAAW,EAAE,aAAa,CAAC,GAC/C,SAAS,GAChB,OAAO,CAAC,MAAM,CAAC,CAkEjB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
|
|
2
|
+
import type { SmartAccount } from "../../accounts/types";
|
|
3
|
+
import type { GetAccountParameter, Prettify } from "../../types";
|
|
4
|
+
import type { EntryPoint } from "../../types/entrypoint";
|
|
5
|
+
import type { Middleware } from "../smartAccount/prepareUserOperationRequest";
|
|
6
|
+
import { type ModuleType } from "./supportsModule";
|
|
7
|
+
export type InstallModuleParameters<TEntryPoint extends EntryPoint, TSmartAccount extends SmartAccount<TEntryPoint> | undefined> = GetAccountParameter<TEntryPoint, TSmartAccount> & {
|
|
8
|
+
type: ModuleType;
|
|
9
|
+
address: Address;
|
|
10
|
+
context: Hex;
|
|
11
|
+
maxFeePerGas?: bigint;
|
|
12
|
+
maxPriorityFeePerGas?: bigint;
|
|
13
|
+
nonce?: bigint;
|
|
14
|
+
} & Middleware<TEntryPoint>;
|
|
15
|
+
export declare function installModule<TEntryPoint extends EntryPoint, TSmartAccount extends SmartAccount<TEntryPoint> | undefined, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, TSmartAccount>, parameters: Prettify<InstallModuleParameters<TEntryPoint, TSmartAccount>>): Promise<Hex>;
|
|
16
|
+
//# sourceMappingURL=installModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installModule.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/installModule.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,SAAS,EAGjB,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAA;AAE7E,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,uBAAuB,CAC/B,WAAW,SAAS,UAAU,EAC9B,aAAa,SAAS,YAAY,CAAC,WAAW,CAAC,GAAG,SAAS,IAC3D,mBAAmB,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG;IAClD,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,GAAG,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;AAE3B,wBAAsB,aAAa,CAC/B,WAAW,SAAS,UAAU,EAC9B,aAAa,SAAS,YAAY,CAAC,WAAW,CAAC,GAAG,SAAS,EAC3D,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,UAAU,EAAE,QAAQ,CAAC,uBAAuB,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,GAC1E,OAAO,CAAC,GAAG,CAAC,CAqEd"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
|
|
2
|
+
import type { SmartAccount } from "../../accounts/types";
|
|
3
|
+
import type { GetAccountParameter } from "../../types";
|
|
4
|
+
import type { EntryPoint } from "../../types/entrypoint";
|
|
5
|
+
import { type ModuleType } from "./supportsModule";
|
|
6
|
+
export type IsModuleInstalledParameters<TEntryPoint extends EntryPoint, TSmartAccount extends SmartAccount<TEntryPoint> | undefined = SmartAccount<TEntryPoint> | undefined> = GetAccountParameter<TEntryPoint, TSmartAccount> & {
|
|
7
|
+
type: ModuleType;
|
|
8
|
+
address: Address;
|
|
9
|
+
context: Hex;
|
|
10
|
+
};
|
|
11
|
+
export declare function isModuleInstalled<TEntryPoint extends EntryPoint, TSmartAccount extends SmartAccount<TEntryPoint> | undefined, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, TSmartAccount>, parameters: IsModuleInstalledParameters<TEntryPoint, TSmartAccount>): Promise<boolean>;
|
|
12
|
+
//# sourceMappingURL=isModuleInstalled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isModuleInstalled.d.ts","sourceRoot":"","sources":["../../../actions/erc7579/isModuleInstalled.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,GAAG,EACR,KAAK,SAAS,EAIjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAGxD,OAAO,EAAE,KAAK,UAAU,EAAqB,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,2BAA2B,CACnC,WAAW,SAAS,UAAU,EAC9B,aAAa,SAAS,YAAY,CAAC,WAAW,CAAC,GAAG,SAAS,GACrD,YAAY,CAAC,WAAW,CAAC,GACzB,SAAS,IACf,mBAAmB,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG;IAClD,IAAI,EAAE,UAAU,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,GAAG,CAAA;CACf,CAAA;AAED,wBAAsB,iBAAiB,CACnC,WAAW,SAAS,UAAU,EAC9B,aAAa,SAAS,YAAY,CAAC,WAAW,CAAC,GAAG,SAAS,EAC3D,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EAEpD,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,EACjD,UAAU,EAAE,2BAA2B,CAAC,WAAW,EAAE,aAAa,CAAC,GACpE,OAAO,CAAC,OAAO,CAAC,CAoFlB"}
|