decentralcardgame-cardchain-client-ts 0.0.15 → 0.0.17
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
|
@@ -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
|
|
|
6
5
|
export const protobufPackage = "cosmos.distribution.v1beta1";
|
|
7
6
|
|
|
@@ -14,10 +13,7 @@ export interface MsgSetWithdrawAddress {
|
|
|
14
13
|
withdrawAddress: string;
|
|
15
14
|
}
|
|
16
15
|
|
|
17
|
-
/**
|
|
18
|
-
* MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response
|
|
19
|
-
* type.
|
|
20
|
-
*/
|
|
16
|
+
/** MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. */
|
|
21
17
|
export interface MsgSetWithdrawAddressResponse {
|
|
22
18
|
}
|
|
23
19
|
|
|
@@ -30,10 +26,7 @@ export interface MsgWithdrawDelegatorReward {
|
|
|
30
26
|
validatorAddress: string;
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
/**
|
|
34
|
-
* MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward
|
|
35
|
-
* response type.
|
|
36
|
-
*/
|
|
29
|
+
/** MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. */
|
|
37
30
|
export interface MsgWithdrawDelegatorRewardResponse {
|
|
38
31
|
/** Since: cosmos-sdk 0.46 */
|
|
39
32
|
amount: Coin[];
|
|
@@ -47,10 +40,7 @@ export interface MsgWithdrawValidatorCommission {
|
|
|
47
40
|
validatorAddress: string;
|
|
48
41
|
}
|
|
49
42
|
|
|
50
|
-
/**
|
|
51
|
-
* MsgWithdrawValidatorCommissionResponse defines the
|
|
52
|
-
* Msg/WithdrawValidatorCommission response type.
|
|
53
|
-
*/
|
|
43
|
+
/** MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. */
|
|
54
44
|
export interface MsgWithdrawValidatorCommissionResponse {
|
|
55
45
|
/** Since: cosmos-sdk 0.46 */
|
|
56
46
|
amount: Coin[];
|
|
@@ -69,54 +59,6 @@ export interface MsgFundCommunityPool {
|
|
|
69
59
|
export interface MsgFundCommunityPoolResponse {
|
|
70
60
|
}
|
|
71
61
|
|
|
72
|
-
/**
|
|
73
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
74
|
-
*
|
|
75
|
-
* Since: cosmos-sdk 0.47
|
|
76
|
-
*/
|
|
77
|
-
export interface MsgUpdateParams {
|
|
78
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
79
|
-
authority: string;
|
|
80
|
-
/**
|
|
81
|
-
* params defines the x/distribution parameters to update.
|
|
82
|
-
*
|
|
83
|
-
* NOTE: All parameters must be supplied.
|
|
84
|
-
*/
|
|
85
|
-
params: Params | undefined;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
90
|
-
* MsgUpdateParams message.
|
|
91
|
-
*
|
|
92
|
-
* Since: cosmos-sdk 0.47
|
|
93
|
-
*/
|
|
94
|
-
export interface MsgUpdateParamsResponse {
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* MsgCommunityPoolSpend defines a message for sending tokens from the community
|
|
99
|
-
* pool to another account. This message is typically executed via a governance
|
|
100
|
-
* proposal with the governance module being the executing authority.
|
|
101
|
-
*
|
|
102
|
-
* Since: cosmos-sdk 0.47
|
|
103
|
-
*/
|
|
104
|
-
export interface MsgCommunityPoolSpend {
|
|
105
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
106
|
-
authority: string;
|
|
107
|
-
recipient: string;
|
|
108
|
-
amount: Coin[];
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* MsgCommunityPoolSpendResponse defines the response to executing a
|
|
113
|
-
* MsgCommunityPoolSpend message.
|
|
114
|
-
*
|
|
115
|
-
* Since: cosmos-sdk 0.47
|
|
116
|
-
*/
|
|
117
|
-
export interface MsgCommunityPoolSpendResponse {
|
|
118
|
-
}
|
|
119
|
-
|
|
120
62
|
function createBaseMsgSetWithdrawAddress(): MsgSetWithdrawAddress {
|
|
121
63
|
return { delegatorAddress: "", withdrawAddress: "" };
|
|
122
64
|
}
|
|
@@ -528,215 +470,6 @@ export const MsgFundCommunityPoolResponse = {
|
|
|
528
470
|
},
|
|
529
471
|
};
|
|
530
472
|
|
|
531
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
532
|
-
return { authority: "", params: undefined };
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
export const MsgUpdateParams = {
|
|
536
|
-
encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
537
|
-
if (message.authority !== "") {
|
|
538
|
-
writer.uint32(10).string(message.authority);
|
|
539
|
-
}
|
|
540
|
-
if (message.params !== undefined) {
|
|
541
|
-
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
542
|
-
}
|
|
543
|
-
return writer;
|
|
544
|
-
},
|
|
545
|
-
|
|
546
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams {
|
|
547
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
548
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
549
|
-
const message = createBaseMsgUpdateParams();
|
|
550
|
-
while (reader.pos < end) {
|
|
551
|
-
const tag = reader.uint32();
|
|
552
|
-
switch (tag >>> 3) {
|
|
553
|
-
case 1:
|
|
554
|
-
message.authority = reader.string();
|
|
555
|
-
break;
|
|
556
|
-
case 2:
|
|
557
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
558
|
-
break;
|
|
559
|
-
default:
|
|
560
|
-
reader.skipType(tag & 7);
|
|
561
|
-
break;
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
return message;
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
fromJSON(object: any): MsgUpdateParams {
|
|
568
|
-
return {
|
|
569
|
-
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
570
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
571
|
-
};
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
575
|
-
const obj: any = {};
|
|
576
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
577
|
-
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
578
|
-
return obj;
|
|
579
|
-
},
|
|
580
|
-
|
|
581
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
582
|
-
const message = createBaseMsgUpdateParams();
|
|
583
|
-
message.authority = object.authority ?? "";
|
|
584
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
585
|
-
? Params.fromPartial(object.params)
|
|
586
|
-
: undefined;
|
|
587
|
-
return message;
|
|
588
|
-
},
|
|
589
|
-
};
|
|
590
|
-
|
|
591
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
592
|
-
return {};
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
export const MsgUpdateParamsResponse = {
|
|
596
|
-
encode(_: MsgUpdateParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
597
|
-
return writer;
|
|
598
|
-
},
|
|
599
|
-
|
|
600
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
601
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
602
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
603
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
604
|
-
while (reader.pos < end) {
|
|
605
|
-
const tag = reader.uint32();
|
|
606
|
-
switch (tag >>> 3) {
|
|
607
|
-
default:
|
|
608
|
-
reader.skipType(tag & 7);
|
|
609
|
-
break;
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
return message;
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
616
|
-
return {};
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
620
|
-
const obj: any = {};
|
|
621
|
-
return obj;
|
|
622
|
-
},
|
|
623
|
-
|
|
624
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
625
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
626
|
-
return message;
|
|
627
|
-
},
|
|
628
|
-
};
|
|
629
|
-
|
|
630
|
-
function createBaseMsgCommunityPoolSpend(): MsgCommunityPoolSpend {
|
|
631
|
-
return { authority: "", recipient: "", amount: [] };
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
export const MsgCommunityPoolSpend = {
|
|
635
|
-
encode(message: MsgCommunityPoolSpend, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
636
|
-
if (message.authority !== "") {
|
|
637
|
-
writer.uint32(10).string(message.authority);
|
|
638
|
-
}
|
|
639
|
-
if (message.recipient !== "") {
|
|
640
|
-
writer.uint32(18).string(message.recipient);
|
|
641
|
-
}
|
|
642
|
-
for (const v of message.amount) {
|
|
643
|
-
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
644
|
-
}
|
|
645
|
-
return writer;
|
|
646
|
-
},
|
|
647
|
-
|
|
648
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCommunityPoolSpend {
|
|
649
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
650
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
651
|
-
const message = createBaseMsgCommunityPoolSpend();
|
|
652
|
-
while (reader.pos < end) {
|
|
653
|
-
const tag = reader.uint32();
|
|
654
|
-
switch (tag >>> 3) {
|
|
655
|
-
case 1:
|
|
656
|
-
message.authority = reader.string();
|
|
657
|
-
break;
|
|
658
|
-
case 2:
|
|
659
|
-
message.recipient = reader.string();
|
|
660
|
-
break;
|
|
661
|
-
case 3:
|
|
662
|
-
message.amount.push(Coin.decode(reader, reader.uint32()));
|
|
663
|
-
break;
|
|
664
|
-
default:
|
|
665
|
-
reader.skipType(tag & 7);
|
|
666
|
-
break;
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
return message;
|
|
670
|
-
},
|
|
671
|
-
|
|
672
|
-
fromJSON(object: any): MsgCommunityPoolSpend {
|
|
673
|
-
return {
|
|
674
|
-
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
675
|
-
recipient: isSet(object.recipient) ? String(object.recipient) : "",
|
|
676
|
-
amount: Array.isArray(object?.amount) ? object.amount.map((e: any) => Coin.fromJSON(e)) : [],
|
|
677
|
-
};
|
|
678
|
-
},
|
|
679
|
-
|
|
680
|
-
toJSON(message: MsgCommunityPoolSpend): unknown {
|
|
681
|
-
const obj: any = {};
|
|
682
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
683
|
-
message.recipient !== undefined && (obj.recipient = message.recipient);
|
|
684
|
-
if (message.amount) {
|
|
685
|
-
obj.amount = message.amount.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
686
|
-
} else {
|
|
687
|
-
obj.amount = [];
|
|
688
|
-
}
|
|
689
|
-
return obj;
|
|
690
|
-
},
|
|
691
|
-
|
|
692
|
-
fromPartial<I extends Exact<DeepPartial<MsgCommunityPoolSpend>, I>>(object: I): MsgCommunityPoolSpend {
|
|
693
|
-
const message = createBaseMsgCommunityPoolSpend();
|
|
694
|
-
message.authority = object.authority ?? "";
|
|
695
|
-
message.recipient = object.recipient ?? "";
|
|
696
|
-
message.amount = object.amount?.map((e) => Coin.fromPartial(e)) || [];
|
|
697
|
-
return message;
|
|
698
|
-
},
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
function createBaseMsgCommunityPoolSpendResponse(): MsgCommunityPoolSpendResponse {
|
|
702
|
-
return {};
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export const MsgCommunityPoolSpendResponse = {
|
|
706
|
-
encode(_: MsgCommunityPoolSpendResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
707
|
-
return writer;
|
|
708
|
-
},
|
|
709
|
-
|
|
710
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgCommunityPoolSpendResponse {
|
|
711
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
712
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
713
|
-
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
714
|
-
while (reader.pos < end) {
|
|
715
|
-
const tag = reader.uint32();
|
|
716
|
-
switch (tag >>> 3) {
|
|
717
|
-
default:
|
|
718
|
-
reader.skipType(tag & 7);
|
|
719
|
-
break;
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
return message;
|
|
723
|
-
},
|
|
724
|
-
|
|
725
|
-
fromJSON(_: any): MsgCommunityPoolSpendResponse {
|
|
726
|
-
return {};
|
|
727
|
-
},
|
|
728
|
-
|
|
729
|
-
toJSON(_: MsgCommunityPoolSpendResponse): unknown {
|
|
730
|
-
const obj: any = {};
|
|
731
|
-
return obj;
|
|
732
|
-
},
|
|
733
|
-
|
|
734
|
-
fromPartial<I extends Exact<DeepPartial<MsgCommunityPoolSpendResponse>, I>>(_: I): MsgCommunityPoolSpendResponse {
|
|
735
|
-
const message = createBaseMsgCommunityPoolSpendResponse();
|
|
736
|
-
return message;
|
|
737
|
-
},
|
|
738
|
-
};
|
|
739
|
-
|
|
740
473
|
/** Msg defines the distribution Msg service. */
|
|
741
474
|
export interface Msg {
|
|
742
475
|
/**
|
|
@@ -759,22 +492,6 @@ export interface Msg {
|
|
|
759
492
|
* fund the community pool.
|
|
760
493
|
*/
|
|
761
494
|
FundCommunityPool(request: MsgFundCommunityPool): Promise<MsgFundCommunityPoolResponse>;
|
|
762
|
-
/**
|
|
763
|
-
* UpdateParams defines a governance operation for updating the x/distribution
|
|
764
|
-
* module parameters. The authority is defined in the keeper.
|
|
765
|
-
*
|
|
766
|
-
* Since: cosmos-sdk 0.47
|
|
767
|
-
*/
|
|
768
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
769
|
-
/**
|
|
770
|
-
* CommunityPoolSpend defines a governance operation for sending tokens from
|
|
771
|
-
* the community pool in the x/distribution module to another account, which
|
|
772
|
-
* could be the governance module itself. The authority is defined in the
|
|
773
|
-
* keeper.
|
|
774
|
-
*
|
|
775
|
-
* Since: cosmos-sdk 0.47
|
|
776
|
-
*/
|
|
777
|
-
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse>;
|
|
778
495
|
}
|
|
779
496
|
|
|
780
497
|
export class MsgClientImpl implements Msg {
|
|
@@ -785,8 +502,6 @@ export class MsgClientImpl implements Msg {
|
|
|
785
502
|
this.WithdrawDelegatorReward = this.WithdrawDelegatorReward.bind(this);
|
|
786
503
|
this.WithdrawValidatorCommission = this.WithdrawValidatorCommission.bind(this);
|
|
787
504
|
this.FundCommunityPool = this.FundCommunityPool.bind(this);
|
|
788
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
789
|
-
this.CommunityPoolSpend = this.CommunityPoolSpend.bind(this);
|
|
790
505
|
}
|
|
791
506
|
SetWithdrawAddress(request: MsgSetWithdrawAddress): Promise<MsgSetWithdrawAddressResponse> {
|
|
792
507
|
const data = MsgSetWithdrawAddress.encode(request).finish();
|
|
@@ -813,18 +528,6 @@ export class MsgClientImpl implements Msg {
|
|
|
813
528
|
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "FundCommunityPool", data);
|
|
814
529
|
return promise.then((data) => MsgFundCommunityPoolResponse.decode(new _m0.Reader(data)));
|
|
815
530
|
}
|
|
816
|
-
|
|
817
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
818
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
819
|
-
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "UpdateParams", data);
|
|
820
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
CommunityPoolSpend(request: MsgCommunityPoolSpend): Promise<MsgCommunityPoolSpendResponse> {
|
|
824
|
-
const data = MsgCommunityPoolSpend.encode(request).finish();
|
|
825
|
-
const promise = this.rpc.request("cosmos.distribution.v1beta1.Msg", "CommunityPoolSpend", data);
|
|
826
|
-
return promise.then((data) => MsgCommunityPoolSpendResponse.decode(new _m0.Reader(data)));
|
|
827
|
-
}
|
|
828
531
|
}
|
|
829
532
|
|
|
830
533
|
interface Rpc {
|
|
@@ -103,12 +103,11 @@ export class Api extends HttpClient {
|
|
|
103
103
|
* @tags Query
|
|
104
104
|
* @name QueryEvidence
|
|
105
105
|
* @summary Evidence queries evidence based on evidence hash.
|
|
106
|
-
* @request GET:/cosmos/evidence/v1beta1/evidence/{
|
|
106
|
+
* @request GET:/cosmos/evidence/v1beta1/evidence/{evidence_hash}
|
|
107
107
|
*/
|
|
108
|
-
this.queryEvidence = (
|
|
109
|
-
path: `/cosmos/evidence/v1beta1/evidence/${
|
|
108
|
+
this.queryEvidence = (evidenceHash, params = {}) => this.request({
|
|
109
|
+
path: `/cosmos/evidence/v1beta1/evidence/${evidenceHash}`,
|
|
110
110
|
method: "GET",
|
|
111
|
-
query: query,
|
|
112
111
|
format: "json",
|
|
113
112
|
...params,
|
|
114
113
|
});
|
|
@@ -390,13 +390,12 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
|
|
|
390
390
|
* @tags Query
|
|
391
391
|
* @name QueryEvidence
|
|
392
392
|
* @summary Evidence queries evidence based on evidence hash.
|
|
393
|
-
* @request GET:/cosmos/evidence/v1beta1/evidence/{
|
|
393
|
+
* @request GET:/cosmos/evidence/v1beta1/evidence/{evidence_hash}
|
|
394
394
|
*/
|
|
395
|
-
queryEvidence = (
|
|
395
|
+
queryEvidence = (evidenceHash: string, params: RequestParams = {}) =>
|
|
396
396
|
this.request<V1Beta1QueryEvidenceResponse, RpcStatus>({
|
|
397
|
-
path: `/cosmos/evidence/v1beta1/evidence/${
|
|
397
|
+
path: `/cosmos/evidence/v1beta1/evidence/${evidenceHash}`,
|
|
398
398
|
method: "GET",
|
|
399
|
-
query: query,
|
|
400
399
|
format: "json",
|
|
401
400
|
...params,
|
|
402
401
|
});
|
|
@@ -10,15 +10,9 @@ export const protobufPackage = "cosmos.evidence.v1beta1";
|
|
|
10
10
|
* signing misbehavior.
|
|
11
11
|
*/
|
|
12
12
|
export interface Equivocation {
|
|
13
|
-
/** height is the equivocation height. */
|
|
14
13
|
height: number;
|
|
15
|
-
|
|
16
|
-
time:
|
|
17
|
-
| Date
|
|
18
|
-
| undefined;
|
|
19
|
-
/** power is the equivocation validator power. */
|
|
14
|
+
time: Date | undefined;
|
|
20
15
|
power: number;
|
|
21
|
-
/** consensus_address is the equivocation validator consensus address. */
|
|
22
16
|
consensusAddress: string;
|
|
23
17
|
}
|
|
24
18
|
|
|
@@ -4,16 +4,13 @@ import { Any } from "../../../google/protobuf/any";
|
|
|
4
4
|
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
5
5
|
export const protobufPackage = "cosmos.evidence.v1beta1";
|
|
6
6
|
function createBaseQueryEvidenceRequest() {
|
|
7
|
-
return { evidenceHash: new Uint8Array()
|
|
7
|
+
return { evidenceHash: new Uint8Array() };
|
|
8
8
|
}
|
|
9
9
|
export const QueryEvidenceRequest = {
|
|
10
10
|
encode(message, writer = _m0.Writer.create()) {
|
|
11
11
|
if (message.evidenceHash.length !== 0) {
|
|
12
12
|
writer.uint32(10).bytes(message.evidenceHash);
|
|
13
13
|
}
|
|
14
|
-
if (message.hash !== "") {
|
|
15
|
-
writer.uint32(18).string(message.hash);
|
|
16
|
-
}
|
|
17
14
|
return writer;
|
|
18
15
|
},
|
|
19
16
|
decode(input, length) {
|
|
@@ -26,9 +23,6 @@ export const QueryEvidenceRequest = {
|
|
|
26
23
|
case 1:
|
|
27
24
|
message.evidenceHash = reader.bytes();
|
|
28
25
|
break;
|
|
29
|
-
case 2:
|
|
30
|
-
message.hash = reader.string();
|
|
31
|
-
break;
|
|
32
26
|
default:
|
|
33
27
|
reader.skipType(tag & 7);
|
|
34
28
|
break;
|
|
@@ -37,22 +31,17 @@ export const QueryEvidenceRequest = {
|
|
|
37
31
|
return message;
|
|
38
32
|
},
|
|
39
33
|
fromJSON(object) {
|
|
40
|
-
return {
|
|
41
|
-
evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array(),
|
|
42
|
-
hash: isSet(object.hash) ? String(object.hash) : "",
|
|
43
|
-
};
|
|
34
|
+
return { evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array() };
|
|
44
35
|
},
|
|
45
36
|
toJSON(message) {
|
|
46
37
|
const obj = {};
|
|
47
38
|
message.evidenceHash !== undefined
|
|
48
39
|
&& (obj.evidenceHash = base64FromBytes(message.evidenceHash !== undefined ? message.evidenceHash : new Uint8Array()));
|
|
49
|
-
message.hash !== undefined && (obj.hash = message.hash);
|
|
50
40
|
return obj;
|
|
51
41
|
},
|
|
52
42
|
fromPartial(object) {
|
|
53
43
|
const message = createBaseQueryEvidenceRequest();
|
|
54
44
|
message.evidenceHash = object.evidenceHash ?? new Uint8Array();
|
|
55
|
-
message.hash = object.hash ?? "";
|
|
56
45
|
return message;
|
|
57
46
|
},
|
|
58
47
|
};
|
|
@@ -7,19 +7,8 @@ export const protobufPackage = "cosmos.evidence.v1beta1";
|
|
|
7
7
|
|
|
8
8
|
/** QueryEvidenceRequest is the request type for the Query/Evidence RPC method. */
|
|
9
9
|
export interface QueryEvidenceRequest {
|
|
10
|
-
/**
|
|
11
|
-
* evidence_hash defines the hash of the requested evidence.
|
|
12
|
-
* Deprecated: Use hash, a HEX encoded string, instead.
|
|
13
|
-
*
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
10
|
+
/** evidence_hash defines the hash of the requested evidence. */
|
|
16
11
|
evidenceHash: Uint8Array;
|
|
17
|
-
/**
|
|
18
|
-
* hash defines the evidence hash of the requested evidence.
|
|
19
|
-
*
|
|
20
|
-
* Since: cosmos-sdk 0.47
|
|
21
|
-
*/
|
|
22
|
-
hash: string;
|
|
23
12
|
}
|
|
24
13
|
|
|
25
14
|
/** QueryEvidenceResponse is the response type for the Query/Evidence RPC method. */
|
|
@@ -49,7 +38,7 @@ export interface QueryAllEvidenceResponse {
|
|
|
49
38
|
}
|
|
50
39
|
|
|
51
40
|
function createBaseQueryEvidenceRequest(): QueryEvidenceRequest {
|
|
52
|
-
return { evidenceHash: new Uint8Array()
|
|
41
|
+
return { evidenceHash: new Uint8Array() };
|
|
53
42
|
}
|
|
54
43
|
|
|
55
44
|
export const QueryEvidenceRequest = {
|
|
@@ -57,9 +46,6 @@ export const QueryEvidenceRequest = {
|
|
|
57
46
|
if (message.evidenceHash.length !== 0) {
|
|
58
47
|
writer.uint32(10).bytes(message.evidenceHash);
|
|
59
48
|
}
|
|
60
|
-
if (message.hash !== "") {
|
|
61
|
-
writer.uint32(18).string(message.hash);
|
|
62
|
-
}
|
|
63
49
|
return writer;
|
|
64
50
|
},
|
|
65
51
|
|
|
@@ -73,9 +59,6 @@ export const QueryEvidenceRequest = {
|
|
|
73
59
|
case 1:
|
|
74
60
|
message.evidenceHash = reader.bytes();
|
|
75
61
|
break;
|
|
76
|
-
case 2:
|
|
77
|
-
message.hash = reader.string();
|
|
78
|
-
break;
|
|
79
62
|
default:
|
|
80
63
|
reader.skipType(tag & 7);
|
|
81
64
|
break;
|
|
@@ -85,10 +68,7 @@ export const QueryEvidenceRequest = {
|
|
|
85
68
|
},
|
|
86
69
|
|
|
87
70
|
fromJSON(object: any): QueryEvidenceRequest {
|
|
88
|
-
return {
|
|
89
|
-
evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array(),
|
|
90
|
-
hash: isSet(object.hash) ? String(object.hash) : "",
|
|
91
|
-
};
|
|
71
|
+
return { evidenceHash: isSet(object.evidenceHash) ? bytesFromBase64(object.evidenceHash) : new Uint8Array() };
|
|
92
72
|
},
|
|
93
73
|
|
|
94
74
|
toJSON(message: QueryEvidenceRequest): unknown {
|
|
@@ -97,14 +77,12 @@ export const QueryEvidenceRequest = {
|
|
|
97
77
|
&& (obj.evidenceHash = base64FromBytes(
|
|
98
78
|
message.evidenceHash !== undefined ? message.evidenceHash : new Uint8Array(),
|
|
99
79
|
));
|
|
100
|
-
message.hash !== undefined && (obj.hash = message.hash);
|
|
101
80
|
return obj;
|
|
102
81
|
},
|
|
103
82
|
|
|
104
83
|
fromPartial<I extends Exact<DeepPartial<QueryEvidenceRequest>, I>>(object: I): QueryEvidenceRequest {
|
|
105
84
|
const message = createBaseQueryEvidenceRequest();
|
|
106
85
|
message.evidenceHash = object.evidenceHash ?? new Uint8Array();
|
|
107
|
-
message.hash = object.hash ?? "";
|
|
108
86
|
return message;
|
|
109
87
|
},
|
|
110
88
|
};
|
|
@@ -9,9 +9,7 @@ export const protobufPackage = "cosmos.evidence.v1beta1";
|
|
|
9
9
|
* Evidence of misbehavior such as equivocation or counterfactual signing.
|
|
10
10
|
*/
|
|
11
11
|
export interface MsgSubmitEvidence {
|
|
12
|
-
/** submitter is the signer account address of evidence. */
|
|
13
12
|
submitter: string;
|
|
14
|
-
/** evidence defines the evidence of misbehavior. */
|
|
15
13
|
evidence: Any | undefined;
|
|
16
14
|
}
|
|
17
15
|
|