@chainflip/sdk 0.2.15 → 0.2.17

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.
package/dist/swap.d.ts CHANGED
@@ -3,6 +3,817 @@ import { A as Asset, C as Chain, c as chainAssets, a as ChainflipNetwork, T as T
3
3
  export { d as Assets, e as ChainflipNetworks, b as Chains, f as assetChains, h as assetContractIds, g as assetDecimals, i as chainContractIds } from './contracts-fee99026.js';
4
4
  import { z } from 'zod';
5
5
 
6
+ declare const ccmMetadataSchema: z.ZodObject<{
7
+ gasBudget: z.ZodString;
8
+ message: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ message: `0x${string}`;
11
+ gasBudget: string;
12
+ }, {
13
+ message: `0x${string}`;
14
+ gasBudget: string;
15
+ }>;
16
+ type CcmMetadata = z.infer<typeof ccmMetadataSchema>;
17
+ declare const swapResponseSchema: z.ZodUnion<[z.ZodObject<{
18
+ srcChain: z.ZodNativeEnum<{
19
+ Bitcoin: "Bitcoin";
20
+ Ethereum: "Ethereum";
21
+ Polkadot: "Polkadot";
22
+ }>;
23
+ srcAsset: z.ZodNativeEnum<{
24
+ FLIP: "FLIP";
25
+ USDC: "USDC";
26
+ DOT: "DOT";
27
+ ETH: "ETH";
28
+ BTC: "BTC";
29
+ }>;
30
+ destAsset: z.ZodNativeEnum<{
31
+ FLIP: "FLIP";
32
+ USDC: "USDC";
33
+ DOT: "DOT";
34
+ ETH: "ETH";
35
+ BTC: "BTC";
36
+ }>;
37
+ destChain: z.ZodNativeEnum<{
38
+ Bitcoin: "Bitcoin";
39
+ Ethereum: "Ethereum";
40
+ Polkadot: "Polkadot";
41
+ }>;
42
+ destAddress: z.ZodOptional<z.ZodString>;
43
+ ccmMetadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
44
+ gasBudget: z.ZodString;
45
+ message: z.ZodNullable<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ message: string | null;
48
+ gasBudget: string;
49
+ }, {
50
+ message: string | null;
51
+ gasBudget: string;
52
+ }>>>;
53
+ expectedDepositAmount: z.ZodOptional<z.ZodString>;
54
+ depositAddress: z.ZodOptional<z.ZodString>;
55
+ depositChannelCreatedAt: z.ZodOptional<z.ZodNumber>;
56
+ depositChannelExpiryBlock: z.ZodNullable<z.ZodOptional<z.ZodBigInt>>;
57
+ estimatedDepositChannelExpiryTime: z.ZodOptional<z.ZodNumber>;
58
+ isDepositChannelExpired: z.ZodBoolean;
59
+ ccmDepositReceivedBlockIndex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
60
+ state: z.ZodEffects<z.ZodEnum<["AWAITING_DEPOSIT", "DEPOSIT_RECEIVED", "SWAP_EXECUTED", "EGRESS_SCHEDULED", "BROADCAST_REQUESTED", "BROADCAST_ABORTED", "COMPLETE"]>, "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE", "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE">;
61
+ depositAmount: z.ZodOptional<z.ZodString>;
62
+ depositTransactionHash: z.ZodOptional<z.ZodString>;
63
+ depositTransactionConfirmations: z.ZodOptional<z.ZodNumber>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
66
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
67
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
68
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
69
+ isDepositChannelExpired: boolean;
70
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
71
+ destAddress?: string | undefined;
72
+ ccmMetadata?: {
73
+ message: string | null;
74
+ gasBudget: string;
75
+ } | null | undefined;
76
+ expectedDepositAmount?: string | undefined;
77
+ depositAddress?: string | undefined;
78
+ depositChannelCreatedAt?: number | undefined;
79
+ depositChannelExpiryBlock?: bigint | null | undefined;
80
+ estimatedDepositChannelExpiryTime?: number | undefined;
81
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
82
+ depositAmount?: string | undefined;
83
+ depositTransactionHash?: string | undefined;
84
+ depositTransactionConfirmations?: number | undefined;
85
+ }, {
86
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
87
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
88
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
89
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
90
+ isDepositChannelExpired: boolean;
91
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
92
+ destAddress?: string | undefined;
93
+ ccmMetadata?: {
94
+ message: string | null;
95
+ gasBudget: string;
96
+ } | null | undefined;
97
+ expectedDepositAmount?: string | undefined;
98
+ depositAddress?: string | undefined;
99
+ depositChannelCreatedAt?: number | undefined;
100
+ depositChannelExpiryBlock?: bigint | null | undefined;
101
+ estimatedDepositChannelExpiryTime?: number | undefined;
102
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
103
+ depositAmount?: string | undefined;
104
+ depositTransactionHash?: string | undefined;
105
+ depositTransactionConfirmations?: number | undefined;
106
+ }>, z.ZodObject<{
107
+ srcChain: z.ZodNativeEnum<{
108
+ Bitcoin: "Bitcoin";
109
+ Ethereum: "Ethereum";
110
+ Polkadot: "Polkadot";
111
+ }>;
112
+ srcAsset: z.ZodNativeEnum<{
113
+ FLIP: "FLIP";
114
+ USDC: "USDC";
115
+ DOT: "DOT";
116
+ ETH: "ETH";
117
+ BTC: "BTC";
118
+ }>;
119
+ destAsset: z.ZodNativeEnum<{
120
+ FLIP: "FLIP";
121
+ USDC: "USDC";
122
+ DOT: "DOT";
123
+ ETH: "ETH";
124
+ BTC: "BTC";
125
+ }>;
126
+ destChain: z.ZodNativeEnum<{
127
+ Bitcoin: "Bitcoin";
128
+ Ethereum: "Ethereum";
129
+ Polkadot: "Polkadot";
130
+ }>;
131
+ destAddress: z.ZodOptional<z.ZodString>;
132
+ ccmMetadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
133
+ gasBudget: z.ZodString;
134
+ message: z.ZodNullable<z.ZodString>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ message: string | null;
137
+ gasBudget: string;
138
+ }, {
139
+ message: string | null;
140
+ gasBudget: string;
141
+ }>>>;
142
+ expectedDepositAmount: z.ZodOptional<z.ZodString>;
143
+ depositAddress: z.ZodOptional<z.ZodString>;
144
+ depositChannelCreatedAt: z.ZodOptional<z.ZodNumber>;
145
+ depositChannelExpiryBlock: z.ZodNullable<z.ZodOptional<z.ZodBigInt>>;
146
+ estimatedDepositChannelExpiryTime: z.ZodOptional<z.ZodNumber>;
147
+ isDepositChannelExpired: z.ZodBoolean;
148
+ ccmDepositReceivedBlockIndex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
149
+ depositTransactionHash: z.ZodOptional<z.ZodString>;
150
+ depositTransactionConfirmations: z.ZodOptional<z.ZodNumber>;
151
+ state: z.ZodEffects<z.ZodEnum<["AWAITING_DEPOSIT", "DEPOSIT_RECEIVED", "SWAP_EXECUTED", "EGRESS_SCHEDULED", "BROADCAST_REQUESTED", "BROADCAST_ABORTED", "COMPLETE"]>, "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE", "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE">;
152
+ swapId: z.ZodString;
153
+ depositAmount: z.ZodString;
154
+ depositReceivedAt: z.ZodNumber;
155
+ depositReceivedBlockIndex: z.ZodString;
156
+ }, "strip", z.ZodTypeAny, {
157
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
158
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
159
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
160
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
161
+ isDepositChannelExpired: boolean;
162
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
163
+ depositAmount: string;
164
+ swapId: string;
165
+ depositReceivedAt: number;
166
+ depositReceivedBlockIndex: string;
167
+ destAddress?: string | undefined;
168
+ ccmMetadata?: {
169
+ message: string | null;
170
+ gasBudget: string;
171
+ } | null | undefined;
172
+ expectedDepositAmount?: string | undefined;
173
+ depositAddress?: string | undefined;
174
+ depositChannelCreatedAt?: number | undefined;
175
+ depositChannelExpiryBlock?: bigint | null | undefined;
176
+ estimatedDepositChannelExpiryTime?: number | undefined;
177
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
178
+ depositTransactionHash?: string | undefined;
179
+ depositTransactionConfirmations?: number | undefined;
180
+ }, {
181
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
182
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
183
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
184
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
185
+ isDepositChannelExpired: boolean;
186
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
187
+ depositAmount: string;
188
+ swapId: string;
189
+ depositReceivedAt: number;
190
+ depositReceivedBlockIndex: string;
191
+ destAddress?: string | undefined;
192
+ ccmMetadata?: {
193
+ message: string | null;
194
+ gasBudget: string;
195
+ } | null | undefined;
196
+ expectedDepositAmount?: string | undefined;
197
+ depositAddress?: string | undefined;
198
+ depositChannelCreatedAt?: number | undefined;
199
+ depositChannelExpiryBlock?: bigint | null | undefined;
200
+ estimatedDepositChannelExpiryTime?: number | undefined;
201
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
202
+ depositTransactionHash?: string | undefined;
203
+ depositTransactionConfirmations?: number | undefined;
204
+ }>, z.ZodObject<{
205
+ srcChain: z.ZodNativeEnum<{
206
+ Bitcoin: "Bitcoin";
207
+ Ethereum: "Ethereum";
208
+ Polkadot: "Polkadot";
209
+ }>;
210
+ srcAsset: z.ZodNativeEnum<{
211
+ FLIP: "FLIP";
212
+ USDC: "USDC";
213
+ DOT: "DOT";
214
+ ETH: "ETH";
215
+ BTC: "BTC";
216
+ }>;
217
+ destAsset: z.ZodNativeEnum<{
218
+ FLIP: "FLIP";
219
+ USDC: "USDC";
220
+ DOT: "DOT";
221
+ ETH: "ETH";
222
+ BTC: "BTC";
223
+ }>;
224
+ destChain: z.ZodNativeEnum<{
225
+ Bitcoin: "Bitcoin";
226
+ Ethereum: "Ethereum";
227
+ Polkadot: "Polkadot";
228
+ }>;
229
+ destAddress: z.ZodOptional<z.ZodString>;
230
+ ccmMetadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
231
+ gasBudget: z.ZodString;
232
+ message: z.ZodNullable<z.ZodString>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ message: string | null;
235
+ gasBudget: string;
236
+ }, {
237
+ message: string | null;
238
+ gasBudget: string;
239
+ }>>>;
240
+ expectedDepositAmount: z.ZodOptional<z.ZodString>;
241
+ depositAddress: z.ZodOptional<z.ZodString>;
242
+ depositChannelCreatedAt: z.ZodOptional<z.ZodNumber>;
243
+ depositChannelExpiryBlock: z.ZodNullable<z.ZodOptional<z.ZodBigInt>>;
244
+ estimatedDepositChannelExpiryTime: z.ZodOptional<z.ZodNumber>;
245
+ isDepositChannelExpired: z.ZodBoolean;
246
+ ccmDepositReceivedBlockIndex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
247
+ depositAmount: z.ZodString;
248
+ depositTransactionHash: z.ZodOptional<z.ZodString>;
249
+ depositTransactionConfirmations: z.ZodOptional<z.ZodNumber>;
250
+ swapId: z.ZodString;
251
+ depositReceivedAt: z.ZodNumber;
252
+ depositReceivedBlockIndex: z.ZodString;
253
+ state: z.ZodEffects<z.ZodEnum<["AWAITING_DEPOSIT", "DEPOSIT_RECEIVED", "SWAP_EXECUTED", "EGRESS_SCHEDULED", "BROADCAST_REQUESTED", "BROADCAST_ABORTED", "COMPLETE"]>, "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE", "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE">;
254
+ intermediateAmount: z.ZodOptional<z.ZodString>;
255
+ swapExecutedAt: z.ZodNumber;
256
+ swapExecutedBlockIndex: z.ZodString;
257
+ }, "strip", z.ZodTypeAny, {
258
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
259
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
260
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
261
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
262
+ isDepositChannelExpired: boolean;
263
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
264
+ depositAmount: string;
265
+ swapId: string;
266
+ depositReceivedAt: number;
267
+ depositReceivedBlockIndex: string;
268
+ swapExecutedAt: number;
269
+ swapExecutedBlockIndex: string;
270
+ destAddress?: string | undefined;
271
+ ccmMetadata?: {
272
+ message: string | null;
273
+ gasBudget: string;
274
+ } | null | undefined;
275
+ expectedDepositAmount?: string | undefined;
276
+ depositAddress?: string | undefined;
277
+ depositChannelCreatedAt?: number | undefined;
278
+ depositChannelExpiryBlock?: bigint | null | undefined;
279
+ estimatedDepositChannelExpiryTime?: number | undefined;
280
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
281
+ depositTransactionHash?: string | undefined;
282
+ depositTransactionConfirmations?: number | undefined;
283
+ intermediateAmount?: string | undefined;
284
+ }, {
285
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
286
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
287
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
288
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
289
+ isDepositChannelExpired: boolean;
290
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
291
+ depositAmount: string;
292
+ swapId: string;
293
+ depositReceivedAt: number;
294
+ depositReceivedBlockIndex: string;
295
+ swapExecutedAt: number;
296
+ swapExecutedBlockIndex: string;
297
+ destAddress?: string | undefined;
298
+ ccmMetadata?: {
299
+ message: string | null;
300
+ gasBudget: string;
301
+ } | null | undefined;
302
+ expectedDepositAmount?: string | undefined;
303
+ depositAddress?: string | undefined;
304
+ depositChannelCreatedAt?: number | undefined;
305
+ depositChannelExpiryBlock?: bigint | null | undefined;
306
+ estimatedDepositChannelExpiryTime?: number | undefined;
307
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
308
+ depositTransactionHash?: string | undefined;
309
+ depositTransactionConfirmations?: number | undefined;
310
+ intermediateAmount?: string | undefined;
311
+ }>, z.ZodObject<{
312
+ srcChain: z.ZodNativeEnum<{
313
+ Bitcoin: "Bitcoin";
314
+ Ethereum: "Ethereum";
315
+ Polkadot: "Polkadot";
316
+ }>;
317
+ srcAsset: z.ZodNativeEnum<{
318
+ FLIP: "FLIP";
319
+ USDC: "USDC";
320
+ DOT: "DOT";
321
+ ETH: "ETH";
322
+ BTC: "BTC";
323
+ }>;
324
+ destAsset: z.ZodNativeEnum<{
325
+ FLIP: "FLIP";
326
+ USDC: "USDC";
327
+ DOT: "DOT";
328
+ ETH: "ETH";
329
+ BTC: "BTC";
330
+ }>;
331
+ destChain: z.ZodNativeEnum<{
332
+ Bitcoin: "Bitcoin";
333
+ Ethereum: "Ethereum";
334
+ Polkadot: "Polkadot";
335
+ }>;
336
+ destAddress: z.ZodOptional<z.ZodString>;
337
+ ccmMetadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
338
+ gasBudget: z.ZodString;
339
+ message: z.ZodNullable<z.ZodString>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ message: string | null;
342
+ gasBudget: string;
343
+ }, {
344
+ message: string | null;
345
+ gasBudget: string;
346
+ }>>>;
347
+ expectedDepositAmount: z.ZodOptional<z.ZodString>;
348
+ depositAddress: z.ZodOptional<z.ZodString>;
349
+ depositChannelCreatedAt: z.ZodOptional<z.ZodNumber>;
350
+ depositChannelExpiryBlock: z.ZodNullable<z.ZodOptional<z.ZodBigInt>>;
351
+ estimatedDepositChannelExpiryTime: z.ZodOptional<z.ZodNumber>;
352
+ isDepositChannelExpired: z.ZodBoolean;
353
+ ccmDepositReceivedBlockIndex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
354
+ depositAmount: z.ZodString;
355
+ depositTransactionHash: z.ZodOptional<z.ZodString>;
356
+ depositTransactionConfirmations: z.ZodOptional<z.ZodNumber>;
357
+ swapId: z.ZodString;
358
+ depositReceivedAt: z.ZodNumber;
359
+ depositReceivedBlockIndex: z.ZodString;
360
+ intermediateAmount: z.ZodOptional<z.ZodString>;
361
+ swapExecutedAt: z.ZodNumber;
362
+ swapExecutedBlockIndex: z.ZodString;
363
+ state: z.ZodEffects<z.ZodEnum<["AWAITING_DEPOSIT", "DEPOSIT_RECEIVED", "SWAP_EXECUTED", "EGRESS_SCHEDULED", "BROADCAST_REQUESTED", "BROADCAST_ABORTED", "COMPLETE"]>, "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE", "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE">;
364
+ egressAmount: z.ZodString;
365
+ egressScheduledAt: z.ZodNumber;
366
+ egressScheduledBlockIndex: z.ZodString;
367
+ }, "strip", z.ZodTypeAny, {
368
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
369
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
370
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
371
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
372
+ isDepositChannelExpired: boolean;
373
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
374
+ depositAmount: string;
375
+ swapId: string;
376
+ depositReceivedAt: number;
377
+ depositReceivedBlockIndex: string;
378
+ swapExecutedAt: number;
379
+ swapExecutedBlockIndex: string;
380
+ egressAmount: string;
381
+ egressScheduledAt: number;
382
+ egressScheduledBlockIndex: string;
383
+ destAddress?: string | undefined;
384
+ ccmMetadata?: {
385
+ message: string | null;
386
+ gasBudget: string;
387
+ } | null | undefined;
388
+ expectedDepositAmount?: string | undefined;
389
+ depositAddress?: string | undefined;
390
+ depositChannelCreatedAt?: number | undefined;
391
+ depositChannelExpiryBlock?: bigint | null | undefined;
392
+ estimatedDepositChannelExpiryTime?: number | undefined;
393
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
394
+ depositTransactionHash?: string | undefined;
395
+ depositTransactionConfirmations?: number | undefined;
396
+ intermediateAmount?: string | undefined;
397
+ }, {
398
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
399
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
400
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
401
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
402
+ isDepositChannelExpired: boolean;
403
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
404
+ depositAmount: string;
405
+ swapId: string;
406
+ depositReceivedAt: number;
407
+ depositReceivedBlockIndex: string;
408
+ swapExecutedAt: number;
409
+ swapExecutedBlockIndex: string;
410
+ egressAmount: string;
411
+ egressScheduledAt: number;
412
+ egressScheduledBlockIndex: string;
413
+ destAddress?: string | undefined;
414
+ ccmMetadata?: {
415
+ message: string | null;
416
+ gasBudget: string;
417
+ } | null | undefined;
418
+ expectedDepositAmount?: string | undefined;
419
+ depositAddress?: string | undefined;
420
+ depositChannelCreatedAt?: number | undefined;
421
+ depositChannelExpiryBlock?: bigint | null | undefined;
422
+ estimatedDepositChannelExpiryTime?: number | undefined;
423
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
424
+ depositTransactionHash?: string | undefined;
425
+ depositTransactionConfirmations?: number | undefined;
426
+ intermediateAmount?: string | undefined;
427
+ }>, z.ZodObject<{
428
+ srcChain: z.ZodNativeEnum<{
429
+ Bitcoin: "Bitcoin";
430
+ Ethereum: "Ethereum";
431
+ Polkadot: "Polkadot";
432
+ }>;
433
+ srcAsset: z.ZodNativeEnum<{
434
+ FLIP: "FLIP";
435
+ USDC: "USDC";
436
+ DOT: "DOT";
437
+ ETH: "ETH";
438
+ BTC: "BTC";
439
+ }>;
440
+ destAsset: z.ZodNativeEnum<{
441
+ FLIP: "FLIP";
442
+ USDC: "USDC";
443
+ DOT: "DOT";
444
+ ETH: "ETH";
445
+ BTC: "BTC";
446
+ }>;
447
+ destChain: z.ZodNativeEnum<{
448
+ Bitcoin: "Bitcoin";
449
+ Ethereum: "Ethereum";
450
+ Polkadot: "Polkadot";
451
+ }>;
452
+ destAddress: z.ZodOptional<z.ZodString>;
453
+ ccmMetadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
454
+ gasBudget: z.ZodString;
455
+ message: z.ZodNullable<z.ZodString>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ message: string | null;
458
+ gasBudget: string;
459
+ }, {
460
+ message: string | null;
461
+ gasBudget: string;
462
+ }>>>;
463
+ expectedDepositAmount: z.ZodOptional<z.ZodString>;
464
+ depositAddress: z.ZodOptional<z.ZodString>;
465
+ depositChannelCreatedAt: z.ZodOptional<z.ZodNumber>;
466
+ depositChannelExpiryBlock: z.ZodNullable<z.ZodOptional<z.ZodBigInt>>;
467
+ estimatedDepositChannelExpiryTime: z.ZodOptional<z.ZodNumber>;
468
+ isDepositChannelExpired: z.ZodBoolean;
469
+ ccmDepositReceivedBlockIndex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
470
+ depositAmount: z.ZodString;
471
+ depositTransactionHash: z.ZodOptional<z.ZodString>;
472
+ depositTransactionConfirmations: z.ZodOptional<z.ZodNumber>;
473
+ swapId: z.ZodString;
474
+ depositReceivedAt: z.ZodNumber;
475
+ depositReceivedBlockIndex: z.ZodString;
476
+ intermediateAmount: z.ZodOptional<z.ZodString>;
477
+ swapExecutedAt: z.ZodNumber;
478
+ swapExecutedBlockIndex: z.ZodString;
479
+ egressAmount: z.ZodString;
480
+ egressScheduledAt: z.ZodNumber;
481
+ egressScheduledBlockIndex: z.ZodString;
482
+ state: z.ZodEffects<z.ZodEnum<["AWAITING_DEPOSIT", "DEPOSIT_RECEIVED", "SWAP_EXECUTED", "EGRESS_SCHEDULED", "BROADCAST_REQUESTED", "BROADCAST_ABORTED", "COMPLETE"]>, "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE", "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE">;
483
+ broadcastRequestedAt: z.ZodNumber;
484
+ broadcastRequestedBlockIndex: z.ZodString;
485
+ }, "strip", z.ZodTypeAny, {
486
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
487
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
488
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
489
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
490
+ isDepositChannelExpired: boolean;
491
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
492
+ depositAmount: string;
493
+ swapId: string;
494
+ depositReceivedAt: number;
495
+ depositReceivedBlockIndex: string;
496
+ swapExecutedAt: number;
497
+ swapExecutedBlockIndex: string;
498
+ egressAmount: string;
499
+ egressScheduledAt: number;
500
+ egressScheduledBlockIndex: string;
501
+ broadcastRequestedAt: number;
502
+ broadcastRequestedBlockIndex: string;
503
+ destAddress?: string | undefined;
504
+ ccmMetadata?: {
505
+ message: string | null;
506
+ gasBudget: string;
507
+ } | null | undefined;
508
+ expectedDepositAmount?: string | undefined;
509
+ depositAddress?: string | undefined;
510
+ depositChannelCreatedAt?: number | undefined;
511
+ depositChannelExpiryBlock?: bigint | null | undefined;
512
+ estimatedDepositChannelExpiryTime?: number | undefined;
513
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
514
+ depositTransactionHash?: string | undefined;
515
+ depositTransactionConfirmations?: number | undefined;
516
+ intermediateAmount?: string | undefined;
517
+ }, {
518
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
519
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
520
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
521
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
522
+ isDepositChannelExpired: boolean;
523
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
524
+ depositAmount: string;
525
+ swapId: string;
526
+ depositReceivedAt: number;
527
+ depositReceivedBlockIndex: string;
528
+ swapExecutedAt: number;
529
+ swapExecutedBlockIndex: string;
530
+ egressAmount: string;
531
+ egressScheduledAt: number;
532
+ egressScheduledBlockIndex: string;
533
+ broadcastRequestedAt: number;
534
+ broadcastRequestedBlockIndex: string;
535
+ destAddress?: string | undefined;
536
+ ccmMetadata?: {
537
+ message: string | null;
538
+ gasBudget: string;
539
+ } | null | undefined;
540
+ expectedDepositAmount?: string | undefined;
541
+ depositAddress?: string | undefined;
542
+ depositChannelCreatedAt?: number | undefined;
543
+ depositChannelExpiryBlock?: bigint | null | undefined;
544
+ estimatedDepositChannelExpiryTime?: number | undefined;
545
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
546
+ depositTransactionHash?: string | undefined;
547
+ depositTransactionConfirmations?: number | undefined;
548
+ intermediateAmount?: string | undefined;
549
+ }>, z.ZodObject<{
550
+ srcChain: z.ZodNativeEnum<{
551
+ Bitcoin: "Bitcoin";
552
+ Ethereum: "Ethereum";
553
+ Polkadot: "Polkadot";
554
+ }>;
555
+ srcAsset: z.ZodNativeEnum<{
556
+ FLIP: "FLIP";
557
+ USDC: "USDC";
558
+ DOT: "DOT";
559
+ ETH: "ETH";
560
+ BTC: "BTC";
561
+ }>;
562
+ destAsset: z.ZodNativeEnum<{
563
+ FLIP: "FLIP";
564
+ USDC: "USDC";
565
+ DOT: "DOT";
566
+ ETH: "ETH";
567
+ BTC: "BTC";
568
+ }>;
569
+ destChain: z.ZodNativeEnum<{
570
+ Bitcoin: "Bitcoin";
571
+ Ethereum: "Ethereum";
572
+ Polkadot: "Polkadot";
573
+ }>;
574
+ destAddress: z.ZodOptional<z.ZodString>;
575
+ ccmMetadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
576
+ gasBudget: z.ZodString;
577
+ message: z.ZodNullable<z.ZodString>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ message: string | null;
580
+ gasBudget: string;
581
+ }, {
582
+ message: string | null;
583
+ gasBudget: string;
584
+ }>>>;
585
+ expectedDepositAmount: z.ZodOptional<z.ZodString>;
586
+ depositAddress: z.ZodOptional<z.ZodString>;
587
+ depositChannelCreatedAt: z.ZodOptional<z.ZodNumber>;
588
+ depositChannelExpiryBlock: z.ZodNullable<z.ZodOptional<z.ZodBigInt>>;
589
+ estimatedDepositChannelExpiryTime: z.ZodOptional<z.ZodNumber>;
590
+ isDepositChannelExpired: z.ZodBoolean;
591
+ ccmDepositReceivedBlockIndex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
592
+ depositAmount: z.ZodString;
593
+ depositTransactionHash: z.ZodOptional<z.ZodString>;
594
+ depositTransactionConfirmations: z.ZodOptional<z.ZodNumber>;
595
+ swapId: z.ZodString;
596
+ depositReceivedAt: z.ZodNumber;
597
+ depositReceivedBlockIndex: z.ZodString;
598
+ intermediateAmount: z.ZodOptional<z.ZodString>;
599
+ swapExecutedAt: z.ZodNumber;
600
+ swapExecutedBlockIndex: z.ZodString;
601
+ egressAmount: z.ZodString;
602
+ egressScheduledAt: z.ZodNumber;
603
+ egressScheduledBlockIndex: z.ZodString;
604
+ broadcastRequestedAt: z.ZodNumber;
605
+ broadcastRequestedBlockIndex: z.ZodString;
606
+ state: z.ZodEffects<z.ZodEnum<["AWAITING_DEPOSIT", "DEPOSIT_RECEIVED", "SWAP_EXECUTED", "EGRESS_SCHEDULED", "BROADCAST_REQUESTED", "BROADCAST_ABORTED", "COMPLETE"]>, "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE", "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE">;
607
+ broadcastAbortedAt: z.ZodNumber;
608
+ broadcastAbortedBlockIndex: z.ZodString;
609
+ }, "strip", z.ZodTypeAny, {
610
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
611
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
612
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
613
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
614
+ isDepositChannelExpired: boolean;
615
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
616
+ depositAmount: string;
617
+ swapId: string;
618
+ depositReceivedAt: number;
619
+ depositReceivedBlockIndex: string;
620
+ swapExecutedAt: number;
621
+ swapExecutedBlockIndex: string;
622
+ egressAmount: string;
623
+ egressScheduledAt: number;
624
+ egressScheduledBlockIndex: string;
625
+ broadcastRequestedAt: number;
626
+ broadcastRequestedBlockIndex: string;
627
+ broadcastAbortedAt: number;
628
+ broadcastAbortedBlockIndex: string;
629
+ destAddress?: string | undefined;
630
+ ccmMetadata?: {
631
+ message: string | null;
632
+ gasBudget: string;
633
+ } | null | undefined;
634
+ expectedDepositAmount?: string | undefined;
635
+ depositAddress?: string | undefined;
636
+ depositChannelCreatedAt?: number | undefined;
637
+ depositChannelExpiryBlock?: bigint | null | undefined;
638
+ estimatedDepositChannelExpiryTime?: number | undefined;
639
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
640
+ depositTransactionHash?: string | undefined;
641
+ depositTransactionConfirmations?: number | undefined;
642
+ intermediateAmount?: string | undefined;
643
+ }, {
644
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
645
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
646
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
647
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
648
+ isDepositChannelExpired: boolean;
649
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
650
+ depositAmount: string;
651
+ swapId: string;
652
+ depositReceivedAt: number;
653
+ depositReceivedBlockIndex: string;
654
+ swapExecutedAt: number;
655
+ swapExecutedBlockIndex: string;
656
+ egressAmount: string;
657
+ egressScheduledAt: number;
658
+ egressScheduledBlockIndex: string;
659
+ broadcastRequestedAt: number;
660
+ broadcastRequestedBlockIndex: string;
661
+ broadcastAbortedAt: number;
662
+ broadcastAbortedBlockIndex: string;
663
+ destAddress?: string | undefined;
664
+ ccmMetadata?: {
665
+ message: string | null;
666
+ gasBudget: string;
667
+ } | null | undefined;
668
+ expectedDepositAmount?: string | undefined;
669
+ depositAddress?: string | undefined;
670
+ depositChannelCreatedAt?: number | undefined;
671
+ depositChannelExpiryBlock?: bigint | null | undefined;
672
+ estimatedDepositChannelExpiryTime?: number | undefined;
673
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
674
+ depositTransactionHash?: string | undefined;
675
+ depositTransactionConfirmations?: number | undefined;
676
+ intermediateAmount?: string | undefined;
677
+ }>, z.ZodObject<{
678
+ srcChain: z.ZodNativeEnum<{
679
+ Bitcoin: "Bitcoin";
680
+ Ethereum: "Ethereum";
681
+ Polkadot: "Polkadot";
682
+ }>;
683
+ srcAsset: z.ZodNativeEnum<{
684
+ FLIP: "FLIP";
685
+ USDC: "USDC";
686
+ DOT: "DOT";
687
+ ETH: "ETH";
688
+ BTC: "BTC";
689
+ }>;
690
+ destAsset: z.ZodNativeEnum<{
691
+ FLIP: "FLIP";
692
+ USDC: "USDC";
693
+ DOT: "DOT";
694
+ ETH: "ETH";
695
+ BTC: "BTC";
696
+ }>;
697
+ destChain: z.ZodNativeEnum<{
698
+ Bitcoin: "Bitcoin";
699
+ Ethereum: "Ethereum";
700
+ Polkadot: "Polkadot";
701
+ }>;
702
+ destAddress: z.ZodOptional<z.ZodString>;
703
+ ccmMetadata: z.ZodNullable<z.ZodOptional<z.ZodObject<{
704
+ gasBudget: z.ZodString;
705
+ message: z.ZodNullable<z.ZodString>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ message: string | null;
708
+ gasBudget: string;
709
+ }, {
710
+ message: string | null;
711
+ gasBudget: string;
712
+ }>>>;
713
+ expectedDepositAmount: z.ZodOptional<z.ZodString>;
714
+ depositAddress: z.ZodOptional<z.ZodString>;
715
+ depositChannelCreatedAt: z.ZodOptional<z.ZodNumber>;
716
+ depositChannelExpiryBlock: z.ZodNullable<z.ZodOptional<z.ZodBigInt>>;
717
+ estimatedDepositChannelExpiryTime: z.ZodOptional<z.ZodNumber>;
718
+ isDepositChannelExpired: z.ZodBoolean;
719
+ ccmDepositReceivedBlockIndex: z.ZodNullable<z.ZodOptional<z.ZodString>>;
720
+ depositAmount: z.ZodString;
721
+ depositTransactionHash: z.ZodOptional<z.ZodString>;
722
+ depositTransactionConfirmations: z.ZodOptional<z.ZodNumber>;
723
+ swapId: z.ZodString;
724
+ depositReceivedAt: z.ZodNumber;
725
+ depositReceivedBlockIndex: z.ZodString;
726
+ intermediateAmount: z.ZodOptional<z.ZodString>;
727
+ swapExecutedAt: z.ZodNumber;
728
+ egressAmount: z.ZodString;
729
+ egressScheduledAt: z.ZodNumber;
730
+ egressScheduledBlockIndex: z.ZodString;
731
+ broadcastRequestedAt: z.ZodNumber;
732
+ broadcastRequestedBlockIndex: z.ZodString;
733
+ state: z.ZodEffects<z.ZodEnum<["AWAITING_DEPOSIT", "DEPOSIT_RECEIVED", "SWAP_EXECUTED", "EGRESS_SCHEDULED", "BROADCAST_REQUESTED", "BROADCAST_ABORTED", "COMPLETE"]>, "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE", "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE">;
734
+ swapExecutedBlockIndex: z.ZodString;
735
+ broadcastSucceededAt: z.ZodNumber;
736
+ broadcastSucceededBlockIndex: z.ZodString;
737
+ }, "strip", z.ZodTypeAny, {
738
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
739
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
740
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
741
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
742
+ isDepositChannelExpired: boolean;
743
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
744
+ depositAmount: string;
745
+ swapId: string;
746
+ depositReceivedAt: number;
747
+ depositReceivedBlockIndex: string;
748
+ swapExecutedAt: number;
749
+ swapExecutedBlockIndex: string;
750
+ egressAmount: string;
751
+ egressScheduledAt: number;
752
+ egressScheduledBlockIndex: string;
753
+ broadcastRequestedAt: number;
754
+ broadcastRequestedBlockIndex: string;
755
+ broadcastSucceededAt: number;
756
+ broadcastSucceededBlockIndex: string;
757
+ destAddress?: string | undefined;
758
+ ccmMetadata?: {
759
+ message: string | null;
760
+ gasBudget: string;
761
+ } | null | undefined;
762
+ expectedDepositAmount?: string | undefined;
763
+ depositAddress?: string | undefined;
764
+ depositChannelCreatedAt?: number | undefined;
765
+ depositChannelExpiryBlock?: bigint | null | undefined;
766
+ estimatedDepositChannelExpiryTime?: number | undefined;
767
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
768
+ depositTransactionHash?: string | undefined;
769
+ depositTransactionConfirmations?: number | undefined;
770
+ intermediateAmount?: string | undefined;
771
+ }, {
772
+ srcChain: "Bitcoin" | "Ethereum" | "Polkadot";
773
+ srcAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
774
+ destAsset: "FLIP" | "USDC" | "DOT" | "ETH" | "BTC";
775
+ destChain: "Bitcoin" | "Ethereum" | "Polkadot";
776
+ isDepositChannelExpired: boolean;
777
+ state: "AWAITING_DEPOSIT" | "DEPOSIT_RECEIVED" | "SWAP_EXECUTED" | "EGRESS_SCHEDULED" | "BROADCAST_REQUESTED" | "BROADCAST_ABORTED" | "COMPLETE";
778
+ depositAmount: string;
779
+ swapId: string;
780
+ depositReceivedAt: number;
781
+ depositReceivedBlockIndex: string;
782
+ swapExecutedAt: number;
783
+ swapExecutedBlockIndex: string;
784
+ egressAmount: string;
785
+ egressScheduledAt: number;
786
+ egressScheduledBlockIndex: string;
787
+ broadcastRequestedAt: number;
788
+ broadcastRequestedBlockIndex: string;
789
+ broadcastSucceededAt: number;
790
+ broadcastSucceededBlockIndex: string;
791
+ destAddress?: string | undefined;
792
+ ccmMetadata?: {
793
+ message: string | null;
794
+ gasBudget: string;
795
+ } | null | undefined;
796
+ expectedDepositAmount?: string | undefined;
797
+ depositAddress?: string | undefined;
798
+ depositChannelCreatedAt?: number | undefined;
799
+ depositChannelExpiryBlock?: bigint | null | undefined;
800
+ estimatedDepositChannelExpiryTime?: number | undefined;
801
+ ccmDepositReceivedBlockIndex?: string | null | undefined;
802
+ depositTransactionHash?: string | undefined;
803
+ depositTransactionConfirmations?: number | undefined;
804
+ intermediateAmount?: string | undefined;
805
+ }>]>;
806
+ type QuoteFee = {
807
+ type: 'liquidity' | 'network';
808
+ asset: Asset;
809
+ amount: string;
810
+ };
811
+ type QuoteQueryResponse = {
812
+ intermediateAmount?: string;
813
+ egressAmount: string;
814
+ includedFees: QuoteFee[];
815
+ };
816
+
6
817
  declare const tokenSwapParamsSchema: z.ZodUnion<[z.ZodObject<{
7
818
  amount: z.ZodString;
8
819
  srcChain: z.ZodLiteral<"Ethereum">;
@@ -356,28 +1167,6 @@ declare const executeSwapParamsSchema: z.ZodUnion<[z.ZodObject<{
356
1167
  type ExecuteSwapParams = z.infer<typeof executeSwapParamsSchema>;
357
1168
  type TokenSwapParams = z.infer<typeof tokenSwapParamsSchema>;
358
1169
 
359
- declare const ccmMetadataSchema: z.ZodObject<{
360
- gasBudget: z.ZodString;
361
- message: z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>;
362
- }, "strip", z.ZodTypeAny, {
363
- message: `0x${string}`;
364
- gasBudget: string;
365
- }, {
366
- message: `0x${string}`;
367
- gasBudget: string;
368
- }>;
369
- type CcmMetadata = z.infer<typeof ccmMetadataSchema>;
370
- type QuoteFee = {
371
- type: 'liquidity' | 'network';
372
- asset: Asset;
373
- amount: string;
374
- };
375
- type QuoteQueryResponse = {
376
- intermediateAmount?: string;
377
- egressAmount: string;
378
- includedFees: QuoteFee[];
379
- };
380
-
381
1170
  interface ChainData {
382
1171
  id: Chain;
383
1172
  name: string;
@@ -426,13 +1215,13 @@ interface CommonStatusFields extends ChainsAndAssets {
426
1215
  depositAddress: string | undefined;
427
1216
  depositChannelCreatedAt: number | undefined;
428
1217
  expectedDepositAmount: string | undefined;
429
- depositChannelExpiryBlock: bigint;
1218
+ depositChannelExpiryBlock: bigint | undefined;
430
1219
  estimatedDepositChannelExpiryTime: number | undefined;
431
1220
  isDepositChanneExpired: boolean;
432
1221
  ccmDepositReceivedBlockIndex: string | undefined;
433
1222
  ccmMetadata: {
434
- gasBudget: `0x${string}`;
435
- message: string;
1223
+ gasBudget: string;
1224
+ message: `0x${string}`;
436
1225
  } | undefined;
437
1226
  }
438
1227
  type SwapStatusResponse = CommonStatusFields & ({
@@ -528,6 +1317,7 @@ type SwapSDKOptions = {
528
1317
  url: string;
529
1318
  commissionBps: number;
530
1319
  };
1320
+ rpcUrl?: string;
531
1321
  };
532
1322
  declare class SwapSDK {
533
1323
  private readonly baseUrl;
@@ -535,12 +1325,15 @@ declare class SwapSDK {
535
1325
  private readonly signer?;
536
1326
  private readonly trpc;
537
1327
  private readonly brokerConfig?;
1328
+ private stateChainEnvironment?;
1329
+ private readonly rpcConfig;
538
1330
  constructor(options?: SwapSDKOptions);
539
1331
  getChains(sourceChain?: Chain): Promise<ChainData[]>;
1332
+ private getStateChainEnvironment;
540
1333
  getAssets(chain: Chain): Promise<AssetData[]>;
541
1334
  getQuote(quoteRequest: QuoteRequest, options?: RequestOptions): Promise<QuoteResponse>;
542
1335
  requestDepositAddress(depositAddressRequest: DepositAddressRequest): Promise<DepositAddressResponse>;
543
- getStatus(swapStatusRequest: SwapStatusRequest, options?: RequestOptions): Promise<SwapStatusResponse>;
1336
+ getStatus(swapStatusRequest: SwapStatusRequest, options?: RequestOptions): Promise<Zod.output<typeof swapResponseSchema>>;
544
1337
  executeSwap(params: ExecuteSwapParams, txOpts?: TransactionOptions): Promise<TransactionHash>;
545
1338
  approveVault(params: Pick<TokenSwapParams, 'srcAsset' | 'amount'>, txOpts?: TransactionOptions): Promise<TransactionHash | null>;
546
1339
  }