@skip-go/client 1.0.0-alpha-2 → 1.0.0-alpha-3

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 (51) hide show
  1. package/dist/api/getAssets.mjs +2 -25
  2. package/dist/api/getAssetsBetweenChains.mjs +2 -9
  3. package/dist/api/getBridges.mjs +2 -10
  4. package/dist/api/getChains.mjs +2 -16
  5. package/dist/api/getVenues.mjs +2 -10
  6. package/dist/api/postAssetsFromSource.mjs +3 -14
  7. package/dist/api/postBalances.mjs +2 -16
  8. package/dist/api/postIbcOriginAssets.mjs +2 -11
  9. package/dist/api/postMessages.d.mts +183 -183
  10. package/dist/api/postMessages.mjs +2 -10
  11. package/dist/api/postMessagesDirect.d.mts +183 -183
  12. package/dist/api/postMessagesDirect.mjs +2 -10
  13. package/dist/api/postRecommendAssets.mjs +2 -13
  14. package/dist/api/postRoute.d.mts +160 -160
  15. package/dist/api/postRoute.mjs +2 -16
  16. package/dist/api/postSubmitTransaction.mjs +2 -10
  17. package/dist/api/postTrackTransaction.mjs +2 -11
  18. package/dist/api/postTransactionStatus.mjs +2 -10
  19. package/dist/chunk-2ETF4N4H.mjs +45 -0
  20. package/dist/chunk-2F4MBSMT.mjs +99 -0
  21. package/dist/chunk-2FYLP573.mjs +15 -0
  22. package/dist/chunk-7TBBV2YY.mjs +13 -0
  23. package/dist/chunk-B72MYSG5.mjs +273 -0
  24. package/dist/chunk-C5CGY2X7.mjs +10 -0
  25. package/dist/chunk-CAAR7GDJ.mjs +11 -0
  26. package/dist/chunk-CZ27FEZ7.mjs +11 -0
  27. package/dist/chunk-DKIWPD5I.mjs +124 -0
  28. package/dist/chunk-IGD32L7C.mjs +9 -0
  29. package/dist/chunk-J7GGREYX.mjs +10 -0
  30. package/dist/chunk-KPK3Z6QZ.mjs +10 -0
  31. package/dist/chunk-KSMJWLEH.mjs +2315 -0
  32. package/dist/chunk-LJVI5DLG.mjs +10 -0
  33. package/dist/chunk-NNZFCKHP.mjs +10 -0
  34. package/dist/chunk-NU7MCJOK.mjs +187 -0
  35. package/dist/chunk-OTLFF5OB.mjs +3634 -0
  36. package/dist/chunk-PEZHVPSR.mjs +2237 -0
  37. package/dist/chunk-QZ3X6MP3.mjs +10 -0
  38. package/dist/chunk-RXWDHQLG.mjs +231 -0
  39. package/dist/chunk-TUBI6VE6.mjs +1344 -0
  40. package/dist/chunk-WDMGUHWR.mjs +23 -0
  41. package/dist/chunk-YWYU6P7W.mjs +14 -0
  42. package/dist/chunk-ZAF3Z56R.mjs +7 -0
  43. package/dist/index.mjs +24 -24
  44. package/dist/public-functions/executeRoute.mjs +12 -100
  45. package/dist/public-functions/getFeeInfoForChain.mjs +5 -47
  46. package/dist/public-functions/getRecommendedGasPrice.mjs +7 -1366
  47. package/dist/public-functions/getSigningStargateClient.mjs +4 -32
  48. package/dist/public-functions/setApiOptions.mjs +2 -46
  49. package/dist/public-functions/setClientOptions.mjs +4 -34
  50. package/package.json +1 -8
  51. package/dist/chunk-AXBFBHS2.mjs +0 -41
@@ -27,15 +27,15 @@ declare const messagesDirect: (options?: ({
27
27
  };
28
28
  } | undefined;
29
29
  postRouteHandler?: {
30
- wasmMsg?: {
31
- contractAddress?: string | undefined;
32
- msg?: string | undefined;
33
- } | undefined;
34
- } | {
35
30
  autpilotMsg?: {
36
31
  action?: AutopilotAction | undefined;
37
32
  receiver?: string | undefined;
38
33
  } | undefined;
34
+ } | {
35
+ wasmMsg?: {
36
+ contractAddress?: string | undefined;
37
+ msg?: string | undefined;
38
+ } | undefined;
39
39
  } | undefined;
40
40
  allowMultiTx?: boolean | undefined;
41
41
  allowUnsafe?: boolean | undefined;
@@ -53,13 +53,6 @@ declare const messagesDirect: (options?: ({
53
53
  abortDuplicateRequests?: boolean | undefined;
54
54
  }) | undefined) => Promise<{
55
55
  msgs?: ({
56
- multiChainMsg?: {
57
- chainId?: string | undefined;
58
- msg?: string | undefined;
59
- msgTypeUrl?: string | undefined;
60
- path?: string[] | undefined;
61
- } | undefined;
62
- } | {
63
56
  evmTx: {
64
57
  chainId: string;
65
58
  data?: string | undefined;
@@ -78,8 +71,26 @@ declare const messagesDirect: (options?: ({
78
71
  signerAddress?: string | undefined;
79
72
  tx?: string | undefined;
80
73
  };
74
+ } | {
75
+ multiChainMsg?: {
76
+ chainId?: string | undefined;
77
+ msg?: string | undefined;
78
+ msgTypeUrl?: string | undefined;
79
+ path?: string[] | undefined;
80
+ } | undefined;
81
81
  })[] | undefined;
82
82
  txs?: ({
83
+ cosmosTx: {
84
+ chainId: string;
85
+ path?: string[] | undefined;
86
+ signerAddress?: string | undefined;
87
+ msgs?: {
88
+ msg?: string | undefined;
89
+ msgTypeUrl?: string | undefined;
90
+ }[] | undefined;
91
+ };
92
+ operationsIndices?: number[] | undefined;
93
+ } | {
83
94
  evmTx: {
84
95
  chainId: string;
85
96
  data?: string | undefined;
@@ -100,17 +111,6 @@ declare const messagesDirect: (options?: ({
100
111
  tx?: string | undefined;
101
112
  };
102
113
  operationsIndices?: number[] | undefined;
103
- } | {
104
- cosmosTx: {
105
- chainId: string;
106
- path?: string[] | undefined;
107
- signerAddress?: string | undefined;
108
- msgs?: {
109
- msg?: string | undefined;
110
- msgTypeUrl?: string | undefined;
111
- }[] | undefined;
112
- };
113
- operationsIndices?: number[] | undefined;
114
114
  })[] | undefined;
115
115
  route?: {
116
116
  amountIn: string;
@@ -122,128 +122,6 @@ declare const messagesDirect: (options?: ({
122
122
  doesSwap?: boolean | undefined;
123
123
  estimatedAmountOut: string;
124
124
  operations: ({
125
- transfer?: {
126
- fromChainId?: string | undefined;
127
- toChainId?: string | undefined;
128
- channel?: string | undefined;
129
- destDenom?: string | undefined;
130
- pfmEnabled?: boolean | undefined;
131
- port?: string | undefined;
132
- supportsMemo?: boolean | undefined;
133
- denomIn?: string | undefined;
134
- denomOut?: string | undefined;
135
- feeAmount?: string | undefined;
136
- usdFeeAmount?: string | undefined;
137
- feeAsset?: {
138
- chainId: string;
139
- coingeckoId?: string | undefined;
140
- decimals?: number | undefined;
141
- denom: string;
142
- description?: string | undefined;
143
- isCw20: boolean;
144
- isEvm: boolean;
145
- isSvm: boolean;
146
- logoUri?: string | undefined;
147
- name?: string | undefined;
148
- originChainId: string;
149
- originDenom: string;
150
- recommendedSymbol?: string | undefined;
151
- symbol?: string | undefined;
152
- tokenContract?: string | undefined;
153
- trace: string;
154
- } | undefined;
155
- bridgeId?: BridgeType | undefined;
156
- smartRelay?: boolean | undefined;
157
- } | undefined;
158
- txIndex: number;
159
- amountIn: string;
160
- amountOut: string;
161
- } | {
162
- swap?: {
163
- swapIn?: {
164
- swapAmountIn?: string | undefined;
165
- swapOperations?: {
166
- denomIn?: string | undefined;
167
- denomOut?: string | undefined;
168
- pool?: string | undefined;
169
- interface?: string | undefined;
170
- }[] | undefined;
171
- swapVenue?: {
172
- chainId?: string | undefined;
173
- name?: string | undefined;
174
- logoUri?: string | undefined;
175
- } | undefined;
176
- priceImpactPercent?: string | undefined;
177
- } | undefined;
178
- estimatedAffiliateFee?: string | undefined;
179
- chainId?: string | undefined;
180
- fromChainId?: string | undefined;
181
- denomIn?: string | undefined;
182
- denomOut?: string | undefined;
183
- swapVenues?: {
184
- chainId?: string | undefined;
185
- name?: string | undefined;
186
- logoUri?: string | undefined;
187
- }[] | undefined;
188
- } | {
189
- swapOut?: {
190
- swapAmountOut?: string | undefined;
191
- swapOperations?: {
192
- denomIn?: string | undefined;
193
- denomOut?: string | undefined;
194
- pool?: string | undefined;
195
- interface?: string | undefined;
196
- }[] | undefined;
197
- swapVenue?: {
198
- chainId?: string | undefined;
199
- name?: string | undefined;
200
- logoUri?: string | undefined;
201
- } | undefined;
202
- priceImpactPercent?: string | undefined;
203
- } | undefined;
204
- estimatedAffiliateFee?: string | undefined;
205
- chainId?: string | undefined;
206
- fromChainId?: string | undefined;
207
- denomIn?: string | undefined;
208
- denomOut?: string | undefined;
209
- swapVenues?: {
210
- chainId?: string | undefined;
211
- name?: string | undefined;
212
- logoUri?: string | undefined;
213
- }[] | undefined;
214
- } | {
215
- smartSwapIn?: {
216
- swapVenue?: {
217
- chainId?: string | undefined;
218
- name?: string | undefined;
219
- logoUri?: string | undefined;
220
- } | undefined;
221
- swapRoutes?: {
222
- swapAmountIn?: string | undefined;
223
- denomIn?: string | undefined;
224
- swapOperations?: {
225
- denomIn?: string | undefined;
226
- denomOut?: string | undefined;
227
- pool?: string | undefined;
228
- interface?: string | undefined;
229
- }[] | undefined;
230
- }[] | undefined;
231
- } | undefined;
232
- estimatedAffiliateFee?: string | undefined;
233
- chainId?: string | undefined;
234
- fromChainId?: string | undefined;
235
- denomIn?: string | undefined;
236
- denomOut?: string | undefined;
237
- swapVenues?: {
238
- chainId?: string | undefined;
239
- name?: string | undefined;
240
- logoUri?: string | undefined;
241
- }[] | undefined;
242
- } | undefined;
243
- txIndex: number;
244
- amountIn: string;
245
- amountOut: string;
246
- } | {
247
125
  axelarTransfer?: {
248
126
  asset?: string | undefined;
249
127
  feeAmount?: string | undefined;
@@ -313,14 +191,6 @@ declare const messagesDirect: (options?: ({
313
191
  txIndex: number;
314
192
  amountIn: string;
315
193
  amountOut: string;
316
- } | {
317
- bankSend?: {
318
- chainId?: string | undefined;
319
- denom?: string | undefined;
320
- } | undefined;
321
- txIndex: number;
322
- amountIn: string;
323
- amountOut: string;
324
194
  } | {
325
195
  cctpTransfer?: {
326
196
  fromChainId?: string | undefined;
@@ -342,14 +212,15 @@ declare const messagesDirect: (options?: ({
342
212
  amountIn: string;
343
213
  amountOut: string;
344
214
  } | {
345
- hyperlaneTransfer?: {
215
+ stargateTransfer?: {
346
216
  fromChainId?: string | undefined;
347
217
  toChainId?: string | undefined;
348
218
  denomIn?: string | undefined;
349
219
  denomOut?: string | undefined;
350
- hyperlaneContractAddress?: string | undefined;
351
- feeAmount?: string | undefined;
352
- feeAsset?: {
220
+ bridgeId?: BridgeType | undefined;
221
+ poolAddress?: string | undefined;
222
+ destinationEndpointId?: number | undefined;
223
+ oftFeeAsset?: {
353
224
  chainId: string;
354
225
  coingeckoId?: string | undefined;
355
226
  decimals?: number | undefined;
@@ -367,9 +238,36 @@ declare const messagesDirect: (options?: ({
367
238
  tokenContract?: string | undefined;
368
239
  trace: string;
369
240
  } | undefined;
370
- usdFeeAmount?: string | undefined;
371
- bridgeId?: BridgeType | undefined;
372
- smartRelay?: boolean | undefined;
241
+ oftFeeAmount?: string | undefined;
242
+ oftFeeAmountUsd?: string | undefined;
243
+ messagingFeeAsset?: {
244
+ chainId: string;
245
+ coingeckoId?: string | undefined;
246
+ decimals?: number | undefined;
247
+ denom: string;
248
+ description?: string | undefined;
249
+ isCw20: boolean;
250
+ isEvm: boolean;
251
+ isSvm: boolean;
252
+ logoUri?: string | undefined;
253
+ name?: string | undefined;
254
+ originChainId: string;
255
+ originDenom: string;
256
+ recommendedSymbol?: string | undefined;
257
+ symbol?: string | undefined;
258
+ tokenContract?: string | undefined;
259
+ trace: string;
260
+ } | undefined;
261
+ messagingFeeAmount?: string | undefined;
262
+ messageingFeeAmountUsd?: string | undefined;
263
+ } | undefined;
264
+ txIndex: number;
265
+ amountIn: string;
266
+ amountOut: string;
267
+ } | {
268
+ bankSend?: {
269
+ chainId?: string | undefined;
270
+ denom?: string | undefined;
373
271
  } | undefined;
374
272
  txIndex: number;
375
273
  amountIn: string;
@@ -393,28 +291,14 @@ declare const messagesDirect: (options?: ({
393
291
  amountIn: string;
394
292
  amountOut: string;
395
293
  } | {
396
- transfer?: {
397
- fromChainId?: string | undefined;
398
- toChainId?: string | undefined;
399
- denomIn?: string | undefined;
400
- denomOut?: string | undefined;
401
- opInitBridgeId?: any;
402
- bridgeId?: BridgeType | undefined;
403
- smartRelay?: boolean | undefined;
404
- } | undefined;
405
- txIndex: number;
406
- amountIn: string;
407
- amountOut: string;
408
- } | {
409
- stargateTransfer?: {
294
+ hyperlaneTransfer?: {
410
295
  fromChainId?: string | undefined;
411
296
  toChainId?: string | undefined;
412
297
  denomIn?: string | undefined;
413
298
  denomOut?: string | undefined;
414
- bridgeId?: BridgeType | undefined;
415
- poolAddress?: string | undefined;
416
- destinationEndpointId?: number | undefined;
417
- oftFeeAsset?: {
299
+ hyperlaneContractAddress?: string | undefined;
300
+ feeAmount?: string | undefined;
301
+ feeAsset?: {
418
302
  chainId: string;
419
303
  coingeckoId?: string | undefined;
420
304
  decimals?: number | undefined;
@@ -432,9 +316,27 @@ declare const messagesDirect: (options?: ({
432
316
  tokenContract?: string | undefined;
433
317
  trace: string;
434
318
  } | undefined;
435
- oftFeeAmount?: string | undefined;
436
- oftFeeAmountUsd?: string | undefined;
437
- messagingFeeAsset?: {
319
+ usdFeeAmount?: string | undefined;
320
+ bridgeId?: BridgeType | undefined;
321
+ smartRelay?: boolean | undefined;
322
+ } | undefined;
323
+ txIndex: number;
324
+ amountIn: string;
325
+ amountOut: string;
326
+ } | {
327
+ transfer?: {
328
+ fromChainId?: string | undefined;
329
+ toChainId?: string | undefined;
330
+ channel?: string | undefined;
331
+ destDenom?: string | undefined;
332
+ pfmEnabled?: boolean | undefined;
333
+ port?: string | undefined;
334
+ supportsMemo?: boolean | undefined;
335
+ denomIn?: string | undefined;
336
+ denomOut?: string | undefined;
337
+ feeAmount?: string | undefined;
338
+ usdFeeAmount?: string | undefined;
339
+ feeAsset?: {
438
340
  chainId: string;
439
341
  coingeckoId?: string | undefined;
440
342
  decimals?: number | undefined;
@@ -452,8 +354,106 @@ declare const messagesDirect: (options?: ({
452
354
  tokenContract?: string | undefined;
453
355
  trace: string;
454
356
  } | undefined;
455
- messagingFeeAmount?: string | undefined;
456
- messageingFeeAmountUsd?: string | undefined;
357
+ bridgeId?: BridgeType | undefined;
358
+ smartRelay?: boolean | undefined;
359
+ } | undefined;
360
+ txIndex: number;
361
+ amountIn: string;
362
+ amountOut: string;
363
+ } | {
364
+ swap?: {
365
+ swapIn?: {
366
+ swapAmountIn?: string | undefined;
367
+ swapOperations?: {
368
+ denomIn?: string | undefined;
369
+ denomOut?: string | undefined;
370
+ pool?: string | undefined;
371
+ interface?: string | undefined;
372
+ }[] | undefined;
373
+ swapVenue?: {
374
+ chainId?: string | undefined;
375
+ name?: string | undefined;
376
+ logoUri?: string | undefined;
377
+ } | undefined;
378
+ priceImpactPercent?: string | undefined;
379
+ } | undefined;
380
+ estimatedAffiliateFee?: string | undefined;
381
+ chainId?: string | undefined;
382
+ fromChainId?: string | undefined;
383
+ denomIn?: string | undefined;
384
+ denomOut?: string | undefined;
385
+ swapVenues?: {
386
+ chainId?: string | undefined;
387
+ name?: string | undefined;
388
+ logoUri?: string | undefined;
389
+ }[] | undefined;
390
+ } | {
391
+ swapOut?: {
392
+ swapAmountOut?: string | undefined;
393
+ swapOperations?: {
394
+ denomIn?: string | undefined;
395
+ denomOut?: string | undefined;
396
+ pool?: string | undefined;
397
+ interface?: string | undefined;
398
+ }[] | undefined;
399
+ swapVenue?: {
400
+ chainId?: string | undefined;
401
+ name?: string | undefined;
402
+ logoUri?: string | undefined;
403
+ } | undefined;
404
+ priceImpactPercent?: string | undefined;
405
+ } | undefined;
406
+ estimatedAffiliateFee?: string | undefined;
407
+ chainId?: string | undefined;
408
+ fromChainId?: string | undefined;
409
+ denomIn?: string | undefined;
410
+ denomOut?: string | undefined;
411
+ swapVenues?: {
412
+ chainId?: string | undefined;
413
+ name?: string | undefined;
414
+ logoUri?: string | undefined;
415
+ }[] | undefined;
416
+ } | {
417
+ smartSwapIn?: {
418
+ swapVenue?: {
419
+ chainId?: string | undefined;
420
+ name?: string | undefined;
421
+ logoUri?: string | undefined;
422
+ } | undefined;
423
+ swapRoutes?: {
424
+ swapAmountIn?: string | undefined;
425
+ denomIn?: string | undefined;
426
+ swapOperations?: {
427
+ denomIn?: string | undefined;
428
+ denomOut?: string | undefined;
429
+ pool?: string | undefined;
430
+ interface?: string | undefined;
431
+ }[] | undefined;
432
+ }[] | undefined;
433
+ } | undefined;
434
+ estimatedAffiliateFee?: string | undefined;
435
+ chainId?: string | undefined;
436
+ fromChainId?: string | undefined;
437
+ denomIn?: string | undefined;
438
+ denomOut?: string | undefined;
439
+ swapVenues?: {
440
+ chainId?: string | undefined;
441
+ name?: string | undefined;
442
+ logoUri?: string | undefined;
443
+ }[] | undefined;
444
+ } | undefined;
445
+ txIndex: number;
446
+ amountIn: string;
447
+ amountOut: string;
448
+ } | {
449
+ transfer?: {
450
+ fromChainId?: string | undefined;
451
+ toChainId?: string | undefined;
452
+ denomIn?: string | undefined;
453
+ denomOut?: string | undefined;
454
+ opInitBridgeId?: any;
455
+ bridgeId?: BridgeType | undefined;
456
+ smartRelay?: boolean | undefined;
457
457
  } | undefined;
458
458
  txIndex: number;
459
459
  amountIn: string;
@@ -1,10 +1,2 @@
1
- import '../chunk-AXBFBHS2.mjs';
2
- import { api } from '../utils/generateApi.mjs';
3
-
4
- var messagesDirect = api({
5
- methodName: "getMsgsDirectV2",
6
- method: "post",
7
- path: "/v2/fungible/msgs_direct"
8
- });
9
-
10
- export { messagesDirect };
1
+ export { messagesDirect } from '../chunk-QZ3X6MP3.mjs';
2
+ import '../chunk-RXWDHQLG.mjs';
@@ -1,13 +1,2 @@
1
- import '../chunk-AXBFBHS2.mjs';
2
- import { api } from '../utils/generateApi.mjs';
3
-
4
- var recommendAssets = api({
5
- methodName: "getAssetRecommendations",
6
- method: "post",
7
- path: "/v2/fungible/recommend_assets",
8
- transformResponse(response) {
9
- return response.recommendationEntries;
10
- }
11
- });
12
-
13
- export { recommendAssets };
1
+ export { recommendAssets } from '../chunk-7TBBV2YY.mjs';
2
+ import '../chunk-RXWDHQLG.mjs';