@debridge-finance/intents-schemas 1.7.0 → 1.7.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.
@@ -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,1332 @@ 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
+ intentOwner: z.ZodOptional<z.ZodString>;
5362
+ intentAuthority: z.ZodOptional<z.ZodString>;
5363
+ cancelAuthority: z.ZodOptional<z.ZodString>;
5364
+ }, "strip", z.ZodTypeAny, {
5365
+ chainId: number;
5366
+ intentId: string;
5367
+ intentOwner?: string | undefined;
5368
+ intentAuthority?: string | undefined;
5369
+ cancelAuthority?: string | undefined;
5370
+ }, {
5371
+ chainId: number;
5372
+ intentId: string;
5373
+ intentOwner?: string | undefined;
5374
+ intentAuthority?: string | undefined;
5375
+ cancelAuthority?: string | undefined;
5376
+ }>, "many">;
5377
+ summary: z.ZodObject<{
5378
+ opsCompleted: z.ZodNumber;
5379
+ opsTotal: z.ZodNumber;
5380
+ filledPct: z.ZodNumber;
5381
+ }, "strip", z.ZodTypeAny, {
5382
+ opsCompleted: number;
5383
+ opsTotal: number;
5384
+ filledPct: number;
5385
+ }, {
5386
+ opsCompleted: number;
5387
+ opsTotal: number;
5388
+ filledPct: number;
5389
+ }>;
5390
+ }, "strip", z.ZodTypeAny, {
5391
+ status: BundleStatus;
5392
+ id: string;
5393
+ trades: {
5394
+ intentId: string;
5395
+ id: string;
5396
+ src: {
5397
+ token: {
5398
+ chainId: number;
5399
+ address: string;
5400
+ amount: string;
5401
+ symbol?: string | undefined;
5402
+ isWrapped?: boolean | undefined;
5403
+ decimals?: number | undefined;
5404
+ iconUrl?: string | undefined;
5405
+ };
5406
+ usd?: string | undefined;
5407
+ };
5408
+ dst: {
5409
+ token: {
5410
+ chainId: number;
5411
+ address: string;
5412
+ amount: string;
5413
+ symbol?: string | undefined;
5414
+ minAmount?: string | undefined;
5415
+ decimals?: number | undefined;
5416
+ iconUrl?: string | undefined;
5417
+ };
5418
+ usd?: string | undefined;
5419
+ };
5420
+ price?: {
5421
+ value: string;
5422
+ pair: string;
5423
+ quoteIn: string;
5424
+ feeIncluded: boolean;
5425
+ kind: "Executed" | "Estimated";
5426
+ } | undefined;
5427
+ }[];
5428
+ intents: {
5429
+ chainId: number;
5430
+ intentId: string;
5431
+ intentOwner?: string | undefined;
5432
+ intentAuthority?: string | undefined;
5433
+ cancelAuthority?: string | undefined;
5434
+ }[];
5435
+ summary: {
5436
+ opsCompleted: number;
5437
+ opsTotal: number;
5438
+ filledPct: number;
5439
+ };
5440
+ hooks: {
5441
+ tokenAddress: string;
5442
+ value: string;
5443
+ chainId: number;
5444
+ to: string;
5445
+ from: string;
5446
+ phase: "preHook" | "postHook";
5447
+ txData: string;
5448
+ status?: string | undefined;
5449
+ txHash?: string | undefined;
5450
+ }[];
5451
+ }, {
5452
+ status: BundleStatus;
5453
+ id: string;
5454
+ trades: {
5455
+ intentId: string;
5456
+ id: string;
5457
+ src: {
5458
+ token: {
5459
+ chainId: number;
5460
+ address: string;
5461
+ amount: string;
5462
+ symbol?: string | undefined;
5463
+ isWrapped?: boolean | undefined;
5464
+ decimals?: number | undefined;
5465
+ iconUrl?: string | undefined;
5466
+ };
5467
+ usd?: string | undefined;
5468
+ };
5469
+ dst: {
5470
+ token: {
5471
+ chainId: number;
5472
+ address: string;
5473
+ amount: string;
5474
+ symbol?: string | undefined;
5475
+ minAmount?: string | undefined;
5476
+ decimals?: number | undefined;
5477
+ iconUrl?: string | undefined;
5478
+ };
5479
+ usd?: string | undefined;
5480
+ };
5481
+ price?: {
5482
+ value: string;
5483
+ pair: string;
5484
+ quoteIn: string;
5485
+ feeIncluded: boolean;
5486
+ kind: "Executed" | "Estimated";
5487
+ } | undefined;
5488
+ }[];
5489
+ intents: {
5490
+ chainId: number;
5491
+ intentId: string;
5492
+ intentOwner?: string | undefined;
5493
+ intentAuthority?: string | undefined;
5494
+ cancelAuthority?: string | undefined;
5495
+ }[];
5496
+ summary: {
5497
+ opsCompleted: number;
5498
+ opsTotal: number;
5499
+ filledPct: number;
5500
+ };
5501
+ hooks: {
5502
+ tokenAddress: string;
5503
+ value: string;
5504
+ chainId: number;
5505
+ to: string;
5506
+ from: string;
5507
+ phase: "preHook" | "postHook";
5508
+ txData: string;
5509
+ status?: string | undefined;
5510
+ txHash?: string | undefined;
5511
+ }[];
5512
+ }>;
5513
+ execBatches: z.ZodArray<z.ZodObject<{
5514
+ id: z.ZodString;
5515
+ trades: z.ZodArray<z.ZodObject<{
5516
+ id: z.ZodString;
5517
+ bundleTradeId: z.ZodString;
5518
+ status: z.ZodNativeEnum<typeof TradeBatchTradeStatus>;
5519
+ orderId: z.ZodOptional<z.ZodString>;
5520
+ transactionHash: z.ZodOptional<z.ZodString>;
5521
+ intentExecuteTx: z.ZodObject<{
5522
+ intentId: z.ZodString;
5523
+ chainId: z.ZodNumber;
5524
+ txHash: z.ZodOptional<z.ZodString>;
5525
+ executedAt: z.ZodOptional<z.ZodString>;
5526
+ }, "strip", z.ZodTypeAny, {
5527
+ chainId: number;
5528
+ intentId: string;
5529
+ txHash?: string | undefined;
5530
+ executedAt?: string | undefined;
5531
+ }, {
5532
+ chainId: number;
5533
+ intentId: string;
5534
+ txHash?: string | undefined;
5535
+ executedAt?: string | undefined;
5536
+ }>;
5537
+ src: z.ZodObject<{
5538
+ token: z.ZodObject<{
5539
+ chainId: z.ZodNumber;
5540
+ address: z.ZodString;
5541
+ amount: z.ZodString;
5542
+ symbol: z.ZodOptional<z.ZodString>;
5543
+ decimals: z.ZodOptional<z.ZodNumber>;
5544
+ iconUrl: z.ZodOptional<z.ZodString>;
5545
+ }, "strip", z.ZodTypeAny, {
5546
+ chainId: number;
5547
+ address: string;
5548
+ amount: string;
5549
+ symbol?: string | undefined;
5550
+ decimals?: number | undefined;
5551
+ iconUrl?: string | undefined;
5552
+ }, {
5553
+ chainId: number;
5554
+ address: string;
5555
+ amount: string;
5556
+ symbol?: string | undefined;
5557
+ decimals?: number | undefined;
5558
+ iconUrl?: string | undefined;
5559
+ }>;
5560
+ usd: z.ZodOptional<z.ZodString>;
5561
+ }, "strip", z.ZodTypeAny, {
5562
+ token: {
5563
+ chainId: number;
5564
+ address: string;
5565
+ amount: string;
5566
+ symbol?: string | undefined;
5567
+ decimals?: number | undefined;
5568
+ iconUrl?: string | undefined;
5569
+ };
5570
+ usd?: string | undefined;
5571
+ }, {
5572
+ token: {
5573
+ chainId: number;
5574
+ address: string;
5575
+ amount: string;
5576
+ symbol?: string | undefined;
5577
+ decimals?: number | undefined;
5578
+ iconUrl?: string | undefined;
5579
+ };
5580
+ usd?: string | undefined;
5581
+ }>;
5582
+ dst: z.ZodObject<{
5583
+ token: z.ZodObject<{
5584
+ chainId: z.ZodNumber;
5585
+ address: z.ZodString;
5586
+ amount: z.ZodString;
5587
+ symbol: z.ZodOptional<z.ZodString>;
5588
+ decimals: z.ZodOptional<z.ZodNumber>;
5589
+ iconUrl: z.ZodOptional<z.ZodString>;
5590
+ }, "strip", z.ZodTypeAny, {
5591
+ chainId: number;
5592
+ address: string;
5593
+ amount: string;
5594
+ symbol?: string | undefined;
5595
+ decimals?: number | undefined;
5596
+ iconUrl?: string | undefined;
5597
+ }, {
5598
+ chainId: number;
5599
+ address: string;
5600
+ amount: string;
5601
+ symbol?: string | undefined;
5602
+ decimals?: number | undefined;
5603
+ iconUrl?: string | undefined;
5604
+ }>;
5605
+ usd: z.ZodOptional<z.ZodString>;
5606
+ }, "strip", z.ZodTypeAny, {
5607
+ token: {
5608
+ chainId: number;
5609
+ address: string;
5610
+ amount: string;
5611
+ symbol?: string | undefined;
5612
+ decimals?: number | undefined;
5613
+ iconUrl?: string | undefined;
5614
+ };
5615
+ usd?: string | undefined;
5616
+ }, {
5617
+ token: {
5618
+ chainId: number;
5619
+ address: string;
5620
+ amount: string;
5621
+ symbol?: string | undefined;
5622
+ decimals?: number | undefined;
5623
+ iconUrl?: string | undefined;
5624
+ };
5625
+ usd?: string | undefined;
5626
+ }>;
5627
+ price: z.ZodOptional<z.ZodObject<{
5628
+ pair: z.ZodString;
5629
+ quoteIn: z.ZodString;
5630
+ feeIncluded: z.ZodBoolean;
5631
+ value: z.ZodString;
5632
+ kind: z.ZodEnum<["Executed", "Estimated"]>;
5633
+ }, "strip", z.ZodTypeAny, {
5634
+ value: string;
5635
+ pair: string;
5636
+ quoteIn: string;
5637
+ feeIncluded: boolean;
5638
+ kind: "Executed" | "Estimated";
5639
+ }, {
5640
+ value: string;
5641
+ pair: string;
5642
+ quoteIn: string;
5643
+ feeIncluded: boolean;
5644
+ kind: "Executed" | "Estimated";
5645
+ }>>;
5646
+ }, "strip", z.ZodTypeAny, {
5647
+ status: TradeBatchTradeStatus;
5648
+ id: string;
5649
+ bundleTradeId: string;
5650
+ src: {
5651
+ token: {
5652
+ chainId: number;
5653
+ address: string;
5654
+ amount: string;
5655
+ symbol?: string | undefined;
5656
+ decimals?: number | undefined;
5657
+ iconUrl?: string | undefined;
5658
+ };
5659
+ usd?: string | undefined;
5660
+ };
5661
+ dst: {
5662
+ token: {
5663
+ chainId: number;
5664
+ address: string;
5665
+ amount: string;
5666
+ symbol?: string | undefined;
5667
+ decimals?: number | undefined;
5668
+ iconUrl?: string | undefined;
5669
+ };
5670
+ usd?: string | undefined;
5671
+ };
5672
+ intentExecuteTx: {
5673
+ chainId: number;
5674
+ intentId: string;
5675
+ txHash?: string | undefined;
5676
+ executedAt?: string | undefined;
5677
+ };
5678
+ orderId?: string | undefined;
5679
+ price?: {
5680
+ value: string;
5681
+ pair: string;
5682
+ quoteIn: string;
5683
+ feeIncluded: boolean;
5684
+ kind: "Executed" | "Estimated";
5685
+ } | undefined;
5686
+ transactionHash?: string | undefined;
5687
+ }, {
5688
+ status: TradeBatchTradeStatus;
5689
+ id: string;
5690
+ bundleTradeId: string;
5691
+ src: {
5692
+ token: {
5693
+ chainId: number;
5694
+ address: string;
5695
+ amount: string;
5696
+ symbol?: string | undefined;
5697
+ decimals?: number | undefined;
5698
+ iconUrl?: string | undefined;
5699
+ };
5700
+ usd?: string | undefined;
5701
+ };
5702
+ dst: {
5703
+ token: {
5704
+ chainId: number;
5705
+ address: string;
5706
+ amount: string;
5707
+ symbol?: string | undefined;
5708
+ decimals?: number | undefined;
5709
+ iconUrl?: string | undefined;
5710
+ };
5711
+ usd?: string | undefined;
5712
+ };
5713
+ intentExecuteTx: {
5714
+ chainId: number;
5715
+ intentId: string;
5716
+ txHash?: string | undefined;
5717
+ executedAt?: string | undefined;
5718
+ };
5719
+ orderId?: string | undefined;
5720
+ price?: {
5721
+ value: string;
5722
+ pair: string;
5723
+ quoteIn: string;
5724
+ feeIncluded: boolean;
5725
+ kind: "Executed" | "Estimated";
5726
+ } | undefined;
5727
+ transactionHash?: string | undefined;
5728
+ }>, "many">;
5729
+ hooks: z.ZodArray<z.ZodObject<{
5730
+ phase: z.ZodEnum<["preHook", "postHook"]>;
5731
+ txData: z.ZodString;
5732
+ chainId: z.ZodNumber;
5733
+ from: z.ZodString;
5734
+ to: z.ZodString;
5735
+ tokenAddress: z.ZodString;
5736
+ value: z.ZodString;
5737
+ txHash: z.ZodOptional<z.ZodString>;
5738
+ status: z.ZodOptional<z.ZodString>;
5739
+ }, "strip", z.ZodTypeAny, {
5740
+ tokenAddress: string;
5741
+ value: string;
5742
+ chainId: number;
5743
+ to: string;
5744
+ from: string;
5745
+ phase: "preHook" | "postHook";
5746
+ txData: string;
5747
+ status?: string | undefined;
5748
+ txHash?: string | undefined;
5749
+ }, {
5750
+ tokenAddress: string;
5751
+ value: string;
5752
+ chainId: number;
5753
+ to: string;
5754
+ from: string;
5755
+ phase: "preHook" | "postHook";
5756
+ txData: string;
5757
+ status?: string | undefined;
5758
+ txHash?: string | undefined;
5759
+ }>, "many">;
5760
+ batchFulfill: z.ZodObject<{
5761
+ dstChainId: z.ZodNumber;
5762
+ txHash: z.ZodOptional<z.ZodString>;
5763
+ status: z.ZodOptional<z.ZodString>;
5764
+ }, "strip", z.ZodTypeAny, {
5765
+ dstChainId: number;
5766
+ status?: string | undefined;
5767
+ txHash?: string | undefined;
5768
+ }, {
5769
+ dstChainId: number;
5770
+ status?: string | undefined;
5771
+ txHash?: string | undefined;
5772
+ }>;
5773
+ status: z.ZodNativeEnum<typeof TradeBatchStatus>;
5774
+ stats: z.ZodObject<{
5775
+ opsCompleted: z.ZodNumber;
5776
+ opsTotal: z.ZodNumber;
5777
+ filledPct: z.ZodNumber;
5778
+ }, "strip", z.ZodTypeAny, {
5779
+ opsCompleted: number;
5780
+ opsTotal: number;
5781
+ filledPct: number;
5782
+ }, {
5783
+ opsCompleted: number;
5784
+ opsTotal: number;
5785
+ filledPct: number;
5786
+ }>;
5787
+ createdAt: z.ZodString;
5788
+ updatedAt: z.ZodString;
5789
+ executedAt: z.ZodOptional<z.ZodString>;
5790
+ }, "strip", z.ZodTypeAny, {
5791
+ status: TradeBatchStatus;
5792
+ id: string;
5793
+ trades: {
5794
+ status: TradeBatchTradeStatus;
5795
+ id: string;
5796
+ bundleTradeId: string;
5797
+ src: {
5798
+ token: {
5799
+ chainId: number;
5800
+ address: string;
5801
+ amount: string;
5802
+ symbol?: string | undefined;
5803
+ decimals?: number | undefined;
5804
+ iconUrl?: string | undefined;
5805
+ };
5806
+ usd?: string | undefined;
5807
+ };
5808
+ dst: {
5809
+ token: {
5810
+ chainId: number;
5811
+ address: string;
5812
+ amount: string;
5813
+ symbol?: string | undefined;
5814
+ decimals?: number | undefined;
5815
+ iconUrl?: string | undefined;
5816
+ };
5817
+ usd?: string | undefined;
5818
+ };
5819
+ intentExecuteTx: {
5820
+ chainId: number;
5821
+ intentId: string;
5822
+ txHash?: string | undefined;
5823
+ executedAt?: string | undefined;
5824
+ };
5825
+ orderId?: string | undefined;
5826
+ price?: {
5827
+ value: string;
5828
+ pair: string;
5829
+ quoteIn: string;
5830
+ feeIncluded: boolean;
5831
+ kind: "Executed" | "Estimated";
5832
+ } | undefined;
5833
+ transactionHash?: string | undefined;
5834
+ }[];
5835
+ createdAt: string;
5836
+ updatedAt: string;
5837
+ hooks: {
5838
+ tokenAddress: string;
5839
+ value: string;
5840
+ chainId: number;
5841
+ to: string;
5842
+ from: string;
5843
+ phase: "preHook" | "postHook";
5844
+ txData: string;
5845
+ status?: string | undefined;
5846
+ txHash?: string | undefined;
5847
+ }[];
5848
+ batchFulfill: {
5849
+ dstChainId: number;
5850
+ status?: string | undefined;
5851
+ txHash?: string | undefined;
5852
+ };
5853
+ stats: {
5854
+ opsCompleted: number;
5855
+ opsTotal: number;
5856
+ filledPct: number;
5857
+ };
5858
+ executedAt?: string | undefined;
5859
+ }, {
5860
+ status: TradeBatchStatus;
5861
+ id: string;
5862
+ trades: {
5863
+ status: TradeBatchTradeStatus;
5864
+ id: string;
5865
+ bundleTradeId: string;
5866
+ src: {
5867
+ token: {
5868
+ chainId: number;
5869
+ address: string;
5870
+ amount: string;
5871
+ symbol?: string | undefined;
5872
+ decimals?: number | undefined;
5873
+ iconUrl?: string | undefined;
5874
+ };
5875
+ usd?: string | undefined;
5876
+ };
5877
+ dst: {
5878
+ token: {
5879
+ chainId: number;
5880
+ address: string;
5881
+ amount: string;
5882
+ symbol?: string | undefined;
5883
+ decimals?: number | undefined;
5884
+ iconUrl?: string | undefined;
5885
+ };
5886
+ usd?: string | undefined;
5887
+ };
5888
+ intentExecuteTx: {
5889
+ chainId: number;
5890
+ intentId: string;
5891
+ txHash?: string | undefined;
5892
+ executedAt?: string | undefined;
5893
+ };
5894
+ orderId?: string | undefined;
5895
+ price?: {
5896
+ value: string;
5897
+ pair: string;
5898
+ quoteIn: string;
5899
+ feeIncluded: boolean;
5900
+ kind: "Executed" | "Estimated";
5901
+ } | undefined;
5902
+ transactionHash?: string | undefined;
5903
+ }[];
5904
+ createdAt: string;
5905
+ updatedAt: string;
5906
+ hooks: {
5907
+ tokenAddress: string;
5908
+ value: string;
5909
+ chainId: number;
5910
+ to: string;
5911
+ from: string;
5912
+ phase: "preHook" | "postHook";
5913
+ txData: string;
5914
+ status?: string | undefined;
5915
+ txHash?: string | undefined;
5916
+ }[];
5917
+ batchFulfill: {
5918
+ dstChainId: number;
5919
+ status?: string | undefined;
5920
+ txHash?: string | undefined;
5921
+ };
5922
+ stats: {
5923
+ opsCompleted: number;
5924
+ opsTotal: number;
5925
+ filledPct: number;
5926
+ };
5927
+ executedAt?: string | undefined;
5928
+ }>, "many">;
5929
+ addressesInvolved: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5930
+ operatingExpenses: z.ZodOptional<z.ZodArray<z.ZodObject<{
5931
+ chainId: z.ZodNumber;
5932
+ amount: z.ZodString;
5933
+ tokenAddress: z.ZodString;
5934
+ }, "strip", z.ZodTypeAny, {
5935
+ tokenAddress: string;
5936
+ chainId: number;
5937
+ amount: string;
5938
+ }, {
5939
+ tokenAddress: string;
5940
+ chainId: number;
5941
+ amount: string;
5942
+ }>, "many">>;
5943
+ debridgeApp: z.ZodOptional<z.ZodNumber>;
5944
+ additionalTakerRewardBps: z.ZodOptional<z.ZodNumber>;
5945
+ }, "strip", z.ZodTypeAny, {
5946
+ status: BundleStatus;
5947
+ id: string;
5948
+ createdAt: string;
5949
+ summary: {
5950
+ tradesCount: number;
5951
+ batchesCount: number;
5952
+ opsCount: number;
5953
+ opsCompleted: number;
5954
+ opsfilledPct: number;
5955
+ dstUSD?: string | undefined;
5956
+ srcUSD?: string | undefined;
5957
+ };
5958
+ bundleDetails: {
5959
+ status: BundleStatus;
5960
+ id: string;
5961
+ trades: {
5962
+ intentId: string;
5963
+ id: string;
5964
+ src: {
5965
+ token: {
5966
+ chainId: number;
5967
+ address: string;
5968
+ amount: string;
5969
+ symbol?: string | undefined;
5970
+ isWrapped?: boolean | undefined;
5971
+ decimals?: number | undefined;
5972
+ iconUrl?: string | undefined;
5973
+ };
5974
+ usd?: string | undefined;
5975
+ };
5976
+ dst: {
5977
+ token: {
5978
+ chainId: number;
5979
+ address: string;
5980
+ amount: string;
5981
+ symbol?: string | undefined;
5982
+ minAmount?: string | undefined;
5983
+ decimals?: number | undefined;
5984
+ iconUrl?: string | undefined;
5985
+ };
5986
+ usd?: string | undefined;
5987
+ };
5988
+ price?: {
5989
+ value: string;
5990
+ pair: string;
5991
+ quoteIn: string;
5992
+ feeIncluded: boolean;
5993
+ kind: "Executed" | "Estimated";
5994
+ } | undefined;
5995
+ }[];
5996
+ intents: {
5997
+ chainId: number;
5998
+ intentId: string;
5999
+ intentOwner?: string | undefined;
6000
+ intentAuthority?: string | undefined;
6001
+ cancelAuthority?: string | undefined;
6002
+ }[];
6003
+ summary: {
6004
+ opsCompleted: number;
6005
+ opsTotal: number;
6006
+ filledPct: number;
6007
+ };
6008
+ hooks: {
6009
+ tokenAddress: string;
6010
+ value: string;
6011
+ chainId: number;
6012
+ to: string;
6013
+ from: string;
6014
+ phase: "preHook" | "postHook";
6015
+ txData: string;
6016
+ status?: string | undefined;
6017
+ txHash?: string | undefined;
6018
+ }[];
6019
+ };
6020
+ execBatches: {
6021
+ status: TradeBatchStatus;
6022
+ id: string;
6023
+ trades: {
6024
+ status: TradeBatchTradeStatus;
6025
+ id: string;
6026
+ bundleTradeId: string;
6027
+ src: {
6028
+ token: {
6029
+ chainId: number;
6030
+ address: string;
6031
+ amount: string;
6032
+ symbol?: string | undefined;
6033
+ decimals?: number | undefined;
6034
+ iconUrl?: string | undefined;
6035
+ };
6036
+ usd?: string | undefined;
6037
+ };
6038
+ dst: {
6039
+ token: {
6040
+ chainId: number;
6041
+ address: string;
6042
+ amount: string;
6043
+ symbol?: string | undefined;
6044
+ decimals?: number | undefined;
6045
+ iconUrl?: string | undefined;
6046
+ };
6047
+ usd?: string | undefined;
6048
+ };
6049
+ intentExecuteTx: {
6050
+ chainId: number;
6051
+ intentId: string;
6052
+ txHash?: string | undefined;
6053
+ executedAt?: string | undefined;
6054
+ };
6055
+ orderId?: string | undefined;
6056
+ price?: {
6057
+ value: string;
6058
+ pair: string;
6059
+ quoteIn: string;
6060
+ feeIncluded: boolean;
6061
+ kind: "Executed" | "Estimated";
6062
+ } | undefined;
6063
+ transactionHash?: string | undefined;
6064
+ }[];
6065
+ createdAt: string;
6066
+ updatedAt: string;
6067
+ hooks: {
6068
+ tokenAddress: string;
6069
+ value: string;
6070
+ chainId: number;
6071
+ to: string;
6072
+ from: string;
6073
+ phase: "preHook" | "postHook";
6074
+ txData: string;
6075
+ status?: string | undefined;
6076
+ txHash?: string | undefined;
6077
+ }[];
6078
+ batchFulfill: {
6079
+ dstChainId: number;
6080
+ status?: string | undefined;
6081
+ txHash?: string | undefined;
6082
+ };
6083
+ stats: {
6084
+ opsCompleted: number;
6085
+ opsTotal: number;
6086
+ filledPct: number;
6087
+ };
6088
+ executedAt?: string | undefined;
6089
+ }[];
6090
+ type?: TradingAlgorithm | undefined;
6091
+ isAtomic?: boolean | undefined;
6092
+ updatedAt?: string | undefined;
6093
+ requestId?: string | undefined;
6094
+ cancelAuthorities?: string[] | undefined;
6095
+ chains?: {
6096
+ name: string;
6097
+ id: number;
6098
+ icon?: string | undefined;
6099
+ }[] | undefined;
6100
+ addressesInvolved?: string[] | undefined;
6101
+ operatingExpenses?: {
6102
+ tokenAddress: string;
6103
+ chainId: number;
6104
+ amount: string;
6105
+ }[] | undefined;
6106
+ debridgeApp?: number | undefined;
6107
+ additionalTakerRewardBps?: number | undefined;
6108
+ }, {
6109
+ status: BundleStatus;
6110
+ id: string;
6111
+ createdAt: string;
6112
+ summary: {
6113
+ tradesCount: number;
6114
+ batchesCount: number;
6115
+ opsCount: number;
6116
+ opsCompleted: number;
6117
+ opsfilledPct: number;
6118
+ dstUSD?: string | undefined;
6119
+ srcUSD?: string | undefined;
6120
+ };
6121
+ bundleDetails: {
6122
+ status: BundleStatus;
6123
+ id: string;
6124
+ trades: {
6125
+ intentId: string;
6126
+ id: string;
6127
+ src: {
6128
+ token: {
6129
+ chainId: number;
6130
+ address: string;
6131
+ amount: string;
6132
+ symbol?: string | undefined;
6133
+ isWrapped?: boolean | undefined;
6134
+ decimals?: number | undefined;
6135
+ iconUrl?: string | undefined;
6136
+ };
6137
+ usd?: string | undefined;
6138
+ };
6139
+ dst: {
6140
+ token: {
6141
+ chainId: number;
6142
+ address: string;
6143
+ amount: string;
6144
+ symbol?: string | undefined;
6145
+ minAmount?: string | undefined;
6146
+ decimals?: number | undefined;
6147
+ iconUrl?: string | undefined;
6148
+ };
6149
+ usd?: string | undefined;
6150
+ };
6151
+ price?: {
6152
+ value: string;
6153
+ pair: string;
6154
+ quoteIn: string;
6155
+ feeIncluded: boolean;
6156
+ kind: "Executed" | "Estimated";
6157
+ } | undefined;
6158
+ }[];
6159
+ intents: {
6160
+ chainId: number;
6161
+ intentId: string;
6162
+ intentOwner?: string | undefined;
6163
+ intentAuthority?: string | undefined;
6164
+ cancelAuthority?: string | undefined;
6165
+ }[];
6166
+ summary: {
6167
+ opsCompleted: number;
6168
+ opsTotal: number;
6169
+ filledPct: number;
6170
+ };
6171
+ hooks: {
6172
+ tokenAddress: string;
6173
+ value: string;
6174
+ chainId: number;
6175
+ to: string;
6176
+ from: string;
6177
+ phase: "preHook" | "postHook";
6178
+ txData: string;
6179
+ status?: string | undefined;
6180
+ txHash?: string | undefined;
6181
+ }[];
6182
+ };
6183
+ execBatches: {
6184
+ status: TradeBatchStatus;
6185
+ id: string;
6186
+ trades: {
6187
+ status: TradeBatchTradeStatus;
6188
+ id: string;
6189
+ bundleTradeId: string;
6190
+ src: {
6191
+ token: {
6192
+ chainId: number;
6193
+ address: string;
6194
+ amount: string;
6195
+ symbol?: string | undefined;
6196
+ decimals?: number | undefined;
6197
+ iconUrl?: string | undefined;
6198
+ };
6199
+ usd?: string | undefined;
6200
+ };
6201
+ dst: {
6202
+ token: {
6203
+ chainId: number;
6204
+ address: string;
6205
+ amount: string;
6206
+ symbol?: string | undefined;
6207
+ decimals?: number | undefined;
6208
+ iconUrl?: string | undefined;
6209
+ };
6210
+ usd?: string | undefined;
6211
+ };
6212
+ intentExecuteTx: {
6213
+ chainId: number;
6214
+ intentId: string;
6215
+ txHash?: string | undefined;
6216
+ executedAt?: string | undefined;
6217
+ };
6218
+ orderId?: string | undefined;
6219
+ price?: {
6220
+ value: string;
6221
+ pair: string;
6222
+ quoteIn: string;
6223
+ feeIncluded: boolean;
6224
+ kind: "Executed" | "Estimated";
6225
+ } | undefined;
6226
+ transactionHash?: string | undefined;
6227
+ }[];
6228
+ createdAt: string;
6229
+ updatedAt: string;
6230
+ hooks: {
6231
+ tokenAddress: string;
6232
+ value: string;
6233
+ chainId: number;
6234
+ to: string;
6235
+ from: string;
6236
+ phase: "preHook" | "postHook";
6237
+ txData: string;
6238
+ status?: string | undefined;
6239
+ txHash?: string | undefined;
6240
+ }[];
6241
+ batchFulfill: {
6242
+ dstChainId: number;
6243
+ status?: string | undefined;
6244
+ txHash?: string | undefined;
6245
+ };
6246
+ stats: {
6247
+ opsCompleted: number;
6248
+ opsTotal: number;
6249
+ filledPct: number;
6250
+ };
6251
+ executedAt?: string | undefined;
6252
+ }[];
6253
+ type?: TradingAlgorithm | undefined;
6254
+ isAtomic?: boolean | undefined;
6255
+ updatedAt?: string | undefined;
6256
+ requestId?: string | undefined;
6257
+ cancelAuthorities?: string[] | undefined;
6258
+ chains?: {
6259
+ name: string;
6260
+ id: number;
6261
+ icon?: string | undefined;
6262
+ }[] | undefined;
6263
+ addressesInvolved?: string[] | undefined;
6264
+ operatingExpenses?: {
6265
+ tokenAddress: string;
6266
+ chainId: number;
6267
+ amount: string;
6268
+ }[] | undefined;
6269
+ debridgeApp?: number | undefined;
6270
+ additionalTakerRewardBps?: number | undefined;
6271
+ }>;
6272
+ export declare const KafkaBundleUpdateSchema: z.ZodDiscriminatedUnion<"updateType", [z.ZodObject<{
6273
+ updateType: z.ZodLiteral<"intent_execution">;
6274
+ bundleId: z.ZodString;
6275
+ tradeBatchId: z.ZodString;
6276
+ tradeId: z.ZodString;
6277
+ bundleTradeId: z.ZodString;
6278
+ intentId: z.ZodString;
6279
+ orderId: z.ZodOptional<z.ZodString>;
6280
+ transactionHash: z.ZodString;
6281
+ chainId: z.ZodNumber;
6282
+ executedAt: z.ZodOptional<z.ZodString>;
6283
+ }, "strip", z.ZodTypeAny, {
6284
+ chainId: number;
6285
+ intentId: string;
6286
+ bundleTradeId: string;
6287
+ bundleId: string;
6288
+ transactionHash: string;
6289
+ updateType: "intent_execution";
6290
+ tradeBatchId: string;
6291
+ tradeId: string;
6292
+ orderId?: string | undefined;
6293
+ executedAt?: string | undefined;
6294
+ }, {
6295
+ chainId: number;
6296
+ intentId: string;
6297
+ bundleTradeId: string;
6298
+ bundleId: string;
6299
+ transactionHash: string;
6300
+ updateType: "intent_execution";
6301
+ tradeBatchId: string;
6302
+ tradeId: string;
6303
+ orderId?: string | undefined;
6304
+ executedAt?: string | undefined;
6305
+ }>, z.ZodObject<{
6306
+ updateType: z.ZodLiteral<"bundle_status">;
6307
+ bundleId: z.ZodString;
6308
+ status: z.ZodNativeEnum<typeof BundleStatus>;
6309
+ previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof BundleStatus>>;
6310
+ updatedAt: z.ZodString;
6311
+ }, "strip", z.ZodTypeAny, {
6312
+ status: BundleStatus;
6313
+ bundleId: string;
6314
+ updatedAt: string;
6315
+ updateType: "bundle_status";
6316
+ previousStatus?: BundleStatus | undefined;
6317
+ }, {
6318
+ status: BundleStatus;
6319
+ bundleId: string;
6320
+ updatedAt: string;
6321
+ updateType: "bundle_status";
6322
+ previousStatus?: BundleStatus | undefined;
6323
+ }>, z.ZodObject<{
6324
+ updateType: z.ZodLiteral<"bundle_trade_status">;
6325
+ bundleId: z.ZodString;
6326
+ bundleTradeId: z.ZodString;
6327
+ tradeId: z.ZodString;
6328
+ status: z.ZodNativeEnum<typeof BundleTradeStatus>;
6329
+ previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof BundleTradeStatus>>;
6330
+ updatedAt: z.ZodString;
6331
+ }, "strip", z.ZodTypeAny, {
6332
+ status: BundleTradeStatus;
6333
+ bundleTradeId: string;
6334
+ bundleId: string;
6335
+ updatedAt: string;
6336
+ updateType: "bundle_trade_status";
6337
+ tradeId: string;
6338
+ previousStatus?: BundleTradeStatus | undefined;
6339
+ }, {
6340
+ status: BundleTradeStatus;
6341
+ bundleTradeId: string;
6342
+ bundleId: string;
6343
+ updatedAt: string;
6344
+ updateType: "bundle_trade_status";
6345
+ tradeId: string;
6346
+ previousStatus?: BundleTradeStatus | undefined;
6347
+ }>, z.ZodObject<{
6348
+ updateType: z.ZodLiteral<"trade_batch_status">;
6349
+ bundleId: z.ZodString;
6350
+ tradeBatchId: z.ZodString;
6351
+ status: z.ZodNativeEnum<typeof TradeBatchStatus>;
6352
+ previousStatus: z.ZodOptional<z.ZodNativeEnum<typeof TradeBatchStatus>>;
6353
+ updatedAt: z.ZodString;
6354
+ }, "strip", z.ZodTypeAny, {
6355
+ status: TradeBatchStatus;
6356
+ bundleId: string;
6357
+ updatedAt: string;
6358
+ updateType: "trade_batch_status";
6359
+ tradeBatchId: string;
6360
+ previousStatus?: TradeBatchStatus | undefined;
6361
+ }, {
6362
+ status: TradeBatchStatus;
6363
+ bundleId: string;
6364
+ updatedAt: string;
6365
+ updateType: "trade_batch_status";
6366
+ tradeBatchId: string;
6367
+ previousStatus?: TradeBatchStatus | undefined;
6368
+ }>, z.ZodObject<{
6369
+ updateType: z.ZodLiteral<"expiration">;
6370
+ bundleId: z.ZodString;
6371
+ tradeBatchIds: z.ZodArray<z.ZodString, "many">;
6372
+ bundleTradeIds: z.ZodArray<z.ZodString, "many">;
6373
+ intentIds: z.ZodArray<z.ZodString, "many">;
6374
+ expiredAt: z.ZodString;
6375
+ }, "strip", z.ZodTypeAny, {
6376
+ bundleId: string;
6377
+ updateType: "expiration";
6378
+ tradeBatchIds: string[];
6379
+ bundleTradeIds: string[];
6380
+ intentIds: string[];
6381
+ expiredAt: string;
6382
+ }, {
6383
+ bundleId: string;
6384
+ updateType: "expiration";
6385
+ tradeBatchIds: string[];
6386
+ bundleTradeIds: string[];
6387
+ intentIds: string[];
6388
+ expiredAt: string;
6389
+ }>, z.ZodObject<{
6390
+ updateType: z.ZodLiteral<"cancellation">;
6391
+ bundleId: z.ZodString;
6392
+ cancelledAt: z.ZodString;
6393
+ }, "strip", z.ZodTypeAny, {
6394
+ bundleId: string;
6395
+ updateType: "cancellation";
6396
+ cancelledAt: string;
6397
+ }, {
6398
+ bundleId: string;
6399
+ updateType: "cancellation";
6400
+ cancelledAt: string;
6401
+ }>]>;
6402
+ export type ValidatedKafkaBundleUpdate = z.infer<typeof KafkaBundleUpdateSchema>;
5022
6403
  //# sourceMappingURL=kafka.d.ts.map