@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,460 @@
1
+ import { I as BridgeType, ao as RoutePriceWarningType, b2 as FeeType } from '../swaggerTypes-O9-gvCT1.mjs';
2
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.mjs';
3
+ import { A as ApiRequest } from '../generateApi-3mHZ6Zbr.mjs';
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
+ transfer?: {
16
+ fromChainId?: string | undefined;
17
+ toChainId?: string | undefined;
18
+ channel?: string | undefined;
19
+ destDenom?: string | undefined;
20
+ pfmEnabled?: boolean | undefined;
21
+ port?: string | undefined;
22
+ supportsMemo?: boolean | undefined;
23
+ denomIn?: string | undefined;
24
+ denomOut?: string | undefined;
25
+ feeAmount?: string | undefined;
26
+ usdFeeAmount?: string | undefined;
27
+ feeAsset?: {
28
+ chainId: string;
29
+ coingeckoId?: string | undefined;
30
+ decimals?: number | undefined;
31
+ denom: string;
32
+ description?: string | undefined;
33
+ isCw20: boolean;
34
+ isEvm: boolean;
35
+ isSvm: boolean;
36
+ logoUri?: string | undefined;
37
+ name?: string | undefined;
38
+ originChainId: string;
39
+ originDenom: string;
40
+ recommendedSymbol?: string | undefined;
41
+ symbol?: string | undefined;
42
+ tokenContract?: string | undefined;
43
+ trace: string;
44
+ } | undefined;
45
+ bridgeId?: BridgeType | undefined;
46
+ smartRelay?: boolean | undefined;
47
+ } | undefined;
48
+ txIndex: number;
49
+ amountIn: string;
50
+ amountOut: string;
51
+ } | {
52
+ swap?: {
53
+ swapIn?: {
54
+ swapAmountIn?: string | undefined;
55
+ swapOperations?: {
56
+ denomIn?: string | undefined;
57
+ denomOut?: string | undefined;
58
+ pool?: string | undefined;
59
+ interface?: string | undefined;
60
+ }[] | undefined;
61
+ swapVenue?: {
62
+ chainId?: string | undefined;
63
+ name?: string | undefined;
64
+ logoUri?: string | undefined;
65
+ } | undefined;
66
+ priceImpactPercent?: string | undefined;
67
+ } | undefined;
68
+ estimatedAffiliateFee?: string | undefined;
69
+ chainId?: string | undefined;
70
+ fromChainId?: string | undefined;
71
+ denomIn?: string | undefined;
72
+ denomOut?: string | undefined;
73
+ swapVenues?: {
74
+ chainId?: string | undefined;
75
+ name?: string | undefined;
76
+ logoUri?: string | undefined;
77
+ }[] | undefined;
78
+ } | {
79
+ swapOut?: {
80
+ swapAmountOut?: string | undefined;
81
+ swapOperations?: {
82
+ denomIn?: string | undefined;
83
+ denomOut?: string | undefined;
84
+ pool?: string | undefined;
85
+ interface?: string | undefined;
86
+ }[] | undefined;
87
+ swapVenue?: {
88
+ chainId?: string | undefined;
89
+ name?: string | undefined;
90
+ logoUri?: string | undefined;
91
+ } | undefined;
92
+ priceImpactPercent?: string | undefined;
93
+ } | undefined;
94
+ estimatedAffiliateFee?: string | undefined;
95
+ chainId?: string | undefined;
96
+ fromChainId?: string | undefined;
97
+ denomIn?: string | undefined;
98
+ denomOut?: string | undefined;
99
+ swapVenues?: {
100
+ chainId?: string | undefined;
101
+ name?: string | undefined;
102
+ logoUri?: string | undefined;
103
+ }[] | undefined;
104
+ } | {
105
+ smartSwapIn?: {
106
+ swapVenue?: {
107
+ chainId?: string | undefined;
108
+ name?: string | undefined;
109
+ logoUri?: string | undefined;
110
+ } | undefined;
111
+ swapRoutes?: {
112
+ swapAmountIn?: string | undefined;
113
+ denomIn?: string | undefined;
114
+ swapOperations?: {
115
+ denomIn?: string | undefined;
116
+ denomOut?: string | undefined;
117
+ pool?: string | undefined;
118
+ interface?: string | undefined;
119
+ }[] | undefined;
120
+ }[] | undefined;
121
+ } | undefined;
122
+ estimatedAffiliateFee?: string | undefined;
123
+ chainId?: string | undefined;
124
+ fromChainId?: string | undefined;
125
+ denomIn?: string | undefined;
126
+ denomOut?: string | undefined;
127
+ swapVenues?: {
128
+ chainId?: string | undefined;
129
+ name?: string | undefined;
130
+ logoUri?: string | undefined;
131
+ }[] | undefined;
132
+ } | undefined;
133
+ txIndex: number;
134
+ amountIn: string;
135
+ amountOut: string;
136
+ } | {
137
+ axelarTransfer?: {
138
+ asset?: string | undefined;
139
+ feeAmount?: string | undefined;
140
+ feeAsset?: {
141
+ chainId: string;
142
+ coingeckoId?: string | undefined;
143
+ decimals?: number | undefined;
144
+ denom: string;
145
+ description?: string | undefined;
146
+ isCw20: boolean;
147
+ isEvm: boolean;
148
+ isSvm: boolean;
149
+ logoUri?: string | undefined;
150
+ name?: string | undefined;
151
+ originChainId: string;
152
+ originDenom: string;
153
+ recommendedSymbol?: string | undefined;
154
+ symbol?: string | undefined;
155
+ tokenContract?: string | undefined;
156
+ trace: string;
157
+ } | undefined;
158
+ fromChain?: string | undefined;
159
+ fromChainId?: string | undefined;
160
+ isTestnet?: boolean | undefined;
161
+ shouldUnwrap?: boolean | undefined;
162
+ toChain?: string | undefined;
163
+ toChainId?: string | undefined;
164
+ denomIn?: string | undefined;
165
+ denomOut?: string | undefined;
166
+ usdFeeAmount?: string | undefined;
167
+ ibcTransferToAxelar?: {
168
+ fromChainId?: string | undefined;
169
+ toChainId?: string | undefined;
170
+ channel?: string | undefined;
171
+ destDenom?: string | undefined;
172
+ pfmEnabled?: boolean | undefined;
173
+ port?: string | undefined;
174
+ supportsMemo?: boolean | undefined;
175
+ denomIn?: string | undefined;
176
+ denomOut?: string | undefined;
177
+ feeAmount?: string | undefined;
178
+ usdFeeAmount?: string | undefined;
179
+ feeAsset?: {
180
+ chainId: string;
181
+ coingeckoId?: string | undefined;
182
+ decimals?: number | undefined;
183
+ denom: string;
184
+ description?: string | undefined;
185
+ isCw20: boolean;
186
+ isEvm: boolean;
187
+ isSvm: boolean;
188
+ logoUri?: string | undefined;
189
+ name?: string | undefined;
190
+ originChainId: string;
191
+ originDenom: string;
192
+ recommendedSymbol?: string | undefined;
193
+ symbol?: string | undefined;
194
+ tokenContract?: string | undefined;
195
+ trace: string;
196
+ } | undefined;
197
+ bridgeId?: BridgeType | undefined;
198
+ smartRelay?: boolean | undefined;
199
+ } | undefined;
200
+ bridgeId?: BridgeType | undefined;
201
+ smartRelay?: boolean | undefined;
202
+ } | undefined;
203
+ txIndex: number;
204
+ amountIn: string;
205
+ amountOut: string;
206
+ } | {
207
+ bankSend?: {
208
+ chainId?: string | undefined;
209
+ denom?: string | undefined;
210
+ } | undefined;
211
+ txIndex: number;
212
+ amountIn: string;
213
+ amountOut: string;
214
+ } | {
215
+ cctpTransfer?: {
216
+ fromChainId?: string | undefined;
217
+ toChainId?: string | undefined;
218
+ burnToken?: string | undefined;
219
+ denomIn?: string | undefined;
220
+ denomOut?: string | undefined;
221
+ bridgeId?: BridgeType | undefined;
222
+ smartRelay?: boolean | undefined;
223
+ smartRelayFeeQuote?: {
224
+ feeAmount?: string | undefined;
225
+ feeDenom?: string | undefined;
226
+ feePaymentAddress?: string | undefined;
227
+ relayerAddress?: string | undefined;
228
+ expiration?: string | undefined;
229
+ } | undefined;
230
+ } | undefined;
231
+ txIndex: number;
232
+ amountIn: string;
233
+ amountOut: string;
234
+ } | {
235
+ hyperlaneTransfer?: {
236
+ fromChainId?: string | undefined;
237
+ toChainId?: string | undefined;
238
+ denomIn?: string | undefined;
239
+ denomOut?: string | undefined;
240
+ hyperlaneContractAddress?: string | undefined;
241
+ feeAmount?: string | undefined;
242
+ feeAsset?: {
243
+ chainId: string;
244
+ coingeckoId?: string | undefined;
245
+ decimals?: number | undefined;
246
+ denom: string;
247
+ description?: string | undefined;
248
+ isCw20: boolean;
249
+ isEvm: boolean;
250
+ isSvm: boolean;
251
+ logoUri?: string | undefined;
252
+ name?: string | undefined;
253
+ originChainId: string;
254
+ originDenom: string;
255
+ recommendedSymbol?: string | undefined;
256
+ symbol?: string | undefined;
257
+ tokenContract?: string | undefined;
258
+ trace: string;
259
+ } | undefined;
260
+ usdFeeAmount?: string | undefined;
261
+ bridgeId?: BridgeType | undefined;
262
+ smartRelay?: boolean | undefined;
263
+ } | undefined;
264
+ txIndex: number;
265
+ amountIn: string;
266
+ amountOut: string;
267
+ } | {
268
+ evmSwap?: {
269
+ inputToken?: string | undefined;
270
+ amountIn?: string | undefined;
271
+ swapCalldata?: string | undefined;
272
+ amountOut?: string | undefined;
273
+ fromChainId?: string | undefined;
274
+ denomIn?: string | undefined;
275
+ denomOut?: string | undefined;
276
+ swapVenues?: {
277
+ chainId?: string | undefined;
278
+ name?: string | undefined;
279
+ logoUri?: string | undefined;
280
+ }[] | undefined;
281
+ } | undefined;
282
+ txIndex: number;
283
+ amountIn: string;
284
+ amountOut: string;
285
+ } | {
286
+ transfer?: {
287
+ fromChainId?: string | undefined;
288
+ toChainId?: string | undefined;
289
+ denomIn?: string | undefined;
290
+ denomOut?: string | undefined;
291
+ opInitBridgeId?: any;
292
+ bridgeId?: BridgeType | undefined;
293
+ smartRelay?: boolean | undefined;
294
+ } | undefined;
295
+ txIndex: number;
296
+ amountIn: string;
297
+ amountOut: string;
298
+ } | {
299
+ stargateTransfer?: {
300
+ fromChainId?: string | undefined;
301
+ toChainId?: string | undefined;
302
+ denomIn?: string | undefined;
303
+ denomOut?: string | undefined;
304
+ bridgeId?: BridgeType | undefined;
305
+ poolAddress?: string | undefined;
306
+ destinationEndpointId?: number | undefined;
307
+ oftFeeAsset?: {
308
+ chainId: string;
309
+ coingeckoId?: string | undefined;
310
+ decimals?: number | undefined;
311
+ denom: string;
312
+ description?: string | undefined;
313
+ isCw20: boolean;
314
+ isEvm: boolean;
315
+ isSvm: boolean;
316
+ logoUri?: string | undefined;
317
+ name?: string | undefined;
318
+ originChainId: string;
319
+ originDenom: string;
320
+ recommendedSymbol?: string | undefined;
321
+ symbol?: string | undefined;
322
+ tokenContract?: string | undefined;
323
+ trace: string;
324
+ } | undefined;
325
+ oftFeeAmount?: string | undefined;
326
+ oftFeeAmountUsd?: string | undefined;
327
+ messagingFeeAsset?: {
328
+ chainId: string;
329
+ coingeckoId?: string | undefined;
330
+ decimals?: number | undefined;
331
+ denom: string;
332
+ description?: string | undefined;
333
+ isCw20: boolean;
334
+ isEvm: boolean;
335
+ isSvm: boolean;
336
+ logoUri?: string | undefined;
337
+ name?: string | undefined;
338
+ originChainId: string;
339
+ originDenom: string;
340
+ recommendedSymbol?: string | undefined;
341
+ symbol?: string | undefined;
342
+ tokenContract?: string | undefined;
343
+ trace: string;
344
+ } | undefined;
345
+ messagingFeeAmount?: string | undefined;
346
+ messageingFeeAmountUsd?: string | 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,16 @@
1
+ import { __async, __spreadProps, __spreadValues } from '../chunk-AXBFBHS2.mjs';
2
+ import { api } from '../utils/generateApi.mjs';
3
+ import { ApiState } from 'src/state/apiState.mjs';
4
+
5
+ var route = (request) => __async(void 0, null, function* () {
6
+ const requestWithAffiliateFeeBps = __spreadProps(__spreadValues({}, request), {
7
+ cumulativeAffiliateFeeBps: ApiState.cumulativeAffiliateFeeBPS
8
+ });
9
+ return api({
10
+ methodName: "getRouteV2",
11
+ method: "post",
12
+ path: "/v2/fungible/route"
13
+ })(requestWithAffiliateFeeBps);
14
+ });
15
+
16
+ export { route };
@@ -0,0 +1,13 @@
1
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.mjs';
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,10 @@
1
+ import '../chunk-AXBFBHS2.mjs';
2
+ import { api } from '../utils/generateApi.mjs';
3
+
4
+ var submitTransaction = api({
5
+ methodName: "submitTransactionV2",
6
+ method: "post",
7
+ path: "/v2/tx/submit"
8
+ });
9
+
10
+ export { submitTransaction };
@@ -0,0 +1,13 @@
1
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.mjs';
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 };
@@ -0,0 +1,11 @@
1
+ import '../chunk-AXBFBHS2.mjs';
2
+ import { pollingApi } from '../utils/generateApi.mjs';
3
+
4
+ var trackTransaction = pollingApi({
5
+ methodName: "trackTransactionV2",
6
+ path: "/v2/tx/track",
7
+ method: "post",
8
+ backoffMultiplier: 2.5
9
+ });
10
+
11
+ export { trackTransaction };