juno-network 0.3.0 → 0.4.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/main/codegen/confio/proofs.js +100 -315
- package/main/codegen/cosmos/authz/v1beta1/authz.js +5 -63
- package/main/codegen/cosmos/authz/v1beta1/event.js +12 -42
- package/main/codegen/cosmos/authz/v1beta1/genesis.js +0 -20
- package/main/codegen/cosmos/authz/v1beta1/query.js +6 -114
- package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +14 -26
- package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +22 -2
- package/main/codegen/cosmos/authz/v1beta1/tx.js +6 -92
- package/main/codegen/cosmos/bank/v1beta1/authz.js +5 -25
- package/main/codegen/cosmos/bank/v1beta1/bank.js +20 -178
- package/main/codegen/cosmos/bank/v1beta1/genesis.js +5 -73
- package/main/codegen/cosmos/bank/v1beta1/query.js +5 -264
- package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +24 -30
- package/main/codegen/cosmos/bank/v1beta1/query.rpc.query.js +53 -5
- package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +6 -6
- package/main/codegen/cosmos/bank/v1beta1/tx.js +11 -82
- package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -28
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +68 -312
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +12 -42
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +65 -418
- package/main/codegen/cosmos/base/v1beta1/coin.js +0 -46
- package/main/codegen/cosmos/bundle.js +101 -401
- package/main/codegen/cosmos/client.js +2 -34
- package/main/codegen/cosmos/crypto/ed25519/keys.js +0 -22
- package/main/codegen/cosmos/crypto/hd/v1/hd.js +11 -31
- package/main/codegen/cosmos/crypto/keyring/v1/record.js +16 -74
- package/main/codegen/cosmos/crypto/multisig/keys.js +5 -29
- package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +6 -40
- package/main/codegen/cosmos/crypto/secp256k1/keys.js +0 -22
- package/main/codegen/cosmos/crypto/secp256r1/keys.js +0 -22
- package/main/codegen/cosmos/distribution/v1beta1/distribution.js +57 -289
- package/main/codegen/cosmos/distribution/v1beta1/genesis.js +105 -300
- package/main/codegen/cosmos/distribution/v1beta1/query.js +63 -308
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +35 -41
- package/main/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +46 -4
- package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +15 -15
- package/main/codegen/cosmos/distribution/v1beta1/tx.js +28 -140
- package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -52
- package/main/codegen/cosmos/gov/v1/genesis.js +20 -70
- package/main/codegen/cosmos/gov/v1/gov.js +113 -256
- package/main/codegen/cosmos/gov/v1/query.js +57 -271
- package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -38
- package/main/codegen/cosmos/gov/v1/query.rpc.query.js +37 -2
- package/main/codegen/cosmos/gov/v1/tx.amino.js +16 -16
- package/main/codegen/cosmos/gov/v1/tx.js +25 -176
- package/main/codegen/cosmos/gov/v1/tx.registry.js +0 -64
- package/main/codegen/cosmos/gov/v1beta1/genesis.js +20 -70
- package/main/codegen/cosmos/gov/v1beta1/gov.js +103 -246
- package/main/codegen/cosmos/gov/v1beta1/query.js +57 -271
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -38
- package/main/codegen/cosmos/gov/v1beta1/query.rpc.query.js +37 -2
- package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +14 -14
- package/main/codegen/cosmos/gov/v1beta1/tx.js +25 -142
- package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -52
- package/main/codegen/cosmos/lcd.js +65 -198
- package/main/codegen/cosmos/rpc.query.js +58 -197
- package/main/codegen/cosmos/rpc.tx.js +31 -122
- package/main/codegen/cosmos/staking/v1beta1/authz.js +38 -59
- package/main/codegen/cosmos/staking/v1beta1/genesis.js +14 -96
- package/main/codegen/cosmos/staking/v1beta1/query.js +115 -497
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +48 -49
- package/main/codegen/cosmos/staking/v1beta1/query.rpc.query.js +61 -4
- package/main/codegen/cosmos/staking/v1beta1/staking.js +222 -565
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +47 -47
- package/main/codegen/cosmos/staking/v1beta1/tx.js +82 -205
- package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -64
- package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +29 -86
- package/main/codegen/cosmos/tx/v1beta1/service.js +69 -207
- package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +14 -26
- package/main/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +33 -7
- package/main/codegen/cosmos/tx/v1beta1/tx.js +102 -381
- package/main/codegen/cosmos/upgrade/v1beta1/query.js +22 -126
- package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +19 -29
- package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +34 -4
- package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +4 -4
- package/main/codegen/cosmos/upgrade/v1beta1/tx.js +0 -38
- package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -28
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +5 -61
- package/main/codegen/cosmos_proto/cosmos.js +17 -45
- package/main/codegen/cosmwasm/bundle.js +16 -16
- package/main/codegen/cosmwasm/lcd.js +76 -209
- package/main/codegen/cosmwasm/rpc.query.js +66 -207
- package/main/codegen/cosmwasm/rpc.tx.js +41 -132
- package/main/codegen/cosmwasm/wasm/v1/genesis.js +57 -178
- package/main/codegen/cosmwasm/wasm/v1/ibc.js +10 -36
- package/main/codegen/cosmwasm/wasm/v1/proposal.js +56 -250
- package/main/codegen/cosmwasm/wasm/v1/query.js +54 -322
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +28 -34
- package/main/codegen/cosmwasm/wasm/v1/query.rpc.query.js +50 -4
- package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +16 -16
- package/main/codegen/cosmwasm/wasm/v1/tx.js +32 -200
- package/main/codegen/cosmwasm/wasm/v1/tx.registry.js +0 -76
- package/main/codegen/cosmwasm/wasm/v1/types.js +80 -166
- package/main/codegen/gogoproto/bundle.js +2 -2
- package/main/codegen/google/bundle.js +9 -15
- package/main/codegen/google/protobuf/any.js +6 -20
- package/main/codegen/google/protobuf/descriptor.js +407 -1134
- package/main/codegen/google/protobuf/duration.js +0 -12
- package/main/codegen/google/protobuf/empty.js +0 -7
- package/main/codegen/google/protobuf/field_mask.js +0 -20
- package/main/codegen/google/protobuf/struct.js +51 -118
- package/main/codegen/google/protobuf/timestamp.js +0 -12
- package/main/codegen/google/protobuf/wrappers.js +0 -90
- package/main/codegen/ibc/applications/transfer/v1/genesis.js +10 -36
- package/main/codegen/ibc/applications/transfer/v1/query.js +10 -81
- package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +12 -24
- package/main/codegen/ibc/applications/transfer/v1/query.rpc.query.js +30 -4
- package/main/codegen/ibc/applications/transfer/v1/transfer.js +17 -43
- package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +14 -14
- package/main/codegen/ibc/applications/transfer/v1/tx.js +21 -50
- package/main/codegen/ibc/applications/transfer/v1/tx.registry.js +0 -16
- package/main/codegen/ibc/applications/transfer/v2/packet.js +0 -18
- package/main/codegen/ibc/bundle.js +56 -74
- package/main/codegen/ibc/core/channel/v1/channel.js +103 -198
- package/main/codegen/ibc/core/channel/v1/genesis.js +29 -131
- package/main/codegen/ibc/core/channel/v1/query.js +202 -646
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +45 -47
- package/main/codegen/ibc/core/channel/v1/query.rpc.query.js +57 -3
- package/main/codegen/ibc/core/channel/v1/tx.amino.js +183 -183
- package/main/codegen/ibc/core/channel/v1/tx.js +175 -425
- package/main/codegen/ibc/core/channel/v1/tx.registry.js +0 -124
- package/main/codegen/ibc/core/client/v1/client.js +57 -167
- package/main/codegen/ibc/core/client/v1/genesis.js +29 -111
- package/main/codegen/ibc/core/client/v1/query.js +79 -270
- package/main/codegen/ibc/core/client/v1/query.lcd.js +28 -35
- package/main/codegen/ibc/core/client/v1/query.rpc.query.js +51 -6
- package/main/codegen/ibc/core/client/v1/tx.amino.js +39 -39
- package/main/codegen/ibc/core/client/v1/tx.js +48 -140
- package/main/codegen/ibc/core/client/v1/tx.registry.js +0 -52
- package/main/codegen/ibc/core/commitment/v1/commitment.js +11 -73
- package/main/codegen/ibc/core/connection/v1/connection.js +61 -191
- package/main/codegen/ibc/core/connection/v1/genesis.js +10 -45
- package/main/codegen/ibc/core/connection/v1/query.js +75 -221
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -30
- package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +33 -3
- package/main/codegen/ibc/core/connection/v1/tx.amino.js +95 -95
- package/main/codegen/ibc/core/connection/v1/tx.js +118 -250
- package/main/codegen/ibc/core/connection/v1/tx.registry.js +0 -52
- package/main/codegen/ibc/lcd.js +107 -240
- package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +6 -20
- package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +115 -309
- package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +115 -309
- package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +86 -191
- package/main/codegen/ibc/rpc.query.js +88 -248
- package/main/codegen/ibc/rpc.tx.js +69 -160
- package/main/codegen/juno/bundle.js +9 -9
- package/main/codegen/juno/lcd.js +74 -207
- package/main/codegen/juno/mint/genesis.js +0 -14
- package/main/codegen/juno/mint/mint.js +22 -50
- package/main/codegen/juno/mint/query.js +6 -59
- package/main/codegen/juno/mint/query.lcd.js +12 -24
- package/main/codegen/juno/mint/query.rpc.query.js +31 -5
- package/main/codegen/juno/rpc.query.js +64 -205
- package/main/codegen/tendermint/abci/types.js +296 -1020
- package/main/codegen/tendermint/bundle.js +17 -17
- package/main/codegen/tendermint/crypto/keys.js +0 -14
- package/main/codegen/tendermint/crypto/proof.js +6 -92
- package/main/codegen/tendermint/libs/bits/types.js +0 -22
- package/main/codegen/tendermint/p2p/types.js +53 -143
- package/main/codegen/tendermint/types/block.js +5 -23
- package/main/codegen/tendermint/types/evidence.js +50 -128
- package/main/codegen/tendermint/types/params.js +51 -137
- package/main/codegen/tendermint/types/types.js +162 -372
- package/main/codegen/tendermint/types/validator.js +30 -82
- package/main/codegen/tendermint/version/types.js +0 -24
- package/main/index.js +1 -5
- package/package.json +5 -5
|
@@ -25,10 +25,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
25
25
|
|
|
26
26
|
function createBaseParams() {
|
|
27
27
|
return {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
communityTax: "",
|
|
29
|
+
baseProposerReward: "",
|
|
30
|
+
bonusProposerReward: "",
|
|
31
|
+
withdrawAddrEnabled: false
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -36,20 +36,20 @@ var Params = {
|
|
|
36
36
|
encode: function encode(message) {
|
|
37
37
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
38
38
|
|
|
39
|
-
if (message.
|
|
40
|
-
writer.uint32(10).string(message.
|
|
39
|
+
if (message.communityTax !== "") {
|
|
40
|
+
writer.uint32(10).string(message.communityTax);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
if (message.
|
|
44
|
-
writer.uint32(18).string(message.
|
|
43
|
+
if (message.baseProposerReward !== "") {
|
|
44
|
+
writer.uint32(18).string(message.baseProposerReward);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
if (message.
|
|
48
|
-
writer.uint32(26).string(message.
|
|
47
|
+
if (message.bonusProposerReward !== "") {
|
|
48
|
+
writer.uint32(26).string(message.bonusProposerReward);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
if (message.
|
|
52
|
-
writer.uint32(32).bool(message.
|
|
51
|
+
if (message.withdrawAddrEnabled === true) {
|
|
52
|
+
writer.uint32(32).bool(message.withdrawAddrEnabled);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
return writer;
|
|
@@ -64,19 +64,19 @@ var Params = {
|
|
|
64
64
|
|
|
65
65
|
switch (tag >>> 3) {
|
|
66
66
|
case 1:
|
|
67
|
-
message.
|
|
67
|
+
message.communityTax = reader.string();
|
|
68
68
|
break;
|
|
69
69
|
|
|
70
70
|
case 2:
|
|
71
|
-
message.
|
|
71
|
+
message.baseProposerReward = reader.string();
|
|
72
72
|
break;
|
|
73
73
|
|
|
74
74
|
case 3:
|
|
75
|
-
message.
|
|
75
|
+
message.bonusProposerReward = reader.string();
|
|
76
76
|
break;
|
|
77
77
|
|
|
78
78
|
case 4:
|
|
79
|
-
message.
|
|
79
|
+
message.withdrawAddrEnabled = reader.bool();
|
|
80
80
|
break;
|
|
81
81
|
|
|
82
82
|
default:
|
|
@@ -87,30 +87,14 @@ var Params = {
|
|
|
87
87
|
|
|
88
88
|
return message;
|
|
89
89
|
},
|
|
90
|
-
fromJSON: function fromJSON(object) {
|
|
91
|
-
return {
|
|
92
|
-
community_tax: (0, _helpers.isSet)(object.community_tax) ? String(object.community_tax) : "",
|
|
93
|
-
base_proposer_reward: (0, _helpers.isSet)(object.base_proposer_reward) ? String(object.base_proposer_reward) : "",
|
|
94
|
-
bonus_proposer_reward: (0, _helpers.isSet)(object.bonus_proposer_reward) ? String(object.bonus_proposer_reward) : "",
|
|
95
|
-
withdraw_addr_enabled: (0, _helpers.isSet)(object.withdraw_addr_enabled) ? Boolean(object.withdraw_addr_enabled) : false
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
toJSON: function toJSON(message) {
|
|
99
|
-
var obj = {};
|
|
100
|
-
message.community_tax !== undefined && (obj.community_tax = message.community_tax);
|
|
101
|
-
message.base_proposer_reward !== undefined && (obj.base_proposer_reward = message.base_proposer_reward);
|
|
102
|
-
message.bonus_proposer_reward !== undefined && (obj.bonus_proposer_reward = message.bonus_proposer_reward);
|
|
103
|
-
message.withdraw_addr_enabled !== undefined && (obj.withdraw_addr_enabled = message.withdraw_addr_enabled);
|
|
104
|
-
return obj;
|
|
105
|
-
},
|
|
106
90
|
fromPartial: function fromPartial(object) {
|
|
107
|
-
var _object$
|
|
91
|
+
var _object$communityTax, _object$baseProposerR, _object$bonusProposer, _object$withdrawAddrE;
|
|
108
92
|
|
|
109
93
|
var message = createBaseParams();
|
|
110
|
-
message.
|
|
111
|
-
message.
|
|
112
|
-
message.
|
|
113
|
-
message.
|
|
94
|
+
message.communityTax = (_object$communityTax = object.communityTax) !== null && _object$communityTax !== void 0 ? _object$communityTax : "";
|
|
95
|
+
message.baseProposerReward = (_object$baseProposerR = object.baseProposerReward) !== null && _object$baseProposerR !== void 0 ? _object$baseProposerR : "";
|
|
96
|
+
message.bonusProposerReward = (_object$bonusProposer = object.bonusProposerReward) !== null && _object$bonusProposer !== void 0 ? _object$bonusProposer : "";
|
|
97
|
+
message.withdrawAddrEnabled = (_object$withdrawAddrE = object.withdrawAddrEnabled) !== null && _object$withdrawAddrE !== void 0 ? _object$withdrawAddrE : false;
|
|
114
98
|
return message;
|
|
115
99
|
}
|
|
116
100
|
};
|
|
@@ -118,8 +102,8 @@ exports.Params = Params;
|
|
|
118
102
|
|
|
119
103
|
function createBaseValidatorHistoricalRewards() {
|
|
120
104
|
return {
|
|
121
|
-
|
|
122
|
-
|
|
105
|
+
cumulativeRewardRatio: [],
|
|
106
|
+
referenceCount: 0
|
|
123
107
|
};
|
|
124
108
|
}
|
|
125
109
|
|
|
@@ -127,7 +111,7 @@ var ValidatorHistoricalRewards = {
|
|
|
127
111
|
encode: function encode(message) {
|
|
128
112
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
129
113
|
|
|
130
|
-
var _iterator = _createForOfIteratorHelper(message.
|
|
114
|
+
var _iterator = _createForOfIteratorHelper(message.cumulativeRewardRatio),
|
|
131
115
|
_step;
|
|
132
116
|
|
|
133
117
|
try {
|
|
@@ -142,8 +126,8 @@ var ValidatorHistoricalRewards = {
|
|
|
142
126
|
_iterator.f();
|
|
143
127
|
}
|
|
144
128
|
|
|
145
|
-
if (message.
|
|
146
|
-
writer.uint32(16).uint32(message.
|
|
129
|
+
if (message.referenceCount !== 0) {
|
|
130
|
+
writer.uint32(16).uint32(message.referenceCount);
|
|
147
131
|
}
|
|
148
132
|
|
|
149
133
|
return writer;
|
|
@@ -158,11 +142,11 @@ var ValidatorHistoricalRewards = {
|
|
|
158
142
|
|
|
159
143
|
switch (tag >>> 3) {
|
|
160
144
|
case 1:
|
|
161
|
-
message.
|
|
145
|
+
message.cumulativeRewardRatio.push(_coin.DecCoin.decode(reader, reader.uint32()));
|
|
162
146
|
break;
|
|
163
147
|
|
|
164
148
|
case 2:
|
|
165
|
-
message.
|
|
149
|
+
message.referenceCount = reader.uint32();
|
|
166
150
|
break;
|
|
167
151
|
|
|
168
152
|
default:
|
|
@@ -173,36 +157,14 @@ var ValidatorHistoricalRewards = {
|
|
|
173
157
|
|
|
174
158
|
return message;
|
|
175
159
|
},
|
|
176
|
-
fromJSON: function fromJSON(object) {
|
|
177
|
-
return {
|
|
178
|
-
cumulative_reward_ratio: Array.isArray(object === null || object === void 0 ? void 0 : object.cumulative_reward_ratio) ? object.cumulative_reward_ratio.map(function (e) {
|
|
179
|
-
return _coin.DecCoin.fromJSON(e);
|
|
180
|
-
}) : [],
|
|
181
|
-
reference_count: (0, _helpers.isSet)(object.reference_count) ? Number(object.reference_count) : 0
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
toJSON: function toJSON(message) {
|
|
185
|
-
var obj = {};
|
|
186
|
-
|
|
187
|
-
if (message.cumulative_reward_ratio) {
|
|
188
|
-
obj.cumulative_reward_ratio = message.cumulative_reward_ratio.map(function (e) {
|
|
189
|
-
return e ? _coin.DecCoin.toJSON(e) : undefined;
|
|
190
|
-
});
|
|
191
|
-
} else {
|
|
192
|
-
obj.cumulative_reward_ratio = [];
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
message.reference_count !== undefined && (obj.reference_count = Math.round(message.reference_count));
|
|
196
|
-
return obj;
|
|
197
|
-
},
|
|
198
160
|
fromPartial: function fromPartial(object) {
|
|
199
|
-
var _object$
|
|
161
|
+
var _object$cumulativeRew, _object$referenceCoun;
|
|
200
162
|
|
|
201
163
|
var message = createBaseValidatorHistoricalRewards();
|
|
202
|
-
message.
|
|
164
|
+
message.cumulativeRewardRatio = ((_object$cumulativeRew = object.cumulativeRewardRatio) === null || _object$cumulativeRew === void 0 ? void 0 : _object$cumulativeRew.map(function (e) {
|
|
203
165
|
return _coin.DecCoin.fromPartial(e);
|
|
204
166
|
})) || [];
|
|
205
|
-
message.
|
|
167
|
+
message.referenceCount = (_object$referenceCoun = object.referenceCount) !== null && _object$referenceCoun !== void 0 ? _object$referenceCoun : 0;
|
|
206
168
|
return message;
|
|
207
169
|
}
|
|
208
170
|
};
|
|
@@ -265,28 +227,6 @@ var ValidatorCurrentRewards = {
|
|
|
265
227
|
|
|
266
228
|
return message;
|
|
267
229
|
},
|
|
268
|
-
fromJSON: function fromJSON(object) {
|
|
269
|
-
return {
|
|
270
|
-
rewards: Array.isArray(object === null || object === void 0 ? void 0 : object.rewards) ? object.rewards.map(function (e) {
|
|
271
|
-
return _coin.DecCoin.fromJSON(e);
|
|
272
|
-
}) : [],
|
|
273
|
-
period: (0, _helpers.isSet)(object.period) ? _helpers.Long.fromString(object.period) : _helpers.Long.UZERO
|
|
274
|
-
};
|
|
275
|
-
},
|
|
276
|
-
toJSON: function toJSON(message) {
|
|
277
|
-
var obj = {};
|
|
278
|
-
|
|
279
|
-
if (message.rewards) {
|
|
280
|
-
obj.rewards = message.rewards.map(function (e) {
|
|
281
|
-
return e ? _coin.DecCoin.toJSON(e) : undefined;
|
|
282
|
-
});
|
|
283
|
-
} else {
|
|
284
|
-
obj.rewards = [];
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
message.period !== undefined && (obj.period = (message.period || _helpers.Long.UZERO).toString());
|
|
288
|
-
return obj;
|
|
289
|
-
},
|
|
290
230
|
fromPartial: function fromPartial(object) {
|
|
291
231
|
var _object$rewards;
|
|
292
232
|
|
|
@@ -348,26 +288,6 @@ var ValidatorAccumulatedCommission = {
|
|
|
348
288
|
|
|
349
289
|
return message;
|
|
350
290
|
},
|
|
351
|
-
fromJSON: function fromJSON(object) {
|
|
352
|
-
return {
|
|
353
|
-
commission: Array.isArray(object === null || object === void 0 ? void 0 : object.commission) ? object.commission.map(function (e) {
|
|
354
|
-
return _coin.DecCoin.fromJSON(e);
|
|
355
|
-
}) : []
|
|
356
|
-
};
|
|
357
|
-
},
|
|
358
|
-
toJSON: function toJSON(message) {
|
|
359
|
-
var obj = {};
|
|
360
|
-
|
|
361
|
-
if (message.commission) {
|
|
362
|
-
obj.commission = message.commission.map(function (e) {
|
|
363
|
-
return e ? _coin.DecCoin.toJSON(e) : undefined;
|
|
364
|
-
});
|
|
365
|
-
} else {
|
|
366
|
-
obj.commission = [];
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
return obj;
|
|
370
|
-
},
|
|
371
291
|
fromPartial: function fromPartial(object) {
|
|
372
292
|
var _object$commission;
|
|
373
293
|
|
|
@@ -428,26 +348,6 @@ var ValidatorOutstandingRewards = {
|
|
|
428
348
|
|
|
429
349
|
return message;
|
|
430
350
|
},
|
|
431
|
-
fromJSON: function fromJSON(object) {
|
|
432
|
-
return {
|
|
433
|
-
rewards: Array.isArray(object === null || object === void 0 ? void 0 : object.rewards) ? object.rewards.map(function (e) {
|
|
434
|
-
return _coin.DecCoin.fromJSON(e);
|
|
435
|
-
}) : []
|
|
436
|
-
};
|
|
437
|
-
},
|
|
438
|
-
toJSON: function toJSON(message) {
|
|
439
|
-
var obj = {};
|
|
440
|
-
|
|
441
|
-
if (message.rewards) {
|
|
442
|
-
obj.rewards = message.rewards.map(function (e) {
|
|
443
|
-
return e ? _coin.DecCoin.toJSON(e) : undefined;
|
|
444
|
-
});
|
|
445
|
-
} else {
|
|
446
|
-
obj.rewards = [];
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
return obj;
|
|
450
|
-
},
|
|
451
351
|
fromPartial: function fromPartial(object) {
|
|
452
352
|
var _object$rewards2;
|
|
453
353
|
|
|
@@ -462,7 +362,7 @@ exports.ValidatorOutstandingRewards = ValidatorOutstandingRewards;
|
|
|
462
362
|
|
|
463
363
|
function createBaseValidatorSlashEvent() {
|
|
464
364
|
return {
|
|
465
|
-
|
|
365
|
+
validatorPeriod: _helpers.Long.UZERO,
|
|
466
366
|
fraction: ""
|
|
467
367
|
};
|
|
468
368
|
}
|
|
@@ -471,8 +371,8 @@ var ValidatorSlashEvent = {
|
|
|
471
371
|
encode: function encode(message) {
|
|
472
372
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
473
373
|
|
|
474
|
-
if (!message.
|
|
475
|
-
writer.uint32(8).uint64(message.
|
|
374
|
+
if (!message.validatorPeriod.isZero()) {
|
|
375
|
+
writer.uint32(8).uint64(message.validatorPeriod);
|
|
476
376
|
}
|
|
477
377
|
|
|
478
378
|
if (message.fraction !== "") {
|
|
@@ -491,7 +391,7 @@ var ValidatorSlashEvent = {
|
|
|
491
391
|
|
|
492
392
|
switch (tag >>> 3) {
|
|
493
393
|
case 1:
|
|
494
|
-
message.
|
|
394
|
+
message.validatorPeriod = reader.uint64();
|
|
495
395
|
break;
|
|
496
396
|
|
|
497
397
|
case 2:
|
|
@@ -506,23 +406,11 @@ var ValidatorSlashEvent = {
|
|
|
506
406
|
|
|
507
407
|
return message;
|
|
508
408
|
},
|
|
509
|
-
fromJSON: function fromJSON(object) {
|
|
510
|
-
return {
|
|
511
|
-
validator_period: (0, _helpers.isSet)(object.validator_period) ? _helpers.Long.fromString(object.validator_period) : _helpers.Long.UZERO,
|
|
512
|
-
fraction: (0, _helpers.isSet)(object.fraction) ? String(object.fraction) : ""
|
|
513
|
-
};
|
|
514
|
-
},
|
|
515
|
-
toJSON: function toJSON(message) {
|
|
516
|
-
var obj = {};
|
|
517
|
-
message.validator_period !== undefined && (obj.validator_period = (message.validator_period || _helpers.Long.UZERO).toString());
|
|
518
|
-
message.fraction !== undefined && (obj.fraction = message.fraction);
|
|
519
|
-
return obj;
|
|
520
|
-
},
|
|
521
409
|
fromPartial: function fromPartial(object) {
|
|
522
410
|
var _object$fraction;
|
|
523
411
|
|
|
524
412
|
var message = createBaseValidatorSlashEvent();
|
|
525
|
-
message.
|
|
413
|
+
message.validatorPeriod = object.validatorPeriod !== undefined && object.validatorPeriod !== null ? _helpers.Long.fromValue(object.validatorPeriod) : _helpers.Long.UZERO;
|
|
526
414
|
message.fraction = (_object$fraction = object.fraction) !== null && _object$fraction !== void 0 ? _object$fraction : "";
|
|
527
415
|
return message;
|
|
528
416
|
}
|
|
@@ -531,7 +419,7 @@ exports.ValidatorSlashEvent = ValidatorSlashEvent;
|
|
|
531
419
|
|
|
532
420
|
function createBaseValidatorSlashEvents() {
|
|
533
421
|
return {
|
|
534
|
-
|
|
422
|
+
validatorSlashEvents: []
|
|
535
423
|
};
|
|
536
424
|
}
|
|
537
425
|
|
|
@@ -539,7 +427,7 @@ var ValidatorSlashEvents = {
|
|
|
539
427
|
encode: function encode(message) {
|
|
540
428
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
541
429
|
|
|
542
|
-
var _iterator5 = _createForOfIteratorHelper(message.
|
|
430
|
+
var _iterator5 = _createForOfIteratorHelper(message.validatorSlashEvents),
|
|
543
431
|
_step5;
|
|
544
432
|
|
|
545
433
|
try {
|
|
@@ -565,7 +453,7 @@ var ValidatorSlashEvents = {
|
|
|
565
453
|
|
|
566
454
|
switch (tag >>> 3) {
|
|
567
455
|
case 1:
|
|
568
|
-
message.
|
|
456
|
+
message.validatorSlashEvents.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
|
|
569
457
|
break;
|
|
570
458
|
|
|
571
459
|
default:
|
|
@@ -576,31 +464,11 @@ var ValidatorSlashEvents = {
|
|
|
576
464
|
|
|
577
465
|
return message;
|
|
578
466
|
},
|
|
579
|
-
fromJSON: function fromJSON(object) {
|
|
580
|
-
return {
|
|
581
|
-
validator_slash_events: Array.isArray(object === null || object === void 0 ? void 0 : object.validator_slash_events) ? object.validator_slash_events.map(function (e) {
|
|
582
|
-
return ValidatorSlashEvent.fromJSON(e);
|
|
583
|
-
}) : []
|
|
584
|
-
};
|
|
585
|
-
},
|
|
586
|
-
toJSON: function toJSON(message) {
|
|
587
|
-
var obj = {};
|
|
588
|
-
|
|
589
|
-
if (message.validator_slash_events) {
|
|
590
|
-
obj.validator_slash_events = message.validator_slash_events.map(function (e) {
|
|
591
|
-
return e ? ValidatorSlashEvent.toJSON(e) : undefined;
|
|
592
|
-
});
|
|
593
|
-
} else {
|
|
594
|
-
obj.validator_slash_events = [];
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
return obj;
|
|
598
|
-
},
|
|
599
467
|
fromPartial: function fromPartial(object) {
|
|
600
|
-
var _object$
|
|
468
|
+
var _object$validatorSlas;
|
|
601
469
|
|
|
602
470
|
var message = createBaseValidatorSlashEvents();
|
|
603
|
-
message.
|
|
471
|
+
message.validatorSlashEvents = ((_object$validatorSlas = object.validatorSlashEvents) === null || _object$validatorSlas === void 0 ? void 0 : _object$validatorSlas.map(function (e) {
|
|
604
472
|
return ValidatorSlashEvent.fromPartial(e);
|
|
605
473
|
})) || [];
|
|
606
474
|
return message;
|
|
@@ -610,7 +478,7 @@ exports.ValidatorSlashEvents = ValidatorSlashEvents;
|
|
|
610
478
|
|
|
611
479
|
function createBaseFeePool() {
|
|
612
480
|
return {
|
|
613
|
-
|
|
481
|
+
communityPool: []
|
|
614
482
|
};
|
|
615
483
|
}
|
|
616
484
|
|
|
@@ -618,7 +486,7 @@ var FeePool = {
|
|
|
618
486
|
encode: function encode(message) {
|
|
619
487
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
620
488
|
|
|
621
|
-
var _iterator6 = _createForOfIteratorHelper(message.
|
|
489
|
+
var _iterator6 = _createForOfIteratorHelper(message.communityPool),
|
|
622
490
|
_step6;
|
|
623
491
|
|
|
624
492
|
try {
|
|
@@ -645,7 +513,7 @@ var FeePool = {
|
|
|
645
513
|
|
|
646
514
|
switch (tag >>> 3) {
|
|
647
515
|
case 1:
|
|
648
|
-
message.
|
|
516
|
+
message.communityPool.push(_coin.DecCoin.decode(reader, reader.uint32()));
|
|
649
517
|
break;
|
|
650
518
|
|
|
651
519
|
default:
|
|
@@ -656,31 +524,11 @@ var FeePool = {
|
|
|
656
524
|
|
|
657
525
|
return message;
|
|
658
526
|
},
|
|
659
|
-
fromJSON: function fromJSON(object) {
|
|
660
|
-
return {
|
|
661
|
-
community_pool: Array.isArray(object === null || object === void 0 ? void 0 : object.community_pool) ? object.community_pool.map(function (e) {
|
|
662
|
-
return _coin.DecCoin.fromJSON(e);
|
|
663
|
-
}) : []
|
|
664
|
-
};
|
|
665
|
-
},
|
|
666
|
-
toJSON: function toJSON(message) {
|
|
667
|
-
var obj = {};
|
|
668
|
-
|
|
669
|
-
if (message.community_pool) {
|
|
670
|
-
obj.community_pool = message.community_pool.map(function (e) {
|
|
671
|
-
return e ? _coin.DecCoin.toJSON(e) : undefined;
|
|
672
|
-
});
|
|
673
|
-
} else {
|
|
674
|
-
obj.community_pool = [];
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
return obj;
|
|
678
|
-
},
|
|
679
527
|
fromPartial: function fromPartial(object) {
|
|
680
|
-
var _object$
|
|
528
|
+
var _object$communityPool;
|
|
681
529
|
|
|
682
530
|
var message = createBaseFeePool();
|
|
683
|
-
message.
|
|
531
|
+
message.communityPool = ((_object$communityPool = object.communityPool) === null || _object$communityPool === void 0 ? void 0 : _object$communityPool.map(function (e) {
|
|
684
532
|
return _coin.DecCoin.fromPartial(e);
|
|
685
533
|
})) || [];
|
|
686
534
|
return message;
|
|
@@ -763,32 +611,6 @@ var CommunityPoolSpendProposal = {
|
|
|
763
611
|
|
|
764
612
|
return message;
|
|
765
613
|
},
|
|
766
|
-
fromJSON: function fromJSON(object) {
|
|
767
|
-
return {
|
|
768
|
-
title: (0, _helpers.isSet)(object.title) ? String(object.title) : "",
|
|
769
|
-
description: (0, _helpers.isSet)(object.description) ? String(object.description) : "",
|
|
770
|
-
recipient: (0, _helpers.isSet)(object.recipient) ? String(object.recipient) : "",
|
|
771
|
-
amount: Array.isArray(object === null || object === void 0 ? void 0 : object.amount) ? object.amount.map(function (e) {
|
|
772
|
-
return _coin.Coin.fromJSON(e);
|
|
773
|
-
}) : []
|
|
774
|
-
};
|
|
775
|
-
},
|
|
776
|
-
toJSON: function toJSON(message) {
|
|
777
|
-
var obj = {};
|
|
778
|
-
message.title !== undefined && (obj.title = message.title);
|
|
779
|
-
message.description !== undefined && (obj.description = message.description);
|
|
780
|
-
message.recipient !== undefined && (obj.recipient = message.recipient);
|
|
781
|
-
|
|
782
|
-
if (message.amount) {
|
|
783
|
-
obj.amount = message.amount.map(function (e) {
|
|
784
|
-
return e ? _coin.Coin.toJSON(e) : undefined;
|
|
785
|
-
});
|
|
786
|
-
} else {
|
|
787
|
-
obj.amount = [];
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
return obj;
|
|
791
|
-
},
|
|
792
614
|
fromPartial: function fromPartial(object) {
|
|
793
615
|
var _object$title, _object$description, _object$recipient, _object$amount;
|
|
794
616
|
|
|
@@ -806,7 +628,7 @@ exports.CommunityPoolSpendProposal = CommunityPoolSpendProposal;
|
|
|
806
628
|
|
|
807
629
|
function createBaseDelegatorStartingInfo() {
|
|
808
630
|
return {
|
|
809
|
-
|
|
631
|
+
previousPeriod: _helpers.Long.UZERO,
|
|
810
632
|
stake: "",
|
|
811
633
|
height: _helpers.Long.UZERO
|
|
812
634
|
};
|
|
@@ -816,8 +638,8 @@ var DelegatorStartingInfo = {
|
|
|
816
638
|
encode: function encode(message) {
|
|
817
639
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
818
640
|
|
|
819
|
-
if (!message.
|
|
820
|
-
writer.uint32(8).uint64(message.
|
|
641
|
+
if (!message.previousPeriod.isZero()) {
|
|
642
|
+
writer.uint32(8).uint64(message.previousPeriod);
|
|
821
643
|
}
|
|
822
644
|
|
|
823
645
|
if (message.stake !== "") {
|
|
@@ -840,7 +662,7 @@ var DelegatorStartingInfo = {
|
|
|
840
662
|
|
|
841
663
|
switch (tag >>> 3) {
|
|
842
664
|
case 1:
|
|
843
|
-
message.
|
|
665
|
+
message.previousPeriod = reader.uint64();
|
|
844
666
|
break;
|
|
845
667
|
|
|
846
668
|
case 2:
|
|
@@ -859,25 +681,11 @@ var DelegatorStartingInfo = {
|
|
|
859
681
|
|
|
860
682
|
return message;
|
|
861
683
|
},
|
|
862
|
-
fromJSON: function fromJSON(object) {
|
|
863
|
-
return {
|
|
864
|
-
previous_period: (0, _helpers.isSet)(object.previous_period) ? _helpers.Long.fromString(object.previous_period) : _helpers.Long.UZERO,
|
|
865
|
-
stake: (0, _helpers.isSet)(object.stake) ? String(object.stake) : "",
|
|
866
|
-
height: (0, _helpers.isSet)(object.height) ? _helpers.Long.fromString(object.height) : _helpers.Long.UZERO
|
|
867
|
-
};
|
|
868
|
-
},
|
|
869
|
-
toJSON: function toJSON(message) {
|
|
870
|
-
var obj = {};
|
|
871
|
-
message.previous_period !== undefined && (obj.previous_period = (message.previous_period || _helpers.Long.UZERO).toString());
|
|
872
|
-
message.stake !== undefined && (obj.stake = message.stake);
|
|
873
|
-
message.height !== undefined && (obj.height = (message.height || _helpers.Long.UZERO).toString());
|
|
874
|
-
return obj;
|
|
875
|
-
},
|
|
876
684
|
fromPartial: function fromPartial(object) {
|
|
877
685
|
var _object$stake;
|
|
878
686
|
|
|
879
687
|
var message = createBaseDelegatorStartingInfo();
|
|
880
|
-
message.
|
|
688
|
+
message.previousPeriod = object.previousPeriod !== undefined && object.previousPeriod !== null ? _helpers.Long.fromValue(object.previousPeriod) : _helpers.Long.UZERO;
|
|
881
689
|
message.stake = (_object$stake = object.stake) !== null && _object$stake !== void 0 ? _object$stake : "";
|
|
882
690
|
message.height = object.height !== undefined && object.height !== null ? _helpers.Long.fromValue(object.height) : _helpers.Long.UZERO;
|
|
883
691
|
return message;
|
|
@@ -887,7 +695,7 @@ exports.DelegatorStartingInfo = DelegatorStartingInfo;
|
|
|
887
695
|
|
|
888
696
|
function createBaseDelegationDelegatorReward() {
|
|
889
697
|
return {
|
|
890
|
-
|
|
698
|
+
validatorAddress: "",
|
|
891
699
|
reward: []
|
|
892
700
|
};
|
|
893
701
|
}
|
|
@@ -896,8 +704,8 @@ var DelegationDelegatorReward = {
|
|
|
896
704
|
encode: function encode(message) {
|
|
897
705
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
|
898
706
|
|
|
899
|
-
if (message.
|
|
900
|
-
writer.uint32(10).string(message.
|
|
707
|
+
if (message.validatorAddress !== "") {
|
|
708
|
+
writer.uint32(10).string(message.validatorAddress);
|
|
901
709
|
}
|
|
902
710
|
|
|
903
711
|
var _iterator8 = _createForOfIteratorHelper(message.reward),
|
|
@@ -927,7 +735,7 @@ var DelegationDelegatorReward = {
|
|
|
927
735
|
|
|
928
736
|
switch (tag >>> 3) {
|
|
929
737
|
case 1:
|
|
930
|
-
message.
|
|
738
|
+
message.validatorAddress = reader.string();
|
|
931
739
|
break;
|
|
932
740
|
|
|
933
741
|
case 2:
|
|
@@ -942,33 +750,11 @@ var DelegationDelegatorReward = {
|
|
|
942
750
|
|
|
943
751
|
return message;
|
|
944
752
|
},
|
|
945
|
-
fromJSON: function fromJSON(object) {
|
|
946
|
-
return {
|
|
947
|
-
validator_address: (0, _helpers.isSet)(object.validator_address) ? String(object.validator_address) : "",
|
|
948
|
-
reward: Array.isArray(object === null || object === void 0 ? void 0 : object.reward) ? object.reward.map(function (e) {
|
|
949
|
-
return _coin.DecCoin.fromJSON(e);
|
|
950
|
-
}) : []
|
|
951
|
-
};
|
|
952
|
-
},
|
|
953
|
-
toJSON: function toJSON(message) {
|
|
954
|
-
var obj = {};
|
|
955
|
-
message.validator_address !== undefined && (obj.validator_address = message.validator_address);
|
|
956
|
-
|
|
957
|
-
if (message.reward) {
|
|
958
|
-
obj.reward = message.reward.map(function (e) {
|
|
959
|
-
return e ? _coin.DecCoin.toJSON(e) : undefined;
|
|
960
|
-
});
|
|
961
|
-
} else {
|
|
962
|
-
obj.reward = [];
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
return obj;
|
|
966
|
-
},
|
|
967
753
|
fromPartial: function fromPartial(object) {
|
|
968
|
-
var _object$
|
|
754
|
+
var _object$validatorAddr, _object$reward;
|
|
969
755
|
|
|
970
756
|
var message = createBaseDelegationDelegatorReward();
|
|
971
|
-
message.
|
|
757
|
+
message.validatorAddress = (_object$validatorAddr = object.validatorAddress) !== null && _object$validatorAddr !== void 0 ? _object$validatorAddr : "";
|
|
972
758
|
message.reward = ((_object$reward = object.reward) === null || _object$reward === void 0 ? void 0 : _object$reward.map(function (e) {
|
|
973
759
|
return _coin.DecCoin.fromPartial(e);
|
|
974
760
|
})) || [];
|
|
@@ -1050,24 +836,6 @@ var CommunityPoolSpendProposalWithDeposit = {
|
|
|
1050
836
|
|
|
1051
837
|
return message;
|
|
1052
838
|
},
|
|
1053
|
-
fromJSON: function fromJSON(object) {
|
|
1054
|
-
return {
|
|
1055
|
-
title: (0, _helpers.isSet)(object.title) ? String(object.title) : "",
|
|
1056
|
-
description: (0, _helpers.isSet)(object.description) ? String(object.description) : "",
|
|
1057
|
-
recipient: (0, _helpers.isSet)(object.recipient) ? String(object.recipient) : "",
|
|
1058
|
-
amount: (0, _helpers.isSet)(object.amount) ? String(object.amount) : "",
|
|
1059
|
-
deposit: (0, _helpers.isSet)(object.deposit) ? String(object.deposit) : ""
|
|
1060
|
-
};
|
|
1061
|
-
},
|
|
1062
|
-
toJSON: function toJSON(message) {
|
|
1063
|
-
var obj = {};
|
|
1064
|
-
message.title !== undefined && (obj.title = message.title);
|
|
1065
|
-
message.description !== undefined && (obj.description = message.description);
|
|
1066
|
-
message.recipient !== undefined && (obj.recipient = message.recipient);
|
|
1067
|
-
message.amount !== undefined && (obj.amount = message.amount);
|
|
1068
|
-
message.deposit !== undefined && (obj.deposit = message.deposit);
|
|
1069
|
-
return obj;
|
|
1070
|
-
},
|
|
1071
839
|
fromPartial: function fromPartial(object) {
|
|
1072
840
|
var _object$title2, _object$description2, _object$recipient2, _object$amount2, _object$deposit;
|
|
1073
841
|
|