@argent/x-shared 1.64.0 → 1.66.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 (37) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +407 -402
  3. package/dist/node_modules/.pnpm/@starknet-io_types-js@0.7.7/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.cjs +1 -0
  4. package/dist/node_modules/.pnpm/@starknet-io_types-js@0.7.7/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.js +6 -0
  5. package/dist/simulation.cjs +1 -1
  6. package/dist/simulation.js +20 -18
  7. package/dist/src/accountNameGenerator/x-names.json.js +1 -1
  8. package/dist/src/chains/starknet/network.cjs +1 -1
  9. package/dist/src/chains/starknet/network.d.ts +1 -0
  10. package/dist/src/chains/starknet/network.js +18 -10
  11. package/dist/src/features/paymaster/PaymasterService.cjs +1 -1
  12. package/dist/src/features/paymaster/PaymasterService.d.ts +0 -1
  13. package/dist/src/features/paymaster/PaymasterService.js +19 -25
  14. package/dist/src/features/simulation/activity/schema.cjs +1 -1
  15. package/dist/src/features/simulation/activity/schema.d.ts +238 -12
  16. package/dist/src/features/simulation/activity/schema.js +48 -46
  17. package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
  18. package/dist/src/features/simulation/transactionReview/schema.d.ts +76 -0
  19. package/dist/src/features/simulation/transactionReview/schema.js +106 -98
  20. package/dist/src/features/swap/models/execute.model.d.ts +35 -0
  21. package/dist/src/features/swap/models/index.d.ts +1 -0
  22. package/dist/src/features/swap/services/ISwapTransactionService.d.ts +10 -0
  23. package/dist/src/features/swap/services/{implementation.d.ts → SwapSharedService.d.ts} +1 -1
  24. package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -0
  25. package/dist/src/features/swap/services/SwapTransactionService.d.ts +15 -0
  26. package/dist/src/features/swap/services/SwapTransactionService.js +60 -0
  27. package/dist/src/features/swap/services/index.d.ts +4 -2
  28. package/dist/src/transactions/index.d.ts +1 -0
  29. package/dist/src/transactions/transactionExecuteTypes.cjs +1 -0
  30. package/dist/src/transactions/transactionExecuteTypes.d.ts +114 -0
  31. package/dist/src/transactions/transactionExecuteTypes.js +23 -0
  32. package/dist/swap.cjs +1 -1
  33. package/dist/swap.js +20 -18
  34. package/package.json +11 -11
  35. /package/dist/src/features/swap/services/{interface.d.ts → ISwapSharedService.d.ts} +0 -0
  36. /package/dist/src/features/swap/services/{implementation.cjs → SwapSharedService.cjs} +0 -0
  37. /package/dist/src/features/swap/services/{implementation.js → SwapSharedService.js} +0 -0
@@ -174,6 +174,13 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
174
174
  } | null | undefined;
175
175
  }>;
176
176
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
177
+ context: z.ZodOptional<z.ZodObject<{
178
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ isLootboxReward?: boolean | undefined;
181
+ }, {
182
+ isLootboxReward?: boolean | undefined;
183
+ }>>;
177
184
  }, "strip", z.ZodTypeAny, {
178
185
  type: "payment";
179
186
  leg: string;
@@ -187,6 +194,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
187
194
  } | null | undefined;
188
195
  };
189
196
  counterparty: `0x${string}`;
197
+ context?: {
198
+ isLootboxReward?: boolean | undefined;
199
+ } | undefined;
190
200
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
191
201
  }, {
192
202
  type: "payment";
@@ -201,6 +211,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
201
211
  } | null | undefined;
202
212
  };
203
213
  counterparty: string;
214
+ context?: {
215
+ isLootboxReward?: boolean | undefined;
216
+ } | undefined;
204
217
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
205
218
  }>, z.ZodObject<{
206
219
  type: z.ZodLiteral<"trade">;
@@ -686,6 +699,13 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
686
699
  } | null | undefined;
687
700
  }>;
688
701
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
702
+ context: z.ZodOptional<z.ZodObject<{
703
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ isLootboxReward?: boolean | undefined;
706
+ }, {
707
+ isLootboxReward?: boolean | undefined;
708
+ }>>;
689
709
  }, "strip", z.ZodTypeAny, {
690
710
  type: "payment";
691
711
  leg: string;
@@ -699,6 +719,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
699
719
  } | null | undefined;
700
720
  };
701
721
  counterparty: `0x${string}`;
722
+ context?: {
723
+ isLootboxReward?: boolean | undefined;
724
+ } | undefined;
702
725
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
703
726
  }, {
704
727
  type: "payment";
@@ -713,6 +736,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
713
736
  } | null | undefined;
714
737
  };
715
738
  counterparty: string;
739
+ context?: {
740
+ isLootboxReward?: boolean | undefined;
741
+ } | undefined;
716
742
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
717
743
  }>, z.ZodObject<{
718
744
  type: z.ZodLiteral<"trade">;
@@ -1118,6 +1144,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1118
1144
  } | null | undefined;
1119
1145
  };
1120
1146
  counterparty: `0x${string}`;
1147
+ context?: {
1148
+ isLootboxReward?: boolean | undefined;
1149
+ } | undefined;
1121
1150
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
1122
1151
  } | {
1123
1152
  type: "trade";
@@ -1227,6 +1256,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1227
1256
  } | null | undefined;
1228
1257
  };
1229
1258
  counterparty: string;
1259
+ context?: {
1260
+ isLootboxReward?: boolean | undefined;
1261
+ } | undefined;
1230
1262
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
1231
1263
  } | {
1232
1264
  type: "trade";
@@ -1339,6 +1371,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1339
1371
  } | null | undefined;
1340
1372
  };
1341
1373
  counterparty: `0x${string}`;
1374
+ context?: {
1375
+ isLootboxReward?: boolean | undefined;
1376
+ } | undefined;
1342
1377
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
1343
1378
  } | {
1344
1379
  type: "trade";
@@ -1451,6 +1486,9 @@ export declare const activityDetailsSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<
1451
1486
  } | null | undefined;
1452
1487
  };
1453
1488
  counterparty: string;
1489
+ context?: {
1490
+ isLootboxReward?: boolean | undefined;
1491
+ } | undefined;
1454
1492
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
1455
1493
  } | {
1456
1494
  type: "trade";
@@ -1990,6 +2028,13 @@ export declare const activitySchema: z.ZodObject<{
1990
2028
  } | null | undefined;
1991
2029
  }>;
1992
2030
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
2031
+ context: z.ZodOptional<z.ZodObject<{
2032
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
2033
+ }, "strip", z.ZodTypeAny, {
2034
+ isLootboxReward?: boolean | undefined;
2035
+ }, {
2036
+ isLootboxReward?: boolean | undefined;
2037
+ }>>;
1993
2038
  }, "strip", z.ZodTypeAny, {
1994
2039
  type: "payment";
1995
2040
  leg: string;
@@ -2003,6 +2048,9 @@ export declare const activitySchema: z.ZodObject<{
2003
2048
  } | null | undefined;
2004
2049
  };
2005
2050
  counterparty: `0x${string}`;
2051
+ context?: {
2052
+ isLootboxReward?: boolean | undefined;
2053
+ } | undefined;
2006
2054
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
2007
2055
  }, {
2008
2056
  type: "payment";
@@ -2017,6 +2065,9 @@ export declare const activitySchema: z.ZodObject<{
2017
2065
  } | null | undefined;
2018
2066
  };
2019
2067
  counterparty: string;
2068
+ context?: {
2069
+ isLootboxReward?: boolean | undefined;
2070
+ } | undefined;
2020
2071
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
2021
2072
  }>, z.ZodObject<{
2022
2073
  type: z.ZodLiteral<"trade">;
@@ -2502,6 +2553,13 @@ export declare const activitySchema: z.ZodObject<{
2502
2553
  } | null | undefined;
2503
2554
  }>;
2504
2555
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
2556
+ context: z.ZodOptional<z.ZodObject<{
2557
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
2558
+ }, "strip", z.ZodTypeAny, {
2559
+ isLootboxReward?: boolean | undefined;
2560
+ }, {
2561
+ isLootboxReward?: boolean | undefined;
2562
+ }>>;
2505
2563
  }, "strip", z.ZodTypeAny, {
2506
2564
  type: "payment";
2507
2565
  leg: string;
@@ -2515,6 +2573,9 @@ export declare const activitySchema: z.ZodObject<{
2515
2573
  } | null | undefined;
2516
2574
  };
2517
2575
  counterparty: `0x${string}`;
2576
+ context?: {
2577
+ isLootboxReward?: boolean | undefined;
2578
+ } | undefined;
2518
2579
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
2519
2580
  }, {
2520
2581
  type: "payment";
@@ -2529,6 +2590,9 @@ export declare const activitySchema: z.ZodObject<{
2529
2590
  } | null | undefined;
2530
2591
  };
2531
2592
  counterparty: string;
2593
+ context?: {
2594
+ isLootboxReward?: boolean | undefined;
2595
+ } | undefined;
2532
2596
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
2533
2597
  }>, z.ZodObject<{
2534
2598
  type: z.ZodLiteral<"trade">;
@@ -2934,6 +2998,9 @@ export declare const activitySchema: z.ZodObject<{
2934
2998
  } | null | undefined;
2935
2999
  };
2936
3000
  counterparty: `0x${string}`;
3001
+ context?: {
3002
+ isLootboxReward?: boolean | undefined;
3003
+ } | undefined;
2937
3004
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
2938
3005
  } | {
2939
3006
  type: "trade";
@@ -3043,6 +3110,9 @@ export declare const activitySchema: z.ZodObject<{
3043
3110
  } | null | undefined;
3044
3111
  };
3045
3112
  counterparty: string;
3113
+ context?: {
3114
+ isLootboxReward?: boolean | undefined;
3115
+ } | undefined;
3046
3116
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
3047
3117
  } | {
3048
3118
  type: "trade";
@@ -3155,6 +3225,9 @@ export declare const activitySchema: z.ZodObject<{
3155
3225
  } | null | undefined;
3156
3226
  };
3157
3227
  counterparty: `0x${string}`;
3228
+ context?: {
3229
+ isLootboxReward?: boolean | undefined;
3230
+ } | undefined;
3158
3231
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
3159
3232
  } | {
3160
3233
  type: "trade";
@@ -3267,6 +3340,9 @@ export declare const activitySchema: z.ZodObject<{
3267
3340
  } | null | undefined;
3268
3341
  };
3269
3342
  counterparty: string;
3343
+ context?: {
3344
+ isLootboxReward?: boolean | undefined;
3345
+ } | undefined;
3270
3346
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
3271
3347
  } | {
3272
3348
  type: "trade";
@@ -4195,7 +4271,6 @@ export declare const activitySchema: z.ZodObject<{
4195
4271
  }, {
4196
4272
  signers: string[];
4197
4273
  }>>;
4198
- isLootboxReward: z.ZodOptional<z.ZodBoolean>;
4199
4274
  }, "strip", z.ZodTypeAny, {
4200
4275
  type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
4201
4276
  status: "pending" | "success" | "failure";
@@ -4233,6 +4308,9 @@ export declare const activitySchema: z.ZodObject<{
4233
4308
  } | null | undefined;
4234
4309
  };
4235
4310
  counterparty: `0x${string}`;
4311
+ context?: {
4312
+ isLootboxReward?: boolean | undefined;
4313
+ } | undefined;
4236
4314
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
4237
4315
  } | {
4238
4316
  type: "trade";
@@ -4343,6 +4421,9 @@ export declare const activitySchema: z.ZodObject<{
4343
4421
  } | null | undefined;
4344
4422
  };
4345
4423
  counterparty: `0x${string}`;
4424
+ context?: {
4425
+ isLootboxReward?: boolean | undefined;
4426
+ } | undefined;
4346
4427
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
4347
4428
  } | {
4348
4429
  type: "trade";
@@ -4630,7 +4711,6 @@ export declare const activitySchema: z.ZodObject<{
4630
4711
  multisigDetails?: {
4631
4712
  signers: `0x${string}`[];
4632
4713
  } | undefined;
4633
- isLootboxReward?: boolean | undefined;
4634
4714
  }, {
4635
4715
  type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
4636
4716
  status: "pending" | "success" | "failure";
@@ -4668,6 +4748,9 @@ export declare const activitySchema: z.ZodObject<{
4668
4748
  } | null | undefined;
4669
4749
  };
4670
4750
  counterparty: string;
4751
+ context?: {
4752
+ isLootboxReward?: boolean | undefined;
4753
+ } | undefined;
4671
4754
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
4672
4755
  } | {
4673
4756
  type: "trade";
@@ -4778,6 +4861,9 @@ export declare const activitySchema: z.ZodObject<{
4778
4861
  } | null | undefined;
4779
4862
  };
4780
4863
  counterparty: string;
4864
+ context?: {
4865
+ isLootboxReward?: boolean | undefined;
4866
+ } | undefined;
4781
4867
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
4782
4868
  } | {
4783
4869
  type: "trade";
@@ -5065,7 +5151,6 @@ export declare const activitySchema: z.ZodObject<{
5065
5151
  multisigDetails?: {
5066
5152
  signers: string[];
5067
5153
  } | undefined;
5068
- isLootboxReward?: boolean | undefined;
5069
5154
  }>;
5070
5155
  export type Activity = z.infer<typeof activitySchema>;
5071
5156
  /** 'native' is an activity originating within individual product, e.g. not created by dapp */
@@ -5452,6 +5537,13 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5452
5537
  } | null | undefined;
5453
5538
  }>;
5454
5539
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
5540
+ context: z.ZodOptional<z.ZodObject<{
5541
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
5542
+ }, "strip", z.ZodTypeAny, {
5543
+ isLootboxReward?: boolean | undefined;
5544
+ }, {
5545
+ isLootboxReward?: boolean | undefined;
5546
+ }>>;
5455
5547
  }, "strip", z.ZodTypeAny, {
5456
5548
  type: "payment";
5457
5549
  leg: string;
@@ -5465,6 +5557,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5465
5557
  } | null | undefined;
5466
5558
  };
5467
5559
  counterparty: `0x${string}`;
5560
+ context?: {
5561
+ isLootboxReward?: boolean | undefined;
5562
+ } | undefined;
5468
5563
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
5469
5564
  }, {
5470
5565
  type: "payment";
@@ -5479,6 +5574,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5479
5574
  } | null | undefined;
5480
5575
  };
5481
5576
  counterparty: string;
5577
+ context?: {
5578
+ isLootboxReward?: boolean | undefined;
5579
+ } | undefined;
5482
5580
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
5483
5581
  }>, z.ZodObject<{
5484
5582
  type: z.ZodLiteral<"trade">;
@@ -5964,6 +6062,13 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5964
6062
  } | null | undefined;
5965
6063
  }>;
5966
6064
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
6065
+ context: z.ZodOptional<z.ZodObject<{
6066
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
6067
+ }, "strip", z.ZodTypeAny, {
6068
+ isLootboxReward?: boolean | undefined;
6069
+ }, {
6070
+ isLootboxReward?: boolean | undefined;
6071
+ }>>;
5967
6072
  }, "strip", z.ZodTypeAny, {
5968
6073
  type: "payment";
5969
6074
  leg: string;
@@ -5977,6 +6082,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5977
6082
  } | null | undefined;
5978
6083
  };
5979
6084
  counterparty: `0x${string}`;
6085
+ context?: {
6086
+ isLootboxReward?: boolean | undefined;
6087
+ } | undefined;
5980
6088
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
5981
6089
  }, {
5982
6090
  type: "payment";
@@ -5991,6 +6099,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
5991
6099
  } | null | undefined;
5992
6100
  };
5993
6101
  counterparty: string;
6102
+ context?: {
6103
+ isLootboxReward?: boolean | undefined;
6104
+ } | undefined;
5994
6105
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
5995
6106
  }>, z.ZodObject<{
5996
6107
  type: z.ZodLiteral<"trade">;
@@ -6396,6 +6507,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
6396
6507
  } | null | undefined;
6397
6508
  };
6398
6509
  counterparty: `0x${string}`;
6510
+ context?: {
6511
+ isLootboxReward?: boolean | undefined;
6512
+ } | undefined;
6399
6513
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
6400
6514
  } | {
6401
6515
  type: "trade";
@@ -6505,6 +6619,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
6505
6619
  } | null | undefined;
6506
6620
  };
6507
6621
  counterparty: string;
6622
+ context?: {
6623
+ isLootboxReward?: boolean | undefined;
6624
+ } | undefined;
6508
6625
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
6509
6626
  } | {
6510
6627
  type: "trade";
@@ -6617,6 +6734,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
6617
6734
  } | null | undefined;
6618
6735
  };
6619
6736
  counterparty: `0x${string}`;
6737
+ context?: {
6738
+ isLootboxReward?: boolean | undefined;
6739
+ } | undefined;
6620
6740
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
6621
6741
  } | {
6622
6742
  type: "trade";
@@ -6729,6 +6849,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
6729
6849
  } | null | undefined;
6730
6850
  };
6731
6851
  counterparty: string;
6852
+ context?: {
6853
+ isLootboxReward?: boolean | undefined;
6854
+ } | undefined;
6732
6855
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
6733
6856
  } | {
6734
6857
  type: "trade";
@@ -7657,7 +7780,6 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7657
7780
  }, {
7658
7781
  signers: string[];
7659
7782
  }>>;
7660
- isLootboxReward: z.ZodOptional<z.ZodBoolean>;
7661
7783
  }, "status" | "fees" | "submitted" | "lastModified" | "transferSummary" | "actions" | "multisigDetails">, {
7662
7784
  status: z.ZodUnion<[z.ZodEnum<["pending", "success", "failure"]>, z.ZodEnum<["rejected", "cancelled", "queued"]>]>;
7663
7785
  type: z.ZodLiteral<"native">;
@@ -8507,6 +8629,13 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8507
8629
  } | null | undefined;
8508
8630
  }>;
8509
8631
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
8632
+ context: z.ZodOptional<z.ZodObject<{
8633
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
8634
+ }, "strip", z.ZodTypeAny, {
8635
+ isLootboxReward?: boolean | undefined;
8636
+ }, {
8637
+ isLootboxReward?: boolean | undefined;
8638
+ }>>;
8510
8639
  }, "strip", z.ZodTypeAny, {
8511
8640
  type: "payment";
8512
8641
  leg: string;
@@ -8520,6 +8649,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8520
8649
  } | null | undefined;
8521
8650
  };
8522
8651
  counterparty: `0x${string}`;
8652
+ context?: {
8653
+ isLootboxReward?: boolean | undefined;
8654
+ } | undefined;
8523
8655
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
8524
8656
  }, {
8525
8657
  type: "payment";
@@ -8534,6 +8666,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
8534
8666
  } | null | undefined;
8535
8667
  };
8536
8668
  counterparty: string;
8669
+ context?: {
8670
+ isLootboxReward?: boolean | undefined;
8671
+ } | undefined;
8537
8672
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
8538
8673
  }>, z.ZodObject<{
8539
8674
  type: z.ZodLiteral<"trade">;
@@ -9019,6 +9154,13 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9019
9154
  } | null | undefined;
9020
9155
  }>;
9021
9156
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
9157
+ context: z.ZodOptional<z.ZodObject<{
9158
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
9159
+ }, "strip", z.ZodTypeAny, {
9160
+ isLootboxReward?: boolean | undefined;
9161
+ }, {
9162
+ isLootboxReward?: boolean | undefined;
9163
+ }>>;
9022
9164
  }, "strip", z.ZodTypeAny, {
9023
9165
  type: "payment";
9024
9166
  leg: string;
@@ -9032,6 +9174,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9032
9174
  } | null | undefined;
9033
9175
  };
9034
9176
  counterparty: `0x${string}`;
9177
+ context?: {
9178
+ isLootboxReward?: boolean | undefined;
9179
+ } | undefined;
9035
9180
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
9036
9181
  }, {
9037
9182
  type: "payment";
@@ -9046,6 +9191,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9046
9191
  } | null | undefined;
9047
9192
  };
9048
9193
  counterparty: string;
9194
+ context?: {
9195
+ isLootboxReward?: boolean | undefined;
9196
+ } | undefined;
9049
9197
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
9050
9198
  }>, z.ZodObject<{
9051
9199
  type: z.ZodLiteral<"trade">;
@@ -9451,6 +9599,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9451
9599
  } | null | undefined;
9452
9600
  };
9453
9601
  counterparty: `0x${string}`;
9602
+ context?: {
9603
+ isLootboxReward?: boolean | undefined;
9604
+ } | undefined;
9454
9605
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
9455
9606
  } | {
9456
9607
  type: "trade";
@@ -9560,6 +9711,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9560
9711
  } | null | undefined;
9561
9712
  };
9562
9713
  counterparty: string;
9714
+ context?: {
9715
+ isLootboxReward?: boolean | undefined;
9716
+ } | undefined;
9563
9717
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
9564
9718
  } | {
9565
9719
  type: "trade";
@@ -9672,6 +9826,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9672
9826
  } | null | undefined;
9673
9827
  };
9674
9828
  counterparty: `0x${string}`;
9829
+ context?: {
9830
+ isLootboxReward?: boolean | undefined;
9831
+ } | undefined;
9675
9832
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
9676
9833
  } | {
9677
9834
  type: "trade";
@@ -9784,6 +9941,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
9784
9941
  } | null | undefined;
9785
9942
  };
9786
9943
  counterparty: string;
9944
+ context?: {
9945
+ isLootboxReward?: boolean | undefined;
9946
+ } | undefined;
9787
9947
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
9788
9948
  } | {
9789
9949
  type: "trade";
@@ -10712,7 +10872,6 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
10712
10872
  }, {
10713
10873
  signers: string[];
10714
10874
  }>>;
10715
- isLootboxReward: z.ZodOptional<z.ZodBoolean>;
10716
10875
  }, "strip", z.ZodTypeAny, {
10717
10876
  type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
10718
10877
  status: "pending" | "success" | "failure";
@@ -10750,6 +10909,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
10750
10909
  } | null | undefined;
10751
10910
  };
10752
10911
  counterparty: `0x${string}`;
10912
+ context?: {
10913
+ isLootboxReward?: boolean | undefined;
10914
+ } | undefined;
10753
10915
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
10754
10916
  } | {
10755
10917
  type: "trade";
@@ -10860,6 +11022,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
10860
11022
  } | null | undefined;
10861
11023
  };
10862
11024
  counterparty: `0x${string}`;
11025
+ context?: {
11026
+ isLootboxReward?: boolean | undefined;
11027
+ } | undefined;
10863
11028
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
10864
11029
  } | {
10865
11030
  type: "trade";
@@ -11147,7 +11312,6 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
11147
11312
  multisigDetails?: {
11148
11313
  signers: `0x${string}`[];
11149
11314
  } | undefined;
11150
- isLootboxReward?: boolean | undefined;
11151
11315
  }, {
11152
11316
  type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
11153
11317
  status: "pending" | "success" | "failure";
@@ -11185,6 +11349,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
11185
11349
  } | null | undefined;
11186
11350
  };
11187
11351
  counterparty: string;
11352
+ context?: {
11353
+ isLootboxReward?: boolean | undefined;
11354
+ } | undefined;
11188
11355
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
11189
11356
  } | {
11190
11357
  type: "trade";
@@ -11295,6 +11462,9 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
11295
11462
  } | null | undefined;
11296
11463
  };
11297
11464
  counterparty: string;
11465
+ context?: {
11466
+ isLootboxReward?: boolean | undefined;
11467
+ } | undefined;
11298
11468
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
11299
11469
  } | {
11300
11470
  type: "trade";
@@ -11582,7 +11752,6 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
11582
11752
  multisigDetails?: {
11583
11753
  signers: string[];
11584
11754
  } | undefined;
11585
- isLootboxReward?: boolean | undefined;
11586
11755
  }>, "many">;
11587
11756
  export declare const activityResponseSchema: z.ZodObject<{
11588
11757
  activities: z.ZodArray<z.ZodObject<{
@@ -11872,6 +12041,13 @@ export declare const activityResponseSchema: z.ZodObject<{
11872
12041
  } | null | undefined;
11873
12042
  }>;
11874
12043
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
12044
+ context: z.ZodOptional<z.ZodObject<{
12045
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
12046
+ }, "strip", z.ZodTypeAny, {
12047
+ isLootboxReward?: boolean | undefined;
12048
+ }, {
12049
+ isLootboxReward?: boolean | undefined;
12050
+ }>>;
11875
12051
  }, "strip", z.ZodTypeAny, {
11876
12052
  type: "payment";
11877
12053
  leg: string;
@@ -11885,6 +12061,9 @@ export declare const activityResponseSchema: z.ZodObject<{
11885
12061
  } | null | undefined;
11886
12062
  };
11887
12063
  counterparty: `0x${string}`;
12064
+ context?: {
12065
+ isLootboxReward?: boolean | undefined;
12066
+ } | undefined;
11888
12067
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
11889
12068
  }, {
11890
12069
  type: "payment";
@@ -11899,6 +12078,9 @@ export declare const activityResponseSchema: z.ZodObject<{
11899
12078
  } | null | undefined;
11900
12079
  };
11901
12080
  counterparty: string;
12081
+ context?: {
12082
+ isLootboxReward?: boolean | undefined;
12083
+ } | undefined;
11902
12084
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
11903
12085
  }>, z.ZodObject<{
11904
12086
  type: z.ZodLiteral<"trade">;
@@ -12384,6 +12566,13 @@ export declare const activityResponseSchema: z.ZodObject<{
12384
12566
  } | null | undefined;
12385
12567
  }>;
12386
12568
  counterpartyNetwork: z.ZodOptional<z.ZodEnum<["ethereum", "starknet", "zksync", "zksync2"]>>;
12569
+ context: z.ZodOptional<z.ZodObject<{
12570
+ isLootboxReward: z.ZodOptional<z.ZodBoolean>;
12571
+ }, "strip", z.ZodTypeAny, {
12572
+ isLootboxReward?: boolean | undefined;
12573
+ }, {
12574
+ isLootboxReward?: boolean | undefined;
12575
+ }>>;
12387
12576
  }, "strip", z.ZodTypeAny, {
12388
12577
  type: "payment";
12389
12578
  leg: string;
@@ -12397,6 +12586,9 @@ export declare const activityResponseSchema: z.ZodObject<{
12397
12586
  } | null | undefined;
12398
12587
  };
12399
12588
  counterparty: `0x${string}`;
12589
+ context?: {
12590
+ isLootboxReward?: boolean | undefined;
12591
+ } | undefined;
12400
12592
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
12401
12593
  }, {
12402
12594
  type: "payment";
@@ -12411,6 +12603,9 @@ export declare const activityResponseSchema: z.ZodObject<{
12411
12603
  } | null | undefined;
12412
12604
  };
12413
12605
  counterparty: string;
12606
+ context?: {
12607
+ isLootboxReward?: boolean | undefined;
12608
+ } | undefined;
12414
12609
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
12415
12610
  }>, z.ZodObject<{
12416
12611
  type: z.ZodLiteral<"trade">;
@@ -12816,6 +13011,9 @@ export declare const activityResponseSchema: z.ZodObject<{
12816
13011
  } | null | undefined;
12817
13012
  };
12818
13013
  counterparty: `0x${string}`;
13014
+ context?: {
13015
+ isLootboxReward?: boolean | undefined;
13016
+ } | undefined;
12819
13017
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
12820
13018
  } | {
12821
13019
  type: "trade";
@@ -12925,6 +13123,9 @@ export declare const activityResponseSchema: z.ZodObject<{
12925
13123
  } | null | undefined;
12926
13124
  };
12927
13125
  counterparty: string;
13126
+ context?: {
13127
+ isLootboxReward?: boolean | undefined;
13128
+ } | undefined;
12928
13129
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
12929
13130
  } | {
12930
13131
  type: "trade";
@@ -13037,6 +13238,9 @@ export declare const activityResponseSchema: z.ZodObject<{
13037
13238
  } | null | undefined;
13038
13239
  };
13039
13240
  counterparty: `0x${string}`;
13241
+ context?: {
13242
+ isLootboxReward?: boolean | undefined;
13243
+ } | undefined;
13040
13244
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
13041
13245
  } | {
13042
13246
  type: "trade";
@@ -13149,6 +13353,9 @@ export declare const activityResponseSchema: z.ZodObject<{
13149
13353
  } | null | undefined;
13150
13354
  };
13151
13355
  counterparty: string;
13356
+ context?: {
13357
+ isLootboxReward?: boolean | undefined;
13358
+ } | undefined;
13152
13359
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
13153
13360
  } | {
13154
13361
  type: "trade";
@@ -14077,7 +14284,6 @@ export declare const activityResponseSchema: z.ZodObject<{
14077
14284
  }, {
14078
14285
  signers: string[];
14079
14286
  }>>;
14080
- isLootboxReward: z.ZodOptional<z.ZodBoolean>;
14081
14287
  }, "strip", z.ZodTypeAny, {
14082
14288
  type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
14083
14289
  status: "pending" | "success" | "failure";
@@ -14115,6 +14321,9 @@ export declare const activityResponseSchema: z.ZodObject<{
14115
14321
  } | null | undefined;
14116
14322
  };
14117
14323
  counterparty: `0x${string}`;
14324
+ context?: {
14325
+ isLootboxReward?: boolean | undefined;
14326
+ } | undefined;
14118
14327
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
14119
14328
  } | {
14120
14329
  type: "trade";
@@ -14225,6 +14434,9 @@ export declare const activityResponseSchema: z.ZodObject<{
14225
14434
  } | null | undefined;
14226
14435
  };
14227
14436
  counterparty: `0x${string}`;
14437
+ context?: {
14438
+ isLootboxReward?: boolean | undefined;
14439
+ } | undefined;
14228
14440
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
14229
14441
  } | {
14230
14442
  type: "trade";
@@ -14512,7 +14724,6 @@ export declare const activityResponseSchema: z.ZodObject<{
14512
14724
  multisigDetails?: {
14513
14725
  signers: `0x${string}`[];
14514
14726
  } | undefined;
14515
- isLootboxReward?: boolean | undefined;
14516
14727
  }, {
14517
14728
  type: "staking" | "payment" | "approval" | "changePubKey" | "dappInteraction" | "deploy" | "gift" | "multicall" | "security" | "trade";
14518
14729
  status: "pending" | "success" | "failure";
@@ -14550,6 +14761,9 @@ export declare const activityResponseSchema: z.ZodObject<{
14550
14761
  } | null | undefined;
14551
14762
  };
14552
14763
  counterparty: string;
14764
+ context?: {
14765
+ isLootboxReward?: boolean | undefined;
14766
+ } | undefined;
14553
14767
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
14554
14768
  } | {
14555
14769
  type: "trade";
@@ -14660,6 +14874,9 @@ export declare const activityResponseSchema: z.ZodObject<{
14660
14874
  } | null | undefined;
14661
14875
  };
14662
14876
  counterparty: string;
14877
+ context?: {
14878
+ isLootboxReward?: boolean | undefined;
14879
+ } | undefined;
14663
14880
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
14664
14881
  } | {
14665
14882
  type: "trade";
@@ -14947,7 +15164,6 @@ export declare const activityResponseSchema: z.ZodObject<{
14947
15164
  multisigDetails?: {
14948
15165
  signers: string[];
14949
15166
  } | undefined;
14950
- isLootboxReward?: boolean | undefined;
14951
15167
  }>, "many">;
14952
15168
  page: z.ZodNumber;
14953
15169
  pageSize: z.ZodNumber;
@@ -14993,6 +15209,9 @@ export declare const activityResponseSchema: z.ZodObject<{
14993
15209
  } | null | undefined;
14994
15210
  };
14995
15211
  counterparty: `0x${string}`;
15212
+ context?: {
15213
+ isLootboxReward?: boolean | undefined;
15214
+ } | undefined;
14996
15215
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
14997
15216
  } | {
14998
15217
  type: "trade";
@@ -15103,6 +15322,9 @@ export declare const activityResponseSchema: z.ZodObject<{
15103
15322
  } | null | undefined;
15104
15323
  };
15105
15324
  counterparty: `0x${string}`;
15325
+ context?: {
15326
+ isLootboxReward?: boolean | undefined;
15327
+ } | undefined;
15106
15328
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
15107
15329
  } | {
15108
15330
  type: "trade";
@@ -15390,7 +15612,6 @@ export declare const activityResponseSchema: z.ZodObject<{
15390
15612
  multisigDetails?: {
15391
15613
  signers: `0x${string}`[];
15392
15614
  } | undefined;
15393
- isLootboxReward?: boolean | undefined;
15394
15615
  }[];
15395
15616
  pageSize: number;
15396
15617
  totalElements: number;
@@ -15434,6 +15655,9 @@ export declare const activityResponseSchema: z.ZodObject<{
15434
15655
  } | null | undefined;
15435
15656
  };
15436
15657
  counterparty: string;
15658
+ context?: {
15659
+ isLootboxReward?: boolean | undefined;
15660
+ } | undefined;
15437
15661
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
15438
15662
  } | {
15439
15663
  type: "trade";
@@ -15544,6 +15768,9 @@ export declare const activityResponseSchema: z.ZodObject<{
15544
15768
  } | null | undefined;
15545
15769
  };
15546
15770
  counterparty: string;
15771
+ context?: {
15772
+ isLootboxReward?: boolean | undefined;
15773
+ } | undefined;
15547
15774
  counterpartyNetwork?: "ethereum" | "zksync" | "zksync2" | "starknet" | undefined;
15548
15775
  } | {
15549
15776
  type: "trade";
@@ -15831,7 +16058,6 @@ export declare const activityResponseSchema: z.ZodObject<{
15831
16058
  multisigDetails?: {
15832
16059
  signers: string[];
15833
16060
  } | undefined;
15834
- isLootboxReward?: boolean | undefined;
15835
16061
  }[];
15836
16062
  pageSize: number;
15837
16063
  totalElements: number;