@skip-go/client 1.5.3-alpha.0 → 1.5.3
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/api/getAssets.cjs +1 -1
- package/dist/cjs/api/getAssetsBetweenChains.cjs +1 -1
- package/dist/cjs/api/getBridges.cjs +1 -1
- package/dist/cjs/api/getChains.cjs +1 -1
- package/dist/cjs/api/getVenues.cjs +1 -1
- package/dist/cjs/api/postAssetsFromSource.cjs +1 -1
- package/dist/cjs/api/postBalances.cjs +1 -1
- package/dist/cjs/api/postIbcOriginAssets.cjs +1 -1
- package/dist/cjs/api/postMessages.cjs +1 -1
- package/dist/cjs/api/postMessagesDirect.cjs +1 -1
- package/dist/cjs/api/postRecommendAssets.cjs +1 -1
- package/dist/cjs/api/postRoute.cjs +1 -1
- package/dist/cjs/api/postSubmitTransaction.cjs +1 -1
- package/dist/cjs/api/postTrackTransaction.cjs +1 -1
- package/dist/cjs/api/postTransactionStatus.cjs +1 -1
- package/dist/cjs/{chunk-I6VYDEUV.cjs → chunk-3UPZIINE.cjs} +137 -137
- package/dist/cjs/{chunk-H2T4LMS2.cjs → chunk-4RLEZ5DV.cjs} +3 -3
- package/dist/cjs/{chunk-KM2D7PJL.cjs → chunk-4TBONPD6.cjs} +33 -33
- package/dist/cjs/{chunk-WKYP2NMS.cjs → chunk-6W2OIU3O.cjs} +15 -15
- package/dist/cjs/{chunk-ARCCHERF.cjs → chunk-BFA7XKVT.cjs} +19 -19
- package/dist/cjs/{chunk-BQDOKZFX.cjs → chunk-BT6HQNBF.cjs} +3 -3
- package/dist/cjs/{chunk-CZKIE576.cjs → chunk-DAPPFYGA.cjs} +8 -8
- package/dist/cjs/{chunk-MOWOIPUG.cjs → chunk-GOQK63JP.cjs} +4 -4
- package/dist/cjs/{chunk-3M7YYWGL.cjs → chunk-MUJBB64F.cjs} +3 -7
- package/dist/cjs/{chunk-UY5LWG5D.cjs → chunk-ND7SYSAP.cjs} +4 -4
- package/dist/cjs/{chunk-DWOE6N5S.cjs → chunk-NM4PISTQ.cjs} +189 -188
- package/dist/cjs/{chunk-J7HZ6VJE.cjs → chunk-QWQVTCKP.cjs} +15 -15
- package/dist/cjs/{chunk-XCFPRLX3.cjs → chunk-U2NZCNKX.cjs} +153 -153
- package/dist/cjs/chunk-UMBMSRZZ.cjs +185 -0
- package/dist/cjs/{chunk-DLT6Q6RB.cjs → chunk-WOSAJSJB.cjs} +163 -149
- package/dist/cjs/index.cjs +84 -80
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +12 -22
- package/dist/cjs/public-functions/executeRoute.cjs +12 -22
- package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +5 -5
- package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +1 -1
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +5 -4
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +7 -6
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +18 -14
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +5 -5
- package/dist/cjs/public-functions/setApiOptions.cjs +1 -1
- package/dist/cjs/public-functions/setClientOptions.cjs +5 -5
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +1 -1
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +9 -9
- package/dist/cjs/public-functions/waitForTransaction.cjs +1 -1
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssets.js +1 -1
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.js +1 -1
- package/dist/esm/api/getBridges.d.ts +1 -1
- package/dist/esm/api/getBridges.js +1 -1
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/getChains.js +1 -1
- package/dist/esm/api/getVenues.js +1 -1
- package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.js +1 -1
- package/dist/esm/api/postBalances.d.ts +2 -2
- package/dist/esm/api/postBalances.js +1 -1
- package/dist/esm/api/postIbcOriginAssets.js +1 -1
- package/dist/esm/api/postMessages.d.ts +2 -2
- package/dist/esm/api/postMessages.js +1 -1
- package/dist/esm/api/postMessagesDirect.d.ts +1 -1
- package/dist/esm/api/postMessagesDirect.js +1 -1
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRecommendAssets.js +1 -1
- package/dist/esm/api/postRoute.d.ts +2 -2
- package/dist/esm/api/postRoute.js +1 -1
- package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
- package/dist/esm/api/postSubmitTransaction.js +1 -1
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.js +1 -1
- package/dist/esm/api/postTransactionStatus.d.ts +2 -2
- package/dist/esm/api/postTransactionStatus.js +1 -1
- package/dist/esm/{callbacks-C-KUJnDv.d.ts → callbacks-CJ_p70xa.d.ts} +3 -3
- package/dist/esm/{chunk-FDRLM2JD.js → chunk-426BGQ4K.js} +131 -131
- package/dist/esm/{chunk-DL374PFE.js → chunk-BBEFB277.js} +1 -1
- package/dist/esm/{chunk-UIDIKXMB.js → chunk-F2LQB2DP.js} +6 -5
- package/dist/esm/{chunk-KNXMSLOB.js → chunk-GLH7IRLX.js} +2 -2
- package/dist/esm/{chunk-SOVU5NCL.js → chunk-GLM7QWYT.js} +2 -2
- package/dist/esm/{chunk-47HN6VKU.js → chunk-H2TTIB5K.js} +3 -3
- package/dist/esm/{chunk-QL423UEF.js → chunk-HP5EMWC6.js} +163 -149
- package/dist/esm/{chunk-JNVGNIOE.js → chunk-HZVXNDMH.js} +2 -2
- package/dist/esm/{chunk-JYYCFKB4.js → chunk-KS764SOZ.js} +15 -15
- package/dist/esm/{chunk-IGK7LJCM.js → chunk-L233BZ4I.js} +5 -5
- package/dist/esm/{chunk-6M7N6EAO.js → chunk-LBS7KX5I.js} +12 -12
- package/dist/esm/chunk-O4J7DHZA.js +180 -0
- package/dist/esm/{chunk-H3MY23AH.js → chunk-QYIZGNWZ.js} +1 -1
- package/dist/esm/{chunk-QO2CYYF5.js → chunk-RTDD7HZ3.js} +4 -7
- package/dist/esm/{chunk-RHLE3EW7.js → chunk-SA4GETWP.js} +1 -1
- package/dist/esm/{client-types-CGMuZ3zo.d.ts → client-types-uXKJQRqe.d.ts} +1 -1
- package/dist/esm/{generateApi-D_-Gso-x.d.ts → generateApi-BMFrG4FZ.d.ts} +1 -1
- package/dist/esm/index.d.ts +260 -259
- package/dist/esm/index.js +17 -13
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
- package/dist/esm/public-functions/executeMultipleRoutes.js +11 -21
- package/dist/esm/public-functions/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +11 -21
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.js +3 -3
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +3 -3
- package/dist/esm/public-functions/getEvmGasAmountForMessage.js +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +4 -3
- package/dist/esm/public-functions/getRecommendedGasPrice.js +6 -5
- package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +17 -13
- package/dist/esm/public-functions/getSigningStargateClient.js +4 -4
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setApiOptions.js +1 -1
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
- package/dist/esm/public-functions/setClientOptions.js +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.js +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +8 -8
- package/dist/esm/public-functions/waitForTransaction.d.ts +4 -4
- package/dist/esm/public-functions/waitForTransaction.js +1 -1
- package/dist/esm/{setClientOptions-C8g92xTm.d.ts → setClientOptions-D1qgaOqC.d.ts} +3 -3
- package/dist/esm/{swaggerTypes-B_jKfpvz.d.ts → swaggerTypes-Cop47I0X.d.ts} +257 -255
- package/package.json +5 -5
- package/dist/cjs/chunk-EVEVOW2U.cjs +0 -2179
- package/dist/cjs/chunk-GGSF5JZH.cjs +0 -101
- package/dist/cjs/chunk-GWRZ6MPC.cjs +0 -2179
- package/dist/cjs/chunk-KSJ5QYMR.cjs +0 -185
- package/dist/cjs/chunk-W6ID22B6.cjs +0 -24
- package/dist/esm/chunk-RHGDUD76.js +0 -180
- package/dist/esm/chunk-RJ35JBT4.js +0 -2154
- package/dist/esm/chunk-X2IBEHMZ.js +0 -2154
- package/dist/esm/chunk-XHLXJGVB.js +0 -22
- package/dist/esm/chunk-YWG4XR5A.js +0 -98
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkNM4PISTQ_cjs = require('./chunk-NM4PISTQ.cjs');
|
|
4
|
+
var chunkMUJBB64F_cjs = require('./chunk-MUJBB64F.cjs');
|
|
5
5
|
require('@cosmjs/stargate');
|
|
6
6
|
var encoding = require('@cosmjs/encoding');
|
|
7
7
|
var tx_js$2 = require('cosmjs-types/cosmos/bank/v1beta1/tx.js');
|
|
@@ -26,19 +26,19 @@ var ClawbackVestingAccount = {
|
|
|
26
26
|
typeUrl: "/evmos.vesting.v2.ClawbackVestingAccount",
|
|
27
27
|
encode(message, writer = _m0__default.default.Writer.create()) {
|
|
28
28
|
if (message.baseVestingAccount !== void 0) {
|
|
29
|
-
|
|
29
|
+
chunkNM4PISTQ_cjs.BaseVestingAccount.encode(message.baseVestingAccount, writer.uint32(10).fork()).ldelim();
|
|
30
30
|
}
|
|
31
31
|
if (message.funderAddress !== "") {
|
|
32
32
|
writer.uint32(18).string(message.funderAddress);
|
|
33
33
|
}
|
|
34
34
|
if (message.startTime !== void 0) {
|
|
35
|
-
|
|
35
|
+
chunkNM4PISTQ_cjs.Timestamp.encode(chunkMUJBB64F_cjs.toTimestamp(message.startTime), writer.uint32(26).fork()).ldelim();
|
|
36
36
|
}
|
|
37
37
|
for (const v of message.lockupPeriods) {
|
|
38
|
-
|
|
38
|
+
chunkNM4PISTQ_cjs.Period.encode(v, writer.uint32(34).fork()).ldelim();
|
|
39
39
|
}
|
|
40
40
|
for (const v of message.vestingPeriods) {
|
|
41
|
-
|
|
41
|
+
chunkNM4PISTQ_cjs.Period.encode(v, writer.uint32(42).fork()).ldelim();
|
|
42
42
|
}
|
|
43
43
|
return writer;
|
|
44
44
|
},
|
|
@@ -50,19 +50,19 @@ var ClawbackVestingAccount = {
|
|
|
50
50
|
const tag = reader.uint32();
|
|
51
51
|
switch (tag >>> 3) {
|
|
52
52
|
case 1:
|
|
53
|
-
message.baseVestingAccount =
|
|
53
|
+
message.baseVestingAccount = chunkNM4PISTQ_cjs.BaseVestingAccount.decode(reader, reader.uint32());
|
|
54
54
|
break;
|
|
55
55
|
case 2:
|
|
56
56
|
message.funderAddress = reader.string();
|
|
57
57
|
break;
|
|
58
58
|
case 3:
|
|
59
|
-
message.startTime =
|
|
59
|
+
message.startTime = chunkMUJBB64F_cjs.fromTimestamp(chunkNM4PISTQ_cjs.Timestamp.decode(reader, reader.uint32()));
|
|
60
60
|
break;
|
|
61
61
|
case 4:
|
|
62
|
-
message.lockupPeriods.push(
|
|
62
|
+
message.lockupPeriods.push(chunkNM4PISTQ_cjs.Period.decode(reader, reader.uint32()));
|
|
63
63
|
break;
|
|
64
64
|
case 5:
|
|
65
|
-
message.vestingPeriods.push(
|
|
65
|
+
message.vestingPeriods.push(chunkNM4PISTQ_cjs.Period.decode(reader, reader.uint32()));
|
|
66
66
|
break;
|
|
67
67
|
default:
|
|
68
68
|
reader.skipType(tag & 7);
|
|
@@ -73,25 +73,25 @@ var ClawbackVestingAccount = {
|
|
|
73
73
|
},
|
|
74
74
|
fromJSON(object) {
|
|
75
75
|
return {
|
|
76
|
-
baseVestingAccount:
|
|
77
|
-
funderAddress:
|
|
78
|
-
startTime:
|
|
79
|
-
lockupPeriods: Array.isArray(object?.lockupPeriods) ? object.lockupPeriods.map((e) =>
|
|
80
|
-
vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e) =>
|
|
76
|
+
baseVestingAccount: chunkMUJBB64F_cjs.isSet(object.baseVestingAccount) ? chunkNM4PISTQ_cjs.BaseVestingAccount.fromJSON(object.baseVestingAccount) : void 0,
|
|
77
|
+
funderAddress: chunkMUJBB64F_cjs.isSet(object.funderAddress) ? String(object.funderAddress) : "",
|
|
78
|
+
startTime: chunkMUJBB64F_cjs.isSet(object.startTime) ? chunkMUJBB64F_cjs.fromJsonTimestamp(object.startTime) : void 0,
|
|
79
|
+
lockupPeriods: Array.isArray(object?.lockupPeriods) ? object.lockupPeriods.map((e) => chunkNM4PISTQ_cjs.Period.fromJSON(e)) : [],
|
|
80
|
+
vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e) => chunkNM4PISTQ_cjs.Period.fromJSON(e)) : []
|
|
81
81
|
};
|
|
82
82
|
},
|
|
83
83
|
toJSON(message) {
|
|
84
84
|
const obj = {};
|
|
85
|
-
message.baseVestingAccount !== void 0 && (obj.baseVestingAccount = message.baseVestingAccount ?
|
|
85
|
+
message.baseVestingAccount !== void 0 && (obj.baseVestingAccount = message.baseVestingAccount ? chunkNM4PISTQ_cjs.BaseVestingAccount.toJSON(message.baseVestingAccount) : void 0);
|
|
86
86
|
message.funderAddress !== void 0 && (obj.funderAddress = message.funderAddress);
|
|
87
87
|
message.startTime !== void 0 && (obj.startTime = message.startTime.toISOString());
|
|
88
88
|
if (message.lockupPeriods) {
|
|
89
|
-
obj.lockupPeriods = message.lockupPeriods.map((e) => e ?
|
|
89
|
+
obj.lockupPeriods = message.lockupPeriods.map((e) => e ? chunkNM4PISTQ_cjs.Period.toJSON(e) : void 0);
|
|
90
90
|
} else {
|
|
91
91
|
obj.lockupPeriods = [];
|
|
92
92
|
}
|
|
93
93
|
if (message.vestingPeriods) {
|
|
94
|
-
obj.vestingPeriods = message.vestingPeriods.map((e) => e ?
|
|
94
|
+
obj.vestingPeriods = message.vestingPeriods.map((e) => e ? chunkNM4PISTQ_cjs.Period.toJSON(e) : void 0);
|
|
95
95
|
} else {
|
|
96
96
|
obj.vestingPeriods = [];
|
|
97
97
|
}
|
|
@@ -99,40 +99,40 @@ var ClawbackVestingAccount = {
|
|
|
99
99
|
},
|
|
100
100
|
fromPartial(object) {
|
|
101
101
|
const message = createBaseClawbackVestingAccount();
|
|
102
|
-
message.baseVestingAccount = object.baseVestingAccount !== void 0 && object.baseVestingAccount !== null ?
|
|
102
|
+
message.baseVestingAccount = object.baseVestingAccount !== void 0 && object.baseVestingAccount !== null ? chunkNM4PISTQ_cjs.BaseVestingAccount.fromPartial(object.baseVestingAccount) : void 0;
|
|
103
103
|
message.funderAddress = object.funderAddress ?? "";
|
|
104
104
|
message.startTime = object.startTime ?? void 0;
|
|
105
|
-
message.lockupPeriods = object.lockupPeriods?.map((e) =>
|
|
106
|
-
message.vestingPeriods = object.vestingPeriods?.map((e) =>
|
|
105
|
+
message.lockupPeriods = object.lockupPeriods?.map((e) => chunkNM4PISTQ_cjs.Period.fromPartial(e)) || [];
|
|
106
|
+
message.vestingPeriods = object.vestingPeriods?.map((e) => chunkNM4PISTQ_cjs.Period.fromPartial(e)) || [];
|
|
107
107
|
return message;
|
|
108
108
|
},
|
|
109
109
|
fromAmino(object) {
|
|
110
110
|
const message = createBaseClawbackVestingAccount();
|
|
111
111
|
if (object.base_vesting_account !== void 0 && object.base_vesting_account !== null) {
|
|
112
|
-
message.baseVestingAccount =
|
|
112
|
+
message.baseVestingAccount = chunkNM4PISTQ_cjs.BaseVestingAccount.fromAmino(object.base_vesting_account);
|
|
113
113
|
}
|
|
114
114
|
if (object.funder_address !== void 0 && object.funder_address !== null) {
|
|
115
115
|
message.funderAddress = object.funder_address;
|
|
116
116
|
}
|
|
117
117
|
if (object.start_time !== void 0 && object.start_time !== null) {
|
|
118
|
-
message.startTime =
|
|
118
|
+
message.startTime = chunkMUJBB64F_cjs.fromTimestamp(chunkNM4PISTQ_cjs.Timestamp.fromAmino(object.start_time));
|
|
119
119
|
}
|
|
120
|
-
message.lockupPeriods = object.lockup_periods?.map((e) =>
|
|
121
|
-
message.vestingPeriods = object.vesting_periods?.map((e) =>
|
|
120
|
+
message.lockupPeriods = object.lockup_periods?.map((e) => chunkNM4PISTQ_cjs.Period.fromAmino(e)) || [];
|
|
121
|
+
message.vestingPeriods = object.vesting_periods?.map((e) => chunkNM4PISTQ_cjs.Period.fromAmino(e)) || [];
|
|
122
122
|
return message;
|
|
123
123
|
},
|
|
124
124
|
toAmino(message) {
|
|
125
125
|
const obj = {};
|
|
126
|
-
obj.base_vesting_account = message.baseVestingAccount ?
|
|
126
|
+
obj.base_vesting_account = message.baseVestingAccount ? chunkNM4PISTQ_cjs.BaseVestingAccount.toAmino(message.baseVestingAccount) : void 0;
|
|
127
127
|
obj.funder_address = message.funderAddress === "" ? void 0 : message.funderAddress;
|
|
128
|
-
obj.start_time = message.startTime ?
|
|
128
|
+
obj.start_time = message.startTime ? chunkNM4PISTQ_cjs.Timestamp.toAmino(chunkMUJBB64F_cjs.toTimestamp(message.startTime)) : void 0;
|
|
129
129
|
if (message.lockupPeriods) {
|
|
130
|
-
obj.lockup_periods = message.lockupPeriods.map((e) => e ?
|
|
130
|
+
obj.lockup_periods = message.lockupPeriods.map((e) => e ? chunkNM4PISTQ_cjs.Period.toAmino(e) : void 0);
|
|
131
131
|
} else {
|
|
132
132
|
obj.lockup_periods = message.lockupPeriods;
|
|
133
133
|
}
|
|
134
134
|
if (message.vestingPeriods) {
|
|
135
|
-
obj.vesting_periods = message.vestingPeriods.map((e) => e ?
|
|
135
|
+
obj.vesting_periods = message.vestingPeriods.map((e) => e ? chunkNM4PISTQ_cjs.Period.toAmino(e) : void 0);
|
|
136
136
|
} else {
|
|
137
137
|
obj.vesting_periods = message.vestingPeriods;
|
|
138
138
|
}
|
|
@@ -203,19 +203,19 @@ function getEncodeObjectFromCosmosMessage(message) {
|
|
|
203
203
|
if (message.msgTypeUrl === "/circle.cctp.v1.MsgDepositForBurn") {
|
|
204
204
|
return {
|
|
205
205
|
typeUrl: message.msgTypeUrl,
|
|
206
|
-
value:
|
|
206
|
+
value: chunkNM4PISTQ_cjs.MsgDepositForBurn.fromAmino(msgJson)
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
209
|
if (message.msgTypeUrl === "/circle.cctp.v1.MsgDepositForBurnWithCaller") {
|
|
210
210
|
return {
|
|
211
211
|
typeUrl: message.msgTypeUrl,
|
|
212
|
-
value:
|
|
212
|
+
value: chunkNM4PISTQ_cjs.MsgDepositForBurnWithCaller.fromAmino(msgJson)
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
if (message.msgTypeUrl === "/initia.move.v1.MsgExecute") {
|
|
216
216
|
return {
|
|
217
217
|
typeUrl: message.msgTypeUrl,
|
|
218
|
-
value:
|
|
218
|
+
value: chunkNM4PISTQ_cjs.MsgExecute.fromPartial({
|
|
219
219
|
sender: msgJson.sender,
|
|
220
220
|
moduleAddress: msgJson.module_address,
|
|
221
221
|
moduleName: msgJson.module_name,
|
|
@@ -227,7 +227,7 @@ function getEncodeObjectFromCosmosMessage(message) {
|
|
|
227
227
|
if (message.msgTypeUrl === "/opinit.ophost.v1.MsgInitiateTokenDeposit") {
|
|
228
228
|
return {
|
|
229
229
|
typeUrl: message.msgTypeUrl,
|
|
230
|
-
value:
|
|
230
|
+
value: chunkNM4PISTQ_cjs.MsgInitiateTokenDeposit.fromPartial({
|
|
231
231
|
sender: msgJson.sender,
|
|
232
232
|
to: msgJson.to,
|
|
233
233
|
amount: msgJson.amount,
|
|
@@ -166,24 +166,24 @@ function clone(configObject) {
|
|
|
166
166
|
if (obj.hasOwnProperty(p = "EXPONENTIAL_AT")) {
|
|
167
167
|
v = obj[p];
|
|
168
168
|
if (v && v.pop) {
|
|
169
|
-
intCheck(v[0], -
|
|
169
|
+
intCheck(v[0], -MAX, 0, p);
|
|
170
170
|
intCheck(v[1], 0, MAX, p);
|
|
171
171
|
TO_EXP_NEG = v[0];
|
|
172
172
|
TO_EXP_POS = v[1];
|
|
173
173
|
} else {
|
|
174
|
-
intCheck(v, -
|
|
174
|
+
intCheck(v, -MAX, MAX, p);
|
|
175
175
|
TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
if (obj.hasOwnProperty(p = "RANGE")) {
|
|
179
179
|
v = obj[p];
|
|
180
180
|
if (v && v.pop) {
|
|
181
|
-
intCheck(v[0], -
|
|
181
|
+
intCheck(v[0], -MAX, -1, p);
|
|
182
182
|
intCheck(v[1], 1, MAX, p);
|
|
183
183
|
MIN_EXP = v[0];
|
|
184
184
|
MAX_EXP = v[1];
|
|
185
185
|
} else {
|
|
186
|
-
intCheck(v, -
|
|
186
|
+
intCheck(v, -MAX, MAX, p);
|
|
187
187
|
if (v) {
|
|
188
188
|
MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);
|
|
189
189
|
} else {
|
|
@@ -253,7 +253,7 @@ function clone(configObject) {
|
|
|
253
253
|
if (!BigNumber2.DEBUG) return true;
|
|
254
254
|
var i, n, c = v.c, e = v.e, s = v.s;
|
|
255
255
|
out: if ({}.toString.call(c) == "[object Array]") {
|
|
256
|
-
if ((s === 1 || s === -1) && e >= -
|
|
256
|
+
if ((s === 1 || s === -1) && e >= -MAX && e <= MAX && e === mathfloor(e)) {
|
|
257
257
|
if (c[0] === 0) {
|
|
258
258
|
if (e === 0 && c.length === 1) return true;
|
|
259
259
|
break out;
|
|
@@ -279,7 +279,7 @@ function clone(configObject) {
|
|
|
279
279
|
BigNumber2.minimum = BigNumber2.min = function() {
|
|
280
280
|
return maxOrMin(arguments, 1);
|
|
281
281
|
};
|
|
282
|
-
BigNumber2.random = function() {
|
|
282
|
+
BigNumber2.random = (function() {
|
|
283
283
|
var pow2_53 = 9007199254740992;
|
|
284
284
|
var random53bitInt = Math.random() * pow2_53 & 2097151 ? function() {
|
|
285
285
|
return mathfloor(Math.random() * pow2_53);
|
|
@@ -347,13 +347,13 @@ function clone(configObject) {
|
|
|
347
347
|
rand.c = c;
|
|
348
348
|
return rand;
|
|
349
349
|
};
|
|
350
|
-
}();
|
|
350
|
+
})();
|
|
351
351
|
BigNumber2.sum = function() {
|
|
352
352
|
var i = 1, args = arguments, sum = new BigNumber2(args[0]);
|
|
353
353
|
for (; i < args.length; ) sum = sum.plus(args[i++]);
|
|
354
354
|
return sum;
|
|
355
355
|
};
|
|
356
|
-
convertBase = /* @__PURE__ */ function() {
|
|
356
|
+
convertBase = /* @__PURE__ */ (function() {
|
|
357
357
|
var decimal = "0123456789";
|
|
358
358
|
function toBaseOut(str, baseIn, baseOut, alphabet) {
|
|
359
359
|
var j, arr = [0], arrL, i = 0, len = str.length;
|
|
@@ -426,8 +426,8 @@ function clone(configObject) {
|
|
|
426
426
|
}
|
|
427
427
|
return str;
|
|
428
428
|
};
|
|
429
|
-
}();
|
|
430
|
-
div = /* @__PURE__ */ function() {
|
|
429
|
+
})();
|
|
430
|
+
div = /* @__PURE__ */ (function() {
|
|
431
431
|
function multiply(x, k, base) {
|
|
432
432
|
var m, temp, xlo, xhi, carry = 0, i = x.length, klo = k % SQRT_BASE, khi = k / SQRT_BASE | 0;
|
|
433
433
|
for (x = x.slice(); i--; ) {
|
|
@@ -568,7 +568,7 @@ function clone(configObject) {
|
|
|
568
568
|
}
|
|
569
569
|
return q;
|
|
570
570
|
};
|
|
571
|
-
}();
|
|
571
|
+
})();
|
|
572
572
|
function format(n, i, rm, id) {
|
|
573
573
|
var c0, e, ne, len, str;
|
|
574
574
|
if (rm == null) rm = ROUNDING_MODE;
|
|
@@ -588,7 +588,7 @@ function clone(configObject) {
|
|
|
588
588
|
for (; len < i; str += "0", len++) ;
|
|
589
589
|
str = toExponential(str, e);
|
|
590
590
|
} else {
|
|
591
|
-
i -= ne;
|
|
591
|
+
i -= ne + (id === 2 && e > ne);
|
|
592
592
|
str = toFixedPoint(str, e, "0");
|
|
593
593
|
if (e + 1 > len) {
|
|
594
594
|
if (--i > 0) for (str += "."; i--; str += "0") ;
|
|
@@ -627,7 +627,7 @@ function clone(configObject) {
|
|
|
627
627
|
}
|
|
628
628
|
return n;
|
|
629
629
|
}
|
|
630
|
-
parseNumeric = /* @__PURE__ */ function() {
|
|
630
|
+
parseNumeric = /* @__PURE__ */ (function() {
|
|
631
631
|
var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, dotAfter = /^([^.]+)\.$/, dotBefore = /^\.([^.]+)$/, isInfinityOrNaN = /^-?(Infinity|NaN)$/, whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
632
632
|
return function(x, str, isNum, b) {
|
|
633
633
|
var base, s = isNum ? str : str.replace(whitespaceOrPlus, "");
|
|
@@ -652,7 +652,7 @@ function clone(configObject) {
|
|
|
652
652
|
}
|
|
653
653
|
x.c = x.e = null;
|
|
654
654
|
};
|
|
655
|
-
}();
|
|
655
|
+
})();
|
|
656
656
|
function round(x, sd, rm, r) {
|
|
657
657
|
var d, i, j, k, n, ni, rd, xc = x.c, pows10 = POWS_TEN;
|
|
658
658
|
if (xc) {
|
|
@@ -1093,7 +1093,7 @@ function clone(configObject) {
|
|
|
1093
1093
|
return n;
|
|
1094
1094
|
};
|
|
1095
1095
|
P.shiftedBy = function(k) {
|
|
1096
|
-
intCheck(k, -
|
|
1096
|
+
intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);
|
|
1097
1097
|
return this.times("1e" + k);
|
|
1098
1098
|
};
|
|
1099
1099
|
P.squareRoot = P.sqrt = function() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkBCX2D6TE_cjs = require('./chunk-BCX2D6TE.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkDAPPFYGA_cjs = require('./chunk-DAPPFYGA.cjs');
|
|
5
|
+
var chunk4TBONPD6_cjs = require('./chunk-4TBONPD6.cjs');
|
|
6
6
|
var chunkF3EB2AQG_cjs = require('./chunk-F3EB2AQG.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk6W2OIU3O_cjs = require('./chunk-6W2OIU3O.cjs');
|
|
8
8
|
var chunkKZOSEIWH_cjs = require('./chunk-KZOSEIWH.cjs');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var chunkQWQVTCKP_cjs = require('./chunk-QWQVTCKP.cjs');
|
|
10
|
+
var chunkUMBMSRZZ_cjs = require('./chunk-UMBMSRZZ.cjs');
|
|
11
11
|
var chunk262HFM6V_cjs = require('./chunk-262HFM6V.cjs');
|
|
12
12
|
var chunkT5EGKQAT_cjs = require('./chunk-T5EGKQAT.cjs');
|
|
13
13
|
var chunkQAHHTQ7V_cjs = require('./chunk-QAHHTQ7V.cjs');
|
|
@@ -36,7 +36,7 @@ var getRestEndpointForChain = async (chainId) => {
|
|
|
36
36
|
return endpointOptions.rest;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
const chain =
|
|
39
|
+
const chain = chunkUMBMSRZZ_cjs.chains().find((chain2) => chain2.chainId === chainId);
|
|
40
40
|
if (!chain) {
|
|
41
41
|
throw new Error(
|
|
42
42
|
`getRestEndpointForChain error: failed to find chain id '${chainId}' in registry`
|
|
@@ -48,7 +48,7 @@ var getRestEndpointForChain = async (chainId) => {
|
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
const endpoints = chain.apis?.rest?.map((api) => api.address);
|
|
51
|
-
const endpoint = await
|
|
51
|
+
const endpoint = await chunkUMBMSRZZ_cjs.findFirstWorkingEndpoint(endpoints, "rest");
|
|
52
52
|
if (!endpoint) {
|
|
53
53
|
throw new Error(
|
|
54
54
|
`getRestEndpointForChain error: failed to find REST endpoint for chain id '${chainId}'`
|
|
@@ -62,9 +62,9 @@ var getAccountNumberAndSequence = async (address, chainId) => {
|
|
|
62
62
|
if (chainId.includes("dymension")) {
|
|
63
63
|
return getAccountNumberAndSequenceFromDymension(address, chainId);
|
|
64
64
|
}
|
|
65
|
-
const endpoint = await
|
|
65
|
+
const endpoint = await chunkQWQVTCKP_cjs.getRpcEndpointForChain(chainId);
|
|
66
66
|
const client = chunkQAHHTQ7V_cjs.ClientState.signingStargateClientByChainId[chainId] ?? await stargate.StargateClient.connect(endpoint, {
|
|
67
|
-
accountParser:
|
|
67
|
+
accountParser: chunkQWQVTCKP_cjs.accountParser
|
|
68
68
|
});
|
|
69
69
|
const account = await client.getAccount(address);
|
|
70
70
|
if (!account) {
|
|
@@ -125,7 +125,7 @@ function encodeEthSecp256k1Pubkey(pubkey) {
|
|
|
125
125
|
|
|
126
126
|
// src/proto-signing/pubkey.ts
|
|
127
127
|
function makePubkeyAnyFromAccount(account, chainId) {
|
|
128
|
-
const isEthermint =
|
|
128
|
+
const isEthermint = chunkUMBMSRZZ_cjs.getIsEthermint(chainId);
|
|
129
129
|
const pubkey = isEthermint ? encodeEthSecp256k1Pubkey(account.pubkey) : amino.encodeSecp256k1Pubkey(account.pubkey);
|
|
130
130
|
const pubkeyAny = encodePubkeyToAny(pubkey, chainId, isEthermint);
|
|
131
131
|
return pubkeyAny;
|
|
@@ -146,7 +146,7 @@ function encodePubkeyToAny(pubkey, chainId, isEthermint) {
|
|
|
146
146
|
value: Uint8Array.from(keys_js.PubKey.encode(pubkeyProto).finish())
|
|
147
147
|
});
|
|
148
148
|
} else {
|
|
149
|
-
const isInitia =
|
|
149
|
+
const isInitia = chunkUMBMSRZZ_cjs.getIsInitia(chainId);
|
|
150
150
|
const pubkeyProto = keys_js.PubKey.fromPartial({
|
|
151
151
|
key: encoding.fromBase64(pubkey.value)
|
|
152
152
|
});
|
|
@@ -173,7 +173,7 @@ var signCosmosMessageDirect = async (options) => {
|
|
|
173
173
|
if (!accountFromSigner) {
|
|
174
174
|
throw new Error("signCosmosMessageDirect error: failed to retrieve account from signer");
|
|
175
175
|
}
|
|
176
|
-
const messages = cosmosMsgs.map((cosmosMsg) =>
|
|
176
|
+
const messages = cosmosMsgs.map((cosmosMsg) => chunk4TBONPD6_cjs.getEncodeObjectFromCosmosMessage(cosmosMsg));
|
|
177
177
|
const txBodyEncodeObject = {
|
|
178
178
|
typeUrl: "/cosmos.tx.v1beta1.TxBody",
|
|
179
179
|
value: {
|
|
@@ -217,7 +217,7 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
219
|
const messages = cosmosMsgs.map(
|
|
220
|
-
(cosmosMsg) =>
|
|
220
|
+
(cosmosMsg) => chunk4TBONPD6_cjs.getEncodeObjectFromCosmosMessage(cosmosMsg)
|
|
221
221
|
);
|
|
222
222
|
const signMode = signing_js.SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
|
|
223
223
|
const msgs = messages.map((msg) => chunkQAHHTQ7V_cjs.ClientState.aminoTypes.toAmino(msg));
|
|
@@ -289,7 +289,7 @@ var signCosmosTransaction = async ({
|
|
|
289
289
|
if (messages === void 0) {
|
|
290
290
|
throw new Error("no messages found for tx");
|
|
291
291
|
}
|
|
292
|
-
const { signer } = await
|
|
292
|
+
const { signer } = await chunkQWQVTCKP_cjs.getSigningStargateClient({
|
|
293
293
|
chainId,
|
|
294
294
|
getOfflineSigner: options?.getCosmosSigner
|
|
295
295
|
});
|
|
@@ -758,7 +758,7 @@ var executeSvmTransaction = async (tx, options, index, routeId) => {
|
|
|
758
758
|
if (!signedTx) {
|
|
759
759
|
throw new Error("executeSvmTransaction error: signedTx is undefined");
|
|
760
760
|
}
|
|
761
|
-
const endpoint = await
|
|
761
|
+
const endpoint = await chunkQWQVTCKP_cjs.getRpcEndpointForChain(svmTx.chainId);
|
|
762
762
|
const connection = new web3_js.Connection(endpoint);
|
|
763
763
|
let signature;
|
|
764
764
|
const submitTxResponse = await chunk262HFM6V_cjs.submitTransaction({
|
|
@@ -845,7 +845,7 @@ var validateEvmTokenApproval = async ({
|
|
|
845
845
|
`Insufficient balance for gas on ${chain.prettyName}. Need ${formattedGasAmount} ${asset.symbol}.`
|
|
846
846
|
);
|
|
847
847
|
}
|
|
848
|
-
if (
|
|
848
|
+
if (chunk6W2OIU3O_cjs.BigNumber(gasBalance.amount).lt(Number(allowanceGasFee))) {
|
|
849
849
|
const chainAssets = (await chunkQAHHTQ7V_cjs.ClientState.getSkipAssets({ chainId: tx.chainId }))[tx.chainId];
|
|
850
850
|
const asset = chainAssets?.find(
|
|
851
851
|
(x) => x.denom.includes("-native") || x.denom.toLowerCase() === "0x0000000000000000000000000000000000000000"
|
|
@@ -957,7 +957,7 @@ var validateEvmGasBalance = async ({
|
|
|
957
957
|
fee: null
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
|
-
if (
|
|
960
|
+
if (chunk6W2OIU3O_cjs.BigNumber(gasBalance.amount ?? "").lt(Number(gasAmount))) {
|
|
961
961
|
const asset = skipAssets?.find(
|
|
962
962
|
(x) => x.denom?.includes("-native") || x.denom?.toLowerCase() === "0x0000000000000000000000000000000000000000"
|
|
963
963
|
);
|
|
@@ -990,7 +990,7 @@ var validateSvmGasBalance = async ({
|
|
|
990
990
|
fee: null
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
const endpoint = await
|
|
993
|
+
const endpoint = await chunkQWQVTCKP_cjs.getRpcEndpointForChain(tx.chainId ?? "");
|
|
994
994
|
const connection = new web3_js.Connection(endpoint);
|
|
995
995
|
if (!connection) throw new Error(`Failed to connect to ${tx.chainId}`);
|
|
996
996
|
if (!tx.tx) {
|
|
@@ -1077,7 +1077,7 @@ var validateGasBalances = async ({
|
|
|
1077
1077
|
throw new Error(`invalid msgs ${tx?.cosmosTx?.msgs}`);
|
|
1078
1078
|
}
|
|
1079
1079
|
try {
|
|
1080
|
-
const res = await
|
|
1080
|
+
const res = await chunkDAPPFYGA_cjs.validateCosmosGasBalance({
|
|
1081
1081
|
chainId: tx.cosmosTx.chainId ?? "",
|
|
1082
1082
|
signerAddress: tx.cosmosTx.signerAddress ?? "",
|
|
1083
1083
|
messages: tx.cosmosTx.msgs,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBFA7XKVT_cjs = require('./chunk-BFA7XKVT.cjs');
|
|
4
4
|
var chunkBCX2D6TE_cjs = require('./chunk-BCX2D6TE.cjs');
|
|
5
5
|
var chunk3NHW3XWK_cjs = require('./chunk-3NHW3XWK.cjs');
|
|
6
6
|
var chunkPLO5CVGN_cjs = require('./chunk-PLO5CVGN.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 chunkBFA7XKVT_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 chunkBFA7XKVT_cjs.executeTransactions({
|
|
136
136
|
...restOptions,
|
|
137
137
|
routeId,
|
|
138
138
|
txs: msgsResponse?.txs,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunk4TBONPD6_cjs = require('./chunk-4TBONPD6.cjs');
|
|
4
|
+
var chunk6W2OIU3O_cjs = require('./chunk-6W2OIU3O.cjs');
|
|
5
|
+
var chunkQWQVTCKP_cjs = require('./chunk-QWQVTCKP.cjs');
|
|
6
6
|
var chunkQAHHTQ7V_cjs = require('./chunk-QAHHTQ7V.cjs');
|
|
7
7
|
var stargate = require('@cosmjs/stargate');
|
|
8
8
|
var math = require('@cosmjs/math');
|
|
@@ -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 chunkQWQVTCKP_cjs.getSigningStargateClient({
|
|
39
39
|
chainId,
|
|
40
40
|
getOfflineSigner
|
|
41
41
|
});
|
|
42
|
-
const estimatedGas = await
|
|
42
|
+
const estimatedGas = await chunk4TBONPD6_cjs.getCosmosGasAmountForMessage(
|
|
43
43
|
stargateClient,
|
|
44
44
|
signerAddress,
|
|
45
45
|
chainId,
|
|
@@ -76,7 +76,7 @@ var validateCosmosGasBalance = async ({
|
|
|
76
76
|
}
|
|
77
77
|
if (!price) return;
|
|
78
78
|
return new stargate.GasPrice(
|
|
79
|
-
math.Decimal.fromUserInput(
|
|
79
|
+
math.Decimal.fromUserInput(chunk6W2OIU3O_cjs.BigNumber(price).toFixed(), 18),
|
|
80
80
|
asset?.denom ?? ""
|
|
81
81
|
);
|
|
82
82
|
})();
|
|
@@ -148,8 +148,8 @@ var validateCosmosGasBalance = async ({
|
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
if (parseInt(balance?.amount ?? "") < parseInt(fee.amount[0]?.amount)) {
|
|
151
|
-
const userAmount = new
|
|
152
|
-
const feeAmount = new
|
|
151
|
+
const userAmount = new chunk6W2OIU3O_cjs.BigNumber(parseFloat(balance?.amount ?? "")).shiftedBy(-decimal).toFixed(decimal);
|
|
152
|
+
const feeAmount = new chunk6W2OIU3O_cjs.BigNumber(parseFloat(fee.amount[0]?.amount)).shiftedBy(-decimal).toFixed(decimal);
|
|
153
153
|
return {
|
|
154
154
|
error: `Insufficient balance for gas on ${chain?.prettyName}. Need ${feeAmount} ${symbol} but only have ${userAmount} ${symbol}.`,
|
|
155
155
|
asset
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk6W2OIU3O_cjs = require('./chunk-6W2OIU3O.cjs');
|
|
4
|
+
var chunkND7SYSAP_cjs = require('./chunk-ND7SYSAP.cjs');
|
|
5
5
|
var math = require('@cosmjs/math');
|
|
6
6
|
var stargate = require('@cosmjs/stargate');
|
|
7
7
|
|
|
8
8
|
var getRecommendedGasPrice = async (props) => {
|
|
9
|
-
const feeInfo = await
|
|
9
|
+
const feeInfo = await chunkND7SYSAP_cjs.getFeeInfoForChain(props);
|
|
10
10
|
if (!feeInfo || !feeInfo.gasPrice) {
|
|
11
11
|
return void 0;
|
|
12
12
|
}
|
|
@@ -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(math.Decimal.fromUserInput(
|
|
21
|
+
return new stargate.GasPrice(math.Decimal.fromUserInput(chunk6W2OIU3O_cjs.BigNumber(price).toFixed(), 18), feeInfo.denom);
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
exports.getRecommendedGasPrice = getRecommendedGasPrice;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _m0 = require('protobufjs/minimal.js');
|
|
4
4
|
var Long = require('long');
|
|
5
|
-
|
|
5
|
+
require('@keplr-wallet/unit');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
8
|
|
|
@@ -72,9 +72,6 @@ function fromJsonTimestamp(o) {
|
|
|
72
72
|
function numberToLong(number) {
|
|
73
73
|
return Long__default.default.fromNumber(number);
|
|
74
74
|
}
|
|
75
|
-
function padDecimal(decStr) {
|
|
76
|
-
return decStr ? new unit.Dec(decStr).toString() : decStr;
|
|
77
|
-
}
|
|
78
75
|
function createBaseAny() {
|
|
79
76
|
return {
|
|
80
77
|
$typeUrl: "/google.protobuf.Any",
|
|
@@ -254,8 +251,8 @@ var BaseAccount = {
|
|
|
254
251
|
const obj = {};
|
|
255
252
|
obj.address = message.address === "" ? void 0 : message.address;
|
|
256
253
|
obj.pub_key = message.pubKey ? Any.toAmino(message.pubKey) : void 0;
|
|
257
|
-
obj.account_number = !message.accountNumber.isZero() ? message.accountNumber
|
|
258
|
-
obj.sequence = !message.sequence.isZero() ? message.sequence
|
|
254
|
+
obj.account_number = !message.accountNumber.isZero() ? message.accountNumber?.toString() : void 0;
|
|
255
|
+
obj.sequence = !message.sequence.isZero() ? message.sequence?.toString() : void 0;
|
|
259
256
|
return obj;
|
|
260
257
|
},
|
|
261
258
|
fromAminoMsg(object) {
|
|
@@ -291,5 +288,4 @@ exports.bytesFromBase64 = bytesFromBase64;
|
|
|
291
288
|
exports.fromJsonTimestamp = fromJsonTimestamp;
|
|
292
289
|
exports.fromTimestamp = fromTimestamp;
|
|
293
290
|
exports.isSet = isSet;
|
|
294
|
-
exports.padDecimal = padDecimal;
|
|
295
291
|
exports.toTimestamp = toTimestamp;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkKZOSEIWH_cjs = require('./chunk-KZOSEIWH.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkUMBMSRZZ_cjs = require('./chunk-UMBMSRZZ.cjs');
|
|
5
5
|
var chunkQAHHTQ7V_cjs = require('./chunk-QAHHTQ7V.cjs');
|
|
6
6
|
|
|
7
7
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
@@ -10,7 +10,7 @@ var getDefaultGasTokenForChain = async (chainId) => {
|
|
|
10
10
|
if (gasDenom) {
|
|
11
11
|
return gasDenom;
|
|
12
12
|
}
|
|
13
|
-
const chain =
|
|
13
|
+
const chain = chunkUMBMSRZZ_cjs.chains().find((chain2) => chain2.chainId === chainId);
|
|
14
14
|
if (!chain) {
|
|
15
15
|
return void 0;
|
|
16
16
|
}
|
|
@@ -39,7 +39,7 @@ var getDefaultGasTokenForChain = async (chainId) => {
|
|
|
39
39
|
return chain.fees.feeTokens[0]?.denom;
|
|
40
40
|
};
|
|
41
41
|
var getStakingTokensForChain = (chainId) => {
|
|
42
|
-
const chain =
|
|
42
|
+
const chain = chunkUMBMSRZZ_cjs.chains().find((chain2) => chain2.chainId === chainId);
|
|
43
43
|
if (!chain) {
|
|
44
44
|
throw new Error(
|
|
45
45
|
`getStakingTokensForChain error: failed to find chain id '${chainId}' in registry`
|
|
@@ -69,7 +69,7 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
|
|
|
69
69
|
if (skipFeeInfo && skipFeeInfo.gasPrice !== null) {
|
|
70
70
|
return skipFeeInfo;
|
|
71
71
|
}
|
|
72
|
-
const chain =
|
|
72
|
+
const chain = chunkUMBMSRZZ_cjs.chains().find((chain2) => chain2.chainId === chainId);
|
|
73
73
|
if (!chain) {
|
|
74
74
|
return void 0;
|
|
75
75
|
}
|