@skip-go/client 1.0.1 → 1.0.3-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.
- package/dist/api/getAssets.js +2 -15
- package/dist/api/getAssetsBetweenChains.js +2 -11
- package/dist/api/getBridges.js +2 -11
- package/dist/api/getChains.js +2 -11
- package/dist/api/getVenues.js +2 -11
- package/dist/api/postAssetsFromSource.js +3 -12
- package/dist/api/postBalances.js +2 -11
- package/dist/api/postIbcOriginAssets.js +2 -11
- package/dist/api/postMessages.d.ts +183 -183
- package/dist/api/postMessages.js +2 -11
- package/dist/api/postMessagesDirect.d.ts +183 -183
- package/dist/api/postMessagesDirect.js +2 -11
- package/dist/api/postRecommendAssets.js +2 -11
- package/dist/api/postRoute.d.ts +160 -160
- package/dist/api/postRoute.js +2 -11
- package/dist/api/postSubmitTransaction.js +2 -11
- package/dist/api/postTrackTransaction.js +2 -11
- package/dist/api/postTransactionStatus.js +2 -11
- package/dist/chunk-33K6EESX.js +10 -0
- package/dist/{chunk-Z4ZKOUGH.js → chunk-4JJWOILI.js} +3 -5
- package/dist/chunk-BQTQJQ5E.js +10 -0
- package/dist/chunk-BRMONS6A.js +130 -0
- package/dist/{chunk-ZG23Z3WY.js → chunk-C2EDPY6J.js} +3 -5
- package/dist/chunk-DW4U6YI6.js +10 -0
- package/dist/chunk-F75DC5RW.js +1786 -0
- package/dist/chunk-GARVPN2H.js +16 -0
- package/dist/{chunk-CG5CQQBW.js → chunk-JTIHU43D.js} +33 -42
- package/dist/{chunk-5ZJBR5AQ.js → chunk-KNV72XRZ.js} +3 -5
- package/dist/chunk-MGVXJ2U4.js +11 -0
- package/dist/chunk-MTMPHY3Y.js +9 -0
- package/dist/{chunk-GFRPLEJR.js → chunk-PHTQQIAH.js} +278 -311
- package/dist/{chunk-RE2QZJWE.js → chunk-PRQ2NHRZ.js} +3 -5
- package/dist/chunk-RDRDFJQE.js +10 -0
- package/dist/chunk-RMP3HM5N.js +14 -0
- package/dist/{chunk-X2YPYBVN.js → chunk-SONZJVQM.js} +59 -68
- package/dist/chunk-SWYON2RG.js +1 -4
- package/dist/{chunk-RT5TZAMU.js → chunk-TD63P2AG.js} +212 -312
- package/dist/{chunk-PKPZTO4H.js → chunk-TW77BXMT.js} +10 -13
- package/dist/chunk-UNF72WYO.js +22 -0
- package/dist/{chunk-4XWIXR2P.js → chunk-VMPFHQ7U.js} +19 -27
- package/dist/chunk-VQ5SIQWU.js +1 -3
- package/dist/chunk-W6TBGBV3.js +675 -0
- package/dist/index.d.ts +0 -3
- package/dist/index.js +24 -209
- package/dist/public-functions/executeRoute.js +12 -21
- package/dist/public-functions/getFeeInfoForChain.js +5 -14
- package/dist/public-functions/getRecommendedGasPrice.d.ts +1 -1
- package/dist/public-functions/getRecommendedGasPrice.js +7 -16
- package/dist/public-functions/getSigningStargateClient.d.ts +2 -2
- package/dist/public-functions/getSigningStargateClient.js +4 -13
- package/dist/public-functions/setApiOptions.js +2 -11
- package/dist/public-functions/setClientOptions.js +4 -13
- package/package.json +12 -3
- package/dist/chunk-2WHYWV4Y.js +0 -12
- package/dist/chunk-5KVRQLI5.js +0 -17
- package/dist/chunk-6BTWKTNM.js +0 -16
- package/dist/chunk-6GJEXV5J.js +0 -130
- package/dist/chunk-ASPVKNJ7.js +0 -242
- package/dist/chunk-EQLA2SEZ.js +0 -2361
- package/dist/chunk-FVSSCQ6C.js +0 -12
- package/dist/chunk-KYFTM3PI.js +0 -12
- package/dist/chunk-L2Q5RP6O.js +0 -25
- package/dist/chunk-LRIPQQ4M.js +0 -11
- package/dist/chunk-X2E2TKVR.js +0 -12
- package/dist/chunk-YYNIFO2A.js +0 -13
package/dist/api/postRoute.d.ts
CHANGED
|
@@ -12,6 +12,128 @@ 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
|
+
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
|
+
} | {
|
|
15
137
|
axelarTransfer?: {
|
|
16
138
|
asset?: string | undefined;
|
|
17
139
|
feeAmount?: string | undefined;
|
|
@@ -81,6 +203,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
81
203
|
txIndex: number;
|
|
82
204
|
amountIn: string;
|
|
83
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;
|
|
84
214
|
} | {
|
|
85
215
|
cctpTransfer?: {
|
|
86
216
|
fromChainId?: string | undefined;
|
|
@@ -102,35 +232,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
102
232
|
amountIn: string;
|
|
103
233
|
amountOut: string;
|
|
104
234
|
} | {
|
|
105
|
-
|
|
235
|
+
hyperlaneTransfer?: {
|
|
106
236
|
fromChainId?: string | undefined;
|
|
107
237
|
toChainId?: string | undefined;
|
|
108
238
|
denomIn?: string | undefined;
|
|
109
239
|
denomOut?: string | undefined;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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?: {
|
|
240
|
+
hyperlaneContractAddress?: string | undefined;
|
|
241
|
+
feeAmount?: string | undefined;
|
|
242
|
+
feeAsset?: {
|
|
134
243
|
chainId: string;
|
|
135
244
|
coingeckoId?: string | undefined;
|
|
136
245
|
decimals?: number | undefined;
|
|
@@ -148,16 +257,9 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
148
257
|
tokenContract?: string | undefined;
|
|
149
258
|
trace: string;
|
|
150
259
|
} | undefined;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
txIndex: number;
|
|
155
|
-
amountIn: string;
|
|
156
|
-
amountOut: string;
|
|
157
|
-
} | {
|
|
158
|
-
bankSend?: {
|
|
159
|
-
chainId?: string | undefined;
|
|
160
|
-
denom?: string | undefined;
|
|
260
|
+
usdFeeAmount?: string | undefined;
|
|
261
|
+
bridgeId?: BridgeType | undefined;
|
|
262
|
+
smartRelay?: boolean | undefined;
|
|
161
263
|
} | undefined;
|
|
162
264
|
txIndex: number;
|
|
163
265
|
amountIn: string;
|
|
@@ -181,14 +283,28 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
181
283
|
amountIn: string;
|
|
182
284
|
amountOut: string;
|
|
183
285
|
} | {
|
|
184
|
-
|
|
286
|
+
transfer?: {
|
|
185
287
|
fromChainId?: string | undefined;
|
|
186
288
|
toChainId?: string | undefined;
|
|
187
289
|
denomIn?: string | undefined;
|
|
188
290
|
denomOut?: string | undefined;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
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?: {
|
|
192
308
|
chainId: string;
|
|
193
309
|
coingeckoId?: string | undefined;
|
|
194
310
|
decimals?: number | undefined;
|
|
@@ -206,27 +322,9 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
206
322
|
tokenContract?: string | undefined;
|
|
207
323
|
trace: string;
|
|
208
324
|
} | undefined;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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?: {
|
|
325
|
+
oftFeeAmount?: string | undefined;
|
|
326
|
+
oftFeeAmountUsd?: string | undefined;
|
|
327
|
+
messagingFeeAsset?: {
|
|
230
328
|
chainId: string;
|
|
231
329
|
coingeckoId?: string | undefined;
|
|
232
330
|
decimals?: number | undefined;
|
|
@@ -244,106 +342,8 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
244
342
|
tokenContract?: string | undefined;
|
|
245
343
|
trace: string;
|
|
246
344
|
} | undefined;
|
|
247
|
-
|
|
248
|
-
|
|
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;
|
|
345
|
+
messagingFeeAmount?: string | undefined;
|
|
346
|
+
messageingFeeAmountUsd?: string | undefined;
|
|
347
347
|
} | undefined;
|
|
348
348
|
txIndex: number;
|
|
349
349
|
amountIn: string;
|
package/dist/api/postRoute.js
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunk5KVRQLI5_js = require('../chunk-5KVRQLI5.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "route", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk5KVRQLI5_js.route; }
|
|
11
|
-
});
|
|
1
|
+
export { route } from '../chunk-GARVPN2H.js';
|
|
2
|
+
import '../chunk-W6TBGBV3.js';
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkKYFTM3PI_js = require('../chunk-KYFTM3PI.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "submitTransaction", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkKYFTM3PI_js.submitTransaction; }
|
|
11
|
-
});
|
|
1
|
+
export { submitTransaction } from '../chunk-RDRDFJQE.js';
|
|
2
|
+
import '../chunk-W6TBGBV3.js';
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkYYNIFO2A_js = require('../chunk-YYNIFO2A.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "trackTransaction", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkYYNIFO2A_js.trackTransaction; }
|
|
11
|
-
});
|
|
1
|
+
export { trackTransaction } from '../chunk-MGVXJ2U4.js';
|
|
2
|
+
import '../chunk-W6TBGBV3.js';
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunk2WHYWV4Y_js = require('../chunk-2WHYWV4Y.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "transactionStatus", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk2WHYWV4Y_js.transactionStatus; }
|
|
11
|
-
});
|
|
1
|
+
export { transactionStatus } from '../chunk-33K6EESX.js';
|
|
2
|
+
import '../chunk-W6TBGBV3.js';
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
1
|
+
import { api } from './chunk-W6TBGBV3.js';
|
|
4
2
|
|
|
5
3
|
// src/api/postRecommendAssets.ts
|
|
6
|
-
var recommendAssets =
|
|
4
|
+
var recommendAssets = api({
|
|
7
5
|
methodName: "getAssetRecommendations",
|
|
8
6
|
method: "post",
|
|
9
7
|
path: "/v2/fungible/recommend_assets",
|
|
@@ -12,4 +10,4 @@ var recommendAssets = chunkASPVKNJ7_js.api({
|
|
|
12
10
|
}
|
|
13
11
|
});
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
export { recommendAssets };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { api } from './chunk-W6TBGBV3.js';
|
|
2
|
+
|
|
3
|
+
// src/private-functions/getMainnetAndTestnetChains.ts
|
|
4
|
+
var getMainnetAndTestnetChains = async (apiOptions) => {
|
|
5
|
+
const [mainnetRes, testnetRes] = await Promise.all([
|
|
6
|
+
chains({
|
|
7
|
+
includeEvm: true,
|
|
8
|
+
includeSvm: true,
|
|
9
|
+
...apiOptions
|
|
10
|
+
}),
|
|
11
|
+
chains({
|
|
12
|
+
includeEvm: true,
|
|
13
|
+
includeSvm: true,
|
|
14
|
+
onlyTestnets: true,
|
|
15
|
+
...apiOptions
|
|
16
|
+
})
|
|
17
|
+
]);
|
|
18
|
+
const combinedChains = [...mainnetRes ?? [], ...testnetRes ?? []];
|
|
19
|
+
ClientState.skipChains = combinedChains;
|
|
20
|
+
return combinedChains;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// src/api/getAssets.ts
|
|
24
|
+
var assets = api({
|
|
25
|
+
methodName: "getAssets",
|
|
26
|
+
path: "/v2/fungible/assets",
|
|
27
|
+
transformResponse: (response) => {
|
|
28
|
+
return transformAssetsMap(response.chainToAssetsMap);
|
|
29
|
+
},
|
|
30
|
+
onSuccess: (response, options) => {
|
|
31
|
+
if (options?.includeEvmAssets && options?.includeSvmAssets && options?.includeCw20Assets) {
|
|
32
|
+
ClientState.skipAssets = response;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var transformAssetsMap = (input) => Object.entries(input ?? {}).reduce(
|
|
37
|
+
(acc, [chainId, { assets: assets2 }]) => {
|
|
38
|
+
acc[chainId] = (assets2 ?? []).map((asset) => asset);
|
|
39
|
+
return acc;
|
|
40
|
+
},
|
|
41
|
+
{}
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
// src/private-functions/getMainnetAndTestnetAssets.ts
|
|
45
|
+
var getMainnetAndTestnetAssets = async ({
|
|
46
|
+
chainId,
|
|
47
|
+
...apiOptions
|
|
48
|
+
}) => {
|
|
49
|
+
const [assetsMainnet, assetsTestnet] = await Promise.all([
|
|
50
|
+
assets({
|
|
51
|
+
chainIds: chainId ? [chainId] : void 0,
|
|
52
|
+
...apiOptions
|
|
53
|
+
}),
|
|
54
|
+
assets({
|
|
55
|
+
chainIds: chainId ? [chainId] : void 0,
|
|
56
|
+
onlyTestnets: true,
|
|
57
|
+
...apiOptions
|
|
58
|
+
})
|
|
59
|
+
]);
|
|
60
|
+
const mainnet = assetsMainnet;
|
|
61
|
+
const testnet = assetsTestnet;
|
|
62
|
+
const merged = {
|
|
63
|
+
...mainnet,
|
|
64
|
+
...testnet
|
|
65
|
+
};
|
|
66
|
+
ClientState.skipAssets = merged;
|
|
67
|
+
return merged;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// src/api/postBalances.ts
|
|
71
|
+
var balances = api({
|
|
72
|
+
methodName: "getBalances",
|
|
73
|
+
method: "post",
|
|
74
|
+
path: "/v2/info/balances",
|
|
75
|
+
onSuccess: (response, options) => {
|
|
76
|
+
if (!options) {
|
|
77
|
+
ClientState.skipBalances = response;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
// src/state/clientState.ts
|
|
83
|
+
var ClientState = class {
|
|
84
|
+
static aminoTypes;
|
|
85
|
+
static registry;
|
|
86
|
+
static endpointOptions;
|
|
87
|
+
static skipChains;
|
|
88
|
+
static skipAssets;
|
|
89
|
+
static skipBalances;
|
|
90
|
+
static async getSkipChains(apiOptions) {
|
|
91
|
+
if (this.skipChains) {
|
|
92
|
+
return this.skipChains;
|
|
93
|
+
}
|
|
94
|
+
const response = await getMainnetAndTestnetChains(apiOptions);
|
|
95
|
+
this.skipChains = response;
|
|
96
|
+
return response;
|
|
97
|
+
}
|
|
98
|
+
static async getSkipAssets(props) {
|
|
99
|
+
if (this.skipAssets) {
|
|
100
|
+
return this.skipAssets;
|
|
101
|
+
}
|
|
102
|
+
const response = await getMainnetAndTestnetAssets(props);
|
|
103
|
+
this.skipAssets = response;
|
|
104
|
+
return response;
|
|
105
|
+
}
|
|
106
|
+
static async getSkipBalances() {
|
|
107
|
+
if (this.skipBalances) {
|
|
108
|
+
return this.skipBalances;
|
|
109
|
+
}
|
|
110
|
+
const response = await balances();
|
|
111
|
+
this.skipBalances = response;
|
|
112
|
+
return response;
|
|
113
|
+
}
|
|
114
|
+
static signingStargateClientByChainId = {};
|
|
115
|
+
static validateGasResults;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
// src/api/getChains.ts
|
|
119
|
+
var chains = api({
|
|
120
|
+
methodName: "getChains",
|
|
121
|
+
path: "/v2/info/chains",
|
|
122
|
+
transformResponse: (response) => response.chains,
|
|
123
|
+
onSuccess: (response, options) => {
|
|
124
|
+
if (options?.includeEvm && options?.includeSvm) {
|
|
125
|
+
ClientState.skipChains = response;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export { ClientState, assets, balances, chains, transformAssetsMap };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
1
|
+
import { api } from './chunk-W6TBGBV3.js';
|
|
4
2
|
|
|
5
3
|
// src/api/getVenues.ts
|
|
6
|
-
var venues =
|
|
4
|
+
var venues = api({
|
|
7
5
|
methodName: "getVenues",
|
|
8
6
|
path: "/v2/fungible/venues",
|
|
9
7
|
transformResponse: (response) => response.venues
|
|
10
8
|
});
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
export { venues };
|