@skip-go/client 1.0.0 → 1.0.1-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.cjs +15 -0
- package/dist/api/{getAssets.d.mts → getAssets.d.cts} +2 -2
- package/dist/api/getAssets.d.ts +19 -0
- package/dist/api/getAssets.js +2 -0
- package/dist/api/getAssetsBetweenChains.cjs +11 -0
- package/dist/api/{getAssetsBetweenChains.d.mts → getAssetsBetweenChains.d.cts} +2 -2
- package/dist/api/getAssetsBetweenChains.d.ts +56 -0
- package/dist/api/getAssetsBetweenChains.js +2 -0
- package/dist/api/getBridges.cjs +11 -0
- package/dist/api/{getBridges.d.mts → getBridges.d.cts} +2 -2
- package/dist/api/getBridges.d.ts +54 -0
- package/dist/api/getBridges.js +2 -0
- package/dist/api/getChains.cjs +11 -0
- package/dist/api/{getChains.d.mts → getChains.d.cts} +2 -2
- package/dist/api/getChains.d.ts +41 -0
- package/dist/api/getChains.js +2 -0
- package/dist/api/getVenues.cjs +11 -0
- package/dist/api/{getVenues.d.mts → getVenues.d.cts} +1 -1
- package/dist/api/getVenues.d.ts +13 -0
- package/dist/api/getVenues.js +2 -0
- package/dist/api/postAssetsFromSource.cjs +12 -0
- package/dist/api/{postAssetsFromSource.d.mts → postAssetsFromSource.d.cts} +2 -2
- package/dist/api/postAssetsFromSource.d.ts +13 -0
- package/dist/api/postAssetsFromSource.js +3 -0
- package/dist/api/postBalances.cjs +11 -0
- package/dist/api/{postBalances.d.mts → postBalances.d.cts} +3 -3
- package/dist/api/postBalances.d.ts +35 -0
- package/dist/api/postBalances.js +2 -0
- package/dist/api/postIbcOriginAssets.cjs +11 -0
- package/dist/api/{postIbcOriginAssets.d.mts → postIbcOriginAssets.d.cts} +1 -1
- package/dist/api/postIbcOriginAssets.d.ts +32 -0
- package/dist/api/postIbcOriginAssets.js +2 -0
- package/dist/api/postMessages.cjs +11 -0
- package/dist/api/{postMessages.d.mts → postMessages.d.cts} +3 -3
- package/dist/api/postMessages.d.ts +528 -0
- package/dist/api/postMessages.js +2 -0
- package/dist/api/postMessagesDirect.cjs +11 -0
- package/dist/api/{postMessagesDirect.d.mts → postMessagesDirect.d.cts} +2 -2
- package/dist/api/postMessagesDirect.d.ts +568 -0
- package/dist/api/postMessagesDirect.js +2 -0
- package/dist/api/postRecommendAssets.cjs +11 -0
- package/dist/api/{postRecommendAssets.d.mts → postRecommendAssets.d.cts} +2 -2
- package/dist/api/postRecommendAssets.d.ts +40 -0
- package/dist/api/postRecommendAssets.js +2 -0
- package/dist/api/postRoute.cjs +11 -0
- package/dist/api/{postRoute.d.mts → postRoute.d.cts} +3 -3
- package/dist/api/postRoute.d.ts +460 -0
- package/dist/api/postRoute.js +2 -0
- package/dist/api/postSubmitTransaction.cjs +11 -0
- package/dist/api/{postSubmitTransaction.d.mts → postSubmitTransaction.d.cts} +1 -1
- package/dist/api/postSubmitTransaction.d.ts +13 -0
- package/dist/api/postSubmitTransaction.js +2 -0
- package/dist/api/postTrackTransaction.cjs +11 -0
- package/dist/api/{postTrackTransaction.d.mts → postTrackTransaction.d.cts} +1 -1
- package/dist/api/postTrackTransaction.d.ts +13 -0
- package/dist/api/postTrackTransaction.js +2 -0
- package/dist/api/postTransactionStatus.cjs +11 -0
- package/dist/api/{postTransactionStatus.d.mts → postTransactionStatus.d.cts} +3 -3
- package/dist/api/postTransactionStatus.d.ts +559 -0
- package/dist/api/postTransactionStatus.js +2 -0
- package/dist/apiState-CdzxTxYd.d.ts +6 -0
- package/dist/chunk-32MRDO7V.cjs +12 -0
- package/dist/{chunk-C5CGY2X7.mjs → chunk-33K6EESX.js} +1 -1
- package/dist/{chunk-ZMEQSFOL.mjs → chunk-3N7XVGLX.js} +18 -23
- package/dist/{chunk-OTLFF5OB.mjs → chunk-3OZQ35X3.js} +101 -138
- package/dist/chunk-44PBLFB5.cjs +24 -0
- package/dist/{chunk-7TBBV2YY.mjs → chunk-4JJWOILI.js} +1 -1
- package/dist/chunk-4R6OCWRR.cjs +1346 -0
- package/dist/chunk-5IAEEEOQ.cjs +2251 -0
- package/dist/chunk-77ITCT75.cjs +15 -0
- package/dist/chunk-7OIZPQJB.cjs +3660 -0
- package/dist/chunk-7SK3IFXJ.cjs +188 -0
- package/dist/{chunk-QZ3X6MP3.mjs → chunk-BQTQJQ5E.js} +1 -1
- package/dist/{chunk-IHIJJNTV.mjs → chunk-BRJDNGYH.js} +6 -7
- package/dist/chunk-BRMONS6A.js +130 -0
- package/dist/{chunk-NNZFCKHP.mjs → chunk-C2EDPY6J.js} +1 -1
- package/dist/chunk-DAMZSSOH.cjs +12 -0
- package/dist/{chunk-KPK3Z6QZ.mjs → chunk-DW4U6YI6.js} +1 -1
- package/dist/chunk-ED2OY55G.cjs +136 -0
- package/dist/chunk-GARVPN2H.js +16 -0
- package/dist/chunk-HAR3IXDE.cjs +705 -0
- package/dist/chunk-ISHM4QWP.cjs +16 -0
- package/dist/chunk-J4LI33TK.cjs +95 -0
- package/dist/{chunk-NU7MCJOK.mjs → chunk-JTIHU43D.js} +32 -36
- package/dist/chunk-KDN7RCGP.cjs +13 -0
- package/dist/{chunk-J7GGREYX.mjs → chunk-KNV72XRZ.js} +1 -1
- package/dist/chunk-KZOSEIWH.cjs +10 -0
- package/dist/chunk-L5V5PASH.cjs +12 -0
- package/dist/chunk-LXYLWTNZ.cjs +12 -0
- package/dist/{chunk-CAAR7GDJ.mjs → chunk-MGVXJ2U4.js} +1 -1
- package/dist/{chunk-IGD32L7C.mjs → chunk-MTMPHY3Y.js} +1 -1
- package/dist/chunk-PNWIJSMA.cjs +12 -0
- package/dist/{chunk-CZ27FEZ7.mjs → chunk-PRQ2NHRZ.js} +1 -1
- package/dist/chunk-RDOSNDAQ.cjs +13 -0
- package/dist/{chunk-LJVI5DLG.mjs → chunk-RDRDFJQE.js} +1 -1
- package/dist/{chunk-YWYU6P7W.mjs → chunk-RMP3HM5N.js} +2 -2
- package/dist/chunk-SFMBRLUS.cjs +18 -0
- package/dist/{chunk-DZQJN6OX.mjs → chunk-SQGWZAUC.js} +76 -86
- package/dist/chunk-SW3SEQMJ.cjs +273 -0
- package/dist/{chunk-2ETF4N4H.mjs → chunk-TW77BXMT.js} +4 -5
- package/dist/chunk-URLFWBSC.cjs +11 -0
- package/dist/chunk-VI7UMBQ7.cjs +12 -0
- package/dist/{chunk-2F4MBSMT.mjs → chunk-VMPFHQ7U.js} +14 -20
- package/dist/chunk-W2U2UOFA.js +1790 -0
- package/dist/chunk-W6TBGBV3.js +675 -0
- package/dist/chunk-WWNTHZ6I.cjs +1812 -0
- package/dist/chunk-ZNXE6PUV.cjs +46 -0
- package/dist/{client-types-CVch1pZ-.d.mts → client-types-CxjtffyG.d.ts} +1 -1
- package/dist/client-types-qvyKvyFh.d.cts +60 -0
- package/dist/{executeRoute-CRdeEz1o.d.mts → executeRoute-BKRpODCc.d.cts} +3 -3
- package/dist/executeRoute-BKvMVd1I.d.ts +69 -0
- package/dist/{generateApi-3mHZ6Zbr.d.mts → generateApi-C0amiydg.d.cts} +1 -1
- package/dist/generateApi-DqCp36fX.d.ts +22 -0
- package/dist/index.cjs +209 -0
- package/dist/{index.d.mts → index.d.cts} +25 -27
- package/dist/index.d.ts +35 -0
- package/dist/index.js +24 -0
- package/dist/public-functions/executeRoute.cjs +21 -0
- package/dist/public-functions/{executeRoute.d.mts → executeRoute.d.cts} +4 -4
- package/dist/public-functions/executeRoute.d.ts +9 -0
- package/dist/public-functions/executeRoute.js +12 -0
- package/dist/public-functions/getFeeInfoForChain.cjs +14 -0
- package/dist/public-functions/{getFeeInfoForChain.d.mts → getFeeInfoForChain.d.cts} +2 -2
- package/dist/public-functions/getFeeInfoForChain.d.ts +9 -0
- package/dist/public-functions/getFeeInfoForChain.js +5 -0
- package/dist/public-functions/getRecommendedGasPrice.cjs +16 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.mts → getRecommendedGasPrice.d.cts} +2 -2
- package/dist/public-functions/getRecommendedGasPrice.d.ts +9 -0
- package/dist/public-functions/getRecommendedGasPrice.js +7 -0
- package/dist/public-functions/getSigningStargateClient.cjs +13 -0
- package/dist/public-functions/{getSigningStargateClient.d.mts → getSigningStargateClient.d.cts} +1 -1
- package/dist/public-functions/getSigningStargateClient.d.ts +13 -0
- package/dist/public-functions/getSigningStargateClient.js +4 -0
- package/dist/public-functions/setApiOptions.cjs +11 -0
- package/dist/public-functions/{setApiOptions.d.mts → setApiOptions.d.cts} +2 -2
- package/dist/public-functions/setApiOptions.d.ts +9 -0
- package/dist/public-functions/setApiOptions.js +2 -0
- package/dist/public-functions/setClientOptions.cjs +13 -0
- package/dist/public-functions/setClientOptions.d.cts +9 -0
- package/dist/public-functions/setClientOptions.d.ts +9 -0
- package/dist/public-functions/setClientOptions.js +4 -0
- package/dist/{setClientOptions-CVB_OUIn.d.mts → setClientOptions-CT6CHI9I.d.cts} +2 -2
- package/dist/setClientOptions-DbanEIwL.d.ts +19 -0
- package/dist/swaggerTypes-O9-gvCT1.d.ts +1890 -0
- package/package.json +12 -3
- package/dist/api/getAssets.mjs +0 -2
- package/dist/api/getAssetsBetweenChains.mjs +0 -2
- package/dist/api/getBridges.mjs +0 -2
- package/dist/api/getChains.mjs +0 -2
- package/dist/api/getVenues.mjs +0 -2
- package/dist/api/postAssetsFromSource.mjs +0 -3
- package/dist/api/postBalances.mjs +0 -2
- package/dist/api/postIbcOriginAssets.mjs +0 -2
- package/dist/api/postMessages.mjs +0 -2
- package/dist/api/postMessagesDirect.mjs +0 -2
- package/dist/api/postRecommendAssets.mjs +0 -2
- package/dist/api/postRoute.mjs +0 -2
- package/dist/api/postSubmitTransaction.mjs +0 -2
- package/dist/api/postTrackTransaction.mjs +0 -2
- package/dist/api/postTransactionStatus.mjs +0 -2
- package/dist/chunk-2FYLP573.mjs +0 -15
- package/dist/chunk-DKIWPD5I.mjs +0 -124
- package/dist/chunk-I2MX24LT.mjs +0 -2316
- package/dist/chunk-RXWDHQLG.mjs +0 -231
- package/dist/index.mjs +0 -24
- package/dist/public-functions/executeRoute.mjs +0 -12
- package/dist/public-functions/getFeeInfoForChain.mjs +0 -5
- package/dist/public-functions/getRecommendedGasPrice.mjs +0 -7
- package/dist/public-functions/getSigningStargateClient.mjs +0 -4
- package/dist/public-functions/setApiOptions.mjs +0 -2
- package/dist/public-functions/setClientOptions.d.mts +0 -9
- package/dist/public-functions/setClientOptions.mjs +0 -4
- /package/dist/{apiState-CdzxTxYd.d.mts → apiState-CdzxTxYd.d.cts} +0 -0
- /package/dist/{chunk-ZAF3Z56R.mjs → chunk-SWYON2RG.js} +0 -0
- /package/dist/{chunk-TUBI6VE6.mjs → chunk-VQ5SIQWU.js} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.mts → swaggerTypes-O9-gvCT1.d.cts} +0 -0
|
@@ -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 };
|
|
@@ -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;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { chains, findFirstWorkingEndpoint } from './chunk-
|
|
2
|
-
import { ClientState } from './chunk-
|
|
3
|
-
import {
|
|
4
|
-
import { SigningStargateClient } from '@cosmjs/stargate/build/signingstargateclient';
|
|
5
|
-
import { accountFromAny } from '@cosmjs/stargate';
|
|
1
|
+
import { chains, findFirstWorkingEndpoint } from './chunk-JTIHU43D.js';
|
|
2
|
+
import { ClientState } from './chunk-BRMONS6A.js';
|
|
3
|
+
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
6
4
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
7
5
|
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary';
|
|
8
6
|
import { BaseAccount } from 'cosmjs-types/cosmos/auth/v1beta1/auth';
|
|
@@ -171,10 +169,9 @@ var StridePeriodicVestingAccount = {
|
|
|
171
169
|
}
|
|
172
170
|
};
|
|
173
171
|
var accountParser = (acc) => {
|
|
174
|
-
var _a;
|
|
175
172
|
switch (acc.typeUrl) {
|
|
176
173
|
case "/stride.vesting.StridePeriodicVestingAccount": {
|
|
177
|
-
const baseAccount =
|
|
174
|
+
const baseAccount = StridePeriodicVestingAccount.decode(acc.value).baseVestingAccount?.baseAccount;
|
|
178
175
|
assertDefinedAndNotNull(baseAccount);
|
|
179
176
|
return {
|
|
180
177
|
address: baseAccount.address,
|
|
@@ -195,7 +192,7 @@ var accountParser = (acc) => {
|
|
|
195
192
|
const { address, pubKey, accountNumber, sequence } = BaseAccount.decode(
|
|
196
193
|
acc.value
|
|
197
194
|
);
|
|
198
|
-
if (
|
|
195
|
+
if (pubKey?.typeUrl === "/initia.crypto.v1beta1.ethsecp256k1.PubKey") {
|
|
199
196
|
const { key } = PubKey.decode(pubKey.value);
|
|
200
197
|
const pk = encodeSecp256k1Pubkey(key);
|
|
201
198
|
return {
|
|
@@ -212,14 +209,13 @@ var accountParser = (acc) => {
|
|
|
212
209
|
};
|
|
213
210
|
|
|
214
211
|
// src/private-functions/getRpcEndpointForChain.ts
|
|
215
|
-
var getRpcEndpointForChain = (chainId) =>
|
|
216
|
-
var _a, _b, _c, _d, _e;
|
|
212
|
+
var getRpcEndpointForChain = async (chainId) => {
|
|
217
213
|
if (ClientState.endpointOptions.getRpcEndpointForChain) {
|
|
218
214
|
return ClientState.endpointOptions.getRpcEndpointForChain(chainId);
|
|
219
215
|
}
|
|
220
216
|
if (ClientState.endpointOptions.endpoints && ClientState.endpointOptions.endpoints[chainId]) {
|
|
221
217
|
const endpointOptions = ClientState.endpointOptions.endpoints[chainId];
|
|
222
|
-
if (endpointOptions
|
|
218
|
+
if (endpointOptions?.rpc) {
|
|
223
219
|
return endpointOptions.rpc;
|
|
224
220
|
}
|
|
225
221
|
}
|
|
@@ -230,36 +226,35 @@ var getRpcEndpointForChain = (chainId) => __async(void 0, null, function* () {
|
|
|
230
226
|
if (!chain) {
|
|
231
227
|
throw new Error(`getRpcEndpointForChain: failed to find chain id '${chainId}' in registry`);
|
|
232
228
|
}
|
|
233
|
-
if (
|
|
229
|
+
if (chain.apis?.rpc?.length === 0 || !chain.apis?.rpc) {
|
|
234
230
|
throw new Error(
|
|
235
231
|
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
236
232
|
);
|
|
237
233
|
}
|
|
238
|
-
const endpoints =
|
|
239
|
-
const endpoint =
|
|
234
|
+
const endpoints = chain.apis?.rpc?.map((api) => api.address);
|
|
235
|
+
const endpoint = await findFirstWorkingEndpoint(endpoints, "rpc");
|
|
240
236
|
if (!endpoint) {
|
|
241
237
|
throw new Error(
|
|
242
238
|
`getRpcEndpointForChain error: failed to find RPC endpoint for chain '${chainId}'`
|
|
243
239
|
);
|
|
244
240
|
}
|
|
245
241
|
return endpoint;
|
|
246
|
-
}
|
|
242
|
+
};
|
|
247
243
|
|
|
248
244
|
// src/public-functions/getSigningStargateClient.ts
|
|
249
|
-
var getSigningStargateClient =
|
|
245
|
+
var getSigningStargateClient = async ({
|
|
250
246
|
chainId,
|
|
251
247
|
getOfflineSigner
|
|
252
|
-
}) {
|
|
253
|
-
var _a;
|
|
248
|
+
}) => {
|
|
254
249
|
if (!getOfflineSigner) {
|
|
255
250
|
throw new Error("'getCosmosSigner' is not provided or configured in skip router");
|
|
256
251
|
}
|
|
257
|
-
if (!
|
|
258
|
-
const [signer, endpoint] =
|
|
252
|
+
if (!ClientState.signingStargateClientByChainId?.[chainId]) {
|
|
253
|
+
const [signer, endpoint] = await Promise.all([
|
|
259
254
|
getOfflineSigner(chainId),
|
|
260
255
|
getRpcEndpointForChain(chainId)
|
|
261
256
|
]);
|
|
262
|
-
ClientState.signingStargateClientByChainId[chainId] =
|
|
257
|
+
ClientState.signingStargateClientByChainId[chainId] = await SigningStargateClient.connectWithSigner(endpoint, signer, {
|
|
263
258
|
aminoTypes: ClientState.aminoTypes,
|
|
264
259
|
registry: ClientState.registry,
|
|
265
260
|
accountParser
|
|
@@ -267,8 +262,8 @@ var getSigningStargateClient = (_0) => __async(void 0, [_0], function* ({
|
|
|
267
262
|
}
|
|
268
263
|
return {
|
|
269
264
|
stargateClient: ClientState.signingStargateClientByChainId[chainId],
|
|
270
|
-
signer:
|
|
265
|
+
signer: await getOfflineSigner(chainId)
|
|
271
266
|
};
|
|
272
|
-
}
|
|
267
|
+
};
|
|
273
268
|
|
|
274
269
|
export { accountParser, getRpcEndpointForChain, getSigningStargateClient };
|