permissionless 0.3.6 → 0.4.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.
Files changed (229) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/_cjs/accounts/biconomy/toBiconomySmartAccount.js +9 -5
  3. package/_cjs/accounts/biconomy/toBiconomySmartAccount.js.map +1 -1
  4. package/_cjs/accounts/kernel/toKernelSmartAccount.js +4 -0
  5. package/_cjs/accounts/kernel/toKernelSmartAccount.js.map +1 -1
  6. package/_cjs/accounts/light/toLightSmartAccount.js +9 -5
  7. package/_cjs/accounts/light/toLightSmartAccount.js.map +1 -1
  8. package/_cjs/accounts/nexus/toNexusSmartAccount.js +3 -2
  9. package/_cjs/accounts/nexus/toNexusSmartAccount.js.map +1 -1
  10. package/_cjs/accounts/safe/signUserOperation.js +14 -1
  11. package/_cjs/accounts/safe/signUserOperation.js.map +1 -1
  12. package/_cjs/accounts/safe/toSafeSmartAccount.js +6 -4
  13. package/_cjs/accounts/safe/toSafeSmartAccount.js.map +1 -1
  14. package/_cjs/accounts/simple/toSimpleSmartAccount.js +15 -10
  15. package/_cjs/accounts/simple/toSimpleSmartAccount.js.map +1 -1
  16. package/_cjs/accounts/thirdweb/utils/decodeCallData.js +7 -5
  17. package/_cjs/accounts/thirdweb/utils/decodeCallData.js.map +1 -1
  18. package/_cjs/accounts/trust/utils/decodeCallData.js +7 -5
  19. package/_cjs/accounts/trust/utils/decodeCallData.js.map +1 -1
  20. package/_cjs/actions/{erc7579.js → erc7579/index.js} +9 -9
  21. package/_cjs/actions/erc7579/index.js.map +1 -0
  22. package/_cjs/actions/{etherspot.js → etherspot/index.js} +2 -2
  23. package/_cjs/actions/etherspot/index.js.map +1 -0
  24. package/_cjs/actions/{passkeyServer.js → passkeyServer/index.js} +4 -4
  25. package/_cjs/actions/passkeyServer/index.js.map +1 -0
  26. package/_cjs/actions/pimlico/estimateErc20PaymasterCost.js +7 -3
  27. package/_cjs/actions/pimlico/estimateErc20PaymasterCost.js.map +1 -1
  28. package/_cjs/actions/{pimlico.js → pimlico/index.js} +8 -8
  29. package/_cjs/actions/pimlico/index.js.map +1 -0
  30. package/_cjs/actions/{smartAccount.js → smartAccount/index.js} +5 -5
  31. package/_cjs/actions/smartAccount/index.js.map +1 -0
  32. package/_cjs/clients/createSmartAccountClient.js.map +1 -1
  33. package/_cjs/clients/decorators/pimlico.js +4 -4
  34. package/_cjs/clients/decorators/pimlico.js.map +1 -1
  35. package/_cjs/clients/{passkeyServer.js → passkeyServer/index.js} +2 -2
  36. package/_cjs/clients/passkeyServer/index.js.map +1 -0
  37. package/_cjs/clients/{pimlico.js → pimlico/index.js} +2 -2
  38. package/_cjs/clients/pimlico/index.js.map +1 -0
  39. package/_cjs/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js +6 -5
  40. package/_cjs/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js.map +1 -1
  41. package/_cjs/utils/index.js +3 -1
  42. package/_cjs/utils/index.js.map +1 -1
  43. package/_cjs/utils/sortAddresses.js +16 -0
  44. package/_cjs/utils/sortAddresses.js.map +1 -0
  45. package/_esm/accounts/biconomy/toBiconomySmartAccount.js +9 -5
  46. package/_esm/accounts/biconomy/toBiconomySmartAccount.js.map +1 -1
  47. package/_esm/accounts/kernel/toKernelSmartAccount.js +4 -0
  48. package/_esm/accounts/kernel/toKernelSmartAccount.js.map +1 -1
  49. package/_esm/accounts/light/toLightSmartAccount.js +9 -5
  50. package/_esm/accounts/light/toLightSmartAccount.js.map +1 -1
  51. package/_esm/accounts/nexus/toNexusSmartAccount.js +3 -2
  52. package/_esm/accounts/nexus/toNexusSmartAccount.js.map +1 -1
  53. package/_esm/accounts/safe/signUserOperation.js +14 -1
  54. package/_esm/accounts/safe/signUserOperation.js.map +1 -1
  55. package/_esm/accounts/safe/toSafeSmartAccount.js +6 -4
  56. package/_esm/accounts/safe/toSafeSmartAccount.js.map +1 -1
  57. package/_esm/accounts/simple/toSimpleSmartAccount.js +15 -10
  58. package/_esm/accounts/simple/toSimpleSmartAccount.js.map +1 -1
  59. package/_esm/accounts/thirdweb/utils/decodeCallData.js +7 -5
  60. package/_esm/accounts/thirdweb/utils/decodeCallData.js.map +1 -1
  61. package/_esm/accounts/trust/utils/decodeCallData.js +7 -5
  62. package/_esm/accounts/trust/utils/decodeCallData.js.map +1 -1
  63. package/_esm/actions/{erc7579.js → erc7579/index.js} +9 -9
  64. package/_esm/actions/erc7579/index.js.map +1 -0
  65. package/_esm/actions/etherspot/index.js +2 -0
  66. package/_esm/actions/etherspot/index.js.map +1 -0
  67. package/_esm/actions/passkeyServer/index.js +4 -0
  68. package/_esm/actions/passkeyServer/index.js.map +1 -0
  69. package/_esm/actions/pimlico/estimateErc20PaymasterCost.js +7 -3
  70. package/_esm/actions/pimlico/estimateErc20PaymasterCost.js.map +1 -1
  71. package/_esm/actions/pimlico/index.js +8 -0
  72. package/_esm/actions/pimlico/index.js.map +1 -0
  73. package/_esm/actions/smartAccount/index.js +5 -0
  74. package/_esm/actions/smartAccount/index.js.map +1 -0
  75. package/_esm/clients/createSmartAccountClient.js.map +1 -1
  76. package/_esm/clients/decorators/pimlico.js +1 -1
  77. package/_esm/clients/decorators/pimlico.js.map +1 -1
  78. package/_esm/clients/{passkeyServer.js → passkeyServer/index.js} +2 -2
  79. package/_esm/clients/passkeyServer/index.js.map +1 -0
  80. package/_esm/clients/{pimlico.js → pimlico/index.js} +2 -2
  81. package/_esm/clients/pimlico/index.js.map +1 -0
  82. package/_esm/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js +5 -4
  83. package/_esm/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js.map +1 -1
  84. package/_esm/utils/index.js +1 -0
  85. package/_esm/utils/index.js.map +1 -1
  86. package/_esm/utils/sortAddresses.js +19 -0
  87. package/_esm/utils/sortAddresses.js.map +1 -0
  88. package/_types/accounts/biconomy/toBiconomySmartAccount.d.ts.map +1 -1
  89. package/_types/accounts/kernel/toKernelSmartAccount.d.ts.map +1 -1
  90. package/_types/accounts/light/toLightSmartAccount.d.ts.map +1 -1
  91. package/_types/accounts/nexus/toNexusSmartAccount.d.ts.map +1 -1
  92. package/_types/accounts/safe/signUserOperation.d.ts.map +1 -1
  93. package/_types/accounts/safe/toSafeSmartAccount.d.ts.map +1 -1
  94. package/_types/accounts/simple/toSimpleSmartAccount.d.ts.map +1 -1
  95. package/_types/accounts/thirdweb/utils/decodeCallData.d.ts.map +1 -1
  96. package/_types/accounts/trust/utils/decodeCallData.d.ts.map +1 -1
  97. package/_types/actions/{erc7579.d.ts → erc7579/index.d.ts} +11 -11
  98. package/_types/actions/erc7579/index.d.ts.map +1 -0
  99. package/_types/actions/etherspot/index.d.ts +2 -0
  100. package/_types/actions/etherspot/index.d.ts.map +1 -0
  101. package/_types/actions/passkeyServer/index.d.ts +4 -0
  102. package/_types/actions/passkeyServer/index.d.ts.map +1 -0
  103. package/_types/actions/pimlico/estimateErc20PaymasterCost.d.ts.map +1 -1
  104. package/_types/actions/pimlico/index.d.ts +8 -0
  105. package/_types/actions/pimlico/index.d.ts.map +1 -0
  106. package/_types/actions/smartAccount/index.d.ts +5 -0
  107. package/_types/actions/smartAccount/index.d.ts.map +1 -0
  108. package/_types/clients/createSmartAccountClient.d.ts +9 -1
  109. package/_types/clients/createSmartAccountClient.d.ts.map +1 -1
  110. package/_types/clients/decorators/pimlico.d.ts +1 -1
  111. package/_types/clients/decorators/pimlico.d.ts.map +1 -1
  112. package/_types/clients/{passkeyServer.d.ts → passkeyServer/index.d.ts} +8 -4
  113. package/_types/clients/passkeyServer/index.d.ts.map +1 -0
  114. package/_types/clients/pimlico/index.d.ts +21 -0
  115. package/_types/clients/pimlico/index.d.ts.map +1 -0
  116. package/_types/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.d.ts.map +1 -1
  117. package/_types/utils/index.d.ts +1 -0
  118. package/_types/utils/index.d.ts.map +1 -1
  119. package/_types/utils/sortAddresses.d.ts +9 -0
  120. package/_types/utils/sortAddresses.d.ts.map +1 -0
  121. package/accounts/biconomy/package.json +6 -0
  122. package/accounts/biconomy/toBiconomySmartAccount.ts +13 -5
  123. package/accounts/etherspot/package.json +6 -0
  124. package/accounts/kernel/package.json +6 -0
  125. package/accounts/kernel/toKernelSmartAccount.ts +7 -0
  126. package/accounts/light/package.json +6 -0
  127. package/accounts/light/toLightSmartAccount.ts +13 -5
  128. package/accounts/nexus/package.json +6 -0
  129. package/accounts/nexus/toNexusSmartAccount.ts +3 -6
  130. package/accounts/package.json +6 -0
  131. package/accounts/safe/package.json +6 -0
  132. package/accounts/safe/signUserOperation.ts +15 -3
  133. package/accounts/safe/toSafeSmartAccount.ts +7 -6
  134. package/accounts/simple/package.json +6 -0
  135. package/accounts/simple/toSimpleSmartAccount.ts +21 -10
  136. package/accounts/thirdweb/package.json +6 -0
  137. package/accounts/thirdweb/utils/decodeCallData.ts +9 -5
  138. package/accounts/trust/package.json +6 -0
  139. package/accounts/trust/utils/decodeCallData.ts +9 -5
  140. package/actions/{erc7579.ts → erc7579/index.ts} +10 -16
  141. package/actions/erc7579/package.json +6 -0
  142. package/actions/{etherspot.ts → etherspot/index.ts} +1 -1
  143. package/actions/etherspot/package.json +6 -0
  144. package/actions/{passkeyServer.ts → passkeyServer/index.ts} +3 -3
  145. package/actions/passkeyServer/package.json +6 -0
  146. package/actions/pimlico/estimateErc20PaymasterCost.ts +9 -3
  147. package/actions/{pimlico.ts → pimlico/index.ts} +7 -7
  148. package/actions/pimlico/package.json +6 -0
  149. package/actions/smartAccount/index.ts +7 -0
  150. package/actions/smartAccount/package.json +6 -0
  151. package/clients/createSmartAccountClient.ts +45 -20
  152. package/clients/decorators/pimlico.ts +10 -10
  153. package/clients/package.json +6 -0
  154. package/clients/{passkeyServer.ts → passkeyServer/index.ts} +15 -13
  155. package/clients/passkeyServer/package.json +6 -0
  156. package/clients/{pimlico.ts → pimlico/index.ts} +50 -23
  157. package/clients/pimlico/package.json +6 -0
  158. package/errors/package.json +6 -0
  159. package/experimental/pimlico/package.json +6 -0
  160. package/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.ts +6 -4
  161. package/package.json +34 -29
  162. package/utils/index.ts +1 -0
  163. package/utils/package.json +6 -0
  164. package/utils/sortAddresses.ts +21 -0
  165. package/_cjs/actions/erc7579.js.map +0 -1
  166. package/_cjs/actions/etherspot.js.map +0 -1
  167. package/_cjs/actions/passkeyServer.js.map +0 -1
  168. package/_cjs/actions/pimlico.js.map +0 -1
  169. package/_cjs/actions/smartAccount.js.map +0 -1
  170. package/_cjs/clients/passkeyServer.js.map +0 -1
  171. package/_cjs/clients/pimlico.js.map +0 -1
  172. package/_esm/actions/erc7579.js.map +0 -1
  173. package/_esm/actions/etherspot.js +0 -2
  174. package/_esm/actions/etherspot.js.map +0 -1
  175. package/_esm/actions/passkeyServer.js +0 -4
  176. package/_esm/actions/passkeyServer.js.map +0 -1
  177. package/_esm/actions/pimlico.js +0 -8
  178. package/_esm/actions/pimlico.js.map +0 -1
  179. package/_esm/actions/smartAccount.js +0 -5
  180. package/_esm/actions/smartAccount.js.map +0 -1
  181. package/_esm/clients/passkeyServer.js.map +0 -1
  182. package/_esm/clients/pimlico.js.map +0 -1
  183. package/_types/actions/erc7579.d.ts.map +0 -1
  184. package/_types/actions/etherspot.d.ts +0 -2
  185. package/_types/actions/etherspot.d.ts.map +0 -1
  186. package/_types/actions/passkeyServer.d.ts +0 -4
  187. package/_types/actions/passkeyServer.d.ts.map +0 -1
  188. package/_types/actions/pimlico.d.ts +0 -8
  189. package/_types/actions/pimlico.d.ts.map +0 -1
  190. package/_types/actions/smartAccount.d.ts +0 -5
  191. package/_types/actions/smartAccount.d.ts.map +0 -1
  192. package/_types/clients/passkeyServer.d.ts.map +0 -1
  193. package/_types/clients/pimlico.d.ts +0 -13
  194. package/_types/clients/pimlico.d.ts.map +0 -1
  195. package/accounts/decodeCalls.test.ts +0 -505
  196. package/accounts/safe/signUserOperation.test.ts +0 -275
  197. package/actions/erc7579/accountId.test.ts +0 -39
  198. package/actions/erc7579/installModule.test.ts +0 -214
  199. package/actions/erc7579/installModules.test.ts +0 -235
  200. package/actions/erc7579/isModuleInstalled.test.ts +0 -72
  201. package/actions/erc7579/supportsExecutionMode.test.ts +0 -108
  202. package/actions/erc7579/supportsModule.test.ts +0 -35
  203. package/actions/erc7579/uninstallModule.test.ts +0 -128
  204. package/actions/erc7579/uninstallModules.test.ts +0 -117
  205. package/actions/pimlico/getTokenQuotes.test.ts +0 -90
  206. package/actions/pimlico/getUserOperationGasPrice.test.ts +0 -82
  207. package/actions/pimlico/getUserOperationStatus.test.ts +0 -223
  208. package/actions/pimlico/sponsorUserOperation.test.ts +0 -236
  209. package/actions/pimlico/validateSponsorshipPolicies.test.ts +0 -153
  210. package/actions/public/getAccountNonce.test.ts +0 -96
  211. package/actions/public/getSenderAddress.test.ts +0 -154
  212. package/actions/smartAccount/getCallsStatus.test.ts +0 -253
  213. package/actions/smartAccount/sendCalls.test.ts +0 -569
  214. package/actions/smartAccount/sendTransaction.test.ts +0 -414
  215. package/actions/smartAccount/signMessage.test.ts +0 -217
  216. package/actions/smartAccount/signTypedData.test.ts +0 -226
  217. package/actions/smartAccount.ts +0 -7
  218. package/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.test.ts +0 -574
  219. package/types/package.json +0 -6
  220. package/utils/decodeNonce.test.ts +0 -40
  221. package/utils/deepHexlify.test.ts +0 -57
  222. package/utils/encode7579Calls.test.ts +0 -69
  223. package/utils/encodeNonce.test.ts +0 -38
  224. package/utils/erc20AllowanceOverride.test.ts +0 -59
  225. package/utils/erc20BalanceOverride.test.ts +0 -57
  226. package/utils/getAddressFromInitCodeOrPaymasterAndData.test.ts +0 -31
  227. package/utils/getPackedUserOperation.test.ts +0 -204
  228. package/utils/getRequiredPrefund.test.ts +0 -90
  229. package/vitest.config.ts +0 -41
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../../_types/actions/pimlico/index.d.ts",
4
+ "module": "../../_esm/actions/pimlico/index.js",
5
+ "main": "../../_cjs/actions/pimlico/index.js"
6
+ }
@@ -0,0 +1,7 @@
1
+ export { sendTransaction } from "./sendTransaction.js"
2
+
3
+ export { signMessage } from "./signMessage.js"
4
+
5
+ export { signTypedData } from "./signTypedData.js"
6
+
7
+ export { writeContract } from "./writeContract.js"
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../../_types/actions/smartAccount/index.d.ts",
4
+ "module": "../../_esm/actions/smartAccount/index.js",
5
+ "main": "../../_cjs/actions/smartAccount/index.js"
6
+ }
@@ -29,26 +29,25 @@ import {
29
29
  * - Add docs
30
30
  * - Fix typing, 'accounts' is required to signMessage, signTypedData, signTransaction, but not needed here, since account is embedded in the client
31
31
  */
32
- export type SmartAccountClient<
33
- transport extends Transport = Transport,
34
- chain extends Chain | undefined = Chain | undefined,
35
- account extends SmartAccount | undefined = SmartAccount | undefined,
36
- client extends Client | undefined = Client | undefined,
37
- rpcSchema extends RpcSchema | undefined = undefined
38
- > = Prettify<
39
- Client<
40
- transport,
41
- chain extends Chain
42
- ? chain
43
- : client extends Client<any, infer chain>
44
- ? chain
45
- : undefined,
46
- account,
47
- rpcSchema extends RpcSchema
48
- ? [...BundlerRpcSchema, ...rpcSchema]
49
- : BundlerRpcSchema,
50
- BundlerActions<account> & SmartAccountActions<chain, account>
51
- >
32
+ type SmartAccountClientInner<
33
+ transport extends Transport,
34
+ chain extends Chain | undefined,
35
+ account extends SmartAccount | undefined,
36
+ client extends Client | undefined,
37
+ rpcSchema extends RpcSchema | undefined
38
+ > = Client<
39
+ transport,
40
+ chain extends Chain
41
+ ? chain
42
+ : // biome-ignore lint/suspicious/noExplicitAny: We need any to infer the chain type
43
+ client extends Client<any, infer chain>
44
+ ? chain
45
+ : undefined,
46
+ account,
47
+ rpcSchema extends RpcSchema
48
+ ? [...BundlerRpcSchema, ...rpcSchema]
49
+ : BundlerRpcSchema,
50
+ BundlerActions<account> & SmartAccountActions<chain, account>
52
51
  > & {
53
52
  client: client
54
53
  paymaster: BundlerClientConfig["paymaster"] | undefined
@@ -56,6 +55,32 @@ export type SmartAccountClient<
56
55
  userOperation: BundlerClientConfig["userOperation"] | undefined
57
56
  }
58
57
 
58
+ // Variance annotations referred from viem:
59
+ // https://github.com/wevm/viem/blob/main/src/actions/public/simulateContract.ts#L129
60
+ export type SmartAccountClient<
61
+ out transport extends Transport = Transport,
62
+ /** @ts-expect-error cast variance */
63
+ out chain extends Chain | undefined = Chain | undefined,
64
+ /** @ts-expect-error cast variance */
65
+ out account extends SmartAccount | undefined = SmartAccount | undefined,
66
+ out client extends Client | undefined = Client | undefined,
67
+ rpcSchema extends RpcSchema | undefined = undefined
68
+ > = {
69
+ [key in keyof SmartAccountClientInner<
70
+ transport,
71
+ chain,
72
+ account,
73
+ client,
74
+ rpcSchema
75
+ >]: SmartAccountClientInner<
76
+ transport,
77
+ chain,
78
+ account,
79
+ client,
80
+ rpcSchema
81
+ >[key]
82
+ }
83
+
59
84
  export type SmartAccountClientConfig<
60
85
  transport extends Transport = Transport,
61
86
  chain extends Chain | undefined = Chain | undefined,
@@ -1,15 +1,5 @@
1
1
  import type { Address, Chain, Client, Hash, Prettify, Transport } from "viem"
2
2
  import type { EntryPointVersion } from "viem/account-abstraction"
3
- import {
4
- type GetTokenQuotesParameters,
5
- type GetTokenQuotesReturnType,
6
- type SendCompressedUserOperationParameters,
7
- type ValidateSponsorshipPolicies,
8
- type ValidateSponsorshipPoliciesParameters,
9
- getTokenQuotes,
10
- sendCompressedUserOperation,
11
- validateSponsorshipPolicies
12
- } from "../../actions/pimlico.js"
13
3
  import {
14
4
  type EstimateErc20PaymasterCostParameters,
15
5
  type EstimateErc20PaymasterCostReturnType,
@@ -24,6 +14,16 @@ import {
24
14
  type GetUserOperationStatusReturnType,
25
15
  getUserOperationStatus
26
16
  } from "../../actions/pimlico/getUserOperationStatus.js"
17
+ import {
18
+ type GetTokenQuotesParameters,
19
+ type GetTokenQuotesReturnType,
20
+ type SendCompressedUserOperationParameters,
21
+ type ValidateSponsorshipPolicies,
22
+ type ValidateSponsorshipPoliciesParameters,
23
+ getTokenQuotes,
24
+ sendCompressedUserOperation,
25
+ validateSponsorshipPolicies
26
+ } from "../../actions/pimlico/index.js"
27
27
  import {
28
28
  type PimlicoSponsorUserOperationParameters,
29
29
  type SponsorUserOperationReturnType,
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../_types/clients/index.d.ts",
4
+ "module": "../_esm/clients/index.js",
5
+ "main": "../_cjs/clients/index.js"
6
+ }
@@ -8,25 +8,27 @@ import type {
8
8
  Transport
9
9
  } from "viem"
10
10
  import { createClient } from "viem"
11
- import type { PasskeyServerRpcSchema } from "../types/passkeyServer.js"
11
+ import type { PasskeyServerRpcSchema } from "../../types/passkeyServer.js"
12
12
  import {
13
13
  type PasskeyServerActions,
14
14
  passkeyServerActions
15
- } from "./decorators/passkeyServer.js"
15
+ } from "../decorators/passkeyServer.js"
16
+
17
+ type PasskeyServerClientInner<rpcSchema extends RpcSchema | undefined> = Client<
18
+ Transport,
19
+ Chain | undefined,
20
+ Account | undefined,
21
+ rpcSchema extends RpcSchema
22
+ ? [...PasskeyServerRpcSchema, ...rpcSchema]
23
+ : [...PasskeyServerRpcSchema],
24
+ PasskeyServerActions
25
+ >
16
26
 
17
27
  export type PasskeyServerClient<
18
28
  rpcSchema extends RpcSchema | undefined = undefined
19
- > = Prettify<
20
- Client<
21
- Transport,
22
- Chain | undefined,
23
- Account | undefined,
24
- rpcSchema extends RpcSchema
25
- ? [...PasskeyServerRpcSchema, ...rpcSchema]
26
- : [...PasskeyServerRpcSchema],
27
- PasskeyServerActions
28
- >
29
- >
29
+ > = {
30
+ [key in keyof PasskeyServerClientInner<rpcSchema>]: PasskeyServerClientInner<rpcSchema>[key]
31
+ }
30
32
 
31
33
  export type PasskeyServerClientConfig<
32
34
  rpcSchema extends RpcSchema | undefined = undefined
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../../_types/clients/passkeyServer/index.d.ts",
4
+ "module": "../../_esm/clients/passkeyServer/index.js",
5
+ "main": "../../_cjs/clients/passkeyServer/index.js"
6
+ }
@@ -18,34 +18,61 @@ import {
18
18
  entryPoint07Address,
19
19
  paymasterActions
20
20
  } from "viem/account-abstraction"
21
- import type { PimlicoRpcSchema } from "../types/pimlico.js"
22
- import { type PimlicoActions, pimlicoActions } from "./decorators/pimlico.js"
21
+ import type { PimlicoRpcSchema } from "../../types/pimlico.js"
22
+ import { type PimlicoActions, pimlicoActions } from "../decorators/pimlico.js"
23
23
 
24
+ type PimlicoClientInner<
25
+ entryPointVersion extends EntryPointVersion,
26
+ transport extends Transport,
27
+ chain extends Chain | undefined,
28
+ account extends SmartAccount | undefined,
29
+ client extends Client | undefined,
30
+ rpcSchema extends RpcSchema | undefined
31
+ > = Client<
32
+ transport,
33
+ chain extends Chain
34
+ ? chain
35
+ : // biome-ignore lint/suspicious/noExplicitAny: We need any to infer the chain type
36
+ client extends Client<any, infer chain>
37
+ ? chain
38
+ : undefined,
39
+ account,
40
+ rpcSchema extends RpcSchema
41
+ ? [...BundlerRpcSchema, ...PimlicoRpcSchema, ...rpcSchema]
42
+ : [...BundlerRpcSchema, ...PimlicoRpcSchema],
43
+ BundlerActions<account> &
44
+ PaymasterActions &
45
+ PimlicoActions<chain, entryPointVersion>
46
+ >
47
+
48
+ // Variance annotations referred from viem:
49
+ // https://github.com/wevm/viem/blob/main/src/actions/public/simulateContract.ts#L129
24
50
  export type PimlicoClient<
25
- entryPointVersion extends EntryPointVersion = EntryPointVersion,
26
- transport extends Transport = Transport,
27
- chain extends Chain | undefined = Chain | undefined,
28
- account extends SmartAccount | undefined = SmartAccount | undefined,
29
- client extends Client | undefined = Client | undefined,
51
+ /** @ts-expect-error cast variance */
52
+ out entryPointVersion extends EntryPointVersion = EntryPointVersion,
53
+ out transport extends Transport = Transport,
54
+ /** @ts-expect-error cast variance */
55
+ out chain extends Chain | undefined = Chain | undefined,
56
+ out account extends SmartAccount | undefined = SmartAccount | undefined,
57
+ out client extends Client | undefined = Client | undefined,
30
58
  rpcSchema extends RpcSchema | undefined = undefined
31
- > = Prettify<
32
- Client<
59
+ > = {
60
+ [key in keyof PimlicoClientInner<
61
+ entryPointVersion,
33
62
  transport,
34
- chain extends Chain
35
- ? chain
36
- : // biome-ignore lint/suspicious/noExplicitAny: We need any to infer the chain type
37
- client extends Client<any, infer chain>
38
- ? chain
39
- : undefined,
63
+ chain,
40
64
  account,
41
- rpcSchema extends RpcSchema
42
- ? [...BundlerRpcSchema, ...PimlicoRpcSchema, ...rpcSchema]
43
- : [...BundlerRpcSchema, ...PimlicoRpcSchema],
44
- BundlerActions<account> &
45
- PaymasterActions &
46
- PimlicoActions<chain, entryPointVersion>
47
- >
48
- >
65
+ client,
66
+ rpcSchema
67
+ >]: PimlicoClientInner<
68
+ entryPointVersion,
69
+ transport,
70
+ chain,
71
+ account,
72
+ client,
73
+ rpcSchema
74
+ >[key]
75
+ }
49
76
 
50
77
  export type PimlicoClientConfig<
51
78
  entryPointVersion extends EntryPointVersion = EntryPointVersion,
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../../_types/clients/pimlico/index.d.ts",
4
+ "module": "../../_esm/clients/pimlico/index.js",
5
+ "main": "../../_cjs/clients/pimlico/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../_types/errors/index.d.ts",
4
+ "module": "../_esm/errors/index.js",
5
+ "main": "../_cjs/errors/index.js"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../../_types/experimental/pimlico/index.d.ts",
4
+ "module": "../../_esm/experimental/pimlico/index.js",
5
+ "main": "../../_cjs/experimental/pimlico/index.js"
6
+ }
@@ -25,7 +25,7 @@ import {
25
25
  } from "viem/account-abstraction"
26
26
  import { getChainId as getChainId_, readContract } from "viem/actions"
27
27
  import { getAction, parseAccount } from "viem/utils"
28
- import { getTokenQuotes } from "../../../actions/pimlico.js"
28
+ import { getTokenQuotes } from "../../../actions/pimlico/index.js"
29
29
  import { erc20BalanceOverride } from "../../../utils/erc20BalanceOverride.js"
30
30
 
31
31
  const MAINNET_USDT_ADDRESS = getAddress(
@@ -111,7 +111,9 @@ export const prepareUserOperationForErc20Paymaster =
111
111
  entryPointAddress: account.entryPoint.address
112
112
  })
113
113
 
114
- if (quotes.length === 0) {
114
+ const quote = quotes[0]
115
+
116
+ if (quote === undefined) {
115
117
  throw new RpcError(new Error("Quotes not found"), {
116
118
  shortMessage:
117
119
  "client didn't return token quotes, check if the token is supported"
@@ -122,7 +124,7 @@ export const prepareUserOperationForErc20Paymaster =
122
124
  postOpGas,
123
125
  exchangeRate,
124
126
  paymaster: paymasterERC20Address
125
- } = quotes[0]
127
+ } = quote
126
128
 
127
129
  let calls = parameters.calls
128
130
 
@@ -155,7 +157,7 @@ export const prepareUserOperationForErc20Paymaster =
155
157
  // Call prepareUserOperation
156
158
  ////////////////////////////////////////////////////////////////////////////////
157
159
 
158
- const balanceSlot = _balanceSlot ?? quotes[0].balanceSlot
160
+ const balanceSlot = _balanceSlot ?? quote.balanceSlot
159
161
  const hasBalanceSlot = balanceSlot !== undefined
160
162
 
161
163
  if (!hasBalanceSlot && balanceOverride) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permissionless",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "author": "Pimlico",
5
5
  "homepage": "https://docs.pimlico.io/permissionless",
6
6
  "repository": "github:pimlicolabs/permissionless.js",
@@ -11,14 +11,19 @@
11
11
  "type": "module",
12
12
  "sideEffects": false,
13
13
  "description": "A utility library for working with ERC-4337",
14
- "keywords": [
15
- "ethereum",
16
- "erc-4337",
17
- "eip-4337",
18
- "paymaster",
19
- "bundler"
20
- ],
14
+ "keywords": ["ethereum", "erc-4337", "eip-4337", "paymaster", "bundler"],
21
15
  "license": "MIT",
16
+ "files": [
17
+ "*",
18
+ "!**/*.test.ts",
19
+ "!**/*.test.ts.snap",
20
+ "!**/*.test-d.ts",
21
+ "!**/*.bench.ts",
22
+ "!**/setupTests.ts",
23
+ "!**/*.tsbuildinfo",
24
+ "!vitest.config.ts",
25
+ "!coverage"
26
+ ],
22
27
  "exports": {
23
28
  ".": {
24
29
  "types": "./_types/index.d.ts",
@@ -81,29 +86,29 @@
81
86
  "default": "./_cjs/actions/index.js"
82
87
  },
83
88
  "./actions/erc7579": {
84
- "types": "./_types/actions/erc7579.d.ts",
85
- "import": "./_esm/actions/erc7579.js",
86
- "default": "./_cjs/actions/erc7579.js"
89
+ "types": "./_types/actions/erc7579/index.d.ts",
90
+ "import": "./_esm/actions/erc7579/index.js",
91
+ "default": "./_cjs/actions/erc7579/index.js"
87
92
  },
88
93
  "./actions/pimlico": {
89
- "types": "./_types/actions/pimlico.d.ts",
90
- "import": "./_esm/actions/pimlico.js",
91
- "default": "./_cjs/actions/pimlico.js"
94
+ "types": "./_types/actions/pimlico/index.d.ts",
95
+ "import": "./_esm/actions/pimlico/index.js",
96
+ "default": "./_cjs/actions/pimlico/index.js"
92
97
  },
93
98
  "./actions/passkeyServer": {
94
- "types": "./_types/actions/passkeyServer.d.ts",
95
- "import": "./_esm/actions/passkeyServer.js",
96
- "default": "./_cjs/actions/passkeyServer.js"
99
+ "types": "./_types/actions/passkeyServer/index.d.ts",
100
+ "import": "./_esm/actions/passkeyServer/index.js",
101
+ "default": "./_cjs/actions/passkeyServer/index.js"
97
102
  },
98
103
  "./actions/etherspot": {
99
- "types": "./_types/actions/etherspot.d.ts",
100
- "import": "./_esm/actions/etherspot.js",
101
- "default": "./_cjs/actions/etherspot.js"
104
+ "types": "./_types/actions/etherspot/index.d.ts",
105
+ "import": "./_esm/actions/etherspot/index.js",
106
+ "default": "./_cjs/actions/etherspot/index.js"
102
107
  },
103
108
  "./actions/smartAccount": {
104
- "types": "./_types/actions/smartAccount.d.ts",
105
- "import": "./_esm/actions/smartAccount.js",
106
- "default": "./_cjs/actions/smartAccount.js"
109
+ "types": "./_types/actions/smartAccount/index.d.ts",
110
+ "import": "./_esm/actions/smartAccount/index.js",
111
+ "default": "./_cjs/actions/smartAccount/index.js"
107
112
  },
108
113
  "./clients": {
109
114
  "types": "./_types/clients/index.d.ts",
@@ -111,14 +116,14 @@
111
116
  "default": "./_cjs/clients/index.js"
112
117
  },
113
118
  "./clients/pimlico": {
114
- "types": "./_types/clients/pimlico.d.ts",
115
- "import": "./_esm/clients/pimlico.js",
116
- "default": "./_cjs/clients/pimlico.js"
119
+ "types": "./_types/clients/pimlico/index.d.ts",
120
+ "import": "./_esm/clients/pimlico/index.js",
121
+ "default": "./_cjs/clients/pimlico/index.js"
117
122
  },
118
123
  "./clients/passkeyServer": {
119
- "types": "./_types/clients/passkeyServer.d.ts",
120
- "import": "./_esm/clients/passkeyServer.js",
121
- "default": "./_cjs/clients/passkeyServer.js"
124
+ "types": "./_types/clients/passkeyServer/index.d.ts",
125
+ "import": "./_esm/clients/passkeyServer/index.js",
126
+ "default": "./_cjs/clients/passkeyServer/index.js"
122
127
  },
123
128
  "./utils": {
124
129
  "types": "./_types/utils/index.d.ts",
package/utils/index.ts CHANGED
@@ -5,6 +5,7 @@ export {
5
5
  getRequiredPrefund
6
6
  } from "./getRequiredPrefund.js"
7
7
  export { isSmartAccountDeployed } from "./isSmartAccountDeployed.js"
8
+ export { sortAddresses } from "./sortAddresses.js"
8
9
  export { toOwner } from "./toOwner.js"
9
10
 
10
11
  export { decodeNonce } from "./decodeNonce.js"
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "types": "../_types/utils/index.d.ts",
4
+ "module": "../_esm/utils/index.js",
5
+ "main": "../_cjs/utils/index.js"
6
+ }
@@ -0,0 +1,21 @@
1
+ import type { Address } from "viem"
2
+
3
+ /**
4
+ * Sorts addresses in ascending byte-wise (code unit) order, independent of
5
+ * the host's locale. Using String.prototype.localeCompare without an explicit
6
+ * locale makes the order depend on the ICU default locale (e.g. under
7
+ * da_DK the "aa" digraph sorts after "z"), which would make CREATE2
8
+ * counterfactual address derivation non-deterministic across hosts.
9
+ */
10
+ export const sortAddresses = (addresses: Address[]): Address[] =>
11
+ [...addresses].sort((left, right) => {
12
+ const leftAddress = left.toLowerCase()
13
+ const rightAddress = right.toLowerCase()
14
+ if (leftAddress < rightAddress) {
15
+ return -1
16
+ }
17
+ if (leftAddress > rightAddress) {
18
+ return 1
19
+ }
20
+ return 0
21
+ })
@@ -1 +0,0 @@
1
- {"version":3,"file":"erc7579.js","sourceRoot":"","sources":["../../actions/erc7579.ts"],"names":[],"mappings":";;;;AAKA,yDAAkD;0FAAzC,wBAAS;AAClB,iEAGmC;8FAD/B,gCAAa;AAEjB,mEAGoC;+FADhC,kCAAc;AAElB,yEAGuC;kGADnC,wCAAiB;AAErB,iFAG2C;sGADvC,gDAAqB;AAMzB,mEAGoC;+FADhC,kCAAc;AAGlB,qEAGqC;gGADjC,oCAAe;AAEnB,uEAGsC;iGADlC,sCAAgB;AAoDpB,0BAAiC;IAC7B,OAAO,CACH,MAA2D,EAC9B,EAAE,CAAC,CAAC;QACjC,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,wBAAS,EAAC,MAAM,EAAE,IAAI,CAAC;QAC5C,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,gCAAa,EAAC,MAAM,EAAE,IAAI,CAAC;QACpD,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,kCAAc,EAAC,MAAM,EAAE,IAAI,CAAC;QACtD,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,wCAAiB,EAAC,MAAM,EAAE,IAAI,CAAC;QAC5D,qBAAqB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,gDAAqB,EAAC,MAAM,EAAE,IAAI,CAAC;QACpE,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,kCAAc,EAAC,MAAM,EAAE,IAAI,CAAC;QACtD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oCAAe,EAAC,MAAM,EAAE,IAAI,CAAC;QACxD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,sCAAgB,EAAC,MAAM,EAAE,IAAI,CAAC;KAC7D,CAAC,CAAA;AAAA,CACL"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"etherspot.js","sourceRoot":"","sources":["../../actions/etherspot.ts"],"names":[],"mappings":";;;AAAA,yFAGgD;AAD5C,uIAAA,wBAAwB,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"passkeyServer.js","sourceRoot":"","sources":["../../actions/passkeyServer.ts"],"names":[],"mappings":";;;AAAA,+EAI6C;AADzC,yHAAA,iBAAiB,OAAA;AAGrB,iFAI8C;AAD1C,2HAAA,kBAAkB,OAAA;AAGtB,yEAI0C;AADtC,mHAAA,cAAc,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":";;;AAAA,mEAIoC;AADhC,mHAAA,cAAc,OAAA;AAGlB,uFAG8C;AAD1C,uIAAA,wBAAwB,OAAA;AAG5B,mFAI4C;AADxC,mIAAA,sBAAsB,OAAA;AAG1B,6FAGiD;AAD7C,6IAAA,2BAA2B,OAAA;AAG/B,+EAI0C;AADtC,+HAAA,oBAAoB,OAAA;AAGxB,iEAGyC;AADrC,4GAAA,cAAc,OAAA;AAGlB,6FAIiD;AAD7C,6IAAA,2BAA2B,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"smartAccount.js","sourceRoot":"","sources":["../../actions/smartAccount.ts"],"names":[],"mappings":";;;AAAA,0EAAmE;AAA1D,qHAAA,eAAe,OAAA;AAExB,kEAA2D;AAAlD,6GAAA,WAAW,OAAA;AAEpB,sEAA+D;AAAtD,iHAAA,aAAa,OAAA;AAEtB,sEAA+D;AAAtD,iHAAA,aAAa,OAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"passkeyServer.js","sourceRoot":"","sources":["../../clients/passkeyServer.ts"],"names":[],"mappings":";;;AASA,+BAAmC;AAEnC,oEAGsC;AA2CtC,mCACI,UAAqC,EAClB;IACnB,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,uBAAuB,EAAE,GAAG,UAAU,CAAA;IAErE,OAAO,IAAA,mBAAY,EAAC;QAChB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,qBAAqB;KAC9B,CAAC,CAAC,MAAM,CAAC,uCAAoB,CAAC,CAAA;AAAA,CAClC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../clients/pimlico.ts"],"names":[],"mappings":";;;AAUA,+BAAmC;AACnC,kEAQiC;AAEjC,wDAA6E;AA6E7E,6BACI,UAA+B,EAClB;IACb,MAAM,EACF,GAAG,GAAG,QAAQ,EACd,IAAI,GAAG,wBAAwB,EAC/B,UAAU,EACb,GAAG,UAAU,CAAA;IAEd,OAAO,IAAA,mBAAY,EAAC;QAChB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,eAAe;KACxB,CAAC;SACG,MAAM,CAAC,oCAAc,CAAC;SACtB,MAAM,CAAC,sCAAgB,CAAC;SACxB,MAAM,CACH,IAAA,2BAAc,EAAC;QACX,UAAU,EAAE;YACR,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,yCAAmB;YACnD,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,KAAK;SACxC;KACJ,CAAC,CACL,CAAA;AAAA,CACR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"erc7579.js","sourceRoot":"","sources":["../../actions/erc7579.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAEH,aAAa,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEH,cAAc,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAEH,iBAAiB,EACpB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAEH,qBAAqB,EACxB,MAAM,oCAAoC,CAAA;AAK3C,OAAO,EAEH,cAAc,EACjB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAEH,eAAe,EAClB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAEH,gBAAgB,EACnB,MAAM,+BAA+B,CAAA;AAwCtC,OAAO,EACH,SAAS,EACT,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,gBAAgB,EACnB,CAAA;AAED,MAAM,UAAU,cAAc,GAAG;IAC7B,OAAO,CACH,MAA2D,EAC9B,EAAE,CAAC,CAAC;QACjC,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC;QAC5C,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC;QACpD,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC;QACtD,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,MAAM,EAAE,IAAI,CAAC;QAC5D,qBAAqB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,qBAAqB,CAAC,MAAM,EAAE,IAAI,CAAC;QACpE,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC;QACtD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC;QACxD,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC;KAC7D,CAAC,CAAA;AAAA,CACL"}
@@ -1,2 +0,0 @@
1
- export { getUserOperationGasPrice } from "./etherspot/getUserOperationGasPrice.js";
2
- //# sourceMappingURL=etherspot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"etherspot.js","sourceRoot":"","sources":["../../actions/etherspot.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,wBAAwB,EAC3B,MAAM,yCAAyC,CAAA"}
@@ -1,4 +0,0 @@
1
- export { startRegistration } from "./passkeyServer/startRegistration.js";
2
- export { verifyRegistration } from "./passkeyServer/verifyRegistration.js";
3
- export { getCredentials } from "./passkeyServer/getCredentials.js";
4
- //# sourceMappingURL=passkeyServer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"passkeyServer.js","sourceRoot":"","sources":["../../actions/passkeyServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,iBAAiB,EACpB,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EAGH,kBAAkB,EACrB,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EAGH,cAAc,EACjB,MAAM,mCAAmC,CAAA"}
@@ -1,8 +0,0 @@
1
- export { getTokenQuotes } from "./pimlico/getTokenQuotes.js";
2
- export { getUserOperationGasPrice } from "./pimlico/getUserOperationGasPrice.js";
3
- export { getUserOperationStatus } from "./pimlico/getUserOperationStatus.js";
4
- export { sendCompressedUserOperation } from "./pimlico/sendCompressedUserOperation.js";
5
- export { sponsorUserOperation } from "./pimlico/sponsorUserOperation.js";
6
- export { pimlicoActions } from "../clients/decorators/pimlico.js";
7
- export { validateSponsorshipPolicies } from "./pimlico/validateSponsorshipPolicies.js";
8
- //# sourceMappingURL=pimlico.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,cAAc,EACjB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAEH,wBAAwB,EAC3B,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EAGH,sBAAsB,EACzB,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAEH,2BAA2B,EAC9B,MAAM,0CAA0C,CAAA;AAEjD,OAAO,EAGH,oBAAoB,EACvB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EAEH,cAAc,EACjB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EAGH,2BAA2B,EAC9B,MAAM,0CAA0C,CAAA"}
@@ -1,5 +0,0 @@
1
- export { sendTransaction } from "./smartAccount/sendTransaction.js";
2
- export { signMessage } from "./smartAccount/signMessage.js";
3
- export { signTypedData } from "./smartAccount/signTypedData.js";
4
- export { writeContract } from "./smartAccount/writeContract.js";
5
- //# sourceMappingURL=smartAccount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"smartAccount.js","sourceRoot":"","sources":["../../actions/smartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"passkeyServer.js","sourceRoot":"","sources":["../../clients/passkeyServer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAEnC,OAAO,EAEH,oBAAoB,EACvB,MAAM,+BAA+B,CAAA;AA2CtC,MAAM,UAAU,yBAAyB,CACrC,UAAqC,EAClB;IACnB,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,uBAAuB,EAAE,GAAG,UAAU,CAAA;IAErE,OAAO,YAAY,CAAC;QAChB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,qBAAqB;KAC9B,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAA;AAAA,CAClC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../clients/pimlico.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,EAKH,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EACnB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAuB,cAAc,EAAE,MAAM,yBAAyB,CAAA;AA6E7E,MAAM,UAAU,mBAAmB,CAC/B,UAA+B,EAClB;IACb,MAAM,EACF,GAAG,GAAG,QAAQ,EACd,IAAI,GAAG,wBAAwB,EAC/B,UAAU,EACb,GAAG,UAAU,CAAA;IAEd,OAAO,YAAY,CAAC;QAChB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,eAAe;KACxB,CAAC;SACG,MAAM,CAAC,cAAc,CAAC;SACtB,MAAM,CAAC,gBAAgB,CAAC;SACxB,MAAM,CACH,cAAc,CAAC;QACX,UAAU,EAAE;YACR,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,mBAAmB;YACnD,OAAO,EAAE,UAAU,EAAE,OAAO,IAAI,KAAK;SACxC;KACJ,CAAC,CACL,CAAA;AAAA,CACR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"erc7579.d.ts","sourceRoot":"","sources":["../../actions/erc7579.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC1D,OAAO,KAAK,EACR,wBAAwB,EACxB,YAAY,EACf,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAClD,OAAO,EACH,KAAK,uBAAuB,EAC5B,aAAa,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACH,KAAK,wBAAwB,EAC7B,cAAc,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACH,KAAK,2BAA2B,EAChC,iBAAiB,EACpB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACH,KAAK,+BAA+B,EACpC,qBAAqB,EACxB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EACR,QAAQ,EACR,aAAa,EAChB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACH,KAAK,wBAAwB,EAC7B,cAAc,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,EACH,KAAK,yBAAyB,EAC9B,eAAe,EAClB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACH,KAAK,0BAA0B,EAC/B,gBAAgB,EACnB,MAAM,+BAA+B,CAAA;AAEtC,MAAM,MAAM,cAAc,CAAC,aAAa,SAAS,YAAY,GAAG,SAAS,IAAI;IACzE,SAAS,EAAE,CACP,IAAI,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,KAC7C,OAAO,CAAC,MAAM,CAAC,CAAA;IACpB,aAAa,EAAE,CACX,IAAI,EAAE,uBAAuB,CAAC,aAAa,CAAC,KAC3C,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,cAAc,EAAE,CACZ,IAAI,EAAE,wBAAwB,CAAC,aAAa,CAAC,KAC5C,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,iBAAiB,EAAE,CACf,IAAI,EAAE,2BAA2B,CAAC,aAAa,CAAC,KAC/C,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,qBAAqB,EAAE,CACnB,IAAI,EAAE,+BAA+B,CAAC,aAAa,CAAC,KACnD,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,cAAc,EAAE,CACZ,IAAI,EAAE,wBAAwB,CAAC,aAAa,CAAC,KAC5C,OAAO,CAAC,OAAO,CAAC,CAAA;IACrB,eAAe,EAAE,CACb,IAAI,EAAE,yBAAyB,CAAC,aAAa,CAAC,KAC7C,OAAO,CAAC,IAAI,CAAC,CAAA;IAClB,gBAAgB,EAAE,CACd,IAAI,EAAE,0BAA0B,CAAC,aAAa,CAAC,KAC9C,OAAO,CAAC,IAAI,CAAC,CAAA;CACrB,CAAA;AAED,YAAY,EACR,uBAAuB,EACvB,2BAA2B,EAC3B,QAAQ,EACR,aAAa,EACb,+BAA+B,EAC/B,UAAU,EACV,wBAAwB,EACxB,yBAAyB,EAC5B,CAAA;AAED,OAAO,EACH,SAAS,EACT,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,gBAAgB,EACnB,CAAA;AAED,wBAAgB,cAAc,KAClB,aAAa,iIAYxB"}
@@ -1,2 +0,0 @@
1
- export { type GetGasPriceResponseReturnType, getUserOperationGasPrice } from "./etherspot/getUserOperationGasPrice.js";
2
- //# sourceMappingURL=etherspot.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"etherspot.d.ts","sourceRoot":"","sources":["../../actions/etherspot.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,6BAA6B,EAClC,wBAAwB,EAC3B,MAAM,yCAAyC,CAAA"}
@@ -1,4 +0,0 @@
1
- export { type StartRegistrationParameters, type StartRegistrationReturnType, startRegistration } from "./passkeyServer/startRegistration.js";
2
- export { type VerifyRegistrationParameters, type VerifyRegistrationReturnType, verifyRegistration } from "./passkeyServer/verifyRegistration.js";
3
- export { type GetCredentialsParameters, type GetCredentialsReturnType, getCredentials } from "./passkeyServer/getCredentials.js";
4
- //# sourceMappingURL=passkeyServer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"passkeyServer.d.ts","sourceRoot":"","sources":["../../actions/passkeyServer.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,iBAAiB,EACpB,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,kBAAkB,EACrB,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,cAAc,EACjB,MAAM,mCAAmC,CAAA"}
@@ -1,8 +0,0 @@
1
- export { type GetTokenQuotesParameters, type GetTokenQuotesReturnType, getTokenQuotes } from "./pimlico/getTokenQuotes.js";
2
- export { type GetUserOperationGasPriceReturnType, getUserOperationGasPrice } from "./pimlico/getUserOperationGasPrice.js";
3
- export { type GetUserOperationStatusParameters, type GetUserOperationStatusReturnType, getUserOperationStatus } from "./pimlico/getUserOperationStatus.js";
4
- export { type SendCompressedUserOperationParameters, sendCompressedUserOperation } from "./pimlico/sendCompressedUserOperation.js";
5
- export { type PimlicoSponsorUserOperationParameters, type SponsorUserOperationReturnType, sponsorUserOperation } from "./pimlico/sponsorUserOperation.js";
6
- export { type PimlicoActions, pimlicoActions } from "../clients/decorators/pimlico.js";
7
- export { type ValidateSponsorshipPolicies, type ValidateSponsorshipPoliciesParameters, validateSponsorshipPolicies } from "./pimlico/validateSponsorshipPolicies.js";
8
- //# sourceMappingURL=pimlico.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,cAAc,EACjB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EACH,KAAK,kCAAkC,EACvC,wBAAwB,EAC3B,MAAM,uCAAuC,CAAA;AAE9C,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,sBAAsB,EACzB,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EACH,KAAK,qCAAqC,EAC1C,2BAA2B,EAC9B,MAAM,0CAA0C,CAAA;AAEjD,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,oBAAoB,EACvB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACH,KAAK,cAAc,EACnB,cAAc,EACjB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,qCAAqC,EAC1C,2BAA2B,EAC9B,MAAM,0CAA0C,CAAA"}
@@ -1,5 +0,0 @@
1
- export { sendTransaction } from "./smartAccount/sendTransaction.js";
2
- export { signMessage } from "./smartAccount/signMessage.js";
3
- export { signTypedData } from "./smartAccount/signTypedData.js";
4
- export { writeContract } from "./smartAccount/writeContract.js";
5
- //# sourceMappingURL=smartAccount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"smartAccount.d.ts","sourceRoot":"","sources":["../../actions/smartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"passkeyServer.d.ts","sourceRoot":"","sources":["../../clients/passkeyServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,KAAK,EACL,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,EACH,KAAK,oBAAoB,EAE5B,MAAM,+BAA+B,CAAA;AAEtC,MAAM,MAAM,mBAAmB,CAC3B,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IACnD,QAAQ,CACR,MAAM,CACF,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,SAAS,SAAS,SAAS,GACrB,CAAC,GAAG,sBAAsB,EAAE,GAAG,SAAS,CAAC,GACzC,CAAC,GAAG,sBAAsB,CAAC,EACjC,oBAAoB,CACvB,CACJ,CAAA;AAED,MAAM,MAAM,yBAAyB,CACjC,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IACnD,QAAQ,CACR,IAAI,CACA,YAAY,CACR,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,SAAS,CACZ,EACC,SAAS,GACT,WAAW,GACX,OAAO,GACP,KAAK,GACL,MAAM,GACN,iBAAiB,GACjB,WAAW,GACX,WAAW,CAChB,CACJ,CAAA;AAED,wBAAgB,yBAAyB,CACrC,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,EAEnD,UAAU,EAAE,yBAAyB,CAAC,SAAS,CAAC,GACjD,mBAAmB,CAAC,SAAS,CAAC,CAAA"}