@chainflip/rpc 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2595 @@
1
+ import { z } from 'zod';
2
+ import { AssetAndChain, rpcResponse } from './parsers.cjs';
3
+ import { HexString } from '@chainflip/utils/types';
4
+
5
+ type Nullish<T> = T | null | undefined;
6
+ type WithHash<T> = {
7
+ [K in keyof T]: T[K] extends unknown[] ? [...T[K], at?: Nullish<string>] : never;
8
+ };
9
+ type Chain = AssetAndChain['chain'];
10
+ type AssetSymbol = AssetAndChain['asset'];
11
+ type UncheckedAssetAndChain = {
12
+ asset: AssetSymbol;
13
+ chain: Chain;
14
+ };
15
+ type AdditionalOrder = {
16
+ LimitOrder: {
17
+ base_asset: UncheckedAssetAndChain;
18
+ quote_asset: UncheckedAssetAndChain;
19
+ side: 'buy' | 'sell';
20
+ tick: number;
21
+ sell_amount: `0x${string}`;
22
+ };
23
+ };
24
+ type RpcRequest = WithHash<{
25
+ broker_requestSwapDepositAddress: [
26
+ sourceAsset: UncheckedAssetAndChain,
27
+ destinationAsset: UncheckedAssetAndChain,
28
+ destinationAddress: string,
29
+ brokerCommission: number,
30
+ ccmMetadata?: Nullish<{
31
+ message: HexString;
32
+ gas_budget: HexString;
33
+ }>,
34
+ boostFee?: Nullish<number>,
35
+ affiliateFees?: Nullish<{
36
+ account: string;
37
+ bps: number;
38
+ }[]>
39
+ ];
40
+ cf_environment: [];
41
+ cf_supported_assets: [];
42
+ cf_swapping_environment: [];
43
+ cf_ingress_egress_environment: [];
44
+ cf_funding_environment: [];
45
+ cf_swap_rate: [
46
+ fromAsset: UncheckedAssetAndChain,
47
+ toAsset: UncheckedAssetAndChain,
48
+ amount: `0x${string}`
49
+ ];
50
+ cf_swap_rate_v2: [
51
+ fromAsset: UncheckedAssetAndChain,
52
+ toAsset: UncheckedAssetAndChain,
53
+ amount: `0x${string}`,
54
+ additionalOrders?: Nullish<AdditionalOrder[]>
55
+ ];
56
+ cf_boost_pools_depth: [];
57
+ state_getMetadata: [];
58
+ state_getRuntimeVersion: [];
59
+ }> & {
60
+ chain_getBlockHash: [blockHeight?: number];
61
+ };
62
+ declare const rpcResult: {
63
+ readonly broker_requestSwapDepositAddress: z.ZodObject<{
64
+ address: z.ZodString;
65
+ issued_block: z.ZodNumber;
66
+ channel_id: z.ZodNumber;
67
+ source_chain_expiry_block: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
68
+ channel_opening_fee: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ address: string;
71
+ issued_block: number;
72
+ channel_id: number;
73
+ source_chain_expiry_block: bigint;
74
+ channel_opening_fee: bigint;
75
+ }, {
76
+ address: string;
77
+ issued_block: number;
78
+ channel_id: number;
79
+ source_chain_expiry_block: string | number;
80
+ channel_opening_fee: string;
81
+ }>;
82
+ readonly cf_boost_pools_depth: z.ZodArray<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
83
+ chain: z.ZodLiteral<"Bitcoin">;
84
+ asset: z.ZodLiteral<"BTC">;
85
+ }, "strip", z.ZodTypeAny, {
86
+ chain: "Bitcoin";
87
+ asset: "BTC";
88
+ }, {
89
+ chain: "Bitcoin";
90
+ asset: "BTC";
91
+ }>, z.ZodObject<{
92
+ chain: z.ZodLiteral<"Polkadot">;
93
+ asset: z.ZodLiteral<"DOT">;
94
+ }, "strip", z.ZodTypeAny, {
95
+ chain: "Polkadot";
96
+ asset: "DOT";
97
+ }, {
98
+ chain: "Polkadot";
99
+ asset: "DOT";
100
+ }>, z.ZodObject<{
101
+ chain: z.ZodLiteral<"Ethereum">;
102
+ asset: z.ZodLiteral<"FLIP">;
103
+ }, "strip", z.ZodTypeAny, {
104
+ chain: "Ethereum";
105
+ asset: "FLIP";
106
+ }, {
107
+ chain: "Ethereum";
108
+ asset: "FLIP";
109
+ }>, z.ZodObject<{
110
+ chain: z.ZodLiteral<"Ethereum">;
111
+ asset: z.ZodLiteral<"ETH">;
112
+ }, "strip", z.ZodTypeAny, {
113
+ chain: "Ethereum";
114
+ asset: "ETH";
115
+ }, {
116
+ chain: "Ethereum";
117
+ asset: "ETH";
118
+ }>, z.ZodObject<{
119
+ chain: z.ZodLiteral<"Ethereum">;
120
+ asset: z.ZodLiteral<"USDC">;
121
+ }, "strip", z.ZodTypeAny, {
122
+ chain: "Ethereum";
123
+ asset: "USDC";
124
+ }, {
125
+ chain: "Ethereum";
126
+ asset: "USDC";
127
+ }>, z.ZodObject<{
128
+ chain: z.ZodLiteral<"Ethereum">;
129
+ asset: z.ZodLiteral<"USDT">;
130
+ }, "strip", z.ZodTypeAny, {
131
+ chain: "Ethereum";
132
+ asset: "USDT";
133
+ }, {
134
+ chain: "Ethereum";
135
+ asset: "USDT";
136
+ }>, z.ZodObject<{
137
+ chain: z.ZodLiteral<"Arbitrum">;
138
+ asset: z.ZodLiteral<"ETH">;
139
+ }, "strip", z.ZodTypeAny, {
140
+ chain: "Arbitrum";
141
+ asset: "ETH";
142
+ }, {
143
+ chain: "Arbitrum";
144
+ asset: "ETH";
145
+ }>, z.ZodObject<{
146
+ chain: z.ZodLiteral<"Arbitrum">;
147
+ asset: z.ZodLiteral<"USDC">;
148
+ }, "strip", z.ZodTypeAny, {
149
+ chain: "Arbitrum";
150
+ asset: "USDC";
151
+ }, {
152
+ chain: "Arbitrum";
153
+ asset: "USDC";
154
+ }>]>, z.ZodObject<{
155
+ tier: z.ZodNumber;
156
+ available_amount: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ tier: number;
159
+ available_amount: bigint;
160
+ }, {
161
+ tier: number;
162
+ available_amount: string;
163
+ }>>, "many">;
164
+ readonly cf_environment: z.ZodObject<{
165
+ ingress_egress: z.ZodEffects<z.ZodObject<{
166
+ minimum_deposit_amounts: z.ZodObject<{
167
+ Bitcoin: z.ZodObject<{
168
+ BTC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ BTC: bigint;
171
+ }, {
172
+ BTC: string | number;
173
+ }>;
174
+ Ethereum: z.ZodObject<{
175
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
176
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
177
+ FLIP: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
178
+ USDT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ FLIP: bigint;
181
+ ETH: bigint;
182
+ USDC: bigint;
183
+ USDT: bigint;
184
+ }, {
185
+ FLIP: string | number;
186
+ ETH: string | number;
187
+ USDC: string | number;
188
+ USDT: string | number;
189
+ }>;
190
+ Polkadot: z.ZodObject<{
191
+ DOT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
192
+ }, "strip", z.ZodTypeAny, {
193
+ DOT: bigint;
194
+ }, {
195
+ DOT: string | number;
196
+ }>;
197
+ Arbitrum: z.ZodObject<{
198
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
199
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ ETH: bigint;
202
+ USDC: bigint;
203
+ }, {
204
+ ETH: string | number;
205
+ USDC: string | number;
206
+ }>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ Bitcoin: {
209
+ BTC: bigint;
210
+ };
211
+ Polkadot: {
212
+ DOT: bigint;
213
+ };
214
+ Ethereum: {
215
+ FLIP: bigint;
216
+ ETH: bigint;
217
+ USDC: bigint;
218
+ USDT: bigint;
219
+ };
220
+ Arbitrum: {
221
+ ETH: bigint;
222
+ USDC: bigint;
223
+ };
224
+ }, {
225
+ Bitcoin: {
226
+ BTC: string | number;
227
+ };
228
+ Polkadot: {
229
+ DOT: string | number;
230
+ };
231
+ Ethereum: {
232
+ FLIP: string | number;
233
+ ETH: string | number;
234
+ USDC: string | number;
235
+ USDT: string | number;
236
+ };
237
+ Arbitrum: {
238
+ ETH: string | number;
239
+ USDC: string | number;
240
+ };
241
+ }>;
242
+ ingress_fees: z.ZodObject<{
243
+ Bitcoin: z.ZodObject<{
244
+ BTC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ BTC: bigint | null;
247
+ }, {
248
+ BTC: string | number | null;
249
+ }>;
250
+ Ethereum: z.ZodObject<{
251
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
252
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
253
+ FLIP: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
254
+ USDT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ FLIP: bigint | null;
257
+ ETH: bigint | null;
258
+ USDC: bigint | null;
259
+ USDT: bigint | null;
260
+ }, {
261
+ FLIP: string | number | null;
262
+ ETH: string | number | null;
263
+ USDC: string | number | null;
264
+ USDT: string | number | null;
265
+ }>;
266
+ Polkadot: z.ZodObject<{
267
+ DOT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
268
+ }, "strip", z.ZodTypeAny, {
269
+ DOT: bigint | null;
270
+ }, {
271
+ DOT: string | number | null;
272
+ }>;
273
+ Arbitrum: z.ZodObject<{
274
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
275
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
276
+ }, "strip", z.ZodTypeAny, {
277
+ ETH: bigint | null;
278
+ USDC: bigint | null;
279
+ }, {
280
+ ETH: string | number | null;
281
+ USDC: string | number | null;
282
+ }>;
283
+ }, "strip", z.ZodTypeAny, {
284
+ Bitcoin: {
285
+ BTC: bigint | null;
286
+ };
287
+ Polkadot: {
288
+ DOT: bigint | null;
289
+ };
290
+ Ethereum: {
291
+ FLIP: bigint | null;
292
+ ETH: bigint | null;
293
+ USDC: bigint | null;
294
+ USDT: bigint | null;
295
+ };
296
+ Arbitrum: {
297
+ ETH: bigint | null;
298
+ USDC: bigint | null;
299
+ };
300
+ }, {
301
+ Bitcoin: {
302
+ BTC: string | number | null;
303
+ };
304
+ Polkadot: {
305
+ DOT: string | number | null;
306
+ };
307
+ Ethereum: {
308
+ FLIP: string | number | null;
309
+ ETH: string | number | null;
310
+ USDC: string | number | null;
311
+ USDT: string | number | null;
312
+ };
313
+ Arbitrum: {
314
+ ETH: string | number | null;
315
+ USDC: string | number | null;
316
+ };
317
+ }>;
318
+ egress_fees: z.ZodObject<{
319
+ Bitcoin: z.ZodObject<{
320
+ BTC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ BTC: bigint | null;
323
+ }, {
324
+ BTC: string | number | null;
325
+ }>;
326
+ Ethereum: z.ZodObject<{
327
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
328
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
329
+ FLIP: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
330
+ USDT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ FLIP: bigint | null;
333
+ ETH: bigint | null;
334
+ USDC: bigint | null;
335
+ USDT: bigint | null;
336
+ }, {
337
+ FLIP: string | number | null;
338
+ ETH: string | number | null;
339
+ USDC: string | number | null;
340
+ USDT: string | number | null;
341
+ }>;
342
+ Polkadot: z.ZodObject<{
343
+ DOT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ DOT: bigint | null;
346
+ }, {
347
+ DOT: string | number | null;
348
+ }>;
349
+ Arbitrum: z.ZodObject<{
350
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
351
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ ETH: bigint | null;
354
+ USDC: bigint | null;
355
+ }, {
356
+ ETH: string | number | null;
357
+ USDC: string | number | null;
358
+ }>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ Bitcoin: {
361
+ BTC: bigint | null;
362
+ };
363
+ Polkadot: {
364
+ DOT: bigint | null;
365
+ };
366
+ Ethereum: {
367
+ FLIP: bigint | null;
368
+ ETH: bigint | null;
369
+ USDC: bigint | null;
370
+ USDT: bigint | null;
371
+ };
372
+ Arbitrum: {
373
+ ETH: bigint | null;
374
+ USDC: bigint | null;
375
+ };
376
+ }, {
377
+ Bitcoin: {
378
+ BTC: string | number | null;
379
+ };
380
+ Polkadot: {
381
+ DOT: string | number | null;
382
+ };
383
+ Ethereum: {
384
+ FLIP: string | number | null;
385
+ ETH: string | number | null;
386
+ USDC: string | number | null;
387
+ USDT: string | number | null;
388
+ };
389
+ Arbitrum: {
390
+ ETH: string | number | null;
391
+ USDC: string | number | null;
392
+ };
393
+ }>;
394
+ witness_safety_margins: z.ZodObject<{
395
+ Bitcoin: z.ZodNullable<z.ZodNumber>;
396
+ Ethereum: z.ZodNullable<z.ZodNumber>;
397
+ Polkadot: z.ZodNullable<z.ZodNumber>;
398
+ Arbitrum: z.ZodNullable<z.ZodNumber>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ Bitcoin: number | null;
401
+ Polkadot: number | null;
402
+ Ethereum: number | null;
403
+ Arbitrum: number | null;
404
+ }, {
405
+ Bitcoin: number | null;
406
+ Polkadot: number | null;
407
+ Ethereum: number | null;
408
+ Arbitrum: number | null;
409
+ }>;
410
+ egress_dust_limits: z.ZodObject<{
411
+ Bitcoin: z.ZodObject<{
412
+ BTC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
413
+ }, "strip", z.ZodTypeAny, {
414
+ BTC: bigint;
415
+ }, {
416
+ BTC: string | number;
417
+ }>;
418
+ Ethereum: z.ZodObject<{
419
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
420
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
421
+ FLIP: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
422
+ USDT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ FLIP: bigint;
425
+ ETH: bigint;
426
+ USDC: bigint;
427
+ USDT: bigint;
428
+ }, {
429
+ FLIP: string | number;
430
+ ETH: string | number;
431
+ USDC: string | number;
432
+ USDT: string | number;
433
+ }>;
434
+ Polkadot: z.ZodObject<{
435
+ DOT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ DOT: bigint;
438
+ }, {
439
+ DOT: string | number;
440
+ }>;
441
+ Arbitrum: z.ZodObject<{
442
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
443
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ ETH: bigint;
446
+ USDC: bigint;
447
+ }, {
448
+ ETH: string | number;
449
+ USDC: string | number;
450
+ }>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ Bitcoin: {
453
+ BTC: bigint;
454
+ };
455
+ Polkadot: {
456
+ DOT: bigint;
457
+ };
458
+ Ethereum: {
459
+ FLIP: bigint;
460
+ ETH: bigint;
461
+ USDC: bigint;
462
+ USDT: bigint;
463
+ };
464
+ Arbitrum: {
465
+ ETH: bigint;
466
+ USDC: bigint;
467
+ };
468
+ }, {
469
+ Bitcoin: {
470
+ BTC: string | number;
471
+ };
472
+ Polkadot: {
473
+ DOT: string | number;
474
+ };
475
+ Ethereum: {
476
+ FLIP: string | number;
477
+ ETH: string | number;
478
+ USDC: string | number;
479
+ USDT: string | number;
480
+ };
481
+ Arbitrum: {
482
+ ETH: string | number;
483
+ USDC: string | number;
484
+ };
485
+ }>;
486
+ channel_opening_fees: z.ZodObject<{
487
+ Bitcoin: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
488
+ Ethereum: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
489
+ Polkadot: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
490
+ Arbitrum: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ Bitcoin: bigint;
493
+ Polkadot: bigint;
494
+ Ethereum: bigint;
495
+ Arbitrum: bigint;
496
+ }, {
497
+ Bitcoin: string | number;
498
+ Polkadot: string | number;
499
+ Ethereum: string | number;
500
+ Arbitrum: string | number;
501
+ }>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ minimum_deposit_amounts: {
504
+ Bitcoin: {
505
+ BTC: bigint;
506
+ };
507
+ Polkadot: {
508
+ DOT: bigint;
509
+ };
510
+ Ethereum: {
511
+ FLIP: bigint;
512
+ ETH: bigint;
513
+ USDC: bigint;
514
+ USDT: bigint;
515
+ };
516
+ Arbitrum: {
517
+ ETH: bigint;
518
+ USDC: bigint;
519
+ };
520
+ };
521
+ ingress_fees: {
522
+ Bitcoin: {
523
+ BTC: bigint | null;
524
+ };
525
+ Polkadot: {
526
+ DOT: bigint | null;
527
+ };
528
+ Ethereum: {
529
+ FLIP: bigint | null;
530
+ ETH: bigint | null;
531
+ USDC: bigint | null;
532
+ USDT: bigint | null;
533
+ };
534
+ Arbitrum: {
535
+ ETH: bigint | null;
536
+ USDC: bigint | null;
537
+ };
538
+ };
539
+ egress_fees: {
540
+ Bitcoin: {
541
+ BTC: bigint | null;
542
+ };
543
+ Polkadot: {
544
+ DOT: bigint | null;
545
+ };
546
+ Ethereum: {
547
+ FLIP: bigint | null;
548
+ ETH: bigint | null;
549
+ USDC: bigint | null;
550
+ USDT: bigint | null;
551
+ };
552
+ Arbitrum: {
553
+ ETH: bigint | null;
554
+ USDC: bigint | null;
555
+ };
556
+ };
557
+ witness_safety_margins: {
558
+ Bitcoin: number | null;
559
+ Polkadot: number | null;
560
+ Ethereum: number | null;
561
+ Arbitrum: number | null;
562
+ };
563
+ egress_dust_limits: {
564
+ Bitcoin: {
565
+ BTC: bigint;
566
+ };
567
+ Polkadot: {
568
+ DOT: bigint;
569
+ };
570
+ Ethereum: {
571
+ FLIP: bigint;
572
+ ETH: bigint;
573
+ USDC: bigint;
574
+ USDT: bigint;
575
+ };
576
+ Arbitrum: {
577
+ ETH: bigint;
578
+ USDC: bigint;
579
+ };
580
+ };
581
+ channel_opening_fees: {
582
+ Bitcoin: bigint;
583
+ Polkadot: bigint;
584
+ Ethereum: bigint;
585
+ Arbitrum: bigint;
586
+ };
587
+ }, {
588
+ minimum_deposit_amounts: {
589
+ Bitcoin: {
590
+ BTC: string | number;
591
+ };
592
+ Polkadot: {
593
+ DOT: string | number;
594
+ };
595
+ Ethereum: {
596
+ FLIP: string | number;
597
+ ETH: string | number;
598
+ USDC: string | number;
599
+ USDT: string | number;
600
+ };
601
+ Arbitrum: {
602
+ ETH: string | number;
603
+ USDC: string | number;
604
+ };
605
+ };
606
+ ingress_fees: {
607
+ Bitcoin: {
608
+ BTC: string | number | null;
609
+ };
610
+ Polkadot: {
611
+ DOT: string | number | null;
612
+ };
613
+ Ethereum: {
614
+ FLIP: string | number | null;
615
+ ETH: string | number | null;
616
+ USDC: string | number | null;
617
+ USDT: string | number | null;
618
+ };
619
+ Arbitrum: {
620
+ ETH: string | number | null;
621
+ USDC: string | number | null;
622
+ };
623
+ };
624
+ egress_fees: {
625
+ Bitcoin: {
626
+ BTC: string | number | null;
627
+ };
628
+ Polkadot: {
629
+ DOT: string | number | null;
630
+ };
631
+ Ethereum: {
632
+ FLIP: string | number | null;
633
+ ETH: string | number | null;
634
+ USDC: string | number | null;
635
+ USDT: string | number | null;
636
+ };
637
+ Arbitrum: {
638
+ ETH: string | number | null;
639
+ USDC: string | number | null;
640
+ };
641
+ };
642
+ witness_safety_margins: {
643
+ Bitcoin: number | null;
644
+ Polkadot: number | null;
645
+ Ethereum: number | null;
646
+ Arbitrum: number | null;
647
+ };
648
+ egress_dust_limits: {
649
+ Bitcoin: {
650
+ BTC: string | number;
651
+ };
652
+ Polkadot: {
653
+ DOT: string | number;
654
+ };
655
+ Ethereum: {
656
+ FLIP: string | number;
657
+ ETH: string | number;
658
+ USDC: string | number;
659
+ USDT: string | number;
660
+ };
661
+ Arbitrum: {
662
+ ETH: string | number;
663
+ USDC: string | number;
664
+ };
665
+ };
666
+ channel_opening_fees: {
667
+ Bitcoin: string | number;
668
+ Polkadot: string | number;
669
+ Ethereum: string | number;
670
+ Arbitrum: string | number;
671
+ };
672
+ }>, Omit<{
673
+ minimum_deposit_amounts: {
674
+ Bitcoin: {
675
+ BTC: bigint;
676
+ };
677
+ Polkadot: {
678
+ DOT: bigint;
679
+ };
680
+ Ethereum: {
681
+ FLIP: bigint;
682
+ ETH: bigint;
683
+ USDC: bigint;
684
+ USDT: bigint;
685
+ };
686
+ Arbitrum: {
687
+ ETH: bigint;
688
+ USDC: bigint;
689
+ };
690
+ };
691
+ ingress_fees: {
692
+ Bitcoin: {
693
+ BTC: bigint | null;
694
+ };
695
+ Polkadot: {
696
+ DOT: bigint | null;
697
+ };
698
+ Ethereum: {
699
+ FLIP: bigint | null;
700
+ ETH: bigint | null;
701
+ USDC: bigint | null;
702
+ USDT: bigint | null;
703
+ };
704
+ Arbitrum: {
705
+ ETH: bigint | null;
706
+ USDC: bigint | null;
707
+ };
708
+ };
709
+ egress_fees: {
710
+ Bitcoin: {
711
+ BTC: bigint | null;
712
+ };
713
+ Polkadot: {
714
+ DOT: bigint | null;
715
+ };
716
+ Ethereum: {
717
+ FLIP: bigint | null;
718
+ ETH: bigint | null;
719
+ USDC: bigint | null;
720
+ USDT: bigint | null;
721
+ };
722
+ Arbitrum: {
723
+ ETH: bigint | null;
724
+ USDC: bigint | null;
725
+ };
726
+ };
727
+ witness_safety_margins: {
728
+ Bitcoin: number | null;
729
+ Polkadot: number | null;
730
+ Ethereum: number | null;
731
+ Arbitrum: number | null;
732
+ };
733
+ egress_dust_limits: {
734
+ Bitcoin: {
735
+ BTC: bigint;
736
+ };
737
+ Polkadot: {
738
+ DOT: bigint;
739
+ };
740
+ Ethereum: {
741
+ FLIP: bigint;
742
+ ETH: bigint;
743
+ USDC: bigint;
744
+ USDT: bigint;
745
+ };
746
+ Arbitrum: {
747
+ ETH: bigint;
748
+ USDC: bigint;
749
+ };
750
+ };
751
+ channel_opening_fees: {
752
+ Bitcoin: bigint;
753
+ Polkadot: bigint;
754
+ Ethereum: bigint;
755
+ Arbitrum: bigint;
756
+ };
757
+ }, "egress_dust_limits"> & {
758
+ readonly minimum_egress_amounts: {
759
+ Bitcoin: {
760
+ BTC: bigint;
761
+ };
762
+ Polkadot: {
763
+ DOT: bigint;
764
+ };
765
+ Ethereum: {
766
+ FLIP: bigint;
767
+ ETH: bigint;
768
+ USDC: bigint;
769
+ USDT: bigint;
770
+ };
771
+ Arbitrum: {
772
+ ETH: bigint;
773
+ USDC: bigint;
774
+ };
775
+ };
776
+ }, {
777
+ minimum_deposit_amounts: {
778
+ Bitcoin: {
779
+ BTC: string | number;
780
+ };
781
+ Polkadot: {
782
+ DOT: string | number;
783
+ };
784
+ Ethereum: {
785
+ FLIP: string | number;
786
+ ETH: string | number;
787
+ USDC: string | number;
788
+ USDT: string | number;
789
+ };
790
+ Arbitrum: {
791
+ ETH: string | number;
792
+ USDC: string | number;
793
+ };
794
+ };
795
+ ingress_fees: {
796
+ Bitcoin: {
797
+ BTC: string | number | null;
798
+ };
799
+ Polkadot: {
800
+ DOT: string | number | null;
801
+ };
802
+ Ethereum: {
803
+ FLIP: string | number | null;
804
+ ETH: string | number | null;
805
+ USDC: string | number | null;
806
+ USDT: string | number | null;
807
+ };
808
+ Arbitrum: {
809
+ ETH: string | number | null;
810
+ USDC: string | number | null;
811
+ };
812
+ };
813
+ egress_fees: {
814
+ Bitcoin: {
815
+ BTC: string | number | null;
816
+ };
817
+ Polkadot: {
818
+ DOT: string | number | null;
819
+ };
820
+ Ethereum: {
821
+ FLIP: string | number | null;
822
+ ETH: string | number | null;
823
+ USDC: string | number | null;
824
+ USDT: string | number | null;
825
+ };
826
+ Arbitrum: {
827
+ ETH: string | number | null;
828
+ USDC: string | number | null;
829
+ };
830
+ };
831
+ witness_safety_margins: {
832
+ Bitcoin: number | null;
833
+ Polkadot: number | null;
834
+ Ethereum: number | null;
835
+ Arbitrum: number | null;
836
+ };
837
+ egress_dust_limits: {
838
+ Bitcoin: {
839
+ BTC: string | number;
840
+ };
841
+ Polkadot: {
842
+ DOT: string | number;
843
+ };
844
+ Ethereum: {
845
+ FLIP: string | number;
846
+ ETH: string | number;
847
+ USDC: string | number;
848
+ USDT: string | number;
849
+ };
850
+ Arbitrum: {
851
+ ETH: string | number;
852
+ USDC: string | number;
853
+ };
854
+ };
855
+ channel_opening_fees: {
856
+ Bitcoin: string | number;
857
+ Polkadot: string | number;
858
+ Ethereum: string | number;
859
+ Arbitrum: string | number;
860
+ };
861
+ }>;
862
+ swapping: z.ZodObject<{
863
+ maximum_swap_amounts: z.ZodObject<{
864
+ Bitcoin: z.ZodObject<{
865
+ BTC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
866
+ }, "strip", z.ZodTypeAny, {
867
+ BTC: bigint | null;
868
+ }, {
869
+ BTC: string | number | null;
870
+ }>;
871
+ Ethereum: z.ZodObject<{
872
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
873
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
874
+ FLIP: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
875
+ USDT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ FLIP: bigint | null;
878
+ ETH: bigint | null;
879
+ USDC: bigint | null;
880
+ USDT: bigint | null;
881
+ }, {
882
+ FLIP: string | number | null;
883
+ ETH: string | number | null;
884
+ USDC: string | number | null;
885
+ USDT: string | number | null;
886
+ }>;
887
+ Polkadot: z.ZodObject<{
888
+ DOT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ DOT: bigint | null;
891
+ }, {
892
+ DOT: string | number | null;
893
+ }>;
894
+ Arbitrum: z.ZodObject<{
895
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
896
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ ETH: bigint | null;
899
+ USDC: bigint | null;
900
+ }, {
901
+ ETH: string | number | null;
902
+ USDC: string | number | null;
903
+ }>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ Bitcoin: {
906
+ BTC: bigint | null;
907
+ };
908
+ Polkadot: {
909
+ DOT: bigint | null;
910
+ };
911
+ Ethereum: {
912
+ FLIP: bigint | null;
913
+ ETH: bigint | null;
914
+ USDC: bigint | null;
915
+ USDT: bigint | null;
916
+ };
917
+ Arbitrum: {
918
+ ETH: bigint | null;
919
+ USDC: bigint | null;
920
+ };
921
+ }, {
922
+ Bitcoin: {
923
+ BTC: string | number | null;
924
+ };
925
+ Polkadot: {
926
+ DOT: string | number | null;
927
+ };
928
+ Ethereum: {
929
+ FLIP: string | number | null;
930
+ ETH: string | number | null;
931
+ USDC: string | number | null;
932
+ USDT: string | number | null;
933
+ };
934
+ Arbitrum: {
935
+ ETH: string | number | null;
936
+ USDC: string | number | null;
937
+ };
938
+ }>;
939
+ network_fee_hundredth_pips: z.ZodNumber;
940
+ }, "strip", z.ZodTypeAny, {
941
+ maximum_swap_amounts: {
942
+ Bitcoin: {
943
+ BTC: bigint | null;
944
+ };
945
+ Polkadot: {
946
+ DOT: bigint | null;
947
+ };
948
+ Ethereum: {
949
+ FLIP: bigint | null;
950
+ ETH: bigint | null;
951
+ USDC: bigint | null;
952
+ USDT: bigint | null;
953
+ };
954
+ Arbitrum: {
955
+ ETH: bigint | null;
956
+ USDC: bigint | null;
957
+ };
958
+ };
959
+ network_fee_hundredth_pips: number;
960
+ }, {
961
+ maximum_swap_amounts: {
962
+ Bitcoin: {
963
+ BTC: string | number | null;
964
+ };
965
+ Polkadot: {
966
+ DOT: string | number | null;
967
+ };
968
+ Ethereum: {
969
+ FLIP: string | number | null;
970
+ ETH: string | number | null;
971
+ USDC: string | number | null;
972
+ USDT: string | number | null;
973
+ };
974
+ Arbitrum: {
975
+ ETH: string | number | null;
976
+ USDC: string | number | null;
977
+ };
978
+ };
979
+ network_fee_hundredth_pips: number;
980
+ }>;
981
+ funding: z.ZodObject<{
982
+ redemption_tax: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
983
+ minimum_funding_amount: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
984
+ }, "strip", z.ZodTypeAny, {
985
+ redemption_tax: bigint;
986
+ minimum_funding_amount: bigint;
987
+ }, {
988
+ redemption_tax: string | number;
989
+ minimum_funding_amount: string | number;
990
+ }>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ ingress_egress: Omit<{
993
+ minimum_deposit_amounts: {
994
+ Bitcoin: {
995
+ BTC: bigint;
996
+ };
997
+ Polkadot: {
998
+ DOT: bigint;
999
+ };
1000
+ Ethereum: {
1001
+ FLIP: bigint;
1002
+ ETH: bigint;
1003
+ USDC: bigint;
1004
+ USDT: bigint;
1005
+ };
1006
+ Arbitrum: {
1007
+ ETH: bigint;
1008
+ USDC: bigint;
1009
+ };
1010
+ };
1011
+ ingress_fees: {
1012
+ Bitcoin: {
1013
+ BTC: bigint | null;
1014
+ };
1015
+ Polkadot: {
1016
+ DOT: bigint | null;
1017
+ };
1018
+ Ethereum: {
1019
+ FLIP: bigint | null;
1020
+ ETH: bigint | null;
1021
+ USDC: bigint | null;
1022
+ USDT: bigint | null;
1023
+ };
1024
+ Arbitrum: {
1025
+ ETH: bigint | null;
1026
+ USDC: bigint | null;
1027
+ };
1028
+ };
1029
+ egress_fees: {
1030
+ Bitcoin: {
1031
+ BTC: bigint | null;
1032
+ };
1033
+ Polkadot: {
1034
+ DOT: bigint | null;
1035
+ };
1036
+ Ethereum: {
1037
+ FLIP: bigint | null;
1038
+ ETH: bigint | null;
1039
+ USDC: bigint | null;
1040
+ USDT: bigint | null;
1041
+ };
1042
+ Arbitrum: {
1043
+ ETH: bigint | null;
1044
+ USDC: bigint | null;
1045
+ };
1046
+ };
1047
+ witness_safety_margins: {
1048
+ Bitcoin: number | null;
1049
+ Polkadot: number | null;
1050
+ Ethereum: number | null;
1051
+ Arbitrum: number | null;
1052
+ };
1053
+ egress_dust_limits: {
1054
+ Bitcoin: {
1055
+ BTC: bigint;
1056
+ };
1057
+ Polkadot: {
1058
+ DOT: bigint;
1059
+ };
1060
+ Ethereum: {
1061
+ FLIP: bigint;
1062
+ ETH: bigint;
1063
+ USDC: bigint;
1064
+ USDT: bigint;
1065
+ };
1066
+ Arbitrum: {
1067
+ ETH: bigint;
1068
+ USDC: bigint;
1069
+ };
1070
+ };
1071
+ channel_opening_fees: {
1072
+ Bitcoin: bigint;
1073
+ Polkadot: bigint;
1074
+ Ethereum: bigint;
1075
+ Arbitrum: bigint;
1076
+ };
1077
+ }, "egress_dust_limits"> & {
1078
+ readonly minimum_egress_amounts: {
1079
+ Bitcoin: {
1080
+ BTC: bigint;
1081
+ };
1082
+ Polkadot: {
1083
+ DOT: bigint;
1084
+ };
1085
+ Ethereum: {
1086
+ FLIP: bigint;
1087
+ ETH: bigint;
1088
+ USDC: bigint;
1089
+ USDT: bigint;
1090
+ };
1091
+ Arbitrum: {
1092
+ ETH: bigint;
1093
+ USDC: bigint;
1094
+ };
1095
+ };
1096
+ };
1097
+ swapping: {
1098
+ maximum_swap_amounts: {
1099
+ Bitcoin: {
1100
+ BTC: bigint | null;
1101
+ };
1102
+ Polkadot: {
1103
+ DOT: bigint | null;
1104
+ };
1105
+ Ethereum: {
1106
+ FLIP: bigint | null;
1107
+ ETH: bigint | null;
1108
+ USDC: bigint | null;
1109
+ USDT: bigint | null;
1110
+ };
1111
+ Arbitrum: {
1112
+ ETH: bigint | null;
1113
+ USDC: bigint | null;
1114
+ };
1115
+ };
1116
+ network_fee_hundredth_pips: number;
1117
+ };
1118
+ funding: {
1119
+ redemption_tax: bigint;
1120
+ minimum_funding_amount: bigint;
1121
+ };
1122
+ }, {
1123
+ ingress_egress: {
1124
+ minimum_deposit_amounts: {
1125
+ Bitcoin: {
1126
+ BTC: string | number;
1127
+ };
1128
+ Polkadot: {
1129
+ DOT: string | number;
1130
+ };
1131
+ Ethereum: {
1132
+ FLIP: string | number;
1133
+ ETH: string | number;
1134
+ USDC: string | number;
1135
+ USDT: string | number;
1136
+ };
1137
+ Arbitrum: {
1138
+ ETH: string | number;
1139
+ USDC: string | number;
1140
+ };
1141
+ };
1142
+ ingress_fees: {
1143
+ Bitcoin: {
1144
+ BTC: string | number | null;
1145
+ };
1146
+ Polkadot: {
1147
+ DOT: string | number | null;
1148
+ };
1149
+ Ethereum: {
1150
+ FLIP: string | number | null;
1151
+ ETH: string | number | null;
1152
+ USDC: string | number | null;
1153
+ USDT: string | number | null;
1154
+ };
1155
+ Arbitrum: {
1156
+ ETH: string | number | null;
1157
+ USDC: string | number | null;
1158
+ };
1159
+ };
1160
+ egress_fees: {
1161
+ Bitcoin: {
1162
+ BTC: string | number | null;
1163
+ };
1164
+ Polkadot: {
1165
+ DOT: string | number | null;
1166
+ };
1167
+ Ethereum: {
1168
+ FLIP: string | number | null;
1169
+ ETH: string | number | null;
1170
+ USDC: string | number | null;
1171
+ USDT: string | number | null;
1172
+ };
1173
+ Arbitrum: {
1174
+ ETH: string | number | null;
1175
+ USDC: string | number | null;
1176
+ };
1177
+ };
1178
+ witness_safety_margins: {
1179
+ Bitcoin: number | null;
1180
+ Polkadot: number | null;
1181
+ Ethereum: number | null;
1182
+ Arbitrum: number | null;
1183
+ };
1184
+ egress_dust_limits: {
1185
+ Bitcoin: {
1186
+ BTC: string | number;
1187
+ };
1188
+ Polkadot: {
1189
+ DOT: string | number;
1190
+ };
1191
+ Ethereum: {
1192
+ FLIP: string | number;
1193
+ ETH: string | number;
1194
+ USDC: string | number;
1195
+ USDT: string | number;
1196
+ };
1197
+ Arbitrum: {
1198
+ ETH: string | number;
1199
+ USDC: string | number;
1200
+ };
1201
+ };
1202
+ channel_opening_fees: {
1203
+ Bitcoin: string | number;
1204
+ Polkadot: string | number;
1205
+ Ethereum: string | number;
1206
+ Arbitrum: string | number;
1207
+ };
1208
+ };
1209
+ swapping: {
1210
+ maximum_swap_amounts: {
1211
+ Bitcoin: {
1212
+ BTC: string | number | null;
1213
+ };
1214
+ Polkadot: {
1215
+ DOT: string | number | null;
1216
+ };
1217
+ Ethereum: {
1218
+ FLIP: string | number | null;
1219
+ ETH: string | number | null;
1220
+ USDC: string | number | null;
1221
+ USDT: string | number | null;
1222
+ };
1223
+ Arbitrum: {
1224
+ ETH: string | number | null;
1225
+ USDC: string | number | null;
1226
+ };
1227
+ };
1228
+ network_fee_hundredth_pips: number;
1229
+ };
1230
+ funding: {
1231
+ redemption_tax: string | number;
1232
+ minimum_funding_amount: string | number;
1233
+ };
1234
+ }>;
1235
+ readonly cf_funding_environment: z.ZodObject<{
1236
+ redemption_tax: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1237
+ minimum_funding_amount: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1238
+ }, "strip", z.ZodTypeAny, {
1239
+ redemption_tax: bigint;
1240
+ minimum_funding_amount: bigint;
1241
+ }, {
1242
+ redemption_tax: string | number;
1243
+ minimum_funding_amount: string | number;
1244
+ }>;
1245
+ readonly cf_ingress_egress_environment: z.ZodEffects<z.ZodObject<{
1246
+ minimum_deposit_amounts: z.ZodObject<{
1247
+ Bitcoin: z.ZodObject<{
1248
+ BTC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1249
+ }, "strip", z.ZodTypeAny, {
1250
+ BTC: bigint;
1251
+ }, {
1252
+ BTC: string | number;
1253
+ }>;
1254
+ Ethereum: z.ZodObject<{
1255
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1256
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1257
+ FLIP: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1258
+ USDT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ FLIP: bigint;
1261
+ ETH: bigint;
1262
+ USDC: bigint;
1263
+ USDT: bigint;
1264
+ }, {
1265
+ FLIP: string | number;
1266
+ ETH: string | number;
1267
+ USDC: string | number;
1268
+ USDT: string | number;
1269
+ }>;
1270
+ Polkadot: z.ZodObject<{
1271
+ DOT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ DOT: bigint;
1274
+ }, {
1275
+ DOT: string | number;
1276
+ }>;
1277
+ Arbitrum: z.ZodObject<{
1278
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1279
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ ETH: bigint;
1282
+ USDC: bigint;
1283
+ }, {
1284
+ ETH: string | number;
1285
+ USDC: string | number;
1286
+ }>;
1287
+ }, "strip", z.ZodTypeAny, {
1288
+ Bitcoin: {
1289
+ BTC: bigint;
1290
+ };
1291
+ Polkadot: {
1292
+ DOT: bigint;
1293
+ };
1294
+ Ethereum: {
1295
+ FLIP: bigint;
1296
+ ETH: bigint;
1297
+ USDC: bigint;
1298
+ USDT: bigint;
1299
+ };
1300
+ Arbitrum: {
1301
+ ETH: bigint;
1302
+ USDC: bigint;
1303
+ };
1304
+ }, {
1305
+ Bitcoin: {
1306
+ BTC: string | number;
1307
+ };
1308
+ Polkadot: {
1309
+ DOT: string | number;
1310
+ };
1311
+ Ethereum: {
1312
+ FLIP: string | number;
1313
+ ETH: string | number;
1314
+ USDC: string | number;
1315
+ USDT: string | number;
1316
+ };
1317
+ Arbitrum: {
1318
+ ETH: string | number;
1319
+ USDC: string | number;
1320
+ };
1321
+ }>;
1322
+ ingress_fees: z.ZodObject<{
1323
+ Bitcoin: z.ZodObject<{
1324
+ BTC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ BTC: bigint | null;
1327
+ }, {
1328
+ BTC: string | number | null;
1329
+ }>;
1330
+ Ethereum: z.ZodObject<{
1331
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1332
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1333
+ FLIP: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1334
+ USDT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1335
+ }, "strip", z.ZodTypeAny, {
1336
+ FLIP: bigint | null;
1337
+ ETH: bigint | null;
1338
+ USDC: bigint | null;
1339
+ USDT: bigint | null;
1340
+ }, {
1341
+ FLIP: string | number | null;
1342
+ ETH: string | number | null;
1343
+ USDC: string | number | null;
1344
+ USDT: string | number | null;
1345
+ }>;
1346
+ Polkadot: z.ZodObject<{
1347
+ DOT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ DOT: bigint | null;
1350
+ }, {
1351
+ DOT: string | number | null;
1352
+ }>;
1353
+ Arbitrum: z.ZodObject<{
1354
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1355
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ ETH: bigint | null;
1358
+ USDC: bigint | null;
1359
+ }, {
1360
+ ETH: string | number | null;
1361
+ USDC: string | number | null;
1362
+ }>;
1363
+ }, "strip", z.ZodTypeAny, {
1364
+ Bitcoin: {
1365
+ BTC: bigint | null;
1366
+ };
1367
+ Polkadot: {
1368
+ DOT: bigint | null;
1369
+ };
1370
+ Ethereum: {
1371
+ FLIP: bigint | null;
1372
+ ETH: bigint | null;
1373
+ USDC: bigint | null;
1374
+ USDT: bigint | null;
1375
+ };
1376
+ Arbitrum: {
1377
+ ETH: bigint | null;
1378
+ USDC: bigint | null;
1379
+ };
1380
+ }, {
1381
+ Bitcoin: {
1382
+ BTC: string | number | null;
1383
+ };
1384
+ Polkadot: {
1385
+ DOT: string | number | null;
1386
+ };
1387
+ Ethereum: {
1388
+ FLIP: string | number | null;
1389
+ ETH: string | number | null;
1390
+ USDC: string | number | null;
1391
+ USDT: string | number | null;
1392
+ };
1393
+ Arbitrum: {
1394
+ ETH: string | number | null;
1395
+ USDC: string | number | null;
1396
+ };
1397
+ }>;
1398
+ egress_fees: z.ZodObject<{
1399
+ Bitcoin: z.ZodObject<{
1400
+ BTC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1401
+ }, "strip", z.ZodTypeAny, {
1402
+ BTC: bigint | null;
1403
+ }, {
1404
+ BTC: string | number | null;
1405
+ }>;
1406
+ Ethereum: z.ZodObject<{
1407
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1408
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1409
+ FLIP: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1410
+ USDT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1411
+ }, "strip", z.ZodTypeAny, {
1412
+ FLIP: bigint | null;
1413
+ ETH: bigint | null;
1414
+ USDC: bigint | null;
1415
+ USDT: bigint | null;
1416
+ }, {
1417
+ FLIP: string | number | null;
1418
+ ETH: string | number | null;
1419
+ USDC: string | number | null;
1420
+ USDT: string | number | null;
1421
+ }>;
1422
+ Polkadot: z.ZodObject<{
1423
+ DOT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ DOT: bigint | null;
1426
+ }, {
1427
+ DOT: string | number | null;
1428
+ }>;
1429
+ Arbitrum: z.ZodObject<{
1430
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1431
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
1432
+ }, "strip", z.ZodTypeAny, {
1433
+ ETH: bigint | null;
1434
+ USDC: bigint | null;
1435
+ }, {
1436
+ ETH: string | number | null;
1437
+ USDC: string | number | null;
1438
+ }>;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ Bitcoin: {
1441
+ BTC: bigint | null;
1442
+ };
1443
+ Polkadot: {
1444
+ DOT: bigint | null;
1445
+ };
1446
+ Ethereum: {
1447
+ FLIP: bigint | null;
1448
+ ETH: bigint | null;
1449
+ USDC: bigint | null;
1450
+ USDT: bigint | null;
1451
+ };
1452
+ Arbitrum: {
1453
+ ETH: bigint | null;
1454
+ USDC: bigint | null;
1455
+ };
1456
+ }, {
1457
+ Bitcoin: {
1458
+ BTC: string | number | null;
1459
+ };
1460
+ Polkadot: {
1461
+ DOT: string | number | null;
1462
+ };
1463
+ Ethereum: {
1464
+ FLIP: string | number | null;
1465
+ ETH: string | number | null;
1466
+ USDC: string | number | null;
1467
+ USDT: string | number | null;
1468
+ };
1469
+ Arbitrum: {
1470
+ ETH: string | number | null;
1471
+ USDC: string | number | null;
1472
+ };
1473
+ }>;
1474
+ witness_safety_margins: z.ZodObject<{
1475
+ Bitcoin: z.ZodNullable<z.ZodNumber>;
1476
+ Ethereum: z.ZodNullable<z.ZodNumber>;
1477
+ Polkadot: z.ZodNullable<z.ZodNumber>;
1478
+ Arbitrum: z.ZodNullable<z.ZodNumber>;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ Bitcoin: number | null;
1481
+ Polkadot: number | null;
1482
+ Ethereum: number | null;
1483
+ Arbitrum: number | null;
1484
+ }, {
1485
+ Bitcoin: number | null;
1486
+ Polkadot: number | null;
1487
+ Ethereum: number | null;
1488
+ Arbitrum: number | null;
1489
+ }>;
1490
+ egress_dust_limits: z.ZodObject<{
1491
+ Bitcoin: z.ZodObject<{
1492
+ BTC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ BTC: bigint;
1495
+ }, {
1496
+ BTC: string | number;
1497
+ }>;
1498
+ Ethereum: z.ZodObject<{
1499
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1500
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1501
+ FLIP: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1502
+ USDT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1503
+ }, "strip", z.ZodTypeAny, {
1504
+ FLIP: bigint;
1505
+ ETH: bigint;
1506
+ USDC: bigint;
1507
+ USDT: bigint;
1508
+ }, {
1509
+ FLIP: string | number;
1510
+ ETH: string | number;
1511
+ USDC: string | number;
1512
+ USDT: string | number;
1513
+ }>;
1514
+ Polkadot: z.ZodObject<{
1515
+ DOT: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ DOT: bigint;
1518
+ }, {
1519
+ DOT: string | number;
1520
+ }>;
1521
+ Arbitrum: z.ZodObject<{
1522
+ ETH: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1523
+ USDC: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ ETH: bigint;
1526
+ USDC: bigint;
1527
+ }, {
1528
+ ETH: string | number;
1529
+ USDC: string | number;
1530
+ }>;
1531
+ }, "strip", z.ZodTypeAny, {
1532
+ Bitcoin: {
1533
+ BTC: bigint;
1534
+ };
1535
+ Polkadot: {
1536
+ DOT: bigint;
1537
+ };
1538
+ Ethereum: {
1539
+ FLIP: bigint;
1540
+ ETH: bigint;
1541
+ USDC: bigint;
1542
+ USDT: bigint;
1543
+ };
1544
+ Arbitrum: {
1545
+ ETH: bigint;
1546
+ USDC: bigint;
1547
+ };
1548
+ }, {
1549
+ Bitcoin: {
1550
+ BTC: string | number;
1551
+ };
1552
+ Polkadot: {
1553
+ DOT: string | number;
1554
+ };
1555
+ Ethereum: {
1556
+ FLIP: string | number;
1557
+ ETH: string | number;
1558
+ USDC: string | number;
1559
+ USDT: string | number;
1560
+ };
1561
+ Arbitrum: {
1562
+ ETH: string | number;
1563
+ USDC: string | number;
1564
+ };
1565
+ }>;
1566
+ channel_opening_fees: z.ZodObject<{
1567
+ Bitcoin: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1568
+ Ethereum: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1569
+ Polkadot: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1570
+ Arbitrum: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ Bitcoin: bigint;
1573
+ Polkadot: bigint;
1574
+ Ethereum: bigint;
1575
+ Arbitrum: bigint;
1576
+ }, {
1577
+ Bitcoin: string | number;
1578
+ Polkadot: string | number;
1579
+ Ethereum: string | number;
1580
+ Arbitrum: string | number;
1581
+ }>;
1582
+ }, "strip", z.ZodTypeAny, {
1583
+ minimum_deposit_amounts: {
1584
+ Bitcoin: {
1585
+ BTC: bigint;
1586
+ };
1587
+ Polkadot: {
1588
+ DOT: bigint;
1589
+ };
1590
+ Ethereum: {
1591
+ FLIP: bigint;
1592
+ ETH: bigint;
1593
+ USDC: bigint;
1594
+ USDT: bigint;
1595
+ };
1596
+ Arbitrum: {
1597
+ ETH: bigint;
1598
+ USDC: bigint;
1599
+ };
1600
+ };
1601
+ ingress_fees: {
1602
+ Bitcoin: {
1603
+ BTC: bigint | null;
1604
+ };
1605
+ Polkadot: {
1606
+ DOT: bigint | null;
1607
+ };
1608
+ Ethereum: {
1609
+ FLIP: bigint | null;
1610
+ ETH: bigint | null;
1611
+ USDC: bigint | null;
1612
+ USDT: bigint | null;
1613
+ };
1614
+ Arbitrum: {
1615
+ ETH: bigint | null;
1616
+ USDC: bigint | null;
1617
+ };
1618
+ };
1619
+ egress_fees: {
1620
+ Bitcoin: {
1621
+ BTC: bigint | null;
1622
+ };
1623
+ Polkadot: {
1624
+ DOT: bigint | null;
1625
+ };
1626
+ Ethereum: {
1627
+ FLIP: bigint | null;
1628
+ ETH: bigint | null;
1629
+ USDC: bigint | null;
1630
+ USDT: bigint | null;
1631
+ };
1632
+ Arbitrum: {
1633
+ ETH: bigint | null;
1634
+ USDC: bigint | null;
1635
+ };
1636
+ };
1637
+ witness_safety_margins: {
1638
+ Bitcoin: number | null;
1639
+ Polkadot: number | null;
1640
+ Ethereum: number | null;
1641
+ Arbitrum: number | null;
1642
+ };
1643
+ egress_dust_limits: {
1644
+ Bitcoin: {
1645
+ BTC: bigint;
1646
+ };
1647
+ Polkadot: {
1648
+ DOT: bigint;
1649
+ };
1650
+ Ethereum: {
1651
+ FLIP: bigint;
1652
+ ETH: bigint;
1653
+ USDC: bigint;
1654
+ USDT: bigint;
1655
+ };
1656
+ Arbitrum: {
1657
+ ETH: bigint;
1658
+ USDC: bigint;
1659
+ };
1660
+ };
1661
+ channel_opening_fees: {
1662
+ Bitcoin: bigint;
1663
+ Polkadot: bigint;
1664
+ Ethereum: bigint;
1665
+ Arbitrum: bigint;
1666
+ };
1667
+ }, {
1668
+ minimum_deposit_amounts: {
1669
+ Bitcoin: {
1670
+ BTC: string | number;
1671
+ };
1672
+ Polkadot: {
1673
+ DOT: string | number;
1674
+ };
1675
+ Ethereum: {
1676
+ FLIP: string | number;
1677
+ ETH: string | number;
1678
+ USDC: string | number;
1679
+ USDT: string | number;
1680
+ };
1681
+ Arbitrum: {
1682
+ ETH: string | number;
1683
+ USDC: string | number;
1684
+ };
1685
+ };
1686
+ ingress_fees: {
1687
+ Bitcoin: {
1688
+ BTC: string | number | null;
1689
+ };
1690
+ Polkadot: {
1691
+ DOT: string | number | null;
1692
+ };
1693
+ Ethereum: {
1694
+ FLIP: string | number | null;
1695
+ ETH: string | number | null;
1696
+ USDC: string | number | null;
1697
+ USDT: string | number | null;
1698
+ };
1699
+ Arbitrum: {
1700
+ ETH: string | number | null;
1701
+ USDC: string | number | null;
1702
+ };
1703
+ };
1704
+ egress_fees: {
1705
+ Bitcoin: {
1706
+ BTC: string | number | null;
1707
+ };
1708
+ Polkadot: {
1709
+ DOT: string | number | null;
1710
+ };
1711
+ Ethereum: {
1712
+ FLIP: string | number | null;
1713
+ ETH: string | number | null;
1714
+ USDC: string | number | null;
1715
+ USDT: string | number | null;
1716
+ };
1717
+ Arbitrum: {
1718
+ ETH: string | number | null;
1719
+ USDC: string | number | null;
1720
+ };
1721
+ };
1722
+ witness_safety_margins: {
1723
+ Bitcoin: number | null;
1724
+ Polkadot: number | null;
1725
+ Ethereum: number | null;
1726
+ Arbitrum: number | null;
1727
+ };
1728
+ egress_dust_limits: {
1729
+ Bitcoin: {
1730
+ BTC: string | number;
1731
+ };
1732
+ Polkadot: {
1733
+ DOT: string | number;
1734
+ };
1735
+ Ethereum: {
1736
+ FLIP: string | number;
1737
+ ETH: string | number;
1738
+ USDC: string | number;
1739
+ USDT: string | number;
1740
+ };
1741
+ Arbitrum: {
1742
+ ETH: string | number;
1743
+ USDC: string | number;
1744
+ };
1745
+ };
1746
+ channel_opening_fees: {
1747
+ Bitcoin: string | number;
1748
+ Polkadot: string | number;
1749
+ Ethereum: string | number;
1750
+ Arbitrum: string | number;
1751
+ };
1752
+ }>, Omit<{
1753
+ minimum_deposit_amounts: {
1754
+ Bitcoin: {
1755
+ BTC: bigint;
1756
+ };
1757
+ Polkadot: {
1758
+ DOT: bigint;
1759
+ };
1760
+ Ethereum: {
1761
+ FLIP: bigint;
1762
+ ETH: bigint;
1763
+ USDC: bigint;
1764
+ USDT: bigint;
1765
+ };
1766
+ Arbitrum: {
1767
+ ETH: bigint;
1768
+ USDC: bigint;
1769
+ };
1770
+ };
1771
+ ingress_fees: {
1772
+ Bitcoin: {
1773
+ BTC: bigint | null;
1774
+ };
1775
+ Polkadot: {
1776
+ DOT: bigint | null;
1777
+ };
1778
+ Ethereum: {
1779
+ FLIP: bigint | null;
1780
+ ETH: bigint | null;
1781
+ USDC: bigint | null;
1782
+ USDT: bigint | null;
1783
+ };
1784
+ Arbitrum: {
1785
+ ETH: bigint | null;
1786
+ USDC: bigint | null;
1787
+ };
1788
+ };
1789
+ egress_fees: {
1790
+ Bitcoin: {
1791
+ BTC: bigint | null;
1792
+ };
1793
+ Polkadot: {
1794
+ DOT: bigint | null;
1795
+ };
1796
+ Ethereum: {
1797
+ FLIP: bigint | null;
1798
+ ETH: bigint | null;
1799
+ USDC: bigint | null;
1800
+ USDT: bigint | null;
1801
+ };
1802
+ Arbitrum: {
1803
+ ETH: bigint | null;
1804
+ USDC: bigint | null;
1805
+ };
1806
+ };
1807
+ witness_safety_margins: {
1808
+ Bitcoin: number | null;
1809
+ Polkadot: number | null;
1810
+ Ethereum: number | null;
1811
+ Arbitrum: number | null;
1812
+ };
1813
+ egress_dust_limits: {
1814
+ Bitcoin: {
1815
+ BTC: bigint;
1816
+ };
1817
+ Polkadot: {
1818
+ DOT: bigint;
1819
+ };
1820
+ Ethereum: {
1821
+ FLIP: bigint;
1822
+ ETH: bigint;
1823
+ USDC: bigint;
1824
+ USDT: bigint;
1825
+ };
1826
+ Arbitrum: {
1827
+ ETH: bigint;
1828
+ USDC: bigint;
1829
+ };
1830
+ };
1831
+ channel_opening_fees: {
1832
+ Bitcoin: bigint;
1833
+ Polkadot: bigint;
1834
+ Ethereum: bigint;
1835
+ Arbitrum: bigint;
1836
+ };
1837
+ }, "egress_dust_limits"> & {
1838
+ readonly minimum_egress_amounts: {
1839
+ Bitcoin: {
1840
+ BTC: bigint;
1841
+ };
1842
+ Polkadot: {
1843
+ DOT: bigint;
1844
+ };
1845
+ Ethereum: {
1846
+ FLIP: bigint;
1847
+ ETH: bigint;
1848
+ USDC: bigint;
1849
+ USDT: bigint;
1850
+ };
1851
+ Arbitrum: {
1852
+ ETH: bigint;
1853
+ USDC: bigint;
1854
+ };
1855
+ };
1856
+ }, {
1857
+ minimum_deposit_amounts: {
1858
+ Bitcoin: {
1859
+ BTC: string | number;
1860
+ };
1861
+ Polkadot: {
1862
+ DOT: string | number;
1863
+ };
1864
+ Ethereum: {
1865
+ FLIP: string | number;
1866
+ ETH: string | number;
1867
+ USDC: string | number;
1868
+ USDT: string | number;
1869
+ };
1870
+ Arbitrum: {
1871
+ ETH: string | number;
1872
+ USDC: string | number;
1873
+ };
1874
+ };
1875
+ ingress_fees: {
1876
+ Bitcoin: {
1877
+ BTC: string | number | null;
1878
+ };
1879
+ Polkadot: {
1880
+ DOT: string | number | null;
1881
+ };
1882
+ Ethereum: {
1883
+ FLIP: string | number | null;
1884
+ ETH: string | number | null;
1885
+ USDC: string | number | null;
1886
+ USDT: string | number | null;
1887
+ };
1888
+ Arbitrum: {
1889
+ ETH: string | number | null;
1890
+ USDC: string | number | null;
1891
+ };
1892
+ };
1893
+ egress_fees: {
1894
+ Bitcoin: {
1895
+ BTC: string | number | null;
1896
+ };
1897
+ Polkadot: {
1898
+ DOT: string | number | null;
1899
+ };
1900
+ Ethereum: {
1901
+ FLIP: string | number | null;
1902
+ ETH: string | number | null;
1903
+ USDC: string | number | null;
1904
+ USDT: string | number | null;
1905
+ };
1906
+ Arbitrum: {
1907
+ ETH: string | number | null;
1908
+ USDC: string | number | null;
1909
+ };
1910
+ };
1911
+ witness_safety_margins: {
1912
+ Bitcoin: number | null;
1913
+ Polkadot: number | null;
1914
+ Ethereum: number | null;
1915
+ Arbitrum: number | null;
1916
+ };
1917
+ egress_dust_limits: {
1918
+ Bitcoin: {
1919
+ BTC: string | number;
1920
+ };
1921
+ Polkadot: {
1922
+ DOT: string | number;
1923
+ };
1924
+ Ethereum: {
1925
+ FLIP: string | number;
1926
+ ETH: string | number;
1927
+ USDC: string | number;
1928
+ USDT: string | number;
1929
+ };
1930
+ Arbitrum: {
1931
+ ETH: string | number;
1932
+ USDC: string | number;
1933
+ };
1934
+ };
1935
+ channel_opening_fees: {
1936
+ Bitcoin: string | number;
1937
+ Polkadot: string | number;
1938
+ Ethereum: string | number;
1939
+ Arbitrum: string | number;
1940
+ };
1941
+ }>;
1942
+ readonly cf_supported_assets: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1943
+ chain: z.ZodLiteral<"Bitcoin">;
1944
+ asset: z.ZodLiteral<"BTC">;
1945
+ }, "strip", z.ZodTypeAny, {
1946
+ chain: "Bitcoin";
1947
+ asset: "BTC";
1948
+ }, {
1949
+ chain: "Bitcoin";
1950
+ asset: "BTC";
1951
+ }>, z.ZodObject<{
1952
+ chain: z.ZodLiteral<"Polkadot">;
1953
+ asset: z.ZodLiteral<"DOT">;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ chain: "Polkadot";
1956
+ asset: "DOT";
1957
+ }, {
1958
+ chain: "Polkadot";
1959
+ asset: "DOT";
1960
+ }>, z.ZodObject<{
1961
+ chain: z.ZodLiteral<"Ethereum">;
1962
+ asset: z.ZodLiteral<"FLIP">;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ chain: "Ethereum";
1965
+ asset: "FLIP";
1966
+ }, {
1967
+ chain: "Ethereum";
1968
+ asset: "FLIP";
1969
+ }>, z.ZodObject<{
1970
+ chain: z.ZodLiteral<"Ethereum">;
1971
+ asset: z.ZodLiteral<"ETH">;
1972
+ }, "strip", z.ZodTypeAny, {
1973
+ chain: "Ethereum";
1974
+ asset: "ETH";
1975
+ }, {
1976
+ chain: "Ethereum";
1977
+ asset: "ETH";
1978
+ }>, z.ZodObject<{
1979
+ chain: z.ZodLiteral<"Ethereum">;
1980
+ asset: z.ZodLiteral<"USDC">;
1981
+ }, "strip", z.ZodTypeAny, {
1982
+ chain: "Ethereum";
1983
+ asset: "USDC";
1984
+ }, {
1985
+ chain: "Ethereum";
1986
+ asset: "USDC";
1987
+ }>, z.ZodObject<{
1988
+ chain: z.ZodLiteral<"Ethereum">;
1989
+ asset: z.ZodLiteral<"USDT">;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ chain: "Ethereum";
1992
+ asset: "USDT";
1993
+ }, {
1994
+ chain: "Ethereum";
1995
+ asset: "USDT";
1996
+ }>, z.ZodObject<{
1997
+ chain: z.ZodLiteral<"Arbitrum">;
1998
+ asset: z.ZodLiteral<"ETH">;
1999
+ }, "strip", z.ZodTypeAny, {
2000
+ chain: "Arbitrum";
2001
+ asset: "ETH";
2002
+ }, {
2003
+ chain: "Arbitrum";
2004
+ asset: "ETH";
2005
+ }>, z.ZodObject<{
2006
+ chain: z.ZodLiteral<"Arbitrum">;
2007
+ asset: z.ZodLiteral<"USDC">;
2008
+ }, "strip", z.ZodTypeAny, {
2009
+ chain: "Arbitrum";
2010
+ asset: "USDC";
2011
+ }, {
2012
+ chain: "Arbitrum";
2013
+ asset: "USDC";
2014
+ }>]>, "many">;
2015
+ readonly cf_swap_rate: z.ZodObject<{
2016
+ intermediary: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2017
+ output: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
2018
+ }, "strip", z.ZodTypeAny, {
2019
+ intermediary: bigint | null;
2020
+ output: bigint;
2021
+ }, {
2022
+ intermediary: string | number | null;
2023
+ output: string | number;
2024
+ }>;
2025
+ readonly cf_swap_rate_v2: z.ZodObject<{
2026
+ egress_fee: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2027
+ chain: z.ZodLiteral<"Bitcoin">;
2028
+ asset: z.ZodLiteral<"BTC">;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ chain: "Bitcoin";
2031
+ asset: "BTC";
2032
+ }, {
2033
+ chain: "Bitcoin";
2034
+ asset: "BTC";
2035
+ }>, z.ZodObject<{
2036
+ chain: z.ZodLiteral<"Polkadot">;
2037
+ asset: z.ZodLiteral<"DOT">;
2038
+ }, "strip", z.ZodTypeAny, {
2039
+ chain: "Polkadot";
2040
+ asset: "DOT";
2041
+ }, {
2042
+ chain: "Polkadot";
2043
+ asset: "DOT";
2044
+ }>, z.ZodObject<{
2045
+ chain: z.ZodLiteral<"Ethereum">;
2046
+ asset: z.ZodLiteral<"FLIP">;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ chain: "Ethereum";
2049
+ asset: "FLIP";
2050
+ }, {
2051
+ chain: "Ethereum";
2052
+ asset: "FLIP";
2053
+ }>, z.ZodObject<{
2054
+ chain: z.ZodLiteral<"Ethereum">;
2055
+ asset: z.ZodLiteral<"ETH">;
2056
+ }, "strip", z.ZodTypeAny, {
2057
+ chain: "Ethereum";
2058
+ asset: "ETH";
2059
+ }, {
2060
+ chain: "Ethereum";
2061
+ asset: "ETH";
2062
+ }>, z.ZodObject<{
2063
+ chain: z.ZodLiteral<"Ethereum">;
2064
+ asset: z.ZodLiteral<"USDC">;
2065
+ }, "strip", z.ZodTypeAny, {
2066
+ chain: "Ethereum";
2067
+ asset: "USDC";
2068
+ }, {
2069
+ chain: "Ethereum";
2070
+ asset: "USDC";
2071
+ }>, z.ZodObject<{
2072
+ chain: z.ZodLiteral<"Ethereum">;
2073
+ asset: z.ZodLiteral<"USDT">;
2074
+ }, "strip", z.ZodTypeAny, {
2075
+ chain: "Ethereum";
2076
+ asset: "USDT";
2077
+ }, {
2078
+ chain: "Ethereum";
2079
+ asset: "USDT";
2080
+ }>, z.ZodObject<{
2081
+ chain: z.ZodLiteral<"Arbitrum">;
2082
+ asset: z.ZodLiteral<"ETH">;
2083
+ }, "strip", z.ZodTypeAny, {
2084
+ chain: "Arbitrum";
2085
+ asset: "ETH";
2086
+ }, {
2087
+ chain: "Arbitrum";
2088
+ asset: "ETH";
2089
+ }>, z.ZodObject<{
2090
+ chain: z.ZodLiteral<"Arbitrum">;
2091
+ asset: z.ZodLiteral<"USDC">;
2092
+ }, "strip", z.ZodTypeAny, {
2093
+ chain: "Arbitrum";
2094
+ asset: "USDC";
2095
+ }, {
2096
+ chain: "Arbitrum";
2097
+ asset: "USDC";
2098
+ }>]>, z.ZodObject<{
2099
+ amount: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
2100
+ }, "strip", z.ZodTypeAny, {
2101
+ amount: bigint;
2102
+ }, {
2103
+ amount: string | number;
2104
+ }>>;
2105
+ ingress_fee: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2106
+ chain: z.ZodLiteral<"Bitcoin">;
2107
+ asset: z.ZodLiteral<"BTC">;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ chain: "Bitcoin";
2110
+ asset: "BTC";
2111
+ }, {
2112
+ chain: "Bitcoin";
2113
+ asset: "BTC";
2114
+ }>, z.ZodObject<{
2115
+ chain: z.ZodLiteral<"Polkadot">;
2116
+ asset: z.ZodLiteral<"DOT">;
2117
+ }, "strip", z.ZodTypeAny, {
2118
+ chain: "Polkadot";
2119
+ asset: "DOT";
2120
+ }, {
2121
+ chain: "Polkadot";
2122
+ asset: "DOT";
2123
+ }>, z.ZodObject<{
2124
+ chain: z.ZodLiteral<"Ethereum">;
2125
+ asset: z.ZodLiteral<"FLIP">;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ chain: "Ethereum";
2128
+ asset: "FLIP";
2129
+ }, {
2130
+ chain: "Ethereum";
2131
+ asset: "FLIP";
2132
+ }>, z.ZodObject<{
2133
+ chain: z.ZodLiteral<"Ethereum">;
2134
+ asset: z.ZodLiteral<"ETH">;
2135
+ }, "strip", z.ZodTypeAny, {
2136
+ chain: "Ethereum";
2137
+ asset: "ETH";
2138
+ }, {
2139
+ chain: "Ethereum";
2140
+ asset: "ETH";
2141
+ }>, z.ZodObject<{
2142
+ chain: z.ZodLiteral<"Ethereum">;
2143
+ asset: z.ZodLiteral<"USDC">;
2144
+ }, "strip", z.ZodTypeAny, {
2145
+ chain: "Ethereum";
2146
+ asset: "USDC";
2147
+ }, {
2148
+ chain: "Ethereum";
2149
+ asset: "USDC";
2150
+ }>, z.ZodObject<{
2151
+ chain: z.ZodLiteral<"Ethereum">;
2152
+ asset: z.ZodLiteral<"USDT">;
2153
+ }, "strip", z.ZodTypeAny, {
2154
+ chain: "Ethereum";
2155
+ asset: "USDT";
2156
+ }, {
2157
+ chain: "Ethereum";
2158
+ asset: "USDT";
2159
+ }>, z.ZodObject<{
2160
+ chain: z.ZodLiteral<"Arbitrum">;
2161
+ asset: z.ZodLiteral<"ETH">;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ chain: "Arbitrum";
2164
+ asset: "ETH";
2165
+ }, {
2166
+ chain: "Arbitrum";
2167
+ asset: "ETH";
2168
+ }>, z.ZodObject<{
2169
+ chain: z.ZodLiteral<"Arbitrum">;
2170
+ asset: z.ZodLiteral<"USDC">;
2171
+ }, "strip", z.ZodTypeAny, {
2172
+ chain: "Arbitrum";
2173
+ asset: "USDC";
2174
+ }, {
2175
+ chain: "Arbitrum";
2176
+ asset: "USDC";
2177
+ }>]>, z.ZodObject<{
2178
+ amount: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ amount: bigint;
2181
+ }, {
2182
+ amount: string | number;
2183
+ }>>;
2184
+ intermediary: z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>>;
2185
+ network_fee: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
2186
+ chain: z.ZodLiteral<"Bitcoin">;
2187
+ asset: z.ZodLiteral<"BTC">;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ chain: "Bitcoin";
2190
+ asset: "BTC";
2191
+ }, {
2192
+ chain: "Bitcoin";
2193
+ asset: "BTC";
2194
+ }>, z.ZodObject<{
2195
+ chain: z.ZodLiteral<"Polkadot">;
2196
+ asset: z.ZodLiteral<"DOT">;
2197
+ }, "strip", z.ZodTypeAny, {
2198
+ chain: "Polkadot";
2199
+ asset: "DOT";
2200
+ }, {
2201
+ chain: "Polkadot";
2202
+ asset: "DOT";
2203
+ }>, z.ZodObject<{
2204
+ chain: z.ZodLiteral<"Ethereum">;
2205
+ asset: z.ZodLiteral<"FLIP">;
2206
+ }, "strip", z.ZodTypeAny, {
2207
+ chain: "Ethereum";
2208
+ asset: "FLIP";
2209
+ }, {
2210
+ chain: "Ethereum";
2211
+ asset: "FLIP";
2212
+ }>, z.ZodObject<{
2213
+ chain: z.ZodLiteral<"Ethereum">;
2214
+ asset: z.ZodLiteral<"ETH">;
2215
+ }, "strip", z.ZodTypeAny, {
2216
+ chain: "Ethereum";
2217
+ asset: "ETH";
2218
+ }, {
2219
+ chain: "Ethereum";
2220
+ asset: "ETH";
2221
+ }>, z.ZodObject<{
2222
+ chain: z.ZodLiteral<"Ethereum">;
2223
+ asset: z.ZodLiteral<"USDC">;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ chain: "Ethereum";
2226
+ asset: "USDC";
2227
+ }, {
2228
+ chain: "Ethereum";
2229
+ asset: "USDC";
2230
+ }>, z.ZodObject<{
2231
+ chain: z.ZodLiteral<"Ethereum">;
2232
+ asset: z.ZodLiteral<"USDT">;
2233
+ }, "strip", z.ZodTypeAny, {
2234
+ chain: "Ethereum";
2235
+ asset: "USDT";
2236
+ }, {
2237
+ chain: "Ethereum";
2238
+ asset: "USDT";
2239
+ }>, z.ZodObject<{
2240
+ chain: z.ZodLiteral<"Arbitrum">;
2241
+ asset: z.ZodLiteral<"ETH">;
2242
+ }, "strip", z.ZodTypeAny, {
2243
+ chain: "Arbitrum";
2244
+ asset: "ETH";
2245
+ }, {
2246
+ chain: "Arbitrum";
2247
+ asset: "ETH";
2248
+ }>, z.ZodObject<{
2249
+ chain: z.ZodLiteral<"Arbitrum">;
2250
+ asset: z.ZodLiteral<"USDC">;
2251
+ }, "strip", z.ZodTypeAny, {
2252
+ chain: "Arbitrum";
2253
+ asset: "USDC";
2254
+ }, {
2255
+ chain: "Arbitrum";
2256
+ asset: "USDC";
2257
+ }>]>, z.ZodObject<{
2258
+ amount: z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ amount: bigint;
2261
+ }, {
2262
+ amount: string | number;
2263
+ }>>;
2264
+ output: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>;
2265
+ }, "strip", z.ZodTypeAny, {
2266
+ intermediary: bigint | null;
2267
+ output: bigint;
2268
+ egress_fee: ({
2269
+ chain: "Bitcoin";
2270
+ asset: "BTC";
2271
+ } | {
2272
+ chain: "Polkadot";
2273
+ asset: "DOT";
2274
+ } | {
2275
+ chain: "Ethereum";
2276
+ asset: "FLIP";
2277
+ } | {
2278
+ chain: "Ethereum";
2279
+ asset: "ETH";
2280
+ } | {
2281
+ chain: "Ethereum";
2282
+ asset: "USDC";
2283
+ } | {
2284
+ chain: "Ethereum";
2285
+ asset: "USDT";
2286
+ } | {
2287
+ chain: "Arbitrum";
2288
+ asset: "ETH";
2289
+ } | {
2290
+ chain: "Arbitrum";
2291
+ asset: "USDC";
2292
+ }) & {
2293
+ amount: bigint;
2294
+ };
2295
+ ingress_fee: ({
2296
+ chain: "Bitcoin";
2297
+ asset: "BTC";
2298
+ } | {
2299
+ chain: "Polkadot";
2300
+ asset: "DOT";
2301
+ } | {
2302
+ chain: "Ethereum";
2303
+ asset: "FLIP";
2304
+ } | {
2305
+ chain: "Ethereum";
2306
+ asset: "ETH";
2307
+ } | {
2308
+ chain: "Ethereum";
2309
+ asset: "USDC";
2310
+ } | {
2311
+ chain: "Ethereum";
2312
+ asset: "USDT";
2313
+ } | {
2314
+ chain: "Arbitrum";
2315
+ asset: "ETH";
2316
+ } | {
2317
+ chain: "Arbitrum";
2318
+ asset: "USDC";
2319
+ }) & {
2320
+ amount: bigint;
2321
+ };
2322
+ network_fee: ({
2323
+ chain: "Bitcoin";
2324
+ asset: "BTC";
2325
+ } | {
2326
+ chain: "Polkadot";
2327
+ asset: "DOT";
2328
+ } | {
2329
+ chain: "Ethereum";
2330
+ asset: "FLIP";
2331
+ } | {
2332
+ chain: "Ethereum";
2333
+ asset: "ETH";
2334
+ } | {
2335
+ chain: "Ethereum";
2336
+ asset: "USDC";
2337
+ } | {
2338
+ chain: "Ethereum";
2339
+ asset: "USDT";
2340
+ } | {
2341
+ chain: "Arbitrum";
2342
+ asset: "ETH";
2343
+ } | {
2344
+ chain: "Arbitrum";
2345
+ asset: "USDC";
2346
+ }) & {
2347
+ amount: bigint;
2348
+ };
2349
+ }, {
2350
+ intermediary: string | null;
2351
+ output: string;
2352
+ egress_fee: ({
2353
+ chain: "Bitcoin";
2354
+ asset: "BTC";
2355
+ } | {
2356
+ chain: "Polkadot";
2357
+ asset: "DOT";
2358
+ } | {
2359
+ chain: "Ethereum";
2360
+ asset: "FLIP";
2361
+ } | {
2362
+ chain: "Ethereum";
2363
+ asset: "ETH";
2364
+ } | {
2365
+ chain: "Ethereum";
2366
+ asset: "USDC";
2367
+ } | {
2368
+ chain: "Ethereum";
2369
+ asset: "USDT";
2370
+ } | {
2371
+ chain: "Arbitrum";
2372
+ asset: "ETH";
2373
+ } | {
2374
+ chain: "Arbitrum";
2375
+ asset: "USDC";
2376
+ }) & {
2377
+ amount: string | number;
2378
+ };
2379
+ ingress_fee: ({
2380
+ chain: "Bitcoin";
2381
+ asset: "BTC";
2382
+ } | {
2383
+ chain: "Polkadot";
2384
+ asset: "DOT";
2385
+ } | {
2386
+ chain: "Ethereum";
2387
+ asset: "FLIP";
2388
+ } | {
2389
+ chain: "Ethereum";
2390
+ asset: "ETH";
2391
+ } | {
2392
+ chain: "Ethereum";
2393
+ asset: "USDC";
2394
+ } | {
2395
+ chain: "Ethereum";
2396
+ asset: "USDT";
2397
+ } | {
2398
+ chain: "Arbitrum";
2399
+ asset: "ETH";
2400
+ } | {
2401
+ chain: "Arbitrum";
2402
+ asset: "USDC";
2403
+ }) & {
2404
+ amount: string | number;
2405
+ };
2406
+ network_fee: ({
2407
+ chain: "Bitcoin";
2408
+ asset: "BTC";
2409
+ } | {
2410
+ chain: "Polkadot";
2411
+ asset: "DOT";
2412
+ } | {
2413
+ chain: "Ethereum";
2414
+ asset: "FLIP";
2415
+ } | {
2416
+ chain: "Ethereum";
2417
+ asset: "ETH";
2418
+ } | {
2419
+ chain: "Ethereum";
2420
+ asset: "USDC";
2421
+ } | {
2422
+ chain: "Ethereum";
2423
+ asset: "USDT";
2424
+ } | {
2425
+ chain: "Arbitrum";
2426
+ asset: "ETH";
2427
+ } | {
2428
+ chain: "Arbitrum";
2429
+ asset: "USDC";
2430
+ }) & {
2431
+ amount: string | number;
2432
+ };
2433
+ }>;
2434
+ readonly cf_swapping_environment: z.ZodObject<{
2435
+ maximum_swap_amounts: z.ZodObject<{
2436
+ Bitcoin: z.ZodObject<{
2437
+ BTC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2438
+ }, "strip", z.ZodTypeAny, {
2439
+ BTC: bigint | null;
2440
+ }, {
2441
+ BTC: string | number | null;
2442
+ }>;
2443
+ Ethereum: z.ZodObject<{
2444
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2445
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2446
+ FLIP: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2447
+ USDT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2448
+ }, "strip", z.ZodTypeAny, {
2449
+ FLIP: bigint | null;
2450
+ ETH: bigint | null;
2451
+ USDC: bigint | null;
2452
+ USDT: bigint | null;
2453
+ }, {
2454
+ FLIP: string | number | null;
2455
+ ETH: string | number | null;
2456
+ USDC: string | number | null;
2457
+ USDT: string | number | null;
2458
+ }>;
2459
+ Polkadot: z.ZodObject<{
2460
+ DOT: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2461
+ }, "strip", z.ZodTypeAny, {
2462
+ DOT: bigint | null;
2463
+ }, {
2464
+ DOT: string | number | null;
2465
+ }>;
2466
+ Arbitrum: z.ZodObject<{
2467
+ ETH: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2468
+ USDC: z.ZodNullable<z.ZodUnion<[z.ZodEffects<z.ZodNumber, bigint, number>, z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, bigint, string>]>>;
2469
+ }, "strip", z.ZodTypeAny, {
2470
+ ETH: bigint | null;
2471
+ USDC: bigint | null;
2472
+ }, {
2473
+ ETH: string | number | null;
2474
+ USDC: string | number | null;
2475
+ }>;
2476
+ }, "strip", z.ZodTypeAny, {
2477
+ Bitcoin: {
2478
+ BTC: bigint | null;
2479
+ };
2480
+ Polkadot: {
2481
+ DOT: bigint | null;
2482
+ };
2483
+ Ethereum: {
2484
+ FLIP: bigint | null;
2485
+ ETH: bigint | null;
2486
+ USDC: bigint | null;
2487
+ USDT: bigint | null;
2488
+ };
2489
+ Arbitrum: {
2490
+ ETH: bigint | null;
2491
+ USDC: bigint | null;
2492
+ };
2493
+ }, {
2494
+ Bitcoin: {
2495
+ BTC: string | number | null;
2496
+ };
2497
+ Polkadot: {
2498
+ DOT: string | number | null;
2499
+ };
2500
+ Ethereum: {
2501
+ FLIP: string | number | null;
2502
+ ETH: string | number | null;
2503
+ USDC: string | number | null;
2504
+ USDT: string | number | null;
2505
+ };
2506
+ Arbitrum: {
2507
+ ETH: string | number | null;
2508
+ USDC: string | number | null;
2509
+ };
2510
+ }>;
2511
+ network_fee_hundredth_pips: z.ZodNumber;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ maximum_swap_amounts: {
2514
+ Bitcoin: {
2515
+ BTC: bigint | null;
2516
+ };
2517
+ Polkadot: {
2518
+ DOT: bigint | null;
2519
+ };
2520
+ Ethereum: {
2521
+ FLIP: bigint | null;
2522
+ ETH: bigint | null;
2523
+ USDC: bigint | null;
2524
+ USDT: bigint | null;
2525
+ };
2526
+ Arbitrum: {
2527
+ ETH: bigint | null;
2528
+ USDC: bigint | null;
2529
+ };
2530
+ };
2531
+ network_fee_hundredth_pips: number;
2532
+ }, {
2533
+ maximum_swap_amounts: {
2534
+ Bitcoin: {
2535
+ BTC: string | number | null;
2536
+ };
2537
+ Polkadot: {
2538
+ DOT: string | number | null;
2539
+ };
2540
+ Ethereum: {
2541
+ FLIP: string | number | null;
2542
+ ETH: string | number | null;
2543
+ USDC: string | number | null;
2544
+ USDT: string | number | null;
2545
+ };
2546
+ Arbitrum: {
2547
+ ETH: string | number | null;
2548
+ USDC: string | number | null;
2549
+ };
2550
+ };
2551
+ network_fee_hundredth_pips: number;
2552
+ }>;
2553
+ readonly chain_getBlockHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2554
+ readonly state_getMetadata: z.ZodEffects<z.ZodString, `0x${string}`, string>;
2555
+ readonly state_getRuntimeVersion: z.ZodObject<{
2556
+ specName: z.ZodString;
2557
+ implName: z.ZodString;
2558
+ authoringVersion: z.ZodNumber;
2559
+ specVersion: z.ZodNumber;
2560
+ implVersion: z.ZodNumber;
2561
+ apis: z.ZodArray<z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodNumber], null>, "many">;
2562
+ transactionVersion: z.ZodNumber;
2563
+ stateVersion: z.ZodNumber;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ specName: string;
2566
+ implName: string;
2567
+ authoringVersion: number;
2568
+ specVersion: number;
2569
+ implVersion: number;
2570
+ apis: [`0x${string}`, number][];
2571
+ transactionVersion: number;
2572
+ stateVersion: number;
2573
+ }, {
2574
+ specName: string;
2575
+ implName: string;
2576
+ authoringVersion: number;
2577
+ specVersion: number;
2578
+ implVersion: number;
2579
+ apis: [string, number][];
2580
+ transactionVersion: number;
2581
+ stateVersion: number;
2582
+ }>;
2583
+ };
2584
+ type RpcMethod = keyof RpcRequest;
2585
+ type RpcResponse<T extends RpcMethod> = z.input<(typeof rpcResult)[T]>;
2586
+ type RpcResult<T extends RpcMethod> = z.output<(typeof rpcResult)[T]>;
2587
+ type JsonRpcRequest<T extends RpcMethod> = {
2588
+ jsonrpc: '2.0';
2589
+ id: string;
2590
+ method: T;
2591
+ params: RpcRequest[T];
2592
+ };
2593
+ type JsonRpcResponse = z.output<typeof rpcResponse>;
2594
+
2595
+ export { type Chain, type JsonRpcRequest, type JsonRpcResponse, type RpcMethod, type RpcRequest, type RpcResponse, type RpcResult, rpcResponse, rpcResult };