@skip-go/client 1.1.8 → 1.2.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.
- package/dist/api/getAssets.d.ts +2 -2
- package/dist/api/getAssets.js +2 -2
- package/dist/api/getAssetsBetweenChains.d.ts +2 -2
- package/dist/api/getAssetsBetweenChains.js +2 -2
- package/dist/api/getBridges.d.ts +2 -2
- package/dist/api/getBridges.js +2 -2
- package/dist/api/getChains.d.ts +2 -2
- package/dist/api/getChains.js +2 -2
- package/dist/api/getVenues.d.ts +1 -1
- package/dist/api/getVenues.js +2 -2
- package/dist/api/postAssetsFromSource.d.ts +2 -2
- package/dist/api/postAssetsFromSource.js +3 -3
- package/dist/api/postBalances.d.ts +3 -3
- package/dist/api/postBalances.js +2 -2
- package/dist/api/postIbcOriginAssets.d.ts +1 -1
- package/dist/api/postIbcOriginAssets.js +2 -2
- package/dist/api/postMessages.d.ts +4 -3
- package/dist/api/postMessages.js +2 -2
- package/dist/api/postMessagesDirect.d.ts +196 -195
- package/dist/api/postMessagesDirect.js +2 -2
- package/dist/api/postRecommendAssets.d.ts +2 -2
- package/dist/api/postRecommendAssets.js +2 -2
- package/dist/api/postRoute.d.ts +191 -191
- package/dist/api/postRoute.js +2 -2
- package/dist/api/postSubmit.d.ts +3 -3
- package/dist/api/postSubmit.js +2 -2
- package/dist/api/postSubmitTransaction.d.ts +1 -1
- package/dist/api/postSubmitTransaction.js +2 -2
- package/dist/api/postTrackTransaction.d.ts +6 -8
- package/dist/api/postTrackTransaction.js +2 -2
- package/dist/api/postTransactionStatus.d.ts +3 -3
- package/dist/api/postTransactionStatus.js +2 -2
- package/dist/{apiState-CdzxTxYd.d.ts → apiState-DwZhwVul.d.ts} +1 -0
- package/dist/{callbacks-BGRu2Ule.d.ts → callbacks-CPh0dr86.d.ts} +2 -2
- package/dist/{chunk-FC6WR2AB.js → chunk-2YOWXBHH.js} +4 -3
- package/dist/{chunk-C3GDPTDO.js → chunk-4CXSWHQ6.js} +1 -1
- package/dist/{chunk-I7WONP6Y.js → chunk-4XUWIG3Z.js} +1 -1
- package/dist/{chunk-H42CXF2U.js → chunk-6SQTOOYP.js} +1 -1
- package/dist/{chunk-MSWIIMAD.js → chunk-72PK3PKI.js} +3 -3
- package/dist/{chunk-RP5COGN6.js → chunk-7MWYHGMD.js} +2 -2
- package/dist/{chunk-EZ65IQWB.js → chunk-A4M35XLF.js} +5 -4
- package/dist/{chunk-5UHQEC5K.js → chunk-A7FWC5OX.js} +1 -1
- package/dist/{chunk-GH36M7RI.js → chunk-DF3WCTFB.js} +1 -1
- package/dist/{chunk-FVI3HTIO.js → chunk-GOPRDIYL.js} +7 -5
- package/dist/chunk-IWMMZY56.js +20 -0
- package/dist/{chunk-QYJTS5PW.js → chunk-NQZYCFAA.js} +1 -1
- package/dist/{chunk-PXL7VX4V.js → chunk-O4IHON37.js} +1 -1
- package/dist/{chunk-I5GT57P3.js → chunk-OFBEDG4X.js} +1 -1
- package/dist/{chunk-WN4AUWSP.js → chunk-RE4YYQCE.js} +1 -1
- package/dist/{chunk-FRP5Y35B.js → chunk-THUBVEVZ.js} +1 -1
- package/dist/{chunk-IHHYXB3K.js → chunk-U6NXCWXE.js} +1 -1
- package/dist/{chunk-YSXM6ATC.js → chunk-UCUUIQHV.js} +1 -1
- package/dist/{chunk-6NMCE4AL.js → chunk-UNMBRIHZ.js} +156 -59
- package/dist/{chunk-M7EBNJWK.js → chunk-XZV42PVV.js} +1 -1
- package/dist/{chunk-H54ORPCL.js → chunk-YABXOO3H.js} +22 -14
- package/dist/{chunk-NQNYCD4R.js → chunk-Z3Z7A3YS.js} +1 -1
- package/dist/{client-types-BkeR6R_z.d.ts → client-types-DRmsTfeT.d.ts} +1 -1
- package/dist/generateApi-D7KXciAd.d.ts +55 -0
- package/dist/index.d.ts +12 -8
- package/dist/index.js +22 -22
- package/dist/public-functions/executeRoute.d.ts +23 -4
- package/dist/public-functions/executeRoute.js +11 -11
- package/dist/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/public-functions/getEvmGasAmountForMessage.d.ts +2 -2
- package/dist/public-functions/getFeeInfoForChain.d.ts +2 -2
- package/dist/public-functions/getFeeInfoForChain.js +3 -3
- package/dist/public-functions/getRecommendedGasPrice.d.ts +1 -1
- package/dist/public-functions/getRecommendedGasPrice.js +4 -4
- package/dist/public-functions/getSigningStargateClient.js +3 -3
- package/dist/public-functions/setApiOptions.d.ts +2 -2
- package/dist/public-functions/setApiOptions.js +2 -2
- package/dist/public-functions/setClientOptions.d.ts +4 -4
- package/dist/public-functions/setClientOptions.js +3 -3
- package/dist/public-functions/waitForTransaction.d.ts +6 -6
- package/dist/public-functions/waitForTransaction.js +4 -4
- package/dist/{setClientOptions-CI_7IPLT.d.ts → setClientOptions-CwcM5Ps9.d.ts} +2 -2
- package/dist/{swaggerTypes-CAERZYPb.d.ts → swaggerTypes-BpJPRbC3.d.ts} +6 -2
- package/package.json +1 -1
- package/dist/chunk-Z7GQR23T.js +0 -11
- package/dist/generateApi-8YPJU-Al.d.ts +0 -22
package/dist/api/postRoute.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-
|
|
2
|
-
import { S as SkipApiOptions } from '../apiState-
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
1
|
+
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-BpJPRbC3.js';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-D7KXciAd.js';
|
|
4
4
|
|
|
5
5
|
declare const route: (request: RouteRequest) => Promise<{
|
|
6
6
|
amountIn: string;
|
|
@@ -12,130 +12,6 @@ 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
|
-
} | {
|
|
139
15
|
axelarTransfer?: {
|
|
140
16
|
asset?: string | undefined;
|
|
141
17
|
feeAmount?: string | undefined;
|
|
@@ -207,14 +83,6 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
207
83
|
txIndex: number;
|
|
208
84
|
amountIn: string;
|
|
209
85
|
amountOut: string;
|
|
210
|
-
} | {
|
|
211
|
-
bankSend?: {
|
|
212
|
-
chainId?: string | undefined;
|
|
213
|
-
denom?: string | undefined;
|
|
214
|
-
} | undefined;
|
|
215
|
-
txIndex: number;
|
|
216
|
-
amountIn: string;
|
|
217
|
-
amountOut: string;
|
|
218
86
|
} | {
|
|
219
87
|
cctpTransfer?: {
|
|
220
88
|
fromChainId?: string | undefined;
|
|
@@ -236,14 +104,15 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
236
104
|
amountIn: string;
|
|
237
105
|
amountOut: string;
|
|
238
106
|
} | {
|
|
239
|
-
|
|
107
|
+
stargateTransfer?: {
|
|
240
108
|
fromChainId?: string | undefined;
|
|
241
109
|
toChainId?: string | undefined;
|
|
242
110
|
denomIn?: string | undefined;
|
|
243
111
|
denomOut?: string | undefined;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
112
|
+
bridgeId?: BridgeType | undefined;
|
|
113
|
+
poolAddress?: string | undefined;
|
|
114
|
+
destinationEndpointId?: number | undefined;
|
|
115
|
+
oftFeeAsset?: {
|
|
247
116
|
chainId: string;
|
|
248
117
|
coingeckoId?: string | undefined;
|
|
249
118
|
decimals?: number | undefined;
|
|
@@ -261,9 +130,74 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
261
130
|
tokenContract?: string | undefined;
|
|
262
131
|
trace: string;
|
|
263
132
|
} | undefined;
|
|
264
|
-
|
|
133
|
+
oftFeeAmount?: string | undefined;
|
|
134
|
+
oftFeeAmountUsd?: string | undefined;
|
|
135
|
+
messagingFeeAsset?: {
|
|
136
|
+
chainId: string;
|
|
137
|
+
coingeckoId?: string | undefined;
|
|
138
|
+
decimals?: number | undefined;
|
|
139
|
+
denom: string;
|
|
140
|
+
description?: string | undefined;
|
|
141
|
+
isCw20: boolean;
|
|
142
|
+
isEvm: boolean;
|
|
143
|
+
isSvm: boolean;
|
|
144
|
+
logoUri?: string | undefined;
|
|
145
|
+
name?: string | undefined;
|
|
146
|
+
originChainId: string;
|
|
147
|
+
originDenom: string;
|
|
148
|
+
recommendedSymbol?: string | undefined;
|
|
149
|
+
symbol?: string | undefined;
|
|
150
|
+
tokenContract?: string | undefined;
|
|
151
|
+
trace: string;
|
|
152
|
+
} | undefined;
|
|
153
|
+
messagingFeeAmount?: string | undefined;
|
|
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;
|
|
265
163
|
bridgeId?: BridgeType | undefined;
|
|
266
|
-
|
|
164
|
+
denomIn?: string | undefined;
|
|
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;
|
|
267
201
|
} | undefined;
|
|
268
202
|
txIndex: number;
|
|
269
203
|
amountIn: string;
|
|
@@ -287,28 +221,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
287
221
|
amountIn: string;
|
|
288
222
|
amountOut: string;
|
|
289
223
|
} | {
|
|
290
|
-
|
|
291
|
-
fromChainId?: string | undefined;
|
|
292
|
-
toChainId?: string | undefined;
|
|
293
|
-
denomIn?: string | undefined;
|
|
294
|
-
denomOut?: string | undefined;
|
|
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?: {
|
|
224
|
+
hyperlaneTransfer?: {
|
|
304
225
|
fromChainId?: string | undefined;
|
|
305
226
|
toChainId?: string | undefined;
|
|
306
227
|
denomIn?: string | undefined;
|
|
307
228
|
denomOut?: string | undefined;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
oftFeeAsset?: {
|
|
229
|
+
hyperlaneContractAddress?: string | undefined;
|
|
230
|
+
feeAmount?: string | undefined;
|
|
231
|
+
feeAsset?: {
|
|
312
232
|
chainId: string;
|
|
313
233
|
coingeckoId?: string | undefined;
|
|
314
234
|
decimals?: number | undefined;
|
|
@@ -326,9 +246,29 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
326
246
|
tokenContract?: string | undefined;
|
|
327
247
|
trace: string;
|
|
328
248
|
} | undefined;
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
249
|
+
usdFeeAmount?: string | undefined;
|
|
250
|
+
bridgeId?: BridgeType | undefined;
|
|
251
|
+
smartRelay?: boolean | undefined;
|
|
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?: {
|
|
332
272
|
chainId: string;
|
|
333
273
|
coingeckoId?: string | undefined;
|
|
334
274
|
decimals?: number | undefined;
|
|
@@ -346,46 +286,106 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
346
286
|
tokenContract?: string | undefined;
|
|
347
287
|
trace: string;
|
|
348
288
|
} | undefined;
|
|
349
|
-
|
|
350
|
-
|
|
289
|
+
bridgeId?: BridgeType | undefined;
|
|
290
|
+
smartRelay?: boolean | undefined;
|
|
351
291
|
} | undefined;
|
|
352
292
|
txIndex: number;
|
|
353
293
|
amountIn: string;
|
|
354
294
|
amountOut: string;
|
|
355
295
|
} | {
|
|
356
|
-
|
|
296
|
+
swap?: {
|
|
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;
|
|
357
314
|
fromChainId?: string | undefined;
|
|
358
|
-
toChainId?: string | undefined;
|
|
359
|
-
bridgeId?: BridgeType | undefined;
|
|
360
315
|
denomIn?: string | undefined;
|
|
361
316
|
denomOut?: string | undefined;
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
317
|
+
swapVenues?: {
|
|
318
|
+
chainId?: string | undefined;
|
|
319
|
+
name?: string | undefined;
|
|
320
|
+
logoUri?: string | undefined;
|
|
321
|
+
}[] | undefined;
|
|
322
|
+
} | {
|
|
323
|
+
swapOut?: {
|
|
324
|
+
swapAmountOut?: string | undefined;
|
|
325
|
+
swapOperations?: {
|
|
326
|
+
denomIn?: string | undefined;
|
|
327
|
+
denomOut?: string | undefined;
|
|
328
|
+
pool?: string | undefined;
|
|
329
|
+
interface?: string | undefined;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
swapVenue?: {
|
|
332
|
+
chainId?: string | undefined;
|
|
333
|
+
name?: string | undefined;
|
|
372
334
|
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;
|
|
373
352
|
name?: string | undefined;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
destinationChainFeeAmount?: string | undefined;
|
|
387
|
-
destinationChainFeeUsd?: string | undefined;
|
|
353
|
+
logoUri?: string | undefined;
|
|
354
|
+
} | undefined;
|
|
355
|
+
swapRoutes?: {
|
|
356
|
+
swapAmountIn?: string | undefined;
|
|
357
|
+
denomIn?: string | undefined;
|
|
358
|
+
swapOperations?: {
|
|
359
|
+
denomIn?: string | undefined;
|
|
360
|
+
denomOut?: string | undefined;
|
|
361
|
+
pool?: string | undefined;
|
|
362
|
+
interface?: string | undefined;
|
|
363
|
+
}[] | undefined;
|
|
364
|
+
}[] | undefined;
|
|
388
365
|
} | 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-U6NXCWXE.js';
|
|
2
|
+
import '../chunk-YABXOO3H.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
package/dist/api/postSubmit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SkipApiOptions } from '../apiState-
|
|
2
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
1
|
+
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-D7KXciAd.js';
|
|
3
|
+
import '../swaggerTypes-BpJPRbC3.js';
|
|
4
4
|
|
|
5
5
|
declare const submit: (options?: ({
|
|
6
6
|
tx?: string | undefined;
|
package/dist/api/postSubmit.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { submit } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { submit } from '../chunk-OFBEDG4X.js';
|
|
2
|
+
import '../chunk-YABXOO3H.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { submitTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { submitTransaction } from '../chunk-DF3WCTFB.js';
|
|
2
|
+
import '../chunk-YABXOO3H.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as ApiRequest, P as PollingProps } from '../generateApi-D7KXciAd.js';
|
|
2
|
+
import '../swaggerTypes-BpJPRbC3.js';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} & SkipApiOptions & {
|
|
7
|
-
abortDuplicateRequests?: boolean | undefined;
|
|
8
|
-
}) | undefined) => Promise<{
|
|
4
|
+
type TrackTxRequest = ApiRequest<"status"> & TrackTxPollingProps;
|
|
5
|
+
type TrackTxPollingProps = Omit<PollingProps<"status">, "isSuccess" | "onError" | "onSuccess">;
|
|
6
|
+
declare const trackTransaction: ({ maxRetries, retryInterval, backoffMultiplier, ...trackTxRequest }: TrackTxRequest) => Promise<{
|
|
9
7
|
txHash: string;
|
|
10
8
|
explorerLink: string;
|
|
11
9
|
}>;
|
|
12
10
|
|
|
13
|
-
export { trackTransaction };
|
|
11
|
+
export { type TrackTxPollingProps, type TrackTxRequest, trackTransaction };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { trackTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { trackTransaction } from '../chunk-IWMMZY56.js';
|
|
2
|
+
import '../chunk-YABXOO3H.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-
|
|
2
|
-
import { S as SkipApiOptions } from '../apiState-
|
|
3
|
-
import { a as ApiResponse } from '../generateApi-
|
|
1
|
+
import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-BpJPRbC3.js';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
3
|
+
import { a as ApiResponse } from '../generateApi-D7KXciAd.js';
|
|
4
4
|
|
|
5
5
|
declare const transactionStatus: (params?: ({
|
|
6
6
|
txHash: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { transactionStatus } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { transactionStatus } from '../chunk-XZV42PVV.js';
|
|
2
|
+
import '../chunk-YABXOO3H.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aU as TransferStatus, T as Erc20Approval } from './swaggerTypes-
|
|
1
|
+
import { aU as TransferStatus, T as Erc20Approval } from './swaggerTypes-BpJPRbC3.js';
|
|
2
2
|
|
|
3
|
-
type CallbackStatus = "
|
|
3
|
+
type CallbackStatus = "error" | "pending" | "completed";
|
|
4
4
|
type TransactionCallbacks = {
|
|
5
5
|
onTransactionSigned?: (txInfo: {
|
|
6
6
|
chainId: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ApiState, createRequestClient } from './chunk-
|
|
1
|
+
import { ApiState, createRequestClient } from './chunk-YABXOO3H.js';
|
|
2
2
|
|
|
3
3
|
// src/public-functions/setApiOptions.ts
|
|
4
4
|
var setApiOptions = (options = {}) => {
|
|
5
5
|
ApiState.client = createRequestClient({
|
|
6
|
-
|
|
7
|
-
apiKey: options.apiKey
|
|
6
|
+
apiUrl: options.apiUrl || "https://api.skip.build",
|
|
7
|
+
apiKey: options.apiKey,
|
|
8
|
+
apiHeaders: options.apiHeaders
|
|
8
9
|
});
|
|
9
10
|
ApiState.setClientInitialized();
|
|
10
11
|
if (options.chainIdsToAffiliates) {
|
|
@@ -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-4XUWIG3Z.js';
|
|
4
4
|
|
|
5
5
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
6
6
|
var getDefaultGasTokenForChain = async (chainId) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { chains, findFirstWorkingEndpoint } from './chunk-36MCR5DZ.js';
|
|
2
|
-
import { ClientState } from './chunk-
|
|
2
|
+
import { ClientState } from './chunk-4XUWIG3Z.js';
|
|
3
3
|
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
4
4
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
5
5
|
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary.js';
|
|
@@ -228,14 +228,14 @@ var getRpcEndpointForChain = async (chainId) => {
|
|
|
228
228
|
}
|
|
229
229
|
if (chain.apis?.rpc?.length === 0 || !chain.apis?.rpc) {
|
|
230
230
|
throw new Error(
|
|
231
|
-
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
231
|
+
`getRpcEndpointForChain error: failed to find RPC endpoint for chain id '${chainId}'`
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
234
|
const endpoints = chain.apis?.rpc?.map((api) => api.address);
|
|
235
235
|
const endpoint = await findFirstWorkingEndpoint(endpoints, "rpc");
|
|
236
236
|
if (!endpoint) {
|
|
237
237
|
throw new Error(
|
|
238
|
-
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
238
|
+
`getRpcEndpointForChain error: failed to find RPC endpoint for chain id '${chainId}'`
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
241
|
return endpoint;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { transformAssetsMap } from './chunk-
|
|
2
|
-
import { api } from './chunk-
|
|
1
|
+
import { transformAssetsMap } from './chunk-4XUWIG3Z.js';
|
|
2
|
+
import { api } from './chunk-YABXOO3H.js';
|
|
3
3
|
|
|
4
4
|
// src/api/postAssetsFromSource.ts
|
|
5
5
|
var assetsFromSource = api({
|
|
@@ -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-4XUWIG3Z.js';
|
|
3
|
+
import { ApiState, createRequestClient } from './chunk-YABXOO3H.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';
|
|
@@ -2201,8 +2201,9 @@ var evmosAminoConverters = {
|
|
|
2201
2201
|
var evmosProtoRegistry = [...registry2, ...registry3, ...registry4, ...registry5];
|
|
2202
2202
|
var setClientOptions = (options = {}) => {
|
|
2203
2203
|
ApiState.client = createRequestClient({
|
|
2204
|
-
|
|
2205
|
-
apiKey: options.apiKey
|
|
2204
|
+
apiUrl: options.apiUrl || "https://api.skip.build",
|
|
2205
|
+
apiKey: options.apiKey,
|
|
2206
|
+
apiHeaders: options.apiHeaders
|
|
2206
2207
|
});
|
|
2207
2208
|
ClientState.endpointOptions = options.endpointOptions ?? {};
|
|
2208
2209
|
ClientState.aminoTypes = new AminoTypes({
|