@skip-go/client 1.0.1-alpha-1 → 1.0.1
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 +19 -0
- package/dist/api/getAssets.js +15 -2
- package/dist/api/getAssetsBetweenChains.d.ts +56 -0
- package/dist/api/getAssetsBetweenChains.js +11 -2
- package/dist/api/getBridges.d.ts +54 -0
- package/dist/api/getBridges.js +11 -2
- package/dist/api/getChains.d.ts +41 -0
- package/dist/api/getChains.js +11 -2
- package/dist/api/getVenues.d.ts +13 -0
- package/dist/api/getVenues.js +11 -2
- package/dist/api/postAssetsFromSource.d.ts +13 -0
- package/dist/api/postAssetsFromSource.js +12 -3
- package/dist/api/postBalances.d.ts +35 -0
- package/dist/api/postBalances.js +11 -2
- package/dist/api/postIbcOriginAssets.d.ts +32 -0
- package/dist/api/postIbcOriginAssets.js +11 -2
- package/dist/api/postMessages.d.ts +528 -0
- package/dist/api/postMessages.js +11 -2
- package/dist/api/postMessagesDirect.d.ts +568 -0
- package/dist/api/postMessagesDirect.js +11 -2
- package/dist/api/postRecommendAssets.d.ts +40 -0
- package/dist/api/postRecommendAssets.js +11 -2
- package/dist/api/postRoute.d.ts +460 -0
- package/dist/api/postRoute.js +11 -2
- package/dist/api/postSubmitTransaction.d.ts +13 -0
- package/dist/api/postSubmitTransaction.js +11 -2
- package/dist/api/postTrackTransaction.d.ts +13 -0
- package/dist/api/postTrackTransaction.js +11 -2
- package/dist/api/postTransactionStatus.d.ts +559 -0
- package/dist/api/postTransactionStatus.js +11 -2
- package/dist/apiState-CdzxTxYd.d.ts +6 -0
- package/dist/chunk-2WHYWV4Y.js +12 -0
- package/dist/{chunk-VMPFHQ7U.js → chunk-4XWIXR2P.js} +27 -19
- package/dist/chunk-5KVRQLI5.js +17 -0
- package/dist/{chunk-KNV72XRZ.js → chunk-5ZJBR5AQ.js} +5 -3
- package/dist/chunk-6BTWKTNM.js +16 -0
- package/dist/chunk-6GJEXV5J.js +130 -0
- package/dist/chunk-ASPVKNJ7.js +242 -0
- package/dist/{chunk-JTIHU43D.js → chunk-CG5CQQBW.js} +42 -33
- package/dist/chunk-EQLA2SEZ.js +2361 -0
- package/dist/chunk-FVSSCQ6C.js +12 -0
- package/dist/{chunk-SQGWZAUC.js → chunk-GFRPLEJR.js} +311 -279
- package/dist/chunk-KYFTM3PI.js +12 -0
- package/dist/chunk-L2Q5RP6O.js +25 -0
- package/dist/chunk-LRIPQQ4M.js +11 -0
- package/dist/{chunk-TW77BXMT.js → chunk-PKPZTO4H.js} +13 -10
- package/dist/{chunk-PRQ2NHRZ.js → chunk-RE2QZJWE.js} +5 -3
- package/dist/{chunk-3OZQ35X3.js → chunk-RT5TZAMU.js} +312 -212
- package/dist/chunk-SWYON2RG.js +4 -1
- package/dist/chunk-VQ5SIQWU.js +3 -1
- package/dist/chunk-X2E2TKVR.js +12 -0
- package/dist/{chunk-3N7XVGLX.js → chunk-X2YPYBVN.js} +68 -59
- package/dist/chunk-YYNIFO2A.js +13 -0
- package/dist/{chunk-4JJWOILI.js → chunk-Z4ZKOUGH.js} +5 -3
- package/dist/{chunk-C2EDPY6J.js → chunk-ZG23Z3WY.js} +5 -3
- package/dist/client-types-CxjtffyG.d.ts +60 -0
- package/dist/executeRoute-BKvMVd1I.d.ts +69 -0
- package/dist/generateApi-DqCp36fX.d.ts +22 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +209 -24
- package/dist/public-functions/executeRoute.d.ts +9 -0
- package/dist/public-functions/executeRoute.js +21 -12
- package/dist/public-functions/getFeeInfoForChain.d.ts +9 -0
- package/dist/public-functions/getFeeInfoForChain.js +14 -5
- package/dist/public-functions/getRecommendedGasPrice.d.ts +9 -0
- package/dist/public-functions/getRecommendedGasPrice.js +16 -7
- package/dist/public-functions/getSigningStargateClient.d.ts +13 -0
- package/dist/public-functions/getSigningStargateClient.js +13 -4
- package/dist/public-functions/setApiOptions.d.ts +9 -0
- package/dist/public-functions/setApiOptions.js +11 -2
- package/dist/public-functions/setClientOptions.d.ts +9 -0
- package/dist/public-functions/setClientOptions.js +13 -4
- package/dist/setClientOptions-DbanEIwL.d.ts +19 -0
- package/dist/swaggerTypes-O9-gvCT1.d.ts +1890 -0
- package/package.json +1 -10
- package/dist/chunk-33K6EESX.js +0 -10
- package/dist/chunk-BQTQJQ5E.js +0 -10
- package/dist/chunk-BRJDNGYH.js +0 -22
- package/dist/chunk-BRMONS6A.js +0 -130
- package/dist/chunk-DW4U6YI6.js +0 -10
- package/dist/chunk-GARVPN2H.js +0 -16
- 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/chunk-W6TBGBV3.js +0 -675
- package/dist/chunk-Y5EY3Q6D.js +0 -1790
|
@@ -0,0 +1,559 @@
|
|
|
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.js';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
3
|
+
import { a as ApiResponse } from '../generateApi-DqCp36fX.js';
|
|
4
|
+
|
|
5
|
+
declare const transactionStatus: (params?: ({
|
|
6
|
+
txHash: string;
|
|
7
|
+
chainId: string;
|
|
8
|
+
} & SkipApiOptions & {
|
|
9
|
+
abortDuplicateRequests?: boolean | undefined;
|
|
10
|
+
}) | undefined) => Promise<{
|
|
11
|
+
transfers?: {
|
|
12
|
+
error?: {
|
|
13
|
+
details?: {
|
|
14
|
+
code?: number | undefined;
|
|
15
|
+
message?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
message?: string | undefined;
|
|
18
|
+
type?: StatusErrorType | undefined;
|
|
19
|
+
} | undefined;
|
|
20
|
+
nextBlockingTransfer?: {
|
|
21
|
+
transferSequenceIndex?: number | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
state?: TransactionState | undefined;
|
|
24
|
+
transferAssetRelease?: {
|
|
25
|
+
chainId?: string | undefined;
|
|
26
|
+
denom?: string | undefined;
|
|
27
|
+
amount?: string | undefined;
|
|
28
|
+
released?: boolean | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
transferSequence?: {
|
|
31
|
+
ibcTransfer?: {
|
|
32
|
+
toChainId: string;
|
|
33
|
+
packetTxs: {
|
|
34
|
+
acknowledgeTx?: {
|
|
35
|
+
chainId?: string | undefined;
|
|
36
|
+
explorerLink: string;
|
|
37
|
+
txHash?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
error?: {
|
|
40
|
+
details?: {
|
|
41
|
+
code?: number | undefined;
|
|
42
|
+
message?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
message?: string | undefined;
|
|
45
|
+
type?: PacketErrorType | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
receiveTx?: {
|
|
48
|
+
chainId?: string | undefined;
|
|
49
|
+
explorerLink: string;
|
|
50
|
+
txHash?: string | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
sendTx?: {
|
|
53
|
+
chainId?: string | undefined;
|
|
54
|
+
explorerLink: string;
|
|
55
|
+
txHash?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
timeoutTx?: {
|
|
58
|
+
chainId?: string | undefined;
|
|
59
|
+
explorerLink: string;
|
|
60
|
+
txHash?: string | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
};
|
|
63
|
+
fromChainId: string;
|
|
64
|
+
state: TransferState;
|
|
65
|
+
} | undefined;
|
|
66
|
+
axelarTransfer?: {
|
|
67
|
+
axelarScanLink?: string | undefined;
|
|
68
|
+
toChainId: string;
|
|
69
|
+
fromChainId: string;
|
|
70
|
+
state: AxelarTransferState;
|
|
71
|
+
txs: {
|
|
72
|
+
approveTx?: {
|
|
73
|
+
chainId?: string | undefined;
|
|
74
|
+
explorerLink: string;
|
|
75
|
+
txHash?: string | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
confirmTx?: {
|
|
78
|
+
chainId?: string | undefined;
|
|
79
|
+
explorerLink: string;
|
|
80
|
+
txHash?: string | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
error?: {
|
|
83
|
+
message?: string | undefined;
|
|
84
|
+
type?: ContractCallWithTokenErrorType | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
executeTx?: {
|
|
87
|
+
chainId?: string | undefined;
|
|
88
|
+
explorerLink: string;
|
|
89
|
+
txHash?: string | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
gasPaidTx?: {
|
|
92
|
+
chainId?: string | undefined;
|
|
93
|
+
explorerLink: string;
|
|
94
|
+
txHash?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
sendTx?: {
|
|
97
|
+
chainId?: string | undefined;
|
|
98
|
+
explorerLink: string;
|
|
99
|
+
txHash?: string | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
confirmTx?: {
|
|
103
|
+
chainId?: string | undefined;
|
|
104
|
+
explorerLink: string;
|
|
105
|
+
txHash?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
error?: {
|
|
108
|
+
message?: string | undefined;
|
|
109
|
+
type?: SendTokenErrorType | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
executeTx?: {
|
|
112
|
+
chainId?: string | undefined;
|
|
113
|
+
explorerLink: string;
|
|
114
|
+
txHash?: string | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
sendTx?: {
|
|
117
|
+
chainId?: string | undefined;
|
|
118
|
+
explorerLink: string;
|
|
119
|
+
txHash?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
};
|
|
122
|
+
type?: AxelarTransferType | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
cctpTransfer?: {
|
|
125
|
+
toChainId?: string | undefined;
|
|
126
|
+
fromChainId?: string | undefined;
|
|
127
|
+
state?: CCTPTransferState | undefined;
|
|
128
|
+
txs?: {
|
|
129
|
+
sendTx?: {
|
|
130
|
+
chainId?: string | undefined;
|
|
131
|
+
explorerLink: string;
|
|
132
|
+
txHash?: string | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
receiveTx?: {
|
|
135
|
+
chainId?: string | undefined;
|
|
136
|
+
explorerLink: string;
|
|
137
|
+
txHash?: string | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
} | undefined;
|
|
141
|
+
hyperlaneTransfer?: {
|
|
142
|
+
fromChainId: string;
|
|
143
|
+
toChainId: string;
|
|
144
|
+
state: HyperlaneTransferState;
|
|
145
|
+
txs: {
|
|
146
|
+
sendTx?: {
|
|
147
|
+
chainId?: string | undefined;
|
|
148
|
+
explorerLink: string;
|
|
149
|
+
txHash?: string | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
receiveTx?: {
|
|
152
|
+
chainId?: string | undefined;
|
|
153
|
+
explorerLink: string;
|
|
154
|
+
txHash?: string | undefined;
|
|
155
|
+
} | undefined;
|
|
156
|
+
};
|
|
157
|
+
} | undefined;
|
|
158
|
+
opInitTransfer?: {
|
|
159
|
+
toChainId: string;
|
|
160
|
+
fromChainId: string;
|
|
161
|
+
state: OPInitTransferState;
|
|
162
|
+
txs: {
|
|
163
|
+
sendTx?: {
|
|
164
|
+
chainId?: string | undefined;
|
|
165
|
+
explorerLink: string;
|
|
166
|
+
txHash?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
receiveTx?: {
|
|
169
|
+
chainId?: string | undefined;
|
|
170
|
+
explorerLink: string;
|
|
171
|
+
txHash?: string | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
};
|
|
174
|
+
} | undefined;
|
|
175
|
+
stargateTransfer?: {
|
|
176
|
+
fromChainId?: string | undefined;
|
|
177
|
+
toChainId?: string | undefined;
|
|
178
|
+
state?: StargateTransferState | undefined;
|
|
179
|
+
txs?: {
|
|
180
|
+
sendTx?: {
|
|
181
|
+
chainId?: string | undefined;
|
|
182
|
+
explorerLink: string;
|
|
183
|
+
txHash?: string | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
receiveTx?: {
|
|
186
|
+
chainId?: string | undefined;
|
|
187
|
+
explorerLink: string;
|
|
188
|
+
txHash?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
errorTx?: {
|
|
191
|
+
chainId?: string | undefined;
|
|
192
|
+
explorerLink: string;
|
|
193
|
+
txHash?: string | undefined;
|
|
194
|
+
} | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
goFastTransfer?: {
|
|
198
|
+
fromChainId: string;
|
|
199
|
+
toChainId: string;
|
|
200
|
+
state: GoFastTransferState;
|
|
201
|
+
txs: {
|
|
202
|
+
orderSubmittedTx?: {
|
|
203
|
+
chainId?: string | undefined;
|
|
204
|
+
explorerLink: string;
|
|
205
|
+
txHash?: string | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
orderFilledTx?: {
|
|
208
|
+
chainId?: string | undefined;
|
|
209
|
+
explorerLink: string;
|
|
210
|
+
txHash?: string | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
orderRefundedTx?: {
|
|
213
|
+
chainId?: string | undefined;
|
|
214
|
+
explorerLink: string;
|
|
215
|
+
txHash?: string | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
orderTimeoutTx?: {
|
|
218
|
+
chainId?: string | undefined;
|
|
219
|
+
explorerLink: string;
|
|
220
|
+
txHash?: string | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
};
|
|
223
|
+
errorMessage?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
eurekaTransfer?: {
|
|
226
|
+
fromChainId: string;
|
|
227
|
+
toChainId: string;
|
|
228
|
+
state: TransferState;
|
|
229
|
+
packetTxs: {
|
|
230
|
+
acknowledgeTx?: {
|
|
231
|
+
chainId?: string | undefined;
|
|
232
|
+
explorerLink: string;
|
|
233
|
+
txHash?: string | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
error?: {
|
|
236
|
+
details?: {
|
|
237
|
+
code?: number | undefined;
|
|
238
|
+
message?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
message?: string | undefined;
|
|
241
|
+
type?: PacketErrorType | undefined;
|
|
242
|
+
} | undefined;
|
|
243
|
+
receiveTx?: {
|
|
244
|
+
chainId?: string | undefined;
|
|
245
|
+
explorerLink: string;
|
|
246
|
+
txHash?: string | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
sendTx?: {
|
|
249
|
+
chainId?: string | undefined;
|
|
250
|
+
explorerLink: string;
|
|
251
|
+
txHash?: string | undefined;
|
|
252
|
+
} | undefined;
|
|
253
|
+
timeoutTx?: {
|
|
254
|
+
chainId?: string | undefined;
|
|
255
|
+
explorerLink: string;
|
|
256
|
+
txHash?: string | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
};
|
|
259
|
+
} | undefined;
|
|
260
|
+
layerZeroTransfer?: {
|
|
261
|
+
fromChainId: string;
|
|
262
|
+
toChainId: string;
|
|
263
|
+
state: LayerZeroTransferState;
|
|
264
|
+
txs: {
|
|
265
|
+
sendTx?: {
|
|
266
|
+
chainId?: string | undefined;
|
|
267
|
+
explorerLink: string;
|
|
268
|
+
txHash?: string | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
receiveTx?: {
|
|
271
|
+
chainId?: string | undefined;
|
|
272
|
+
explorerLink: string;
|
|
273
|
+
txHash?: string | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
errorTx?: {
|
|
276
|
+
chainId?: string | undefined;
|
|
277
|
+
explorerLink: string;
|
|
278
|
+
txHash?: string | undefined;
|
|
279
|
+
} | undefined;
|
|
280
|
+
};
|
|
281
|
+
} | undefined;
|
|
282
|
+
}[] | undefined;
|
|
283
|
+
}[] | undefined;
|
|
284
|
+
state: TransactionState;
|
|
285
|
+
transferSequence: {
|
|
286
|
+
ibcTransfer?: {
|
|
287
|
+
toChainId: string;
|
|
288
|
+
packetTxs: {
|
|
289
|
+
acknowledgeTx?: {
|
|
290
|
+
chainId?: string | undefined;
|
|
291
|
+
explorerLink: string;
|
|
292
|
+
txHash?: string | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
error?: {
|
|
295
|
+
details?: {
|
|
296
|
+
code?: number | undefined;
|
|
297
|
+
message?: string | undefined;
|
|
298
|
+
} | undefined;
|
|
299
|
+
message?: string | undefined;
|
|
300
|
+
type?: PacketErrorType | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
receiveTx?: {
|
|
303
|
+
chainId?: string | undefined;
|
|
304
|
+
explorerLink: string;
|
|
305
|
+
txHash?: string | undefined;
|
|
306
|
+
} | undefined;
|
|
307
|
+
sendTx?: {
|
|
308
|
+
chainId?: string | undefined;
|
|
309
|
+
explorerLink: string;
|
|
310
|
+
txHash?: string | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
timeoutTx?: {
|
|
313
|
+
chainId?: string | undefined;
|
|
314
|
+
explorerLink: string;
|
|
315
|
+
txHash?: string | undefined;
|
|
316
|
+
} | undefined;
|
|
317
|
+
};
|
|
318
|
+
fromChainId: string;
|
|
319
|
+
state: TransferState;
|
|
320
|
+
} | undefined;
|
|
321
|
+
axelarTransfer?: {
|
|
322
|
+
axelarScanLink?: string | undefined;
|
|
323
|
+
toChainId: string;
|
|
324
|
+
fromChainId: string;
|
|
325
|
+
state: AxelarTransferState;
|
|
326
|
+
txs: {
|
|
327
|
+
approveTx?: {
|
|
328
|
+
chainId?: string | undefined;
|
|
329
|
+
explorerLink: string;
|
|
330
|
+
txHash?: string | undefined;
|
|
331
|
+
} | undefined;
|
|
332
|
+
confirmTx?: {
|
|
333
|
+
chainId?: string | undefined;
|
|
334
|
+
explorerLink: string;
|
|
335
|
+
txHash?: string | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
error?: {
|
|
338
|
+
message?: string | undefined;
|
|
339
|
+
type?: ContractCallWithTokenErrorType | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
executeTx?: {
|
|
342
|
+
chainId?: string | undefined;
|
|
343
|
+
explorerLink: string;
|
|
344
|
+
txHash?: string | undefined;
|
|
345
|
+
} | undefined;
|
|
346
|
+
gasPaidTx?: {
|
|
347
|
+
chainId?: string | undefined;
|
|
348
|
+
explorerLink: string;
|
|
349
|
+
txHash?: string | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
sendTx?: {
|
|
352
|
+
chainId?: string | undefined;
|
|
353
|
+
explorerLink: string;
|
|
354
|
+
txHash?: string | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
} | {
|
|
357
|
+
confirmTx?: {
|
|
358
|
+
chainId?: string | undefined;
|
|
359
|
+
explorerLink: string;
|
|
360
|
+
txHash?: string | undefined;
|
|
361
|
+
} | undefined;
|
|
362
|
+
error?: {
|
|
363
|
+
message?: string | undefined;
|
|
364
|
+
type?: SendTokenErrorType | undefined;
|
|
365
|
+
} | undefined;
|
|
366
|
+
executeTx?: {
|
|
367
|
+
chainId?: string | undefined;
|
|
368
|
+
explorerLink: string;
|
|
369
|
+
txHash?: string | undefined;
|
|
370
|
+
} | undefined;
|
|
371
|
+
sendTx?: {
|
|
372
|
+
chainId?: string | undefined;
|
|
373
|
+
explorerLink: string;
|
|
374
|
+
txHash?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
};
|
|
377
|
+
type?: AxelarTransferType | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
cctpTransfer?: {
|
|
380
|
+
toChainId?: string | undefined;
|
|
381
|
+
fromChainId?: string | undefined;
|
|
382
|
+
state?: CCTPTransferState | undefined;
|
|
383
|
+
txs?: {
|
|
384
|
+
sendTx?: {
|
|
385
|
+
chainId?: string | undefined;
|
|
386
|
+
explorerLink: string;
|
|
387
|
+
txHash?: string | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
receiveTx?: {
|
|
390
|
+
chainId?: string | undefined;
|
|
391
|
+
explorerLink: string;
|
|
392
|
+
txHash?: string | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
hyperlaneTransfer?: {
|
|
397
|
+
fromChainId: string;
|
|
398
|
+
toChainId: string;
|
|
399
|
+
state: HyperlaneTransferState;
|
|
400
|
+
txs: {
|
|
401
|
+
sendTx?: {
|
|
402
|
+
chainId?: string | undefined;
|
|
403
|
+
explorerLink: string;
|
|
404
|
+
txHash?: string | undefined;
|
|
405
|
+
} | undefined;
|
|
406
|
+
receiveTx?: {
|
|
407
|
+
chainId?: string | undefined;
|
|
408
|
+
explorerLink: string;
|
|
409
|
+
txHash?: string | undefined;
|
|
410
|
+
} | undefined;
|
|
411
|
+
};
|
|
412
|
+
} | undefined;
|
|
413
|
+
opInitTransfer?: {
|
|
414
|
+
toChainId: string;
|
|
415
|
+
fromChainId: string;
|
|
416
|
+
state: OPInitTransferState;
|
|
417
|
+
txs: {
|
|
418
|
+
sendTx?: {
|
|
419
|
+
chainId?: string | undefined;
|
|
420
|
+
explorerLink: string;
|
|
421
|
+
txHash?: string | undefined;
|
|
422
|
+
} | undefined;
|
|
423
|
+
receiveTx?: {
|
|
424
|
+
chainId?: string | undefined;
|
|
425
|
+
explorerLink: string;
|
|
426
|
+
txHash?: string | undefined;
|
|
427
|
+
} | undefined;
|
|
428
|
+
};
|
|
429
|
+
} | undefined;
|
|
430
|
+
stargateTransfer?: {
|
|
431
|
+
fromChainId?: string | undefined;
|
|
432
|
+
toChainId?: string | undefined;
|
|
433
|
+
state?: StargateTransferState | undefined;
|
|
434
|
+
txs?: {
|
|
435
|
+
sendTx?: {
|
|
436
|
+
chainId?: string | undefined;
|
|
437
|
+
explorerLink: string;
|
|
438
|
+
txHash?: string | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
receiveTx?: {
|
|
441
|
+
chainId?: string | undefined;
|
|
442
|
+
explorerLink: string;
|
|
443
|
+
txHash?: string | undefined;
|
|
444
|
+
} | undefined;
|
|
445
|
+
errorTx?: {
|
|
446
|
+
chainId?: string | undefined;
|
|
447
|
+
explorerLink: string;
|
|
448
|
+
txHash?: string | undefined;
|
|
449
|
+
} | undefined;
|
|
450
|
+
} | undefined;
|
|
451
|
+
} | undefined;
|
|
452
|
+
goFastTransfer?: {
|
|
453
|
+
fromChainId: string;
|
|
454
|
+
toChainId: string;
|
|
455
|
+
state: GoFastTransferState;
|
|
456
|
+
txs: {
|
|
457
|
+
orderSubmittedTx?: {
|
|
458
|
+
chainId?: string | undefined;
|
|
459
|
+
explorerLink: string;
|
|
460
|
+
txHash?: string | undefined;
|
|
461
|
+
} | undefined;
|
|
462
|
+
orderFilledTx?: {
|
|
463
|
+
chainId?: string | undefined;
|
|
464
|
+
explorerLink: string;
|
|
465
|
+
txHash?: string | undefined;
|
|
466
|
+
} | undefined;
|
|
467
|
+
orderRefundedTx?: {
|
|
468
|
+
chainId?: string | undefined;
|
|
469
|
+
explorerLink: string;
|
|
470
|
+
txHash?: string | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
orderTimeoutTx?: {
|
|
473
|
+
chainId?: string | undefined;
|
|
474
|
+
explorerLink: string;
|
|
475
|
+
txHash?: string | undefined;
|
|
476
|
+
} | undefined;
|
|
477
|
+
};
|
|
478
|
+
errorMessage?: string | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
eurekaTransfer?: {
|
|
481
|
+
fromChainId: string;
|
|
482
|
+
toChainId: string;
|
|
483
|
+
state: TransferState;
|
|
484
|
+
packetTxs: {
|
|
485
|
+
acknowledgeTx?: {
|
|
486
|
+
chainId?: string | undefined;
|
|
487
|
+
explorerLink: string;
|
|
488
|
+
txHash?: string | undefined;
|
|
489
|
+
} | undefined;
|
|
490
|
+
error?: {
|
|
491
|
+
details?: {
|
|
492
|
+
code?: number | undefined;
|
|
493
|
+
message?: string | undefined;
|
|
494
|
+
} | undefined;
|
|
495
|
+
message?: string | undefined;
|
|
496
|
+
type?: PacketErrorType | undefined;
|
|
497
|
+
} | undefined;
|
|
498
|
+
receiveTx?: {
|
|
499
|
+
chainId?: string | undefined;
|
|
500
|
+
explorerLink: string;
|
|
501
|
+
txHash?: string | undefined;
|
|
502
|
+
} | undefined;
|
|
503
|
+
sendTx?: {
|
|
504
|
+
chainId?: string | undefined;
|
|
505
|
+
explorerLink: string;
|
|
506
|
+
txHash?: string | undefined;
|
|
507
|
+
} | undefined;
|
|
508
|
+
timeoutTx?: {
|
|
509
|
+
chainId?: string | undefined;
|
|
510
|
+
explorerLink: string;
|
|
511
|
+
txHash?: string | undefined;
|
|
512
|
+
} | undefined;
|
|
513
|
+
};
|
|
514
|
+
} | undefined;
|
|
515
|
+
layerZeroTransfer?: {
|
|
516
|
+
fromChainId: string;
|
|
517
|
+
toChainId: string;
|
|
518
|
+
state: LayerZeroTransferState;
|
|
519
|
+
txs: {
|
|
520
|
+
sendTx?: {
|
|
521
|
+
chainId?: string | undefined;
|
|
522
|
+
explorerLink: string;
|
|
523
|
+
txHash?: string | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
receiveTx?: {
|
|
526
|
+
chainId?: string | undefined;
|
|
527
|
+
explorerLink: string;
|
|
528
|
+
txHash?: string | undefined;
|
|
529
|
+
} | undefined;
|
|
530
|
+
errorTx?: {
|
|
531
|
+
chainId?: string | undefined;
|
|
532
|
+
explorerLink: string;
|
|
533
|
+
txHash?: string | undefined;
|
|
534
|
+
} | undefined;
|
|
535
|
+
};
|
|
536
|
+
} | undefined;
|
|
537
|
+
}[];
|
|
538
|
+
nextBlockingTransfer?: {
|
|
539
|
+
transferSequenceIndex?: number | undefined;
|
|
540
|
+
} | null | undefined;
|
|
541
|
+
transferAssetRelease?: {
|
|
542
|
+
chainId?: string | undefined;
|
|
543
|
+
denom?: string | undefined;
|
|
544
|
+
amount?: string | undefined;
|
|
545
|
+
released?: boolean | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
error?: {
|
|
548
|
+
details?: {
|
|
549
|
+
code?: number | undefined;
|
|
550
|
+
message?: string | undefined;
|
|
551
|
+
} | undefined;
|
|
552
|
+
message?: string | undefined;
|
|
553
|
+
type?: StatusErrorType | undefined;
|
|
554
|
+
} | null | undefined;
|
|
555
|
+
status?: string | undefined;
|
|
556
|
+
}>;
|
|
557
|
+
type TxStatusResponse = ApiResponse<"getTransactionStatusV2">;
|
|
558
|
+
|
|
559
|
+
export { type TxStatusResponse, transactionStatus };
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
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
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
4
|
+
|
|
5
|
+
// src/api/postTransactionStatus.ts
|
|
6
|
+
var transactionStatus = chunkASPVKNJ7_js.pollingApi({
|
|
7
|
+
methodName: "getTransactionStatusV2",
|
|
8
|
+
path: "/v2/tx/status",
|
|
9
|
+
method: "get"
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
exports.transactionStatus = transactionStatus;
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSWYON2RG_js = require('./chunk-SWYON2RG.js');
|
|
4
|
+
var chunkCG5CQQBW_js = require('./chunk-CG5CQQBW.js');
|
|
5
|
+
var chunk6GJEXV5J_js = require('./chunk-6GJEXV5J.js');
|
|
6
|
+
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
4
7
|
|
|
5
8
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
6
|
-
var getDefaultGasTokenForChain =
|
|
7
|
-
|
|
9
|
+
var getDefaultGasTokenForChain = (chainId) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
|
|
10
|
+
var _a;
|
|
11
|
+
const gasDenom = chunkSWYON2RG_js.DEFAULT_GAS_DENOM_OVERRIDES[chainId];
|
|
8
12
|
if (gasDenom) {
|
|
9
13
|
return gasDenom;
|
|
10
14
|
}
|
|
11
|
-
const chain = chains().find((chain2) => chain2.chain_id === chainId);
|
|
15
|
+
const chain = chunkCG5CQQBW_js.chains().find((chain2) => chain2.chain_id === chainId);
|
|
12
16
|
if (!chain) {
|
|
13
17
|
return void 0;
|
|
14
18
|
}
|
|
@@ -18,7 +22,10 @@ var getDefaultGasTokenForChain = async (chainId) => {
|
|
|
18
22
|
const stakingTokens = getStakingTokensForChain(chainId);
|
|
19
23
|
if (stakingTokens && stakingTokens.length > 0) {
|
|
20
24
|
const feeAsset = chain.fees.fee_tokens.find(
|
|
21
|
-
(feeToken) =>
|
|
25
|
+
(feeToken) => {
|
|
26
|
+
var _a2;
|
|
27
|
+
return feeToken.denom === ((_a2 = stakingTokens[0]) == null ? void 0 : _a2.denom);
|
|
28
|
+
}
|
|
22
29
|
);
|
|
23
30
|
if (feeAsset) {
|
|
24
31
|
return feeAsset.denom;
|
|
@@ -34,10 +41,10 @@ var getDefaultGasTokenForChain = async (chainId) => {
|
|
|
34
41
|
if (nonL2Asset) {
|
|
35
42
|
return nonL2Asset.denom;
|
|
36
43
|
}
|
|
37
|
-
return chain.fees.fee_tokens[0]
|
|
38
|
-
};
|
|
44
|
+
return (_a = chain.fees.fee_tokens[0]) == null ? void 0 : _a.denom;
|
|
45
|
+
});
|
|
39
46
|
var getStakingTokensForChain = (chainId) => {
|
|
40
|
-
const chain = chains().find((chain2) => chain2.chain_id === chainId);
|
|
47
|
+
const chain = chunkCG5CQQBW_js.chains().find((chain2) => chain2.chain_id === chainId);
|
|
41
48
|
if (!chain) {
|
|
42
49
|
throw new Error(
|
|
43
50
|
`getStakingTokensForChain error: failed to find chain id '${chainId}' in registry`
|
|
@@ -50,24 +57,25 @@ var getStakingTokensForChain = (chainId) => {
|
|
|
50
57
|
};
|
|
51
58
|
|
|
52
59
|
// src/public-functions/getFeeInfoForChain.ts
|
|
53
|
-
var getFeeInfoForChain =
|
|
54
|
-
|
|
60
|
+
var getFeeInfoForChain = (_0) => chunkASPVKNJ7_js.__async(void 0, [_0], function* ({ chainId, apiUrl, apiKey }) {
|
|
61
|
+
var _a, _b, _c, _d, _e;
|
|
62
|
+
const skipChains = yield chunk6GJEXV5J_js.ClientState.getSkipChains({ apiUrl, apiKey });
|
|
55
63
|
const skipChain = skipChains.find((chain2) => chain2.chainId === chainId);
|
|
56
64
|
if (!skipChain) {
|
|
57
65
|
return void 0;
|
|
58
66
|
}
|
|
59
|
-
const defaultGasToken =
|
|
67
|
+
const defaultGasToken = yield getDefaultGasTokenForChain(chainId);
|
|
60
68
|
if (!defaultGasToken && !skipChain.feeAssets) {
|
|
61
69
|
return void 0;
|
|
62
70
|
}
|
|
63
|
-
const skipFeeInfo = defaultGasToken ? skipChain.feeAssets
|
|
64
|
-
if (!skipFeeInfo && skipChain.feeAssets
|
|
65
|
-
return skipChain.feeAssets
|
|
71
|
+
const skipFeeInfo = defaultGasToken ? (_a = skipChain.feeAssets) == null ? void 0 : _a.find((skipFee) => skipFee.denom === defaultGasToken) : (_b = skipChain.feeAssets) == null ? void 0 : _b[0];
|
|
72
|
+
if (!skipFeeInfo && ((_d = (_c = skipChain.feeAssets) == null ? void 0 : _c[0]) == null ? void 0 : _d.gasPrice) !== null) {
|
|
73
|
+
return (_e = skipChain.feeAssets) == null ? void 0 : _e[0];
|
|
66
74
|
}
|
|
67
75
|
if (skipFeeInfo && skipFeeInfo.gasPrice !== null) {
|
|
68
76
|
return skipFeeInfo;
|
|
69
77
|
}
|
|
70
|
-
const chain = chains().find((chain2) => chain2.chain_id === chainId);
|
|
78
|
+
const chain = chunkCG5CQQBW_js.chains().find((chain2) => chain2.chain_id === chainId);
|
|
71
79
|
if (!chain) {
|
|
72
80
|
return void 0;
|
|
73
81
|
}
|
|
@@ -88,6 +96,6 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
|
|
|
88
96
|
high: registryFeeInfo.high_gas_price ? `${registryFeeInfo.high_gas_price}` : ""
|
|
89
97
|
}
|
|
90
98
|
};
|
|
91
|
-
};
|
|
99
|
+
});
|
|
92
100
|
|
|
93
|
-
|
|
101
|
+
exports.getFeeInfoForChain = getFeeInfoForChain;
|