coreum-js 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/client/index.d.ts +2 -1
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/params.js +14 -6
- package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/main/coreum/asset/ft/v1/query.js +116 -54
- package/dist/main/coreum/asset/ft/v1/token.d.ts +1 -0
- package/dist/main/coreum/asset/ft/v1/token.js +6 -0
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/nft/v1/params.js +14 -6
- package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/main/coreum/asset/nft/v1/query.js +49 -22
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/query.js +22 -11
- package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/main/coreum/nft/v1beta1/query.js +83 -39
- package/dist/main/cosmos/extensions/bank.d.ts +8 -8
- package/dist/main/cosmos/extensions/bank.js +2 -2
- package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/main/cosmos/extensions/distribution.js +1 -1
- package/dist/main/cosmos/extensions/gov.d.ts +21 -21
- package/dist/main/cosmos/extensions/gov.js +1 -1
- package/dist/main/cosmos/index.d.ts +12 -21
- package/dist/main/cosmos/index.js +50 -42
- package/dist/main/types/msgs.d.ts +4 -4
- package/dist/main/wasm/v1/authz.d.ts +1 -1
- package/dist/main/wasm/v1/authz.js +1 -1
- package/dist/main/wasm/v1/proposal.d.ts +1 -1
- package/dist/main/wasm/v1/proposal.js +1 -1
- package/dist/main/wasm/v1/tx.d.ts +1 -1
- package/dist/main/wasm/v1/tx.js +1 -1
- package/dist/module/client/index.d.ts +2 -1
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/params.js +14 -6
- package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/module/coreum/asset/ft/v1/query.js +116 -54
- package/dist/module/coreum/asset/ft/v1/token.d.ts +1 -0
- package/dist/module/coreum/asset/ft/v1/token.js +6 -0
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/nft/v1/params.js +14 -6
- package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/module/coreum/asset/nft/v1/query.js +49 -22
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/query.js +22 -11
- package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/module/coreum/nft/v1beta1/query.js +83 -39
- package/dist/module/cosmos/extensions/bank.d.ts +8 -8
- package/dist/module/cosmos/extensions/bank.js +2 -2
- package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/module/cosmos/extensions/distribution.js +1 -1
- package/dist/module/cosmos/extensions/gov.d.ts +21 -21
- package/dist/module/cosmos/extensions/gov.js +1 -1
- package/dist/module/cosmos/index.d.ts +12 -21
- package/dist/module/cosmos/index.js +29 -19
- package/dist/module/types/msgs.d.ts +4 -4
- package/dist/module/wasm/v1/authz.d.ts +1 -1
- package/dist/module/wasm/v1/authz.js +1 -1
- package/dist/module/wasm/v1/proposal.d.ts +1 -1
- package/dist/module/wasm/v1/proposal.js +1 -1
- package/dist/module/wasm/v1/tx.d.ts +1 -1
- package/dist/module/wasm/v1/tx.js +1 -1
- package/package.json +1 -1
- package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
- package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
- package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
- package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
- package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
- package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
- package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
- package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
- package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
- package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
- package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
- package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
- package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
- package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
- package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
- package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
- package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
- package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
- package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
- package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
- package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
- package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
- package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
- package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/main/cosmos/msg/v1/msg.js +0 -5
- package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
- package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
- package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
- package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
- package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
- package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
- package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
- package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
- package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
- package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
- package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
- package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
- package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
- package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
- package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
- package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
- package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
- package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
- package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
- package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
- package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
- package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
- package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
- package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
- package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
- package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
- package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
- package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
- package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
- package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
- package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/module/cosmos/msg/v1/msg.js +0 -2
- package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
- package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
- package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
- package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
- package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
- package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
- package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
|
@@ -1,1315 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import Long from "long";
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { PageRequest, PageResponse } from "./pagination";
|
|
5
|
-
import { DecCoin } from "../../base/v1beta1/coin";
|
|
6
|
-
import { DelegationDelegatorReward, Params, ValidatorAccumulatedCommission, ValidatorOutstandingRewards, ValidatorSlashEvent, } from "./distribution";
|
|
7
|
-
export const protobufPackage = "cosmos.distribution.v1beta1";
|
|
8
|
-
function createBaseQueryParamsRequest() {
|
|
9
|
-
return {};
|
|
10
|
-
}
|
|
11
|
-
export const QueryParamsRequest = {
|
|
12
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
13
|
-
return writer;
|
|
14
|
-
},
|
|
15
|
-
decode(input, length) {
|
|
16
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
17
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
18
|
-
const message = createBaseQueryParamsRequest();
|
|
19
|
-
while (reader.pos < end) {
|
|
20
|
-
const tag = reader.uint32();
|
|
21
|
-
switch (tag >>> 3) {
|
|
22
|
-
}
|
|
23
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
24
|
-
break;
|
|
25
|
-
}
|
|
26
|
-
reader.skipType(tag & 7);
|
|
27
|
-
}
|
|
28
|
-
return message;
|
|
29
|
-
},
|
|
30
|
-
fromJSON(_) {
|
|
31
|
-
return {};
|
|
32
|
-
},
|
|
33
|
-
toJSON(_) {
|
|
34
|
-
const obj = {};
|
|
35
|
-
return obj;
|
|
36
|
-
},
|
|
37
|
-
create(base) {
|
|
38
|
-
return QueryParamsRequest.fromPartial(base ?? {});
|
|
39
|
-
},
|
|
40
|
-
fromPartial(_) {
|
|
41
|
-
const message = createBaseQueryParamsRequest();
|
|
42
|
-
return message;
|
|
43
|
-
},
|
|
44
|
-
};
|
|
45
|
-
function createBaseQueryParamsResponse() {
|
|
46
|
-
return { params: undefined };
|
|
47
|
-
}
|
|
48
|
-
export const QueryParamsResponse = {
|
|
49
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
50
|
-
if (message.params !== undefined) {
|
|
51
|
-
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
52
|
-
}
|
|
53
|
-
return writer;
|
|
54
|
-
},
|
|
55
|
-
decode(input, length) {
|
|
56
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
57
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
58
|
-
const message = createBaseQueryParamsResponse();
|
|
59
|
-
while (reader.pos < end) {
|
|
60
|
-
const tag = reader.uint32();
|
|
61
|
-
switch (tag >>> 3) {
|
|
62
|
-
case 1:
|
|
63
|
-
if (tag !== 10) {
|
|
64
|
-
break;
|
|
65
|
-
}
|
|
66
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
67
|
-
continue;
|
|
68
|
-
}
|
|
69
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
reader.skipType(tag & 7);
|
|
73
|
-
}
|
|
74
|
-
return message;
|
|
75
|
-
},
|
|
76
|
-
fromJSON(object) {
|
|
77
|
-
return {
|
|
78
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
toJSON(message) {
|
|
82
|
-
const obj = {};
|
|
83
|
-
message.params !== undefined &&
|
|
84
|
-
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
85
|
-
return obj;
|
|
86
|
-
},
|
|
87
|
-
create(base) {
|
|
88
|
-
return QueryParamsResponse.fromPartial(base ?? {});
|
|
89
|
-
},
|
|
90
|
-
fromPartial(object) {
|
|
91
|
-
const message = createBaseQueryParamsResponse();
|
|
92
|
-
message.params =
|
|
93
|
-
object.params !== undefined && object.params !== null
|
|
94
|
-
? Params.fromPartial(object.params)
|
|
95
|
-
: undefined;
|
|
96
|
-
return message;
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
function createBaseQueryValidatorDistributionInfoRequest() {
|
|
100
|
-
return { validatorAddress: "" };
|
|
101
|
-
}
|
|
102
|
-
export const QueryValidatorDistributionInfoRequest = {
|
|
103
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
104
|
-
if (message.validatorAddress !== "") {
|
|
105
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
106
|
-
}
|
|
107
|
-
return writer;
|
|
108
|
-
},
|
|
109
|
-
decode(input, length) {
|
|
110
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
111
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
112
|
-
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
113
|
-
while (reader.pos < end) {
|
|
114
|
-
const tag = reader.uint32();
|
|
115
|
-
switch (tag >>> 3) {
|
|
116
|
-
case 1:
|
|
117
|
-
if (tag !== 10) {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
message.validatorAddress = reader.string();
|
|
121
|
-
continue;
|
|
122
|
-
}
|
|
123
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
reader.skipType(tag & 7);
|
|
127
|
-
}
|
|
128
|
-
return message;
|
|
129
|
-
},
|
|
130
|
-
fromJSON(object) {
|
|
131
|
-
return {
|
|
132
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
133
|
-
? String(object.validatorAddress)
|
|
134
|
-
: "",
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
toJSON(message) {
|
|
138
|
-
const obj = {};
|
|
139
|
-
message.validatorAddress !== undefined &&
|
|
140
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
141
|
-
return obj;
|
|
142
|
-
},
|
|
143
|
-
create(base) {
|
|
144
|
-
return QueryValidatorDistributionInfoRequest.fromPartial(base ?? {});
|
|
145
|
-
},
|
|
146
|
-
fromPartial(object) {
|
|
147
|
-
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
148
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
149
|
-
return message;
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
function createBaseQueryValidatorDistributionInfoResponse() {
|
|
153
|
-
return { operatorAddress: "", selfBondRewards: [], commission: [] };
|
|
154
|
-
}
|
|
155
|
-
export const QueryValidatorDistributionInfoResponse = {
|
|
156
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
157
|
-
if (message.operatorAddress !== "") {
|
|
158
|
-
writer.uint32(10).string(message.operatorAddress);
|
|
159
|
-
}
|
|
160
|
-
for (const v of message.selfBondRewards) {
|
|
161
|
-
DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
162
|
-
}
|
|
163
|
-
for (const v of message.commission) {
|
|
164
|
-
DecCoin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
165
|
-
}
|
|
166
|
-
return writer;
|
|
167
|
-
},
|
|
168
|
-
decode(input, length) {
|
|
169
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
170
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
171
|
-
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
172
|
-
while (reader.pos < end) {
|
|
173
|
-
const tag = reader.uint32();
|
|
174
|
-
switch (tag >>> 3) {
|
|
175
|
-
case 1:
|
|
176
|
-
if (tag !== 10) {
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
message.operatorAddress = reader.string();
|
|
180
|
-
continue;
|
|
181
|
-
case 2:
|
|
182
|
-
if (tag !== 18) {
|
|
183
|
-
break;
|
|
184
|
-
}
|
|
185
|
-
message.selfBondRewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
186
|
-
continue;
|
|
187
|
-
case 3:
|
|
188
|
-
if (tag !== 26) {
|
|
189
|
-
break;
|
|
190
|
-
}
|
|
191
|
-
message.commission.push(DecCoin.decode(reader, reader.uint32()));
|
|
192
|
-
continue;
|
|
193
|
-
}
|
|
194
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
reader.skipType(tag & 7);
|
|
198
|
-
}
|
|
199
|
-
return message;
|
|
200
|
-
},
|
|
201
|
-
fromJSON(object) {
|
|
202
|
-
return {
|
|
203
|
-
operatorAddress: isSet(object.operatorAddress)
|
|
204
|
-
? String(object.operatorAddress)
|
|
205
|
-
: "",
|
|
206
|
-
selfBondRewards: Array.isArray(object?.selfBondRewards)
|
|
207
|
-
? object.selfBondRewards.map((e) => DecCoin.fromJSON(e))
|
|
208
|
-
: [],
|
|
209
|
-
commission: Array.isArray(object?.commission)
|
|
210
|
-
? object.commission.map((e) => DecCoin.fromJSON(e))
|
|
211
|
-
: [],
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
toJSON(message) {
|
|
215
|
-
const obj = {};
|
|
216
|
-
message.operatorAddress !== undefined &&
|
|
217
|
-
(obj.operatorAddress = message.operatorAddress);
|
|
218
|
-
if (message.selfBondRewards) {
|
|
219
|
-
obj.selfBondRewards = message.selfBondRewards.map((e) => e ? DecCoin.toJSON(e) : undefined);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
obj.selfBondRewards = [];
|
|
223
|
-
}
|
|
224
|
-
if (message.commission) {
|
|
225
|
-
obj.commission = message.commission.map((e) => e ? DecCoin.toJSON(e) : undefined);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
obj.commission = [];
|
|
229
|
-
}
|
|
230
|
-
return obj;
|
|
231
|
-
},
|
|
232
|
-
create(base) {
|
|
233
|
-
return QueryValidatorDistributionInfoResponse.fromPartial(base ?? {});
|
|
234
|
-
},
|
|
235
|
-
fromPartial(object) {
|
|
236
|
-
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
237
|
-
message.operatorAddress = object.operatorAddress ?? "";
|
|
238
|
-
message.selfBondRewards =
|
|
239
|
-
object.selfBondRewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
240
|
-
message.commission =
|
|
241
|
-
object.commission?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
242
|
-
return message;
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
function createBaseQueryValidatorOutstandingRewardsRequest() {
|
|
246
|
-
return { validatorAddress: "" };
|
|
247
|
-
}
|
|
248
|
-
export const QueryValidatorOutstandingRewardsRequest = {
|
|
249
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
250
|
-
if (message.validatorAddress !== "") {
|
|
251
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
252
|
-
}
|
|
253
|
-
return writer;
|
|
254
|
-
},
|
|
255
|
-
decode(input, length) {
|
|
256
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
257
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
258
|
-
const message = createBaseQueryValidatorOutstandingRewardsRequest();
|
|
259
|
-
while (reader.pos < end) {
|
|
260
|
-
const tag = reader.uint32();
|
|
261
|
-
switch (tag >>> 3) {
|
|
262
|
-
case 1:
|
|
263
|
-
if (tag !== 10) {
|
|
264
|
-
break;
|
|
265
|
-
}
|
|
266
|
-
message.validatorAddress = reader.string();
|
|
267
|
-
continue;
|
|
268
|
-
}
|
|
269
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
reader.skipType(tag & 7);
|
|
273
|
-
}
|
|
274
|
-
return message;
|
|
275
|
-
},
|
|
276
|
-
fromJSON(object) {
|
|
277
|
-
return {
|
|
278
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
279
|
-
? String(object.validatorAddress)
|
|
280
|
-
: "",
|
|
281
|
-
};
|
|
282
|
-
},
|
|
283
|
-
toJSON(message) {
|
|
284
|
-
const obj = {};
|
|
285
|
-
message.validatorAddress !== undefined &&
|
|
286
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
287
|
-
return obj;
|
|
288
|
-
},
|
|
289
|
-
create(base) {
|
|
290
|
-
return QueryValidatorOutstandingRewardsRequest.fromPartial(base ?? {});
|
|
291
|
-
},
|
|
292
|
-
fromPartial(object) {
|
|
293
|
-
const message = createBaseQueryValidatorOutstandingRewardsRequest();
|
|
294
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
295
|
-
return message;
|
|
296
|
-
},
|
|
297
|
-
};
|
|
298
|
-
function createBaseQueryValidatorOutstandingRewardsResponse() {
|
|
299
|
-
return { rewards: undefined };
|
|
300
|
-
}
|
|
301
|
-
export const QueryValidatorOutstandingRewardsResponse = {
|
|
302
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
303
|
-
if (message.rewards !== undefined) {
|
|
304
|
-
ValidatorOutstandingRewards.encode(message.rewards, writer.uint32(10).fork()).ldelim();
|
|
305
|
-
}
|
|
306
|
-
return writer;
|
|
307
|
-
},
|
|
308
|
-
decode(input, length) {
|
|
309
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
310
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
311
|
-
const message = createBaseQueryValidatorOutstandingRewardsResponse();
|
|
312
|
-
while (reader.pos < end) {
|
|
313
|
-
const tag = reader.uint32();
|
|
314
|
-
switch (tag >>> 3) {
|
|
315
|
-
case 1:
|
|
316
|
-
if (tag !== 10) {
|
|
317
|
-
break;
|
|
318
|
-
}
|
|
319
|
-
message.rewards = ValidatorOutstandingRewards.decode(reader, reader.uint32());
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
reader.skipType(tag & 7);
|
|
326
|
-
}
|
|
327
|
-
return message;
|
|
328
|
-
},
|
|
329
|
-
fromJSON(object) {
|
|
330
|
-
return {
|
|
331
|
-
rewards: isSet(object.rewards)
|
|
332
|
-
? ValidatorOutstandingRewards.fromJSON(object.rewards)
|
|
333
|
-
: undefined,
|
|
334
|
-
};
|
|
335
|
-
},
|
|
336
|
-
toJSON(message) {
|
|
337
|
-
const obj = {};
|
|
338
|
-
message.rewards !== undefined &&
|
|
339
|
-
(obj.rewards = message.rewards
|
|
340
|
-
? ValidatorOutstandingRewards.toJSON(message.rewards)
|
|
341
|
-
: undefined);
|
|
342
|
-
return obj;
|
|
343
|
-
},
|
|
344
|
-
create(base) {
|
|
345
|
-
return QueryValidatorOutstandingRewardsResponse.fromPartial(base ?? {});
|
|
346
|
-
},
|
|
347
|
-
fromPartial(object) {
|
|
348
|
-
const message = createBaseQueryValidatorOutstandingRewardsResponse();
|
|
349
|
-
message.rewards =
|
|
350
|
-
object.rewards !== undefined && object.rewards !== null
|
|
351
|
-
? ValidatorOutstandingRewards.fromPartial(object.rewards)
|
|
352
|
-
: undefined;
|
|
353
|
-
return message;
|
|
354
|
-
},
|
|
355
|
-
};
|
|
356
|
-
function createBaseQueryValidatorCommissionRequest() {
|
|
357
|
-
return { validatorAddress: "" };
|
|
358
|
-
}
|
|
359
|
-
export const QueryValidatorCommissionRequest = {
|
|
360
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
361
|
-
if (message.validatorAddress !== "") {
|
|
362
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
363
|
-
}
|
|
364
|
-
return writer;
|
|
365
|
-
},
|
|
366
|
-
decode(input, length) {
|
|
367
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
368
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
369
|
-
const message = createBaseQueryValidatorCommissionRequest();
|
|
370
|
-
while (reader.pos < end) {
|
|
371
|
-
const tag = reader.uint32();
|
|
372
|
-
switch (tag >>> 3) {
|
|
373
|
-
case 1:
|
|
374
|
-
if (tag !== 10) {
|
|
375
|
-
break;
|
|
376
|
-
}
|
|
377
|
-
message.validatorAddress = reader.string();
|
|
378
|
-
continue;
|
|
379
|
-
}
|
|
380
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
reader.skipType(tag & 7);
|
|
384
|
-
}
|
|
385
|
-
return message;
|
|
386
|
-
},
|
|
387
|
-
fromJSON(object) {
|
|
388
|
-
return {
|
|
389
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
390
|
-
? String(object.validatorAddress)
|
|
391
|
-
: "",
|
|
392
|
-
};
|
|
393
|
-
},
|
|
394
|
-
toJSON(message) {
|
|
395
|
-
const obj = {};
|
|
396
|
-
message.validatorAddress !== undefined &&
|
|
397
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
398
|
-
return obj;
|
|
399
|
-
},
|
|
400
|
-
create(base) {
|
|
401
|
-
return QueryValidatorCommissionRequest.fromPartial(base ?? {});
|
|
402
|
-
},
|
|
403
|
-
fromPartial(object) {
|
|
404
|
-
const message = createBaseQueryValidatorCommissionRequest();
|
|
405
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
406
|
-
return message;
|
|
407
|
-
},
|
|
408
|
-
};
|
|
409
|
-
function createBaseQueryValidatorCommissionResponse() {
|
|
410
|
-
return { commission: undefined };
|
|
411
|
-
}
|
|
412
|
-
export const QueryValidatorCommissionResponse = {
|
|
413
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
414
|
-
if (message.commission !== undefined) {
|
|
415
|
-
ValidatorAccumulatedCommission.encode(message.commission, writer.uint32(10).fork()).ldelim();
|
|
416
|
-
}
|
|
417
|
-
return writer;
|
|
418
|
-
},
|
|
419
|
-
decode(input, length) {
|
|
420
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
421
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
422
|
-
const message = createBaseQueryValidatorCommissionResponse();
|
|
423
|
-
while (reader.pos < end) {
|
|
424
|
-
const tag = reader.uint32();
|
|
425
|
-
switch (tag >>> 3) {
|
|
426
|
-
case 1:
|
|
427
|
-
if (tag !== 10) {
|
|
428
|
-
break;
|
|
429
|
-
}
|
|
430
|
-
message.commission = ValidatorAccumulatedCommission.decode(reader, reader.uint32());
|
|
431
|
-
continue;
|
|
432
|
-
}
|
|
433
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
434
|
-
break;
|
|
435
|
-
}
|
|
436
|
-
reader.skipType(tag & 7);
|
|
437
|
-
}
|
|
438
|
-
return message;
|
|
439
|
-
},
|
|
440
|
-
fromJSON(object) {
|
|
441
|
-
return {
|
|
442
|
-
commission: isSet(object.commission)
|
|
443
|
-
? ValidatorAccumulatedCommission.fromJSON(object.commission)
|
|
444
|
-
: undefined,
|
|
445
|
-
};
|
|
446
|
-
},
|
|
447
|
-
toJSON(message) {
|
|
448
|
-
const obj = {};
|
|
449
|
-
message.commission !== undefined &&
|
|
450
|
-
(obj.commission = message.commission
|
|
451
|
-
? ValidatorAccumulatedCommission.toJSON(message.commission)
|
|
452
|
-
: undefined);
|
|
453
|
-
return obj;
|
|
454
|
-
},
|
|
455
|
-
create(base) {
|
|
456
|
-
return QueryValidatorCommissionResponse.fromPartial(base ?? {});
|
|
457
|
-
},
|
|
458
|
-
fromPartial(object) {
|
|
459
|
-
const message = createBaseQueryValidatorCommissionResponse();
|
|
460
|
-
message.commission =
|
|
461
|
-
object.commission !== undefined && object.commission !== null
|
|
462
|
-
? ValidatorAccumulatedCommission.fromPartial(object.commission)
|
|
463
|
-
: undefined;
|
|
464
|
-
return message;
|
|
465
|
-
},
|
|
466
|
-
};
|
|
467
|
-
function createBaseQueryValidatorSlashesRequest() {
|
|
468
|
-
return {
|
|
469
|
-
validatorAddress: "",
|
|
470
|
-
startingHeight: 0,
|
|
471
|
-
endingHeight: 0,
|
|
472
|
-
pagination: undefined,
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
export const QueryValidatorSlashesRequest = {
|
|
476
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
477
|
-
if (message.validatorAddress !== "") {
|
|
478
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
479
|
-
}
|
|
480
|
-
if (message.startingHeight !== 0) {
|
|
481
|
-
writer.uint32(16).uint64(message.startingHeight);
|
|
482
|
-
}
|
|
483
|
-
if (message.endingHeight !== 0) {
|
|
484
|
-
writer.uint32(24).uint64(message.endingHeight);
|
|
485
|
-
}
|
|
486
|
-
if (message.pagination !== undefined) {
|
|
487
|
-
PageRequest.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
488
|
-
}
|
|
489
|
-
return writer;
|
|
490
|
-
},
|
|
491
|
-
decode(input, length) {
|
|
492
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
493
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
494
|
-
const message = createBaseQueryValidatorSlashesRequest();
|
|
495
|
-
while (reader.pos < end) {
|
|
496
|
-
const tag = reader.uint32();
|
|
497
|
-
switch (tag >>> 3) {
|
|
498
|
-
case 1:
|
|
499
|
-
if (tag !== 10) {
|
|
500
|
-
break;
|
|
501
|
-
}
|
|
502
|
-
message.validatorAddress = reader.string();
|
|
503
|
-
continue;
|
|
504
|
-
case 2:
|
|
505
|
-
if (tag !== 16) {
|
|
506
|
-
break;
|
|
507
|
-
}
|
|
508
|
-
message.startingHeight = longToNumber(reader.uint64());
|
|
509
|
-
continue;
|
|
510
|
-
case 3:
|
|
511
|
-
if (tag !== 24) {
|
|
512
|
-
break;
|
|
513
|
-
}
|
|
514
|
-
message.endingHeight = longToNumber(reader.uint64());
|
|
515
|
-
continue;
|
|
516
|
-
case 4:
|
|
517
|
-
if (tag !== 34) {
|
|
518
|
-
break;
|
|
519
|
-
}
|
|
520
|
-
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
521
|
-
continue;
|
|
522
|
-
}
|
|
523
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
524
|
-
break;
|
|
525
|
-
}
|
|
526
|
-
reader.skipType(tag & 7);
|
|
527
|
-
}
|
|
528
|
-
return message;
|
|
529
|
-
},
|
|
530
|
-
fromJSON(object) {
|
|
531
|
-
return {
|
|
532
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
533
|
-
? String(object.validatorAddress)
|
|
534
|
-
: "",
|
|
535
|
-
startingHeight: isSet(object.startingHeight)
|
|
536
|
-
? Number(object.startingHeight)
|
|
537
|
-
: 0,
|
|
538
|
-
endingHeight: isSet(object.endingHeight)
|
|
539
|
-
? Number(object.endingHeight)
|
|
540
|
-
: 0,
|
|
541
|
-
pagination: isSet(object.pagination)
|
|
542
|
-
? PageRequest.fromJSON(object.pagination)
|
|
543
|
-
: undefined,
|
|
544
|
-
};
|
|
545
|
-
},
|
|
546
|
-
toJSON(message) {
|
|
547
|
-
const obj = {};
|
|
548
|
-
message.validatorAddress !== undefined &&
|
|
549
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
550
|
-
message.startingHeight !== undefined &&
|
|
551
|
-
(obj.startingHeight = Math.round(message.startingHeight));
|
|
552
|
-
message.endingHeight !== undefined &&
|
|
553
|
-
(obj.endingHeight = Math.round(message.endingHeight));
|
|
554
|
-
message.pagination !== undefined &&
|
|
555
|
-
(obj.pagination = message.pagination
|
|
556
|
-
? PageRequest.toJSON(message.pagination)
|
|
557
|
-
: undefined);
|
|
558
|
-
return obj;
|
|
559
|
-
},
|
|
560
|
-
create(base) {
|
|
561
|
-
return QueryValidatorSlashesRequest.fromPartial(base ?? {});
|
|
562
|
-
},
|
|
563
|
-
fromPartial(object) {
|
|
564
|
-
const message = createBaseQueryValidatorSlashesRequest();
|
|
565
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
566
|
-
message.startingHeight = object.startingHeight ?? 0;
|
|
567
|
-
message.endingHeight = object.endingHeight ?? 0;
|
|
568
|
-
message.pagination =
|
|
569
|
-
object.pagination !== undefined && object.pagination !== null
|
|
570
|
-
? PageRequest.fromPartial(object.pagination)
|
|
571
|
-
: undefined;
|
|
572
|
-
return message;
|
|
573
|
-
},
|
|
574
|
-
};
|
|
575
|
-
function createBaseQueryValidatorSlashesResponse() {
|
|
576
|
-
return { slashes: [], pagination: undefined };
|
|
577
|
-
}
|
|
578
|
-
export const QueryValidatorSlashesResponse = {
|
|
579
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
580
|
-
for (const v of message.slashes) {
|
|
581
|
-
ValidatorSlashEvent.encode(v, writer.uint32(10).fork()).ldelim();
|
|
582
|
-
}
|
|
583
|
-
if (message.pagination !== undefined) {
|
|
584
|
-
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
585
|
-
}
|
|
586
|
-
return writer;
|
|
587
|
-
},
|
|
588
|
-
decode(input, length) {
|
|
589
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
590
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
591
|
-
const message = createBaseQueryValidatorSlashesResponse();
|
|
592
|
-
while (reader.pos < end) {
|
|
593
|
-
const tag = reader.uint32();
|
|
594
|
-
switch (tag >>> 3) {
|
|
595
|
-
case 1:
|
|
596
|
-
if (tag !== 10) {
|
|
597
|
-
break;
|
|
598
|
-
}
|
|
599
|
-
message.slashes.push(ValidatorSlashEvent.decode(reader, reader.uint32()));
|
|
600
|
-
continue;
|
|
601
|
-
case 2:
|
|
602
|
-
if (tag !== 18) {
|
|
603
|
-
break;
|
|
604
|
-
}
|
|
605
|
-
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
606
|
-
continue;
|
|
607
|
-
}
|
|
608
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
609
|
-
break;
|
|
610
|
-
}
|
|
611
|
-
reader.skipType(tag & 7);
|
|
612
|
-
}
|
|
613
|
-
return message;
|
|
614
|
-
},
|
|
615
|
-
fromJSON(object) {
|
|
616
|
-
return {
|
|
617
|
-
slashes: Array.isArray(object?.slashes)
|
|
618
|
-
? object.slashes.map((e) => ValidatorSlashEvent.fromJSON(e))
|
|
619
|
-
: [],
|
|
620
|
-
pagination: isSet(object.pagination)
|
|
621
|
-
? PageResponse.fromJSON(object.pagination)
|
|
622
|
-
: undefined,
|
|
623
|
-
};
|
|
624
|
-
},
|
|
625
|
-
toJSON(message) {
|
|
626
|
-
const obj = {};
|
|
627
|
-
if (message.slashes) {
|
|
628
|
-
obj.slashes = message.slashes.map((e) => e ? ValidatorSlashEvent.toJSON(e) : undefined);
|
|
629
|
-
}
|
|
630
|
-
else {
|
|
631
|
-
obj.slashes = [];
|
|
632
|
-
}
|
|
633
|
-
message.pagination !== undefined &&
|
|
634
|
-
(obj.pagination = message.pagination
|
|
635
|
-
? PageResponse.toJSON(message.pagination)
|
|
636
|
-
: undefined);
|
|
637
|
-
return obj;
|
|
638
|
-
},
|
|
639
|
-
create(base) {
|
|
640
|
-
return QueryValidatorSlashesResponse.fromPartial(base ?? {});
|
|
641
|
-
},
|
|
642
|
-
fromPartial(object) {
|
|
643
|
-
const message = createBaseQueryValidatorSlashesResponse();
|
|
644
|
-
message.slashes =
|
|
645
|
-
object.slashes?.map((e) => ValidatorSlashEvent.fromPartial(e)) || [];
|
|
646
|
-
message.pagination =
|
|
647
|
-
object.pagination !== undefined && object.pagination !== null
|
|
648
|
-
? PageResponse.fromPartial(object.pagination)
|
|
649
|
-
: undefined;
|
|
650
|
-
return message;
|
|
651
|
-
},
|
|
652
|
-
};
|
|
653
|
-
function createBaseQueryDelegationRewardsRequest() {
|
|
654
|
-
return { delegatorAddress: "", validatorAddress: "" };
|
|
655
|
-
}
|
|
656
|
-
export const QueryDelegationRewardsRequest = {
|
|
657
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
658
|
-
if (message.delegatorAddress !== "") {
|
|
659
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
660
|
-
}
|
|
661
|
-
if (message.validatorAddress !== "") {
|
|
662
|
-
writer.uint32(18).string(message.validatorAddress);
|
|
663
|
-
}
|
|
664
|
-
return writer;
|
|
665
|
-
},
|
|
666
|
-
decode(input, length) {
|
|
667
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
668
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
669
|
-
const message = createBaseQueryDelegationRewardsRequest();
|
|
670
|
-
while (reader.pos < end) {
|
|
671
|
-
const tag = reader.uint32();
|
|
672
|
-
switch (tag >>> 3) {
|
|
673
|
-
case 1:
|
|
674
|
-
if (tag !== 10) {
|
|
675
|
-
break;
|
|
676
|
-
}
|
|
677
|
-
message.delegatorAddress = reader.string();
|
|
678
|
-
continue;
|
|
679
|
-
case 2:
|
|
680
|
-
if (tag !== 18) {
|
|
681
|
-
break;
|
|
682
|
-
}
|
|
683
|
-
message.validatorAddress = reader.string();
|
|
684
|
-
continue;
|
|
685
|
-
}
|
|
686
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
687
|
-
break;
|
|
688
|
-
}
|
|
689
|
-
reader.skipType(tag & 7);
|
|
690
|
-
}
|
|
691
|
-
return message;
|
|
692
|
-
},
|
|
693
|
-
fromJSON(object) {
|
|
694
|
-
return {
|
|
695
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
696
|
-
? String(object.delegatorAddress)
|
|
697
|
-
: "",
|
|
698
|
-
validatorAddress: isSet(object.validatorAddress)
|
|
699
|
-
? String(object.validatorAddress)
|
|
700
|
-
: "",
|
|
701
|
-
};
|
|
702
|
-
},
|
|
703
|
-
toJSON(message) {
|
|
704
|
-
const obj = {};
|
|
705
|
-
message.delegatorAddress !== undefined &&
|
|
706
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
707
|
-
message.validatorAddress !== undefined &&
|
|
708
|
-
(obj.validatorAddress = message.validatorAddress);
|
|
709
|
-
return obj;
|
|
710
|
-
},
|
|
711
|
-
create(base) {
|
|
712
|
-
return QueryDelegationRewardsRequest.fromPartial(base ?? {});
|
|
713
|
-
},
|
|
714
|
-
fromPartial(object) {
|
|
715
|
-
const message = createBaseQueryDelegationRewardsRequest();
|
|
716
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
717
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
718
|
-
return message;
|
|
719
|
-
},
|
|
720
|
-
};
|
|
721
|
-
function createBaseQueryDelegationRewardsResponse() {
|
|
722
|
-
return { rewards: [] };
|
|
723
|
-
}
|
|
724
|
-
export const QueryDelegationRewardsResponse = {
|
|
725
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
726
|
-
for (const v of message.rewards) {
|
|
727
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
728
|
-
}
|
|
729
|
-
return writer;
|
|
730
|
-
},
|
|
731
|
-
decode(input, length) {
|
|
732
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
733
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
734
|
-
const message = createBaseQueryDelegationRewardsResponse();
|
|
735
|
-
while (reader.pos < end) {
|
|
736
|
-
const tag = reader.uint32();
|
|
737
|
-
switch (tag >>> 3) {
|
|
738
|
-
case 1:
|
|
739
|
-
if (tag !== 10) {
|
|
740
|
-
break;
|
|
741
|
-
}
|
|
742
|
-
message.rewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
743
|
-
continue;
|
|
744
|
-
}
|
|
745
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
746
|
-
break;
|
|
747
|
-
}
|
|
748
|
-
reader.skipType(tag & 7);
|
|
749
|
-
}
|
|
750
|
-
return message;
|
|
751
|
-
},
|
|
752
|
-
fromJSON(object) {
|
|
753
|
-
return {
|
|
754
|
-
rewards: Array.isArray(object?.rewards)
|
|
755
|
-
? object.rewards.map((e) => DecCoin.fromJSON(e))
|
|
756
|
-
: [],
|
|
757
|
-
};
|
|
758
|
-
},
|
|
759
|
-
toJSON(message) {
|
|
760
|
-
const obj = {};
|
|
761
|
-
if (message.rewards) {
|
|
762
|
-
obj.rewards = message.rewards.map((e) => e ? DecCoin.toJSON(e) : undefined);
|
|
763
|
-
}
|
|
764
|
-
else {
|
|
765
|
-
obj.rewards = [];
|
|
766
|
-
}
|
|
767
|
-
return obj;
|
|
768
|
-
},
|
|
769
|
-
create(base) {
|
|
770
|
-
return QueryDelegationRewardsResponse.fromPartial(base ?? {});
|
|
771
|
-
},
|
|
772
|
-
fromPartial(object) {
|
|
773
|
-
const message = createBaseQueryDelegationRewardsResponse();
|
|
774
|
-
message.rewards = object.rewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
775
|
-
return message;
|
|
776
|
-
},
|
|
777
|
-
};
|
|
778
|
-
function createBaseQueryDelegationTotalRewardsRequest() {
|
|
779
|
-
return { delegatorAddress: "" };
|
|
780
|
-
}
|
|
781
|
-
export const QueryDelegationTotalRewardsRequest = {
|
|
782
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
783
|
-
if (message.delegatorAddress !== "") {
|
|
784
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
785
|
-
}
|
|
786
|
-
return writer;
|
|
787
|
-
},
|
|
788
|
-
decode(input, length) {
|
|
789
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
790
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
791
|
-
const message = createBaseQueryDelegationTotalRewardsRequest();
|
|
792
|
-
while (reader.pos < end) {
|
|
793
|
-
const tag = reader.uint32();
|
|
794
|
-
switch (tag >>> 3) {
|
|
795
|
-
case 1:
|
|
796
|
-
if (tag !== 10) {
|
|
797
|
-
break;
|
|
798
|
-
}
|
|
799
|
-
message.delegatorAddress = reader.string();
|
|
800
|
-
continue;
|
|
801
|
-
}
|
|
802
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
803
|
-
break;
|
|
804
|
-
}
|
|
805
|
-
reader.skipType(tag & 7);
|
|
806
|
-
}
|
|
807
|
-
return message;
|
|
808
|
-
},
|
|
809
|
-
fromJSON(object) {
|
|
810
|
-
return {
|
|
811
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
812
|
-
? String(object.delegatorAddress)
|
|
813
|
-
: "",
|
|
814
|
-
};
|
|
815
|
-
},
|
|
816
|
-
toJSON(message) {
|
|
817
|
-
const obj = {};
|
|
818
|
-
message.delegatorAddress !== undefined &&
|
|
819
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
820
|
-
return obj;
|
|
821
|
-
},
|
|
822
|
-
create(base) {
|
|
823
|
-
return QueryDelegationTotalRewardsRequest.fromPartial(base ?? {});
|
|
824
|
-
},
|
|
825
|
-
fromPartial(object) {
|
|
826
|
-
const message = createBaseQueryDelegationTotalRewardsRequest();
|
|
827
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
828
|
-
return message;
|
|
829
|
-
},
|
|
830
|
-
};
|
|
831
|
-
function createBaseQueryDelegationTotalRewardsResponse() {
|
|
832
|
-
return { rewards: [], total: [] };
|
|
833
|
-
}
|
|
834
|
-
export const QueryDelegationTotalRewardsResponse = {
|
|
835
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
836
|
-
for (const v of message.rewards) {
|
|
837
|
-
DelegationDelegatorReward.encode(v, writer.uint32(10).fork()).ldelim();
|
|
838
|
-
}
|
|
839
|
-
for (const v of message.total) {
|
|
840
|
-
DecCoin.encode(v, writer.uint32(18).fork()).ldelim();
|
|
841
|
-
}
|
|
842
|
-
return writer;
|
|
843
|
-
},
|
|
844
|
-
decode(input, length) {
|
|
845
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
846
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
847
|
-
const message = createBaseQueryDelegationTotalRewardsResponse();
|
|
848
|
-
while (reader.pos < end) {
|
|
849
|
-
const tag = reader.uint32();
|
|
850
|
-
switch (tag >>> 3) {
|
|
851
|
-
case 1:
|
|
852
|
-
if (tag !== 10) {
|
|
853
|
-
break;
|
|
854
|
-
}
|
|
855
|
-
message.rewards.push(DelegationDelegatorReward.decode(reader, reader.uint32()));
|
|
856
|
-
continue;
|
|
857
|
-
case 2:
|
|
858
|
-
if (tag !== 18) {
|
|
859
|
-
break;
|
|
860
|
-
}
|
|
861
|
-
message.total.push(DecCoin.decode(reader, reader.uint32()));
|
|
862
|
-
continue;
|
|
863
|
-
}
|
|
864
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
865
|
-
break;
|
|
866
|
-
}
|
|
867
|
-
reader.skipType(tag & 7);
|
|
868
|
-
}
|
|
869
|
-
return message;
|
|
870
|
-
},
|
|
871
|
-
fromJSON(object) {
|
|
872
|
-
return {
|
|
873
|
-
rewards: Array.isArray(object?.rewards)
|
|
874
|
-
? object.rewards.map((e) => DelegationDelegatorReward.fromJSON(e))
|
|
875
|
-
: [],
|
|
876
|
-
total: Array.isArray(object?.total)
|
|
877
|
-
? object.total.map((e) => DecCoin.fromJSON(e))
|
|
878
|
-
: [],
|
|
879
|
-
};
|
|
880
|
-
},
|
|
881
|
-
toJSON(message) {
|
|
882
|
-
const obj = {};
|
|
883
|
-
if (message.rewards) {
|
|
884
|
-
obj.rewards = message.rewards.map((e) => e ? DelegationDelegatorReward.toJSON(e) : undefined);
|
|
885
|
-
}
|
|
886
|
-
else {
|
|
887
|
-
obj.rewards = [];
|
|
888
|
-
}
|
|
889
|
-
if (message.total) {
|
|
890
|
-
obj.total = message.total.map((e) => (e ? DecCoin.toJSON(e) : undefined));
|
|
891
|
-
}
|
|
892
|
-
else {
|
|
893
|
-
obj.total = [];
|
|
894
|
-
}
|
|
895
|
-
return obj;
|
|
896
|
-
},
|
|
897
|
-
create(base) {
|
|
898
|
-
return QueryDelegationTotalRewardsResponse.fromPartial(base ?? {});
|
|
899
|
-
},
|
|
900
|
-
fromPartial(object) {
|
|
901
|
-
const message = createBaseQueryDelegationTotalRewardsResponse();
|
|
902
|
-
message.rewards =
|
|
903
|
-
object.rewards?.map((e) => DelegationDelegatorReward.fromPartial(e)) ||
|
|
904
|
-
[];
|
|
905
|
-
message.total = object.total?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
906
|
-
return message;
|
|
907
|
-
},
|
|
908
|
-
};
|
|
909
|
-
function createBaseQueryDelegatorValidatorsRequest() {
|
|
910
|
-
return { delegatorAddress: "" };
|
|
911
|
-
}
|
|
912
|
-
export const QueryDelegatorValidatorsRequest = {
|
|
913
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
914
|
-
if (message.delegatorAddress !== "") {
|
|
915
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
916
|
-
}
|
|
917
|
-
return writer;
|
|
918
|
-
},
|
|
919
|
-
decode(input, length) {
|
|
920
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
921
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
922
|
-
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
923
|
-
while (reader.pos < end) {
|
|
924
|
-
const tag = reader.uint32();
|
|
925
|
-
switch (tag >>> 3) {
|
|
926
|
-
case 1:
|
|
927
|
-
if (tag !== 10) {
|
|
928
|
-
break;
|
|
929
|
-
}
|
|
930
|
-
message.delegatorAddress = reader.string();
|
|
931
|
-
continue;
|
|
932
|
-
}
|
|
933
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
934
|
-
break;
|
|
935
|
-
}
|
|
936
|
-
reader.skipType(tag & 7);
|
|
937
|
-
}
|
|
938
|
-
return message;
|
|
939
|
-
},
|
|
940
|
-
fromJSON(object) {
|
|
941
|
-
return {
|
|
942
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
943
|
-
? String(object.delegatorAddress)
|
|
944
|
-
: "",
|
|
945
|
-
};
|
|
946
|
-
},
|
|
947
|
-
toJSON(message) {
|
|
948
|
-
const obj = {};
|
|
949
|
-
message.delegatorAddress !== undefined &&
|
|
950
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
951
|
-
return obj;
|
|
952
|
-
},
|
|
953
|
-
create(base) {
|
|
954
|
-
return QueryDelegatorValidatorsRequest.fromPartial(base ?? {});
|
|
955
|
-
},
|
|
956
|
-
fromPartial(object) {
|
|
957
|
-
const message = createBaseQueryDelegatorValidatorsRequest();
|
|
958
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
959
|
-
return message;
|
|
960
|
-
},
|
|
961
|
-
};
|
|
962
|
-
function createBaseQueryDelegatorValidatorsResponse() {
|
|
963
|
-
return { validators: [] };
|
|
964
|
-
}
|
|
965
|
-
export const QueryDelegatorValidatorsResponse = {
|
|
966
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
967
|
-
for (const v of message.validators) {
|
|
968
|
-
writer.uint32(10).string(v);
|
|
969
|
-
}
|
|
970
|
-
return writer;
|
|
971
|
-
},
|
|
972
|
-
decode(input, length) {
|
|
973
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
974
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
975
|
-
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
976
|
-
while (reader.pos < end) {
|
|
977
|
-
const tag = reader.uint32();
|
|
978
|
-
switch (tag >>> 3) {
|
|
979
|
-
case 1:
|
|
980
|
-
if (tag !== 10) {
|
|
981
|
-
break;
|
|
982
|
-
}
|
|
983
|
-
message.validators.push(reader.string());
|
|
984
|
-
continue;
|
|
985
|
-
}
|
|
986
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
987
|
-
break;
|
|
988
|
-
}
|
|
989
|
-
reader.skipType(tag & 7);
|
|
990
|
-
}
|
|
991
|
-
return message;
|
|
992
|
-
},
|
|
993
|
-
fromJSON(object) {
|
|
994
|
-
return {
|
|
995
|
-
validators: Array.isArray(object?.validators)
|
|
996
|
-
? object.validators.map((e) => String(e))
|
|
997
|
-
: [],
|
|
998
|
-
};
|
|
999
|
-
},
|
|
1000
|
-
toJSON(message) {
|
|
1001
|
-
const obj = {};
|
|
1002
|
-
if (message.validators) {
|
|
1003
|
-
obj.validators = message.validators.map((e) => e);
|
|
1004
|
-
}
|
|
1005
|
-
else {
|
|
1006
|
-
obj.validators = [];
|
|
1007
|
-
}
|
|
1008
|
-
return obj;
|
|
1009
|
-
},
|
|
1010
|
-
create(base) {
|
|
1011
|
-
return QueryDelegatorValidatorsResponse.fromPartial(base ?? {});
|
|
1012
|
-
},
|
|
1013
|
-
fromPartial(object) {
|
|
1014
|
-
const message = createBaseQueryDelegatorValidatorsResponse();
|
|
1015
|
-
message.validators = object.validators?.map((e) => e) || [];
|
|
1016
|
-
return message;
|
|
1017
|
-
},
|
|
1018
|
-
};
|
|
1019
|
-
function createBaseQueryDelegatorWithdrawAddressRequest() {
|
|
1020
|
-
return { delegatorAddress: "" };
|
|
1021
|
-
}
|
|
1022
|
-
export const QueryDelegatorWithdrawAddressRequest = {
|
|
1023
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1024
|
-
if (message.delegatorAddress !== "") {
|
|
1025
|
-
writer.uint32(10).string(message.delegatorAddress);
|
|
1026
|
-
}
|
|
1027
|
-
return writer;
|
|
1028
|
-
},
|
|
1029
|
-
decode(input, length) {
|
|
1030
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1031
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1032
|
-
const message = createBaseQueryDelegatorWithdrawAddressRequest();
|
|
1033
|
-
while (reader.pos < end) {
|
|
1034
|
-
const tag = reader.uint32();
|
|
1035
|
-
switch (tag >>> 3) {
|
|
1036
|
-
case 1:
|
|
1037
|
-
if (tag !== 10) {
|
|
1038
|
-
break;
|
|
1039
|
-
}
|
|
1040
|
-
message.delegatorAddress = reader.string();
|
|
1041
|
-
continue;
|
|
1042
|
-
}
|
|
1043
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1044
|
-
break;
|
|
1045
|
-
}
|
|
1046
|
-
reader.skipType(tag & 7);
|
|
1047
|
-
}
|
|
1048
|
-
return message;
|
|
1049
|
-
},
|
|
1050
|
-
fromJSON(object) {
|
|
1051
|
-
return {
|
|
1052
|
-
delegatorAddress: isSet(object.delegatorAddress)
|
|
1053
|
-
? String(object.delegatorAddress)
|
|
1054
|
-
: "",
|
|
1055
|
-
};
|
|
1056
|
-
},
|
|
1057
|
-
toJSON(message) {
|
|
1058
|
-
const obj = {};
|
|
1059
|
-
message.delegatorAddress !== undefined &&
|
|
1060
|
-
(obj.delegatorAddress = message.delegatorAddress);
|
|
1061
|
-
return obj;
|
|
1062
|
-
},
|
|
1063
|
-
create(base) {
|
|
1064
|
-
return QueryDelegatorWithdrawAddressRequest.fromPartial(base ?? {});
|
|
1065
|
-
},
|
|
1066
|
-
fromPartial(object) {
|
|
1067
|
-
const message = createBaseQueryDelegatorWithdrawAddressRequest();
|
|
1068
|
-
message.delegatorAddress = object.delegatorAddress ?? "";
|
|
1069
|
-
return message;
|
|
1070
|
-
},
|
|
1071
|
-
};
|
|
1072
|
-
function createBaseQueryDelegatorWithdrawAddressResponse() {
|
|
1073
|
-
return { withdrawAddress: "" };
|
|
1074
|
-
}
|
|
1075
|
-
export const QueryDelegatorWithdrawAddressResponse = {
|
|
1076
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1077
|
-
if (message.withdrawAddress !== "") {
|
|
1078
|
-
writer.uint32(10).string(message.withdrawAddress);
|
|
1079
|
-
}
|
|
1080
|
-
return writer;
|
|
1081
|
-
},
|
|
1082
|
-
decode(input, length) {
|
|
1083
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1084
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1085
|
-
const message = createBaseQueryDelegatorWithdrawAddressResponse();
|
|
1086
|
-
while (reader.pos < end) {
|
|
1087
|
-
const tag = reader.uint32();
|
|
1088
|
-
switch (tag >>> 3) {
|
|
1089
|
-
case 1:
|
|
1090
|
-
if (tag !== 10) {
|
|
1091
|
-
break;
|
|
1092
|
-
}
|
|
1093
|
-
message.withdrawAddress = reader.string();
|
|
1094
|
-
continue;
|
|
1095
|
-
}
|
|
1096
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1097
|
-
break;
|
|
1098
|
-
}
|
|
1099
|
-
reader.skipType(tag & 7);
|
|
1100
|
-
}
|
|
1101
|
-
return message;
|
|
1102
|
-
},
|
|
1103
|
-
fromJSON(object) {
|
|
1104
|
-
return {
|
|
1105
|
-
withdrawAddress: isSet(object.withdrawAddress)
|
|
1106
|
-
? String(object.withdrawAddress)
|
|
1107
|
-
: "",
|
|
1108
|
-
};
|
|
1109
|
-
},
|
|
1110
|
-
toJSON(message) {
|
|
1111
|
-
const obj = {};
|
|
1112
|
-
message.withdrawAddress !== undefined &&
|
|
1113
|
-
(obj.withdrawAddress = message.withdrawAddress);
|
|
1114
|
-
return obj;
|
|
1115
|
-
},
|
|
1116
|
-
create(base) {
|
|
1117
|
-
return QueryDelegatorWithdrawAddressResponse.fromPartial(base ?? {});
|
|
1118
|
-
},
|
|
1119
|
-
fromPartial(object) {
|
|
1120
|
-
const message = createBaseQueryDelegatorWithdrawAddressResponse();
|
|
1121
|
-
message.withdrawAddress = object.withdrawAddress ?? "";
|
|
1122
|
-
return message;
|
|
1123
|
-
},
|
|
1124
|
-
};
|
|
1125
|
-
function createBaseQueryCommunityPoolRequest() {
|
|
1126
|
-
return {};
|
|
1127
|
-
}
|
|
1128
|
-
export const QueryCommunityPoolRequest = {
|
|
1129
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
1130
|
-
return writer;
|
|
1131
|
-
},
|
|
1132
|
-
decode(input, length) {
|
|
1133
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1134
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1135
|
-
const message = createBaseQueryCommunityPoolRequest();
|
|
1136
|
-
while (reader.pos < end) {
|
|
1137
|
-
const tag = reader.uint32();
|
|
1138
|
-
switch (tag >>> 3) {
|
|
1139
|
-
}
|
|
1140
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1141
|
-
break;
|
|
1142
|
-
}
|
|
1143
|
-
reader.skipType(tag & 7);
|
|
1144
|
-
}
|
|
1145
|
-
return message;
|
|
1146
|
-
},
|
|
1147
|
-
fromJSON(_) {
|
|
1148
|
-
return {};
|
|
1149
|
-
},
|
|
1150
|
-
toJSON(_) {
|
|
1151
|
-
const obj = {};
|
|
1152
|
-
return obj;
|
|
1153
|
-
},
|
|
1154
|
-
create(base) {
|
|
1155
|
-
return QueryCommunityPoolRequest.fromPartial(base ?? {});
|
|
1156
|
-
},
|
|
1157
|
-
fromPartial(_) {
|
|
1158
|
-
const message = createBaseQueryCommunityPoolRequest();
|
|
1159
|
-
return message;
|
|
1160
|
-
},
|
|
1161
|
-
};
|
|
1162
|
-
function createBaseQueryCommunityPoolResponse() {
|
|
1163
|
-
return { pool: [] };
|
|
1164
|
-
}
|
|
1165
|
-
export const QueryCommunityPoolResponse = {
|
|
1166
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1167
|
-
for (const v of message.pool) {
|
|
1168
|
-
DecCoin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1169
|
-
}
|
|
1170
|
-
return writer;
|
|
1171
|
-
},
|
|
1172
|
-
decode(input, length) {
|
|
1173
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1174
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1175
|
-
const message = createBaseQueryCommunityPoolResponse();
|
|
1176
|
-
while (reader.pos < end) {
|
|
1177
|
-
const tag = reader.uint32();
|
|
1178
|
-
switch (tag >>> 3) {
|
|
1179
|
-
case 1:
|
|
1180
|
-
if (tag !== 10) {
|
|
1181
|
-
break;
|
|
1182
|
-
}
|
|
1183
|
-
message.pool.push(DecCoin.decode(reader, reader.uint32()));
|
|
1184
|
-
continue;
|
|
1185
|
-
}
|
|
1186
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1187
|
-
break;
|
|
1188
|
-
}
|
|
1189
|
-
reader.skipType(tag & 7);
|
|
1190
|
-
}
|
|
1191
|
-
return message;
|
|
1192
|
-
},
|
|
1193
|
-
fromJSON(object) {
|
|
1194
|
-
return {
|
|
1195
|
-
pool: Array.isArray(object?.pool)
|
|
1196
|
-
? object.pool.map((e) => DecCoin.fromJSON(e))
|
|
1197
|
-
: [],
|
|
1198
|
-
};
|
|
1199
|
-
},
|
|
1200
|
-
toJSON(message) {
|
|
1201
|
-
const obj = {};
|
|
1202
|
-
if (message.pool) {
|
|
1203
|
-
obj.pool = message.pool.map((e) => (e ? DecCoin.toJSON(e) : undefined));
|
|
1204
|
-
}
|
|
1205
|
-
else {
|
|
1206
|
-
obj.pool = [];
|
|
1207
|
-
}
|
|
1208
|
-
return obj;
|
|
1209
|
-
},
|
|
1210
|
-
create(base) {
|
|
1211
|
-
return QueryCommunityPoolResponse.fromPartial(base ?? {});
|
|
1212
|
-
},
|
|
1213
|
-
fromPartial(object) {
|
|
1214
|
-
const message = createBaseQueryCommunityPoolResponse();
|
|
1215
|
-
message.pool = object.pool?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
1216
|
-
return message;
|
|
1217
|
-
},
|
|
1218
|
-
};
|
|
1219
|
-
export class QueryClientImpl {
|
|
1220
|
-
rpc;
|
|
1221
|
-
service;
|
|
1222
|
-
constructor(rpc, opts) {
|
|
1223
|
-
this.service = opts?.service || "cosmos.distribution.v1beta1.Query";
|
|
1224
|
-
this.rpc = rpc;
|
|
1225
|
-
this.Params = this.Params.bind(this);
|
|
1226
|
-
this.ValidatorDistributionInfo = this.ValidatorDistributionInfo.bind(this);
|
|
1227
|
-
this.ValidatorOutstandingRewards =
|
|
1228
|
-
this.ValidatorOutstandingRewards.bind(this);
|
|
1229
|
-
this.ValidatorCommission = this.ValidatorCommission.bind(this);
|
|
1230
|
-
this.ValidatorSlashes = this.ValidatorSlashes.bind(this);
|
|
1231
|
-
this.DelegationRewards = this.DelegationRewards.bind(this);
|
|
1232
|
-
this.DelegationTotalRewards = this.DelegationTotalRewards.bind(this);
|
|
1233
|
-
this.DelegatorValidators = this.DelegatorValidators.bind(this);
|
|
1234
|
-
this.DelegatorWithdrawAddress = this.DelegatorWithdrawAddress.bind(this);
|
|
1235
|
-
this.CommunityPool = this.CommunityPool.bind(this);
|
|
1236
|
-
}
|
|
1237
|
-
Params(request) {
|
|
1238
|
-
const data = QueryParamsRequest.encode(request).finish();
|
|
1239
|
-
const promise = this.rpc.request(this.service, "Params", data);
|
|
1240
|
-
return promise.then((data) => QueryParamsResponse.decode(_m0.Reader.create(data)));
|
|
1241
|
-
}
|
|
1242
|
-
ValidatorDistributionInfo(request) {
|
|
1243
|
-
const data = QueryValidatorDistributionInfoRequest.encode(request).finish();
|
|
1244
|
-
const promise = this.rpc.request(this.service, "ValidatorDistributionInfo", data);
|
|
1245
|
-
return promise.then((data) => QueryValidatorDistributionInfoResponse.decode(_m0.Reader.create(data)));
|
|
1246
|
-
}
|
|
1247
|
-
ValidatorOutstandingRewards(request) {
|
|
1248
|
-
const data = QueryValidatorOutstandingRewardsRequest.encode(request).finish();
|
|
1249
|
-
const promise = this.rpc.request(this.service, "ValidatorOutstandingRewards", data);
|
|
1250
|
-
return promise.then((data) => QueryValidatorOutstandingRewardsResponse.decode(_m0.Reader.create(data)));
|
|
1251
|
-
}
|
|
1252
|
-
ValidatorCommission(request) {
|
|
1253
|
-
const data = QueryValidatorCommissionRequest.encode(request).finish();
|
|
1254
|
-
const promise = this.rpc.request(this.service, "ValidatorCommission", data);
|
|
1255
|
-
return promise.then((data) => QueryValidatorCommissionResponse.decode(_m0.Reader.create(data)));
|
|
1256
|
-
}
|
|
1257
|
-
ValidatorSlashes(request) {
|
|
1258
|
-
const data = QueryValidatorSlashesRequest.encode(request).finish();
|
|
1259
|
-
const promise = this.rpc.request(this.service, "ValidatorSlashes", data);
|
|
1260
|
-
return promise.then((data) => QueryValidatorSlashesResponse.decode(_m0.Reader.create(data)));
|
|
1261
|
-
}
|
|
1262
|
-
DelegationRewards(request) {
|
|
1263
|
-
const data = QueryDelegationRewardsRequest.encode(request).finish();
|
|
1264
|
-
const promise = this.rpc.request(this.service, "DelegationRewards", data);
|
|
1265
|
-
return promise.then((data) => QueryDelegationRewardsResponse.decode(_m0.Reader.create(data)));
|
|
1266
|
-
}
|
|
1267
|
-
DelegationTotalRewards(request) {
|
|
1268
|
-
const data = QueryDelegationTotalRewardsRequest.encode(request).finish();
|
|
1269
|
-
const promise = this.rpc.request(this.service, "DelegationTotalRewards", data);
|
|
1270
|
-
return promise.then((data) => QueryDelegationTotalRewardsResponse.decode(_m0.Reader.create(data)));
|
|
1271
|
-
}
|
|
1272
|
-
DelegatorValidators(request) {
|
|
1273
|
-
const data = QueryDelegatorValidatorsRequest.encode(request).finish();
|
|
1274
|
-
const promise = this.rpc.request(this.service, "DelegatorValidators", data);
|
|
1275
|
-
return promise.then((data) => QueryDelegatorValidatorsResponse.decode(_m0.Reader.create(data)));
|
|
1276
|
-
}
|
|
1277
|
-
DelegatorWithdrawAddress(request) {
|
|
1278
|
-
const data = QueryDelegatorWithdrawAddressRequest.encode(request).finish();
|
|
1279
|
-
const promise = this.rpc.request(this.service, "DelegatorWithdrawAddress", data);
|
|
1280
|
-
return promise.then((data) => QueryDelegatorWithdrawAddressResponse.decode(_m0.Reader.create(data)));
|
|
1281
|
-
}
|
|
1282
|
-
CommunityPool(request) {
|
|
1283
|
-
const data = QueryCommunityPoolRequest.encode(request).finish();
|
|
1284
|
-
const promise = this.rpc.request(this.service, "CommunityPool", data);
|
|
1285
|
-
return promise.then((data) => QueryCommunityPoolResponse.decode(_m0.Reader.create(data)));
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
var tsProtoGlobalThis = (() => {
|
|
1289
|
-
if (typeof globalThis !== "undefined") {
|
|
1290
|
-
return globalThis;
|
|
1291
|
-
}
|
|
1292
|
-
if (typeof self !== "undefined") {
|
|
1293
|
-
return self;
|
|
1294
|
-
}
|
|
1295
|
-
if (typeof window !== "undefined") {
|
|
1296
|
-
return window;
|
|
1297
|
-
}
|
|
1298
|
-
if (typeof global !== "undefined") {
|
|
1299
|
-
return global;
|
|
1300
|
-
}
|
|
1301
|
-
throw "Unable to locate global object";
|
|
1302
|
-
})();
|
|
1303
|
-
function longToNumber(long) {
|
|
1304
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1305
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1306
|
-
}
|
|
1307
|
-
return long.toNumber();
|
|
1308
|
-
}
|
|
1309
|
-
if (_m0.util.Long !== Long) {
|
|
1310
|
-
_m0.util.Long = Long;
|
|
1311
|
-
_m0.configure();
|
|
1312
|
-
}
|
|
1313
|
-
function isSet(value) {
|
|
1314
|
-
return value !== null && value !== undefined;
|
|
1315
|
-
}
|