decentralcardgame-cardchain-client-ts 0.0.15 → 0.0.16
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/DecentralCardGame.cardchain.cardchain/module.js +318 -383
- package/DecentralCardGame.cardchain.cardchain/module.ts +463 -558
- package/DecentralCardGame.cardchain.cardchain/registry.js +72 -78
- package/DecentralCardGame.cardchain.cardchain/registry.ts +72 -78
- package/DecentralCardGame.cardchain.cardchain/rest.js +77 -60
- package/DecentralCardGame.cardchain.cardchain/rest.ts +123 -76
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +657 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +741 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.ts +134 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +356 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +415 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +281 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.ts +115 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +308 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.ts +355 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.ts +92 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.ts +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +325 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +380 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2200 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2633 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.ts +111 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.ts +183 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +365 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +416 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4185 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +5139 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +580 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +652 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +346 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +417 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +25 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +26 -22
- package/DecentralCardGame.cardchain.featureflag/index.js +5 -0
- package/DecentralCardGame.cardchain.featureflag/index.ts +6 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +62 -0
- package/DecentralCardGame.cardchain.featureflag/module.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/registry.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/registry.ts +7 -0
- package/DecentralCardGame.cardchain.featureflag/rest.js +128 -0
- package/DecentralCardGame.cardchain.featureflag/rest.ts +222 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.js +67 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.ts +92 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.js +135 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.ts +172 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.js +36 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.ts +58 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.js +76 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.js +279 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.ts +371 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.js +7 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.ts +17 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.js +260 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.ts +589 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.js +2830 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.ts +3753 -0
- package/DecentralCardGame.cardchain.featureflag/types.js +4 -0
- package/DecentralCardGame.cardchain.featureflag/types.ts +11 -0
- package/client.js +7 -7
- package/client.ts +9 -10
- package/cosmos.auth.v1beta1/module.js +0 -2
- package/cosmos.auth.v1beta1/module.ts +0 -2
- package/cosmos.auth.v1beta1/rest.js +3 -18
- package/cosmos.auth.v1beta1/rest.ts +3 -113
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
- package/cosmos.auth.v1beta1/types.js +1 -2
- package/cosmos.auth.v1beta1/types.ts +0 -2
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +6 -37
- package/cosmos.bank.v1beta1/rest.ts +6 -99
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
- package/cosmos.crisis.v1beta1/module.js +1 -24
- package/cosmos.crisis.v1beta1/module.ts +1 -34
- package/cosmos.crisis.v1beta1/registry.js +0 -2
- package/cosmos.crisis.v1beta1/registry.ts +0 -2
- package/cosmos.crisis.v1beta1/rest.ts +0 -19
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
- package/cosmos.distribution.v1beta1/module.js +21 -67
- package/cosmos.distribution.v1beta1/module.ts +34 -100
- package/cosmos.distribution.v1beta1/registry.js +4 -8
- package/cosmos.distribution.v1beta1/registry.ts +4 -8
- package/cosmos.distribution.v1beta1/rest.js +0 -14
- package/cosmos.distribution.v1beta1/rest.ts +7 -66
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
- package/cosmos.evidence.v1beta1/rest.js +3 -4
- package/cosmos.evidence.v1beta1/rest.ts +3 -4
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
- package/cosmos.gov.v1/module.js +21 -46
- package/cosmos.gov.v1/module.ts +33 -68
- package/cosmos.gov.v1/registry.js +4 -6
- package/cosmos.gov.v1/registry.ts +4 -6
- package/cosmos.gov.v1/rest.ts +41 -155
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
- package/cosmos.gov.v1/types.js +1 -2
- package/cosmos.gov.v1/types.ts +0 -2
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +96 -65
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
- package/cosmos.group.v1/module.js +92 -92
- package/cosmos.group.v1/module.ts +138 -138
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +9 -29
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
- package/cosmos.mint.v1beta1/rest.ts +1 -9
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.nft.v1beta1/rest.ts +22 -18
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
- package/cosmos.slashing.v1beta1/rest.ts +0 -8
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
- package/cosmos.staking.v1beta1/module.js +39 -41
- package/cosmos.staking.v1beta1/module.ts +59 -61
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +8 -49
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
- package/cosmos.staking.v1beta1/types.js +1 -2
- package/cosmos.staking.v1beta1/types.ts +0 -2
- package/cosmos.tx.v1beta1/rest.js +2 -66
- package/cosmos.tx.v1beta1/rest.ts +16 -177
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
- package/cosmos.upgrade.v1beta1/rest.ts +1 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
- package/ibc.applications.transfer.v1/module.js +27 -5
- package/ibc.applications.transfer.v1/module.ts +34 -5
- package/ibc.applications.transfer.v1/registry.js +4 -1
- package/ibc.applications.transfer.v1/registry.ts +2 -0
- package/ibc.applications.transfer.v1/rest.js +1 -15
- package/ibc.applications.transfer.v1/rest.ts +1 -30
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.applications.transfer.v1/types.js +1 -3
- package/ibc.applications.transfer.v1/types.ts +0 -4
- package/ibc.core.channel.v1/rest.ts +0 -1
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/rest.ts +1 -5
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -26
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
- package/ibc.core.connection.v1/types/proofs.js +1126 -0
- package/ibc.core.connection.v1/types/proofs.ts +1408 -0
- package/index.js +3 -3
- package/index.ts +3 -3
- package/package.json +1 -1
|
@@ -23,22 +23,6 @@ export interface QueryParamsResponse {
|
|
|
23
23
|
params: Params | undefined;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
/** QueryValidatorDistributionInfoRequest is the request type for the Query/ValidatorDistributionInfo RPC method. */
|
|
27
|
-
export interface QueryValidatorDistributionInfoRequest {
|
|
28
|
-
/** validator_address defines the validator address to query for. */
|
|
29
|
-
validatorAddress: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/** QueryValidatorDistributionInfoResponse is the response type for the Query/ValidatorDistributionInfo RPC method. */
|
|
33
|
-
export interface QueryValidatorDistributionInfoResponse {
|
|
34
|
-
/** operator_address defines the validator operator address. */
|
|
35
|
-
operatorAddress: string;
|
|
36
|
-
/** self_bond_rewards defines the self delegations rewards. */
|
|
37
|
-
selfBondRewards: DecCoin[];
|
|
38
|
-
/** commission defines the commission the validator received. */
|
|
39
|
-
commission: DecCoin[];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
26
|
/**
|
|
43
27
|
* QueryValidatorOutstandingRewardsRequest is the request type for the
|
|
44
28
|
* Query/ValidatorOutstandingRewards RPC method.
|
|
@@ -70,7 +54,7 @@ export interface QueryValidatorCommissionRequest {
|
|
|
70
54
|
* Query/ValidatorCommission RPC method
|
|
71
55
|
*/
|
|
72
56
|
export interface QueryValidatorCommissionResponse {
|
|
73
|
-
/** commission defines the
|
|
57
|
+
/** commission defines the commision the validator received. */
|
|
74
58
|
commission: ValidatorAccumulatedCommission | undefined;
|
|
75
59
|
}
|
|
76
60
|
|
|
@@ -280,134 +264,6 @@ export const QueryParamsResponse = {
|
|
|
280
264
|
},
|
|
281
265
|
};
|
|
282
266
|
|
|
283
|
-
function createBaseQueryValidatorDistributionInfoRequest(): QueryValidatorDistributionInfoRequest {
|
|
284
|
-
return { validatorAddress: "" };
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export const QueryValidatorDistributionInfoRequest = {
|
|
288
|
-
encode(message: QueryValidatorDistributionInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
289
|
-
if (message.validatorAddress !== "") {
|
|
290
|
-
writer.uint32(10).string(message.validatorAddress);
|
|
291
|
-
}
|
|
292
|
-
return writer;
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDistributionInfoRequest {
|
|
296
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
297
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
298
|
-
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
299
|
-
while (reader.pos < end) {
|
|
300
|
-
const tag = reader.uint32();
|
|
301
|
-
switch (tag >>> 3) {
|
|
302
|
-
case 1:
|
|
303
|
-
message.validatorAddress = reader.string();
|
|
304
|
-
break;
|
|
305
|
-
default:
|
|
306
|
-
reader.skipType(tag & 7);
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
return message;
|
|
311
|
-
},
|
|
312
|
-
|
|
313
|
-
fromJSON(object: any): QueryValidatorDistributionInfoRequest {
|
|
314
|
-
return { validatorAddress: isSet(object.validatorAddress) ? String(object.validatorAddress) : "" };
|
|
315
|
-
},
|
|
316
|
-
|
|
317
|
-
toJSON(message: QueryValidatorDistributionInfoRequest): unknown {
|
|
318
|
-
const obj: any = {};
|
|
319
|
-
message.validatorAddress !== undefined && (obj.validatorAddress = message.validatorAddress);
|
|
320
|
-
return obj;
|
|
321
|
-
},
|
|
322
|
-
|
|
323
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorDistributionInfoRequest>, I>>(
|
|
324
|
-
object: I,
|
|
325
|
-
): QueryValidatorDistributionInfoRequest {
|
|
326
|
-
const message = createBaseQueryValidatorDistributionInfoRequest();
|
|
327
|
-
message.validatorAddress = object.validatorAddress ?? "";
|
|
328
|
-
return message;
|
|
329
|
-
},
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
function createBaseQueryValidatorDistributionInfoResponse(): QueryValidatorDistributionInfoResponse {
|
|
333
|
-
return { operatorAddress: "", selfBondRewards: [], commission: [] };
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export const QueryValidatorDistributionInfoResponse = {
|
|
337
|
-
encode(message: QueryValidatorDistributionInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
338
|
-
if (message.operatorAddress !== "") {
|
|
339
|
-
writer.uint32(10).string(message.operatorAddress);
|
|
340
|
-
}
|
|
341
|
-
for (const v of message.selfBondRewards) {
|
|
342
|
-
DecCoin.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
343
|
-
}
|
|
344
|
-
for (const v of message.commission) {
|
|
345
|
-
DecCoin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
346
|
-
}
|
|
347
|
-
return writer;
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): QueryValidatorDistributionInfoResponse {
|
|
351
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
352
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
353
|
-
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
354
|
-
while (reader.pos < end) {
|
|
355
|
-
const tag = reader.uint32();
|
|
356
|
-
switch (tag >>> 3) {
|
|
357
|
-
case 1:
|
|
358
|
-
message.operatorAddress = reader.string();
|
|
359
|
-
break;
|
|
360
|
-
case 2:
|
|
361
|
-
message.selfBondRewards.push(DecCoin.decode(reader, reader.uint32()));
|
|
362
|
-
break;
|
|
363
|
-
case 3:
|
|
364
|
-
message.commission.push(DecCoin.decode(reader, reader.uint32()));
|
|
365
|
-
break;
|
|
366
|
-
default:
|
|
367
|
-
reader.skipType(tag & 7);
|
|
368
|
-
break;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
return message;
|
|
372
|
-
},
|
|
373
|
-
|
|
374
|
-
fromJSON(object: any): QueryValidatorDistributionInfoResponse {
|
|
375
|
-
return {
|
|
376
|
-
operatorAddress: isSet(object.operatorAddress) ? String(object.operatorAddress) : "",
|
|
377
|
-
selfBondRewards: Array.isArray(object?.selfBondRewards)
|
|
378
|
-
? object.selfBondRewards.map((e: any) => DecCoin.fromJSON(e))
|
|
379
|
-
: [],
|
|
380
|
-
commission: Array.isArray(object?.commission) ? object.commission.map((e: any) => DecCoin.fromJSON(e)) : [],
|
|
381
|
-
};
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
toJSON(message: QueryValidatorDistributionInfoResponse): unknown {
|
|
385
|
-
const obj: any = {};
|
|
386
|
-
message.operatorAddress !== undefined && (obj.operatorAddress = message.operatorAddress);
|
|
387
|
-
if (message.selfBondRewards) {
|
|
388
|
-
obj.selfBondRewards = message.selfBondRewards.map((e) => e ? DecCoin.toJSON(e) : undefined);
|
|
389
|
-
} else {
|
|
390
|
-
obj.selfBondRewards = [];
|
|
391
|
-
}
|
|
392
|
-
if (message.commission) {
|
|
393
|
-
obj.commission = message.commission.map((e) => e ? DecCoin.toJSON(e) : undefined);
|
|
394
|
-
} else {
|
|
395
|
-
obj.commission = [];
|
|
396
|
-
}
|
|
397
|
-
return obj;
|
|
398
|
-
},
|
|
399
|
-
|
|
400
|
-
fromPartial<I extends Exact<DeepPartial<QueryValidatorDistributionInfoResponse>, I>>(
|
|
401
|
-
object: I,
|
|
402
|
-
): QueryValidatorDistributionInfoResponse {
|
|
403
|
-
const message = createBaseQueryValidatorDistributionInfoResponse();
|
|
404
|
-
message.operatorAddress = object.operatorAddress ?? "";
|
|
405
|
-
message.selfBondRewards = object.selfBondRewards?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
406
|
-
message.commission = object.commission?.map((e) => DecCoin.fromPartial(e)) || [];
|
|
407
|
-
return message;
|
|
408
|
-
},
|
|
409
|
-
};
|
|
410
|
-
|
|
411
267
|
function createBaseQueryValidatorOutstandingRewardsRequest(): QueryValidatorOutstandingRewardsRequest {
|
|
412
268
|
return { validatorAddress: "" };
|
|
413
269
|
}
|
|
@@ -1284,10 +1140,6 @@ export const QueryCommunityPoolResponse = {
|
|
|
1284
1140
|
export interface Query {
|
|
1285
1141
|
/** Params queries params of the distribution module. */
|
|
1286
1142
|
Params(request: QueryParamsRequest): Promise<QueryParamsResponse>;
|
|
1287
|
-
/** ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator */
|
|
1288
|
-
ValidatorDistributionInfo(
|
|
1289
|
-
request: QueryValidatorDistributionInfoRequest,
|
|
1290
|
-
): Promise<QueryValidatorDistributionInfoResponse>;
|
|
1291
1143
|
/** ValidatorOutstandingRewards queries rewards of a validator address. */
|
|
1292
1144
|
ValidatorOutstandingRewards(
|
|
1293
1145
|
request: QueryValidatorOutstandingRewardsRequest,
|
|
@@ -1318,7 +1170,6 @@ export class QueryClientImpl implements Query {
|
|
|
1318
1170
|
constructor(rpc: Rpc) {
|
|
1319
1171
|
this.rpc = rpc;
|
|
1320
1172
|
this.Params = this.Params.bind(this);
|
|
1321
|
-
this.ValidatorDistributionInfo = this.ValidatorDistributionInfo.bind(this);
|
|
1322
1173
|
this.ValidatorOutstandingRewards = this.ValidatorOutstandingRewards.bind(this);
|
|
1323
1174
|
this.ValidatorCommission = this.ValidatorCommission.bind(this);
|
|
1324
1175
|
this.ValidatorSlashes = this.ValidatorSlashes.bind(this);
|
|
@@ -1334,14 +1185,6 @@ export class QueryClientImpl implements Query {
|
|
|
1334
1185
|
return promise.then((data) => QueryParamsResponse.decode(new _m0.Reader(data)));
|
|
1335
1186
|
}
|
|
1336
1187
|
|
|
1337
|
-
ValidatorDistributionInfo(
|
|
1338
|
-
request: QueryValidatorDistributionInfoRequest,
|
|
1339
|
-
): Promise<QueryValidatorDistributionInfoResponse> {
|
|
1340
|
-
const data = QueryValidatorDistributionInfoRequest.encode(request).finish();
|
|
1341
|
-
const promise = this.rpc.request("cosmos.distribution.v1beta1.Query", "ValidatorDistributionInfo", data);
|
|
1342
|
-
return promise.then((data) => QueryValidatorDistributionInfoResponse.decode(new _m0.Reader(data)));
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
1188
|
ValidatorOutstandingRewards(
|
|
1346
1189
|
request: QueryValidatorOutstandingRewardsRequest,
|
|
1347
1190
|
): Promise<QueryValidatorOutstandingRewardsResponse> {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
3
|
import { Coin } from "../../base/v1beta1/coin";
|
|
4
|
-
import { Params } from "./distribution";
|
|
5
4
|
export const protobufPackage = "cosmos.distribution.v1beta1";
|
|
6
5
|
function createBaseMsgSetWithdrawAddress() {
|
|
7
6
|
return { delegatorAddress: "", withdrawAddress: "" };
|
|
@@ -363,192 +362,6 @@ export const MsgFundCommunityPoolResponse = {
|
|
|
363
362
|
return message;
|
|
364
363
|
},
|
|
365
364
|
};
|
|
366
|
-
function createBaseMsgUpdateParams() {
|
|
367
|
-
return { authority: "", params: undefined };
|
|
368
|
-
}
|
|
369
|
-
export const MsgUpdateParams = {
|
|
370
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
371
|
-
if (message.authority !== "") {
|
|
372
|
-
writer.uint32(10).string(message.authority);
|
|
373
|
-
}
|
|
374
|
-
if (message.params !== undefined) {
|
|
375
|
-
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
376
|
-
}
|
|
377
|
-
return writer;
|
|
378
|
-
},
|
|
379
|
-
decode(input, length) {
|
|
380
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
381
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
382
|
-
const message = createBaseMsgUpdateParams();
|
|
383
|
-
while (reader.pos < end) {
|
|
384
|
-
const tag = reader.uint32();
|
|
385
|
-
switch (tag >>> 3) {
|
|
386
|
-
case 1:
|
|
387
|
-
message.authority = reader.string();
|
|
388
|
-
break;
|
|
389
|
-
case 2:
|
|
390
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
391
|
-
break;
|
|
392
|
-
default:
|
|
393
|
-
reader.skipType(tag & 7);
|
|
394
|
-
break;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
return message;
|
|
398
|
-
},
|
|
399
|
-
fromJSON(object) {
|
|
400
|
-
return {
|
|
401
|
-
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
402
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
403
|
-
};
|
|
404
|
-
},
|
|
405
|
-
toJSON(message) {
|
|
406
|
-
const obj = {};
|
|
407
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
408
|
-
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
409
|
-
return obj;
|
|
410
|
-
},
|
|
411
|
-
fromPartial(object) {
|
|
412
|
-
const message = createBaseMsgUpdateParams();
|
|
413
|
-
message.authority = object.authority ?? "";
|
|
414
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
415
|
-
? Params.fromPartial(object.params)
|
|
416
|
-
: undefined;
|
|
417
|
-
return message;
|
|
418
|
-
},
|
|
419
|
-
};
|
|
420
|
-
function createBaseMsgUpdateParamsResponse() {
|
|
421
|
-
return {};
|
|
422
|
-
}
|
|
423
|
-
export const MsgUpdateParamsResponse = {
|
|
424
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
425
|
-
return writer;
|
|
426
|
-
},
|
|
427
|
-
decode(input, length) {
|
|
428
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
429
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
430
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
431
|
-
while (reader.pos < end) {
|
|
432
|
-
const tag = reader.uint32();
|
|
433
|
-
switch (tag >>> 3) {
|
|
434
|
-
default:
|
|
435
|
-
reader.skipType(tag & 7);
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
return message;
|
|
440
|
-
},
|
|
441
|
-
fromJSON(_) {
|
|
442
|
-
return {};
|
|
443
|
-
},
|
|
444
|
-
toJSON(_) {
|
|
445
|
-
const obj = {};
|
|
446
|
-
return obj;
|
|
447
|
-
},
|
|
448
|
-
fromPartial(_) {
|
|
449
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
450
|
-
return message;
|
|
451
|
-
},
|
|
452
|
-
};
|
|
453
|
-
function createBaseMsgCommunityPoolSpend() {
|
|
454
|
-
return { authority: "", recipient: "", amount: [] };
|
|
455
|
-
}
|
|
456
|
-
export const MsgCommunityPoolSpend = {
|
|
457
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
458
|
-
if (message.authority !== "") {
|
|
459
|
-
writer.uint32(10).string(message.authority);
|
|
460
|
-
}
|
|
461
|
-
if (message.recipient !== "") {
|
|
462
|
-
writer.uint32(18).string(message.recipient);
|
|
463
|
-
}
|
|
464
|
-
for (const v of message.amount) {
|
|
465
|
-
Coin.encode(v, writer.uint32(26).fork()).ldelim();
|
|
466
|
-
}
|
|
467
|
-
return writer;
|
|
468
|
-
},
|
|
469
|
-
decode(input, length) {
|
|
470
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
471
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
472
|
-
const message = createBaseMsgCommunityPoolSpend();
|
|
473
|
-
while (reader.pos < end) {
|
|
474
|
-
const tag = reader.uint32();
|
|
475
|
-
switch (tag >>> 3) {
|
|
476
|
-
case 1:
|
|
477
|
-
message.authority = reader.string();
|
|
478
|
-
break;
|
|
479
|
-
case 2:
|
|
480
|
-
message.recipient = reader.string();
|
|
481
|
-
break;
|
|
482
|
-
case 3:
|
|
483
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
484
|
-
break;
|
|
485
|
-
default:
|
|
486
|
-
reader.skipType(tag & 7);
|
|
487
|
-
break;
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
return message;
|
|
491
|
-
},
|
|
492
|
-
fromJSON(object) {
|
|
493
|
-
return {
|
|
494
|
-
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
495
|
-
recipient: isSet(object.recipient) ? String(object.recipient) : "",
|
|
496
|
-
amount: Array.isArray(object?.amount) ? object.amount.map((e) => Coin.fromJSON(e)) : [],
|
|
497
|
-
};
|
|
498
|
-
},
|
|
499
|
-
toJSON(message) {
|
|
500
|
-
const obj = {};
|
|
501
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
502
|
-
message.recipient !== undefined && (obj.recipient = message.recipient);
|
|
503
|
-
if (message.amount) {
|
|
504
|
-
obj.amount = message.amount.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
505
|
-
}
|
|
506
|
-
else {
|
|
507
|
-
obj.amount = [];
|
|
508
|
-
}
|
|
509
|
-
return obj;
|
|
510
|
-
},
|
|
511
|
-
fromPartial(object) {
|
|
512
|
-
const message = createBaseMsgCommunityPoolSpend();
|
|
513
|
-
message.authority = object.authority ?? "";
|
|
514
|
-
message.recipient = object.recipient ?? "";
|
|
515
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
516
|
-
return message;
|
|
517
|
-
},
|
|
518
|
-
};
|
|
519
|
-
function createBaseMsgCommunityPoolSpendResponse() {
|
|
520
|
-
return {};
|
|
521
|
-
}
|
|
522
|
-
export const MsgCommunityPoolSpendResponse = {
|
|
523
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
524
|
-
return writer;
|
|
525
|
-
},
|
|
526
|
-
decode(input, length) {
|
|
527
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
528
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
529
|
-
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
530
|
-
while (reader.pos < end) {
|
|
531
|
-
const tag = reader.uint32();
|
|
532
|
-
switch (tag >>> 3) {
|
|
533
|
-
default:
|
|
534
|
-
reader.skipType(tag & 7);
|
|
535
|
-
break;
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
return message;
|
|
539
|
-
},
|
|
540
|
-
fromJSON(_) {
|
|
541
|
-
return {};
|
|
542
|
-
},
|
|
543
|
-
toJSON(_) {
|
|
544
|
-
const obj = {};
|
|
545
|
-
return obj;
|
|
546
|
-
},
|
|
547
|
-
fromPartial(_) {
|
|
548
|
-
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
549
|
-
return message;
|
|
550
|
-
},
|
|
551
|
-
};
|
|
552
365
|
export class MsgClientImpl {
|
|
553
366
|
constructor(rpc) {
|
|
554
367
|
this.rpc = rpc;
|
|
@@ -556,8 +369,6 @@ export class MsgClientImpl {
|
|
|
556
369
|
this.WithdrawDelegatorReward = this.WithdrawDelegatorReward.bind(this);
|
|
557
370
|
this.WithdrawValidatorCommission = this.WithdrawValidatorCommission.bind(this);
|
|
558
371
|
this.FundCommunityPool = this.FundCommunityPool.bind(this);
|
|
559
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
560
|
-
this.CommunityPoolSpend = this.CommunityPoolSpend.bind(this);
|
|
561
372
|
}
|
|
562
373
|
SetWithdrawAddress(request) {
|
|
563
374
|
const data = MsgSetWithdrawAddress.encode(request).finish();
|
|
@@ -579,16 +390,6 @@ export class MsgClientImpl {
|
|
|
579
390
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data);
|
|
580
391
|
return promise.then((data) => MsgFundCommunityPoolResponse.decode(new _m0.Reader(data)));
|
|
581
392
|
}
|
|
582
|
-
UpdateParams(request) {
|
|
583
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
584
|
-
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "UpdateParams", data);
|
|
585
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
586
|
-
}
|
|
587
|
-
CommunityPoolSpend(request) {
|
|
588
|
-
const data = MsgCommunityPoolSpend.encode(request).finish();
|
|
589
|
-
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "CommunityPoolSpend", data);
|
|
590
|
-
return promise.then((data) => MsgCommunityPoolSpendResponse.decode(new _m0.Reader(data)));
|
|
591
|
-
}
|
|
592
393
|
}
|
|
593
394
|
function isSet(value) {
|
|
594
395
|
return value !== null && value !== undefined;
|