permissionless 0.0.18 → 0.0.19

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 (70) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +1 -1
  3. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
  4. package/_cjs/accounts/index.js +3 -1
  5. package/_cjs/accounts/index.js.map +1 -1
  6. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +1 -1
  7. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
  8. package/_cjs/accounts/signerToSafeSmartAccount.js +1 -1
  9. package/_cjs/accounts/signerToSafeSmartAccount.js.map +1 -1
  10. package/_cjs/accounts/signerToSimpleSmartAccount.js +1 -1
  11. package/_cjs/accounts/signerToSimpleSmartAccount.js.map +1 -1
  12. package/_cjs/actions/pimlico/sponsorUserOperation.js +3 -1
  13. package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -1
  14. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js +7 -11
  15. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
  16. package/_cjs/actions/smartAccount.js +3 -1
  17. package/_cjs/actions/smartAccount.js.map +1 -1
  18. package/_cjs/actions/stackup/sponsorUserOperation.js +3 -1
  19. package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -1
  20. package/_cjs/utils/index.js +6 -1
  21. package/_cjs/utils/index.js.map +1 -1
  22. package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js +1 -1
  23. package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
  24. package/_esm/accounts/index.js +2 -1
  25. package/_esm/accounts/index.js.map +1 -1
  26. package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js +1 -1
  27. package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
  28. package/_esm/accounts/signerToSafeSmartAccount.js +1 -1
  29. package/_esm/accounts/signerToSafeSmartAccount.js.map +1 -1
  30. package/_esm/accounts/signerToSimpleSmartAccount.js +1 -1
  31. package/_esm/accounts/signerToSimpleSmartAccount.js.map +1 -1
  32. package/_esm/actions/pimlico/sponsorUserOperation.js +3 -1
  33. package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -1
  34. package/_esm/actions/smartAccount/prepareUserOperationRequest.js +7 -11
  35. package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
  36. package/_esm/actions/smartAccount.js +2 -1
  37. package/_esm/actions/smartAccount.js.map +1 -1
  38. package/_esm/actions/stackup/sponsorUserOperation.js +3 -1
  39. package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -1
  40. package/_esm/utils/index.js +3 -1
  41. package/_esm/utils/index.js.map +1 -1
  42. package/_types/accounts/index.d.ts +2 -1
  43. package/_types/accounts/index.d.ts.map +1 -1
  44. package/_types/accounts/types.d.ts +2 -2
  45. package/_types/accounts/types.d.ts.map +1 -1
  46. package/_types/actions/pimlico/sponsorUserOperation.d.ts +2 -7
  47. package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
  48. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +2 -7
  49. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -1
  50. package/_types/actions/smartAccount.d.ts +2 -1
  51. package/_types/actions/smartAccount.d.ts.map +1 -1
  52. package/_types/actions/stackup/sponsorUserOperation.d.ts +2 -7
  53. package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -1
  54. package/_types/utils/index.d.ts +4 -2
  55. package/_types/utils/index.d.ts.map +1 -1
  56. package/_types/utils/signUserOperationHashWithECDSA.d.ts +2 -2
  57. package/accounts/biconomy/signerToBiconomySmartAccount.ts +1 -1
  58. package/accounts/index.ts +3 -0
  59. package/accounts/kernel/signerToEcdsaKernelSmartAccount.ts +1 -1
  60. package/accounts/signerToSafeSmartAccount.ts +1 -1
  61. package/accounts/signerToSimpleSmartAccount.ts +1 -1
  62. package/accounts/types.ts +2 -2
  63. package/actions/pimlico/sponsorUserOperation.ts +6 -8
  64. package/actions/smartAccount/prepareUserOperationRequest.ts +10 -23
  65. package/actions/smartAccount.ts +8 -1
  66. package/actions/stackup/sponsorUserOperation.ts +6 -8
  67. package/package.json +1 -1
  68. package/utils/index.ts +7 -0
  69. package/utils/signUserOperationHashWithECDSA.ts +2 -2
  70. package/utils/deepHexlify.test.ts +0 -35
@@ -13,7 +13,7 @@ import type { UserOperation } from "../types/userOperation.js"
13
13
  import { getUserOperationHash } from "./getUserOperationHash.js"
14
14
  import { parseAccount } from "./index.js"
15
15
 
16
- export type signUserOperationHashWithECDSAParams<
16
+ export type SignUserOperationHashWithECDSAParams<
17
17
  TTransport extends Transport = Transport,
18
18
  TChain extends Chain | undefined = Chain | undefined,
19
19
  TAccount extends Account | undefined = Account | undefined
@@ -83,7 +83,7 @@ export const signUserOperationHashWithECDSA = async <
83
83
  userOperation,
84
84
  chainId,
85
85
  entryPoint
86
- }: signUserOperationHashWithECDSAParams<
86
+ }: SignUserOperationHashWithECDSAParams<
87
87
  TTransport,
88
88
  TChain,
89
89
  TAccount
@@ -1,35 +0,0 @@
1
- import { beforeAll, expect, test } from "bun:test"
2
- import dotenv from "dotenv"
3
- import { deepHexlify } from "./deepHexlify.js"
4
-
5
- dotenv.config()
6
-
7
- beforeAll(() => {
8
- if (!process.env.STACKUP_API_KEY)
9
- throw new Error("STACKUP_API_KEY environment variable not set")
10
- if (!process.env.FACTORY_ADDRESS)
11
- throw new Error("FACTORY_ADDRESS environment variable not set")
12
- if (!process.env.TEST_PRIVATE_KEY)
13
- throw new Error("TEST_PRIVATE_KEY environment variable not set")
14
- if (!process.env.RPC_URL)
15
- throw new Error("RPC_URL environment variable not set")
16
- if (!process.env.ENTRYPOINT_ADDRESS)
17
- throw new Error("ENTRYPOINT_ADDRESS environment variable not set")
18
- })
19
-
20
- test("Test deep Hexlify", async () => {
21
- expect(deepHexlify("abcd")).toBe("abcd")
22
- expect(deepHexlify(null)).toBe(null)
23
- expect(deepHexlify(true)).toBe(true)
24
- expect(deepHexlify(false)).toBe(false)
25
- expect(deepHexlify(1n)).toBe("0x1")
26
- expect(
27
- deepHexlify({
28
- name: "Garvit",
29
- balance: 1n
30
- })
31
- ).toEqual({
32
- name: "Garvit",
33
- balance: "0x1"
34
- })
35
- })