@skip-go/client 0.17.1 → 1.0.0-alpha-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.
Files changed (54) hide show
  1. package/dist/api/getAssets.d.mts +19 -0
  2. package/dist/api/getAssets.mjs +25 -0
  3. package/dist/api/getAssetsBetweenChains.d.mts +56 -0
  4. package/dist/api/getAssetsBetweenChains.mjs +9 -0
  5. package/dist/api/getBridges.d.mts +54 -0
  6. package/dist/api/getBridges.mjs +10 -0
  7. package/dist/api/getChains.d.mts +41 -0
  8. package/dist/api/getChains.mjs +16 -0
  9. package/dist/api/getVenues.d.mts +13 -0
  10. package/dist/api/getVenues.mjs +10 -0
  11. package/dist/api/postAssetsFromSource.d.mts +13 -0
  12. package/dist/api/postAssetsFromSource.mjs +14 -0
  13. package/dist/api/postBalances.d.mts +35 -0
  14. package/dist/api/postBalances.mjs +16 -0
  15. package/dist/api/postIbcOriginAssets.d.mts +32 -0
  16. package/dist/api/postIbcOriginAssets.mjs +11 -0
  17. package/dist/api/postMessages.d.mts +528 -0
  18. package/dist/api/postMessages.mjs +10 -0
  19. package/dist/api/postMessagesDirect.d.mts +568 -0
  20. package/dist/api/postMessagesDirect.mjs +10 -0
  21. package/dist/api/postRecommendAssets.d.mts +40 -0
  22. package/dist/api/postRecommendAssets.mjs +13 -0
  23. package/dist/api/postRoute.d.mts +460 -0
  24. package/dist/api/postRoute.mjs +16 -0
  25. package/dist/api/postSubmitTransaction.d.mts +13 -0
  26. package/dist/api/postSubmitTransaction.mjs +10 -0
  27. package/dist/api/postTrackTransaction.d.mts +13 -0
  28. package/dist/api/postTrackTransaction.mjs +11 -0
  29. package/dist/api/postTransactionStatus.d.mts +559 -0
  30. package/dist/api/postTransactionStatus.mjs +10 -0
  31. package/dist/apiState-CdzxTxYd.d.mts +6 -0
  32. package/dist/chunk-AXBFBHS2.mjs +41 -0
  33. package/dist/client-types-CVch1pZ-.d.mts +60 -0
  34. package/dist/executeRoute-CRdeEz1o.d.mts +69 -0
  35. package/dist/generateApi-3mHZ6Zbr.d.mts +22 -0
  36. package/dist/index.d.mts +35 -0
  37. package/dist/index.mjs +24 -0
  38. package/dist/public-functions/executeRoute.d.mts +9 -0
  39. package/dist/public-functions/executeRoute.mjs +100 -0
  40. package/dist/public-functions/getFeeInfoForChain.d.mts +9 -0
  41. package/dist/public-functions/getFeeInfoForChain.mjs +47 -0
  42. package/dist/public-functions/getRecommendedGasPrice.d.mts +9 -0
  43. package/dist/public-functions/getRecommendedGasPrice.mjs +1366 -0
  44. package/dist/public-functions/getSigningStargateClient.d.mts +13 -0
  45. package/dist/public-functions/getSigningStargateClient.mjs +32 -0
  46. package/dist/public-functions/setApiOptions.d.mts +9 -0
  47. package/dist/public-functions/setApiOptions.mjs +46 -0
  48. package/dist/public-functions/setClientOptions.d.mts +9 -0
  49. package/dist/public-functions/setClientOptions.mjs +34 -0
  50. package/dist/setClientOptions-CVB_OUIn.d.mts +19 -0
  51. package/dist/swaggerTypes-O9-gvCT1.d.mts +1890 -0
  52. package/package.json +10 -4
  53. package/dist/index.d.ts +0 -2336
  54. package/dist/index.js +0 -264
@@ -0,0 +1,559 @@
1
+ import { au as StatusErrorType, aI as TransactionState, ak as PacketErrorType, aR as TransferState, k as AxelarTransferState, N as ContractCallWithTokenErrorType, ar as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a7 as HyperlaneTransferState, aN as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aO as LayerZeroTransferState } from '../swaggerTypes-O9-gvCT1.mjs';
2
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.mjs';
3
+ import { a as ApiResponse } from '../generateApi-3mHZ6Zbr.mjs';
4
+
5
+ declare const transactionStatus: (params?: ({
6
+ txHash: string;
7
+ chainId: string;
8
+ } & SkipApiOptions & {
9
+ abortDuplicateRequests?: boolean | undefined;
10
+ }) | undefined) => Promise<{
11
+ transfers?: {
12
+ error?: {
13
+ details?: {
14
+ code?: number | undefined;
15
+ message?: string | undefined;
16
+ } | undefined;
17
+ message?: string | undefined;
18
+ type?: StatusErrorType | undefined;
19
+ } | undefined;
20
+ nextBlockingTransfer?: {
21
+ transferSequenceIndex?: number | undefined;
22
+ } | undefined;
23
+ state?: TransactionState | undefined;
24
+ transferAssetRelease?: {
25
+ chainId?: string | undefined;
26
+ denom?: string | undefined;
27
+ amount?: string | undefined;
28
+ released?: boolean | undefined;
29
+ } | undefined;
30
+ transferSequence?: {
31
+ ibcTransfer?: {
32
+ toChainId: string;
33
+ packetTxs: {
34
+ acknowledgeTx?: {
35
+ chainId?: string | undefined;
36
+ explorerLink: string;
37
+ txHash?: string | undefined;
38
+ } | undefined;
39
+ error?: {
40
+ details?: {
41
+ code?: number | undefined;
42
+ message?: string | undefined;
43
+ } | undefined;
44
+ message?: string | undefined;
45
+ type?: PacketErrorType | undefined;
46
+ } | undefined;
47
+ receiveTx?: {
48
+ chainId?: string | undefined;
49
+ explorerLink: string;
50
+ txHash?: string | undefined;
51
+ } | undefined;
52
+ sendTx?: {
53
+ chainId?: string | undefined;
54
+ explorerLink: string;
55
+ txHash?: string | undefined;
56
+ } | undefined;
57
+ timeoutTx?: {
58
+ chainId?: string | undefined;
59
+ explorerLink: string;
60
+ txHash?: string | undefined;
61
+ } | undefined;
62
+ };
63
+ fromChainId: string;
64
+ state: TransferState;
65
+ } | undefined;
66
+ axelarTransfer?: {
67
+ axelarScanLink?: string | undefined;
68
+ toChainId: string;
69
+ fromChainId: string;
70
+ state: AxelarTransferState;
71
+ txs: {
72
+ approveTx?: {
73
+ chainId?: string | undefined;
74
+ explorerLink: string;
75
+ txHash?: string | undefined;
76
+ } | undefined;
77
+ confirmTx?: {
78
+ chainId?: string | undefined;
79
+ explorerLink: string;
80
+ txHash?: string | undefined;
81
+ } | undefined;
82
+ error?: {
83
+ message?: string | undefined;
84
+ type?: ContractCallWithTokenErrorType | undefined;
85
+ } | undefined;
86
+ executeTx?: {
87
+ chainId?: string | undefined;
88
+ explorerLink: string;
89
+ txHash?: string | undefined;
90
+ } | undefined;
91
+ gasPaidTx?: {
92
+ chainId?: string | undefined;
93
+ explorerLink: string;
94
+ txHash?: string | undefined;
95
+ } | undefined;
96
+ sendTx?: {
97
+ chainId?: string | undefined;
98
+ explorerLink: string;
99
+ txHash?: string | undefined;
100
+ } | undefined;
101
+ } | {
102
+ confirmTx?: {
103
+ chainId?: string | undefined;
104
+ explorerLink: string;
105
+ txHash?: string | undefined;
106
+ } | undefined;
107
+ error?: {
108
+ message?: string | undefined;
109
+ type?: SendTokenErrorType | undefined;
110
+ } | undefined;
111
+ executeTx?: {
112
+ chainId?: string | undefined;
113
+ explorerLink: string;
114
+ txHash?: string | undefined;
115
+ } | undefined;
116
+ sendTx?: {
117
+ chainId?: string | undefined;
118
+ explorerLink: string;
119
+ txHash?: string | undefined;
120
+ } | undefined;
121
+ };
122
+ type?: AxelarTransferType | undefined;
123
+ } | undefined;
124
+ cctpTransfer?: {
125
+ toChainId?: string | undefined;
126
+ fromChainId?: string | undefined;
127
+ state?: CCTPTransferState | undefined;
128
+ txs?: {
129
+ sendTx?: {
130
+ chainId?: string | undefined;
131
+ explorerLink: string;
132
+ txHash?: string | undefined;
133
+ } | undefined;
134
+ receiveTx?: {
135
+ chainId?: string | undefined;
136
+ explorerLink: string;
137
+ txHash?: string | undefined;
138
+ } | undefined;
139
+ } | undefined;
140
+ } | undefined;
141
+ hyperlaneTransfer?: {
142
+ fromChainId: string;
143
+ toChainId: string;
144
+ state: HyperlaneTransferState;
145
+ txs: {
146
+ sendTx?: {
147
+ chainId?: string | undefined;
148
+ explorerLink: string;
149
+ txHash?: string | undefined;
150
+ } | undefined;
151
+ receiveTx?: {
152
+ chainId?: string | undefined;
153
+ explorerLink: string;
154
+ txHash?: string | undefined;
155
+ } | undefined;
156
+ };
157
+ } | undefined;
158
+ opInitTransfer?: {
159
+ toChainId: string;
160
+ fromChainId: string;
161
+ state: OPInitTransferState;
162
+ txs: {
163
+ sendTx?: {
164
+ chainId?: string | undefined;
165
+ explorerLink: string;
166
+ txHash?: string | undefined;
167
+ } | undefined;
168
+ receiveTx?: {
169
+ chainId?: string | undefined;
170
+ explorerLink: string;
171
+ txHash?: string | undefined;
172
+ } | undefined;
173
+ };
174
+ } | undefined;
175
+ stargateTransfer?: {
176
+ fromChainId?: string | undefined;
177
+ toChainId?: string | undefined;
178
+ state?: StargateTransferState | undefined;
179
+ txs?: {
180
+ sendTx?: {
181
+ chainId?: string | undefined;
182
+ explorerLink: string;
183
+ txHash?: string | undefined;
184
+ } | undefined;
185
+ receiveTx?: {
186
+ chainId?: string | undefined;
187
+ explorerLink: string;
188
+ txHash?: string | undefined;
189
+ } | undefined;
190
+ errorTx?: {
191
+ chainId?: string | undefined;
192
+ explorerLink: string;
193
+ txHash?: string | undefined;
194
+ } | undefined;
195
+ } | undefined;
196
+ } | undefined;
197
+ goFastTransfer?: {
198
+ fromChainId: string;
199
+ toChainId: string;
200
+ state: GoFastTransferState;
201
+ txs: {
202
+ orderSubmittedTx?: {
203
+ chainId?: string | undefined;
204
+ explorerLink: string;
205
+ txHash?: string | undefined;
206
+ } | undefined;
207
+ orderFilledTx?: {
208
+ chainId?: string | undefined;
209
+ explorerLink: string;
210
+ txHash?: string | undefined;
211
+ } | undefined;
212
+ orderRefundedTx?: {
213
+ chainId?: string | undefined;
214
+ explorerLink: string;
215
+ txHash?: string | undefined;
216
+ } | undefined;
217
+ orderTimeoutTx?: {
218
+ chainId?: string | undefined;
219
+ explorerLink: string;
220
+ txHash?: string | undefined;
221
+ } | undefined;
222
+ };
223
+ errorMessage?: string | undefined;
224
+ } | undefined;
225
+ eurekaTransfer?: {
226
+ fromChainId: string;
227
+ toChainId: string;
228
+ state: TransferState;
229
+ packetTxs: {
230
+ acknowledgeTx?: {
231
+ chainId?: string | undefined;
232
+ explorerLink: string;
233
+ txHash?: string | undefined;
234
+ } | undefined;
235
+ error?: {
236
+ details?: {
237
+ code?: number | undefined;
238
+ message?: string | undefined;
239
+ } | undefined;
240
+ message?: string | undefined;
241
+ type?: PacketErrorType | undefined;
242
+ } | undefined;
243
+ receiveTx?: {
244
+ chainId?: string | undefined;
245
+ explorerLink: string;
246
+ txHash?: string | undefined;
247
+ } | undefined;
248
+ sendTx?: {
249
+ chainId?: string | undefined;
250
+ explorerLink: string;
251
+ txHash?: string | undefined;
252
+ } | undefined;
253
+ timeoutTx?: {
254
+ chainId?: string | undefined;
255
+ explorerLink: string;
256
+ txHash?: string | undefined;
257
+ } | undefined;
258
+ };
259
+ } | undefined;
260
+ layerZeroTransfer?: {
261
+ fromChainId: string;
262
+ toChainId: string;
263
+ state: LayerZeroTransferState;
264
+ txs: {
265
+ sendTx?: {
266
+ chainId?: string | undefined;
267
+ explorerLink: string;
268
+ txHash?: string | undefined;
269
+ } | undefined;
270
+ receiveTx?: {
271
+ chainId?: string | undefined;
272
+ explorerLink: string;
273
+ txHash?: string | undefined;
274
+ } | undefined;
275
+ errorTx?: {
276
+ chainId?: string | undefined;
277
+ explorerLink: string;
278
+ txHash?: string | undefined;
279
+ } | undefined;
280
+ };
281
+ } | undefined;
282
+ }[] | undefined;
283
+ }[] | undefined;
284
+ state: TransactionState;
285
+ transferSequence: {
286
+ ibcTransfer?: {
287
+ toChainId: string;
288
+ packetTxs: {
289
+ acknowledgeTx?: {
290
+ chainId?: string | undefined;
291
+ explorerLink: string;
292
+ txHash?: string | undefined;
293
+ } | undefined;
294
+ error?: {
295
+ details?: {
296
+ code?: number | undefined;
297
+ message?: string | undefined;
298
+ } | undefined;
299
+ message?: string | undefined;
300
+ type?: PacketErrorType | undefined;
301
+ } | undefined;
302
+ receiveTx?: {
303
+ chainId?: string | undefined;
304
+ explorerLink: string;
305
+ txHash?: string | undefined;
306
+ } | undefined;
307
+ sendTx?: {
308
+ chainId?: string | undefined;
309
+ explorerLink: string;
310
+ txHash?: string | undefined;
311
+ } | undefined;
312
+ timeoutTx?: {
313
+ chainId?: string | undefined;
314
+ explorerLink: string;
315
+ txHash?: string | undefined;
316
+ } | undefined;
317
+ };
318
+ fromChainId: string;
319
+ state: TransferState;
320
+ } | undefined;
321
+ axelarTransfer?: {
322
+ axelarScanLink?: string | undefined;
323
+ toChainId: string;
324
+ fromChainId: string;
325
+ state: AxelarTransferState;
326
+ txs: {
327
+ approveTx?: {
328
+ chainId?: string | undefined;
329
+ explorerLink: string;
330
+ txHash?: string | undefined;
331
+ } | undefined;
332
+ confirmTx?: {
333
+ chainId?: string | undefined;
334
+ explorerLink: string;
335
+ txHash?: string | undefined;
336
+ } | undefined;
337
+ error?: {
338
+ message?: string | undefined;
339
+ type?: ContractCallWithTokenErrorType | undefined;
340
+ } | undefined;
341
+ executeTx?: {
342
+ chainId?: string | undefined;
343
+ explorerLink: string;
344
+ txHash?: string | undefined;
345
+ } | undefined;
346
+ gasPaidTx?: {
347
+ chainId?: string | undefined;
348
+ explorerLink: string;
349
+ txHash?: string | undefined;
350
+ } | undefined;
351
+ sendTx?: {
352
+ chainId?: string | undefined;
353
+ explorerLink: string;
354
+ txHash?: string | undefined;
355
+ } | undefined;
356
+ } | {
357
+ confirmTx?: {
358
+ chainId?: string | undefined;
359
+ explorerLink: string;
360
+ txHash?: string | undefined;
361
+ } | undefined;
362
+ error?: {
363
+ message?: string | undefined;
364
+ type?: SendTokenErrorType | undefined;
365
+ } | undefined;
366
+ executeTx?: {
367
+ chainId?: string | undefined;
368
+ explorerLink: string;
369
+ txHash?: string | undefined;
370
+ } | undefined;
371
+ sendTx?: {
372
+ chainId?: string | undefined;
373
+ explorerLink: string;
374
+ txHash?: string | undefined;
375
+ } | undefined;
376
+ };
377
+ type?: AxelarTransferType | undefined;
378
+ } | undefined;
379
+ cctpTransfer?: {
380
+ toChainId?: string | undefined;
381
+ fromChainId?: string | undefined;
382
+ state?: CCTPTransferState | undefined;
383
+ txs?: {
384
+ sendTx?: {
385
+ chainId?: string | undefined;
386
+ explorerLink: string;
387
+ txHash?: string | undefined;
388
+ } | undefined;
389
+ receiveTx?: {
390
+ chainId?: string | undefined;
391
+ explorerLink: string;
392
+ txHash?: string | undefined;
393
+ } | undefined;
394
+ } | undefined;
395
+ } | undefined;
396
+ hyperlaneTransfer?: {
397
+ fromChainId: string;
398
+ toChainId: string;
399
+ state: HyperlaneTransferState;
400
+ txs: {
401
+ sendTx?: {
402
+ chainId?: string | undefined;
403
+ explorerLink: string;
404
+ txHash?: string | undefined;
405
+ } | undefined;
406
+ receiveTx?: {
407
+ chainId?: string | undefined;
408
+ explorerLink: string;
409
+ txHash?: string | undefined;
410
+ } | undefined;
411
+ };
412
+ } | undefined;
413
+ opInitTransfer?: {
414
+ toChainId: string;
415
+ fromChainId: string;
416
+ state: OPInitTransferState;
417
+ txs: {
418
+ sendTx?: {
419
+ chainId?: string | undefined;
420
+ explorerLink: string;
421
+ txHash?: string | undefined;
422
+ } | undefined;
423
+ receiveTx?: {
424
+ chainId?: string | undefined;
425
+ explorerLink: string;
426
+ txHash?: string | undefined;
427
+ } | undefined;
428
+ };
429
+ } | undefined;
430
+ stargateTransfer?: {
431
+ fromChainId?: string | undefined;
432
+ toChainId?: string | undefined;
433
+ state?: StargateTransferState | undefined;
434
+ txs?: {
435
+ sendTx?: {
436
+ chainId?: string | undefined;
437
+ explorerLink: string;
438
+ txHash?: string | undefined;
439
+ } | undefined;
440
+ receiveTx?: {
441
+ chainId?: string | undefined;
442
+ explorerLink: string;
443
+ txHash?: string | undefined;
444
+ } | undefined;
445
+ errorTx?: {
446
+ chainId?: string | undefined;
447
+ explorerLink: string;
448
+ txHash?: string | undefined;
449
+ } | undefined;
450
+ } | undefined;
451
+ } | undefined;
452
+ goFastTransfer?: {
453
+ fromChainId: string;
454
+ toChainId: string;
455
+ state: GoFastTransferState;
456
+ txs: {
457
+ orderSubmittedTx?: {
458
+ chainId?: string | undefined;
459
+ explorerLink: string;
460
+ txHash?: string | undefined;
461
+ } | undefined;
462
+ orderFilledTx?: {
463
+ chainId?: string | undefined;
464
+ explorerLink: string;
465
+ txHash?: string | undefined;
466
+ } | undefined;
467
+ orderRefundedTx?: {
468
+ chainId?: string | undefined;
469
+ explorerLink: string;
470
+ txHash?: string | undefined;
471
+ } | undefined;
472
+ orderTimeoutTx?: {
473
+ chainId?: string | undefined;
474
+ explorerLink: string;
475
+ txHash?: string | undefined;
476
+ } | undefined;
477
+ };
478
+ errorMessage?: string | undefined;
479
+ } | undefined;
480
+ eurekaTransfer?: {
481
+ fromChainId: string;
482
+ toChainId: string;
483
+ state: TransferState;
484
+ packetTxs: {
485
+ acknowledgeTx?: {
486
+ chainId?: string | undefined;
487
+ explorerLink: string;
488
+ txHash?: string | undefined;
489
+ } | undefined;
490
+ error?: {
491
+ details?: {
492
+ code?: number | undefined;
493
+ message?: string | undefined;
494
+ } | undefined;
495
+ message?: string | undefined;
496
+ type?: PacketErrorType | undefined;
497
+ } | undefined;
498
+ receiveTx?: {
499
+ chainId?: string | undefined;
500
+ explorerLink: string;
501
+ txHash?: string | undefined;
502
+ } | undefined;
503
+ sendTx?: {
504
+ chainId?: string | undefined;
505
+ explorerLink: string;
506
+ txHash?: string | undefined;
507
+ } | undefined;
508
+ timeoutTx?: {
509
+ chainId?: string | undefined;
510
+ explorerLink: string;
511
+ txHash?: string | undefined;
512
+ } | undefined;
513
+ };
514
+ } | undefined;
515
+ layerZeroTransfer?: {
516
+ fromChainId: string;
517
+ toChainId: string;
518
+ state: LayerZeroTransferState;
519
+ txs: {
520
+ sendTx?: {
521
+ chainId?: string | undefined;
522
+ explorerLink: string;
523
+ txHash?: string | undefined;
524
+ } | undefined;
525
+ receiveTx?: {
526
+ chainId?: string | undefined;
527
+ explorerLink: string;
528
+ txHash?: string | undefined;
529
+ } | undefined;
530
+ errorTx?: {
531
+ chainId?: string | undefined;
532
+ explorerLink: string;
533
+ txHash?: string | undefined;
534
+ } | undefined;
535
+ };
536
+ } | undefined;
537
+ }[];
538
+ nextBlockingTransfer?: {
539
+ transferSequenceIndex?: number | undefined;
540
+ } | null | undefined;
541
+ transferAssetRelease?: {
542
+ chainId?: string | undefined;
543
+ denom?: string | undefined;
544
+ amount?: string | undefined;
545
+ released?: boolean | undefined;
546
+ } | undefined;
547
+ error?: {
548
+ details?: {
549
+ code?: number | undefined;
550
+ message?: string | undefined;
551
+ } | undefined;
552
+ message?: string | undefined;
553
+ type?: StatusErrorType | undefined;
554
+ } | null | undefined;
555
+ status?: string | undefined;
556
+ }>;
557
+ type TxStatusResponse = ApiResponse<"getTransactionStatusV2">;
558
+
559
+ export { type TxStatusResponse, transactionStatus };
@@ -0,0 +1,10 @@
1
+ import '../chunk-AXBFBHS2.mjs';
2
+ import { pollingApi } from '../utils/generateApi.mjs';
3
+
4
+ var transactionStatus = pollingApi({
5
+ methodName: "getTransactionStatusV2",
6
+ path: "/v2/tx/status",
7
+ method: "get"
8
+ });
9
+
10
+ export { transactionStatus };
@@ -0,0 +1,6 @@
1
+ type SkipApiOptions = {
2
+ apiUrl?: string;
3
+ apiKey?: string;
4
+ };
5
+
6
+ export type { SkipApiOptions as S };
@@ -0,0 +1,41 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __async = (__this, __arguments, generator) => {
21
+ return new Promise((resolve, reject) => {
22
+ var fulfilled = (value) => {
23
+ try {
24
+ step(generator.next(value));
25
+ } catch (e) {
26
+ reject(e);
27
+ }
28
+ };
29
+ var rejected = (value) => {
30
+ try {
31
+ step(generator.throw(value));
32
+ } catch (e) {
33
+ reject(e);
34
+ }
35
+ };
36
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
37
+ step((generator = generator.apply(__this, __arguments)).next());
38
+ });
39
+ };
40
+
41
+ export { __async, __spreadProps, __spreadValues };
@@ -0,0 +1,60 @@
1
+ import { OfflineAminoSigner } from '@cosmjs/amino';
2
+ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
3
+ import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
4
+ import { WalletClient } from 'viem';
5
+ import { Adapter } from '@solana/wallet-adapter-base';
6
+ import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.mjs';
7
+
8
+ /** Common Types */
9
+ type UserAddress = {
10
+ chainId: string;
11
+ address: string;
12
+ };
13
+ type EndpointOptions = {
14
+ rpc?: string;
15
+ rest?: string;
16
+ };
17
+ type ValidateGasResult = {
18
+ error: null | string;
19
+ asset: FeeAsset | null;
20
+ fee: StdFee | null;
21
+ };
22
+ /** Signer Getters */
23
+ type SignerGetters = {
24
+ getEvmSigner?: (chainId: string) => Promise<WalletClient>;
25
+ getCosmosSigner?: (chainId: string) => Promise<(OfflineAminoSigner & OfflineDirectSigner) | OfflineAminoSigner | OfflineDirectSigner>;
26
+ getSvmSigner?: () => Promise<Adapter>;
27
+ };
28
+ /** Gas Options */
29
+ type GetFallbackGasAmount = (chainId: string, chainType: ChainType) => Promise<number | undefined>;
30
+ type GetGasPrice = (chainId: string, chainType: ChainType) => Promise<GasPrice | undefined>;
31
+ type GasOptions = {
32
+ /**
33
+ * If `getGasPrice` is undefined, or returns undefined, the router will attempt to set the recommended gas price
34
+ **/
35
+ getGasPrice?: GetGasPrice;
36
+ /**
37
+ * If `getFallbackGasAmount` is set, when router fails to simulate the gas amount, it will use the fallback gas amount
38
+ */
39
+ getFallbackGasAmount?: GetFallbackGasAmount;
40
+ gasAmountMultiplier?: number;
41
+ };
42
+ type SignCosmosMessageOptionsBase = {
43
+ signerAddress: string;
44
+ chainId: string;
45
+ cosmosMsgs: CosmosMsg[];
46
+ fee: StdFee;
47
+ signerData: SignerData;
48
+ };
49
+ type SignCosmosMessageDirectOptions = SignCosmosMessageOptionsBase & {
50
+ signer: OfflineDirectSigner;
51
+ };
52
+ type SignCosmosMessageAminoOptions = SignCosmosMessageOptionsBase & {
53
+ signer: OfflineAminoSigner;
54
+ };
55
+ type TxResult = {
56
+ txHash: string;
57
+ chainId: string;
58
+ };
59
+
60
+ export type { EndpointOptions as E, GetFallbackGasAmount as G, SignerGetters as S, TxResult as T, UserAddress as U, ValidateGasResult as V, GetGasPrice as a, GasOptions as b, SignCosmosMessageOptionsBase as c, SignCosmosMessageDirectOptions as d, SignCosmosMessageAminoOptions as e };