carbon-js-sdk 0.4.21 → 0.4.23
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/lib/clients/CarbonQueryClient.js +2 -2
- package/lib/clients/ETHClient.js +15 -15
- package/lib/clients/EvmIbcClient.d.ts +86 -0
- package/lib/clients/EvmIbcClient.js +90 -0
- package/lib/clients/HydrogenClient.js +1 -1
- package/lib/clients/NEOClient.js +7 -7
- package/lib/clients/TokenClient.js +4 -4
- package/lib/clients/ZILClient.js +17 -17
- package/lib/codec/alliance/alliance.d.ts +65 -0
- package/lib/codec/alliance/alliance.js +354 -0
- package/lib/codec/alliance/delegations.d.ts +86 -0
- package/lib/codec/alliance/delegations.js +489 -0
- package/lib/codec/alliance/events.d.ts +61 -0
- package/lib/codec/alliance/events.js +403 -0
- package/lib/codec/alliance/genesis.d.ts +74 -0
- package/lib/codec/alliance/genesis.js +469 -0
- package/lib/codec/alliance/gov.d.ts +78 -0
- package/lib/codec/alliance/gov.js +380 -0
- package/lib/codec/{perpsliquidity → alliance}/params.d.ts +18 -8
- package/lib/codec/alliance/params.js +182 -0
- package/lib/codec/alliance/query.d.ts +312 -0
- package/lib/codec/alliance/query.js +1497 -0
- package/lib/codec/alliance/tx.d.ts +111 -0
- package/lib/codec/alliance/tx.js +495 -0
- package/lib/codec/broker/incoming_pool_swap.d.ts +23 -0
- package/lib/codec/broker/incoming_pool_swap.js +136 -0
- package/lib/codec/cosmos/gov/v1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1/tx.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/query.js +2 -2
- package/lib/codec/cosmos/gov/v1beta1/tx.js +2 -2
- package/lib/codec/cosmos/group/v1/events.js +2 -2
- package/lib/codec/cosmos/group/v1/tx.js +4 -4
- package/lib/codec/cosmos/tx/v1beta1/tx.js +4 -4
- package/lib/codec/google/protobuf/any.d.ts +4 -1
- package/lib/codec/google/protobuf/timestamp.d.ts +0 -2
- package/lib/codec/index.d.ts +58 -35
- package/lib/codec/index.js +788 -697
- package/lib/constant/generic.js +1 -1
- package/lib/modules/cdp.js +43 -43
- package/lib/modules/cosmwasm.js +1 -1
- package/lib/modules/gov.js +12 -12
- package/lib/modules/liquiditypool.js +1 -1
- package/lib/provider/account/EthLedgerAccount/EthLedgerAccount.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/ErrorCode.js +1 -1
- package/lib/provider/account/NeoLedgerAccount/N3Ledger/main.js +8 -8
- package/lib/provider/account/NeoLedgerAccount/NeoLedgerAccount.js +3 -3
- package/lib/provider/account/NeoLedgerAccount/NeonLedger.js +1 -1
- package/lib/provider/amino/types/admin.js +27 -27
- package/lib/provider/amino/types/bank.js +1 -1
- package/lib/provider/amino/types/broker.js +1 -1
- package/lib/provider/amino/types/cdp.js +25 -25
- package/lib/provider/amino/types/coin.js +4 -4
- package/lib/provider/amino/types/gov.js +4 -4
- package/lib/provider/amino/types/ibc.js +1 -1
- package/lib/provider/amino/types/leverage.js +1 -1
- package/lib/provider/amino/types/liquidityPool.js +7 -7
- package/lib/provider/amino/types/market.js +2 -2
- package/lib/provider/amino/types/oracle.js +1 -1
- package/lib/provider/amino/types/order.js +4 -4
- package/lib/provider/amino/types/position.js +1 -1
- package/lib/provider/amino/types/profile.js +1 -1
- package/lib/provider/amino/types/staking.js +4 -4
- package/lib/provider/amino/types/subaccount.js +3 -3
- package/lib/provider/amino/utils.js +11 -11
- package/lib/provider/ledger/ledger.js +2 -2
- package/lib/provider/metamask/MetaMask.js +1 -1
- package/lib/provider/o3/O3Wallet.js +2 -2
- package/lib/util/address.js +13 -13
- package/lib/util/api.js +4 -4
- package/lib/util/ethermint/evm-ibc.d.ts +97 -0
- package/lib/util/ethermint/evm-ibc.js +134 -0
- package/lib/util/ethermint/index.d.ts +3 -0
- package/lib/util/ethermint/index.js +12 -0
- package/lib/util/ethermint/keys.d.ts +39 -0
- package/lib/util/ethermint/keys.js +138 -0
- package/lib/util/ethermint/web3.d.ts +36 -0
- package/lib/util/ethermint/web3.js +124 -0
- package/lib/util/fetch.js +1 -1
- package/lib/util/generic.js +3 -3
- package/lib/util/number.js +5 -5
- package/lib/util/tx.d.ts +51 -34
- package/lib/wallet/CarbonSigner.js +2 -2
- package/lib/wallet/CarbonSigningClient.js +8 -8
- package/lib/wallet/CarbonWallet.js +6 -6
- package/lib/websocket/connector.js +3 -3
- package/package.json +1 -1
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.d.ts +0 -1
- package/lib/codec/ethermint/crypto/v1/ethsecp256k1/export.js +0 -6
- package/lib/codec/ethermint/evm/v1/export.d.ts +0 -5
- package/lib/codec/ethermint/evm/v1/export.js +0 -53
- package/lib/codec/ethermint/feemarket/v1/export.d.ts +0 -4
- package/lib/codec/ethermint/feemarket/v1/export.js +0 -18
- package/lib/codec/ethermint/types/v1/export.d.ts +0 -4
- package/lib/codec/ethermint/types/v1/export.js +0 -11
- package/lib/codec/ethermint-models.d.ts +0 -4
- package/lib/codec/ethermint-models.js +0 -26
- package/lib/codec/market/fee.d.ts +0 -123
- package/lib/codec/market/fee.js +0 -334
- package/lib/codec/perpsliquidity/event.d.ts +0 -102
- package/lib/codec/perpsliquidity/event.js +0 -581
- package/lib/codec/perpsliquidity/genesis.d.ts +0 -35
- package/lib/codec/perpsliquidity/genesis.js +0 -162
- package/lib/codec/perpsliquidity/params.js +0 -103
- package/lib/codec/perpsliquidity/pool.d.ts +0 -137
- package/lib/codec/perpsliquidity/pool.js +0 -747
- package/lib/codec/perpsliquidity/query.d.ts +0 -167
- package/lib/codec/perpsliquidity/query.js +0 -719
- package/lib/codec/perpsliquidity/tx.d.ts +0 -199
- package/lib/codec/perpsliquidity/tx.js +0 -940
- package/lib/constant/eip712.d.ts +0 -46
- package/lib/constant/eip712.js +0 -106
- package/lib/modules/evm.d.ts +0 -46
- package/lib/modules/evm.js +0 -127
- package/lib/modules/evmmerge.d.ts +0 -12
- package/lib/modules/evmmerge.js +0 -35
- package/lib/modules/feemarket.d.ts +0 -20
- package/lib/modules/feemarket.js +0 -45
- package/lib/modules/vault.d.ts +0 -44
- package/lib/modules/vault.js +0 -95
- package/lib/provider/amino/types/evm.d.ts +0 -4
- package/lib/provider/amino/types/evm.js +0 -40
- package/lib/provider/amino/types/evmmerge.d.ts +0 -4
- package/lib/provider/amino/types/evmmerge.js +0 -34
- package/lib/provider/amino/types/feemarket.d.ts +0 -4
- package/lib/provider/amino/types/feemarket.js +0 -34
- package/lib/provider/metamask/legacy-accounts.d.ts +0 -6
- package/lib/provider/metamask/legacy-accounts.js +0 -44
- package/lib/util/eip712.d.ts +0 -10
- package/lib/util/eip712.js +0 -195
- package/lib/util/ethermint.d.ts +0 -8
- package/lib/util/ethermint.js +0 -68
- package/lib/util/legacyEIP712.d.ts +0 -20
- package/lib/util/legacyEIP712.js +0 -98
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IncomingPoolSwap = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const long_1 = __importDefault(require("long"));
|
|
9
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
exports.protobufPackage = "Switcheo.carbon.broker";
|
|
11
|
+
const baseIncomingPoolSwap = {
|
|
12
|
+
poolId: long_1.default.UZERO,
|
|
13
|
+
market: "",
|
|
14
|
+
tokenATotalInput: "",
|
|
15
|
+
tokenATotalExpectedOutput: "",
|
|
16
|
+
tokenBTotalInput: "",
|
|
17
|
+
tokenBTotalExpectedOutput: "",
|
|
18
|
+
};
|
|
19
|
+
exports.IncomingPoolSwap = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (!message.poolId.isZero()) {
|
|
22
|
+
writer.uint32(8).uint64(message.poolId);
|
|
23
|
+
}
|
|
24
|
+
if (message.market !== "") {
|
|
25
|
+
writer.uint32(18).string(message.market);
|
|
26
|
+
}
|
|
27
|
+
if (message.tokenATotalInput !== "") {
|
|
28
|
+
writer.uint32(26).string(message.tokenATotalInput);
|
|
29
|
+
}
|
|
30
|
+
if (message.tokenATotalExpectedOutput !== "") {
|
|
31
|
+
writer.uint32(34).string(message.tokenATotalExpectedOutput);
|
|
32
|
+
}
|
|
33
|
+
if (message.tokenBTotalInput !== "") {
|
|
34
|
+
writer.uint32(42).string(message.tokenBTotalInput);
|
|
35
|
+
}
|
|
36
|
+
if (message.tokenBTotalExpectedOutput !== "") {
|
|
37
|
+
writer.uint32(50).string(message.tokenBTotalExpectedOutput);
|
|
38
|
+
}
|
|
39
|
+
return writer;
|
|
40
|
+
},
|
|
41
|
+
decode(input, length) {
|
|
42
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
43
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
|
+
const message = Object.assign({}, baseIncomingPoolSwap);
|
|
45
|
+
while (reader.pos < end) {
|
|
46
|
+
const tag = reader.uint32();
|
|
47
|
+
switch (tag >>> 3) {
|
|
48
|
+
case 1:
|
|
49
|
+
message.poolId = reader.uint64();
|
|
50
|
+
break;
|
|
51
|
+
case 2:
|
|
52
|
+
message.market = reader.string();
|
|
53
|
+
break;
|
|
54
|
+
case 3:
|
|
55
|
+
message.tokenATotalInput = reader.string();
|
|
56
|
+
break;
|
|
57
|
+
case 4:
|
|
58
|
+
message.tokenATotalExpectedOutput = reader.string();
|
|
59
|
+
break;
|
|
60
|
+
case 5:
|
|
61
|
+
message.tokenBTotalInput = reader.string();
|
|
62
|
+
break;
|
|
63
|
+
case 6:
|
|
64
|
+
message.tokenBTotalExpectedOutput = reader.string();
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
reader.skipType(tag & 7);
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return message;
|
|
72
|
+
},
|
|
73
|
+
fromJSON(object) {
|
|
74
|
+
const message = Object.assign({}, baseIncomingPoolSwap);
|
|
75
|
+
message.poolId =
|
|
76
|
+
object.poolId !== undefined && object.poolId !== null
|
|
77
|
+
? long_1.default.fromString(object.poolId)
|
|
78
|
+
: long_1.default.UZERO;
|
|
79
|
+
message.market =
|
|
80
|
+
object.market !== undefined && object.market !== null
|
|
81
|
+
? String(object.market)
|
|
82
|
+
: "";
|
|
83
|
+
message.tokenATotalInput =
|
|
84
|
+
object.tokenATotalInput !== undefined && object.tokenATotalInput !== null
|
|
85
|
+
? String(object.tokenATotalInput)
|
|
86
|
+
: "";
|
|
87
|
+
message.tokenATotalExpectedOutput =
|
|
88
|
+
object.tokenATotalExpectedOutput !== undefined &&
|
|
89
|
+
object.tokenATotalExpectedOutput !== null
|
|
90
|
+
? String(object.tokenATotalExpectedOutput)
|
|
91
|
+
: "";
|
|
92
|
+
message.tokenBTotalInput =
|
|
93
|
+
object.tokenBTotalInput !== undefined && object.tokenBTotalInput !== null
|
|
94
|
+
? String(object.tokenBTotalInput)
|
|
95
|
+
: "";
|
|
96
|
+
message.tokenBTotalExpectedOutput =
|
|
97
|
+
object.tokenBTotalExpectedOutput !== undefined &&
|
|
98
|
+
object.tokenBTotalExpectedOutput !== null
|
|
99
|
+
? String(object.tokenBTotalExpectedOutput)
|
|
100
|
+
: "";
|
|
101
|
+
return message;
|
|
102
|
+
},
|
|
103
|
+
toJSON(message) {
|
|
104
|
+
const obj = {};
|
|
105
|
+
message.poolId !== undefined &&
|
|
106
|
+
(obj.poolId = (message.poolId || long_1.default.UZERO).toString());
|
|
107
|
+
message.market !== undefined && (obj.market = message.market);
|
|
108
|
+
message.tokenATotalInput !== undefined &&
|
|
109
|
+
(obj.tokenATotalInput = message.tokenATotalInput);
|
|
110
|
+
message.tokenATotalExpectedOutput !== undefined &&
|
|
111
|
+
(obj.tokenATotalExpectedOutput = message.tokenATotalExpectedOutput);
|
|
112
|
+
message.tokenBTotalInput !== undefined &&
|
|
113
|
+
(obj.tokenBTotalInput = message.tokenBTotalInput);
|
|
114
|
+
message.tokenBTotalExpectedOutput !== undefined &&
|
|
115
|
+
(obj.tokenBTotalExpectedOutput = message.tokenBTotalExpectedOutput);
|
|
116
|
+
return obj;
|
|
117
|
+
},
|
|
118
|
+
fromPartial(object) {
|
|
119
|
+
var _a, _b, _c, _d, _e;
|
|
120
|
+
const message = Object.assign({}, baseIncomingPoolSwap);
|
|
121
|
+
message.poolId =
|
|
122
|
+
object.poolId !== undefined && object.poolId !== null
|
|
123
|
+
? long_1.default.fromValue(object.poolId)
|
|
124
|
+
: long_1.default.UZERO;
|
|
125
|
+
message.market = (_a = object.market) !== null && _a !== void 0 ? _a : "";
|
|
126
|
+
message.tokenATotalInput = (_b = object.tokenATotalInput) !== null && _b !== void 0 ? _b : "";
|
|
127
|
+
message.tokenATotalExpectedOutput = (_c = object.tokenATotalExpectedOutput) !== null && _c !== void 0 ? _c : "";
|
|
128
|
+
message.tokenBTotalInput = (_d = object.tokenBTotalInput) !== null && _d !== void 0 ? _d : "";
|
|
129
|
+
message.tokenBTotalExpectedOutput = (_e = object.tokenBTotalExpectedOutput) !== null && _e !== void 0 ? _e : "";
|
|
130
|
+
return message;
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
134
|
+
minimal_1.default.util.Long = long_1.default;
|
|
135
|
+
minimal_1.default.configure();
|
|
136
|
+
}
|
|
@@ -159,7 +159,7 @@ exports.QueryProposalsRequest = {
|
|
|
159
159
|
const message = Object.assign({}, baseQueryProposalsRequest);
|
|
160
160
|
message.proposalStatus =
|
|
161
161
|
object.proposalStatus !== undefined && object.proposalStatus !== null
|
|
162
|
-
? gov_1.proposalStatusFromJSON(object.proposalStatus)
|
|
162
|
+
? (0, gov_1.proposalStatusFromJSON)(object.proposalStatus)
|
|
163
163
|
: 0;
|
|
164
164
|
message.voter =
|
|
165
165
|
object.voter !== undefined && object.voter !== null
|
|
@@ -178,7 +178,7 @@ exports.QueryProposalsRequest = {
|
|
|
178
178
|
toJSON(message) {
|
|
179
179
|
const obj = {};
|
|
180
180
|
message.proposalStatus !== undefined &&
|
|
181
|
-
(obj.proposalStatus = gov_1.proposalStatusToJSON(message.proposalStatus));
|
|
181
|
+
(obj.proposalStatus = (0, gov_1.proposalStatusToJSON)(message.proposalStatus));
|
|
182
182
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
183
183
|
message.depositor !== undefined && (obj.depositor = message.depositor);
|
|
184
184
|
message.pagination !== undefined &&
|
|
@@ -300,7 +300,7 @@ exports.MsgVote = {
|
|
|
300
300
|
: "";
|
|
301
301
|
message.option =
|
|
302
302
|
object.option !== undefined && object.option !== null
|
|
303
|
-
? gov_1.voteOptionFromJSON(object.option)
|
|
303
|
+
? (0, gov_1.voteOptionFromJSON)(object.option)
|
|
304
304
|
: 0;
|
|
305
305
|
message.metadata =
|
|
306
306
|
object.metadata !== undefined && object.metadata !== null
|
|
@@ -314,7 +314,7 @@ exports.MsgVote = {
|
|
|
314
314
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
315
315
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
316
316
|
message.option !== undefined &&
|
|
317
|
-
(obj.option = gov_1.voteOptionToJSON(message.option));
|
|
317
|
+
(obj.option = (0, gov_1.voteOptionToJSON)(message.option));
|
|
318
318
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
319
319
|
return obj;
|
|
320
320
|
},
|
|
@@ -159,7 +159,7 @@ exports.QueryProposalsRequest = {
|
|
|
159
159
|
const message = Object.assign({}, baseQueryProposalsRequest);
|
|
160
160
|
message.proposalStatus =
|
|
161
161
|
object.proposalStatus !== undefined && object.proposalStatus !== null
|
|
162
|
-
? gov_1.proposalStatusFromJSON(object.proposalStatus)
|
|
162
|
+
? (0, gov_1.proposalStatusFromJSON)(object.proposalStatus)
|
|
163
163
|
: 0;
|
|
164
164
|
message.voter =
|
|
165
165
|
object.voter !== undefined && object.voter !== null
|
|
@@ -178,7 +178,7 @@ exports.QueryProposalsRequest = {
|
|
|
178
178
|
toJSON(message) {
|
|
179
179
|
const obj = {};
|
|
180
180
|
message.proposalStatus !== undefined &&
|
|
181
|
-
(obj.proposalStatus = gov_1.proposalStatusToJSON(message.proposalStatus));
|
|
181
|
+
(obj.proposalStatus = (0, gov_1.proposalStatusToJSON)(message.proposalStatus));
|
|
182
182
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
183
183
|
message.depositor !== undefined && (obj.depositor = message.depositor);
|
|
184
184
|
message.pagination !== undefined &&
|
|
@@ -185,7 +185,7 @@ exports.MsgVote = {
|
|
|
185
185
|
: "";
|
|
186
186
|
message.option =
|
|
187
187
|
object.option !== undefined && object.option !== null
|
|
188
|
-
? gov_1.voteOptionFromJSON(object.option)
|
|
188
|
+
? (0, gov_1.voteOptionFromJSON)(object.option)
|
|
189
189
|
: 0;
|
|
190
190
|
return message;
|
|
191
191
|
},
|
|
@@ -195,7 +195,7 @@ exports.MsgVote = {
|
|
|
195
195
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
196
196
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
197
197
|
message.option !== undefined &&
|
|
198
|
-
(obj.option = gov_1.voteOptionToJSON(message.option));
|
|
198
|
+
(obj.option = (0, gov_1.voteOptionToJSON)(message.option));
|
|
199
199
|
return obj;
|
|
200
200
|
},
|
|
201
201
|
fromPartial(object) {
|
|
@@ -384,7 +384,7 @@ exports.EventExec = {
|
|
|
384
384
|
: long_1.default.UZERO;
|
|
385
385
|
message.result =
|
|
386
386
|
object.result !== undefined && object.result !== null
|
|
387
|
-
? types_1.proposalExecutorResultFromJSON(object.result)
|
|
387
|
+
? (0, types_1.proposalExecutorResultFromJSON)(object.result)
|
|
388
388
|
: 0;
|
|
389
389
|
message.logs =
|
|
390
390
|
object.logs !== undefined && object.logs !== null
|
|
@@ -397,7 +397,7 @@ exports.EventExec = {
|
|
|
397
397
|
message.proposalId !== undefined &&
|
|
398
398
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
399
399
|
message.result !== undefined &&
|
|
400
|
-
(obj.result = types_1.proposalExecutorResultToJSON(message.result));
|
|
400
|
+
(obj.result = (0, types_1.proposalExecutorResultToJSON)(message.result));
|
|
401
401
|
message.logs !== undefined && (obj.logs = message.logs);
|
|
402
402
|
return obj;
|
|
403
403
|
},
|
|
@@ -1474,7 +1474,7 @@ exports.MsgVote = {
|
|
|
1474
1474
|
: "";
|
|
1475
1475
|
message.option =
|
|
1476
1476
|
object.option !== undefined && object.option !== null
|
|
1477
|
-
? types_1.voteOptionFromJSON(object.option)
|
|
1477
|
+
? (0, types_1.voteOptionFromJSON)(object.option)
|
|
1478
1478
|
: 0;
|
|
1479
1479
|
message.metadata =
|
|
1480
1480
|
object.metadata !== undefined && object.metadata !== null
|
|
@@ -1492,7 +1492,7 @@ exports.MsgVote = {
|
|
|
1492
1492
|
(obj.proposalId = (message.proposalId || long_1.default.UZERO).toString());
|
|
1493
1493
|
message.voter !== undefined && (obj.voter = message.voter);
|
|
1494
1494
|
message.option !== undefined &&
|
|
1495
|
-
(obj.option = types_1.voteOptionToJSON(message.option));
|
|
1495
|
+
(obj.option = (0, types_1.voteOptionToJSON)(message.option));
|
|
1496
1496
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
1497
1497
|
message.exec !== undefined && (obj.exec = execToJSON(message.exec));
|
|
1498
1498
|
return obj;
|
|
@@ -1633,14 +1633,14 @@ exports.MsgExecResponse = {
|
|
|
1633
1633
|
const message = Object.assign({}, baseMsgExecResponse);
|
|
1634
1634
|
message.result =
|
|
1635
1635
|
object.result !== undefined && object.result !== null
|
|
1636
|
-
? types_1.proposalExecutorResultFromJSON(object.result)
|
|
1636
|
+
? (0, types_1.proposalExecutorResultFromJSON)(object.result)
|
|
1637
1637
|
: 0;
|
|
1638
1638
|
return message;
|
|
1639
1639
|
},
|
|
1640
1640
|
toJSON(message) {
|
|
1641
1641
|
const obj = {};
|
|
1642
1642
|
message.result !== undefined &&
|
|
1643
|
-
(obj.result = types_1.proposalExecutorResultToJSON(message.result));
|
|
1643
|
+
(obj.result = (0, types_1.proposalExecutorResultToJSON)(message.result));
|
|
1644
1644
|
return obj;
|
|
1645
1645
|
},
|
|
1646
1646
|
fromPartial(object) {
|
|
@@ -763,13 +763,13 @@ exports.ModeInfo_Single = {
|
|
|
763
763
|
const message = Object.assign({}, baseModeInfo_Single);
|
|
764
764
|
message.mode =
|
|
765
765
|
object.mode !== undefined && object.mode !== null
|
|
766
|
-
? signing_1.signModeFromJSON(object.mode)
|
|
766
|
+
? (0, signing_1.signModeFromJSON)(object.mode)
|
|
767
767
|
: 0;
|
|
768
768
|
return message;
|
|
769
769
|
},
|
|
770
770
|
toJSON(message) {
|
|
771
771
|
const obj = {};
|
|
772
|
-
message.mode !== undefined && (obj.mode = signing_1.signModeToJSON(message.mode));
|
|
772
|
+
message.mode !== undefined && (obj.mode = (0, signing_1.signModeToJSON)(message.mode));
|
|
773
773
|
return obj;
|
|
774
774
|
},
|
|
775
775
|
fromPartial(object) {
|
|
@@ -1052,7 +1052,7 @@ exports.AuxSignerData = {
|
|
|
1052
1052
|
: undefined;
|
|
1053
1053
|
message.mode =
|
|
1054
1054
|
object.mode !== undefined && object.mode !== null
|
|
1055
|
-
? signing_1.signModeFromJSON(object.mode)
|
|
1055
|
+
? (0, signing_1.signModeFromJSON)(object.mode)
|
|
1056
1056
|
: 0;
|
|
1057
1057
|
message.sig =
|
|
1058
1058
|
object.sig !== undefined && object.sig !== null
|
|
@@ -1067,7 +1067,7 @@ exports.AuxSignerData = {
|
|
|
1067
1067
|
(obj.signDoc = message.signDoc
|
|
1068
1068
|
? exports.SignDocDirectAux.toJSON(message.signDoc)
|
|
1069
1069
|
: undefined);
|
|
1070
|
-
message.mode !== undefined && (obj.mode = signing_1.signModeToJSON(message.mode));
|
|
1070
|
+
message.mode !== undefined && (obj.mode = (0, signing_1.signModeToJSON)(message.mode));
|
|
1071
1071
|
message.sig !== undefined &&
|
|
1072
1072
|
(obj.sig = base64FromBytes(message.sig !== undefined ? message.sig : new Uint8Array()));
|
|
1073
1073
|
return obj;
|
|
@@ -26,6 +26,10 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
26
26
|
* if (any.is(Foo.class)) {
|
|
27
27
|
* foo = any.unpack(Foo.class);
|
|
28
28
|
* }
|
|
29
|
+
* // or ...
|
|
30
|
+
* if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
31
|
+
* foo = any.unpack(Foo.getDefaultInstance());
|
|
32
|
+
* }
|
|
29
33
|
*
|
|
30
34
|
* Example 3: Pack and unpack a message in Python.
|
|
31
35
|
*
|
|
@@ -56,7 +60,6 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
56
60
|
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
57
61
|
* name "y.z".
|
|
58
62
|
*
|
|
59
|
-
*
|
|
60
63
|
* JSON
|
|
61
64
|
*
|
|
62
65
|
* The JSON representation of an `Any` value uses the regular
|
|
@@ -52,7 +52,6 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
52
52
|
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
53
53
|
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
54
54
|
*
|
|
55
|
-
*
|
|
56
55
|
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
57
56
|
*
|
|
58
57
|
* Instant now = Instant.now();
|
|
@@ -61,7 +60,6 @@ export declare const protobufPackage = "google.protobuf";
|
|
|
61
60
|
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
62
61
|
* .setNanos(now.getNano()).build();
|
|
63
62
|
*
|
|
64
|
-
*
|
|
65
63
|
* Example 6: Compute Timestamp from current time in Python.
|
|
66
64
|
*
|
|
67
65
|
* timestamp = Timestamp()
|
package/lib/codec/index.d.ts
CHANGED
|
@@ -135,6 +135,14 @@ export declare const TxTypes: {
|
|
|
135
135
|
MsgSetOracleSlashEnabled: string;
|
|
136
136
|
MsgSetOracleSlashEnabledResponse: string;
|
|
137
137
|
CreateOracleProposal: string;
|
|
138
|
+
MsgAllianceDelegate: string;
|
|
139
|
+
MsgAllianceDelegateResponse: string;
|
|
140
|
+
MsgAllianceUndelegate: string;
|
|
141
|
+
MsgAllianceUndelegateResponse: string;
|
|
142
|
+
MsgAllianceRedelegate: string;
|
|
143
|
+
MsgAllianceRedelegateResponse: string;
|
|
144
|
+
MsgAllianceClaimDelegationRewards: string;
|
|
145
|
+
MsgAllianceClaimDelegationRewardsResponse: string;
|
|
138
146
|
MsgSoftwareUpgrade: string;
|
|
139
147
|
MsgSoftwareUpgradeResponse: string;
|
|
140
148
|
MsgCancelUpgrade: string;
|
|
@@ -149,34 +157,34 @@ export declare const TxTypes: {
|
|
|
149
157
|
MsgSubmitEvidenceResponse: string;
|
|
150
158
|
MsgNftSend: string;
|
|
151
159
|
MsgNftSendResponse: string;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
160
|
+
MsgGroupCreateGroup: string;
|
|
161
|
+
MsgGroupCreateGroupResponse: string;
|
|
162
|
+
MsgGroupUpdateGroupMembers: string;
|
|
163
|
+
MsgGroupUpdateGroupMembersResponse: string;
|
|
164
|
+
MsgGroupUpdateGroupAdmin: string;
|
|
165
|
+
MsgGroupUpdateGroupAdminResponse: string;
|
|
166
|
+
MsgGroupUpdateGroupMetadata: string;
|
|
167
|
+
MsgGroupUpdateGroupMetadataResponse: string;
|
|
168
|
+
MsgGroupCreateGroupPolicy: string;
|
|
169
|
+
MsgGroupCreateGroupPolicyResponse: string;
|
|
170
|
+
MsgGroupUpdateGroupPolicyAdmin: string;
|
|
171
|
+
MsgGroupCreateGroupWithPolicy: string;
|
|
172
|
+
MsgGroupCreateGroupWithPolicyResponse: string;
|
|
173
|
+
MsgGroupUpdateGroupPolicyAdminResponse: string;
|
|
174
|
+
MsgGroupUpdateGroupPolicyDecisionPolicy: string;
|
|
175
|
+
MsgGroupUpdateGroupPolicyDecisionPolicyResponse: string;
|
|
176
|
+
MsgGroupUpdateGroupPolicyMetadata: string;
|
|
177
|
+
MsgGroupUpdateGroupPolicyMetadataResponse: string;
|
|
170
178
|
MsgGroupSubmitProposal: string;
|
|
171
179
|
MsgGroupSubmitProposalResponse: string;
|
|
172
|
-
|
|
173
|
-
|
|
180
|
+
MsgGroupWithdrawProposal: string;
|
|
181
|
+
MsgGroupWithdrawProposalResponse: string;
|
|
174
182
|
MsgGroupVote: string;
|
|
175
183
|
MsgGroupVoteResponse: string;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
184
|
+
MsgGroupExec: string;
|
|
185
|
+
MsgGroupExecResponse: string;
|
|
186
|
+
MsgGroupLeaveGroup: string;
|
|
187
|
+
MsgGroupLeaveGroupResponse: string;
|
|
180
188
|
MsgSend: string;
|
|
181
189
|
MsgSendResponse: string;
|
|
182
190
|
MsgMultiSend: string;
|
|
@@ -212,17 +220,25 @@ export declare const TxTypes: {
|
|
|
212
220
|
MsgCancelUnbondingDelegationResponse: string;
|
|
213
221
|
ParameterChangeProposal: string;
|
|
214
222
|
MsgGrant: string;
|
|
215
|
-
|
|
216
|
-
|
|
223
|
+
MsgExecResponse: string;
|
|
224
|
+
MsgExec: string;
|
|
217
225
|
MsgGrantResponse: string;
|
|
218
226
|
MsgRevoke: string;
|
|
219
227
|
MsgRevokeResponse: string;
|
|
220
228
|
MsgUnjail: string;
|
|
221
229
|
MsgUnjailResponse: string;
|
|
230
|
+
MsgGovSubmitProposal: string;
|
|
231
|
+
MsgGovSubmitProposalResponse: string;
|
|
232
|
+
MsgGovExecLegacyContent: string;
|
|
233
|
+
MsgGovExecLegacyContentResponse: string;
|
|
234
|
+
MsgGovVote: string;
|
|
235
|
+
MsgGovVoteResponse: string;
|
|
236
|
+
MsgGovVoteWeighted: string;
|
|
237
|
+
MsgGovVoteWeightedResponse: string;
|
|
238
|
+
MsgGovDeposit: string;
|
|
239
|
+
MsgGovDepositResponse: string;
|
|
222
240
|
MsgSubmitProposal: string;
|
|
223
241
|
MsgSubmitProposalResponse: string;
|
|
224
|
-
MsgExecLegacyContent: string;
|
|
225
|
-
MsgExecLegacyContentResponse: string;
|
|
226
242
|
MsgVote: string;
|
|
227
243
|
MsgVoteResponse: string;
|
|
228
244
|
MsgVoteWeighted: string;
|
|
@@ -230,6 +246,7 @@ export declare const TxTypes: {
|
|
|
230
246
|
MsgDeposit: string;
|
|
231
247
|
MsgDepositResponse: string;
|
|
232
248
|
TextProposal: string;
|
|
249
|
+
Proposal: string;
|
|
233
250
|
MsgProcessCrossChainTx: string;
|
|
234
251
|
MsgProcessZionCrossChainTx: string;
|
|
235
252
|
MsgProcessCrossChainTxResponse: string;
|
|
@@ -317,8 +334,8 @@ export declare const TxTypes: {
|
|
|
317
334
|
MsgAddBridgeAddressResponse: string;
|
|
318
335
|
MsgRemoveBridgeAddress: string;
|
|
319
336
|
MsgRemoveBridgeAddressResponse: string;
|
|
320
|
-
|
|
321
|
-
|
|
337
|
+
MsgCreateGroup: string;
|
|
338
|
+
MsgCreateGroupResponse: string;
|
|
322
339
|
MsgUpdateGroup: string;
|
|
323
340
|
MsgUpdateGroupResponse: string;
|
|
324
341
|
MsgRegisterToGroup: string;
|
|
@@ -336,10 +353,10 @@ export declare const TxTypes: {
|
|
|
336
353
|
MsgSetLeverageResponse: string;
|
|
337
354
|
MsgUpdateProfile: string;
|
|
338
355
|
MsgUpdateProfileResponse: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
356
|
+
MsgFeemarketUpdateParams: string;
|
|
357
|
+
MsgFeemarketUpdateParamsResponse: string;
|
|
358
|
+
MsgEvmEthereumTx: string;
|
|
359
|
+
MsgEvmEthereumTxResponse: string;
|
|
343
360
|
MsgEvmUpdateParams: string;
|
|
344
361
|
MsgEvmUpdateParamsResponse: string;
|
|
345
362
|
MsgCreateSubAccount: string;
|
|
@@ -473,6 +490,13 @@ export { OracleVotesWindow, SlashCounter } from "./oracle/slashing";
|
|
|
473
490
|
export { CreateOracleProposal } from "./oracle/proposal";
|
|
474
491
|
export { QueryOracleRequest, QueryOracleResponse, QueryAllOracleRequest, QueryAllOracleResponse, QueryAllResultRequest, QueryAllResultResponse, QueryAllVoteRequest, QueryAllVoteResponse, QueryVoterPowerRequest, QueryVoterPowerResponse, QueryAllSlashCounterRequest, QueryAllSlashCounterResponse, QuerySlashCounterRequest, QuerySlashCounterResponse, QueryAllOracleVotesWindowRequest, QueryAllOracleVotesWindowResponse, QueryOracleVotesWindowRequest, QueryOracleVotesWindowResponse, QueryParamsRequest as QueryOracleParamsRequest, QueryParamsResponse as QueryOracleParamsResponse } from "./oracle/query";
|
|
475
492
|
export { ResultEvent, OracleSlashEvent } from "./oracle/event";
|
|
493
|
+
export { RewardWeightRange, AllianceAsset, RewardWeightChangeSnapshot } from "./alliance/alliance";
|
|
494
|
+
export { MsgCreateAllianceProposal, MsgUpdateAllianceProposal, MsgDeleteAllianceProposal } from "./alliance/gov";
|
|
495
|
+
export { MsgDelegate, MsgDelegateResponse, MsgUndelegate, MsgUndelegateResponse, MsgRedelegate, MsgRedelegateResponse, MsgClaimDelegationRewards, MsgClaimDelegationRewardsResponse } from "./alliance/tx";
|
|
496
|
+
export { Delegation, Redelegation, QueuedRedelegation, Undelegation, QueuedUndelegation, AllianceValidatorInfo } from "./alliance/delegations";
|
|
497
|
+
export { DelegateAllianceEvent, UndelegateAllianceEvent, RedelegateAllianceEvent, ClaimAllianceRewardsEvent } from "./alliance/events";
|
|
498
|
+
export { QueryParamsRequest as QueryAllianceParamsRequest, QueryParamsResponse as QueryAllianceParamsResponse, QueryAlliancesRequest, QueryAlliancesResponse, QueryAllianceRequest, QueryAllianceResponse, QueryIBCAllianceRequest, QueryAllianceValidatorRequest, QueryAllAllianceValidatorsRequest, QueryAllAlliancesDelegationsRequest, QueryAlliancesDelegationsRequest, QueryAlliancesDelegationByValidatorRequest, DelegationResponse, QueryAlliancesDelegationsResponse, QueryAllianceDelegationRequest, QueryIBCAllianceDelegationRequest, QueryAllianceDelegationResponse, QueryAllianceDelegationRewardsRequest, QueryIBCAllianceDelegationRewardsRequest, QueryAllianceDelegationRewardsResponse, QueryAllianceValidatorResponse, QueryAllianceValidatorsResponse } from "./alliance/query";
|
|
499
|
+
export { Params as AllianceParams, RewardHistory as AllianceRewardHistory } from "./alliance/params";
|
|
476
500
|
export { QueryParamsRequest as QueryMarketstatsParamsRequest, QueryParamsResponse as QueryMarketstatsParamsResponse, QueryMarketStatsRequest, QueryMarketStatsResponse } from "./marketstats/query";
|
|
477
501
|
export { Params as MarketstatsParams } from "./marketstats/params";
|
|
478
502
|
export { MarketStats } from "./marketstats/marketstats";
|
|
@@ -523,4 +547,3 @@ export { QueryPriceTokenRequest, QueryPriceTokenResponse, QueryPriceSetRequest,
|
|
|
523
547
|
export { ParamsV2130 } from "./pricing/legacy";
|
|
524
548
|
export { PriceUpdateEvent, TokenPriceUpdateEvent, SetImpactBandEvent, SetSmoothenBandEvent, SetStaleIndexAllowanceEvent, SetBackfillTimeIntervalEvent } from "./pricing/event";
|
|
525
549
|
export { MsgExecuteContract } from "cosmjs-types/cosmwasm/wasm/v1/tx";
|
|
526
|
-
export { TextProposal, Proposal } from "./cosmos/gov/v1beta1/gov";
|