@skip-go/client 1.3.1 → 1.3.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/cjs/api/getAssets.cjs +5 -5
- package/dist/cjs/api/getAssetsBetweenChains.cjs +4 -4
- package/dist/cjs/api/getBridges.cjs +4 -4
- package/dist/cjs/api/getChains.cjs +4 -4
- package/dist/cjs/api/getVenues.cjs +4 -4
- package/dist/cjs/api/postAssetsFromSource.cjs +5 -5
- package/dist/cjs/api/postBalances.cjs +4 -4
- package/dist/cjs/api/postIbcOriginAssets.cjs +4 -4
- package/dist/cjs/api/postMessages.cjs +4 -4
- package/dist/cjs/api/postMessagesDirect.cjs +4 -4
- package/dist/cjs/api/postRecommendAssets.cjs +4 -4
- package/dist/cjs/api/postRoute.cjs +4 -4
- package/dist/cjs/api/postSubmitTransaction.cjs +4 -4
- package/dist/cjs/api/postTrackTransaction.cjs +4 -4
- package/dist/cjs/api/postTransactionStatus.cjs +4 -4
- package/dist/cjs/{chunk-EINQFLWN.cjs → chunk-2CCLIBCC.cjs} +2 -2
- package/dist/cjs/{chunk-SLZCWA4K.cjs → chunk-2EKCOIWV.cjs} +7 -7
- package/dist/cjs/{chunk-SIY2K7TT.cjs → chunk-2VQ2TNFM.cjs} +2 -2
- package/dist/cjs/{chunk-EQBTNGJJ.cjs → chunk-7I2KQNIU.cjs} +2 -2
- package/dist/cjs/{chunk-DUJSZRFD.cjs → chunk-A7GR26AQ.cjs} +58 -55
- package/dist/cjs/{chunk-WE7KICKO.cjs → chunk-B4OGYBRC.cjs} +2 -2
- package/dist/cjs/{chunk-OA5PE7TW.cjs → chunk-DBDB2XWX.cjs} +3 -3
- package/dist/cjs/{chunk-PFCGKAXF.cjs → chunk-DCFIIF7G.cjs} +2 -2
- package/dist/cjs/{chunk-W2DPDT3Y.cjs → chunk-EXK2GDR5.cjs} +2 -2
- package/dist/cjs/{chunk-G3G6PBIF.cjs → chunk-FO25SR66.cjs} +6 -6
- package/dist/cjs/{chunk-5FR25GF5.cjs → chunk-HKQ5VION.cjs} +1 -1
- package/dist/cjs/{chunk-CPTNOPWI.cjs → chunk-IDDRJJO5.cjs} +1 -0
- package/dist/cjs/{chunk-TCQMGBFL.cjs → chunk-J5RC6ZU5.cjs} +19 -11
- package/dist/cjs/{chunk-MGYSCMET.cjs → chunk-KJ5NZG2D.cjs} +10 -10
- package/dist/cjs/{chunk-KMDNP6DN.cjs → chunk-L4MLX6KI.cjs} +2 -2
- package/dist/cjs/{chunk-AHRSARNR.cjs → chunk-LP3L6XJB.cjs} +2 -2
- package/dist/cjs/{chunk-NQR3EPN2.cjs → chunk-MCZ3F457.cjs} +2 -2
- package/dist/cjs/{chunk-PG7RVHOU.cjs → chunk-MW3TE7DC.cjs} +2 -2
- package/dist/cjs/{chunk-TFL5E5A6.cjs → chunk-P7CDAHIX.cjs} +2 -2
- package/dist/cjs/{chunk-D2W4UBJB.cjs → chunk-QSISUSYP.cjs} +4 -4
- package/dist/cjs/{chunk-CWUD7UGL.cjs → chunk-XGBCEYWI.cjs} +2 -2
- package/dist/cjs/{chunk-HDKNPB2J.cjs → chunk-XNBHMZQZ.cjs} +6 -6
- package/dist/cjs/{chunk-TWPLCFOH.cjs → chunk-YYBGBKRE.cjs} +4 -4
- package/dist/cjs/index.cjs +78 -82
- package/dist/cjs/public-functions/executeRoute.cjs +14 -15
- package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +1 -1
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +5 -5
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +6 -6
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +5 -5
- package/dist/cjs/public-functions/setApiOptions.cjs +4 -4
- package/dist/cjs/public-functions/setClientOptions.cjs +5 -5
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +7 -7
- package/dist/cjs/public-functions/waitForTransaction.cjs +6 -6
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssets.js +3 -3
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.js +3 -3
- package/dist/esm/api/getBridges.d.ts +1 -1
- package/dist/esm/api/getBridges.js +3 -3
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/getChains.js +3 -3
- package/dist/esm/api/getVenues.js +3 -3
- package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.js +4 -4
- package/dist/esm/api/postBalances.d.ts +2 -2
- package/dist/esm/api/postBalances.js +3 -3
- package/dist/esm/api/postIbcOriginAssets.js +3 -3
- package/dist/esm/api/postMessages.d.ts +2 -2
- package/dist/esm/api/postMessages.js +3 -3
- package/dist/esm/api/postMessagesDirect.d.ts +195 -195
- package/dist/esm/api/postMessagesDirect.js +3 -3
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRecommendAssets.js +3 -3
- package/dist/esm/api/postRoute.d.ts +191 -191
- package/dist/esm/api/postRoute.js +3 -3
- package/dist/esm/api/postSubmitTransaction.d.ts +5 -1
- package/dist/esm/api/postSubmitTransaction.js +3 -3
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.js +3 -3
- package/dist/esm/api/postTransactionStatus.d.ts +2 -2
- package/dist/esm/api/postTransactionStatus.js +3 -3
- package/dist/esm/{callbacks-C2lXb0AH.d.ts → callbacks-CuL50GnB.d.ts} +1 -1
- package/dist/esm/{chunk-6ULKULTX.js → chunk-2L7PKZDY.js} +1 -1
- package/dist/esm/{chunk-7ZG7HNNC.js → chunk-2R3M45RX.js} +2 -2
- package/dist/esm/{chunk-HAGMHUOI.js → chunk-35H4PDPF.js} +23 -20
- package/dist/esm/{chunk-F65QOYUA.js → chunk-6F2T2KB3.js} +1 -1
- package/dist/esm/{chunk-MAOMQHG5.js → chunk-7ITTEUMR.js} +1 -1
- package/dist/esm/{chunk-4DI7G6TH.js → chunk-7YN3UVVF.js} +1 -1
- package/dist/esm/{chunk-CGZ5DA2T.js → chunk-CFDTJGQK.js} +1 -1
- package/dist/esm/{chunk-ERPZHRBM.js → chunk-CU6W3622.js} +17 -9
- package/dist/esm/{chunk-NZVZH6OA.js → chunk-GSCIF7YA.js} +1 -1
- package/dist/esm/{chunk-VUOOTNLG.js → chunk-HT6O3BQ7.js} +1 -1
- package/dist/esm/{chunk-ZTDLGX7X.js → chunk-IPHFFTGO.js} +1 -1
- package/dist/esm/{chunk-YLMQS52U.js → chunk-IWXRHEX4.js} +2 -2
- package/dist/esm/{chunk-UZKIIX6A.js → chunk-JIADJKRD.js} +1 -1
- package/dist/esm/{chunk-YYXOIRHZ.js → chunk-JSY7M43P.js} +1 -1
- package/dist/esm/{chunk-HS2D6FKN.js → chunk-JYUNVL4F.js} +1 -1
- package/dist/esm/{chunk-SS5LQKBL.js → chunk-LZI7A4JI.js} +1 -1
- package/dist/esm/{chunk-I4AMZAHH.js → chunk-MXCJ2M3K.js} +1 -1
- package/dist/esm/{chunk-PIQZD2VE.js → chunk-OHV2LZEG.js} +1 -1
- package/dist/esm/{chunk-C6NHVJ3R.js → chunk-OL7CWCPB.js} +2 -2
- package/dist/esm/{chunk-KYLULQOS.js → chunk-OQDBWVET.js} +1 -0
- package/dist/esm/{chunk-2R5COFPS.js → chunk-SJP6W2SK.js} +1 -1
- package/dist/esm/{chunk-QPJEHGY7.js → chunk-XXTECZG3.js} +1 -1
- package/dist/esm/{chunk-GOD6ESBZ.js → chunk-Y5H25R7Z.js} +1 -1
- package/dist/esm/{client-types-DuWWc2_J.d.ts → client-types-B7Fin0mq.d.ts} +2 -1
- package/dist/esm/{generateApi-DvFEIUee.d.ts → generateApi-C_xgtxrO.d.ts} +1 -1
- package/dist/esm/index.d.ts +20 -8
- package/dist/esm/index.js +25 -25
- package/dist/esm/public-functions/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +13 -14
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +2 -2
- package/dist/esm/public-functions/getEvmGasAmountForMessage.js +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +4 -4
- package/dist/esm/public-functions/getRecommendedGasPrice.js +5 -5
- package/dist/esm/public-functions/getSigningStargateClient.js +4 -4
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setApiOptions.js +3 -3
- package/dist/esm/public-functions/setClientOptions.d.ts +3 -3
- package/dist/esm/public-functions/setClientOptions.js +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +6 -6
- package/dist/esm/public-functions/waitForTransaction.d.ts +10 -6
- package/dist/esm/public-functions/waitForTransaction.js +5 -5
- package/dist/esm/{setClientOptions-B27lt_6h.d.ts → setClientOptions-BTRwCbmt.d.ts} +1 -1
- package/dist/esm/{swaggerTypes-BrC-ZYnx.d.ts → swaggerTypes-DDwqIjap.d.ts} +15 -2
- package/package.json +1 -1
- package/dist/cjs/api/postSubmit.cjs +0 -12
- package/dist/cjs/chunk-RFBDXALX.cjs +0 -12
- package/dist/esm/api/postSubmit.d.ts +0 -17
- package/dist/esm/api/postSubmit.js +0 -3
- package/dist/esm/chunk-6UMMVC2P.js +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-
|
|
1
|
+
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-DDwqIjap.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-C_xgtxrO.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;
|
|
@@ -423,7 +423,7 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
423
423
|
toChainId: string;
|
|
424
424
|
denomIn: string;
|
|
425
425
|
denomOut: string;
|
|
426
|
-
|
|
426
|
+
sourceOftContractAddress: string;
|
|
427
427
|
destinationEndpointId: number;
|
|
428
428
|
messagingFeeAsset: {
|
|
429
429
|
chainId: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { route } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { route } from '../chunk-JIADJKRD.js';
|
|
2
|
+
import '../chunk-LZI7A4JI.js';
|
|
3
|
+
import '../chunk-OQDBWVET.js';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-C_xgtxrO.js';
|
|
3
|
+
import '../swaggerTypes-DDwqIjap.js';
|
|
2
4
|
|
|
3
5
|
declare const submitTransaction: (options?: ({
|
|
4
6
|
tx?: string | undefined;
|
|
@@ -9,5 +11,7 @@ declare const submitTransaction: (options?: ({
|
|
|
9
11
|
txHash?: string | undefined;
|
|
10
12
|
explorerLink?: string | undefined;
|
|
11
13
|
} | undefined>;
|
|
14
|
+
type SubmitTransactionRequest = ApiRequest<"submit">;
|
|
15
|
+
type SubmitTransactionResponse = ApiResponse<"submit">;
|
|
12
16
|
|
|
13
|
-
export { submitTransaction };
|
|
17
|
+
export { type SubmitTransactionRequest, type SubmitTransactionResponse, submitTransaction };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { submitTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { submitTransaction } from '../chunk-OHV2LZEG.js';
|
|
2
|
+
import '../chunk-LZI7A4JI.js';
|
|
3
|
+
import '../chunk-OQDBWVET.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiRequest, P as PollingProps } from '../generateApi-
|
|
2
|
-
import '../swaggerTypes-
|
|
1
|
+
import { A as ApiRequest, P as PollingProps } from '../generateApi-C_xgtxrO.js';
|
|
2
|
+
import '../swaggerTypes-DDwqIjap.js';
|
|
3
3
|
|
|
4
4
|
type TrackTxRequest = ApiRequest<"status"> & TrackTxPollingProps;
|
|
5
5
|
type TrackTxPollingProps = Omit<PollingProps<"status">, "isSuccess" | "onError" | "onSuccess">;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { trackTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { trackTransaction } from '../chunk-7ITTEUMR.js';
|
|
2
|
+
import '../chunk-LZI7A4JI.js';
|
|
3
|
+
import '../chunk-OQDBWVET.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-
|
|
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-DDwqIjap.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
3
|
-
import { a as ApiResponse } from '../generateApi-
|
|
3
|
+
import { a as ApiResponse } from '../generateApi-C_xgtxrO.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-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { transactionStatus } from '../chunk-MXCJ2M3K.js';
|
|
2
|
+
import '../chunk-LZI7A4JI.js';
|
|
3
|
+
import '../chunk-OQDBWVET.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCosmosGasAmountForMessage } from './chunk-TV2XPAIF.js';
|
|
2
2
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
3
|
-
import { getSigningStargateClient } from './chunk-
|
|
4
|
-
import { ClientState, balances } from './chunk-
|
|
3
|
+
import { getSigningStargateClient } from './chunk-6F2T2KB3.js';
|
|
4
|
+
import { ClientState, balances } from './chunk-2L7PKZDY.js';
|
|
5
5
|
import { GasPrice, calculateFee } from '@cosmjs/stargate';
|
|
6
6
|
import { Decimal } from '@cosmjs/math';
|
|
7
7
|
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { validateCosmosGasBalance } from './chunk-
|
|
2
|
-
import { waitForTransaction } from './chunk-
|
|
1
|
+
import { validateCosmosGasBalance } from './chunk-2R3M45RX.js';
|
|
2
|
+
import { waitForTransaction } from './chunk-CU6W3622.js';
|
|
3
3
|
import { getEncodeObjectFromCosmosMessage, getEncodeObjectFromCosmosMessageInjective } from './chunk-TV2XPAIF.js';
|
|
4
4
|
import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
5
5
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
6
6
|
import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
7
|
-
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-
|
|
7
|
+
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-6F2T2KB3.js';
|
|
8
8
|
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-43P4WRGN.js';
|
|
9
|
-
import { messages } from './chunk-
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { ApiState, wait, createRequestClient, toCamel } from './chunk-SS5LQKBL.js';
|
|
9
|
+
import { messages } from './chunk-GSCIF7YA.js';
|
|
10
|
+
import { submitTransaction } from './chunk-OHV2LZEG.js';
|
|
11
|
+
import { venues } from './chunk-JSY7M43P.js';
|
|
12
|
+
import { ClientState, balances } from './chunk-2L7PKZDY.js';
|
|
13
|
+
import { ApiState, wait, createRequestClient, toCamel } from './chunk-LZI7A4JI.js';
|
|
15
14
|
import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
16
15
|
import { bech32m, bech32 } from 'bech32';
|
|
17
16
|
import { StargateClient } from '@cosmjs/stargate';
|
|
@@ -341,6 +340,8 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
341
340
|
signatures: [fromBase64(signature.signature)]
|
|
342
341
|
});
|
|
343
342
|
};
|
|
343
|
+
|
|
344
|
+
// src/private-functions/cosmos/signCosmosTransaction.ts
|
|
344
345
|
var signCosmosTransaction = async ({
|
|
345
346
|
tx,
|
|
346
347
|
options,
|
|
@@ -438,13 +439,14 @@ var executeCosmosTransaction = async ({
|
|
|
438
439
|
index
|
|
439
440
|
});
|
|
440
441
|
const chainId = tx.cosmosTx?.chainId;
|
|
441
|
-
const txResponse = await
|
|
442
|
+
const txResponse = await submitTransaction({
|
|
442
443
|
chainId,
|
|
443
444
|
tx: rawTxBase64
|
|
444
445
|
});
|
|
445
446
|
return {
|
|
446
447
|
chainId: tx?.cosmosTx?.chainId ?? "",
|
|
447
|
-
txHash: txResponse?.txHash ?? ""
|
|
448
|
+
txHash: txResponse?.txHash ?? "",
|
|
449
|
+
explorerLink: txResponse?.explorerLink ?? ""
|
|
448
450
|
};
|
|
449
451
|
};
|
|
450
452
|
function createAbi(abi) {
|
|
@@ -781,24 +783,23 @@ var signSvmTransaction = async ({
|
|
|
781
783
|
};
|
|
782
784
|
|
|
783
785
|
// src/private-functions/svm/executeSvmTransaction.ts
|
|
784
|
-
var executeSvmTransaction = async (tx, options) => {
|
|
786
|
+
var executeSvmTransaction = async (tx, options, index) => {
|
|
785
787
|
const svmTx = tx?.svmTx;
|
|
786
788
|
if (!svmTx?.chainId) {
|
|
787
789
|
throw new Error("executeSvmTransaction error: chainId not found in svmTx");
|
|
788
790
|
}
|
|
789
|
-
const signedTx = await signSvmTransaction({ tx, options });
|
|
791
|
+
const signedTx = await signSvmTransaction({ tx, options, index });
|
|
790
792
|
if (!signedTx) {
|
|
791
793
|
throw new Error("executeSvmTransaction error: signedTx is undefined");
|
|
792
794
|
}
|
|
793
795
|
const endpoint = await getRpcEndpointForChain(svmTx.chainId);
|
|
794
796
|
const connection = new Connection(endpoint);
|
|
795
797
|
let signature;
|
|
796
|
-
await submitTransaction({
|
|
798
|
+
const submitTxResponse = await submitTransaction({
|
|
797
799
|
chainId: svmTx.chainId,
|
|
798
800
|
tx: signedTx.toString("base64")
|
|
799
|
-
}).then((res) => {
|
|
800
|
-
signature = res?.txHash;
|
|
801
801
|
});
|
|
802
|
+
signature = submitTxResponse?.txHash;
|
|
802
803
|
const rpcSig = await connection.sendRawTransaction(signedTx, {
|
|
803
804
|
preflightCommitment: "confirmed",
|
|
804
805
|
maxRetries: 5
|
|
@@ -817,7 +818,8 @@ var executeSvmTransaction = async (tx, options) => {
|
|
|
817
818
|
if (status?.value?.confirmationStatus === "confirmed") {
|
|
818
819
|
return {
|
|
819
820
|
chainId: svmTx.chainId,
|
|
820
|
-
txHash: signature
|
|
821
|
+
txHash: signature,
|
|
822
|
+
explorerLink: submitTxResponse?.explorerLink ?? ""
|
|
821
823
|
};
|
|
822
824
|
}
|
|
823
825
|
if (getStatusCount > 12) {
|
|
@@ -1286,13 +1288,14 @@ var executeTransactions = async (options) => {
|
|
|
1286
1288
|
let txResult;
|
|
1287
1289
|
const txSigned = signedTxs.find((item) => item.index === i);
|
|
1288
1290
|
if (txSigned) {
|
|
1289
|
-
const txResponse = await
|
|
1291
|
+
const txResponse = await submitTransaction({
|
|
1290
1292
|
chainId: txSigned.chainId,
|
|
1291
1293
|
tx: txSigned.tx
|
|
1292
1294
|
});
|
|
1293
1295
|
txResult = {
|
|
1294
1296
|
chainId: txSigned.chainId,
|
|
1295
|
-
txHash: txResponse?.txHash ?? ""
|
|
1297
|
+
txHash: txResponse?.txHash ?? "",
|
|
1298
|
+
explorerLink: txResponse?.explorerLink ?? ""
|
|
1296
1299
|
};
|
|
1297
1300
|
} else {
|
|
1298
1301
|
if ("cosmosTx" in tx) {
|
|
@@ -1311,7 +1314,7 @@ var executeTransactions = async (options) => {
|
|
|
1311
1314
|
};
|
|
1312
1315
|
} else if ("svmTx" in tx) {
|
|
1313
1316
|
await validateEnabledChainIds(tx.svmTx?.chainId ?? "");
|
|
1314
|
-
txResult = await executeSvmTransaction(tx, options);
|
|
1317
|
+
txResult = await executeSvmTransaction(tx, options, i);
|
|
1315
1318
|
} else {
|
|
1316
1319
|
throw new Error("executeRoute error: invalid message type");
|
|
1317
1320
|
}
|