@skip-go/client 1.0.2 → 1.0.3-alpha-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/postMessages.d.ts +183 -183
- package/dist/api/postMessagesDirect.d.ts +183 -183
- package/dist/api/postRoute.d.ts +160 -160
- package/dist/{chunk-735L35R6.js → chunk-F75DC5RW.js} +14 -18
- package/dist/{chunk-SQGWZAUC.js → chunk-PHTQQIAH.js} +5 -6
- package/dist/{chunk-3N7XVGLX.js → chunk-SONZJVQM.js} +4 -4
- package/dist/{chunk-3OZQ35X3.js → chunk-TD63P2AG.js} +1 -1
- package/dist/{chunk-BRJDNGYH.js → chunk-UNF72WYO.js} +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +5 -5
- package/dist/public-functions/executeRoute.js +3 -3
- package/dist/public-functions/getRecommendedGasPrice.js +1 -1
- package/dist/public-functions/getSigningStargateClient.d.ts +1 -1
- package/dist/public-functions/getSigningStargateClient.js +1 -1
- package/dist/public-functions/setClientOptions.js +2 -2
- package/package.json +1 -1
package/dist/api/postRoute.d.ts
CHANGED
|
@@ -12,6 +12,128 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
12
12
|
doesSwap?: boolean | undefined;
|
|
13
13
|
estimatedAmountOut: string;
|
|
14
14
|
operations: ({
|
|
15
|
+
transfer?: {
|
|
16
|
+
fromChainId?: string | undefined;
|
|
17
|
+
toChainId?: string | undefined;
|
|
18
|
+
channel?: string | undefined;
|
|
19
|
+
destDenom?: string | undefined;
|
|
20
|
+
pfmEnabled?: boolean | undefined;
|
|
21
|
+
port?: string | undefined;
|
|
22
|
+
supportsMemo?: boolean | undefined;
|
|
23
|
+
denomIn?: string | undefined;
|
|
24
|
+
denomOut?: string | undefined;
|
|
25
|
+
feeAmount?: string | undefined;
|
|
26
|
+
usdFeeAmount?: string | undefined;
|
|
27
|
+
feeAsset?: {
|
|
28
|
+
chainId: string;
|
|
29
|
+
coingeckoId?: string | undefined;
|
|
30
|
+
decimals?: number | undefined;
|
|
31
|
+
denom: string;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
isCw20: boolean;
|
|
34
|
+
isEvm: boolean;
|
|
35
|
+
isSvm: boolean;
|
|
36
|
+
logoUri?: string | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
originChainId: string;
|
|
39
|
+
originDenom: string;
|
|
40
|
+
recommendedSymbol?: string | undefined;
|
|
41
|
+
symbol?: string | undefined;
|
|
42
|
+
tokenContract?: string | undefined;
|
|
43
|
+
trace: string;
|
|
44
|
+
} | undefined;
|
|
45
|
+
bridgeId?: BridgeType | undefined;
|
|
46
|
+
smartRelay?: boolean | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
txIndex: number;
|
|
49
|
+
amountIn: string;
|
|
50
|
+
amountOut: string;
|
|
51
|
+
} | {
|
|
52
|
+
swap?: {
|
|
53
|
+
swapIn?: {
|
|
54
|
+
swapAmountIn?: string | undefined;
|
|
55
|
+
swapOperations?: {
|
|
56
|
+
denomIn?: string | undefined;
|
|
57
|
+
denomOut?: string | undefined;
|
|
58
|
+
pool?: string | undefined;
|
|
59
|
+
interface?: string | undefined;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
swapVenue?: {
|
|
62
|
+
chainId?: string | undefined;
|
|
63
|
+
name?: string | undefined;
|
|
64
|
+
logoUri?: string | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
priceImpactPercent?: string | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
estimatedAffiliateFee?: string | undefined;
|
|
69
|
+
chainId?: string | undefined;
|
|
70
|
+
fromChainId?: string | undefined;
|
|
71
|
+
denomIn?: string | undefined;
|
|
72
|
+
denomOut?: string | undefined;
|
|
73
|
+
swapVenues?: {
|
|
74
|
+
chainId?: string | undefined;
|
|
75
|
+
name?: string | undefined;
|
|
76
|
+
logoUri?: string | undefined;
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
swapOut?: {
|
|
80
|
+
swapAmountOut?: string | undefined;
|
|
81
|
+
swapOperations?: {
|
|
82
|
+
denomIn?: string | undefined;
|
|
83
|
+
denomOut?: string | undefined;
|
|
84
|
+
pool?: string | undefined;
|
|
85
|
+
interface?: string | undefined;
|
|
86
|
+
}[] | undefined;
|
|
87
|
+
swapVenue?: {
|
|
88
|
+
chainId?: string | undefined;
|
|
89
|
+
name?: string | undefined;
|
|
90
|
+
logoUri?: string | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
priceImpactPercent?: string | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
estimatedAffiliateFee?: string | undefined;
|
|
95
|
+
chainId?: string | undefined;
|
|
96
|
+
fromChainId?: string | undefined;
|
|
97
|
+
denomIn?: string | undefined;
|
|
98
|
+
denomOut?: string | undefined;
|
|
99
|
+
swapVenues?: {
|
|
100
|
+
chainId?: string | undefined;
|
|
101
|
+
name?: string | undefined;
|
|
102
|
+
logoUri?: string | undefined;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
smartSwapIn?: {
|
|
106
|
+
swapVenue?: {
|
|
107
|
+
chainId?: string | undefined;
|
|
108
|
+
name?: string | undefined;
|
|
109
|
+
logoUri?: string | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
swapRoutes?: {
|
|
112
|
+
swapAmountIn?: string | undefined;
|
|
113
|
+
denomIn?: string | undefined;
|
|
114
|
+
swapOperations?: {
|
|
115
|
+
denomIn?: string | undefined;
|
|
116
|
+
denomOut?: string | undefined;
|
|
117
|
+
pool?: string | undefined;
|
|
118
|
+
interface?: string | undefined;
|
|
119
|
+
}[] | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
estimatedAffiliateFee?: string | undefined;
|
|
123
|
+
chainId?: string | undefined;
|
|
124
|
+
fromChainId?: string | undefined;
|
|
125
|
+
denomIn?: string | undefined;
|
|
126
|
+
denomOut?: string | undefined;
|
|
127
|
+
swapVenues?: {
|
|
128
|
+
chainId?: string | undefined;
|
|
129
|
+
name?: string | undefined;
|
|
130
|
+
logoUri?: string | undefined;
|
|
131
|
+
}[] | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
txIndex: number;
|
|
134
|
+
amountIn: string;
|
|
135
|
+
amountOut: string;
|
|
136
|
+
} | {
|
|
15
137
|
axelarTransfer?: {
|
|
16
138
|
asset?: string | undefined;
|
|
17
139
|
feeAmount?: string | undefined;
|
|
@@ -81,6 +203,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
81
203
|
txIndex: number;
|
|
82
204
|
amountIn: string;
|
|
83
205
|
amountOut: string;
|
|
206
|
+
} | {
|
|
207
|
+
bankSend?: {
|
|
208
|
+
chainId?: string | undefined;
|
|
209
|
+
denom?: string | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
txIndex: number;
|
|
212
|
+
amountIn: string;
|
|
213
|
+
amountOut: string;
|
|
84
214
|
} | {
|
|
85
215
|
cctpTransfer?: {
|
|
86
216
|
fromChainId?: string | undefined;
|
|
@@ -102,35 +232,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
102
232
|
amountIn: string;
|
|
103
233
|
amountOut: string;
|
|
104
234
|
} | {
|
|
105
|
-
|
|
235
|
+
hyperlaneTransfer?: {
|
|
106
236
|
fromChainId?: string | undefined;
|
|
107
237
|
toChainId?: string | undefined;
|
|
108
238
|
denomIn?: string | undefined;
|
|
109
239
|
denomOut?: string | undefined;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
oftFeeAsset?: {
|
|
114
|
-
chainId: string;
|
|
115
|
-
coingeckoId?: string | undefined;
|
|
116
|
-
decimals?: number | undefined;
|
|
117
|
-
denom: string;
|
|
118
|
-
description?: string | undefined;
|
|
119
|
-
isCw20: boolean;
|
|
120
|
-
isEvm: boolean;
|
|
121
|
-
isSvm: boolean;
|
|
122
|
-
logoUri?: string | undefined;
|
|
123
|
-
name?: string | undefined;
|
|
124
|
-
originChainId: string;
|
|
125
|
-
originDenom: string;
|
|
126
|
-
recommendedSymbol?: string | undefined;
|
|
127
|
-
symbol?: string | undefined;
|
|
128
|
-
tokenContract?: string | undefined;
|
|
129
|
-
trace: string;
|
|
130
|
-
} | undefined;
|
|
131
|
-
oftFeeAmount?: string | undefined;
|
|
132
|
-
oftFeeAmountUsd?: string | undefined;
|
|
133
|
-
messagingFeeAsset?: {
|
|
240
|
+
hyperlaneContractAddress?: string | undefined;
|
|
241
|
+
feeAmount?: string | undefined;
|
|
242
|
+
feeAsset?: {
|
|
134
243
|
chainId: string;
|
|
135
244
|
coingeckoId?: string | undefined;
|
|
136
245
|
decimals?: number | undefined;
|
|
@@ -148,16 +257,9 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
148
257
|
tokenContract?: string | undefined;
|
|
149
258
|
trace: string;
|
|
150
259
|
} | undefined;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
txIndex: number;
|
|
155
|
-
amountIn: string;
|
|
156
|
-
amountOut: string;
|
|
157
|
-
} | {
|
|
158
|
-
bankSend?: {
|
|
159
|
-
chainId?: string | undefined;
|
|
160
|
-
denom?: string | undefined;
|
|
260
|
+
usdFeeAmount?: string | undefined;
|
|
261
|
+
bridgeId?: BridgeType | undefined;
|
|
262
|
+
smartRelay?: boolean | undefined;
|
|
161
263
|
} | undefined;
|
|
162
264
|
txIndex: number;
|
|
163
265
|
amountIn: string;
|
|
@@ -181,14 +283,28 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
181
283
|
amountIn: string;
|
|
182
284
|
amountOut: string;
|
|
183
285
|
} | {
|
|
184
|
-
|
|
286
|
+
transfer?: {
|
|
185
287
|
fromChainId?: string | undefined;
|
|
186
288
|
toChainId?: string | undefined;
|
|
187
289
|
denomIn?: string | undefined;
|
|
188
290
|
denomOut?: string | undefined;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
291
|
+
opInitBridgeId?: any;
|
|
292
|
+
bridgeId?: BridgeType | undefined;
|
|
293
|
+
smartRelay?: boolean | undefined;
|
|
294
|
+
} | undefined;
|
|
295
|
+
txIndex: number;
|
|
296
|
+
amountIn: string;
|
|
297
|
+
amountOut: string;
|
|
298
|
+
} | {
|
|
299
|
+
stargateTransfer?: {
|
|
300
|
+
fromChainId?: string | undefined;
|
|
301
|
+
toChainId?: string | undefined;
|
|
302
|
+
denomIn?: string | undefined;
|
|
303
|
+
denomOut?: string | undefined;
|
|
304
|
+
bridgeId?: BridgeType | undefined;
|
|
305
|
+
poolAddress?: string | undefined;
|
|
306
|
+
destinationEndpointId?: number | undefined;
|
|
307
|
+
oftFeeAsset?: {
|
|
192
308
|
chainId: string;
|
|
193
309
|
coingeckoId?: string | undefined;
|
|
194
310
|
decimals?: number | undefined;
|
|
@@ -206,27 +322,9 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
206
322
|
tokenContract?: string | undefined;
|
|
207
323
|
trace: string;
|
|
208
324
|
} | undefined;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
} | undefined;
|
|
213
|
-
txIndex: number;
|
|
214
|
-
amountIn: string;
|
|
215
|
-
amountOut: string;
|
|
216
|
-
} | {
|
|
217
|
-
transfer?: {
|
|
218
|
-
fromChainId?: string | undefined;
|
|
219
|
-
toChainId?: string | undefined;
|
|
220
|
-
channel?: string | undefined;
|
|
221
|
-
destDenom?: string | undefined;
|
|
222
|
-
pfmEnabled?: boolean | undefined;
|
|
223
|
-
port?: string | undefined;
|
|
224
|
-
supportsMemo?: boolean | undefined;
|
|
225
|
-
denomIn?: string | undefined;
|
|
226
|
-
denomOut?: string | undefined;
|
|
227
|
-
feeAmount?: string | undefined;
|
|
228
|
-
usdFeeAmount?: string | undefined;
|
|
229
|
-
feeAsset?: {
|
|
325
|
+
oftFeeAmount?: string | undefined;
|
|
326
|
+
oftFeeAmountUsd?: string | undefined;
|
|
327
|
+
messagingFeeAsset?: {
|
|
230
328
|
chainId: string;
|
|
231
329
|
coingeckoId?: string | undefined;
|
|
232
330
|
decimals?: number | undefined;
|
|
@@ -244,106 +342,8 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
244
342
|
tokenContract?: string | undefined;
|
|
245
343
|
trace: string;
|
|
246
344
|
} | undefined;
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
} | undefined;
|
|
250
|
-
txIndex: number;
|
|
251
|
-
amountIn: string;
|
|
252
|
-
amountOut: string;
|
|
253
|
-
} | {
|
|
254
|
-
swap?: {
|
|
255
|
-
swapIn?: {
|
|
256
|
-
swapAmountIn?: string | undefined;
|
|
257
|
-
swapOperations?: {
|
|
258
|
-
denomIn?: string | undefined;
|
|
259
|
-
denomOut?: string | undefined;
|
|
260
|
-
pool?: string | undefined;
|
|
261
|
-
interface?: string | undefined;
|
|
262
|
-
}[] | undefined;
|
|
263
|
-
swapVenue?: {
|
|
264
|
-
chainId?: string | undefined;
|
|
265
|
-
name?: string | undefined;
|
|
266
|
-
logoUri?: string | undefined;
|
|
267
|
-
} | undefined;
|
|
268
|
-
priceImpactPercent?: string | undefined;
|
|
269
|
-
} | undefined;
|
|
270
|
-
estimatedAffiliateFee?: string | undefined;
|
|
271
|
-
chainId?: string | undefined;
|
|
272
|
-
fromChainId?: string | undefined;
|
|
273
|
-
denomIn?: string | undefined;
|
|
274
|
-
denomOut?: string | undefined;
|
|
275
|
-
swapVenues?: {
|
|
276
|
-
chainId?: string | undefined;
|
|
277
|
-
name?: string | undefined;
|
|
278
|
-
logoUri?: string | undefined;
|
|
279
|
-
}[] | undefined;
|
|
280
|
-
} | {
|
|
281
|
-
swapOut?: {
|
|
282
|
-
swapAmountOut?: string | undefined;
|
|
283
|
-
swapOperations?: {
|
|
284
|
-
denomIn?: string | undefined;
|
|
285
|
-
denomOut?: string | undefined;
|
|
286
|
-
pool?: string | undefined;
|
|
287
|
-
interface?: string | undefined;
|
|
288
|
-
}[] | undefined;
|
|
289
|
-
swapVenue?: {
|
|
290
|
-
chainId?: string | undefined;
|
|
291
|
-
name?: string | undefined;
|
|
292
|
-
logoUri?: string | undefined;
|
|
293
|
-
} | undefined;
|
|
294
|
-
priceImpactPercent?: string | undefined;
|
|
295
|
-
} | undefined;
|
|
296
|
-
estimatedAffiliateFee?: string | undefined;
|
|
297
|
-
chainId?: string | undefined;
|
|
298
|
-
fromChainId?: string | undefined;
|
|
299
|
-
denomIn?: string | undefined;
|
|
300
|
-
denomOut?: string | undefined;
|
|
301
|
-
swapVenues?: {
|
|
302
|
-
chainId?: string | undefined;
|
|
303
|
-
name?: string | undefined;
|
|
304
|
-
logoUri?: string | undefined;
|
|
305
|
-
}[] | undefined;
|
|
306
|
-
} | {
|
|
307
|
-
smartSwapIn?: {
|
|
308
|
-
swapVenue?: {
|
|
309
|
-
chainId?: string | undefined;
|
|
310
|
-
name?: string | undefined;
|
|
311
|
-
logoUri?: string | undefined;
|
|
312
|
-
} | undefined;
|
|
313
|
-
swapRoutes?: {
|
|
314
|
-
swapAmountIn?: string | undefined;
|
|
315
|
-
denomIn?: string | undefined;
|
|
316
|
-
swapOperations?: {
|
|
317
|
-
denomIn?: string | undefined;
|
|
318
|
-
denomOut?: string | undefined;
|
|
319
|
-
pool?: string | undefined;
|
|
320
|
-
interface?: string | undefined;
|
|
321
|
-
}[] | undefined;
|
|
322
|
-
}[] | undefined;
|
|
323
|
-
} | undefined;
|
|
324
|
-
estimatedAffiliateFee?: string | undefined;
|
|
325
|
-
chainId?: string | undefined;
|
|
326
|
-
fromChainId?: string | undefined;
|
|
327
|
-
denomIn?: string | undefined;
|
|
328
|
-
denomOut?: string | undefined;
|
|
329
|
-
swapVenues?: {
|
|
330
|
-
chainId?: string | undefined;
|
|
331
|
-
name?: string | undefined;
|
|
332
|
-
logoUri?: string | undefined;
|
|
333
|
-
}[] | undefined;
|
|
334
|
-
} | undefined;
|
|
335
|
-
txIndex: number;
|
|
336
|
-
amountIn: string;
|
|
337
|
-
amountOut: string;
|
|
338
|
-
} | {
|
|
339
|
-
transfer?: {
|
|
340
|
-
fromChainId?: string | undefined;
|
|
341
|
-
toChainId?: string | undefined;
|
|
342
|
-
denomIn?: string | undefined;
|
|
343
|
-
denomOut?: string | undefined;
|
|
344
|
-
opInitBridgeId?: any;
|
|
345
|
-
bridgeId?: BridgeType | undefined;
|
|
346
|
-
smartRelay?: boolean | undefined;
|
|
345
|
+
messagingFeeAmount?: string | undefined;
|
|
346
|
+
messageingFeeAmountUsd?: string | undefined;
|
|
347
347
|
} | undefined;
|
|
348
348
|
txIndex: number;
|
|
349
349
|
amountIn: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
2
2
|
import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
3
|
-
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-
|
|
3
|
+
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-SONZJVQM.js';
|
|
4
4
|
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-JTIHU43D.js';
|
|
5
|
-
import { MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgExecute, MsgInitiateTokenDeposit, BaseVestingAccount, Timestamp, toTimestamp, Period, fromTimestamp, isSet, fromJsonTimestamp } from './chunk-
|
|
5
|
+
import { MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgExecute, MsgInitiateTokenDeposit, BaseVestingAccount, Timestamp, toTimestamp, Period, fromTimestamp, isSet, fromJsonTimestamp } from './chunk-TD63P2AG.js';
|
|
6
6
|
import { messages } from './chunk-DW4U6YI6.js';
|
|
7
7
|
import { submitTransaction } from './chunk-RDRDFJQE.js';
|
|
8
8
|
import { trackTransaction } from './chunk-MGVXJ2U4.js';
|
|
@@ -13,24 +13,20 @@ import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/we
|
|
|
13
13
|
import { bech32m, bech32 } from 'bech32';
|
|
14
14
|
import { StargateClient, GasPrice, calculateFee } from '@cosmjs/stargate';
|
|
15
15
|
import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx.js';
|
|
16
|
-
import { isOfflineDirectSigner } from '@cosmjs/proto-signing
|
|
17
|
-
import { fromBase64 } from '@cosmjs/encoding
|
|
18
|
-
import { toUtf8, fromBase64 as fromBase64$1, toBase64 } from '@cosmjs/encoding';
|
|
16
|
+
import { isOfflineDirectSigner, makeAuthInfoBytes, makeSignDoc, encodePubkey } from '@cosmjs/proto-signing';
|
|
17
|
+
import { fromBase64, toUtf8, toBase64 } from '@cosmjs/encoding';
|
|
19
18
|
import { ChainRestTendermintApi, MsgTransfer as MsgTransfer$1, MsgExecuteContractCompat, createTransactionWithSigners } from '@injectivelabs/sdk-ts';
|
|
20
|
-
import { MsgSend } from 'cosmjs-types/cosmos/bank/v1beta1/tx';
|
|
21
|
-
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx';
|
|
22
|
-
import { MsgTransfer } from 'cosmjs-types/ibc/applications/transfer/v1/tx';
|
|
23
|
-
import
|
|
19
|
+
import { MsgSend } from 'cosmjs-types/cosmos/bank/v1beta1/tx.js';
|
|
20
|
+
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx.js';
|
|
21
|
+
import { MsgTransfer } from 'cosmjs-types/ibc/applications/transfer/v1/tx.js';
|
|
22
|
+
import _m0 from 'protobufjs/minimal.js';
|
|
24
23
|
import { BigNumberInBase, DEFAULT_BLOCK_TIMEOUT_HEIGHT, DEFAULT_STD_FEE } from '@injectivelabs/utils';
|
|
25
|
-
import { makeAuthInfoBytes, makeSignDoc } from '@cosmjs/proto-signing/build/signing';
|
|
26
24
|
import { pubkeyType as pubkeyType$1, makeSignDoc as makeSignDoc$1, encodeSecp256k1Pubkey } from '@cosmjs/amino';
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { SignMode } from 'cosmjs-types/cosmos/tx/signing/v1beta1/signing';
|
|
25
|
+
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys.js';
|
|
26
|
+
import { Any } from 'cosmjs-types/google/protobuf/any.js';
|
|
27
|
+
import { Int53, Decimal } from '@cosmjs/math';
|
|
28
|
+
import { SignMode } from 'cosmjs-types/cosmos/tx/signing/v1beta1/signing.js';
|
|
32
29
|
import { isAddress, publicActions, maxUint256, formatUnits } from 'viem';
|
|
33
|
-
import { Decimal } from '@cosmjs/math/build/decimal';
|
|
34
30
|
|
|
35
31
|
// src/private-functions/getRestEndpointForChain.ts
|
|
36
32
|
var getRestEndpointForChain = async (chainId) => {
|
|
@@ -482,7 +478,7 @@ function makePubkeyAnyFromAccount(account, chainId) {
|
|
|
482
478
|
function encodePubkeyToAny(pubkey, chainId, isEthermint) {
|
|
483
479
|
if (isEthermint) {
|
|
484
480
|
const pubkeyProto = PubKey.fromPartial({
|
|
485
|
-
key: fromBase64
|
|
481
|
+
key: fromBase64(pubkey.value)
|
|
486
482
|
});
|
|
487
483
|
let typeUrl = "";
|
|
488
484
|
if (chainId?.includes("injective")) {
|
|
@@ -497,7 +493,7 @@ function encodePubkeyToAny(pubkey, chainId, isEthermint) {
|
|
|
497
493
|
} else {
|
|
498
494
|
const isInitia = getIsInitia(chainId);
|
|
499
495
|
const pubkeyProto = PubKey.fromPartial({
|
|
500
|
-
key: fromBase64
|
|
496
|
+
key: fromBase64(pubkey.value)
|
|
501
497
|
});
|
|
502
498
|
if (isInitia) {
|
|
503
499
|
return Any.fromPartial({
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-
|
|
1
|
+
import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-TD63P2AG.js';
|
|
2
2
|
import { ClientState } from './chunk-BRMONS6A.js';
|
|
3
3
|
import { ApiState, createRequestClient } from './chunk-W6TBGBV3.js';
|
|
4
4
|
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
5
|
-
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate
|
|
6
|
-
import '@cosmjs/proto-signing';
|
|
5
|
+
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
|
|
6
|
+
import { Registry } from '@cosmjs/proto-signing';
|
|
7
7
|
import '@cosmjs/tendermint-rpc';
|
|
8
|
-
import
|
|
8
|
+
import _m08 from 'protobufjs/minimal.js';
|
|
9
9
|
import { Decimal } from '@cosmjs/math';
|
|
10
|
-
import {
|
|
11
|
-
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx';
|
|
10
|
+
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx.js';
|
|
12
11
|
|
|
13
12
|
var registry = [["/circle.cctp.v1.MsgAcceptOwner", MsgAcceptOwner], ["/circle.cctp.v1.MsgAddRemoteTokenMessenger", MsgAddRemoteTokenMessenger], ["/circle.cctp.v1.MsgDepositForBurn", MsgDepositForBurn], ["/circle.cctp.v1.MsgDepositForBurnWithCaller", MsgDepositForBurnWithCaller], ["/circle.cctp.v1.MsgDisableAttester", MsgDisableAttester], ["/circle.cctp.v1.MsgEnableAttester", MsgEnableAttester], ["/circle.cctp.v1.MsgLinkTokenPair", MsgLinkTokenPair], ["/circle.cctp.v1.MsgPauseBurningAndMinting", MsgPauseBurningAndMinting], ["/circle.cctp.v1.MsgPauseSendingAndReceivingMessages", MsgPauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgReceiveMessage", MsgReceiveMessage], ["/circle.cctp.v1.MsgRemoveRemoteTokenMessenger", MsgRemoveRemoteTokenMessenger], ["/circle.cctp.v1.MsgReplaceDepositForBurn", MsgReplaceDepositForBurn], ["/circle.cctp.v1.MsgReplaceMessage", MsgReplaceMessage], ["/circle.cctp.v1.MsgSendMessage", MsgSendMessage], ["/circle.cctp.v1.MsgSendMessageWithCaller", MsgSendMessageWithCaller], ["/circle.cctp.v1.MsgUnlinkTokenPair", MsgUnlinkTokenPair], ["/circle.cctp.v1.MsgUnpauseBurningAndMinting", MsgUnpauseBurningAndMinting], ["/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages", MsgUnpauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgUpdateOwner", MsgUpdateOwner], ["/circle.cctp.v1.MsgUpdateAttesterManager", MsgUpdateAttesterManager], ["/circle.cctp.v1.MsgUpdateTokenController", MsgUpdateTokenController], ["/circle.cctp.v1.MsgUpdatePauser", MsgUpdatePauser], ["/circle.cctp.v1.MsgUpdateMaxMessageBodySize", MsgUpdateMaxMessageBodySize], ["/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage", MsgSetMaxBurnAmountPerMessage], ["/circle.cctp.v1.MsgUpdateSignatureThreshold", MsgUpdateSignatureThreshold]];
|
|
14
13
|
|
|
@@ -2,12 +2,12 @@ import { chains, findFirstWorkingEndpoint } from './chunk-JTIHU43D.js';
|
|
|
2
2
|
import { ClientState } from './chunk-BRMONS6A.js';
|
|
3
3
|
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
4
4
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
5
|
-
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary';
|
|
6
|
-
import { BaseAccount } from 'cosmjs-types/cosmos/auth/v1beta1/auth';
|
|
7
|
-
import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin';
|
|
5
|
+
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary.js';
|
|
6
|
+
import { BaseAccount } from 'cosmjs-types/cosmos/auth/v1beta1/auth.js';
|
|
7
|
+
import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin.js';
|
|
8
8
|
import { decodePubkey } from '@cosmjs/proto-signing';
|
|
9
9
|
import { accountEthParser } from '@injectivelabs/sdk-ts';
|
|
10
|
-
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys';
|
|
10
|
+
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys.js';
|
|
11
11
|
import { encodeSecp256k1Pubkey } from '@cosmjs/amino';
|
|
12
12
|
|
|
13
13
|
var createBaseVestingAccount = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
2
2
|
import { getFeeInfoForChain } from './chunk-VMPFHQ7U.js';
|
|
3
|
-
import { Decimal } from '@cosmjs/math
|
|
3
|
+
import { Decimal } from '@cosmjs/math';
|
|
4
4
|
import { GasPrice } from '@cosmjs/stargate';
|
|
5
5
|
|
|
6
6
|
var getRecommendedGasPrice = async (props) => {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { executeRoute } from './chunk-
|
|
2
|
-
export { getRecommendedGasPrice } from './chunk-
|
|
1
|
+
export { executeRoute } from './chunk-F75DC5RW.js';
|
|
2
|
+
export { getRecommendedGasPrice } from './chunk-UNF72WYO.js';
|
|
3
3
|
import './chunk-VQ5SIQWU.js';
|
|
4
4
|
export { getFeeInfoForChain } from './chunk-VMPFHQ7U.js';
|
|
5
5
|
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
6
|
-
export { getSigningStargateClient } from './chunk-
|
|
6
|
+
export { getSigningStargateClient } from './chunk-SONZJVQM.js';
|
|
7
7
|
import './chunk-JTIHU43D.js';
|
|
8
8
|
export { setApiOptions } from './chunk-TW77BXMT.js';
|
|
9
|
-
export { setClientOptions } from './chunk-
|
|
10
|
-
import './chunk-
|
|
9
|
+
export { setClientOptions } from './chunk-PHTQQIAH.js';
|
|
10
|
+
import './chunk-TD63P2AG.js';
|
|
11
11
|
export { ibcOriginAssets } from './chunk-PRQ2NHRZ.js';
|
|
12
12
|
export { messages } from './chunk-DW4U6YI6.js';
|
|
13
13
|
export { messagesDirect } from './chunk-BQTQJQ5E.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-F75DC5RW.js';
|
|
2
2
|
import '../chunk-VQ5SIQWU.js';
|
|
3
3
|
import '../chunk-SWYON2RG.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-SONZJVQM.js';
|
|
5
5
|
import '../chunk-JTIHU43D.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-TD63P2AG.js';
|
|
7
7
|
import '../chunk-DW4U6YI6.js';
|
|
8
8
|
import '../chunk-RDRDFJQE.js';
|
|
9
9
|
import '../chunk-MGVXJ2U4.js';
|
package/package.json
CHANGED