@skip-go/client 1.6.6 → 1.7.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/cjs/{chunk-WAFRABKH.cjs → chunk-3OA75MLZ.cjs} +4 -4
- package/dist/cjs/{chunk-Y2RKGBD5.cjs → chunk-BWT2HERJ.cjs} +3 -3
- package/dist/cjs/{chunk-G2MIIJW7.cjs → chunk-CROK3JCZ.cjs} +6 -6
- package/dist/cjs/{chunk-2IJEQDUY.cjs → chunk-ES3F32FX.cjs} +3 -3
- package/dist/cjs/{chunk-AVWWCQ5P.cjs → chunk-JD4YSHG6.cjs} +4 -4
- package/dist/cjs/{chunk-PPDPKCRT.cjs → chunk-U7NRHQOL.cjs} +25 -25
- package/dist/cjs/{chunk-J7VEYNZE.cjs → chunk-UWRTLRJQ.cjs} +35 -34
- package/dist/cjs/index.cjs +13 -13
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +6 -6
- package/dist/cjs/public-functions/executeRoute.cjs +6 -6
- package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +3 -3
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +7 -7
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +2 -2
- package/dist/cjs/public-functions/setClientOptions.cjs +2 -2
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +4 -4
- package/dist/esm/{chunk-RJOII3F5.js → chunk-2S6KA5V3.js} +11 -10
- package/dist/esm/{chunk-VH7OPGUG.js → chunk-4Q6MBTR2.js} +2 -2
- package/dist/esm/{chunk-QMW5AP42.js → chunk-6L23HV6O.js} +7 -7
- package/dist/esm/{chunk-GZJLX2CP.js → chunk-HRWP6PXN.js} +2 -2
- package/dist/esm/{chunk-C4KVX4IK.js → chunk-LTB5KF7V.js} +1 -1
- package/dist/esm/{chunk-FQQKSWXR.js → chunk-NLV5XQIK.js} +3 -3
- package/dist/esm/{chunk-4Q7NAXYI.js → chunk-RYNJ6MGN.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/public-functions/executeMultipleRoutes.js +5 -5
- package/dist/esm/public-functions/executeRoute.js +5 -5
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.js +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +7 -7
- package/dist/esm/public-functions/getSigningStargateClient.js +1 -1
- package/dist/esm/public-functions/setClientOptions.js +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.js +3 -3
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkCROK3JCZ_cjs = require('./chunk-CROK3JCZ.cjs');
|
|
4
|
+
var chunkU7NRHQOL_cjs = require('./chunk-U7NRHQOL.cjs');
|
|
5
5
|
var chunkATW6UNT5_cjs = require('./chunk-ATW6UNT5.cjs');
|
|
6
6
|
var bignumber_js = require('bignumber.js');
|
|
7
7
|
var stargate = require('@cosmjs/stargate');
|
|
@@ -35,11 +35,11 @@ var validateCosmosGasBalance = async ({
|
|
|
35
35
|
if (txIndex !== 0 && chainId === "noble-1") {
|
|
36
36
|
return "0";
|
|
37
37
|
}
|
|
38
|
-
const { stargateClient } = await
|
|
38
|
+
const { stargateClient } = await chunkU7NRHQOL_cjs.getSigningStargateClient({
|
|
39
39
|
chainId,
|
|
40
40
|
getOfflineSigner
|
|
41
41
|
});
|
|
42
|
-
const estimatedGas = await
|
|
42
|
+
const estimatedGas = await chunkCROK3JCZ_cjs.getCosmosGasAmountForMessage(
|
|
43
43
|
stargateClient,
|
|
44
44
|
signerAddress,
|
|
45
45
|
chainId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUWRTLRJQ_cjs = require('./chunk-UWRTLRJQ.cjs');
|
|
4
4
|
var chunkXJASQLBH_cjs = require('./chunk-XJASQLBH.cjs');
|
|
5
5
|
var chunkNCFH5MGF_cjs = require('./chunk-NCFH5MGF.cjs');
|
|
6
6
|
var chunkAUTOIM57_cjs = require('./chunk-AUTOIM57.cjs');
|
|
@@ -24,7 +24,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
24
24
|
`executeMultipleRoutes error: no user addresses found for route: ${routeKey}`
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
const routeAddressList = await
|
|
27
|
+
const routeAddressList = await chunkUWRTLRJQ_cjs.createValidAddressList({
|
|
28
28
|
userAddresses: _userAddresses,
|
|
29
29
|
route: routeValue
|
|
30
30
|
});
|
|
@@ -132,7 +132,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
132
132
|
if (routeKey === "mainRoute") {
|
|
133
133
|
mainRouteId = routeId;
|
|
134
134
|
}
|
|
135
|
-
const { transactionDetails, executeTransaction: _executeTransaction } = await
|
|
135
|
+
const { transactionDetails, executeTransaction: _executeTransaction } = await chunkUWRTLRJQ_cjs.executeTransactions({
|
|
136
136
|
...restOptions,
|
|
137
137
|
routeId,
|
|
138
138
|
txs: msgsResponse?.txs,
|
|
@@ -4,9 +4,9 @@ var chunkNM4PISTQ_cjs = require('./chunk-NM4PISTQ.cjs');
|
|
|
4
4
|
var chunkMUJBB64F_cjs = require('./chunk-MUJBB64F.cjs');
|
|
5
5
|
require('@cosmjs/stargate');
|
|
6
6
|
var encoding = require('@cosmjs/encoding');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
7
|
+
var tx$2 = require('cosmjs-types/cosmos/bank/v1beta1/tx');
|
|
8
|
+
var tx$1 = require('cosmjs-types/cosmwasm/wasm/v1/tx');
|
|
9
|
+
var tx = require('cosmjs-types/ibc/applications/transfer/v1/tx');
|
|
10
10
|
var _m0 = require('protobufjs/minimal.js');
|
|
11
11
|
|
|
12
12
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -167,7 +167,7 @@ function getEncodeObjectFromCosmosMessage(message) {
|
|
|
167
167
|
if (message.msgTypeUrl === "/ibc.applications.transfer.v1.MsgTransfer") {
|
|
168
168
|
return {
|
|
169
169
|
typeUrl: "/ibc.applications.transfer.v1.MsgTransfer",
|
|
170
|
-
value:
|
|
170
|
+
value: tx.MsgTransfer.fromJSON({
|
|
171
171
|
sourcePort: msgJson.source_port,
|
|
172
172
|
sourceChannel: msgJson.source_channel,
|
|
173
173
|
token: msgJson.token,
|
|
@@ -182,7 +182,7 @@ function getEncodeObjectFromCosmosMessage(message) {
|
|
|
182
182
|
if (message.msgTypeUrl === "/cosmwasm.wasm.v1.MsgExecuteContract") {
|
|
183
183
|
return {
|
|
184
184
|
typeUrl: message.msgTypeUrl,
|
|
185
|
-
value:
|
|
185
|
+
value: tx$1.MsgExecuteContract.fromPartial({
|
|
186
186
|
sender: msgJson.sender,
|
|
187
187
|
contract: msgJson.contract,
|
|
188
188
|
msg: encoding.toUtf8(JSON.stringify(msgJson.msg)),
|
|
@@ -193,7 +193,7 @@ function getEncodeObjectFromCosmosMessage(message) {
|
|
|
193
193
|
if (message.msgTypeUrl === "/cosmos.bank.v1beta1.MsgSend") {
|
|
194
194
|
return {
|
|
195
195
|
typeUrl: message.msgTypeUrl,
|
|
196
|
-
value:
|
|
196
|
+
value: tx$2.MsgSend.fromPartial({
|
|
197
197
|
fromAddress: msgJson.from_address,
|
|
198
198
|
toAddress: msgJson.to_address,
|
|
199
199
|
amount: msgJson.amount
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUWRTLRJQ_cjs = require('./chunk-UWRTLRJQ.cjs');
|
|
4
4
|
var chunkXJASQLBH_cjs = require('./chunk-XJASQLBH.cjs');
|
|
5
5
|
var chunkNCFH5MGF_cjs = require('./chunk-NCFH5MGF.cjs');
|
|
6
6
|
var chunk2QPPD3BB_cjs = require('./chunk-2QPPD3BB.cjs');
|
|
@@ -12,7 +12,7 @@ var executeRoute = async (options) => {
|
|
|
12
12
|
status: "unconfirmed",
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
const addressList = await
|
|
15
|
+
const addressList = await chunkUWRTLRJQ_cjs.createValidAddressList({
|
|
16
16
|
userAddresses,
|
|
17
17
|
route
|
|
18
18
|
});
|
|
@@ -44,7 +44,7 @@ var executeRoute = async (options) => {
|
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
const isSequentialRoute = chunkXJASQLBH_cjs.routeRequiresSequentialSigning(route?.operations);
|
|
47
|
-
const { transactionDetails, executeTransaction } = await
|
|
47
|
+
const { transactionDetails, executeTransaction } = await chunkUWRTLRJQ_cjs.executeTransactions({
|
|
48
48
|
...options,
|
|
49
49
|
batchSignTxs: isSequentialRoute ? false : options.batchSignTxs,
|
|
50
50
|
batchSimulate: isSequentialRoute ? false : options.batchSimulate,
|
|
@@ -6,11 +6,11 @@ var chunkMUJBB64F_cjs = require('./chunk-MUJBB64F.cjs');
|
|
|
6
6
|
var chunkATW6UNT5_cjs = require('./chunk-ATW6UNT5.cjs');
|
|
7
7
|
var chunk2QPPD3BB_cjs = require('./chunk-2QPPD3BB.cjs');
|
|
8
8
|
var stargate = require('@cosmjs/stargate');
|
|
9
|
-
var
|
|
9
|
+
var cosmwasm = require('@cosmjs/cosmwasm');
|
|
10
10
|
var protoSigning = require('@cosmjs/proto-signing');
|
|
11
11
|
var _m08 = require('protobufjs/minimal.js');
|
|
12
12
|
var math = require('@cosmjs/math');
|
|
13
|
-
var
|
|
13
|
+
var tx = require('cosmjs-types/cosmwasm/wasm/v1/tx');
|
|
14
14
|
|
|
15
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
|
|
@@ -2239,7 +2239,7 @@ var setClientOptions = (options = {}) => {
|
|
|
2239
2239
|
chunkATW6UNT5_cjs.ClientState.endpointOptions = options.endpointOptions ?? {};
|
|
2240
2240
|
chunkATW6UNT5_cjs.ClientState.aminoTypes = new stargate.AminoTypes({
|
|
2241
2241
|
...stargate.createDefaultAminoConverters(),
|
|
2242
|
-
...
|
|
2242
|
+
...cosmwasm.createWasmAminoConverters(),
|
|
2243
2243
|
...circleAminoConverters,
|
|
2244
2244
|
...evmosAminoConverters,
|
|
2245
2245
|
...initiaAminoConverters,
|
|
@@ -2248,7 +2248,7 @@ var setClientOptions = (options = {}) => {
|
|
|
2248
2248
|
});
|
|
2249
2249
|
chunkATW6UNT5_cjs.ClientState.registry = new protoSigning.Registry([
|
|
2250
2250
|
...stargate.defaultRegistryTypes,
|
|
2251
|
-
["/cosmwasm.wasm.v1.MsgExecuteContract",
|
|
2251
|
+
["/cosmwasm.wasm.v1.MsgExecuteContract", tx.MsgExecuteContract],
|
|
2252
2252
|
["/initia.move.v1.MsgExecute", chunkNM4PISTQ_cjs.MsgExecute],
|
|
2253
2253
|
["/opinit.ophost.v1.MsgInitiateTokenDeposit", chunkNM4PISTQ_cjs.MsgInitiateTokenDeposit],
|
|
2254
2254
|
...circleProtoRegistry,
|
|
@@ -5,11 +5,11 @@ var chunk7VBQWNW6_cjs = require('./chunk-7VBQWNW6.cjs');
|
|
|
5
5
|
var chunkATW6UNT5_cjs = require('./chunk-ATW6UNT5.cjs');
|
|
6
6
|
var stargate = require('@cosmjs/stargate');
|
|
7
7
|
var utils = require('@cosmjs/utils');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var binary = require('cosmjs-types/binary');
|
|
9
|
+
var auth = require('cosmjs-types/cosmos/auth/v1beta1/auth');
|
|
10
|
+
var coin = require('cosmjs-types/cosmos/base/v1beta1/coin');
|
|
11
11
|
var protoSigning = require('@cosmjs/proto-signing');
|
|
12
|
-
var
|
|
12
|
+
var keys = require('cosmjs-types/cosmos/crypto/secp256k1/keys');
|
|
13
13
|
var amino = require('@cosmjs/amino');
|
|
14
14
|
var _m0 = require('protobufjs/minimal.js');
|
|
15
15
|
|
|
@@ -28,21 +28,21 @@ var createBaseVestingAccount = () => {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
var BaseVestingAccount = {
|
|
31
|
-
encode(message, writer =
|
|
31
|
+
encode(message, writer = binary.BinaryWriter.create()) {
|
|
32
32
|
if (message.baseAccount !== void 0) {
|
|
33
|
-
|
|
33
|
+
auth.BaseAccount.encode(
|
|
34
34
|
message.baseAccount,
|
|
35
35
|
writer.uint32(10).fork()
|
|
36
36
|
).ldelim();
|
|
37
37
|
}
|
|
38
38
|
for (const v of message.originalVesting) {
|
|
39
|
-
|
|
39
|
+
coin.Coin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
40
40
|
}
|
|
41
41
|
for (const v of message.delegatedFree) {
|
|
42
|
-
|
|
42
|
+
coin.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
43
43
|
}
|
|
44
44
|
for (const v of message.delegatedVesting) {
|
|
45
|
-
|
|
45
|
+
coin.Coin.encode(v, writer.uint32(34).fork()).ldelim();
|
|
46
46
|
}
|
|
47
47
|
if (message.endTime !== BigInt(0)) {
|
|
48
48
|
writer.uint32(40).int64(message.endTime);
|
|
@@ -50,23 +50,23 @@ var BaseVestingAccount = {
|
|
|
50
50
|
return writer;
|
|
51
51
|
},
|
|
52
52
|
decode(input, length) {
|
|
53
|
-
const reader = input instanceof
|
|
53
|
+
const reader = input instanceof binary.BinaryReader ? input : new binary.BinaryReader(input);
|
|
54
54
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
55
55
|
const message = createBaseVestingAccount();
|
|
56
56
|
while (reader.pos < end) {
|
|
57
57
|
const tag = reader.uint32();
|
|
58
58
|
switch (tag >>> 3) {
|
|
59
59
|
case 1:
|
|
60
|
-
message.baseAccount =
|
|
60
|
+
message.baseAccount = auth.BaseAccount.decode(reader, reader.uint32());
|
|
61
61
|
break;
|
|
62
62
|
case 2:
|
|
63
|
-
message.originalVesting.push(
|
|
63
|
+
message.originalVesting.push(coin.Coin.decode(reader, reader.uint32()));
|
|
64
64
|
break;
|
|
65
65
|
case 3:
|
|
66
|
-
message.delegatedFree.push(
|
|
66
|
+
message.delegatedFree.push(coin.Coin.decode(reader, reader.uint32()));
|
|
67
67
|
break;
|
|
68
68
|
case 4:
|
|
69
|
-
message.delegatedVesting.push(
|
|
69
|
+
message.delegatedVesting.push(coin.Coin.decode(reader, reader.uint32()));
|
|
70
70
|
break;
|
|
71
71
|
case 5:
|
|
72
72
|
message.endTime = reader.int64();
|
|
@@ -88,7 +88,7 @@ function createBasePeriod() {
|
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
var Period = {
|
|
91
|
-
encode(message, writer =
|
|
91
|
+
encode(message, writer = binary.BinaryWriter.create()) {
|
|
92
92
|
if (message.startTime !== BigInt(0)) {
|
|
93
93
|
writer.uint32(8).int64(message.startTime);
|
|
94
94
|
}
|
|
@@ -96,7 +96,7 @@ var Period = {
|
|
|
96
96
|
writer.uint32(16).int64(message.length);
|
|
97
97
|
}
|
|
98
98
|
for (const v of message.amount) {
|
|
99
|
-
|
|
99
|
+
coin.Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
100
100
|
}
|
|
101
101
|
if (message.actionType !== 0) {
|
|
102
102
|
writer.uint32(32).int32(message.actionType);
|
|
@@ -104,7 +104,7 @@ var Period = {
|
|
|
104
104
|
return writer;
|
|
105
105
|
},
|
|
106
106
|
decode(input, length) {
|
|
107
|
-
const reader = input instanceof
|
|
107
|
+
const reader = input instanceof binary.BinaryReader ? input : new binary.BinaryReader(input);
|
|
108
108
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
109
109
|
const message = createBasePeriod();
|
|
110
110
|
while (reader.pos < end) {
|
|
@@ -117,7 +117,7 @@ var Period = {
|
|
|
117
117
|
message.length = reader.int64();
|
|
118
118
|
break;
|
|
119
119
|
case 3:
|
|
120
|
-
message.amount.push(
|
|
120
|
+
message.amount.push(coin.Coin.decode(reader, reader.uint32()));
|
|
121
121
|
break;
|
|
122
122
|
case 4:
|
|
123
123
|
message.actionType = reader.int32();
|
|
@@ -139,7 +139,7 @@ function createBaseStridePeriodicVestingAccount() {
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
var StridePeriodicVestingAccount = {
|
|
142
|
-
encode(message, writer =
|
|
142
|
+
encode(message, writer = binary.BinaryWriter.create()) {
|
|
143
143
|
if (message.baseVestingAccount !== void 0) {
|
|
144
144
|
BaseVestingAccount.encode(
|
|
145
145
|
message.baseVestingAccount,
|
|
@@ -152,7 +152,7 @@ var StridePeriodicVestingAccount = {
|
|
|
152
152
|
return writer;
|
|
153
153
|
},
|
|
154
154
|
decode(input, length) {
|
|
155
|
-
const reader = input instanceof
|
|
155
|
+
const reader = input instanceof binary.BinaryReader ? input : new binary.BinaryReader(input);
|
|
156
156
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
157
157
|
const message = createBaseStridePeriodicVestingAccount();
|
|
158
158
|
while (reader.pos < end) {
|
|
@@ -272,7 +272,7 @@ var accountParser = (acc) => {
|
|
|
272
272
|
return {
|
|
273
273
|
address: baseAccount.address,
|
|
274
274
|
pubkey: baseAccount.pubKey ? protoSigning.decodePubkey(baseAccount.pubKey) : null,
|
|
275
|
-
accountNumber:
|
|
275
|
+
accountNumber: baseAccount.accountNumber,
|
|
276
276
|
sequence: Number(baseAccount.sequence)
|
|
277
277
|
};
|
|
278
278
|
}
|
|
@@ -285,19 +285,19 @@ var accountParser = (acc) => {
|
|
|
285
285
|
return accountEthParser(acc, "/ethermint.crypto.v1.ethsecp256k1.PubKey");
|
|
286
286
|
default: {
|
|
287
287
|
if (acc.typeUrl === "/cosmos.auth.v1beta1.BaseAccount") {
|
|
288
|
-
const { address, pubKey, accountNumber, sequence } =
|
|
288
|
+
const { address, pubKey, accountNumber, sequence } = auth.BaseAccount.decode(
|
|
289
289
|
acc.value
|
|
290
290
|
);
|
|
291
291
|
switch (pubKey?.typeUrl) {
|
|
292
292
|
case "/initia.crypto.v1beta1.ethsecp256k1.PubKey":
|
|
293
293
|
case "/ethermint.crypto.v1.ethsecp256k1.PubKey":
|
|
294
294
|
case "/cosmos.evm.crypto.v1.ethsecp256k1.PubKey": {
|
|
295
|
-
const { key } =
|
|
295
|
+
const { key } = keys.PubKey.decode(pubKey.value);
|
|
296
296
|
const pk = amino.encodeSecp256k1Pubkey(key);
|
|
297
297
|
return {
|
|
298
298
|
address,
|
|
299
299
|
pubkey: pk,
|
|
300
|
-
accountNumber
|
|
300
|
+
accountNumber,
|
|
301
301
|
sequence: Number(sequence)
|
|
302
302
|
};
|
|
303
303
|
}
|
|
@@ -319,7 +319,7 @@ var accountEthParser = (ethAccount, pubKeyTypeUrl = "/injective.crypto.v1beta1.e
|
|
|
319
319
|
type: pubKeyTypeUrl,
|
|
320
320
|
value: Buffer.from(pubKey.value).toString("base64")
|
|
321
321
|
} : null,
|
|
322
|
-
accountNumber:
|
|
322
|
+
accountNumber: BigInt(baseAccount.accountNumber.toString()),
|
|
323
323
|
sequence: parseInt(baseAccount.sequence.toString(), 10)
|
|
324
324
|
};
|
|
325
325
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkXJASQLBH_cjs = require('./chunk-XJASQLBH.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk3OA75MLZ_cjs = require('./chunk-3OA75MLZ.cjs');
|
|
5
|
+
var chunkCROK3JCZ_cjs = require('./chunk-CROK3JCZ.cjs');
|
|
6
6
|
var chunkF3EB2AQG_cjs = require('./chunk-F3EB2AQG.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunkU7NRHQOL_cjs = require('./chunk-U7NRHQOL.cjs');
|
|
8
8
|
var chunk7VBQWNW6_cjs = require('./chunk-7VBQWNW6.cjs');
|
|
9
9
|
var chunkJRXPJ45U_cjs = require('./chunk-JRXPJ45U.cjs');
|
|
10
10
|
var chunkFCTBCHOT_cjs = require('./chunk-FCTBCHOT.cjs');
|
|
11
11
|
var chunkATW6UNT5_cjs = require('./chunk-ATW6UNT5.cjs');
|
|
12
12
|
var chunk2QPPD3BB_cjs = require('./chunk-2QPPD3BB.cjs');
|
|
13
13
|
var stargate = require('@cosmjs/stargate');
|
|
14
|
-
var
|
|
14
|
+
var tx = require('cosmjs-types/cosmos/tx/v1beta1/tx');
|
|
15
15
|
var protoSigning = require('@cosmjs/proto-signing');
|
|
16
16
|
var amino = require('@cosmjs/amino');
|
|
17
17
|
var encoding = require('@cosmjs/encoding');
|
|
18
|
-
var
|
|
19
|
-
var
|
|
18
|
+
var keys = require('cosmjs-types/cosmos/crypto/secp256k1/keys');
|
|
19
|
+
var any = require('cosmjs-types/google/protobuf/any');
|
|
20
20
|
var math = require('@cosmjs/math');
|
|
21
|
-
var
|
|
21
|
+
var signing = require('cosmjs-types/cosmos/tx/signing/v1beta1/signing');
|
|
22
22
|
var viem = require('viem');
|
|
23
23
|
var web3_js = require('@solana/web3.js');
|
|
24
24
|
var bignumber_js = require('bignumber.js');
|
|
@@ -61,9 +61,9 @@ var getAccountNumberAndSequence = async (address, chainId) => {
|
|
|
61
61
|
if (chainId.includes("dymension")) {
|
|
62
62
|
return getAccountNumberAndSequenceFromDymension(address, chainId);
|
|
63
63
|
}
|
|
64
|
-
const endpoint = await
|
|
64
|
+
const endpoint = await chunkU7NRHQOL_cjs.getRpcEndpointForChain(chainId);
|
|
65
65
|
const client = chunkATW6UNT5_cjs.ClientState.signingStargateClientByChainId[chainId] ?? await stargate.StargateClient.connect(endpoint, {
|
|
66
|
-
accountParser:
|
|
66
|
+
accountParser: chunkU7NRHQOL_cjs.accountParser
|
|
67
67
|
});
|
|
68
68
|
const account = await client.getAccount(address);
|
|
69
69
|
if (!account) {
|
|
@@ -100,13 +100,14 @@ var getAccountNumberAndSequenceFromDymension = async (address, chainId) => {
|
|
|
100
100
|
accountNumber = response.account.accountNumber;
|
|
101
101
|
}
|
|
102
102
|
return {
|
|
103
|
-
|
|
103
|
+
// REST returns uint64 as a string; BigInt keeps precision above 2^53
|
|
104
|
+
accountNumber: BigInt(accountNumber),
|
|
104
105
|
sequence
|
|
105
106
|
};
|
|
106
107
|
};
|
|
107
108
|
var pubkeyType = {
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
...amino.pubkeyType,
|
|
110
|
+
ethsecp256k1: "ethermint/PubKeyEthSecp256k1"
|
|
110
111
|
};
|
|
111
112
|
|
|
112
113
|
// src/amino/encoding.ts
|
|
@@ -131,7 +132,7 @@ function makePubkeyAnyFromAccount(account, chainId) {
|
|
|
131
132
|
}
|
|
132
133
|
function encodePubkeyToAny(pubkey, chainId, isEthermint) {
|
|
133
134
|
if (isEthermint) {
|
|
134
|
-
const pubkeyProto =
|
|
135
|
+
const pubkeyProto = keys.PubKey.fromPartial({
|
|
135
136
|
key: encoding.fromBase64(pubkey.value)
|
|
136
137
|
});
|
|
137
138
|
let typeUrl = "";
|
|
@@ -140,19 +141,19 @@ function encodePubkeyToAny(pubkey, chainId, isEthermint) {
|
|
|
140
141
|
} else {
|
|
141
142
|
typeUrl = "/ethermint.crypto.v1.ethsecp256k1.PubKey";
|
|
142
143
|
}
|
|
143
|
-
return
|
|
144
|
+
return any.Any.fromPartial({
|
|
144
145
|
typeUrl,
|
|
145
|
-
value: Uint8Array.from(
|
|
146
|
+
value: Uint8Array.from(keys.PubKey.encode(pubkeyProto).finish())
|
|
146
147
|
});
|
|
147
148
|
} else {
|
|
148
149
|
const isInitia = chunk7VBQWNW6_cjs.getIsInitia(chainId);
|
|
149
|
-
const pubkeyProto =
|
|
150
|
+
const pubkeyProto = keys.PubKey.fromPartial({
|
|
150
151
|
key: encoding.fromBase64(pubkey.value)
|
|
151
152
|
});
|
|
152
153
|
if (isInitia) {
|
|
153
|
-
return
|
|
154
|
+
return any.Any.fromPartial({
|
|
154
155
|
typeUrl: "/initia.crypto.v1beta1.ethsecp256k1.PubKey",
|
|
155
|
-
value: Uint8Array.from(
|
|
156
|
+
value: Uint8Array.from(keys.PubKey.encode(pubkeyProto).finish())
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
159
|
return protoSigning.encodePubkey(pubkey);
|
|
@@ -172,7 +173,7 @@ var signCosmosMessageDirect = async (options) => {
|
|
|
172
173
|
if (!accountFromSigner) {
|
|
173
174
|
throw new Error("signCosmosMessageDirect error: failed to retrieve account from signer");
|
|
174
175
|
}
|
|
175
|
-
const messages = cosmosMsgs.map((cosmosMsg) =>
|
|
176
|
+
const messages = cosmosMsgs.map((cosmosMsg) => chunkCROK3JCZ_cjs.getEncodeObjectFromCosmosMessage(cosmosMsg));
|
|
176
177
|
const txBodyEncodeObject = {
|
|
177
178
|
typeUrl: "/cosmos.tx.v1beta1.TxBody",
|
|
178
179
|
value: {
|
|
@@ -191,7 +192,7 @@ var signCosmosMessageDirect = async (options) => {
|
|
|
191
192
|
);
|
|
192
193
|
const signDoc = protoSigning.makeSignDoc(txBodyBytes, authInfoBytes, chainId, accountNumber);
|
|
193
194
|
const { signature, signed } = await signer.signDirect(signerAddress, signDoc);
|
|
194
|
-
return
|
|
195
|
+
return tx.TxRaw.fromPartial({
|
|
195
196
|
bodyBytes: signed.bodyBytes,
|
|
196
197
|
authInfoBytes: signed.authInfoBytes,
|
|
197
198
|
signatures: [encoding.fromBase64(signature.signature)]
|
|
@@ -216,9 +217,9 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
216
217
|
);
|
|
217
218
|
}
|
|
218
219
|
const messages = cosmosMsgs.map(
|
|
219
|
-
(cosmosMsg) =>
|
|
220
|
+
(cosmosMsg) => chunkCROK3JCZ_cjs.getEncodeObjectFromCosmosMessage(cosmosMsg)
|
|
220
221
|
);
|
|
221
|
-
const signMode =
|
|
222
|
+
const signMode = signing.SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
|
|
222
223
|
const msgs = messages.map((msg) => chunkATW6UNT5_cjs.ClientState.aminoTypes.toAmino(msg));
|
|
223
224
|
const signDoc = amino.makeSignDoc(
|
|
224
225
|
msgs,
|
|
@@ -252,7 +253,7 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
252
253
|
signed.fee.payer,
|
|
253
254
|
signMode
|
|
254
255
|
);
|
|
255
|
-
return
|
|
256
|
+
return tx.TxRaw.fromPartial({
|
|
256
257
|
bodyBytes: signedTxBodyBytes,
|
|
257
258
|
authInfoBytes: signedAuthInfoBytes,
|
|
258
259
|
signatures: [encoding.fromBase64(signature.signature)]
|
|
@@ -261,18 +262,18 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
261
262
|
|
|
262
263
|
// src/private-functions/cosmos/signCosmosTransaction.ts
|
|
263
264
|
var signCosmosTransaction = async ({
|
|
264
|
-
tx,
|
|
265
|
+
tx: tx$1,
|
|
265
266
|
options,
|
|
266
267
|
index,
|
|
267
268
|
routeId
|
|
268
269
|
}) => {
|
|
269
270
|
const { userAddresses } = options;
|
|
270
|
-
if (tx === void 0) {
|
|
271
|
+
if (tx$1 === void 0) {
|
|
271
272
|
throw new Error("executeCosmosTransaction error: tx is undefined");
|
|
272
273
|
}
|
|
273
|
-
const chainId = tx.cosmosTx?.chainId;
|
|
274
|
-
const messages = tx.cosmosTx?.msgs;
|
|
275
|
-
const currentUserAddress = userAddresses.find((x) => x.chainId === tx.cosmosTx?.chainId)?.address;
|
|
274
|
+
const chainId = tx$1.cosmosTx?.chainId;
|
|
275
|
+
const messages = tx$1.cosmosTx?.msgs;
|
|
276
|
+
const currentUserAddress = userAddresses.find((x) => x.chainId === tx$1.cosmosTx?.chainId)?.address;
|
|
276
277
|
const gasArray = chunkATW6UNT5_cjs.ClientState.validateGasResults;
|
|
277
278
|
const gas = gasArray?.find((gas2) => gas2?.error !== null && gas2?.error !== void 0);
|
|
278
279
|
if (typeof gas?.error === "string") {
|
|
@@ -288,13 +289,13 @@ var signCosmosTransaction = async ({
|
|
|
288
289
|
if (messages === void 0) {
|
|
289
290
|
throw new Error("no messages found for tx");
|
|
290
291
|
}
|
|
291
|
-
const { signer } = await
|
|
292
|
+
const { signer } = await chunkU7NRHQOL_cjs.getSigningStargateClient({
|
|
292
293
|
chainId,
|
|
293
294
|
getOfflineSigner: options?.getCosmosSigner
|
|
294
295
|
});
|
|
295
296
|
if (!currentUserAddress) {
|
|
296
297
|
throw new Error(
|
|
297
|
-
`executeCosmosTransaction error: invalid address for chain '${tx.cosmosTx?.chainId}'`
|
|
298
|
+
`executeCosmosTransaction error: invalid address for chain '${tx$1.cosmosTx?.chainId}'`
|
|
298
299
|
);
|
|
299
300
|
}
|
|
300
301
|
const accounts = await signer.getAccounts();
|
|
@@ -348,7 +349,7 @@ var signCosmosTransaction = async ({
|
|
|
348
349
|
routeId,
|
|
349
350
|
options
|
|
350
351
|
});
|
|
351
|
-
const txBytes =
|
|
352
|
+
const txBytes = tx.TxRaw.encode(rawTx).finish();
|
|
352
353
|
const rawTxBase64 = Buffer.from(txBytes).toString("base64");
|
|
353
354
|
return rawTxBase64;
|
|
354
355
|
};
|
|
@@ -777,7 +778,7 @@ var executeSvmTransaction = async (tx, options, index, routeId) => {
|
|
|
777
778
|
if (!signedTx) {
|
|
778
779
|
throw new Error("executeSvmTransaction error: signedTx is undefined");
|
|
779
780
|
}
|
|
780
|
-
const endpoint = await
|
|
781
|
+
const endpoint = await chunkU7NRHQOL_cjs.getRpcEndpointForChain(svmTx.chainId);
|
|
781
782
|
const connection = new web3_js.Connection(endpoint);
|
|
782
783
|
let signature;
|
|
783
784
|
const submitTxResponse = await chunkJRXPJ45U_cjs.submitTransaction({
|
|
@@ -1030,7 +1031,7 @@ var validateSvmGasBalance = async ({
|
|
|
1030
1031
|
fee: null
|
|
1031
1032
|
};
|
|
1032
1033
|
}
|
|
1033
|
-
const endpoint = await
|
|
1034
|
+
const endpoint = await chunkU7NRHQOL_cjs.getRpcEndpointForChain(tx.chainId ?? "");
|
|
1034
1035
|
const connection = new web3_js.Connection(endpoint);
|
|
1035
1036
|
if (!connection) throw new Error(`Failed to connect to ${tx.chainId}`);
|
|
1036
1037
|
if (!tx.tx) {
|
|
@@ -1117,7 +1118,7 @@ var validateGasBalances = async ({
|
|
|
1117
1118
|
throw new Error(`invalid msgs ${tx?.cosmosTx?.msgs}`);
|
|
1118
1119
|
}
|
|
1119
1120
|
try {
|
|
1120
|
-
const res = await
|
|
1121
|
+
const res = await chunk3OA75MLZ_cjs.validateCosmosGasBalance({
|
|
1121
1122
|
chainId: tx.cosmosTx.chainId ?? "",
|
|
1122
1123
|
signerAddress: tx.cosmosTx.signerAddress ?? "",
|
|
1123
1124
|
messages: tx.cosmosTx.msgs,
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk25TA7Z7R_cjs = require('./chunk-25TA7Z7R.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkJD4YSHG6_cjs = require('./chunk-JD4YSHG6.cjs');
|
|
5
5
|
var chunkCK6CQWQU_cjs = require('./chunk-CK6CQWQU.cjs');
|
|
6
6
|
var chunk4BWE7SOV_cjs = require('./chunk-4BWE7SOV.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var chunkBWT2HERJ_cjs = require('./chunk-BWT2HERJ.cjs');
|
|
8
|
+
var chunkES3F32FX_cjs = require('./chunk-ES3F32FX.cjs');
|
|
9
|
+
require('./chunk-UWRTLRJQ.cjs');
|
|
10
10
|
var chunkXJASQLBH_cjs = require('./chunk-XJASQLBH.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunk3OA75MLZ_cjs = require('./chunk-3OA75MLZ.cjs');
|
|
12
|
+
var chunkCROK3JCZ_cjs = require('./chunk-CROK3JCZ.cjs');
|
|
13
13
|
require('./chunk-NM4PISTQ.cjs');
|
|
14
14
|
var chunkF3EB2AQG_cjs = require('./chunk-F3EB2AQG.cjs');
|
|
15
15
|
var chunkZOZQTMOC_cjs = require('./chunk-ZOZQTMOC.cjs');
|
|
16
16
|
var chunk4BCG2K6O_cjs = require('./chunk-4BCG2K6O.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkU7NRHQOL_cjs = require('./chunk-U7NRHQOL.cjs');
|
|
18
18
|
require('./chunk-MUJBB64F.cjs');
|
|
19
19
|
require('./chunk-7VBQWNW6.cjs');
|
|
20
20
|
var chunkOJISEAMX_cjs = require('./chunk-OJISEAMX.cjs');
|
|
@@ -125,7 +125,7 @@ Object.defineProperty(exports, "getRouteWithGasOnReceive", {
|
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "setClientOptions", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkJD4YSHG6_cjs.setClientOptions; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "setApiOptions", {
|
|
131
131
|
enumerable: true,
|
|
@@ -141,11 +141,11 @@ Object.defineProperty(exports, "waitForTransactionWithCancel", {
|
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "executeMultipleRoutes", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkBWT2HERJ_cjs.executeMultipleRoutes; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "executeRoute", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkES3F32FX_cjs.executeRoute; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "TransferType", {
|
|
151
151
|
enumerable: true,
|
|
@@ -165,11 +165,11 @@ Object.defineProperty(exports, "subscribeToRouteStatus", {
|
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "validateCosmosGasBalance", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk3OA75MLZ_cjs.validateCosmosGasBalance; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "getCosmosGasAmountForMessage", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkCROK3JCZ_cjs.getCosmosGasAmountForMessage; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "getEVMGasAmountForMessage", {
|
|
175
175
|
enumerable: true,
|
|
@@ -185,7 +185,7 @@ Object.defineProperty(exports, "getFeeInfoForChain", {
|
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "getSigningStargateClient", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunkU7NRHQOL_cjs.getSigningStargateClient; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "ibcOriginAssets", {
|
|
191
191
|
enumerable: true,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkBWT2HERJ_cjs = require('../chunk-BWT2HERJ.cjs');
|
|
4
|
+
require('../chunk-UWRTLRJQ.cjs');
|
|
5
5
|
require('../chunk-XJASQLBH.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-3OA75MLZ.cjs');
|
|
7
|
+
require('../chunk-CROK3JCZ.cjs');
|
|
8
8
|
require('../chunk-NM4PISTQ.cjs');
|
|
9
9
|
require('../chunk-F3EB2AQG.cjs');
|
|
10
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-U7NRHQOL.cjs');
|
|
11
11
|
require('../chunk-MUJBB64F.cjs');
|
|
12
12
|
require('../chunk-7VBQWNW6.cjs');
|
|
13
13
|
require('../chunk-NCFH5MGF.cjs');
|
|
@@ -23,5 +23,5 @@ require('../chunk-LJV45UGL.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "executeMultipleRoutes", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkBWT2HERJ_cjs.executeMultipleRoutes; }
|
|
27
27
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkES3F32FX_cjs = require('../chunk-ES3F32FX.cjs');
|
|
4
|
+
require('../chunk-UWRTLRJQ.cjs');
|
|
5
5
|
require('../chunk-XJASQLBH.cjs');
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-3OA75MLZ.cjs');
|
|
7
|
+
require('../chunk-CROK3JCZ.cjs');
|
|
8
8
|
require('../chunk-NM4PISTQ.cjs');
|
|
9
9
|
require('../chunk-F3EB2AQG.cjs');
|
|
10
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-U7NRHQOL.cjs');
|
|
11
11
|
require('../chunk-MUJBB64F.cjs');
|
|
12
12
|
require('../chunk-7VBQWNW6.cjs');
|
|
13
13
|
require('../chunk-NCFH5MGF.cjs');
|
|
@@ -23,5 +23,5 @@ require('../chunk-LJV45UGL.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "executeRoute", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkES3F32FX_cjs.executeRoute; }
|
|
27
27
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCROK3JCZ_cjs = require('../chunk-CROK3JCZ.cjs');
|
|
4
4
|
require('../chunk-NM4PISTQ.cjs');
|
|
5
5
|
require('../chunk-MUJBB64F.cjs');
|
|
6
6
|
|
|
@@ -8,9 +8,9 @@ require('../chunk-MUJBB64F.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "DEFAULT_GAS_MULTIPLIER", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkCROK3JCZ_cjs.DEFAULT_GAS_MULTIPLIER; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "getCosmosGasAmountForMessage", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkCROK3JCZ_cjs.getCosmosGasAmountForMessage; }
|
|
16
16
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk25TA7Z7R_cjs = require('../chunk-25TA7Z7R.cjs');
|
|
4
|
-
require('../chunk-
|
|
4
|
+
require('../chunk-JD4YSHG6.cjs');
|
|
5
5
|
require('../chunk-CK6CQWQU.cjs');
|
|
6
6
|
require('../chunk-4BWE7SOV.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-BWT2HERJ.cjs');
|
|
8
|
+
require('../chunk-ES3F32FX.cjs');
|
|
9
|
+
require('../chunk-UWRTLRJQ.cjs');
|
|
10
10
|
require('../chunk-XJASQLBH.cjs');
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
11
|
+
require('../chunk-3OA75MLZ.cjs');
|
|
12
|
+
require('../chunk-CROK3JCZ.cjs');
|
|
13
13
|
require('../chunk-NM4PISTQ.cjs');
|
|
14
14
|
require('../chunk-F3EB2AQG.cjs');
|
|
15
15
|
require('../chunk-ZOZQTMOC.cjs');
|
|
16
16
|
require('../chunk-4BCG2K6O.cjs');
|
|
17
|
-
require('../chunk-
|
|
17
|
+
require('../chunk-U7NRHQOL.cjs');
|
|
18
18
|
require('../chunk-MUJBB64F.cjs');
|
|
19
19
|
require('../chunk-7VBQWNW6.cjs');
|
|
20
20
|
require('../chunk-OJISEAMX.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkU7NRHQOL_cjs = require('../chunk-U7NRHQOL.cjs');
|
|
4
4
|
require('../chunk-MUJBB64F.cjs');
|
|
5
5
|
require('../chunk-7VBQWNW6.cjs');
|
|
6
6
|
require('../chunk-ATW6UNT5.cjs');
|
|
@@ -11,5 +11,5 @@ require('../chunk-LJV45UGL.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "getSigningStargateClient", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkU7NRHQOL_cjs.getSigningStargateClient; }
|
|
15
15
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJD4YSHG6_cjs = require('../chunk-JD4YSHG6.cjs');
|
|
4
4
|
require('../chunk-CK6CQWQU.cjs');
|
|
5
5
|
require('../chunk-NM4PISTQ.cjs');
|
|
6
6
|
require('../chunk-MUJBB64F.cjs');
|
|
@@ -12,5 +12,5 @@ require('../chunk-LJV45UGL.cjs');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "setClientOptions", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkJD4YSHG6_cjs.setClientOptions; }
|
|
16
16
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunk3OA75MLZ_cjs = require('../chunk-3OA75MLZ.cjs');
|
|
4
|
+
require('../chunk-CROK3JCZ.cjs');
|
|
5
5
|
require('../chunk-NM4PISTQ.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-U7NRHQOL.cjs');
|
|
7
7
|
require('../chunk-MUJBB64F.cjs');
|
|
8
8
|
require('../chunk-7VBQWNW6.cjs');
|
|
9
9
|
require('../chunk-ATW6UNT5.cjs');
|
|
@@ -14,5 +14,5 @@ require('../chunk-LJV45UGL.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "validateCosmosGasBalance", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk3OA75MLZ_cjs.validateCosmosGasBalance; }
|
|
18
18
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { updateRouteDetails } from './chunk-TMHJ6YFK.js';
|
|
2
|
-
import { validateCosmosGasBalance } from './chunk-
|
|
3
|
-
import { getEncodeObjectFromCosmosMessage } from './chunk-
|
|
2
|
+
import { validateCosmosGasBalance } from './chunk-4Q6MBTR2.js';
|
|
3
|
+
import { getEncodeObjectFromCosmosMessage } from './chunk-NLV5XQIK.js';
|
|
4
4
|
import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
5
|
-
import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-
|
|
5
|
+
import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-6L23HV6O.js';
|
|
6
6
|
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-YPMWO6P2.js';
|
|
7
7
|
import { submitTransaction } from './chunk-ETBJVFQP.js';
|
|
8
8
|
import { venues } from './chunk-A5NZMSTI.js';
|
|
9
9
|
import { ClientState, balances } from './chunk-J24LYWJE.js';
|
|
10
10
|
import { wait, toCamel } from './chunk-F66EKL3W.js';
|
|
11
11
|
import { StargateClient } from '@cosmjs/stargate';
|
|
12
|
-
import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx
|
|
12
|
+
import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
|
|
13
13
|
import { isOfflineDirectSigner, makeAuthInfoBytes, makeSignDoc, encodePubkey } from '@cosmjs/proto-signing';
|
|
14
14
|
import { pubkeyType as pubkeyType$1, makeSignDoc as makeSignDoc$1, encodeSecp256k1Pubkey } from '@cosmjs/amino';
|
|
15
15
|
import { fromBase64, toBase64 } from '@cosmjs/encoding';
|
|
16
|
-
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys
|
|
17
|
-
import { Any } from 'cosmjs-types/google/protobuf/any
|
|
16
|
+
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys';
|
|
17
|
+
import { Any } from 'cosmjs-types/google/protobuf/any';
|
|
18
18
|
import { Int53 } from '@cosmjs/math';
|
|
19
|
-
import { SignMode } from 'cosmjs-types/cosmos/tx/signing/v1beta1/signing
|
|
19
|
+
import { SignMode } from 'cosmjs-types/cosmos/tx/signing/v1beta1/signing';
|
|
20
20
|
import { isAddress, publicActions, maxUint256, formatUnits } from 'viem';
|
|
21
21
|
import { PublicKey, Connection, VersionedTransaction, Transaction, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
22
22
|
import { BigNumber } from 'bignumber.js';
|
|
@@ -98,13 +98,14 @@ var getAccountNumberAndSequenceFromDymension = async (address, chainId) => {
|
|
|
98
98
|
accountNumber = response.account.accountNumber;
|
|
99
99
|
}
|
|
100
100
|
return {
|
|
101
|
-
|
|
101
|
+
// REST returns uint64 as a string; BigInt keeps precision above 2^53
|
|
102
|
+
accountNumber: BigInt(accountNumber),
|
|
102
103
|
sequence
|
|
103
104
|
};
|
|
104
105
|
};
|
|
105
106
|
var pubkeyType = {
|
|
106
|
-
|
|
107
|
-
|
|
107
|
+
...pubkeyType$1,
|
|
108
|
+
ethsecp256k1: "ethermint/PubKeyEthSecp256k1"
|
|
108
109
|
};
|
|
109
110
|
|
|
110
111
|
// src/amino/encoding.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCosmosGasAmountForMessage } from './chunk-
|
|
2
|
-
import { getSigningStargateClient } from './chunk-
|
|
1
|
+
import { getCosmosGasAmountForMessage } from './chunk-NLV5XQIK.js';
|
|
2
|
+
import { getSigningStargateClient } from './chunk-6L23HV6O.js';
|
|
3
3
|
import { ClientState, balances } from './chunk-J24LYWJE.js';
|
|
4
4
|
import { BigNumber } from 'bignumber.js';
|
|
5
5
|
import { GasPrice, calculateFee } from '@cosmjs/stargate';
|
|
@@ -3,11 +3,11 @@ import { chains, findFirstWorkingEndpoint } from './chunk-YPMWO6P2.js';
|
|
|
3
3
|
import { ClientState } from './chunk-J24LYWJE.js';
|
|
4
4
|
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
5
5
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
6
|
-
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary
|
|
7
|
-
import { BaseAccount } from 'cosmjs-types/cosmos/auth/v1beta1/auth
|
|
8
|
-
import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin
|
|
6
|
+
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary';
|
|
7
|
+
import { BaseAccount } from 'cosmjs-types/cosmos/auth/v1beta1/auth';
|
|
8
|
+
import { Coin } from 'cosmjs-types/cosmos/base/v1beta1/coin';
|
|
9
9
|
import { decodePubkey } from '@cosmjs/proto-signing';
|
|
10
|
-
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys
|
|
10
|
+
import { PubKey } from 'cosmjs-types/cosmos/crypto/secp256k1/keys';
|
|
11
11
|
import { encodeSecp256k1Pubkey } from '@cosmjs/amino';
|
|
12
12
|
import _m0 from 'protobufjs/minimal.js';
|
|
13
13
|
|
|
@@ -266,7 +266,7 @@ var accountParser = (acc) => {
|
|
|
266
266
|
return {
|
|
267
267
|
address: baseAccount.address,
|
|
268
268
|
pubkey: baseAccount.pubKey ? decodePubkey(baseAccount.pubKey) : null,
|
|
269
|
-
accountNumber:
|
|
269
|
+
accountNumber: baseAccount.accountNumber,
|
|
270
270
|
sequence: Number(baseAccount.sequence)
|
|
271
271
|
};
|
|
272
272
|
}
|
|
@@ -291,7 +291,7 @@ var accountParser = (acc) => {
|
|
|
291
291
|
return {
|
|
292
292
|
address,
|
|
293
293
|
pubkey: pk,
|
|
294
|
-
accountNumber
|
|
294
|
+
accountNumber,
|
|
295
295
|
sequence: Number(sequence)
|
|
296
296
|
};
|
|
297
297
|
}
|
|
@@ -313,7 +313,7 @@ var accountEthParser = (ethAccount, pubKeyTypeUrl = "/injective.crypto.v1beta1.e
|
|
|
313
313
|
type: pubKeyTypeUrl,
|
|
314
314
|
value: Buffer.from(pubKey.value).toString("base64")
|
|
315
315
|
} : null,
|
|
316
|
-
accountNumber:
|
|
316
|
+
accountNumber: BigInt(baseAccount.accountNumber.toString()),
|
|
317
317
|
sequence: parseInt(baseAccount.sequence.toString(), 10)
|
|
318
318
|
};
|
|
319
319
|
};
|
|
@@ -4,11 +4,11 @@ import { isSet, Long, toTimestamp, fromTimestamp, fromJsonTimestamp } from './ch
|
|
|
4
4
|
import { ClientState } from './chunk-J24LYWJE.js';
|
|
5
5
|
import { ApiState } from './chunk-F66EKL3W.js';
|
|
6
6
|
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
7
|
-
import { createWasmAminoConverters } from '@cosmjs/cosmwasm
|
|
7
|
+
import { createWasmAminoConverters } from '@cosmjs/cosmwasm';
|
|
8
8
|
import { Registry } from '@cosmjs/proto-signing';
|
|
9
9
|
import _m08 from 'protobufjs/minimal.js';
|
|
10
10
|
import { Decimal } from '@cosmjs/math';
|
|
11
|
-
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx
|
|
11
|
+
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx';
|
|
12
12
|
|
|
13
13
|
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
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createValidAddressList, executeTransactions } from './chunk-
|
|
1
|
+
import { createValidAddressList, executeTransactions } from './chunk-2S6KA5V3.js';
|
|
2
2
|
import { updateRouteDetails, routeRequiresSequentialSigning, executeAndSubscribeToRouteStatus } from './chunk-TMHJ6YFK.js';
|
|
3
3
|
import { messages } from './chunk-P36PE4CR.js';
|
|
4
4
|
import { ApiState } from './chunk-F66EKL3W.js';
|
|
@@ -2,9 +2,9 @@ import { MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgExecute, MsgInitiate
|
|
|
2
2
|
import { toTimestamp, fromTimestamp, fromJsonTimestamp, isSet } from './chunk-RTDD7HZ3.js';
|
|
3
3
|
import '@cosmjs/stargate';
|
|
4
4
|
import { toUtf8 } from '@cosmjs/encoding';
|
|
5
|
-
import { MsgSend } from 'cosmjs-types/cosmos/bank/v1beta1/tx
|
|
6
|
-
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx
|
|
7
|
-
import { MsgTransfer } from 'cosmjs-types/ibc/applications/transfer/v1/tx
|
|
5
|
+
import { MsgSend } from 'cosmjs-types/cosmos/bank/v1beta1/tx';
|
|
6
|
+
import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx';
|
|
7
|
+
import { MsgTransfer } from 'cosmjs-types/ibc/applications/transfer/v1/tx';
|
|
8
8
|
import _m0 from 'protobufjs/minimal.js';
|
|
9
9
|
|
|
10
10
|
function createBaseClawbackVestingAccount() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createValidAddressList, executeTransactions } from './chunk-
|
|
1
|
+
import { createValidAddressList, executeTransactions } from './chunk-2S6KA5V3.js';
|
|
2
2
|
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-TMHJ6YFK.js';
|
|
3
3
|
import { messages } from './chunk-P36PE4CR.js';
|
|
4
4
|
import { trackTransaction } from './chunk-SXBG57J3.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeBehaviorJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson, getRouteWithGasOnReceive } from './chunk-RH7PDDI5.js';
|
|
2
|
-
export { setClientOptions } from './chunk-
|
|
2
|
+
export { setClientOptions } from './chunk-HRWP6PXN.js';
|
|
3
3
|
export { setApiOptions } from './chunk-QYXGDTUU.js';
|
|
4
4
|
export { waitForTransaction, waitForTransactionWithCancel } from './chunk-E4NRDAVO.js';
|
|
5
|
-
export { executeMultipleRoutes } from './chunk-
|
|
6
|
-
export { executeRoute } from './chunk-
|
|
7
|
-
import './chunk-
|
|
5
|
+
export { executeMultipleRoutes } from './chunk-RYNJ6MGN.js';
|
|
6
|
+
export { executeRoute } from './chunk-LTB5KF7V.js';
|
|
7
|
+
import './chunk-2S6KA5V3.js';
|
|
8
8
|
export { TransferType, getSimpleOverallStatus, getTransferEventsFromTxStatusResponse, subscribeToRouteStatus } from './chunk-TMHJ6YFK.js';
|
|
9
|
-
export { validateCosmosGasBalance } from './chunk-
|
|
10
|
-
export { getCosmosGasAmountForMessage } from './chunk-
|
|
9
|
+
export { validateCosmosGasBalance } from './chunk-4Q6MBTR2.js';
|
|
10
|
+
export { getCosmosGasAmountForMessage } from './chunk-NLV5XQIK.js';
|
|
11
11
|
import './chunk-F2LQB2DP.js';
|
|
12
12
|
export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
13
13
|
export { getRecommendedGasPrice } from './chunk-FILH5L5T.js';
|
|
14
14
|
export { getFeeInfoForChain } from './chunk-J2UCWYYM.js';
|
|
15
|
-
export { getSigningStargateClient } from './chunk-
|
|
15
|
+
export { getSigningStargateClient } from './chunk-6L23HV6O.js';
|
|
16
16
|
import './chunk-RTDD7HZ3.js';
|
|
17
17
|
import './chunk-YPMWO6P2.js';
|
|
18
18
|
export { ibcOriginAssets } from './chunk-UN46DUOV.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { executeMultipleRoutes } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { executeMultipleRoutes } from '../chunk-RYNJ6MGN.js';
|
|
2
|
+
import '../chunk-2S6KA5V3.js';
|
|
3
3
|
import '../chunk-TMHJ6YFK.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-4Q6MBTR2.js';
|
|
5
|
+
import '../chunk-NLV5XQIK.js';
|
|
6
6
|
import '../chunk-F2LQB2DP.js';
|
|
7
7
|
import '../chunk-GV2QOWB4.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-6L23HV6O.js';
|
|
9
9
|
import '../chunk-RTDD7HZ3.js';
|
|
10
10
|
import '../chunk-YPMWO6P2.js';
|
|
11
11
|
import '../chunk-P36PE4CR.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-LTB5KF7V.js';
|
|
2
|
+
import '../chunk-2S6KA5V3.js';
|
|
3
3
|
import '../chunk-TMHJ6YFK.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-4Q6MBTR2.js';
|
|
5
|
+
import '../chunk-NLV5XQIK.js';
|
|
6
6
|
import '../chunk-F2LQB2DP.js';
|
|
7
7
|
import '../chunk-GV2QOWB4.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-6L23HV6O.js';
|
|
9
9
|
import '../chunk-RTDD7HZ3.js';
|
|
10
10
|
import '../chunk-YPMWO6P2.js';
|
|
11
11
|
import '../chunk-P36PE4CR.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { getRouteWithGasOnReceive } from '../chunk-RH7PDDI5.js';
|
|
2
|
-
import '../chunk-
|
|
2
|
+
import '../chunk-HRWP6PXN.js';
|
|
3
3
|
import '../chunk-QYXGDTUU.js';
|
|
4
4
|
import '../chunk-E4NRDAVO.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-RYNJ6MGN.js';
|
|
6
|
+
import '../chunk-LTB5KF7V.js';
|
|
7
|
+
import '../chunk-2S6KA5V3.js';
|
|
8
8
|
import '../chunk-TMHJ6YFK.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-4Q6MBTR2.js';
|
|
10
|
+
import '../chunk-NLV5XQIK.js';
|
|
11
11
|
import '../chunk-F2LQB2DP.js';
|
|
12
12
|
import '../chunk-GV2QOWB4.js';
|
|
13
13
|
import '../chunk-FILH5L5T.js';
|
|
14
14
|
import '../chunk-J2UCWYYM.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-6L23HV6O.js';
|
|
16
16
|
import '../chunk-RTDD7HZ3.js';
|
|
17
17
|
import '../chunk-YPMWO6P2.js';
|
|
18
18
|
import '../chunk-UN46DUOV.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { validateCosmosGasBalance } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { validateCosmosGasBalance } from '../chunk-4Q6MBTR2.js';
|
|
2
|
+
import '../chunk-NLV5XQIK.js';
|
|
3
3
|
import '../chunk-F2LQB2DP.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-6L23HV6O.js';
|
|
5
5
|
import '../chunk-RTDD7HZ3.js';
|
|
6
6
|
import '../chunk-YPMWO6P2.js';
|
|
7
7
|
import '../chunk-J24LYWJE.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/client",
|
|
3
3
|
"description": "JavaScript SDK for Skip Go API",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"repository": "https://github.com/skip-mev/skip-go",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"viem": ">=2.39.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@cosmjs/amino": "0.
|
|
41
|
-
"@cosmjs/cosmwasm
|
|
42
|
-
"@cosmjs/encoding": "0.
|
|
43
|
-
"@cosmjs/math": "0.
|
|
44
|
-
"@cosmjs/proto-signing": "0.
|
|
45
|
-
"@cosmjs/stargate": "0.
|
|
40
|
+
"@cosmjs/amino": "0.39.0",
|
|
41
|
+
"@cosmjs/cosmwasm": "0.39.0",
|
|
42
|
+
"@cosmjs/encoding": "0.39.0",
|
|
43
|
+
"@cosmjs/math": "0.39.0",
|
|
44
|
+
"@cosmjs/proto-signing": "0.39.0",
|
|
45
|
+
"@cosmjs/stargate": "0.39.0",
|
|
46
46
|
"@keplr-wallet/unit": "^0.12.143",
|
|
47
47
|
"@solana/wallet-adapter-base": "^0.9.23",
|
|
48
48
|
"bech32": "^2.0.0",
|
|
49
49
|
"bignumber.js": "^9.1.2",
|
|
50
|
-
"cosmjs-types": "^0.
|
|
50
|
+
"cosmjs-types": "^0.11.0",
|
|
51
51
|
"keccak": "3.0.4",
|
|
52
52
|
"uuid": "^11.1.0"
|
|
53
53
|
},
|