@skip-go/client 1.0.3 → 1.0.4
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.cts +183 -183
- package/dist/api/postMessagesDirect.d.cts +183 -183
- package/dist/api/postRoute.d.cts +160 -160
- package/dist/{chunk-44PBLFB5.cjs → chunk-4RVEOKQU.cjs} +2 -2
- package/dist/{chunk-SW3SEQMJ.cjs → chunk-D2MDLQQZ.cjs} +22 -22
- package/dist/{chunk-G7BBDZ7C.cjs → chunk-GQYZQCOJ.cjs} +77 -97
- package/dist/{chunk-5IAEEEOQ.cjs → chunk-UO54MR5Z.cjs} +192 -209
- package/dist/{chunk-7OIZPQJB.cjs → chunk-WMXUOVHN.cjs} +71 -89
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +0 -1
- package/dist/public-functions/executeRoute.cjs +4 -4
- package/dist/public-functions/getRecommendedGasPrice.cjs +2 -2
- package/dist/public-functions/getSigningStargateClient.cjs +2 -2
- package/dist/public-functions/getSigningStargateClient.d.cts +1 -1
- package/dist/public-functions/setClientOptions.cjs +3 -3
- package/package.json +1 -1
package/dist/api/postRoute.d.cts
CHANGED
|
@@ -12,128 +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
|
-
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
|
-
} | {
|
|
137
15
|
axelarTransfer?: {
|
|
138
16
|
asset?: string | undefined;
|
|
139
17
|
feeAmount?: string | undefined;
|
|
@@ -203,14 +81,6 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
203
81
|
txIndex: number;
|
|
204
82
|
amountIn: string;
|
|
205
83
|
amountOut: string;
|
|
206
|
-
} | {
|
|
207
|
-
bankSend?: {
|
|
208
|
-
chainId?: string | undefined;
|
|
209
|
-
denom?: string | undefined;
|
|
210
|
-
} | undefined;
|
|
211
|
-
txIndex: number;
|
|
212
|
-
amountIn: string;
|
|
213
|
-
amountOut: string;
|
|
214
84
|
} | {
|
|
215
85
|
cctpTransfer?: {
|
|
216
86
|
fromChainId?: string | undefined;
|
|
@@ -232,14 +102,15 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
232
102
|
amountIn: string;
|
|
233
103
|
amountOut: string;
|
|
234
104
|
} | {
|
|
235
|
-
|
|
105
|
+
stargateTransfer?: {
|
|
236
106
|
fromChainId?: string | undefined;
|
|
237
107
|
toChainId?: string | undefined;
|
|
238
108
|
denomIn?: string | undefined;
|
|
239
109
|
denomOut?: string | undefined;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
110
|
+
bridgeId?: BridgeType | undefined;
|
|
111
|
+
poolAddress?: string | undefined;
|
|
112
|
+
destinationEndpointId?: number | undefined;
|
|
113
|
+
oftFeeAsset?: {
|
|
243
114
|
chainId: string;
|
|
244
115
|
coingeckoId?: string | undefined;
|
|
245
116
|
decimals?: number | undefined;
|
|
@@ -257,9 +128,36 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
257
128
|
tokenContract?: string | undefined;
|
|
258
129
|
trace: string;
|
|
259
130
|
} | undefined;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
131
|
+
oftFeeAmount?: string | undefined;
|
|
132
|
+
oftFeeAmountUsd?: string | undefined;
|
|
133
|
+
messagingFeeAsset?: {
|
|
134
|
+
chainId: string;
|
|
135
|
+
coingeckoId?: string | undefined;
|
|
136
|
+
decimals?: number | undefined;
|
|
137
|
+
denom: string;
|
|
138
|
+
description?: string | undefined;
|
|
139
|
+
isCw20: boolean;
|
|
140
|
+
isEvm: boolean;
|
|
141
|
+
isSvm: boolean;
|
|
142
|
+
logoUri?: string | undefined;
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
originChainId: string;
|
|
145
|
+
originDenom: string;
|
|
146
|
+
recommendedSymbol?: string | undefined;
|
|
147
|
+
symbol?: string | undefined;
|
|
148
|
+
tokenContract?: string | undefined;
|
|
149
|
+
trace: string;
|
|
150
|
+
} | undefined;
|
|
151
|
+
messagingFeeAmount?: string | undefined;
|
|
152
|
+
messageingFeeAmountUsd?: string | undefined;
|
|
153
|
+
} | undefined;
|
|
154
|
+
txIndex: number;
|
|
155
|
+
amountIn: string;
|
|
156
|
+
amountOut: string;
|
|
157
|
+
} | {
|
|
158
|
+
bankSend?: {
|
|
159
|
+
chainId?: string | undefined;
|
|
160
|
+
denom?: string | undefined;
|
|
263
161
|
} | undefined;
|
|
264
162
|
txIndex: number;
|
|
265
163
|
amountIn: string;
|
|
@@ -283,28 +181,14 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
283
181
|
amountIn: string;
|
|
284
182
|
amountOut: string;
|
|
285
183
|
} | {
|
|
286
|
-
|
|
287
|
-
fromChainId?: string | undefined;
|
|
288
|
-
toChainId?: string | undefined;
|
|
289
|
-
denomIn?: string | undefined;
|
|
290
|
-
denomOut?: string | undefined;
|
|
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?: {
|
|
184
|
+
hyperlaneTransfer?: {
|
|
300
185
|
fromChainId?: string | undefined;
|
|
301
186
|
toChainId?: string | undefined;
|
|
302
187
|
denomIn?: string | undefined;
|
|
303
188
|
denomOut?: string | undefined;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
oftFeeAsset?: {
|
|
189
|
+
hyperlaneContractAddress?: string | undefined;
|
|
190
|
+
feeAmount?: string | undefined;
|
|
191
|
+
feeAsset?: {
|
|
308
192
|
chainId: string;
|
|
309
193
|
coingeckoId?: string | undefined;
|
|
310
194
|
decimals?: number | undefined;
|
|
@@ -322,9 +206,27 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
322
206
|
tokenContract?: string | undefined;
|
|
323
207
|
trace: string;
|
|
324
208
|
} | undefined;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
209
|
+
usdFeeAmount?: string | undefined;
|
|
210
|
+
bridgeId?: BridgeType | undefined;
|
|
211
|
+
smartRelay?: boolean | undefined;
|
|
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?: {
|
|
328
230
|
chainId: string;
|
|
329
231
|
coingeckoId?: string | undefined;
|
|
330
232
|
decimals?: number | undefined;
|
|
@@ -342,8 +244,106 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
342
244
|
tokenContract?: string | undefined;
|
|
343
245
|
trace: string;
|
|
344
246
|
} | undefined;
|
|
345
|
-
|
|
346
|
-
|
|
247
|
+
bridgeId?: BridgeType | undefined;
|
|
248
|
+
smartRelay?: boolean | undefined;
|
|
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;
|
|
347
347
|
} | undefined;
|
|
348
348
|
txIndex: number;
|
|
349
349
|
amountIn: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk4R6OCWRR_cjs = require('./chunk-4R6OCWRR.cjs');
|
|
4
4
|
var chunkJ4LI33TK_cjs = require('./chunk-J4LI33TK.cjs');
|
|
5
|
-
var
|
|
5
|
+
var math = require('@cosmjs/math');
|
|
6
6
|
var stargate = require('@cosmjs/stargate');
|
|
7
7
|
|
|
8
8
|
var getRecommendedGasPrice = async (props) => {
|
|
@@ -18,7 +18,7 @@ var getRecommendedGasPrice = async (props) => {
|
|
|
18
18
|
price = feeInfo.gasPrice.low;
|
|
19
19
|
}
|
|
20
20
|
if (!price) return;
|
|
21
|
-
return new stargate.GasPrice(
|
|
21
|
+
return new stargate.GasPrice(math.Decimal.fromUserInput(chunk4R6OCWRR_cjs.BigNumber(price).toFixed(), 18), feeInfo.denom);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
exports.getRecommendedGasPrice = getRecommendedGasPrice;
|
|
@@ -4,12 +4,12 @@ var chunk7SK3IFXJ_cjs = require('./chunk-7SK3IFXJ.cjs');
|
|
|
4
4
|
var chunkED2OY55G_cjs = require('./chunk-ED2OY55G.cjs');
|
|
5
5
|
var stargate = require('@cosmjs/stargate');
|
|
6
6
|
var utils = require('@cosmjs/utils');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
7
|
+
var binary_js = require('cosmjs-types/binary.js');
|
|
8
|
+
var auth_js = require('cosmjs-types/cosmos/auth/v1beta1/auth.js');
|
|
9
|
+
var coin_js = require('cosmjs-types/cosmos/base/v1beta1/coin.js');
|
|
10
10
|
var protoSigning = require('@cosmjs/proto-signing');
|
|
11
11
|
var sdkTs = require('@injectivelabs/sdk-ts');
|
|
12
|
-
var
|
|
12
|
+
var keys_js = require('cosmjs-types/cosmos/crypto/secp256k1/keys.js');
|
|
13
13
|
var amino = require('@cosmjs/amino');
|
|
14
14
|
|
|
15
15
|
var createBaseVestingAccount = () => {
|
|
@@ -23,21 +23,21 @@ var createBaseVestingAccount = () => {
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
var BaseVestingAccount = {
|
|
26
|
-
encode(message, writer =
|
|
26
|
+
encode(message, writer = binary_js.BinaryWriter.create()) {
|
|
27
27
|
if (message.baseAccount !== void 0) {
|
|
28
|
-
|
|
28
|
+
auth_js.BaseAccount.encode(
|
|
29
29
|
message.baseAccount,
|
|
30
30
|
writer.uint32(10).fork()
|
|
31
31
|
).ldelim();
|
|
32
32
|
}
|
|
33
33
|
for (const v of message.originalVesting) {
|
|
34
|
-
|
|
34
|
+
coin_js.Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
35
35
|
}
|
|
36
36
|
for (const v of message.delegatedFree) {
|
|
37
|
-
|
|
37
|
+
coin_js.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
38
38
|
}
|
|
39
39
|
for (const v of message.delegatedVesting) {
|
|
40
|
-
|
|
40
|
+
coin_js.Coin.encode(v, writer.uint32(34).fork()).ldelim();
|
|
41
41
|
}
|
|
42
42
|
if (message.endTime !== BigInt(0)) {
|
|
43
43
|
writer.uint32(40).int64(message.endTime);
|
|
@@ -45,23 +45,23 @@ var BaseVestingAccount = {
|
|
|
45
45
|
return writer;
|
|
46
46
|
},
|
|
47
47
|
decode(input, length) {
|
|
48
|
-
const reader = input instanceof
|
|
48
|
+
const reader = input instanceof binary_js.BinaryReader ? input : new binary_js.BinaryReader(input);
|
|
49
49
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
50
50
|
const message = createBaseVestingAccount();
|
|
51
51
|
while (reader.pos < end) {
|
|
52
52
|
const tag = reader.uint32();
|
|
53
53
|
switch (tag >>> 3) {
|
|
54
54
|
case 1:
|
|
55
|
-
message.baseAccount =
|
|
55
|
+
message.baseAccount = auth_js.BaseAccount.decode(reader, reader.uint32());
|
|
56
56
|
break;
|
|
57
57
|
case 2:
|
|
58
|
-
message.originalVesting.push(
|
|
58
|
+
message.originalVesting.push(coin_js.Coin.decode(reader, reader.uint32()));
|
|
59
59
|
break;
|
|
60
60
|
case 3:
|
|
61
|
-
message.delegatedFree.push(
|
|
61
|
+
message.delegatedFree.push(coin_js.Coin.decode(reader, reader.uint32()));
|
|
62
62
|
break;
|
|
63
63
|
case 4:
|
|
64
|
-
message.delegatedVesting.push(
|
|
64
|
+
message.delegatedVesting.push(coin_js.Coin.decode(reader, reader.uint32()));
|
|
65
65
|
break;
|
|
66
66
|
case 5:
|
|
67
67
|
message.endTime = reader.int64();
|
|
@@ -83,7 +83,7 @@ function createBasePeriod() {
|
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
var Period = {
|
|
86
|
-
encode(message, writer =
|
|
86
|
+
encode(message, writer = binary_js.BinaryWriter.create()) {
|
|
87
87
|
if (message.startTime !== BigInt(0)) {
|
|
88
88
|
writer.uint32(8).int64(message.startTime);
|
|
89
89
|
}
|
|
@@ -91,7 +91,7 @@ var Period = {
|
|
|
91
91
|
writer.uint32(16).int64(message.length);
|
|
92
92
|
}
|
|
93
93
|
for (const v of message.amount) {
|
|
94
|
-
|
|
94
|
+
coin_js.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
95
95
|
}
|
|
96
96
|
if (message.actionType !== 0) {
|
|
97
97
|
writer.uint32(32).int32(message.actionType);
|
|
@@ -99,7 +99,7 @@ var Period = {
|
|
|
99
99
|
return writer;
|
|
100
100
|
},
|
|
101
101
|
decode(input, length) {
|
|
102
|
-
const reader = input instanceof
|
|
102
|
+
const reader = input instanceof binary_js.BinaryReader ? input : new binary_js.BinaryReader(input);
|
|
103
103
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
104
104
|
const message = createBasePeriod();
|
|
105
105
|
while (reader.pos < end) {
|
|
@@ -112,7 +112,7 @@ var Period = {
|
|
|
112
112
|
message.length = reader.int64();
|
|
113
113
|
break;
|
|
114
114
|
case 3:
|
|
115
|
-
message.amount.push(
|
|
115
|
+
message.amount.push(coin_js.Coin.decode(reader, reader.uint32()));
|
|
116
116
|
break;
|
|
117
117
|
case 4:
|
|
118
118
|
message.actionType = reader.int32();
|
|
@@ -134,7 +134,7 @@ function createBaseStridePeriodicVestingAccount() {
|
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
136
|
var StridePeriodicVestingAccount = {
|
|
137
|
-
encode(message, writer =
|
|
137
|
+
encode(message, writer = binary_js.BinaryWriter.create()) {
|
|
138
138
|
if (message.baseVestingAccount !== void 0) {
|
|
139
139
|
BaseVestingAccount.encode(
|
|
140
140
|
message.baseVestingAccount,
|
|
@@ -147,7 +147,7 @@ var StridePeriodicVestingAccount = {
|
|
|
147
147
|
return writer;
|
|
148
148
|
},
|
|
149
149
|
decode(input, length) {
|
|
150
|
-
const reader = input instanceof
|
|
150
|
+
const reader = input instanceof binary_js.BinaryReader ? input : new binary_js.BinaryReader(input);
|
|
151
151
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
152
152
|
const message = createBaseStridePeriodicVestingAccount();
|
|
153
153
|
while (reader.pos < end) {
|
|
@@ -191,11 +191,11 @@ var accountParser = (acc) => {
|
|
|
191
191
|
return sdkTs.accountEthParser(acc, "/ethermint.crypto.v1.ethsecp256k1.PubKey");
|
|
192
192
|
default: {
|
|
193
193
|
if (acc.typeUrl === "/cosmos.auth.v1beta1.BaseAccount") {
|
|
194
|
-
const { address, pubKey, accountNumber, sequence } =
|
|
194
|
+
const { address, pubKey, accountNumber, sequence } = auth_js.BaseAccount.decode(
|
|
195
195
|
acc.value
|
|
196
196
|
);
|
|
197
197
|
if (pubKey?.typeUrl === "/initia.crypto.v1beta1.ethsecp256k1.PubKey") {
|
|
198
|
-
const { key } =
|
|
198
|
+
const { key } = keys_js.PubKey.decode(pubKey.value);
|
|
199
199
|
const pk = amino.encodeSecp256k1Pubkey(key);
|
|
200
200
|
return {
|
|
201
201
|
address,
|