@waiaas/core 2.6.0-rc → 2.6.0-rc.2

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 (59) hide show
  1. package/dist/caip/asset-helpers.d.ts +34 -0
  2. package/dist/caip/asset-helpers.d.ts.map +1 -0
  3. package/dist/caip/asset-helpers.js +66 -0
  4. package/dist/caip/asset-helpers.js.map +1 -0
  5. package/dist/caip/caip19.d.ts +13 -0
  6. package/dist/caip/caip19.d.ts.map +1 -0
  7. package/dist/caip/caip19.js +27 -0
  8. package/dist/caip/caip19.js.map +1 -0
  9. package/dist/caip/caip2.d.ts +10 -0
  10. package/dist/caip/caip2.d.ts.map +1 -0
  11. package/dist/caip/caip2.js +19 -0
  12. package/dist/caip/caip2.js.map +1 -0
  13. package/dist/caip/index.d.ts +5 -0
  14. package/dist/caip/index.d.ts.map +1 -0
  15. package/dist/caip/index.js +9 -0
  16. package/dist/caip/index.js.map +1 -0
  17. package/dist/caip/network-map.d.ts +27 -0
  18. package/dist/caip/network-map.d.ts.map +1 -0
  19. package/dist/caip/network-map.js +42 -0
  20. package/dist/caip/network-map.js.map +1 -0
  21. package/dist/index.d.ts +4 -2
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +5 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/interfaces/INotificationChannel.d.ts +2 -0
  26. package/dist/interfaces/INotificationChannel.d.ts.map +1 -1
  27. package/dist/interfaces/index.d.ts +1 -0
  28. package/dist/interfaces/index.d.ts.map +1 -1
  29. package/dist/interfaces/index.js +2 -0
  30. package/dist/interfaces/index.js.map +1 -1
  31. package/dist/interfaces/price-oracle.types.d.ts +8 -0
  32. package/dist/interfaces/price-oracle.types.d.ts.map +1 -1
  33. package/dist/interfaces/price-oracle.types.js +6 -1
  34. package/dist/interfaces/price-oracle.types.js.map +1 -1
  35. package/dist/interfaces/x402.types.d.ts +2 -13
  36. package/dist/interfaces/x402.types.d.ts.map +1 -1
  37. package/dist/interfaces/x402.types.js +3 -33
  38. package/dist/interfaces/x402.types.js.map +1 -1
  39. package/dist/schemas/index.d.ts +1 -1
  40. package/dist/schemas/index.d.ts.map +1 -1
  41. package/dist/schemas/index.js +1 -1
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/schemas/policy.schema.d.ts +79 -11
  44. package/dist/schemas/policy.schema.d.ts.map +1 -1
  45. package/dist/schemas/policy.schema.js +74 -6
  46. package/dist/schemas/policy.schema.js.map +1 -1
  47. package/dist/schemas/transaction.schema.d.ts +174 -46
  48. package/dist/schemas/transaction.schema.d.ts.map +1 -1
  49. package/dist/schemas/transaction.schema.js +27 -1
  50. package/dist/schemas/transaction.schema.js.map +1 -1
  51. package/dist/utils/explorer-url.d.ts +12 -0
  52. package/dist/utils/explorer-url.d.ts.map +1 -0
  53. package/dist/utils/explorer-url.js +38 -0
  54. package/dist/utils/explorer-url.js.map +1 -0
  55. package/dist/utils/index.d.ts +1 -0
  56. package/dist/utils/index.d.ts.map +1 -1
  57. package/dist/utils/index.js +2 -0
  58. package/dist/utils/index.js.map +1 -1
  59. package/package.json +1 -1
@@ -24,9 +24,9 @@ export declare const TransactionSchema: z.ZodObject<{
24
24
  updatedAt: number;
25
25
  type: "TRANSFER" | "TOKEN_TRANSFER" | "CONTRACT_CALL" | "APPROVE" | "BATCH" | "SIGN" | "X402_PAYMENT";
26
26
  walletId: string;
27
+ network: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | null;
27
28
  sessionId: string | null;
28
29
  tier: "INSTANT" | "NOTIFY" | "DELAY" | "APPROVAL" | null;
29
- network: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | null;
30
30
  fromAddress: string;
31
31
  toAddress: string;
32
32
  amount: string;
@@ -41,9 +41,9 @@ export declare const TransactionSchema: z.ZodObject<{
41
41
  updatedAt: number;
42
42
  type: "TRANSFER" | "TOKEN_TRANSFER" | "CONTRACT_CALL" | "APPROVE" | "BATCH" | "SIGN" | "X402_PAYMENT";
43
43
  walletId: string;
44
+ network: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | null;
44
45
  sessionId: string | null;
45
46
  tier: "INSTANT" | "NOTIFY" | "DELAY" | "APPROVAL" | null;
46
- network: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | null;
47
47
  fromAddress: string;
48
48
  toAddress: string;
49
49
  amount: string;
@@ -92,41 +92,56 @@ export declare const TokenTransferRequestSchema: z.ZodObject<{
92
92
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
93
93
  to: z.ZodString;
94
94
  amount: z.ZodString;
95
- token: z.ZodObject<{
95
+ token: z.ZodEffects<z.ZodObject<{
96
96
  address: z.ZodString;
97
97
  decimals: z.ZodNumber;
98
98
  symbol: z.ZodString;
99
+ assetId: z.ZodOptional<z.ZodString>;
99
100
  }, "strip", z.ZodTypeAny, {
100
101
  symbol: string;
101
102
  address: string;
102
103
  decimals: number;
104
+ assetId?: string | undefined;
103
105
  }, {
104
106
  symbol: string;
105
107
  address: string;
106
108
  decimals: number;
109
+ assetId?: string | undefined;
110
+ }>, {
111
+ symbol: string;
112
+ address: string;
113
+ decimals: number;
114
+ assetId?: string | undefined;
115
+ }, {
116
+ symbol: string;
117
+ address: string;
118
+ decimals: number;
119
+ assetId?: string | undefined;
107
120
  }>;
108
121
  memo: z.ZodOptional<z.ZodString>;
109
122
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
110
123
  }, "strip", z.ZodTypeAny, {
111
124
  type: "TOKEN_TRANSFER";
112
- amount: string;
113
- to: string;
114
125
  token: {
115
126
  symbol: string;
116
127
  address: string;
117
128
  decimals: number;
129
+ assetId?: string | undefined;
118
130
  };
131
+ amount: string;
132
+ to: string;
119
133
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
120
134
  memo?: string | undefined;
121
135
  }, {
122
136
  type: "TOKEN_TRANSFER";
123
- amount: string;
124
- to: string;
125
137
  token: {
126
138
  symbol: string;
127
139
  address: string;
128
140
  decimals: number;
141
+ assetId?: string | undefined;
129
142
  };
143
+ amount: string;
144
+ to: string;
130
145
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
131
146
  memo?: string | undefined;
132
147
  }>;
@@ -188,39 +203,54 @@ export type ContractCallRequest = z.infer<typeof ContractCallRequestSchema>;
188
203
  export declare const ApproveRequestSchema: z.ZodObject<{
189
204
  type: z.ZodLiteral<"APPROVE">;
190
205
  spender: z.ZodString;
191
- token: z.ZodObject<{
206
+ token: z.ZodEffects<z.ZodObject<{
192
207
  address: z.ZodString;
193
208
  decimals: z.ZodNumber;
194
209
  symbol: z.ZodString;
210
+ assetId: z.ZodOptional<z.ZodString>;
195
211
  }, "strip", z.ZodTypeAny, {
196
212
  symbol: string;
197
213
  address: string;
198
214
  decimals: number;
215
+ assetId?: string | undefined;
216
+ }, {
217
+ symbol: string;
218
+ address: string;
219
+ decimals: number;
220
+ assetId?: string | undefined;
221
+ }>, {
222
+ symbol: string;
223
+ address: string;
224
+ decimals: number;
225
+ assetId?: string | undefined;
199
226
  }, {
200
227
  symbol: string;
201
228
  address: string;
202
229
  decimals: number;
230
+ assetId?: string | undefined;
203
231
  }>;
204
232
  amount: z.ZodString;
205
233
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
206
234
  }, "strip", z.ZodTypeAny, {
207
235
  type: "APPROVE";
208
- amount: string;
209
236
  token: {
210
237
  symbol: string;
211
238
  address: string;
212
239
  decimals: number;
240
+ assetId?: string | undefined;
213
241
  };
242
+ amount: string;
214
243
  spender: string;
215
244
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
216
245
  }, {
217
246
  type: "APPROVE";
218
- amount: string;
219
247
  token: {
220
248
  symbol: string;
221
249
  address: string;
222
250
  decimals: number;
251
+ assetId?: string | undefined;
223
252
  };
253
+ amount: string;
224
254
  spender: string;
225
255
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
226
256
  }>;
@@ -248,39 +278,54 @@ export declare const BatchRequestSchema: z.ZodObject<{
248
278
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
249
279
  to: z.ZodString;
250
280
  amount: z.ZodString;
251
- token: z.ZodObject<{
281
+ token: z.ZodEffects<z.ZodObject<{
252
282
  address: z.ZodString;
253
283
  decimals: z.ZodNumber;
254
284
  symbol: z.ZodString;
285
+ assetId: z.ZodOptional<z.ZodString>;
255
286
  }, "strip", z.ZodTypeAny, {
256
287
  symbol: string;
257
288
  address: string;
258
289
  decimals: number;
290
+ assetId?: string | undefined;
291
+ }, {
292
+ symbol: string;
293
+ address: string;
294
+ decimals: number;
295
+ assetId?: string | undefined;
296
+ }>, {
297
+ symbol: string;
298
+ address: string;
299
+ decimals: number;
300
+ assetId?: string | undefined;
259
301
  }, {
260
302
  symbol: string;
261
303
  address: string;
262
304
  decimals: number;
305
+ assetId?: string | undefined;
263
306
  }>;
264
307
  memo: z.ZodOptional<z.ZodString>;
265
308
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
266
309
  }, "type">, "strip", z.ZodTypeAny, {
267
- amount: string;
268
- to: string;
269
310
  token: {
270
311
  symbol: string;
271
312
  address: string;
272
313
  decimals: number;
314
+ assetId?: string | undefined;
273
315
  };
316
+ amount: string;
317
+ to: string;
274
318
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
275
319
  memo?: string | undefined;
276
320
  }, {
277
- amount: string;
278
- to: string;
279
321
  token: {
280
322
  symbol: string;
281
323
  address: string;
282
324
  decimals: number;
325
+ assetId?: string | undefined;
283
326
  };
327
+ amount: string;
328
+ to: string;
284
329
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
285
330
  memo?: string | undefined;
286
331
  }>, z.ZodObject<Omit<{
@@ -334,37 +379,52 @@ export declare const BatchRequestSchema: z.ZodObject<{
334
379
  }>, z.ZodObject<Omit<{
335
380
  type: z.ZodLiteral<"APPROVE">;
336
381
  spender: z.ZodString;
337
- token: z.ZodObject<{
382
+ token: z.ZodEffects<z.ZodObject<{
338
383
  address: z.ZodString;
339
384
  decimals: z.ZodNumber;
340
385
  symbol: z.ZodString;
386
+ assetId: z.ZodOptional<z.ZodString>;
341
387
  }, "strip", z.ZodTypeAny, {
342
388
  symbol: string;
343
389
  address: string;
344
390
  decimals: number;
391
+ assetId?: string | undefined;
345
392
  }, {
346
393
  symbol: string;
347
394
  address: string;
348
395
  decimals: number;
396
+ assetId?: string | undefined;
397
+ }>, {
398
+ symbol: string;
399
+ address: string;
400
+ decimals: number;
401
+ assetId?: string | undefined;
402
+ }, {
403
+ symbol: string;
404
+ address: string;
405
+ decimals: number;
406
+ assetId?: string | undefined;
349
407
  }>;
350
408
  amount: z.ZodString;
351
409
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
352
410
  }, "type">, "strip", z.ZodTypeAny, {
353
- amount: string;
354
411
  token: {
355
412
  symbol: string;
356
413
  address: string;
357
414
  decimals: number;
415
+ assetId?: string | undefined;
358
416
  };
417
+ amount: string;
359
418
  spender: string;
360
419
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
361
420
  }, {
362
- amount: string;
363
421
  token: {
364
422
  symbol: string;
365
423
  address: string;
366
424
  decimals: number;
425
+ assetId?: string | undefined;
367
426
  };
427
+ amount: string;
368
428
  spender: string;
369
429
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
370
430
  }>]>, "many">;
@@ -377,13 +437,14 @@ export declare const BatchRequestSchema: z.ZodObject<{
377
437
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
378
438
  memo?: string | undefined;
379
439
  } | {
380
- amount: string;
381
- to: string;
382
440
  token: {
383
441
  symbol: string;
384
442
  address: string;
385
443
  decimals: number;
444
+ assetId?: string | undefined;
386
445
  };
446
+ amount: string;
447
+ to: string;
387
448
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
388
449
  memo?: string | undefined;
389
450
  } | {
@@ -400,12 +461,13 @@ export declare const BatchRequestSchema: z.ZodObject<{
400
461
  isWritable: boolean;
401
462
  }[] | undefined;
402
463
  } | {
403
- amount: string;
404
464
  token: {
405
465
  symbol: string;
406
466
  address: string;
407
467
  decimals: number;
468
+ assetId?: string | undefined;
408
469
  };
470
+ amount: string;
409
471
  spender: string;
410
472
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
411
473
  })[];
@@ -418,13 +480,14 @@ export declare const BatchRequestSchema: z.ZodObject<{
418
480
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
419
481
  memo?: string | undefined;
420
482
  } | {
421
- amount: string;
422
- to: string;
423
483
  token: {
424
484
  symbol: string;
425
485
  address: string;
426
486
  decimals: number;
487
+ assetId?: string | undefined;
427
488
  };
489
+ amount: string;
490
+ to: string;
428
491
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
429
492
  memo?: string | undefined;
430
493
  } | {
@@ -441,12 +504,13 @@ export declare const BatchRequestSchema: z.ZodObject<{
441
504
  isWritable: boolean;
442
505
  }[] | undefined;
443
506
  } | {
444
- amount: string;
445
507
  token: {
446
508
  symbol: string;
447
509
  address: string;
448
510
  decimals: number;
511
+ assetId?: string | undefined;
449
512
  };
513
+ amount: string;
450
514
  spender: string;
451
515
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
452
516
  })[];
@@ -479,41 +543,56 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
479
543
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
480
544
  to: z.ZodString;
481
545
  amount: z.ZodString;
482
- token: z.ZodObject<{
546
+ token: z.ZodEffects<z.ZodObject<{
483
547
  address: z.ZodString;
484
548
  decimals: z.ZodNumber;
485
549
  symbol: z.ZodString;
550
+ assetId: z.ZodOptional<z.ZodString>;
486
551
  }, "strip", z.ZodTypeAny, {
487
552
  symbol: string;
488
553
  address: string;
489
554
  decimals: number;
555
+ assetId?: string | undefined;
556
+ }, {
557
+ symbol: string;
558
+ address: string;
559
+ decimals: number;
560
+ assetId?: string | undefined;
561
+ }>, {
562
+ symbol: string;
563
+ address: string;
564
+ decimals: number;
565
+ assetId?: string | undefined;
490
566
  }, {
491
567
  symbol: string;
492
568
  address: string;
493
569
  decimals: number;
570
+ assetId?: string | undefined;
494
571
  }>;
495
572
  memo: z.ZodOptional<z.ZodString>;
496
573
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
497
574
  }, "strip", z.ZodTypeAny, {
498
575
  type: "TOKEN_TRANSFER";
499
- amount: string;
500
- to: string;
501
576
  token: {
502
577
  symbol: string;
503
578
  address: string;
504
579
  decimals: number;
580
+ assetId?: string | undefined;
505
581
  };
582
+ amount: string;
583
+ to: string;
506
584
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
507
585
  memo?: string | undefined;
508
586
  }, {
509
587
  type: "TOKEN_TRANSFER";
510
- amount: string;
511
- to: string;
512
588
  token: {
513
589
  symbol: string;
514
590
  address: string;
515
591
  decimals: number;
592
+ assetId?: string | undefined;
516
593
  };
594
+ amount: string;
595
+ to: string;
517
596
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
518
597
  memo?: string | undefined;
519
598
  }>, z.ZodObject<{
@@ -569,39 +648,54 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
569
648
  }>, z.ZodObject<{
570
649
  type: z.ZodLiteral<"APPROVE">;
571
650
  spender: z.ZodString;
572
- token: z.ZodObject<{
651
+ token: z.ZodEffects<z.ZodObject<{
573
652
  address: z.ZodString;
574
653
  decimals: z.ZodNumber;
575
654
  symbol: z.ZodString;
655
+ assetId: z.ZodOptional<z.ZodString>;
576
656
  }, "strip", z.ZodTypeAny, {
577
657
  symbol: string;
578
658
  address: string;
579
659
  decimals: number;
660
+ assetId?: string | undefined;
580
661
  }, {
581
662
  symbol: string;
582
663
  address: string;
583
664
  decimals: number;
665
+ assetId?: string | undefined;
666
+ }>, {
667
+ symbol: string;
668
+ address: string;
669
+ decimals: number;
670
+ assetId?: string | undefined;
671
+ }, {
672
+ symbol: string;
673
+ address: string;
674
+ decimals: number;
675
+ assetId?: string | undefined;
584
676
  }>;
585
677
  amount: z.ZodString;
586
678
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
587
679
  }, "strip", z.ZodTypeAny, {
588
680
  type: "APPROVE";
589
- amount: string;
590
681
  token: {
591
682
  symbol: string;
592
683
  address: string;
593
684
  decimals: number;
685
+ assetId?: string | undefined;
594
686
  };
687
+ amount: string;
595
688
  spender: string;
596
689
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
597
690
  }, {
598
691
  type: "APPROVE";
599
- amount: string;
600
692
  token: {
601
693
  symbol: string;
602
694
  address: string;
603
695
  decimals: number;
696
+ assetId?: string | undefined;
604
697
  };
698
+ amount: string;
605
699
  spender: string;
606
700
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
607
701
  }>, z.ZodObject<{
@@ -626,39 +720,54 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
626
720
  type: z.ZodLiteral<"TOKEN_TRANSFER">;
627
721
  to: z.ZodString;
628
722
  amount: z.ZodString;
629
- token: z.ZodObject<{
723
+ token: z.ZodEffects<z.ZodObject<{
630
724
  address: z.ZodString;
631
725
  decimals: z.ZodNumber;
632
726
  symbol: z.ZodString;
727
+ assetId: z.ZodOptional<z.ZodString>;
633
728
  }, "strip", z.ZodTypeAny, {
634
729
  symbol: string;
635
730
  address: string;
636
731
  decimals: number;
732
+ assetId?: string | undefined;
733
+ }, {
734
+ symbol: string;
735
+ address: string;
736
+ decimals: number;
737
+ assetId?: string | undefined;
738
+ }>, {
739
+ symbol: string;
740
+ address: string;
741
+ decimals: number;
742
+ assetId?: string | undefined;
637
743
  }, {
638
744
  symbol: string;
639
745
  address: string;
640
746
  decimals: number;
747
+ assetId?: string | undefined;
641
748
  }>;
642
749
  memo: z.ZodOptional<z.ZodString>;
643
750
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
644
751
  }, "type">, "strip", z.ZodTypeAny, {
645
- amount: string;
646
- to: string;
647
752
  token: {
648
753
  symbol: string;
649
754
  address: string;
650
755
  decimals: number;
756
+ assetId?: string | undefined;
651
757
  };
758
+ amount: string;
759
+ to: string;
652
760
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
653
761
  memo?: string | undefined;
654
762
  }, {
655
- amount: string;
656
- to: string;
657
763
  token: {
658
764
  symbol: string;
659
765
  address: string;
660
766
  decimals: number;
767
+ assetId?: string | undefined;
661
768
  };
769
+ amount: string;
770
+ to: string;
662
771
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
663
772
  memo?: string | undefined;
664
773
  }>, z.ZodObject<Omit<{
@@ -712,37 +821,52 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
712
821
  }>, z.ZodObject<Omit<{
713
822
  type: z.ZodLiteral<"APPROVE">;
714
823
  spender: z.ZodString;
715
- token: z.ZodObject<{
824
+ token: z.ZodEffects<z.ZodObject<{
716
825
  address: z.ZodString;
717
826
  decimals: z.ZodNumber;
718
827
  symbol: z.ZodString;
828
+ assetId: z.ZodOptional<z.ZodString>;
719
829
  }, "strip", z.ZodTypeAny, {
720
830
  symbol: string;
721
831
  address: string;
722
832
  decimals: number;
833
+ assetId?: string | undefined;
834
+ }, {
835
+ symbol: string;
836
+ address: string;
837
+ decimals: number;
838
+ assetId?: string | undefined;
839
+ }>, {
840
+ symbol: string;
841
+ address: string;
842
+ decimals: number;
843
+ assetId?: string | undefined;
723
844
  }, {
724
845
  symbol: string;
725
846
  address: string;
726
847
  decimals: number;
848
+ assetId?: string | undefined;
727
849
  }>;
728
850
  amount: z.ZodString;
729
851
  network: z.ZodOptional<z.ZodEnum<["mainnet", "devnet", "testnet", "ethereum-mainnet", "ethereum-sepolia", "polygon-mainnet", "polygon-amoy", "arbitrum-mainnet", "arbitrum-sepolia", "optimism-mainnet", "optimism-sepolia", "base-mainnet", "base-sepolia"]>>;
730
852
  }, "type">, "strip", z.ZodTypeAny, {
731
- amount: string;
732
853
  token: {
733
854
  symbol: string;
734
855
  address: string;
735
856
  decimals: number;
857
+ assetId?: string | undefined;
736
858
  };
859
+ amount: string;
737
860
  spender: string;
738
861
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
739
862
  }, {
740
- amount: string;
741
863
  token: {
742
864
  symbol: string;
743
865
  address: string;
744
866
  decimals: number;
867
+ assetId?: string | undefined;
745
868
  };
869
+ amount: string;
746
870
  spender: string;
747
871
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
748
872
  }>]>, "many">;
@@ -755,13 +879,14 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
755
879
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
756
880
  memo?: string | undefined;
757
881
  } | {
758
- amount: string;
759
- to: string;
760
882
  token: {
761
883
  symbol: string;
762
884
  address: string;
763
885
  decimals: number;
886
+ assetId?: string | undefined;
764
887
  };
888
+ amount: string;
889
+ to: string;
765
890
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
766
891
  memo?: string | undefined;
767
892
  } | {
@@ -778,12 +903,13 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
778
903
  isWritable: boolean;
779
904
  }[] | undefined;
780
905
  } | {
781
- amount: string;
782
906
  token: {
783
907
  symbol: string;
784
908
  address: string;
785
909
  decimals: number;
910
+ assetId?: string | undefined;
786
911
  };
912
+ amount: string;
787
913
  spender: string;
788
914
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
789
915
  })[];
@@ -796,13 +922,14 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
796
922
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
797
923
  memo?: string | undefined;
798
924
  } | {
799
- amount: string;
800
- to: string;
801
925
  token: {
802
926
  symbol: string;
803
927
  address: string;
804
928
  decimals: number;
929
+ assetId?: string | undefined;
805
930
  };
931
+ amount: string;
932
+ to: string;
806
933
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
807
934
  memo?: string | undefined;
808
935
  } | {
@@ -819,12 +946,13 @@ export declare const TransactionRequestSchema: z.ZodDiscriminatedUnion<"type", [
819
946
  isWritable: boolean;
820
947
  }[] | undefined;
821
948
  } | {
822
- amount: string;
823
949
  token: {
824
950
  symbol: string;
825
951
  address: string;
826
952
  decimals: number;
953
+ assetId?: string | undefined;
827
954
  };
955
+ amount: string;
828
956
  spender: string;
829
957
  network?: "mainnet" | "devnet" | "testnet" | "ethereum-mainnet" | "ethereum-sepolia" | "polygon-mainnet" | "polygon-amoy" | "arbitrum-mainnet" | "arbitrum-sepolia" | "optimism-mainnet" | "optimism-sepolia" | "base-mainnet" | "base-sepolia" | undefined;
830
958
  })[];
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/transaction.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiB5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAYlF,2DAA2D;AAC3D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AASzE,2DAA2D;AAC3D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,8DAA8D;AAC9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;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