@skip-go/client 1.1.7 → 1.1.8
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/api/getAssets.js +2 -2
- package/dist/api/getAssetsBetweenChains.js +2 -2
- package/dist/api/getBridges.js +2 -2
- package/dist/api/getChains.js +2 -2
- package/dist/api/getVenues.js +2 -2
- package/dist/api/postAssetsFromSource.js +3 -3
- package/dist/api/postBalances.js +2 -2
- package/dist/api/postIbcOriginAssets.js +2 -2
- package/dist/api/postMessages.js +2 -2
- package/dist/api/postMessagesDirect.d.ts +193 -193
- package/dist/api/postMessagesDirect.js +2 -2
- package/dist/api/postRecommendAssets.js +2 -2
- package/dist/api/postRoute.d.ts +188 -188
- package/dist/api/postRoute.js +2 -2
- package/dist/api/postSubmit.js +2 -2
- package/dist/api/postSubmitTransaction.js +2 -2
- package/dist/api/postTrackTransaction.js +2 -2
- package/dist/api/postTransactionStatus.js +2 -2
- package/dist/{chunk-25FJ6EBA.js → chunk-5UHQEC5K.js} +2 -2
- package/dist/{chunk-7QEN4XCJ.js → chunk-6NMCE4AL.js} +8 -8
- package/dist/{chunk-5WMPFEIQ.js → chunk-C3GDPTDO.js} +2 -2
- package/dist/{chunk-VDEYJJZI.js → chunk-EZ65IQWB.js} +2 -2
- package/dist/{chunk-RFZBKQ35.js → chunk-FC6WR2AB.js} +1 -1
- package/dist/{chunk-JZBFAMHE.js → chunk-FRP5Y35B.js} +2 -2
- package/dist/{chunk-DU3RX43W.js → chunk-FVI3HTIO.js} +3 -3
- package/dist/{chunk-CRTTBUO4.js → chunk-GH36M7RI.js} +2 -2
- package/dist/{chunk-YMUVYT3O.js → chunk-H42CXF2U.js} +1 -1
- package/dist/{chunk-DV3I2S3T.js → chunk-H54ORPCL.js} +11 -2
- package/dist/{chunk-X67P5URV.js → chunk-I5GT57P3.js} +2 -2
- package/dist/{chunk-SYQHTXE7.js → chunk-I7WONP6Y.js} +4 -4
- package/dist/{chunk-C4URP37X.js → chunk-IHHYXB3K.js} +2 -2
- package/dist/{chunk-PPUUN7FI.js → chunk-M7EBNJWK.js} +2 -2
- package/dist/{chunk-GOYJWJEC.js → chunk-MSWIIMAD.js} +1 -1
- package/dist/{chunk-IWW34V4S.js → chunk-NQNYCD4R.js} +2 -2
- package/dist/{chunk-VTK34ED6.js → chunk-PXL7VX4V.js} +1 -1
- package/dist/{chunk-RYOVQFZO.js → chunk-QYJTS5PW.js} +2 -2
- package/dist/{chunk-2LKKFCUM.js → chunk-RP5COGN6.js} +3 -3
- package/dist/{chunk-XXJUDZKJ.js → chunk-WN4AUWSP.js} +2 -2
- package/dist/{chunk-U6XZFJW2.js → chunk-YSXM6ATC.js} +2 -2
- package/dist/{chunk-T7GKUROO.js → chunk-Z7GQR23T.js} +2 -2
- package/dist/index.js +22 -22
- package/dist/public-functions/executeRoute.js +11 -11
- package/dist/public-functions/getFeeInfoForChain.js +3 -3
- package/dist/public-functions/getRecommendedGasPrice.js +4 -4
- package/dist/public-functions/getSigningStargateClient.js +3 -3
- package/dist/public-functions/setApiOptions.js +2 -2
- package/dist/public-functions/setClientOptions.js +3 -3
- package/dist/public-functions/waitForTransaction.js +4 -4
- package/package.json +1 -1
package/dist/api/postRoute.d.ts
CHANGED
|
@@ -12,6 +12,130 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
12
12
|
doesSwap?: boolean | undefined;
|
|
13
13
|
estimatedAmountOut: string;
|
|
14
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
|
+
toChainEntryContractAddress?: string | undefined;
|
|
27
|
+
toChainCallbackContractAddress?: string | undefined;
|
|
28
|
+
usdFeeAmount?: string | undefined;
|
|
29
|
+
feeAsset?: {
|
|
30
|
+
chainId: string;
|
|
31
|
+
coingeckoId?: string | undefined;
|
|
32
|
+
decimals?: number | undefined;
|
|
33
|
+
denom: string;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
isCw20: boolean;
|
|
36
|
+
isEvm: boolean;
|
|
37
|
+
isSvm: boolean;
|
|
38
|
+
logoUri?: string | undefined;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
originChainId: string;
|
|
41
|
+
originDenom: string;
|
|
42
|
+
recommendedSymbol?: string | undefined;
|
|
43
|
+
symbol?: string | undefined;
|
|
44
|
+
tokenContract?: string | undefined;
|
|
45
|
+
trace: string;
|
|
46
|
+
} | undefined;
|
|
47
|
+
bridgeId?: BridgeType | undefined;
|
|
48
|
+
smartRelay?: boolean | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
txIndex: number;
|
|
51
|
+
amountIn: string;
|
|
52
|
+
amountOut: string;
|
|
53
|
+
} | {
|
|
54
|
+
swap?: {
|
|
55
|
+
swapIn?: {
|
|
56
|
+
swapAmountIn?: string | undefined;
|
|
57
|
+
swapOperations?: {
|
|
58
|
+
denomIn?: string | undefined;
|
|
59
|
+
denomOut?: string | undefined;
|
|
60
|
+
pool?: string | undefined;
|
|
61
|
+
interface?: string | undefined;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
swapVenue?: {
|
|
64
|
+
chainId?: string | undefined;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
logoUri?: string | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
priceImpactPercent?: string | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
estimatedAffiliateFee?: string | undefined;
|
|
71
|
+
chainId?: string | undefined;
|
|
72
|
+
fromChainId?: string | undefined;
|
|
73
|
+
denomIn?: string | undefined;
|
|
74
|
+
denomOut?: string | undefined;
|
|
75
|
+
swapVenues?: {
|
|
76
|
+
chainId?: string | undefined;
|
|
77
|
+
name?: string | undefined;
|
|
78
|
+
logoUri?: string | undefined;
|
|
79
|
+
}[] | undefined;
|
|
80
|
+
} | {
|
|
81
|
+
swapOut?: {
|
|
82
|
+
swapAmountOut?: string | undefined;
|
|
83
|
+
swapOperations?: {
|
|
84
|
+
denomIn?: string | undefined;
|
|
85
|
+
denomOut?: string | undefined;
|
|
86
|
+
pool?: string | undefined;
|
|
87
|
+
interface?: string | undefined;
|
|
88
|
+
}[] | undefined;
|
|
89
|
+
swapVenue?: {
|
|
90
|
+
chainId?: string | undefined;
|
|
91
|
+
name?: string | undefined;
|
|
92
|
+
logoUri?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
priceImpactPercent?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
estimatedAffiliateFee?: string | undefined;
|
|
97
|
+
chainId?: string | undefined;
|
|
98
|
+
fromChainId?: string | undefined;
|
|
99
|
+
denomIn?: string | undefined;
|
|
100
|
+
denomOut?: string | undefined;
|
|
101
|
+
swapVenues?: {
|
|
102
|
+
chainId?: string | undefined;
|
|
103
|
+
name?: string | undefined;
|
|
104
|
+
logoUri?: string | undefined;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
} | {
|
|
107
|
+
smartSwapIn?: {
|
|
108
|
+
swapVenue?: {
|
|
109
|
+
chainId?: string | undefined;
|
|
110
|
+
name?: string | undefined;
|
|
111
|
+
logoUri?: string | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
swapRoutes?: {
|
|
114
|
+
swapAmountIn?: string | undefined;
|
|
115
|
+
denomIn?: string | undefined;
|
|
116
|
+
swapOperations?: {
|
|
117
|
+
denomIn?: string | undefined;
|
|
118
|
+
denomOut?: string | undefined;
|
|
119
|
+
pool?: string | undefined;
|
|
120
|
+
interface?: string | undefined;
|
|
121
|
+
}[] | undefined;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
estimatedAffiliateFee?: string | undefined;
|
|
125
|
+
chainId?: string | undefined;
|
|
126
|
+
fromChainId?: string | undefined;
|
|
127
|
+
denomIn?: string | undefined;
|
|
128
|
+
denomOut?: string | undefined;
|
|
129
|
+
swapVenues?: {
|
|
130
|
+
chainId?: string | undefined;
|
|
131
|
+
name?: string | undefined;
|
|
132
|
+
logoUri?: string | undefined;
|
|
133
|
+
}[] | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
txIndex: number;
|
|
136
|
+
amountIn: string;
|
|
137
|
+
amountOut: string;
|
|
138
|
+
} | {
|
|
15
139
|
axelarTransfer?: {
|
|
16
140
|
asset?: string | undefined;
|
|
17
141
|
feeAmount?: string | undefined;
|
|
@@ -83,6 +207,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
83
207
|
txIndex: number;
|
|
84
208
|
amountIn: string;
|
|
85
209
|
amountOut: string;
|
|
210
|
+
} | {
|
|
211
|
+
bankSend?: {
|
|
212
|
+
chainId?: string | undefined;
|
|
213
|
+
denom?: string | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
txIndex: number;
|
|
216
|
+
amountIn: string;
|
|
217
|
+
amountOut: string;
|
|
86
218
|
} | {
|
|
87
219
|
cctpTransfer?: {
|
|
88
220
|
fromChainId?: string | undefined;
|
|
@@ -104,35 +236,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
104
236
|
amountIn: string;
|
|
105
237
|
amountOut: string;
|
|
106
238
|
} | {
|
|
107
|
-
|
|
239
|
+
hyperlaneTransfer?: {
|
|
108
240
|
fromChainId?: string | undefined;
|
|
109
241
|
toChainId?: string | undefined;
|
|
110
242
|
denomIn?: string | undefined;
|
|
111
243
|
denomOut?: string | undefined;
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
oftFeeAsset?: {
|
|
116
|
-
chainId: string;
|
|
117
|
-
coingeckoId?: string | undefined;
|
|
118
|
-
decimals?: number | undefined;
|
|
119
|
-
denom: string;
|
|
120
|
-
description?: string | undefined;
|
|
121
|
-
isCw20: boolean;
|
|
122
|
-
isEvm: boolean;
|
|
123
|
-
isSvm: boolean;
|
|
124
|
-
logoUri?: string | undefined;
|
|
125
|
-
name?: string | undefined;
|
|
126
|
-
originChainId: string;
|
|
127
|
-
originDenom: string;
|
|
128
|
-
recommendedSymbol?: string | undefined;
|
|
129
|
-
symbol?: string | undefined;
|
|
130
|
-
tokenContract?: string | undefined;
|
|
131
|
-
trace: string;
|
|
132
|
-
} | undefined;
|
|
133
|
-
oftFeeAmount?: string | undefined;
|
|
134
|
-
oftFeeAmountUsd?: string | undefined;
|
|
135
|
-
messagingFeeAsset?: {
|
|
244
|
+
hyperlaneContractAddress?: string | undefined;
|
|
245
|
+
feeAmount?: string | undefined;
|
|
246
|
+
feeAsset?: {
|
|
136
247
|
chainId: string;
|
|
137
248
|
coingeckoId?: string | undefined;
|
|
138
249
|
decimals?: number | undefined;
|
|
@@ -150,54 +261,9 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
150
261
|
tokenContract?: string | undefined;
|
|
151
262
|
trace: string;
|
|
152
263
|
} | undefined;
|
|
153
|
-
|
|
154
|
-
messagingFeeAmountUsd?: string | undefined;
|
|
155
|
-
} | undefined;
|
|
156
|
-
txIndex: number;
|
|
157
|
-
amountIn: string;
|
|
158
|
-
amountOut: string;
|
|
159
|
-
} | {
|
|
160
|
-
goFastTransfer?: {
|
|
161
|
-
fromChainId?: string | undefined;
|
|
162
|
-
toChainId?: string | undefined;
|
|
264
|
+
usdFeeAmount?: string | undefined;
|
|
163
265
|
bridgeId?: BridgeType | undefined;
|
|
164
|
-
|
|
165
|
-
denomOut?: string | undefined;
|
|
166
|
-
fee?: {
|
|
167
|
-
feeAsset: {
|
|
168
|
-
chainId: string;
|
|
169
|
-
coingeckoId?: string | undefined;
|
|
170
|
-
decimals?: number | undefined;
|
|
171
|
-
denom: string;
|
|
172
|
-
description?: string | undefined;
|
|
173
|
-
isCw20: boolean;
|
|
174
|
-
isEvm: boolean;
|
|
175
|
-
isSvm: boolean;
|
|
176
|
-
logoUri?: string | undefined;
|
|
177
|
-
name?: string | undefined;
|
|
178
|
-
originChainId: string;
|
|
179
|
-
originDenom: string;
|
|
180
|
-
recommendedSymbol?: string | undefined;
|
|
181
|
-
symbol?: string | undefined;
|
|
182
|
-
tokenContract?: string | undefined;
|
|
183
|
-
trace: string;
|
|
184
|
-
};
|
|
185
|
-
bpsFee?: string | undefined;
|
|
186
|
-
bpsFeeAmount?: string | undefined;
|
|
187
|
-
bpsFeeUsd?: string | undefined;
|
|
188
|
-
sourceChainFeeAmount?: string | undefined;
|
|
189
|
-
sourceChainFeeUsd?: string | undefined;
|
|
190
|
-
destinationChainFeeAmount?: string | undefined;
|
|
191
|
-
destinationChainFeeUsd?: string | undefined;
|
|
192
|
-
} | undefined;
|
|
193
|
-
} | undefined;
|
|
194
|
-
txIndex: number;
|
|
195
|
-
amountIn: string;
|
|
196
|
-
amountOut: string;
|
|
197
|
-
} | {
|
|
198
|
-
bankSend?: {
|
|
199
|
-
chainId?: string | undefined;
|
|
200
|
-
denom?: string | undefined;
|
|
266
|
+
smartRelay?: boolean | undefined;
|
|
201
267
|
} | undefined;
|
|
202
268
|
txIndex: number;
|
|
203
269
|
amountIn: string;
|
|
@@ -221,14 +287,28 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
221
287
|
amountIn: string;
|
|
222
288
|
amountOut: string;
|
|
223
289
|
} | {
|
|
224
|
-
|
|
290
|
+
opInitTransfer?: {
|
|
225
291
|
fromChainId?: string | undefined;
|
|
226
292
|
toChainId?: string | undefined;
|
|
227
293
|
denomIn?: string | undefined;
|
|
228
294
|
denomOut?: string | undefined;
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
295
|
+
opInitBridgeId?: any;
|
|
296
|
+
bridgeId?: BridgeType | undefined;
|
|
297
|
+
smartRelay?: boolean | undefined;
|
|
298
|
+
} | undefined;
|
|
299
|
+
txIndex: number;
|
|
300
|
+
amountIn: string;
|
|
301
|
+
amountOut: string;
|
|
302
|
+
} | {
|
|
303
|
+
stargateTransfer?: {
|
|
304
|
+
fromChainId?: string | undefined;
|
|
305
|
+
toChainId?: string | undefined;
|
|
306
|
+
denomIn?: string | undefined;
|
|
307
|
+
denomOut?: string | undefined;
|
|
308
|
+
bridgeId?: BridgeType | undefined;
|
|
309
|
+
poolAddress?: string | undefined;
|
|
310
|
+
destinationEndpointId?: number | undefined;
|
|
311
|
+
oftFeeAsset?: {
|
|
232
312
|
chainId: string;
|
|
233
313
|
coingeckoId?: string | undefined;
|
|
234
314
|
decimals?: number | undefined;
|
|
@@ -246,29 +326,9 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
246
326
|
tokenContract?: string | undefined;
|
|
247
327
|
trace: string;
|
|
248
328
|
} | undefined;
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
} | undefined;
|
|
253
|
-
txIndex: number;
|
|
254
|
-
amountIn: string;
|
|
255
|
-
amountOut: string;
|
|
256
|
-
} | {
|
|
257
|
-
transfer?: {
|
|
258
|
-
fromChainId?: string | undefined;
|
|
259
|
-
toChainId?: string | undefined;
|
|
260
|
-
channel?: string | undefined;
|
|
261
|
-
destDenom?: string | undefined;
|
|
262
|
-
pfmEnabled?: boolean | undefined;
|
|
263
|
-
port?: string | undefined;
|
|
264
|
-
supportsMemo?: boolean | undefined;
|
|
265
|
-
denomIn?: string | undefined;
|
|
266
|
-
denomOut?: string | undefined;
|
|
267
|
-
feeAmount?: string | undefined;
|
|
268
|
-
toChainEntryContractAddress?: string | undefined;
|
|
269
|
-
toChainCallbackContractAddress?: string | undefined;
|
|
270
|
-
usdFeeAmount?: string | undefined;
|
|
271
|
-
feeAsset?: {
|
|
329
|
+
oftFeeAmount?: string | undefined;
|
|
330
|
+
oftFeeAmountUsd?: string | undefined;
|
|
331
|
+
messagingFeeAsset?: {
|
|
272
332
|
chainId: string;
|
|
273
333
|
coingeckoId?: string | undefined;
|
|
274
334
|
decimals?: number | undefined;
|
|
@@ -286,106 +346,46 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
286
346
|
tokenContract?: string | undefined;
|
|
287
347
|
trace: string;
|
|
288
348
|
} | undefined;
|
|
289
|
-
|
|
290
|
-
|
|
349
|
+
messagingFeeAmount?: string | undefined;
|
|
350
|
+
messagingFeeAmountUsd?: string | undefined;
|
|
291
351
|
} | undefined;
|
|
292
352
|
txIndex: number;
|
|
293
353
|
amountIn: string;
|
|
294
354
|
amountOut: string;
|
|
295
355
|
} | {
|
|
296
|
-
|
|
297
|
-
swapIn?: {
|
|
298
|
-
swapAmountIn?: string | undefined;
|
|
299
|
-
swapOperations?: {
|
|
300
|
-
denomIn?: string | undefined;
|
|
301
|
-
denomOut?: string | undefined;
|
|
302
|
-
pool?: string | undefined;
|
|
303
|
-
interface?: string | undefined;
|
|
304
|
-
}[] | undefined;
|
|
305
|
-
swapVenue?: {
|
|
306
|
-
chainId?: string | undefined;
|
|
307
|
-
name?: string | undefined;
|
|
308
|
-
logoUri?: string | undefined;
|
|
309
|
-
} | undefined;
|
|
310
|
-
priceImpactPercent?: string | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
estimatedAffiliateFee?: string | undefined;
|
|
313
|
-
chainId?: string | undefined;
|
|
356
|
+
goFastTransfer?: {
|
|
314
357
|
fromChainId?: string | undefined;
|
|
358
|
+
toChainId?: string | undefined;
|
|
359
|
+
bridgeId?: BridgeType | undefined;
|
|
315
360
|
denomIn?: string | undefined;
|
|
316
361
|
denomOut?: string | undefined;
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
denomOut?: string | undefined;
|
|
328
|
-
pool?: string | undefined;
|
|
329
|
-
interface?: string | undefined;
|
|
330
|
-
}[] | undefined;
|
|
331
|
-
swapVenue?: {
|
|
332
|
-
chainId?: string | undefined;
|
|
333
|
-
name?: string | undefined;
|
|
362
|
+
fee?: {
|
|
363
|
+
feeAsset: {
|
|
364
|
+
chainId: string;
|
|
365
|
+
coingeckoId?: string | undefined;
|
|
366
|
+
decimals?: number | undefined;
|
|
367
|
+
denom: string;
|
|
368
|
+
description?: string | undefined;
|
|
369
|
+
isCw20: boolean;
|
|
370
|
+
isEvm: boolean;
|
|
371
|
+
isSvm: boolean;
|
|
334
372
|
logoUri?: string | undefined;
|
|
335
|
-
} | undefined;
|
|
336
|
-
priceImpactPercent?: string | undefined;
|
|
337
|
-
} | undefined;
|
|
338
|
-
estimatedAffiliateFee?: string | undefined;
|
|
339
|
-
chainId?: string | undefined;
|
|
340
|
-
fromChainId?: string | undefined;
|
|
341
|
-
denomIn?: string | undefined;
|
|
342
|
-
denomOut?: string | undefined;
|
|
343
|
-
swapVenues?: {
|
|
344
|
-
chainId?: string | undefined;
|
|
345
|
-
name?: string | undefined;
|
|
346
|
-
logoUri?: string | undefined;
|
|
347
|
-
}[] | undefined;
|
|
348
|
-
} | {
|
|
349
|
-
smartSwapIn?: {
|
|
350
|
-
swapVenue?: {
|
|
351
|
-
chainId?: string | undefined;
|
|
352
373
|
name?: string | undefined;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
374
|
+
originChainId: string;
|
|
375
|
+
originDenom: string;
|
|
376
|
+
recommendedSymbol?: string | undefined;
|
|
377
|
+
symbol?: string | undefined;
|
|
378
|
+
tokenContract?: string | undefined;
|
|
379
|
+
trace: string;
|
|
380
|
+
};
|
|
381
|
+
bpsFee?: string | undefined;
|
|
382
|
+
bpsFeeAmount?: string | undefined;
|
|
383
|
+
bpsFeeUsd?: string | undefined;
|
|
384
|
+
sourceChainFeeAmount?: string | undefined;
|
|
385
|
+
sourceChainFeeUsd?: string | undefined;
|
|
386
|
+
destinationChainFeeAmount?: string | undefined;
|
|
387
|
+
destinationChainFeeUsd?: string | undefined;
|
|
365
388
|
} | undefined;
|
|
366
|
-
estimatedAffiliateFee?: string | undefined;
|
|
367
|
-
chainId?: string | undefined;
|
|
368
|
-
fromChainId?: string | undefined;
|
|
369
|
-
denomIn?: string | undefined;
|
|
370
|
-
denomOut?: string | undefined;
|
|
371
|
-
swapVenues?: {
|
|
372
|
-
chainId?: string | undefined;
|
|
373
|
-
name?: string | undefined;
|
|
374
|
-
logoUri?: string | undefined;
|
|
375
|
-
}[] | undefined;
|
|
376
|
-
} | undefined;
|
|
377
|
-
txIndex: number;
|
|
378
|
-
amountIn: string;
|
|
379
|
-
amountOut: string;
|
|
380
|
-
} | {
|
|
381
|
-
opInitTransfer?: {
|
|
382
|
-
fromChainId?: string | undefined;
|
|
383
|
-
toChainId?: string | undefined;
|
|
384
|
-
denomIn?: string | undefined;
|
|
385
|
-
denomOut?: string | undefined;
|
|
386
|
-
opInitBridgeId?: any;
|
|
387
|
-
bridgeId?: BridgeType | undefined;
|
|
388
|
-
smartRelay?: boolean | undefined;
|
|
389
389
|
} | undefined;
|
|
390
390
|
txIndex: number;
|
|
391
391
|
amountIn: string;
|
package/dist/api/postRoute.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { route } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { route } from '../chunk-IHHYXB3K.js';
|
|
2
|
+
import '../chunk-H54ORPCL.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
package/dist/api/postSubmit.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { submit } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { submit } from '../chunk-I5GT57P3.js';
|
|
2
|
+
import '../chunk-H54ORPCL.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { submitTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { submitTransaction } from '../chunk-GH36M7RI.js';
|
|
2
|
+
import '../chunk-H54ORPCL.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { trackTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { trackTransaction } from '../chunk-Z7GQR23T.js';
|
|
2
|
+
import '../chunk-H54ORPCL.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { transactionStatus } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { transactionStatus } from '../chunk-M7EBNJWK.js';
|
|
2
|
+
import '../chunk-H54ORPCL.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { api } from './chunk-
|
|
1
|
+
import { api } from './chunk-H54ORPCL.js';
|
|
2
2
|
|
|
3
3
|
// src/utils/filterMessagesRequest.ts
|
|
4
4
|
var filterMessagesRequest = (request) => {
|
|
@@ -29,7 +29,7 @@ var messages = async (request) => {
|
|
|
29
29
|
return api({
|
|
30
30
|
methodName: "msgs",
|
|
31
31
|
method: "post",
|
|
32
|
-
path: "
|
|
32
|
+
path: "v2/fungible/msgs"
|
|
33
33
|
})(filterMessagesRequest(request));
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { waitForTransaction } from './chunk-
|
|
1
|
+
import { waitForTransaction } from './chunk-FVI3HTIO.js';
|
|
2
2
|
import { getEncodeObjectFromCosmosMessage, getCosmosGasAmountForMessage, getEncodeObjectFromCosmosMessageInjective } from './chunk-TV2XPAIF.js';
|
|
3
3
|
import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
4
4
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
5
5
|
import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
6
|
-
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-
|
|
6
|
+
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-MSWIIMAD.js';
|
|
7
7
|
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-36MCR5DZ.js';
|
|
8
|
-
import { messages } from './chunk-
|
|
9
|
-
import { submit } from './chunk-
|
|
10
|
-
import { submitTransaction } from './chunk-
|
|
11
|
-
import { venues } from './chunk-
|
|
12
|
-
import { ClientState, balances } from './chunk-
|
|
13
|
-
import { ApiState, wait, createRequestClient, toCamel } from './chunk-
|
|
8
|
+
import { messages } from './chunk-5UHQEC5K.js';
|
|
9
|
+
import { submit } from './chunk-I5GT57P3.js';
|
|
10
|
+
import { submitTransaction } from './chunk-GH36M7RI.js';
|
|
11
|
+
import { venues } from './chunk-WN4AUWSP.js';
|
|
12
|
+
import { ClientState, balances } from './chunk-I7WONP6Y.js';
|
|
13
|
+
import { ApiState, wait, createRequestClient, toCamel } from './chunk-H54ORPCL.js';
|
|
14
14
|
import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
15
15
|
import { bech32m, bech32 } from 'bech32';
|
|
16
16
|
import { StargateClient, GasPrice, calculateFee } from '@cosmjs/stargate';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { api } from './chunk-
|
|
1
|
+
import { api } from './chunk-H54ORPCL.js';
|
|
2
2
|
|
|
3
3
|
// src/api/postMessagesDirect.ts
|
|
4
4
|
var messagesDirect = api({
|
|
5
5
|
methodName: "msgsDirect",
|
|
6
6
|
method: "post",
|
|
7
|
-
path: "
|
|
7
|
+
path: "v2/fungible/msgs_direct"
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
export { messagesDirect };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-TD63P2AG.js';
|
|
2
|
-
import { ClientState } from './chunk-
|
|
3
|
-
import { ApiState, createRequestClient } from './chunk-
|
|
2
|
+
import { ClientState } from './chunk-I7WONP6Y.js';
|
|
3
|
+
import { ApiState, createRequestClient } from './chunk-H54ORPCL.js';
|
|
4
4
|
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
5
5
|
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
|
|
6
6
|
import { Registry } from '@cosmjs/proto-signing';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { api } from './chunk-
|
|
1
|
+
import { api } from './chunk-H54ORPCL.js';
|
|
2
2
|
|
|
3
3
|
// src/api/postRecommendAssets.ts
|
|
4
4
|
var recommendAssets = api({
|
|
5
5
|
methodName: "assetRecommendations",
|
|
6
6
|
method: "post",
|
|
7
|
-
path: "
|
|
7
|
+
path: "v2/fungible/recommend_assets",
|
|
8
8
|
transformResponse(response) {
|
|
9
9
|
return response.recommendationEntries;
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { transactionStatus } from './chunk-
|
|
2
|
-
import { trackTransaction } from './chunk-
|
|
3
|
-
import { wait } from './chunk-
|
|
1
|
+
import { transactionStatus } from './chunk-M7EBNJWK.js';
|
|
2
|
+
import { trackTransaction } from './chunk-Z7GQR23T.js';
|
|
3
|
+
import { wait } from './chunk-H54ORPCL.js';
|
|
4
4
|
|
|
5
5
|
// src/public-functions/waitForTransaction.ts
|
|
6
6
|
var waitForTransaction = async ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { api } from './chunk-
|
|
1
|
+
import { api } from './chunk-H54ORPCL.js';
|
|
2
2
|
|
|
3
3
|
// src/api/postSubmitTransaction.ts
|
|
4
4
|
var submitTransaction = api({
|
|
5
5
|
methodName: "submit",
|
|
6
6
|
method: "post",
|
|
7
|
-
path: "
|
|
7
|
+
path: "v2/tx/submit"
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
export { submitTransaction };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
|
|
2
2
|
import { chains } from './chunk-36MCR5DZ.js';
|
|
3
|
-
import { ClientState } from './chunk-
|
|
3
|
+
import { ClientState } from './chunk-I7WONP6Y.js';
|
|
4
4
|
|
|
5
5
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
6
6
|
var getDefaultGasTokenForChain = async (chainId) => {
|
|
@@ -25,6 +25,9 @@ function convertKeys(obj, convertKey) {
|
|
|
25
25
|
|
|
26
26
|
// src/utils/generateApi.ts
|
|
27
27
|
var createRequestClient = ({ baseUrl, apiKey }) => {
|
|
28
|
+
if (!baseUrl?.endsWith("/")) {
|
|
29
|
+
baseUrl += "/";
|
|
30
|
+
}
|
|
28
31
|
const defaultHeaders = {
|
|
29
32
|
"content-type": "application/json",
|
|
30
33
|
...apiKey ? { authorization: apiKey } : {}
|
|
@@ -40,7 +43,10 @@ var createRequestClient = ({ baseUrl, apiKey }) => {
|
|
|
40
43
|
return body;
|
|
41
44
|
};
|
|
42
45
|
const get = async (path, params, signal) => {
|
|
43
|
-
|
|
46
|
+
if (path?.startsWith("/")) {
|
|
47
|
+
console.warn("paths that start with / are treated as absolute paths, please remove the leading / if this path is intended to be a relative path");
|
|
48
|
+
}
|
|
49
|
+
const url = new URL(path ?? "", baseUrl);
|
|
44
50
|
if (params && typeof params === "object") {
|
|
45
51
|
Object.entries(params).forEach(([key, value]) => {
|
|
46
52
|
if (value !== void 0 && value !== null) {
|
|
@@ -56,7 +62,10 @@ var createRequestClient = ({ baseUrl, apiKey }) => {
|
|
|
56
62
|
return handleResponse(response);
|
|
57
63
|
};
|
|
58
64
|
const post = async (path, data = {}, signal) => {
|
|
59
|
-
|
|
65
|
+
if (path?.startsWith("/")) {
|
|
66
|
+
console.warn("paths that start with / are treated as absolute paths, please remove the leading / if this path is intended to be a relative path");
|
|
67
|
+
}
|
|
68
|
+
const response = await fetch(new URL(path, baseUrl).toString(), {
|
|
60
69
|
method: "POST",
|
|
61
70
|
headers: defaultHeaders,
|
|
62
71
|
body: JSON.stringify(data),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { api } from './chunk-
|
|
1
|
+
import { api } from './chunk-H54ORPCL.js';
|
|
2
2
|
|
|
3
3
|
// src/api/postSubmit.ts
|
|
4
4
|
var submit = api({
|
|
5
5
|
methodName: "submit",
|
|
6
6
|
method: "post",
|
|
7
|
-
path: "
|
|
7
|
+
path: "v2/tx/submit"
|
|
8
8
|
});
|
|
9
9
|
|
|
10
10
|
export { submit };
|