@aa-sdk/core 4.82.0 → 4.82.1

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 (51) hide show
  1. package/dist/esm/account/smartContractAccount.js +0 -2
  2. package/dist/esm/account/smartContractAccount.js.map +1 -1
  3. package/dist/esm/actions/smartAccount/types.js +0 -1
  4. package/dist/esm/actions/smartAccount/types.js.map +1 -1
  5. package/dist/esm/client/bundlerClient.js.map +1 -1
  6. package/dist/esm/client/decorators/bundlerClient.js +0 -1
  7. package/dist/esm/client/decorators/bundlerClient.js.map +1 -1
  8. package/dist/esm/client/schema.js +0 -2
  9. package/dist/esm/client/schema.js.map +1 -1
  10. package/dist/esm/client/smartAccountClient.js.map +1 -1
  11. package/dist/esm/client/types.js +0 -1
  12. package/dist/esm/client/types.js.map +1 -1
  13. package/dist/esm/entrypoint/types.js.map +1 -1
  14. package/dist/esm/middleware/types.js +0 -1
  15. package/dist/esm/middleware/types.js.map +1 -1
  16. package/dist/esm/signer/types.js +0 -1
  17. package/dist/esm/signer/types.js.map +1 -1
  18. package/dist/esm/types.js +0 -1
  19. package/dist/esm/types.js.map +1 -1
  20. package/dist/esm/utils/schema.js +0 -6
  21. package/dist/esm/utils/schema.js.map +1 -1
  22. package/dist/esm/version.d.ts +1 -1
  23. package/dist/esm/version.js +1 -1
  24. package/dist/esm/version.js.map +1 -1
  25. package/dist/types/account/smartContractAccount.d.ts.map +1 -1
  26. package/dist/types/actions/smartAccount/types.d.ts.map +1 -1
  27. package/dist/types/client/bundlerClient.d.ts.map +1 -1
  28. package/dist/types/client/decorators/bundlerClient.d.ts.map +1 -1
  29. package/dist/types/client/schema.d.ts.map +1 -1
  30. package/dist/types/client/smartAccountClient.d.ts.map +1 -1
  31. package/dist/types/client/types.d.ts.map +1 -1
  32. package/dist/types/entrypoint/types.d.ts.map +1 -1
  33. package/dist/types/middleware/types.d.ts.map +1 -1
  34. package/dist/types/signer/types.d.ts.map +1 -1
  35. package/dist/types/types.d.ts.map +1 -1
  36. package/dist/types/utils/schema.d.ts.map +1 -1
  37. package/dist/types/version.d.ts +1 -1
  38. package/package.json +2 -2
  39. package/src/account/smartContractAccount.ts +0 -6
  40. package/src/actions/smartAccount/types.ts +0 -22
  41. package/src/client/bundlerClient.ts +0 -2
  42. package/src/client/decorators/bundlerClient.ts +0 -2
  43. package/src/client/schema.ts +0 -2
  44. package/src/client/smartAccountClient.ts +0 -4
  45. package/src/client/types.ts +0 -6
  46. package/src/entrypoint/types.ts +0 -2
  47. package/src/middleware/types.ts +0 -4
  48. package/src/signer/types.ts +0 -4
  49. package/src/types.ts +0 -27
  50. package/src/utils/schema.ts +0 -6
  51. package/src/version.ts +1 -1
package/src/types.ts CHANGED
@@ -31,7 +31,6 @@ export type Multiplier = z.input<typeof MultiplierSchema>;
31
31
  export type BigNumberish = z.input<typeof BigNumberishSchema>;
32
32
  export type BigNumberishRange = z.input<typeof BigNumberishRangeSchema>;
33
33
 
34
- // [!region UserOperationCallData]
35
34
  export type UserOperationCallData =
36
35
  | {
37
36
  /* the target of the call */
@@ -42,11 +41,8 @@ export type UserOperationCallData =
42
41
  value?: bigint;
43
42
  }
44
43
  | Hex;
45
- // [!endregion UserOperationCallData]
46
44
 
47
- // [!region BatchUserOperationCallData]
48
45
  export type BatchUserOperationCallData = Exclude<UserOperationCallData, Hex>[];
49
- // [!endregion BatchUserOperationCallData]
50
46
 
51
47
  export type UserOperationFeeOptionsField = z.input<
52
48
  typeof UserOperationFeeOptionsFieldSchema
@@ -67,7 +63,6 @@ export type UserOperationOverridesParameter<
67
63
  ? { overrides: UserOperationOverrides<TEntryPointVersion> }
68
64
  : { overrides?: UserOperationOverrides<TEntryPointVersion> };
69
65
 
70
- // [!region UserOperationPaymasterOverrides]
71
66
  export type UserOperationPaymasterOverrides<
72
67
  TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
73
68
  > = TEntryPointVersion extends "0.6.0"
@@ -91,9 +86,7 @@ export type UserOperationPaymasterOverrides<
91
86
  | Multiplier;
92
87
  }
93
88
  : {};
94
- // [!endregion UserOperationOverridesParameter]
95
89
 
96
- // [!region UserOperationOverrides]
97
90
  export type UserOperationOverrides<
98
91
  TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
99
92
  > = Partial<
@@ -139,9 +132,7 @@ export type UserOperationOverrides<
139
132
  }
140
133
  | { nonceKey: never; nonce: bigint }
141
134
  >;
142
- // [!endregion UserOperationOverrides]
143
135
 
144
- // [!region UserOperationRequest_v6]
145
136
  // represents the request as it needs to be formatted for v0.6 RPC requests
146
137
  // Reference: https://github.com/ethereum/ERCs/blob/8dd085d159cb123f545c272c0d871a5339550e79/ERCS/erc-4337.md#definitions
147
138
  export interface UserOperationRequest_v6 {
@@ -168,9 +159,7 @@ export interface UserOperationRequest_v6 {
168
159
  /* Data passed into the account along with the nonce during the verification step */
169
160
  signature: Hex;
170
161
  }
171
- // [!endregion UserOperationRequest_v6]
172
162
 
173
- // [!region UserOperationRequest_v7]
174
163
  // represents the request as it needs to be formatted for v0.7 RPC requests
175
164
  // Reference: https://eips.ethereum.org/EIPS/eip-4337#definitions
176
165
  export interface UserOperationRequest_v7 {
@@ -205,7 +194,6 @@ export interface UserOperationRequest_v7 {
205
194
  /* data passed into the account to verify authorization */
206
195
  signature: Hex;
207
196
  }
208
- // [!endregion UserOperationRequest_v7]
209
197
 
210
198
  export type Eip7702ExtendedFields = {
211
199
  eip7702Auth?: {
@@ -218,7 +206,6 @@ export type Eip7702ExtendedFields = {
218
206
  };
219
207
  };
220
208
 
221
- // [!region UserOperationRequest]
222
209
  // Reference: https://eips.ethereum.org/EIPS/eip-4337#definitions
223
210
  export type UserOperationRequest<
224
211
  TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
@@ -229,9 +216,6 @@ export type UserOperationRequest<
229
216
  : never) &
230
217
  Eip7702ExtendedFields;
231
218
 
232
- // [!endregion UserOperationRequest]
233
-
234
- // [!region UserOperationEstimateGasResponse]
235
219
  export interface UserOperationEstimateGasResponse<
236
220
  TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
237
221
  > {
@@ -250,9 +234,7 @@ export interface UserOperationEstimateGasResponse<
250
234
  ? BigNumberish | undefined
251
235
  : never;
252
236
  }
253
- // [!endregion UserOperationEstimateGasResponse]
254
237
 
255
- // [!region UserOperationResponse]
256
238
  export interface UserOperationResponse<
257
239
  TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
258
240
  > {
@@ -267,9 +249,7 @@ export interface UserOperationResponse<
267
249
  /* the hash of the transaction that included the user operation */
268
250
  transactionHash: Hash;
269
251
  }
270
- // [!endregion UserOperationResponse]
271
252
 
272
- // [!region UserOperationReceipt]
273
253
  export interface UserOperationReceipt {
274
254
  /* The request hash of the UserOperation. */
275
255
  userOpHash: Hash;
@@ -296,9 +276,7 @@ export interface UserOperationReceipt {
296
276
  /* The status of the useroperation. Could be "Mined" or "Preconfirmed". */
297
277
  status: string;
298
278
  }
299
- // [!endregion UserOperationReceipt]
300
279
 
301
- // [!region UserOperationStruct_v6]
302
280
  // https://github.com/eth-infinitism/account-abstraction/blob/releases/v0.6/test/UserOperation.ts
303
281
  // this is used for building requests for v0.6 entry point contract
304
282
  export interface UserOperationStruct_v6 {
@@ -325,9 +303,7 @@ export interface UserOperationStruct_v6 {
325
303
  /* Data passed into the account along with the nonce during the verification step */
326
304
  signature: BytesLike;
327
305
  }
328
- // [!endregion UserOperationStruct_v6]
329
306
 
330
- // [!region UserOperationStruct_v7]
331
307
  // based on https://github.com/eth-infinitism/account-abstraction/blob/releases/v0.7/test/UserOperation.ts
332
308
  // this is used for building requests for v0.7 entry point contract
333
309
  export interface UserOperationStruct_v7 {
@@ -362,9 +338,7 @@ export interface UserOperationStruct_v7 {
362
338
  /* data passed into the account to verify authorization */
363
339
  signature: BytesLike;
364
340
  }
365
- // [!endregion UserOperationStruct_v7]
366
341
 
367
- // [!region UserOperationStruct]
368
342
  export type UserOperationStruct<
369
343
  TEntryPointVersion extends EntryPointVersion = EntryPointVersion,
370
344
  > = (TEntryPointVersion extends "0.6.0"
@@ -373,4 +347,3 @@ export type UserOperationStruct<
373
347
  ? UserOperationStruct_v7
374
348
  : never) &
375
349
  Eip7702ExtendedFields;
376
- // [!endregion UserOperationStruct]
@@ -14,20 +14,15 @@ export const HexSchema = z.custom<`0x${string}` | "0x">((val) => {
14
14
  return isHex(val, { strict: true });
15
15
  });
16
16
 
17
- // [!region BigNumberish]
18
17
  export const BigNumberishSchema = z.union([HexSchema, z.number(), z.bigint()]);
19
- // [!endregion BigNumberish]
20
18
 
21
- // [!region BigNumberishRange]
22
19
  export const BigNumberishRangeSchema = z
23
20
  .object({
24
21
  min: BigNumberishSchema.optional(),
25
22
  max: BigNumberishSchema.optional(),
26
23
  })
27
24
  .strict();
28
- // [!endregion BigNumberishRange]
29
25
 
30
- // [!region Multiplier]
31
26
  export const MultiplierSchema = z
32
27
  .object({
33
28
  /**
@@ -41,7 +36,6 @@ export const MultiplierSchema = z
41
36
  ),
42
37
  })
43
38
  .strict();
44
- // [!endregion Multiplier]
45
39
 
46
40
  export function isBigNumberish(x: any): x is BigNumberish {
47
41
  return x != null && BigNumberishSchema.safeParse(x).success;
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.82.0";
3
+ export const VERSION = "4.82.1";