@debridge-finance/intents-schemas 1.7.0 → 1.7.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.
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { TradeBatchTradeStatus } from '../enums';
2
+ import { BundleStatus, BundleTradeStatus, TradeBatchStatus, TradeBatchTradeStatus, TradingAlgorithm } from '../enums';
3
3
  export declare const BaseTradeSchema: z.ZodObject<{
4
4
  intentId: z.ZodString;
5
5
  tokenIn: z.ZodObject<{
@@ -1161,7 +1161,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1161
1161
  } | null | undefined;
1162
1162
  }>>;
1163
1163
  signedData: z.ZodString;
1164
- gasPayment: z.ZodOptional<z.ZodObject<{
1164
+ gasPayment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1165
1165
  type: z.ZodOptional<z.ZodNativeEnum<typeof import("../enums").GasPaymentType>>;
1166
1166
  basicDetails: z.ZodOptional<z.ZodObject<{
1167
1167
  nativeTokenAmount: z.ZodString;
@@ -1203,7 +1203,27 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1203
1203
  tokenAddress: string;
1204
1204
  tokenAmount: string;
1205
1205
  }[] | undefined;
1206
- }>>;
1206
+ }>>>, {
1207
+ type?: import("../enums").GasPaymentType | undefined;
1208
+ basicDetails?: {
1209
+ nativeTokenAmount: string;
1210
+ approximateUsdEquivalent: string;
1211
+ } | undefined;
1212
+ takenUserTokens?: {
1213
+ tokenAddress: string;
1214
+ tokenAmount: string;
1215
+ }[] | undefined;
1216
+ } | undefined, {
1217
+ type?: import("../enums").GasPaymentType | undefined;
1218
+ basicDetails?: {
1219
+ nativeTokenAmount: string;
1220
+ approximateUsdEquivalent: string;
1221
+ } | undefined;
1222
+ takenUserTokens?: {
1223
+ tokenAddress: string;
1224
+ tokenAmount: string;
1225
+ }[] | undefined;
1226
+ } | null | undefined>;
1207
1227
  }, "strip", z.ZodTypeAny, {
1208
1228
  type: import("../enums").SignatureType;
1209
1229
  actions: import("../enums").SignatureAction[];
@@ -1399,7 +1419,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1399
1419
  tokenAddress: string;
1400
1420
  tokenAmount: string;
1401
1421
  }[] | undefined;
1402
- } | undefined;
1422
+ } | null | undefined;
1403
1423
  }>, "many">;
1404
1424
  intent: z.ZodOptional<z.ZodObject<{
1405
1425
  receiverDetails: z.ZodArray<z.ZodObject<{
@@ -1810,7 +1830,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
1810
1830
  tokenAddress: string;
1811
1831
  tokenAmount: string;
1812
1832
  }[] | undefined;
1813
- } | undefined;
1833
+ } | null | undefined;
1814
1834
  }[];
1815
1835
  intentId: string;
1816
1836
  intent?: {
@@ -2585,7 +2605,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
2585
2605
  } | null | undefined;
2586
2606
  }>>;
2587
2607
  signedData: z.ZodString;
2588
- gasPayment: z.ZodOptional<z.ZodObject<{
2608
+ gasPayment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
2589
2609
  type: z.ZodOptional<z.ZodNativeEnum<typeof import("../enums").GasPaymentType>>;
2590
2610
  basicDetails: z.ZodOptional<z.ZodObject<{
2591
2611
  nativeTokenAmount: z.ZodString;
@@ -2627,7 +2647,27 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
2627
2647
  tokenAddress: string;
2628
2648
  tokenAmount: string;
2629
2649
  }[] | undefined;
2630
- }>>;
2650
+ }>>>, {
2651
+ type?: import("../enums").GasPaymentType | undefined;
2652
+ basicDetails?: {
2653
+ nativeTokenAmount: string;
2654
+ approximateUsdEquivalent: string;
2655
+ } | undefined;
2656
+ takenUserTokens?: {
2657
+ tokenAddress: string;
2658
+ tokenAmount: string;
2659
+ }[] | undefined;
2660
+ } | undefined, {
2661
+ type?: import("../enums").GasPaymentType | undefined;
2662
+ basicDetails?: {
2663
+ nativeTokenAmount: string;
2664
+ approximateUsdEquivalent: string;
2665
+ } | undefined;
2666
+ takenUserTokens?: {
2667
+ tokenAddress: string;
2668
+ tokenAmount: string;
2669
+ }[] | undefined;
2670
+ } | null | undefined>;
2631
2671
  }, "strip", z.ZodTypeAny, {
2632
2672
  type: import("../enums").SignatureType;
2633
2673
  actions: import("../enums").SignatureAction[];
@@ -2823,7 +2863,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
2823
2863
  tokenAddress: string;
2824
2864
  tokenAmount: string;
2825
2865
  }[] | undefined;
2826
- } | undefined;
2866
+ } | null | undefined;
2827
2867
  }>, "many">;
2828
2868
  tokenAddress: z.ZodString;
2829
2869
  from: z.ZodString;
@@ -3038,7 +3078,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
3038
3078
  tokenAddress: string;
3039
3079
  tokenAmount: string;
3040
3080
  }[] | undefined;
3041
- } | undefined;
3081
+ } | null | undefined;
3042
3082
  }[];
3043
3083
  from: string;
3044
3084
  }>, "many">>;
@@ -3771,7 +3811,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
3771
3811
  } | null | undefined;
3772
3812
  }>>;
3773
3813
  signedData: z.ZodString;
3774
- gasPayment: z.ZodOptional<z.ZodObject<{
3814
+ gasPayment: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
3775
3815
  type: z.ZodOptional<z.ZodNativeEnum<typeof import("../enums").GasPaymentType>>;
3776
3816
  basicDetails: z.ZodOptional<z.ZodObject<{
3777
3817
  nativeTokenAmount: z.ZodString;
@@ -3813,7 +3853,27 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
3813
3853
  tokenAddress: string;
3814
3854
  tokenAmount: string;
3815
3855
  }[] | undefined;
3816
- }>>;
3856
+ }>>>, {
3857
+ type?: import("../enums").GasPaymentType | undefined;
3858
+ basicDetails?: {
3859
+ nativeTokenAmount: string;
3860
+ approximateUsdEquivalent: string;
3861
+ } | undefined;
3862
+ takenUserTokens?: {
3863
+ tokenAddress: string;
3864
+ tokenAmount: string;
3865
+ }[] | undefined;
3866
+ } | undefined, {
3867
+ type?: import("../enums").GasPaymentType | undefined;
3868
+ basicDetails?: {
3869
+ nativeTokenAmount: string;
3870
+ approximateUsdEquivalent: string;
3871
+ } | undefined;
3872
+ takenUserTokens?: {
3873
+ tokenAddress: string;
3874
+ tokenAmount: string;
3875
+ }[] | undefined;
3876
+ } | null | undefined>;
3817
3877
  }, "strip", z.ZodTypeAny, {
3818
3878
  type: import("../enums").SignatureType;
3819
3879
  actions: import("../enums").SignatureAction[];
@@ -4009,7 +4069,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4009
4069
  tokenAddress: string;
4010
4070
  tokenAmount: string;
4011
4071
  }[] | undefined;
4012
- } | undefined;
4072
+ } | null | undefined;
4013
4073
  }>, "many">;
4014
4074
  tokenAddress: z.ZodString;
4015
4075
  from: z.ZodString;
@@ -4224,11 +4284,12 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4224
4284
  tokenAddress: string;
4225
4285
  tokenAmount: string;
4226
4286
  }[] | undefined;
4227
- } | undefined;
4287
+ } | null | undefined;
4228
4288
  }[];
4229
4289
  from: string;
4230
4290
  }>, "many">>;
4231
4291
  isExportedPrivateKey: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | undefined, boolean | null | undefined>;
4292
+ referralCode: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | undefined, string | null | undefined>;
4232
4293
  }, "strip", z.ZodTypeAny, {
4233
4294
  id: string;
4234
4295
  bundleId: string;
@@ -4622,6 +4683,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4622
4683
  from: string;
4623
4684
  }[];
4624
4685
  isExportedPrivateKey?: boolean | undefined;
4686
+ referralCode?: string | undefined;
4625
4687
  }, {
4626
4688
  id: string;
4627
4689
  bundleId: string;
@@ -4752,7 +4814,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4752
4814
  tokenAddress: string;
4753
4815
  tokenAmount: string;
4754
4816
  }[] | undefined;
4755
- } | undefined;
4817
+ } | null | undefined;
4756
4818
  }[];
4757
4819
  intentId: string;
4758
4820
  intent?: {
@@ -4902,7 +4964,7 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
4902
4964
  tokenAddress: string;
4903
4965
  tokenAmount: string;
4904
4966
  }[] | undefined;
4905
- } | undefined;
4967
+ } | null | undefined;
4906
4968
  }[];
4907
4969
  from: string;
4908
4970
  }[] | undefined;
@@ -5010,13 +5072,1282 @@ export declare const KafkaTradeBatchSchema: z.ZodObject<{
5010
5072
  tokenAddress: string;
5011
5073
  tokenAmount: string;
5012
5074
  }[] | undefined;
5013
- } | undefined;
5075
+ } | null | undefined;
5014
5076
  }[];
5015
5077
  from: string;
5016
5078
  }[] | undefined;
5017
5079
  isExportedPrivateKey?: boolean | null | undefined;
5080
+ referralCode?: string | null | undefined;
5018
5081
  }>;
5019
5082
  export type ValidatedKafkaTradeBatch = z.infer<typeof KafkaTradeBatchSchema>;
5020
5083
  export type ValidatedKafkaTrade = z.infer<typeof TradeSchema>;
5021
5084
  export type ValidatedKafkaBaseTrade = z.infer<typeof BaseTradeSchema>;
5085
+ export type ValidatedKafkaBundleInfo = z.infer<typeof KafkaBundleInfoSchema>;
5086
+ export declare const KafkaBundleInfoSchema: z.ZodObject<{
5087
+ id: z.ZodString;
5088
+ status: z.ZodNativeEnum<typeof BundleStatus>;
5089
+ createdAt: z.ZodString;
5090
+ updatedAt: z.ZodOptional<z.ZodString>;
5091
+ requestId: z.ZodOptional<z.ZodString>;
5092
+ isAtomic: z.ZodOptional<z.ZodBoolean>;
5093
+ cancelAuthorities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5094
+ type: z.ZodOptional<z.ZodNativeEnum<typeof TradingAlgorithm>>;
5095
+ summary: z.ZodObject<{
5096
+ tradesCount: z.ZodNumber;
5097
+ batchesCount: z.ZodNumber;
5098
+ opsCount: z.ZodNumber;
5099
+ opsCompleted: z.ZodNumber;
5100
+ opsfilledPct: z.ZodNumber;
5101
+ dstUSD: z.ZodOptional<z.ZodString>;
5102
+ srcUSD: z.ZodOptional<z.ZodString>;
5103
+ }, "strip", z.ZodTypeAny, {
5104
+ tradesCount: number;
5105
+ batchesCount: number;
5106
+ opsCount: number;
5107
+ opsCompleted: number;
5108
+ opsfilledPct: number;
5109
+ dstUSD?: string | undefined;
5110
+ srcUSD?: string | undefined;
5111
+ }, {
5112
+ tradesCount: number;
5113
+ batchesCount: number;
5114
+ opsCount: number;
5115
+ opsCompleted: number;
5116
+ opsfilledPct: number;
5117
+ dstUSD?: string | undefined;
5118
+ srcUSD?: string | undefined;
5119
+ }>;
5120
+ chains: z.ZodOptional<z.ZodArray<z.ZodObject<{
5121
+ id: z.ZodNumber;
5122
+ name: z.ZodString;
5123
+ icon: z.ZodOptional<z.ZodString>;
5124
+ }, "strip", z.ZodTypeAny, {
5125
+ name: string;
5126
+ id: number;
5127
+ icon?: string | undefined;
5128
+ }, {
5129
+ name: string;
5130
+ id: number;
5131
+ icon?: string | undefined;
5132
+ }>, "many">>;
5133
+ bundleDetails: z.ZodObject<{
5134
+ id: z.ZodString;
5135
+ trades: z.ZodArray<z.ZodObject<{
5136
+ id: z.ZodString;
5137
+ intentId: z.ZodString;
5138
+ src: z.ZodObject<{
5139
+ token: z.ZodObject<{
5140
+ chainId: z.ZodNumber;
5141
+ address: z.ZodString;
5142
+ symbol: z.ZodOptional<z.ZodString>;
5143
+ decimals: z.ZodOptional<z.ZodNumber>;
5144
+ amount: z.ZodString;
5145
+ isWrapped: z.ZodOptional<z.ZodBoolean>;
5146
+ iconUrl: z.ZodOptional<z.ZodString>;
5147
+ }, "strip", z.ZodTypeAny, {
5148
+ chainId: number;
5149
+ address: string;
5150
+ amount: string;
5151
+ symbol?: string | undefined;
5152
+ isWrapped?: boolean | undefined;
5153
+ decimals?: number | undefined;
5154
+ iconUrl?: string | undefined;
5155
+ }, {
5156
+ chainId: number;
5157
+ address: string;
5158
+ amount: string;
5159
+ symbol?: string | undefined;
5160
+ isWrapped?: boolean | undefined;
5161
+ decimals?: number | undefined;
5162
+ iconUrl?: string | undefined;
5163
+ }>;
5164
+ usd: z.ZodOptional<z.ZodString>;
5165
+ }, "strip", z.ZodTypeAny, {
5166
+ token: {
5167
+ chainId: number;
5168
+ address: string;
5169
+ amount: string;
5170
+ symbol?: string | undefined;
5171
+ isWrapped?: boolean | undefined;
5172
+ decimals?: number | undefined;
5173
+ iconUrl?: string | undefined;
5174
+ };
5175
+ usd?: string | undefined;
5176
+ }, {
5177
+ token: {
5178
+ chainId: number;
5179
+ address: string;
5180
+ amount: string;
5181
+ symbol?: string | undefined;
5182
+ isWrapped?: boolean | undefined;
5183
+ decimals?: number | undefined;
5184
+ iconUrl?: string | undefined;
5185
+ };
5186
+ usd?: string | undefined;
5187
+ }>;
5188
+ dst: z.ZodObject<{
5189
+ token: z.ZodObject<{
5190
+ chainId: z.ZodNumber;
5191
+ address: z.ZodString;
5192
+ symbol: z.ZodOptional<z.ZodString>;
5193
+ decimals: z.ZodOptional<z.ZodNumber>;
5194
+ amount: z.ZodString;
5195
+ minAmount: z.ZodOptional<z.ZodString>;
5196
+ iconUrl: z.ZodOptional<z.ZodString>;
5197
+ }, "strip", z.ZodTypeAny, {
5198
+ chainId: number;
5199
+ address: string;
5200
+ amount: string;
5201
+ symbol?: string | undefined;
5202
+ minAmount?: string | undefined;
5203
+ decimals?: number | undefined;
5204
+ iconUrl?: string | undefined;
5205
+ }, {
5206
+ chainId: number;
5207
+ address: string;
5208
+ amount: string;
5209
+ symbol?: string | undefined;
5210
+ minAmount?: string | undefined;
5211
+ decimals?: number | undefined;
5212
+ iconUrl?: string | undefined;
5213
+ }>;
5214
+ usd: z.ZodOptional<z.ZodString>;
5215
+ }, "strip", z.ZodTypeAny, {
5216
+ token: {
5217
+ chainId: number;
5218
+ address: string;
5219
+ amount: string;
5220
+ symbol?: string | undefined;
5221
+ minAmount?: string | undefined;
5222
+ decimals?: number | undefined;
5223
+ iconUrl?: string | undefined;
5224
+ };
5225
+ usd?: string | undefined;
5226
+ }, {
5227
+ token: {
5228
+ chainId: number;
5229
+ address: string;
5230
+ amount: string;
5231
+ symbol?: string | undefined;
5232
+ minAmount?: string | undefined;
5233
+ decimals?: number | undefined;
5234
+ iconUrl?: string | undefined;
5235
+ };
5236
+ usd?: string | undefined;
5237
+ }>;
5238
+ price: z.ZodOptional<z.ZodObject<{
5239
+ pair: z.ZodString;
5240
+ quoteIn: z.ZodString;
5241
+ feeIncluded: z.ZodBoolean;
5242
+ value: z.ZodString;
5243
+ kind: z.ZodEnum<["Executed", "Estimated"]>;
5244
+ }, "strip", z.ZodTypeAny, {
5245
+ value: string;
5246
+ pair: string;
5247
+ quoteIn: string;
5248
+ feeIncluded: boolean;
5249
+ kind: "Executed" | "Estimated";
5250
+ }, {
5251
+ value: string;
5252
+ pair: string;
5253
+ quoteIn: string;
5254
+ feeIncluded: boolean;
5255
+ kind: "Executed" | "Estimated";
5256
+ }>>;
5257
+ }, "strip", z.ZodTypeAny, {
5258
+ intentId: string;
5259
+ id: string;
5260
+ src: {
5261
+ token: {
5262
+ chainId: number;
5263
+ address: string;
5264
+ amount: string;
5265
+ symbol?: string | undefined;
5266
+ isWrapped?: boolean | undefined;
5267
+ decimals?: number | undefined;
5268
+ iconUrl?: string | undefined;
5269
+ };
5270
+ usd?: string | undefined;
5271
+ };
5272
+ dst: {
5273
+ token: {
5274
+ chainId: number;
5275
+ address: string;
5276
+ amount: string;
5277
+ symbol?: string | undefined;
5278
+ minAmount?: string | undefined;
5279
+ decimals?: number | undefined;
5280
+ iconUrl?: string | undefined;
5281
+ };
5282
+ usd?: string | undefined;
5283
+ };
5284
+ price?: {
5285
+ value: string;
5286
+ pair: string;
5287
+ quoteIn: string;
5288
+ feeIncluded: boolean;
5289
+ kind: "Executed" | "Estimated";
5290
+ } | undefined;
5291
+ }, {
5292
+ intentId: string;
5293
+ id: string;
5294
+ src: {
5295
+ token: {
5296
+ chainId: number;
5297
+ address: string;
5298
+ amount: string;
5299
+ symbol?: string | undefined;
5300
+ isWrapped?: boolean | undefined;
5301
+ decimals?: number | undefined;
5302
+ iconUrl?: string | undefined;
5303
+ };
5304
+ usd?: string | undefined;
5305
+ };
5306
+ dst: {
5307
+ token: {
5308
+ chainId: number;
5309
+ address: string;
5310
+ amount: string;
5311
+ symbol?: string | undefined;
5312
+ minAmount?: string | undefined;
5313
+ decimals?: number | undefined;
5314
+ iconUrl?: string | undefined;
5315
+ };
5316
+ usd?: string | undefined;
5317
+ };
5318
+ price?: {
5319
+ value: string;
5320
+ pair: string;
5321
+ quoteIn: string;
5322
+ feeIncluded: boolean;
5323
+ kind: "Executed" | "Estimated";
5324
+ } | undefined;
5325
+ }>, "many">;
5326
+ hooks: z.ZodArray<z.ZodObject<{
5327
+ phase: z.ZodEnum<["preHook", "postHook"]>;
5328
+ txData: z.ZodString;
5329
+ chainId: z.ZodNumber;
5330
+ from: z.ZodString;
5331
+ to: z.ZodString;
5332
+ tokenAddress: z.ZodString;
5333
+ value: z.ZodString;
5334
+ txHash: z.ZodOptional<z.ZodString>;
5335
+ status: z.ZodOptional<z.ZodString>;
5336
+ }, "strip", z.ZodTypeAny, {
5337
+ tokenAddress: string;
5338
+ value: string;
5339
+ chainId: number;
5340
+ to: string;
5341
+ from: string;
5342
+ phase: "preHook" | "postHook";
5343
+ txData: string;
5344
+ status?: string | undefined;
5345
+ txHash?: string | undefined;
5346
+ }, {
5347
+ tokenAddress: string;
5348
+ value: string;
5349
+ chainId: number;
5350
+ to: string;
5351
+ from: string;
5352
+ phase: "preHook" | "postHook";
5353
+ txData: string;
5354
+ status?: string | undefined;
5355
+ txHash?: string | undefined;
5356
+ }>, "many">;
5357
+ status: z.ZodNativeEnum<typeof BundleStatus>;
5358
+ intents: z.ZodArray<z.ZodObject<{
5359
+ chainId: z.ZodNumber;
5360
+ intentId: z.ZodString;
5361
+ }, "strip", z.ZodTypeAny, {
5362
+ chainId: number;
5363
+ intentId: string;
5364
+ }, {
5365
+ chainId: number;
5366
+ intentId: string;
5367
+ }>, "many">;
5368
+ summary: z.ZodObject<{
5369
+ opsCompleted: z.ZodNumber;
5370
+ opsTotal: z.ZodNumber;
5371
+ filledPct: z.ZodNumber;
5372
+ }, "strip", z.ZodTypeAny, {
5373
+ opsCompleted: number;
5374
+ opsTotal: number;
5375
+ filledPct: number;
5376
+ }, {
5377
+ opsCompleted: number;
5378
+ opsTotal: number;
5379
+ filledPct: number;
5380
+ }>;
5381
+ }, "strip", z.ZodTypeAny, {
5382
+ status: BundleStatus;
5383
+ id: string;
5384
+ trades: {
5385
+ intentId: string;
5386
+ id: string;
5387
+ src: {
5388
+ token: {
5389
+ chainId: number;
5390
+ address: string;
5391
+ amount: string;
5392
+ symbol?: string | undefined;
5393
+ isWrapped?: boolean | undefined;
5394
+ decimals?: number | undefined;
5395
+ iconUrl?: string | undefined;
5396
+ };
5397
+ usd?: string | undefined;
5398
+ };
5399
+ dst: {
5400
+ token: {
5401
+ chainId: number;
5402
+ address: string;
5403
+ amount: string;
5404
+ symbol?: string | undefined;
5405
+ minAmount?: string | undefined;
5406
+ decimals?: number | undefined;
5407
+ iconUrl?: string | undefined;
5408
+ };
5409
+ usd?: string | undefined;
5410
+ };
5411
+ price?: {
5412
+ value: string;
5413
+ pair: string;
5414
+ quoteIn: string;
5415
+ feeIncluded: boolean;
5416
+ kind: "Executed" | "Estimated";
5417
+ } | undefined;
5418
+ }[];
5419
+ intents: {
5420
+ chainId: number;
5421
+ intentId: string;
5422
+ }[];
5423
+ summary: {
5424
+ opsCompleted: number;
5425
+ opsTotal: number;
5426
+ filledPct: number;
5427
+ };
5428
+ hooks: {
5429
+ tokenAddress: string;
5430
+ value: string;
5431
+ chainId: number;
5432
+ to: string;
5433
+ from: string;
5434
+ phase: "preHook" | "postHook";
5435
+ txData: string;
5436
+ status?: string | undefined;
5437
+ txHash?: string | undefined;
5438
+ }[];
5439
+ }, {
5440
+ status: BundleStatus;
5441
+ id: string;
5442
+ trades: {
5443
+ intentId: string;
5444
+ id: string;
5445
+ src: {
5446
+ token: {
5447
+ chainId: number;
5448
+ address: string;
5449
+ amount: string;
5450
+ symbol?: string | undefined;
5451
+ isWrapped?: boolean | undefined;
5452
+ decimals?: number | undefined;
5453
+ iconUrl?: string | undefined;
5454
+ };
5455
+ usd?: string | undefined;
5456
+ };
5457
+ dst: {
5458
+ token: {
5459
+ chainId: number;
5460
+ address: string;
5461
+ amount: string;
5462
+ symbol?: string | undefined;
5463
+ minAmount?: string | undefined;
5464
+ decimals?: number | undefined;
5465
+ iconUrl?: string | undefined;
5466
+ };
5467
+ usd?: string | undefined;
5468
+ };
5469
+ price?: {
5470
+ value: string;
5471
+ pair: string;
5472
+ quoteIn: string;
5473
+ feeIncluded: boolean;
5474
+ kind: "Executed" | "Estimated";
5475
+ } | undefined;
5476
+ }[];
5477
+ intents: {
5478
+ chainId: number;
5479
+ intentId: string;
5480
+ }[];
5481
+ summary: {
5482
+ opsCompleted: number;
5483
+ opsTotal: number;
5484
+ filledPct: number;
5485
+ };
5486
+ hooks: {
5487
+ tokenAddress: string;
5488
+ value: string;
5489
+ chainId: number;
5490
+ to: string;
5491
+ from: string;
5492
+ phase: "preHook" | "postHook";
5493
+ txData: string;
5494
+ status?: string | undefined;
5495
+ txHash?: string | undefined;
5496
+ }[];
5497
+ }>;
5498
+ execBatches: z.ZodArray<z.ZodObject<{
5499
+ id: z.ZodString;
5500
+ trades: z.ZodArray<z.ZodObject<{
5501
+ id: z.ZodString;
5502
+ bundleTradeId: z.ZodString;
5503
+ status: z.ZodNativeEnum<typeof TradeBatchTradeStatus>;
5504
+ orderId: z.ZodOptional<z.ZodString>;
5505
+ transactionHash: z.ZodOptional<z.ZodString>;
5506
+ intentExecuteTx: z.ZodObject<{
5507
+ intentId: z.ZodString;
5508
+ chainId: z.ZodNumber;
5509
+ txHash: z.ZodOptional<z.ZodString>;
5510
+ executedAt: z.ZodOptional<z.ZodString>;
5511
+ }, "strip", z.ZodTypeAny, {
5512
+ chainId: number;
5513
+ intentId: string;
5514
+ txHash?: string | undefined;
5515
+ executedAt?: string | undefined;
5516
+ }, {
5517
+ chainId: number;
5518
+ intentId: string;
5519
+ txHash?: string | undefined;
5520
+ executedAt?: string | undefined;
5521
+ }>;
5522
+ src: z.ZodObject<{
5523
+ token: z.ZodObject<{
5524
+ chainId: z.ZodNumber;
5525
+ address: z.ZodString;
5526
+ amount: z.ZodString;
5527
+ symbol: z.ZodOptional<z.ZodString>;
5528
+ decimals: z.ZodOptional<z.ZodNumber>;
5529
+ iconUrl: z.ZodOptional<z.ZodString>;
5530
+ }, "strip", z.ZodTypeAny, {
5531
+ chainId: number;
5532
+ address: string;
5533
+ amount: string;
5534
+ symbol?: string | undefined;
5535
+ decimals?: number | undefined;
5536
+ iconUrl?: string | undefined;
5537
+ }, {
5538
+ chainId: number;
5539
+ address: string;
5540
+ amount: string;
5541
+ symbol?: string | undefined;
5542
+ decimals?: number | undefined;
5543
+ iconUrl?: string | undefined;
5544
+ }>;
5545
+ usd: z.ZodOptional<z.ZodString>;
5546
+ }, "strip", z.ZodTypeAny, {
5547
+ token: {
5548
+ chainId: number;
5549
+ address: string;
5550
+ amount: string;
5551
+ symbol?: string | undefined;
5552
+ decimals?: number | undefined;
5553
+ iconUrl?: string | undefined;
5554
+ };
5555
+ usd?: string | undefined;
5556
+ }, {
5557
+ token: {
5558
+ chainId: number;
5559
+ address: string;
5560
+ amount: string;
5561
+ symbol?: string | undefined;
5562
+ decimals?: number | undefined;
5563
+ iconUrl?: string | undefined;
5564
+ };
5565
+ usd?: string | undefined;
5566
+ }>;
5567
+ dst: z.ZodObject<{
5568
+ token: z.ZodObject<{
5569
+ chainId: z.ZodNumber;
5570
+ address: z.ZodString;
5571
+ amount: z.ZodString;
5572
+ symbol: z.ZodOptional<z.ZodString>;
5573
+ decimals: z.ZodOptional<z.ZodNumber>;
5574
+ iconUrl: z.ZodOptional<z.ZodString>;
5575
+ }, "strip", z.ZodTypeAny, {
5576
+ chainId: number;
5577
+ address: string;
5578
+ amount: string;
5579
+ symbol?: string | undefined;
5580
+ decimals?: number | undefined;
5581
+ iconUrl?: string | undefined;
5582
+ }, {
5583
+ chainId: number;
5584
+ address: string;
5585
+ amount: string;
5586
+ symbol?: string | undefined;
5587
+ decimals?: number | undefined;
5588
+ iconUrl?: string | undefined;
5589
+ }>;
5590
+ usd: z.ZodOptional<z.ZodString>;
5591
+ }, "strip", z.ZodTypeAny, {
5592
+ token: {
5593
+ chainId: number;
5594
+ address: string;
5595
+ amount: string;
5596
+ symbol?: string | undefined;
5597
+ decimals?: number | undefined;
5598
+ iconUrl?: string | undefined;
5599
+ };
5600
+ usd?: string | undefined;
5601
+ }, {
5602
+ token: {
5603
+ chainId: number;
5604
+ address: string;
5605
+ amount: string;
5606
+ symbol?: string | undefined;
5607
+ decimals?: number | undefined;
5608
+ iconUrl?: string | undefined;
5609
+ };
5610
+ usd?: string | undefined;
5611
+ }>;
5612
+ price: z.ZodOptional<z.ZodObject<{
5613
+ pair: z.ZodString;
5614
+ quoteIn: z.ZodString;
5615
+ feeIncluded: z.ZodBoolean;
5616
+ value: z.ZodString;
5617
+ kind: z.ZodEnum<["Executed", "Estimated"]>;
5618
+ }, "strip", z.ZodTypeAny, {
5619
+ value: string;
5620
+ pair: string;
5621
+ quoteIn: string;
5622
+ feeIncluded: boolean;
5623
+ kind: "Executed" | "Estimated";
5624
+ }, {
5625
+ value: string;
5626
+ pair: string;
5627
+ quoteIn: string;
5628
+ feeIncluded: boolean;
5629
+ kind: "Executed" | "Estimated";
5630
+ }>>;
5631
+ }, "strip", z.ZodTypeAny, {
5632
+ status: TradeBatchTradeStatus;
5633
+ id: string;
5634
+ bundleTradeId: string;
5635
+ src: {
5636
+ token: {
5637
+ chainId: number;
5638
+ address: string;
5639
+ amount: string;
5640
+ symbol?: string | undefined;
5641
+ decimals?: number | undefined;
5642
+ iconUrl?: string | undefined;
5643
+ };
5644
+ usd?: string | undefined;
5645
+ };
5646
+ dst: {
5647
+ token: {
5648
+ chainId: number;
5649
+ address: string;
5650
+ amount: string;
5651
+ symbol?: string | undefined;
5652
+ decimals?: number | undefined;
5653
+ iconUrl?: string | undefined;
5654
+ };
5655
+ usd?: string | undefined;
5656
+ };
5657
+ intentExecuteTx: {
5658
+ chainId: number;
5659
+ intentId: string;
5660
+ txHash?: string | undefined;
5661
+ executedAt?: string | undefined;
5662
+ };
5663
+ orderId?: string | undefined;
5664
+ price?: {
5665
+ value: string;
5666
+ pair: string;
5667
+ quoteIn: string;
5668
+ feeIncluded: boolean;
5669
+ kind: "Executed" | "Estimated";
5670
+ } | undefined;
5671
+ transactionHash?: string | undefined;
5672
+ }, {
5673
+ status: TradeBatchTradeStatus;
5674
+ id: string;
5675
+ bundleTradeId: string;
5676
+ src: {
5677
+ token: {
5678
+ chainId: number;
5679
+ address: string;
5680
+ amount: string;
5681
+ symbol?: string | undefined;
5682
+ decimals?: number | undefined;
5683
+ iconUrl?: string | undefined;
5684
+ };
5685
+ usd?: string | undefined;
5686
+ };
5687
+ dst: {
5688
+ token: {
5689
+ chainId: number;
5690
+ address: string;
5691
+ amount: string;
5692
+ symbol?: string | undefined;
5693
+ decimals?: number | undefined;
5694
+ iconUrl?: string | undefined;
5695
+ };
5696
+ usd?: string | undefined;
5697
+ };
5698
+ intentExecuteTx: {
5699
+ chainId: number;
5700
+ intentId: string;
5701
+ txHash?: string | undefined;
5702
+ executedAt?: string | undefined;
5703
+ };
5704
+ orderId?: string | undefined;
5705
+ price?: {
5706
+ value: string;
5707
+ pair: string;
5708
+ quoteIn: string;
5709
+ feeIncluded: boolean;
5710
+ kind: "Executed" | "Estimated";
5711
+ } | undefined;
5712
+ transactionHash?: string | undefined;
5713
+ }>, "many">;
5714
+ hooks: z.ZodArray<z.ZodObject<{
5715
+ phase: z.ZodEnum<["preHook", "postHook"]>;
5716
+ txData: z.ZodString;
5717
+ chainId: z.ZodNumber;
5718
+ from: z.ZodString;
5719
+ to: z.ZodString;
5720
+ tokenAddress: z.ZodString;
5721
+ value: z.ZodString;
5722
+ txHash: z.ZodOptional<z.ZodString>;
5723
+ status: z.ZodOptional<z.ZodString>;
5724
+ }, "strip", z.ZodTypeAny, {
5725
+ tokenAddress: string;
5726
+ value: string;
5727
+ chainId: number;
5728
+ to: string;
5729
+ from: string;
5730
+ phase: "preHook" | "postHook";
5731
+ txData: string;
5732
+ status?: string | undefined;
5733
+ txHash?: string | undefined;
5734
+ }, {
5735
+ tokenAddress: string;
5736
+ value: string;
5737
+ chainId: number;
5738
+ to: string;
5739
+ from: string;
5740
+ phase: "preHook" | "postHook";
5741
+ txData: string;
5742
+ status?: string | undefined;
5743
+ txHash?: string | undefined;
5744
+ }>, "many">;
5745
+ batchFulfill: z.ZodObject<{
5746
+ dstChainId: z.ZodNumber;
5747
+ txHash: z.ZodOptional<z.ZodString>;
5748
+ status: z.ZodOptional<z.ZodString>;
5749
+ }, "strip", z.ZodTypeAny, {
5750
+ dstChainId: number;
5751
+ status?: string | undefined;
5752
+ txHash?: string | undefined;
5753
+ }, {
5754
+ dstChainId: number;
5755
+ status?: string | undefined;
5756
+ txHash?: string | undefined;
5757
+ }>;
5758
+ status: z.ZodNativeEnum<typeof TradeBatchStatus>;
5759
+ stats: z.ZodObject<{
5760
+ opsCompleted: z.ZodNumber;
5761
+ opsTotal: z.ZodNumber;
5762
+ filledPct: z.ZodNumber;
5763
+ }, "strip", z.ZodTypeAny, {
5764
+ opsCompleted: number;
5765
+ opsTotal: number;
5766
+ filledPct: number;
5767
+ }, {
5768
+ opsCompleted: number;
5769
+ opsTotal: number;
5770
+ filledPct: number;
5771
+ }>;
5772
+ createdAt: z.ZodString;
5773
+ updatedAt: z.ZodString;
5774
+ executedAt: z.ZodOptional<z.ZodString>;
5775
+ }, "strip", z.ZodTypeAny, {
5776
+ status: TradeBatchStatus;
5777
+ id: string;
5778
+ trades: {
5779
+ status: TradeBatchTradeStatus;
5780
+ id: string;
5781
+ bundleTradeId: string;
5782
+ src: {
5783
+ token: {
5784
+ chainId: number;
5785
+ address: string;
5786
+ amount: string;
5787
+ symbol?: string | undefined;
5788
+ decimals?: number | undefined;
5789
+ iconUrl?: string | undefined;
5790
+ };
5791
+ usd?: string | undefined;
5792
+ };
5793
+ dst: {
5794
+ token: {
5795
+ chainId: number;
5796
+ address: string;
5797
+ amount: string;
5798
+ symbol?: string | undefined;
5799
+ decimals?: number | undefined;
5800
+ iconUrl?: string | undefined;
5801
+ };
5802
+ usd?: string | undefined;
5803
+ };
5804
+ intentExecuteTx: {
5805
+ chainId: number;
5806
+ intentId: string;
5807
+ txHash?: string | undefined;
5808
+ executedAt?: string | undefined;
5809
+ };
5810
+ orderId?: string | undefined;
5811
+ price?: {
5812
+ value: string;
5813
+ pair: string;
5814
+ quoteIn: string;
5815
+ feeIncluded: boolean;
5816
+ kind: "Executed" | "Estimated";
5817
+ } | undefined;
5818
+ transactionHash?: string | undefined;
5819
+ }[];
5820
+ createdAt: string;
5821
+ updatedAt: string;
5822
+ hooks: {
5823
+ tokenAddress: string;
5824
+ value: string;
5825
+ chainId: number;
5826
+ to: string;
5827
+ from: string;
5828
+ phase: "preHook" | "postHook";
5829
+ txData: string;
5830
+ status?: string | undefined;
5831
+ txHash?: string | undefined;
5832
+ }[];
5833
+ batchFulfill: {
5834
+ dstChainId: number;
5835
+ status?: string | undefined;
5836
+ txHash?: string | undefined;
5837
+ };
5838
+ stats: {
5839
+ opsCompleted: number;
5840
+ opsTotal: number;
5841
+ filledPct: number;
5842
+ };
5843
+ executedAt?: string | undefined;
5844
+ }, {
5845
+ status: TradeBatchStatus;
5846
+ id: string;
5847
+ trades: {
5848
+ status: TradeBatchTradeStatus;
5849
+ id: string;
5850
+ bundleTradeId: string;
5851
+ src: {
5852
+ token: {
5853
+ chainId: number;
5854
+ address: string;
5855
+ amount: string;
5856
+ symbol?: string | undefined;
5857
+ decimals?: number | undefined;
5858
+ iconUrl?: string | undefined;
5859
+ };
5860
+ usd?: string | undefined;
5861
+ };
5862
+ dst: {
5863
+ token: {
5864
+ chainId: number;
5865
+ address: string;
5866
+ amount: string;
5867
+ symbol?: string | undefined;
5868
+ decimals?: number | undefined;
5869
+ iconUrl?: string | undefined;
5870
+ };
5871
+ usd?: string | undefined;
5872
+ };
5873
+ intentExecuteTx: {
5874
+ chainId: number;
5875
+ intentId: string;
5876
+ txHash?: string | undefined;
5877
+ executedAt?: string | undefined;
5878
+ };
5879
+ orderId?: string | undefined;
5880
+ price?: {
5881
+ value: string;
5882
+ pair: string;
5883
+ quoteIn: string;
5884
+ feeIncluded: boolean;
5885
+ kind: "Executed" | "Estimated";
5886
+ } | undefined;
5887
+ transactionHash?: string | undefined;
5888
+ }[];
5889
+ createdAt: string;
5890
+ updatedAt: string;
5891
+ hooks: {
5892
+ tokenAddress: string;
5893
+ value: string;
5894
+ chainId: number;
5895
+ to: string;
5896
+ from: string;
5897
+ phase: "preHook" | "postHook";
5898
+ txData: string;
5899
+ status?: string | undefined;
5900
+ txHash?: string | undefined;
5901
+ }[];
5902
+ batchFulfill: {
5903
+ dstChainId: number;
5904
+ status?: string | undefined;
5905
+ txHash?: string | undefined;
5906
+ };
5907
+ stats: {
5908
+ opsCompleted: number;
5909
+ opsTotal: number;
5910
+ filledPct: number;
5911
+ };
5912
+ executedAt?: string | undefined;
5913
+ }>, "many">;
5914
+ addressesInvolved: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5915
+ }, "strip", z.ZodTypeAny, {
5916
+ status: BundleStatus;
5917
+ id: string;
5918
+ createdAt: string;
5919
+ summary: {
5920
+ tradesCount: number;
5921
+ batchesCount: number;
5922
+ opsCount: number;
5923
+ opsCompleted: number;
5924
+ opsfilledPct: number;
5925
+ dstUSD?: string | undefined;
5926
+ srcUSD?: string | undefined;
5927
+ };
5928
+ bundleDetails: {
5929
+ status: BundleStatus;
5930
+ id: string;
5931
+ trades: {
5932
+ intentId: string;
5933
+ id: string;
5934
+ src: {
5935
+ token: {
5936
+ chainId: number;
5937
+ address: string;
5938
+ amount: string;
5939
+ symbol?: string | undefined;
5940
+ isWrapped?: boolean | undefined;
5941
+ decimals?: number | undefined;
5942
+ iconUrl?: string | undefined;
5943
+ };
5944
+ usd?: string | undefined;
5945
+ };
5946
+ dst: {
5947
+ token: {
5948
+ chainId: number;
5949
+ address: string;
5950
+ amount: string;
5951
+ symbol?: string | undefined;
5952
+ minAmount?: string | undefined;
5953
+ decimals?: number | undefined;
5954
+ iconUrl?: string | undefined;
5955
+ };
5956
+ usd?: string | undefined;
5957
+ };
5958
+ price?: {
5959
+ value: string;
5960
+ pair: string;
5961
+ quoteIn: string;
5962
+ feeIncluded: boolean;
5963
+ kind: "Executed" | "Estimated";
5964
+ } | undefined;
5965
+ }[];
5966
+ intents: {
5967
+ chainId: number;
5968
+ intentId: string;
5969
+ }[];
5970
+ summary: {
5971
+ opsCompleted: number;
5972
+ opsTotal: number;
5973
+ filledPct: number;
5974
+ };
5975
+ hooks: {
5976
+ tokenAddress: string;
5977
+ value: string;
5978
+ chainId: number;
5979
+ to: string;
5980
+ from: string;
5981
+ phase: "preHook" | "postHook";
5982
+ txData: string;
5983
+ status?: string | undefined;
5984
+ txHash?: string | undefined;
5985
+ }[];
5986
+ };
5987
+ execBatches: {
5988
+ status: TradeBatchStatus;
5989
+ id: string;
5990
+ trades: {
5991
+ status: TradeBatchTradeStatus;
5992
+ id: string;
5993
+ bundleTradeId: string;
5994
+ src: {
5995
+ token: {
5996
+ chainId: number;
5997
+ address: string;
5998
+ amount: string;
5999
+ symbol?: string | undefined;
6000
+ decimals?: number | undefined;
6001
+ iconUrl?: string | undefined;
6002
+ };
6003
+ usd?: string | undefined;
6004
+ };
6005
+ dst: {
6006
+ token: {
6007
+ chainId: number;
6008
+ address: string;
6009
+ amount: string;
6010
+ symbol?: string | undefined;
6011
+ decimals?: number | undefined;
6012
+ iconUrl?: string | undefined;
6013
+ };
6014
+ usd?: string | undefined;
6015
+ };
6016
+ intentExecuteTx: {
6017
+ chainId: number;
6018
+ intentId: string;
6019
+ txHash?: string | undefined;
6020
+ executedAt?: string | undefined;
6021
+ };
6022
+ orderId?: string | undefined;
6023
+ price?: {
6024
+ value: string;
6025
+ pair: string;
6026
+ quoteIn: string;
6027
+ feeIncluded: boolean;
6028
+ kind: "Executed" | "Estimated";
6029
+ } | undefined;
6030
+ transactionHash?: string | undefined;
6031
+ }[];
6032
+ createdAt: string;
6033
+ updatedAt: string;
6034
+ hooks: {
6035
+ tokenAddress: string;
6036
+ value: string;
6037
+ chainId: number;
6038
+ to: string;
6039
+ from: string;
6040
+ phase: "preHook" | "postHook";
6041
+ txData: string;
6042
+ status?: string | undefined;
6043
+ txHash?: string | undefined;
6044
+ }[];
6045
+ batchFulfill: {
6046
+ dstChainId: number;
6047
+ status?: string | undefined;
6048
+ txHash?: string | undefined;
6049
+ };
6050
+ stats: {
6051
+ opsCompleted: number;
6052
+ opsTotal: number;
6053
+ filledPct: number;
6054
+ };
6055
+ executedAt?: string | undefined;
6056
+ }[];
6057
+ type?: TradingAlgorithm | undefined;
6058
+ isAtomic?: boolean | undefined;
6059
+ updatedAt?: string | undefined;
6060
+ requestId?: string | undefined;
6061
+ cancelAuthorities?: string[] | undefined;
6062
+ chains?: {
6063
+ name: string;
6064
+ id: number;
6065
+ icon?: string | undefined;
6066
+ }[] | undefined;
6067
+ addressesInvolved?: string[] | undefined;
6068
+ }, {
6069
+ status: BundleStatus;
6070
+ id: string;
6071
+ createdAt: string;
6072
+ summary: {
6073
+ tradesCount: number;
6074
+ batchesCount: number;
6075
+ opsCount: number;
6076
+ opsCompleted: number;
6077
+ opsfilledPct: number;
6078
+ dstUSD?: string | undefined;
6079
+ srcUSD?: string | undefined;
6080
+ };
6081
+ bundleDetails: {
6082
+ status: BundleStatus;
6083
+ id: string;
6084
+ trades: {
6085
+ intentId: string;
6086
+ id: string;
6087
+ src: {
6088
+ token: {
6089
+ chainId: number;
6090
+ address: string;
6091
+ amount: string;
6092
+ symbol?: string | undefined;
6093
+ isWrapped?: boolean | undefined;
6094
+ decimals?: number | undefined;
6095
+ iconUrl?: string | undefined;
6096
+ };
6097
+ usd?: string | undefined;
6098
+ };
6099
+ dst: {
6100
+ token: {
6101
+ chainId: number;
6102
+ address: string;
6103
+ amount: string;
6104
+ symbol?: string | undefined;
6105
+ minAmount?: string | undefined;
6106
+ decimals?: number | undefined;
6107
+ iconUrl?: string | undefined;
6108
+ };
6109
+ usd?: string | undefined;
6110
+ };
6111
+ price?: {
6112
+ value: string;
6113
+ pair: string;
6114
+ quoteIn: string;
6115
+ feeIncluded: boolean;
6116
+ kind: "Executed" | "Estimated";
6117
+ } | undefined;
6118
+ }[];
6119
+ intents: {
6120
+ chainId: number;
6121
+ intentId: string;
6122
+ }[];
6123
+ summary: {
6124
+ opsCompleted: number;
6125
+ opsTotal: number;
6126
+ filledPct: number;
6127
+ };
6128
+ hooks: {
6129
+ tokenAddress: string;
6130
+ value: string;
6131
+ chainId: number;
6132
+ to: string;
6133
+ from: string;
6134
+ phase: "preHook" | "postHook";
6135
+ txData: string;
6136
+ status?: string | undefined;
6137
+ txHash?: string | undefined;
6138
+ }[];
6139
+ };
6140
+ execBatches: {
6141
+ status: TradeBatchStatus;
6142
+ id: string;
6143
+ trades: {
6144
+ status: TradeBatchTradeStatus;
6145
+ id: string;
6146
+ bundleTradeId: string;
6147
+ src: {
6148
+ token: {
6149
+ chainId: number;
6150
+ address: string;
6151
+ amount: string;
6152
+ symbol?: string | undefined;
6153
+ decimals?: number | undefined;
6154
+ iconUrl?: string | undefined;
6155
+ };
6156
+ usd?: string | undefined;
6157
+ };
6158
+ dst: {
6159
+ token: {
6160
+ chainId: number;
6161
+ address: string;
6162
+ amount: string;
6163
+ symbol?: string | undefined;
6164
+ decimals?: number | undefined;
6165
+ iconUrl?: string | undefined;
6166
+ };
6167
+ usd?: string | undefined;
6168
+ };
6169
+ intentExecuteTx: {
6170
+ chainId: number;
6171
+ intentId: string;
6172
+ txHash?: string | undefined;
6173
+ executedAt?: string | undefined;
6174
+ };
6175
+ orderId?: string | undefined;
6176
+ price?: {
6177
+ value: string;
6178
+ pair: string;
6179
+ quoteIn: string;
6180
+ feeIncluded: boolean;
6181
+ kind: "Executed" | "Estimated";
6182
+ } | undefined;
6183
+ transactionHash?: string | undefined;
6184
+ }[];
6185
+ createdAt: string;
6186
+ updatedAt: string;
6187
+ hooks: {
6188
+ tokenAddress: string;
6189
+ value: string;
6190
+ chainId: number;
6191
+ to: string;
6192
+ from: string;
6193
+ phase: "preHook" | "postHook";
6194
+ txData: string;
6195
+ status?: string | undefined;
6196
+ txHash?: string | undefined;
6197
+ }[];
6198
+ batchFulfill: {
6199
+ dstChainId: number;
6200
+ status?: string | undefined;
6201
+ txHash?: string | undefined;
6202
+ };
6203
+ stats: {
6204
+ opsCompleted: number;
6205
+ opsTotal: number;
6206
+ filledPct: number;
6207
+ };
6208
+ executedAt?: string | undefined;
6209
+ }[];
6210
+ type?: TradingAlgorithm | undefined;
6211
+ isAtomic?: boolean | undefined;
6212
+ updatedAt?: string | undefined;
6213
+ requestId?: string | undefined;
6214
+ cancelAuthorities?: string[] | undefined;
6215
+ chains?: {
6216
+ name: string;
6217
+ id: number;
6218
+ icon?: string | undefined;
6219
+ }[] | undefined;
6220
+ addressesInvolved?: string[] | undefined;
6221
+ }>;
6222
+ export declare const KafkaBundleUpdateSchema: z.ZodDiscriminatedUnion<"updateType", [z.ZodObject<{
6223
+ updateType: z.ZodLiteral<"intent_execution">;
6224
+ bundleId: z.ZodString;
6225
+ tradeBatchId: z.ZodString;
6226
+ tradeId: z.ZodString;
6227
+ bundleTradeId: z.ZodString;
6228
+ intentId: z.ZodString;
6229
+ orderId: z.ZodOptional<z.ZodString>;
6230
+ transactionHash: z.ZodString;
6231
+ chainId: z.ZodNumber;
6232
+ executedAt: z.ZodOptional<z.ZodString>;
6233
+ }, "strip", z.ZodTypeAny, {
6234
+ chainId: number;
6235
+ intentId: string;
6236
+ bundleTradeId: string;
6237
+ bundleId: string;
6238
+ transactionHash: string;
6239
+ updateType: "intent_execution";
6240
+ tradeBatchId: string;
6241
+ tradeId: string;
6242
+ orderId?: string | undefined;
6243
+ executedAt?: string | undefined;
6244
+ }, {
6245
+ chainId: number;
6246
+ intentId: string;
6247
+ bundleTradeId: string;
6248
+ bundleId: string;
6249
+ transactionHash: string;
6250
+ updateType: "intent_execution";
6251
+ tradeBatchId: string;
6252
+ tradeId: string;
6253
+ orderId?: string | undefined;
6254
+ executedAt?: string | undefined;
6255
+ }>, z.ZodObject<{
6256
+ updateType: z.ZodLiteral<"bundle_status">;
6257
+ bundleId: z.ZodString;
6258
+ status: z.ZodNativeEnum<typeof BundleStatus>;
6259
+ previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof BundleStatus>>;
6260
+ updatedAt: z.ZodString;
6261
+ }, "strip", z.ZodTypeAny, {
6262
+ status: BundleStatus;
6263
+ bundleId: string;
6264
+ updatedAt: string;
6265
+ updateType: "bundle_status";
6266
+ previousStatus?: BundleStatus | undefined;
6267
+ }, {
6268
+ status: BundleStatus;
6269
+ bundleId: string;
6270
+ updatedAt: string;
6271
+ updateType: "bundle_status";
6272
+ previousStatus?: BundleStatus | undefined;
6273
+ }>, z.ZodObject<{
6274
+ updateType: z.ZodLiteral<"bundle_trade_status">;
6275
+ bundleId: z.ZodString;
6276
+ bundleTradeId: z.ZodString;
6277
+ tradeId: z.ZodString;
6278
+ status: z.ZodNativeEnum<typeof BundleTradeStatus>;
6279
+ previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof BundleTradeStatus>>;
6280
+ updatedAt: z.ZodString;
6281
+ }, "strip", z.ZodTypeAny, {
6282
+ status: BundleTradeStatus;
6283
+ bundleTradeId: string;
6284
+ bundleId: string;
6285
+ updatedAt: string;
6286
+ updateType: "bundle_trade_status";
6287
+ tradeId: string;
6288
+ previousStatus?: BundleTradeStatus | undefined;
6289
+ }, {
6290
+ status: BundleTradeStatus;
6291
+ bundleTradeId: string;
6292
+ bundleId: string;
6293
+ updatedAt: string;
6294
+ updateType: "bundle_trade_status";
6295
+ tradeId: string;
6296
+ previousStatus?: BundleTradeStatus | undefined;
6297
+ }>, z.ZodObject<{
6298
+ updateType: z.ZodLiteral<"trade_batch_status">;
6299
+ bundleId: z.ZodString;
6300
+ tradeBatchId: z.ZodString;
6301
+ status: z.ZodNativeEnum<typeof TradeBatchStatus>;
6302
+ previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof TradeBatchStatus>>;
6303
+ updatedAt: z.ZodString;
6304
+ }, "strip", z.ZodTypeAny, {
6305
+ status: TradeBatchStatus;
6306
+ bundleId: string;
6307
+ updatedAt: string;
6308
+ updateType: "trade_batch_status";
6309
+ tradeBatchId: string;
6310
+ previousStatus?: TradeBatchStatus | undefined;
6311
+ }, {
6312
+ status: TradeBatchStatus;
6313
+ bundleId: string;
6314
+ updatedAt: string;
6315
+ updateType: "trade_batch_status";
6316
+ tradeBatchId: string;
6317
+ previousStatus?: TradeBatchStatus | undefined;
6318
+ }>, z.ZodObject<{
6319
+ updateType: z.ZodLiteral<"expiration">;
6320
+ bundleId: z.ZodString;
6321
+ tradeBatchIds: z.ZodArray<z.ZodString, "many">;
6322
+ bundleTradeIds: z.ZodArray<z.ZodString, "many">;
6323
+ intentIds: z.ZodArray<z.ZodString, "many">;
6324
+ expiredAt: z.ZodString;
6325
+ }, "strip", z.ZodTypeAny, {
6326
+ bundleId: string;
6327
+ updateType: "expiration";
6328
+ tradeBatchIds: string[];
6329
+ bundleTradeIds: string[];
6330
+ intentIds: string[];
6331
+ expiredAt: string;
6332
+ }, {
6333
+ bundleId: string;
6334
+ updateType: "expiration";
6335
+ tradeBatchIds: string[];
6336
+ bundleTradeIds: string[];
6337
+ intentIds: string[];
6338
+ expiredAt: string;
6339
+ }>, z.ZodObject<{
6340
+ updateType: z.ZodLiteral<"cancellation">;
6341
+ bundleId: z.ZodString;
6342
+ cancelledAt: z.ZodString;
6343
+ }, "strip", z.ZodTypeAny, {
6344
+ bundleId: string;
6345
+ updateType: "cancellation";
6346
+ cancelledAt: string;
6347
+ }, {
6348
+ bundleId: string;
6349
+ updateType: "cancellation";
6350
+ cancelledAt: string;
6351
+ }>]>;
6352
+ export type ValidatedKafkaBundleUpdate = z.infer<typeof KafkaBundleUpdateSchema>;
5022
6353
  //# sourceMappingURL=kafka.d.ts.map