@skip-go/client 1.0.1-alpha-1 → 1.0.2

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 (32) hide show
  1. package/dist/api/getAssets.d.ts +19 -0
  2. package/dist/api/getAssetsBetweenChains.d.ts +56 -0
  3. package/dist/api/getBridges.d.ts +54 -0
  4. package/dist/api/getChains.d.ts +41 -0
  5. package/dist/api/getVenues.d.ts +13 -0
  6. package/dist/api/postAssetsFromSource.d.ts +13 -0
  7. package/dist/api/postBalances.d.ts +35 -0
  8. package/dist/api/postIbcOriginAssets.d.ts +32 -0
  9. package/dist/api/postMessages.d.ts +528 -0
  10. package/dist/api/postMessagesDirect.d.ts +568 -0
  11. package/dist/api/postRecommendAssets.d.ts +40 -0
  12. package/dist/api/postRoute.d.ts +460 -0
  13. package/dist/api/postSubmitTransaction.d.ts +13 -0
  14. package/dist/api/postTrackTransaction.d.ts +13 -0
  15. package/dist/api/postTransactionStatus.d.ts +559 -0
  16. package/dist/apiState-CdzxTxYd.d.ts +6 -0
  17. package/dist/{chunk-Y5EY3Q6D.js → chunk-735L35R6.js} +1 -1
  18. package/dist/client-types-CxjtffyG.d.ts +60 -0
  19. package/dist/executeRoute-BKvMVd1I.d.ts +69 -0
  20. package/dist/generateApi-DqCp36fX.d.ts +22 -0
  21. package/dist/index.d.ts +35 -0
  22. package/dist/index.js +1 -1
  23. package/dist/public-functions/executeRoute.d.ts +9 -0
  24. package/dist/public-functions/executeRoute.js +1 -1
  25. package/dist/public-functions/getFeeInfoForChain.d.ts +9 -0
  26. package/dist/public-functions/getRecommendedGasPrice.d.ts +9 -0
  27. package/dist/public-functions/getSigningStargateClient.d.ts +13 -0
  28. package/dist/public-functions/setApiOptions.d.ts +9 -0
  29. package/dist/public-functions/setClientOptions.d.ts +9 -0
  30. package/dist/setClientOptions-DbanEIwL.d.ts +19 -0
  31. package/dist/swaggerTypes-O9-gvCT1.d.ts +1890 -0
  32. package/package.json +4 -4
@@ -0,0 +1,460 @@
1
+ import { I as BridgeType, ao as RoutePriceWarningType, b2 as FeeType } from '../swaggerTypes-O9-gvCT1.js';
2
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
3
+ import { A as ApiRequest } from '../generateApi-DqCp36fX.js';
4
+
5
+ declare const route: (request: RouteRequest) => Promise<{
6
+ amountIn: string;
7
+ amountOut: string;
8
+ chainIds: string[];
9
+ requiredChainAddresses: string[];
10
+ destAssetChainId: string;
11
+ destAssetDenom: string;
12
+ doesSwap?: boolean | undefined;
13
+ estimatedAmountOut: string;
14
+ operations: ({
15
+ axelarTransfer?: {
16
+ asset?: string | undefined;
17
+ feeAmount?: string | undefined;
18
+ feeAsset?: {
19
+ chainId: string;
20
+ coingeckoId?: string | undefined;
21
+ decimals?: number | undefined;
22
+ denom: string;
23
+ description?: string | undefined;
24
+ isCw20: boolean;
25
+ isEvm: boolean;
26
+ isSvm: boolean;
27
+ logoUri?: string | undefined;
28
+ name?: string | undefined;
29
+ originChainId: string;
30
+ originDenom: string;
31
+ recommendedSymbol?: string | undefined;
32
+ symbol?: string | undefined;
33
+ tokenContract?: string | undefined;
34
+ trace: string;
35
+ } | undefined;
36
+ fromChain?: string | undefined;
37
+ fromChainId?: string | undefined;
38
+ isTestnet?: boolean | undefined;
39
+ shouldUnwrap?: boolean | undefined;
40
+ toChain?: string | undefined;
41
+ toChainId?: string | undefined;
42
+ denomIn?: string | undefined;
43
+ denomOut?: string | undefined;
44
+ usdFeeAmount?: string | undefined;
45
+ ibcTransferToAxelar?: {
46
+ fromChainId?: string | undefined;
47
+ toChainId?: string | undefined;
48
+ channel?: string | undefined;
49
+ destDenom?: string | undefined;
50
+ pfmEnabled?: boolean | undefined;
51
+ port?: string | undefined;
52
+ supportsMemo?: boolean | undefined;
53
+ denomIn?: string | undefined;
54
+ denomOut?: string | undefined;
55
+ feeAmount?: string | undefined;
56
+ usdFeeAmount?: string | undefined;
57
+ feeAsset?: {
58
+ chainId: string;
59
+ coingeckoId?: string | undefined;
60
+ decimals?: number | undefined;
61
+ denom: string;
62
+ description?: string | undefined;
63
+ isCw20: boolean;
64
+ isEvm: boolean;
65
+ isSvm: boolean;
66
+ logoUri?: string | undefined;
67
+ name?: string | undefined;
68
+ originChainId: string;
69
+ originDenom: string;
70
+ recommendedSymbol?: string | undefined;
71
+ symbol?: string | undefined;
72
+ tokenContract?: string | undefined;
73
+ trace: string;
74
+ } | undefined;
75
+ bridgeId?: BridgeType | undefined;
76
+ smartRelay?: boolean | undefined;
77
+ } | undefined;
78
+ bridgeId?: BridgeType | undefined;
79
+ smartRelay?: boolean | undefined;
80
+ } | undefined;
81
+ txIndex: number;
82
+ amountIn: string;
83
+ amountOut: string;
84
+ } | {
85
+ cctpTransfer?: {
86
+ fromChainId?: string | undefined;
87
+ toChainId?: string | undefined;
88
+ burnToken?: string | undefined;
89
+ denomIn?: string | undefined;
90
+ denomOut?: string | undefined;
91
+ bridgeId?: BridgeType | undefined;
92
+ smartRelay?: boolean | undefined;
93
+ smartRelayFeeQuote?: {
94
+ feeAmount?: string | undefined;
95
+ feeDenom?: string | undefined;
96
+ feePaymentAddress?: string | undefined;
97
+ relayerAddress?: string | undefined;
98
+ expiration?: string | undefined;
99
+ } | undefined;
100
+ } | undefined;
101
+ txIndex: number;
102
+ amountIn: string;
103
+ amountOut: string;
104
+ } | {
105
+ stargateTransfer?: {
106
+ fromChainId?: string | undefined;
107
+ toChainId?: string | undefined;
108
+ denomIn?: string | undefined;
109
+ denomOut?: string | undefined;
110
+ bridgeId?: BridgeType | undefined;
111
+ poolAddress?: string | undefined;
112
+ destinationEndpointId?: number | undefined;
113
+ oftFeeAsset?: {
114
+ chainId: string;
115
+ coingeckoId?: string | undefined;
116
+ decimals?: number | undefined;
117
+ denom: string;
118
+ description?: string | undefined;
119
+ isCw20: boolean;
120
+ isEvm: boolean;
121
+ isSvm: boolean;
122
+ logoUri?: string | undefined;
123
+ name?: string | undefined;
124
+ originChainId: string;
125
+ originDenom: string;
126
+ recommendedSymbol?: string | undefined;
127
+ symbol?: string | undefined;
128
+ tokenContract?: string | undefined;
129
+ trace: string;
130
+ } | undefined;
131
+ oftFeeAmount?: string | undefined;
132
+ oftFeeAmountUsd?: string | undefined;
133
+ messagingFeeAsset?: {
134
+ chainId: string;
135
+ coingeckoId?: string | undefined;
136
+ decimals?: number | undefined;
137
+ denom: string;
138
+ description?: string | undefined;
139
+ isCw20: boolean;
140
+ isEvm: boolean;
141
+ isSvm: boolean;
142
+ logoUri?: string | undefined;
143
+ name?: string | undefined;
144
+ originChainId: string;
145
+ originDenom: string;
146
+ recommendedSymbol?: string | undefined;
147
+ symbol?: string | undefined;
148
+ tokenContract?: string | undefined;
149
+ trace: string;
150
+ } | undefined;
151
+ messagingFeeAmount?: string | undefined;
152
+ messageingFeeAmountUsd?: string | undefined;
153
+ } | undefined;
154
+ txIndex: number;
155
+ amountIn: string;
156
+ amountOut: string;
157
+ } | {
158
+ bankSend?: {
159
+ chainId?: string | undefined;
160
+ denom?: string | undefined;
161
+ } | undefined;
162
+ txIndex: number;
163
+ amountIn: string;
164
+ amountOut: string;
165
+ } | {
166
+ evmSwap?: {
167
+ inputToken?: string | undefined;
168
+ amountIn?: string | undefined;
169
+ swapCalldata?: string | undefined;
170
+ amountOut?: string | undefined;
171
+ fromChainId?: string | undefined;
172
+ denomIn?: string | undefined;
173
+ denomOut?: string | undefined;
174
+ swapVenues?: {
175
+ chainId?: string | undefined;
176
+ name?: string | undefined;
177
+ logoUri?: string | undefined;
178
+ }[] | undefined;
179
+ } | undefined;
180
+ txIndex: number;
181
+ amountIn: string;
182
+ amountOut: string;
183
+ } | {
184
+ hyperlaneTransfer?: {
185
+ fromChainId?: string | undefined;
186
+ toChainId?: string | undefined;
187
+ denomIn?: string | undefined;
188
+ denomOut?: string | undefined;
189
+ hyperlaneContractAddress?: string | undefined;
190
+ feeAmount?: string | undefined;
191
+ feeAsset?: {
192
+ chainId: string;
193
+ coingeckoId?: string | undefined;
194
+ decimals?: number | undefined;
195
+ denom: string;
196
+ description?: string | undefined;
197
+ isCw20: boolean;
198
+ isEvm: boolean;
199
+ isSvm: boolean;
200
+ logoUri?: string | undefined;
201
+ name?: string | undefined;
202
+ originChainId: string;
203
+ originDenom: string;
204
+ recommendedSymbol?: string | undefined;
205
+ symbol?: string | undefined;
206
+ tokenContract?: string | undefined;
207
+ trace: string;
208
+ } | undefined;
209
+ usdFeeAmount?: string | undefined;
210
+ bridgeId?: BridgeType | undefined;
211
+ smartRelay?: boolean | undefined;
212
+ } | undefined;
213
+ txIndex: number;
214
+ amountIn: string;
215
+ amountOut: string;
216
+ } | {
217
+ transfer?: {
218
+ fromChainId?: string | undefined;
219
+ toChainId?: string | undefined;
220
+ channel?: string | undefined;
221
+ destDenom?: string | undefined;
222
+ pfmEnabled?: boolean | undefined;
223
+ port?: string | undefined;
224
+ supportsMemo?: boolean | undefined;
225
+ denomIn?: string | undefined;
226
+ denomOut?: string | undefined;
227
+ feeAmount?: string | undefined;
228
+ usdFeeAmount?: string | undefined;
229
+ feeAsset?: {
230
+ chainId: string;
231
+ coingeckoId?: string | undefined;
232
+ decimals?: number | undefined;
233
+ denom: string;
234
+ description?: string | undefined;
235
+ isCw20: boolean;
236
+ isEvm: boolean;
237
+ isSvm: boolean;
238
+ logoUri?: string | undefined;
239
+ name?: string | undefined;
240
+ originChainId: string;
241
+ originDenom: string;
242
+ recommendedSymbol?: string | undefined;
243
+ symbol?: string | undefined;
244
+ tokenContract?: string | undefined;
245
+ trace: string;
246
+ } | undefined;
247
+ bridgeId?: BridgeType | undefined;
248
+ smartRelay?: boolean | undefined;
249
+ } | undefined;
250
+ txIndex: number;
251
+ amountIn: string;
252
+ amountOut: string;
253
+ } | {
254
+ swap?: {
255
+ swapIn?: {
256
+ swapAmountIn?: string | undefined;
257
+ swapOperations?: {
258
+ denomIn?: string | undefined;
259
+ denomOut?: string | undefined;
260
+ pool?: string | undefined;
261
+ interface?: string | undefined;
262
+ }[] | undefined;
263
+ swapVenue?: {
264
+ chainId?: string | undefined;
265
+ name?: string | undefined;
266
+ logoUri?: string | undefined;
267
+ } | undefined;
268
+ priceImpactPercent?: string | undefined;
269
+ } | undefined;
270
+ estimatedAffiliateFee?: string | undefined;
271
+ chainId?: string | undefined;
272
+ fromChainId?: string | undefined;
273
+ denomIn?: string | undefined;
274
+ denomOut?: string | undefined;
275
+ swapVenues?: {
276
+ chainId?: string | undefined;
277
+ name?: string | undefined;
278
+ logoUri?: string | undefined;
279
+ }[] | undefined;
280
+ } | {
281
+ swapOut?: {
282
+ swapAmountOut?: string | undefined;
283
+ swapOperations?: {
284
+ denomIn?: string | undefined;
285
+ denomOut?: string | undefined;
286
+ pool?: string | undefined;
287
+ interface?: string | undefined;
288
+ }[] | undefined;
289
+ swapVenue?: {
290
+ chainId?: string | undefined;
291
+ name?: string | undefined;
292
+ logoUri?: string | undefined;
293
+ } | undefined;
294
+ priceImpactPercent?: string | undefined;
295
+ } | undefined;
296
+ estimatedAffiliateFee?: string | undefined;
297
+ chainId?: string | undefined;
298
+ fromChainId?: string | undefined;
299
+ denomIn?: string | undefined;
300
+ denomOut?: string | undefined;
301
+ swapVenues?: {
302
+ chainId?: string | undefined;
303
+ name?: string | undefined;
304
+ logoUri?: string | undefined;
305
+ }[] | undefined;
306
+ } | {
307
+ smartSwapIn?: {
308
+ swapVenue?: {
309
+ chainId?: string | undefined;
310
+ name?: string | undefined;
311
+ logoUri?: string | undefined;
312
+ } | undefined;
313
+ swapRoutes?: {
314
+ swapAmountIn?: string | undefined;
315
+ denomIn?: string | undefined;
316
+ swapOperations?: {
317
+ denomIn?: string | undefined;
318
+ denomOut?: string | undefined;
319
+ pool?: string | undefined;
320
+ interface?: string | undefined;
321
+ }[] | undefined;
322
+ }[] | undefined;
323
+ } | undefined;
324
+ estimatedAffiliateFee?: string | undefined;
325
+ chainId?: string | undefined;
326
+ fromChainId?: string | undefined;
327
+ denomIn?: string | undefined;
328
+ denomOut?: string | undefined;
329
+ swapVenues?: {
330
+ chainId?: string | undefined;
331
+ name?: string | undefined;
332
+ logoUri?: string | undefined;
333
+ }[] | undefined;
334
+ } | undefined;
335
+ txIndex: number;
336
+ amountIn: string;
337
+ amountOut: string;
338
+ } | {
339
+ transfer?: {
340
+ fromChainId?: string | undefined;
341
+ toChainId?: string | undefined;
342
+ denomIn?: string | undefined;
343
+ denomOut?: string | undefined;
344
+ opInitBridgeId?: any;
345
+ bridgeId?: BridgeType | undefined;
346
+ smartRelay?: boolean | undefined;
347
+ } | undefined;
348
+ txIndex: number;
349
+ amountIn: string;
350
+ amountOut: string;
351
+ } | {
352
+ eurekaTransfer?: {
353
+ destinationPort?: string | undefined;
354
+ sourceClient?: string | undefined;
355
+ fromChainId?: string | undefined;
356
+ toChainId?: string | undefined;
357
+ pfmEnabled?: boolean | undefined;
358
+ supportsMemo?: boolean | undefined;
359
+ denomIn?: string | undefined;
360
+ denomOut?: string | undefined;
361
+ entryContractAddress?: string | undefined;
362
+ callbackAdapterContractAddress?: string | undefined;
363
+ bridgeId?: BridgeType | undefined;
364
+ smartRelay?: boolean | undefined;
365
+ smartRelayFeeQuote?: {
366
+ feeAmount?: string | undefined;
367
+ feeDenom?: string | undefined;
368
+ feePaymentAddress?: string | undefined;
369
+ relayerAddress?: string | undefined;
370
+ expiration?: string | undefined;
371
+ } | undefined;
372
+ toChainCallbackContractAddress?: string | undefined;
373
+ toChainEntryContractAddress?: string | undefined;
374
+ } | undefined;
375
+ txIndex: number;
376
+ amountIn: string;
377
+ amountOut: string;
378
+ } | {
379
+ eurekaTransfer?: {
380
+ fromChainId: string;
381
+ toChainId: string;
382
+ denomIn: string;
383
+ denomOut: string;
384
+ sourceOftCntractAddress: string;
385
+ destinationEndpointId: number;
386
+ messagingFeeAsset: {
387
+ chainId: string;
388
+ coingeckoId?: string | undefined;
389
+ decimals?: number | undefined;
390
+ denom: string;
391
+ description?: string | undefined;
392
+ isCw20: boolean;
393
+ isEvm: boolean;
394
+ isSvm: boolean;
395
+ logoUri?: string | undefined;
396
+ name?: string | undefined;
397
+ originChainId: string;
398
+ originDenom: string;
399
+ recommendedSymbol?: string | undefined;
400
+ symbol?: string | undefined;
401
+ tokenContract?: string | undefined;
402
+ trace: string;
403
+ };
404
+ messagingFeeAmount: string;
405
+ messagingFeeAmountUsd: string;
406
+ bridgeId: BridgeType;
407
+ } | undefined;
408
+ txIndex: number;
409
+ amountIn: string;
410
+ amountOut: string;
411
+ })[];
412
+ sourceAssetChainId: string;
413
+ sourceAssetDenom: string;
414
+ swapVenue?: {
415
+ chainId?: string | undefined;
416
+ name?: string | undefined;
417
+ logoUri?: string | undefined;
418
+ } | undefined;
419
+ txsRequired: number;
420
+ usdAmountIn?: string | undefined;
421
+ usdAmountOut?: string | undefined;
422
+ swapPriceImpactPercent?: string | undefined;
423
+ warning?: {
424
+ type?: RoutePriceWarningType | undefined;
425
+ message?: string | undefined;
426
+ } | undefined;
427
+ estimatedFees?: {
428
+ feeType?: FeeType | undefined;
429
+ bridgeId?: BridgeType | undefined;
430
+ amount?: string | undefined;
431
+ usdAmount?: string | undefined;
432
+ originAsset: {
433
+ chainId: string;
434
+ coingeckoId?: string | undefined;
435
+ decimals?: number | undefined;
436
+ denom: string;
437
+ description?: string | undefined;
438
+ isCw20: boolean;
439
+ isEvm: boolean;
440
+ isSvm: boolean;
441
+ logoUri?: string | undefined;
442
+ name?: string | undefined;
443
+ originChainId: string;
444
+ originDenom: string;
445
+ recommendedSymbol?: string | undefined;
446
+ symbol?: string | undefined;
447
+ tokenContract?: string | undefined;
448
+ trace: string;
449
+ };
450
+ chainId?: string | undefined;
451
+ txIndex?: number | undefined;
452
+ operationIndex?: number | undefined;
453
+ }[] | undefined;
454
+ estimatedRouteDurationSeconds?: number | undefined;
455
+ } | undefined>;
456
+ type RouteRequest = ApiRequest<"getRouteV2"> & SkipApiOptions & {
457
+ abortDuplicateRequests?: boolean;
458
+ };
459
+
460
+ export { type RouteRequest, route };
@@ -0,0 +1,13 @@
1
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
2
+
3
+ declare const submitTransaction: (options?: ({
4
+ tx?: string | undefined;
5
+ chainId?: string | undefined;
6
+ } & SkipApiOptions & {
7
+ abortDuplicateRequests?: boolean | undefined;
8
+ }) | undefined) => Promise<{
9
+ txHash?: string | undefined;
10
+ explorerLink?: string | undefined;
11
+ } | undefined>;
12
+
13
+ export { submitTransaction };
@@ -0,0 +1,13 @@
1
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
2
+
3
+ declare const trackTransaction: (params?: ({
4
+ txHash: string;
5
+ chainId: string;
6
+ } & SkipApiOptions & {
7
+ abortDuplicateRequests?: boolean | undefined;
8
+ }) | undefined) => Promise<{
9
+ txHash: string;
10
+ explorerLink: string;
11
+ }>;
12
+
13
+ export { trackTransaction };