@skip-go/client 1.0.2 → 1.0.3
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.cjs +15 -0
- package/dist/api/{getAssets.d.ts → getAssets.d.cts} +2 -2
- package/dist/api/getAssetsBetweenChains.cjs +11 -0
- package/dist/api/{getAssetsBetweenChains.d.ts → getAssetsBetweenChains.d.cts} +2 -2
- package/dist/api/getBridges.cjs +11 -0
- package/dist/api/{getBridges.d.ts → getBridges.d.cts} +2 -2
- package/dist/api/getChains.cjs +11 -0
- package/dist/api/{getChains.d.ts → getChains.d.cts} +2 -2
- package/dist/api/getVenues.cjs +11 -0
- package/dist/api/{getVenues.d.ts → getVenues.d.cts} +1 -1
- package/dist/api/postAssetsFromSource.cjs +12 -0
- package/dist/api/{postAssetsFromSource.d.ts → postAssetsFromSource.d.cts} +2 -2
- package/dist/api/postBalances.cjs +11 -0
- package/dist/api/{postBalances.d.ts → postBalances.d.cts} +3 -3
- package/dist/api/postIbcOriginAssets.cjs +11 -0
- package/dist/api/{postIbcOriginAssets.d.ts → postIbcOriginAssets.d.cts} +1 -1
- package/dist/api/postMessages.cjs +11 -0
- package/dist/api/{postMessages.d.ts → postMessages.d.cts} +186 -186
- package/dist/api/postMessagesDirect.cjs +11 -0
- package/dist/api/{postMessagesDirect.d.ts → postMessagesDirect.d.cts} +185 -185
- package/dist/api/postRecommendAssets.cjs +11 -0
- package/dist/api/{postRecommendAssets.d.ts → postRecommendAssets.d.cts} +2 -2
- package/dist/api/postRoute.cjs +11 -0
- package/dist/api/{postRoute.d.ts → postRoute.d.cts} +163 -163
- package/dist/api/postSubmitTransaction.cjs +11 -0
- package/dist/api/{postSubmitTransaction.d.ts → postSubmitTransaction.d.cts} +1 -1
- package/dist/api/postTrackTransaction.cjs +11 -0
- package/dist/api/{postTrackTransaction.d.ts → postTrackTransaction.d.cts} +1 -1
- package/dist/api/postTransactionStatus.cjs +11 -0
- package/dist/api/{postTransactionStatus.d.ts → postTransactionStatus.d.cts} +3 -3
- package/dist/chunk-32MRDO7V.cjs +12 -0
- package/dist/chunk-44PBLFB5.cjs +24 -0
- package/dist/{chunk-VQ5SIQWU.js → chunk-4R6OCWRR.cjs} +3 -1
- package/dist/{chunk-SQGWZAUC.js → chunk-5IAEEEOQ.cjs} +243 -221
- package/dist/{chunk-4JJWOILI.js → chunk-77ITCT75.cjs} +5 -3
- package/dist/{chunk-3OZQ35X3.js → chunk-7OIZPQJB.cjs} +174 -111
- package/dist/{chunk-JTIHU43D.js → chunk-7SK3IFXJ.cjs} +6 -1
- package/dist/chunk-DAMZSSOH.cjs +12 -0
- package/dist/{chunk-BRMONS6A.js → chunk-ED2OY55G.cjs} +11 -5
- package/dist/{chunk-735L35R6.js → chunk-G7BBDZ7C.cjs} +208 -186
- package/dist/{chunk-W6TBGBV3.js → chunk-HAR3IXDE.cjs} +31 -1
- package/dist/chunk-ISHM4QWP.cjs +16 -0
- package/dist/{chunk-VMPFHQ7U.js → chunk-J4LI33TK.cjs} +11 -9
- package/dist/chunk-KDN7RCGP.cjs +13 -0
- package/dist/{chunk-SWYON2RG.js → chunk-KZOSEIWH.cjs} +4 -1
- package/dist/chunk-L5V5PASH.cjs +12 -0
- package/dist/chunk-LXYLWTNZ.cjs +12 -0
- package/dist/{chunk-C2EDPY6J.js → chunk-PNWIJSMA.cjs} +5 -3
- package/dist/{chunk-PRQ2NHRZ.js → chunk-RDOSNDAQ.cjs} +5 -3
- package/dist/{chunk-GARVPN2H.js → chunk-SFMBRLUS.cjs} +6 -4
- package/dist/{chunk-3N7XVGLX.js → chunk-SW3SEQMJ.cjs} +51 -47
- package/dist/chunk-URLFWBSC.cjs +11 -0
- package/dist/{chunk-KNV72XRZ.js → chunk-VI7UMBQ7.cjs} +5 -3
- package/dist/{chunk-TW77BXMT.js → chunk-ZNXE6PUV.cjs} +9 -7
- package/dist/{client-types-CxjtffyG.d.ts → client-types-qvyKvyFh.d.cts} +1 -1
- package/dist/{executeRoute-BKvMVd1I.d.ts → executeRoute-BKRpODCc.d.cts} +3 -3
- package/dist/{generateApi-DqCp36fX.d.ts → generateApi-C0amiydg.d.cts} +1 -1
- package/dist/index.cjs +209 -0
- package/dist/{index.d.ts → index.d.cts} +25 -25
- package/dist/public-functions/executeRoute.cjs +21 -0
- package/dist/public-functions/{executeRoute.d.ts → executeRoute.d.cts} +4 -4
- package/dist/public-functions/getFeeInfoForChain.cjs +14 -0
- package/dist/public-functions/{getFeeInfoForChain.d.ts → getFeeInfoForChain.d.cts} +2 -2
- package/dist/public-functions/getRecommendedGasPrice.cjs +16 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.ts → getRecommendedGasPrice.d.cts} +1 -1
- package/dist/public-functions/getSigningStargateClient.cjs +13 -0
- package/dist/public-functions/setApiOptions.cjs +11 -0
- package/dist/public-functions/{setApiOptions.d.ts → setApiOptions.d.cts} +2 -2
- package/dist/public-functions/setClientOptions.cjs +13 -0
- package/dist/public-functions/setClientOptions.d.cts +9 -0
- package/dist/{setClientOptions-DbanEIwL.d.ts → setClientOptions-CT6CHI9I.d.cts} +2 -2
- package/package.json +6 -6
- package/dist/api/getAssets.js +0 -2
- package/dist/api/getAssetsBetweenChains.js +0 -2
- package/dist/api/getBridges.js +0 -2
- package/dist/api/getChains.js +0 -2
- package/dist/api/getVenues.js +0 -2
- package/dist/api/postAssetsFromSource.js +0 -3
- package/dist/api/postBalances.js +0 -2
- package/dist/api/postIbcOriginAssets.js +0 -2
- package/dist/api/postMessages.js +0 -2
- package/dist/api/postMessagesDirect.js +0 -2
- package/dist/api/postRecommendAssets.js +0 -2
- package/dist/api/postRoute.js +0 -2
- package/dist/api/postSubmitTransaction.js +0 -2
- package/dist/api/postTrackTransaction.js +0 -2
- package/dist/api/postTransactionStatus.js +0 -2
- package/dist/chunk-33K6EESX.js +0 -10
- package/dist/chunk-BQTQJQ5E.js +0 -10
- package/dist/chunk-BRJDNGYH.js +0 -22
- package/dist/chunk-DW4U6YI6.js +0 -10
- package/dist/chunk-MGVXJ2U4.js +0 -11
- package/dist/chunk-MTMPHY3Y.js +0 -9
- package/dist/chunk-RDRDFJQE.js +0 -10
- package/dist/chunk-RMP3HM5N.js +0 -14
- package/dist/index.js +0 -24
- package/dist/public-functions/executeRoute.js +0 -12
- package/dist/public-functions/getFeeInfoForChain.js +0 -5
- package/dist/public-functions/getRecommendedGasPrice.js +0 -7
- package/dist/public-functions/getSigningStargateClient.js +0 -4
- package/dist/public-functions/setApiOptions.js +0 -2
- package/dist/public-functions/setClientOptions.d.ts +0 -9
- package/dist/public-functions/setClientOptions.js +0 -4
- /package/dist/{apiState-CdzxTxYd.d.ts → apiState-CdzxTxYd.d.cts} +0 -0
- /package/dist/public-functions/{getSigningStargateClient.d.ts → getSigningStargateClient.d.cts} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.ts → swaggerTypes-O9-gvCT1.d.cts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as BridgeType, ao as RoutePriceWarningType, b2 as FeeType } from '../swaggerTypes-O9-gvCT1.
|
|
2
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
1
|
+
import { I as BridgeType, ao as RoutePriceWarningType, b2 as FeeType } from '../swaggerTypes-O9-gvCT1.cjs';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-C0amiydg.cjs';
|
|
4
4
|
|
|
5
5
|
declare const route: (request: RouteRequest) => Promise<{
|
|
6
6
|
amountIn: string;
|
|
@@ -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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkL5V5PASH_cjs = require('../chunk-L5V5PASH.cjs');
|
|
4
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "submitTransaction", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkL5V5PASH_cjs.submitTransaction; }
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKDN7RCGP_cjs = require('../chunk-KDN7RCGP.cjs');
|
|
4
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "trackTransaction", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkKDN7RCGP_cjs.trackTransaction; }
|
|
11
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDAMZSSOH_cjs = require('../chunk-DAMZSSOH.cjs');
|
|
4
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "transactionStatus", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkDAMZSSOH_cjs.transactionStatus; }
|
|
11
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { au as StatusErrorType, aI as TransactionState, ak as PacketErrorType, aR as TransferState, k as AxelarTransferState, N as ContractCallWithTokenErrorType, ar as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a7 as HyperlaneTransferState, aN as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aO as LayerZeroTransferState } from '../swaggerTypes-O9-gvCT1.
|
|
2
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.
|
|
3
|
-
import { a as ApiResponse } from '../generateApi-
|
|
1
|
+
import { au as StatusErrorType, aI as TransactionState, ak as PacketErrorType, aR as TransferState, k as AxelarTransferState, N as ContractCallWithTokenErrorType, ar as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a7 as HyperlaneTransferState, aN as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aO as LayerZeroTransferState } from '../swaggerTypes-O9-gvCT1.cjs';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
|
|
3
|
+
import { a as ApiResponse } from '../generateApi-C0amiydg.cjs';
|
|
4
4
|
|
|
5
5
|
declare const transactionStatus: (params?: ({
|
|
6
6
|
txHash: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
|
|
4
|
+
|
|
5
|
+
// src/api/postMessages.ts
|
|
6
|
+
var messages = chunkHAR3IXDE_cjs.api({
|
|
7
|
+
methodName: "getMsgsV2",
|
|
8
|
+
method: "post",
|
|
9
|
+
path: "/v2/fungible/msgs"
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
exports.messages = messages;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4R6OCWRR_cjs = require('./chunk-4R6OCWRR.cjs');
|
|
4
|
+
var chunkJ4LI33TK_cjs = require('./chunk-J4LI33TK.cjs');
|
|
5
|
+
var decimal = require('@cosmjs/math/build/decimal');
|
|
6
|
+
var stargate = require('@cosmjs/stargate');
|
|
7
|
+
|
|
8
|
+
var getRecommendedGasPrice = async (props) => {
|
|
9
|
+
const feeInfo = await chunkJ4LI33TK_cjs.getFeeInfoForChain(props);
|
|
10
|
+
if (!feeInfo || !feeInfo.gasPrice) {
|
|
11
|
+
return void 0;
|
|
12
|
+
}
|
|
13
|
+
let price = feeInfo.gasPrice.average;
|
|
14
|
+
if (price === "") {
|
|
15
|
+
price = feeInfo.gasPrice.high;
|
|
16
|
+
}
|
|
17
|
+
if (price === "") {
|
|
18
|
+
price = feeInfo.gasPrice.low;
|
|
19
|
+
}
|
|
20
|
+
if (!price) return;
|
|
21
|
+
return new stargate.GasPrice(decimal.Decimal.fromUserInput(chunk4R6OCWRR_cjs.BigNumber(price).toFixed(), 18), feeInfo.denom);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
exports.getRecommendedGasPrice = getRecommendedGasPrice;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
// ../../node_modules/bignumber.js/bignumber.mjs
|
|
2
4
|
var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
|
|
3
5
|
var mathceil = Math.ceil;
|
|
@@ -1341,4 +1343,4 @@ function toFixedPoint(str, e, z) {
|
|
|
1341
1343
|
}
|
|
1342
1344
|
var BigNumber = clone();
|
|
1343
1345
|
|
|
1344
|
-
|
|
1346
|
+
exports.BigNumber = BigNumber;
|