@chainflip/sdk 1.3.0-beta.2 → 1.3.0-beta.4

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
@@ -1,442 +1,8 @@
1
1
  import { Signer } from 'ethers';
2
- import { C as ChainflipNetwork, a as Chain, A as Asset, I as InternalAsset, b as AssetOfChain, T as TransactionOptions, c as ChainAssetMap, d as ChainMap } from './contracts-lJ2ktbkk.js';
3
- export { f as Assets, g as ChainflipIds, h as ChainflipNetworks, e as Chains, i as getChainflipId } from './contracts-lJ2ktbkk.js';
2
+ import { C as Chain, A as Asset, I as InternalAsset, a as AssetOfChain, b as ChainflipNetwork, T as TransactionOptions, c as ChainAssetMap, d as ChainMap } from './contracts-b0BB7B5m.js';
3
+ export { f as Assets, g as ChainflipIds, h as ChainflipNetworks, e as Chains, i as getChainflipId } from './contracts-b0BB7B5m.js';
4
4
  import { z } from 'zod';
5
5
 
6
- declare const tokenSwapParamsSchema: (network: ChainflipNetwork) => z.ZodUnion<[z.ZodObject<{
7
- amount: z.ZodString;
8
- srcChain: z.ZodLiteral<"Ethereum">;
9
- destChain: z.ZodLiteral<"Ethereum">;
10
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
11
- srcAsset: z.ZodLiteral<"FLIP">;
12
- destAsset: z.ZodUnion<[z.ZodLiteral<"USDC">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDT">]>;
13
- }, "strip", z.ZodTypeAny, {
14
- amount: string;
15
- srcChain: "Ethereum";
16
- srcAsset: "FLIP";
17
- destChain: "Ethereum";
18
- destAsset: "USDC" | "ETH" | "USDT";
19
- destAddress: `0x${string}`;
20
- }, {
21
- amount: string;
22
- srcChain: "Ethereum";
23
- srcAsset: "FLIP";
24
- destChain: "Ethereum";
25
- destAsset: "USDC" | "ETH" | "USDT";
26
- destAddress: string;
27
- }>, z.ZodObject<{
28
- amount: z.ZodString;
29
- srcChain: z.ZodLiteral<"Ethereum">;
30
- destChain: z.ZodLiteral<"Ethereum">;
31
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
32
- srcAsset: z.ZodLiteral<"USDC">;
33
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDT">]>;
34
- }, "strip", z.ZodTypeAny, {
35
- amount: string;
36
- srcChain: "Ethereum";
37
- srcAsset: "USDC";
38
- destChain: "Ethereum";
39
- destAsset: "FLIP" | "ETH" | "USDT";
40
- destAddress: `0x${string}`;
41
- }, {
42
- amount: string;
43
- srcChain: "Ethereum";
44
- srcAsset: "USDC";
45
- destChain: "Ethereum";
46
- destAsset: "FLIP" | "ETH" | "USDT";
47
- destAddress: string;
48
- }>, z.ZodObject<{
49
- amount: z.ZodString;
50
- srcChain: z.ZodLiteral<"Ethereum">;
51
- destChain: z.ZodLiteral<"Ethereum">;
52
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
53
- srcAsset: z.ZodLiteral<"USDT">;
54
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDC">]>;
55
- }, "strip", z.ZodTypeAny, {
56
- amount: string;
57
- srcChain: "Ethereum";
58
- srcAsset: "USDT";
59
- destChain: "Ethereum";
60
- destAsset: "FLIP" | "USDC" | "ETH";
61
- destAddress: `0x${string}`;
62
- }, {
63
- amount: string;
64
- srcChain: "Ethereum";
65
- srcAsset: "USDT";
66
- destChain: "Ethereum";
67
- destAsset: "FLIP" | "USDC" | "ETH";
68
- destAddress: string;
69
- }>, z.ZodObject<{
70
- amount: z.ZodString;
71
- srcChain: z.ZodLiteral<"Ethereum">;
72
- destChain: z.ZodLiteral<"Polkadot">;
73
- destAsset: z.ZodLiteral<"DOT">;
74
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string | null, string>, string, string>, string, string>;
75
- srcAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"USDC">, z.ZodLiteral<"USDT">]>;
76
- }, "strip", z.ZodTypeAny, {
77
- amount: string;
78
- srcChain: "Ethereum";
79
- srcAsset: "FLIP" | "USDC" | "USDT";
80
- destChain: "Polkadot";
81
- destAsset: "DOT";
82
- destAddress: string;
83
- }, {
84
- amount: string;
85
- srcChain: "Ethereum";
86
- srcAsset: "FLIP" | "USDC" | "USDT";
87
- destChain: "Polkadot";
88
- destAsset: "DOT";
89
- destAddress: string;
90
- }>, z.ZodObject<{
91
- amount: z.ZodString;
92
- srcChain: z.ZodLiteral<"Ethereum">;
93
- destChain: z.ZodLiteral<"Bitcoin">;
94
- destAsset: z.ZodLiteral<"BTC">;
95
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string> | z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>, string, string>;
96
- srcAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"USDC">, z.ZodLiteral<"USDT">]>;
97
- }, "strip", z.ZodTypeAny, {
98
- amount: string;
99
- srcChain: "Ethereum";
100
- srcAsset: "FLIP" | "USDC" | "USDT";
101
- destChain: "Bitcoin";
102
- destAsset: "BTC";
103
- destAddress: string;
104
- }, {
105
- amount: string;
106
- srcChain: "Ethereum";
107
- srcAsset: "FLIP" | "USDC" | "USDT";
108
- destChain: "Bitcoin";
109
- destAsset: "BTC";
110
- destAddress: string;
111
- }>]>;
112
- declare const executeSwapParamsSchema: (network: ChainflipNetwork) => z.ZodUnion<[z.ZodObject<{
113
- amount: z.ZodString;
114
- srcChain: z.ZodLiteral<"Ethereum">;
115
- srcAsset: z.ZodLiteral<"ETH">;
116
- destChain: z.ZodLiteral<"Ethereum">;
117
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"USDC">, z.ZodLiteral<"USDT">]>;
118
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
119
- ccmMetadata: z.ZodObject<{
120
- gasBudget: z.ZodString;
121
- message: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
122
- }, "strip", z.ZodTypeAny, {
123
- message: `0x${string}`;
124
- gasBudget: string;
125
- }, {
126
- message: string;
127
- gasBudget: string;
128
- }>;
129
- }, "strip", z.ZodTypeAny, {
130
- amount: string;
131
- srcChain: "Ethereum";
132
- srcAsset: "ETH";
133
- destChain: "Ethereum";
134
- destAsset: "FLIP" | "USDC" | "USDT";
135
- destAddress: `0x${string}`;
136
- ccmMetadata: {
137
- message: `0x${string}`;
138
- gasBudget: string;
139
- };
140
- }, {
141
- amount: string;
142
- srcChain: "Ethereum";
143
- srcAsset: "ETH";
144
- destChain: "Ethereum";
145
- destAsset: "FLIP" | "USDC" | "USDT";
146
- destAddress: string;
147
- ccmMetadata: {
148
- message: string;
149
- gasBudget: string;
150
- };
151
- }>, z.ZodUnion<[z.ZodObject<{
152
- amount: z.ZodString;
153
- srcChain: z.ZodLiteral<"Ethereum">;
154
- srcAsset: z.ZodLiteral<"FLIP">;
155
- destChain: z.ZodLiteral<"Ethereum">;
156
- destAsset: z.ZodUnion<[z.ZodLiteral<"USDC">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDT">]>;
157
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
158
- ccmMetadata: z.ZodObject<{
159
- gasBudget: z.ZodString;
160
- message: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
161
- }, "strip", z.ZodTypeAny, {
162
- message: `0x${string}`;
163
- gasBudget: string;
164
- }, {
165
- message: string;
166
- gasBudget: string;
167
- }>;
168
- }, "strip", z.ZodTypeAny, {
169
- amount: string;
170
- srcChain: "Ethereum";
171
- srcAsset: "FLIP";
172
- destChain: "Ethereum";
173
- destAsset: "USDC" | "ETH" | "USDT";
174
- destAddress: `0x${string}`;
175
- ccmMetadata: {
176
- message: `0x${string}`;
177
- gasBudget: string;
178
- };
179
- }, {
180
- amount: string;
181
- srcChain: "Ethereum";
182
- srcAsset: "FLIP";
183
- destChain: "Ethereum";
184
- destAsset: "USDC" | "ETH" | "USDT";
185
- destAddress: string;
186
- ccmMetadata: {
187
- message: string;
188
- gasBudget: string;
189
- };
190
- }>, z.ZodObject<{
191
- amount: z.ZodString;
192
- srcChain: z.ZodLiteral<"Ethereum">;
193
- srcAsset: z.ZodLiteral<"USDC">;
194
- destChain: z.ZodLiteral<"Ethereum">;
195
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDT">]>;
196
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
197
- ccmMetadata: z.ZodObject<{
198
- gasBudget: z.ZodString;
199
- message: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
200
- }, "strip", z.ZodTypeAny, {
201
- message: `0x${string}`;
202
- gasBudget: string;
203
- }, {
204
- message: string;
205
- gasBudget: string;
206
- }>;
207
- }, "strip", z.ZodTypeAny, {
208
- amount: string;
209
- srcChain: "Ethereum";
210
- srcAsset: "USDC";
211
- destChain: "Ethereum";
212
- destAsset: "FLIP" | "ETH" | "USDT";
213
- destAddress: `0x${string}`;
214
- ccmMetadata: {
215
- message: `0x${string}`;
216
- gasBudget: string;
217
- };
218
- }, {
219
- amount: string;
220
- srcChain: "Ethereum";
221
- srcAsset: "USDC";
222
- destChain: "Ethereum";
223
- destAsset: "FLIP" | "ETH" | "USDT";
224
- destAddress: string;
225
- ccmMetadata: {
226
- message: string;
227
- gasBudget: string;
228
- };
229
- }>, z.ZodObject<{
230
- amount: z.ZodString;
231
- srcChain: z.ZodLiteral<"Ethereum">;
232
- srcAsset: z.ZodLiteral<"USDT">;
233
- destChain: z.ZodLiteral<"Ethereum">;
234
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDC">]>;
235
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
236
- ccmMetadata: z.ZodObject<{
237
- gasBudget: z.ZodString;
238
- message: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
239
- }, "strip", z.ZodTypeAny, {
240
- message: `0x${string}`;
241
- gasBudget: string;
242
- }, {
243
- message: string;
244
- gasBudget: string;
245
- }>;
246
- }, "strip", z.ZodTypeAny, {
247
- amount: string;
248
- srcChain: "Ethereum";
249
- srcAsset: "USDT";
250
- destChain: "Ethereum";
251
- destAsset: "FLIP" | "USDC" | "ETH";
252
- destAddress: `0x${string}`;
253
- ccmMetadata: {
254
- message: `0x${string}`;
255
- gasBudget: string;
256
- };
257
- }, {
258
- amount: string;
259
- srcChain: "Ethereum";
260
- srcAsset: "USDT";
261
- destChain: "Ethereum";
262
- destAsset: "FLIP" | "USDC" | "ETH";
263
- destAddress: string;
264
- ccmMetadata: {
265
- message: string;
266
- gasBudget: string;
267
- };
268
- }>]>, z.ZodUnion<[z.ZodObject<{
269
- amount: z.ZodString;
270
- srcChain: z.ZodLiteral<"Ethereum">;
271
- srcAsset: z.ZodLiteral<"ETH">;
272
- destChain: z.ZodLiteral<"Ethereum">;
273
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
274
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"USDC">, z.ZodLiteral<"USDT">]>;
275
- }, "strip", z.ZodTypeAny, {
276
- amount: string;
277
- srcChain: "Ethereum";
278
- srcAsset: "ETH";
279
- destChain: "Ethereum";
280
- destAsset: "FLIP" | "USDC" | "USDT";
281
- destAddress: `0x${string}`;
282
- }, {
283
- amount: string;
284
- srcChain: "Ethereum";
285
- srcAsset: "ETH";
286
- destChain: "Ethereum";
287
- destAsset: "FLIP" | "USDC" | "USDT";
288
- destAddress: string;
289
- }>, z.ZodObject<{
290
- amount: z.ZodString;
291
- srcChain: z.ZodLiteral<"Ethereum">;
292
- srcAsset: z.ZodLiteral<"ETH">;
293
- destChain: z.ZodLiteral<"Polkadot">;
294
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string | null, string>, string, string>, string, string>;
295
- destAsset: z.ZodLiteral<"DOT">;
296
- }, "strip", z.ZodTypeAny, {
297
- amount: string;
298
- srcChain: "Ethereum";
299
- srcAsset: "ETH";
300
- destChain: "Polkadot";
301
- destAsset: "DOT";
302
- destAddress: string;
303
- }, {
304
- amount: string;
305
- srcChain: "Ethereum";
306
- srcAsset: "ETH";
307
- destChain: "Polkadot";
308
- destAsset: "DOT";
309
- destAddress: string;
310
- }>, z.ZodObject<{
311
- amount: z.ZodString;
312
- srcChain: z.ZodLiteral<"Ethereum">;
313
- srcAsset: z.ZodLiteral<"ETH">;
314
- destChain: z.ZodLiteral<"Bitcoin">;
315
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string> | z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>, string, string>;
316
- destAsset: z.ZodLiteral<"BTC">;
317
- }, "strip", z.ZodTypeAny, {
318
- amount: string;
319
- srcChain: "Ethereum";
320
- srcAsset: "ETH";
321
- destChain: "Bitcoin";
322
- destAsset: "BTC";
323
- destAddress: string;
324
- }, {
325
- amount: string;
326
- srcChain: "Ethereum";
327
- srcAsset: "ETH";
328
- destChain: "Bitcoin";
329
- destAsset: "BTC";
330
- destAddress: string;
331
- }>]>, z.ZodUnion<[z.ZodObject<{
332
- amount: z.ZodString;
333
- srcChain: z.ZodLiteral<"Ethereum">;
334
- destChain: z.ZodLiteral<"Ethereum">;
335
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
336
- srcAsset: z.ZodLiteral<"FLIP">;
337
- destAsset: z.ZodUnion<[z.ZodLiteral<"USDC">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDT">]>;
338
- }, "strip", z.ZodTypeAny, {
339
- amount: string;
340
- srcChain: "Ethereum";
341
- srcAsset: "FLIP";
342
- destChain: "Ethereum";
343
- destAsset: "USDC" | "ETH" | "USDT";
344
- destAddress: `0x${string}`;
345
- }, {
346
- amount: string;
347
- srcChain: "Ethereum";
348
- srcAsset: "FLIP";
349
- destChain: "Ethereum";
350
- destAsset: "USDC" | "ETH" | "USDT";
351
- destAddress: string;
352
- }>, z.ZodObject<{
353
- amount: z.ZodString;
354
- srcChain: z.ZodLiteral<"Ethereum">;
355
- destChain: z.ZodLiteral<"Ethereum">;
356
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
357
- srcAsset: z.ZodLiteral<"USDC">;
358
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDT">]>;
359
- }, "strip", z.ZodTypeAny, {
360
- amount: string;
361
- srcChain: "Ethereum";
362
- srcAsset: "USDC";
363
- destChain: "Ethereum";
364
- destAsset: "FLIP" | "ETH" | "USDT";
365
- destAddress: `0x${string}`;
366
- }, {
367
- amount: string;
368
- srcChain: "Ethereum";
369
- srcAsset: "USDC";
370
- destChain: "Ethereum";
371
- destAsset: "FLIP" | "ETH" | "USDT";
372
- destAddress: string;
373
- }>, z.ZodObject<{
374
- amount: z.ZodString;
375
- srcChain: z.ZodLiteral<"Ethereum">;
376
- destChain: z.ZodLiteral<"Ethereum">;
377
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
378
- srcAsset: z.ZodLiteral<"USDT">;
379
- destAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"ETH">, z.ZodLiteral<"USDC">]>;
380
- }, "strip", z.ZodTypeAny, {
381
- amount: string;
382
- srcChain: "Ethereum";
383
- srcAsset: "USDT";
384
- destChain: "Ethereum";
385
- destAsset: "FLIP" | "USDC" | "ETH";
386
- destAddress: `0x${string}`;
387
- }, {
388
- amount: string;
389
- srcChain: "Ethereum";
390
- srcAsset: "USDT";
391
- destChain: "Ethereum";
392
- destAsset: "FLIP" | "USDC" | "ETH";
393
- destAddress: string;
394
- }>, z.ZodObject<{
395
- amount: z.ZodString;
396
- srcChain: z.ZodLiteral<"Ethereum">;
397
- destChain: z.ZodLiteral<"Polkadot">;
398
- destAsset: z.ZodLiteral<"DOT">;
399
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodString, `0x${string}`, string>]>, string | null, string>, string, string>, string, string>;
400
- srcAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"USDC">, z.ZodLiteral<"USDT">]>;
401
- }, "strip", z.ZodTypeAny, {
402
- amount: string;
403
- srcChain: "Ethereum";
404
- srcAsset: "FLIP" | "USDC" | "USDT";
405
- destChain: "Polkadot";
406
- destAsset: "DOT";
407
- destAddress: string;
408
- }, {
409
- amount: string;
410
- srcChain: "Ethereum";
411
- srcAsset: "FLIP" | "USDC" | "USDT";
412
- destChain: "Polkadot";
413
- destAsset: "DOT";
414
- destAddress: string;
415
- }>, z.ZodObject<{
416
- amount: z.ZodString;
417
- srcChain: z.ZodLiteral<"Ethereum">;
418
- destChain: z.ZodLiteral<"Bitcoin">;
419
- destAsset: z.ZodLiteral<"BTC">;
420
- destAddress: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string> | z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>]>, string, string>;
421
- srcAsset: z.ZodUnion<[z.ZodLiteral<"FLIP">, z.ZodLiteral<"USDC">, z.ZodLiteral<"USDT">]>;
422
- }, "strip", z.ZodTypeAny, {
423
- amount: string;
424
- srcChain: "Ethereum";
425
- srcAsset: "FLIP" | "USDC" | "USDT";
426
- destChain: "Bitcoin";
427
- destAsset: "BTC";
428
- destAddress: string;
429
- }, {
430
- amount: string;
431
- srcChain: "Ethereum";
432
- srcAsset: "FLIP" | "USDC" | "USDT";
433
- destChain: "Bitcoin";
434
- destAsset: "BTC";
435
- destAddress: string;
436
- }>]>]>;
437
- type ExecuteSwapParams = z.infer<ReturnType<typeof executeSwapParamsSchema>>;
438
- type TokenSwapParams = z.infer<ReturnType<typeof tokenSwapParamsSchema>>;
439
-
440
6
  declare const ccmMetadataSchema: z.ZodObject<{
441
7
  gasBudget: z.ZodString;
442
8
  message: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, `0x${string}`, string>;
@@ -462,6 +28,16 @@ type QuoteQueryResponse = {
462
28
  estimatedDurationSeconds: number;
463
29
  };
464
30
 
31
+ interface ExecuteSwapParams {
32
+ srcChain: Chain;
33
+ srcAsset: Asset;
34
+ destChain: Chain;
35
+ destAsset: Asset;
36
+ amount: string;
37
+ destAddress: string;
38
+ ccmMetadata?: CcmMetadata;
39
+ }
40
+
465
41
  interface ChainData {
466
42
  chain: Chain;
467
43
  name: string;
@@ -630,6 +206,7 @@ type SwapState = {
630
206
  broadcastRequestedBlockIndex: string;
631
207
  broadcastSucceededAt: number;
632
208
  broadcastSucceededBlockIndex: string;
209
+ broadcastTransactionRef: string;
633
210
  } | {
634
211
  state: 'FAILED';
635
212
  failure: 'INGRESS_IGNORED';
@@ -693,7 +270,7 @@ declare class SwapSDK {
693
270
  executeSwap(params: ExecuteSwapParams, txOpts?: TransactionOptions & {
694
271
  signer?: Signer;
695
272
  }): Promise<TransactionHash>;
696
- approveVault(params: Pick<TokenSwapParams, 'srcChain' | 'srcAsset' | 'amount'>, txOpts?: TransactionOptions & {
273
+ approveVault(params: Pick<ExecuteSwapParams, 'srcChain' | 'srcAsset' | 'amount'>, txOpts?: TransactionOptions & {
697
274
  signer?: Signer;
698
275
  }): Promise<TransactionHash | null>;
699
276
  private validateSwapAmount;