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
|
@@ -5,7 +5,6 @@ import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
|
5
5
|
import {
|
|
6
6
|
Deposit,
|
|
7
7
|
DepositParams,
|
|
8
|
-
Params,
|
|
9
8
|
Proposal,
|
|
10
9
|
ProposalStatus,
|
|
11
10
|
proposalStatusFromJSON,
|
|
@@ -28,7 +27,6 @@ export interface QueryProposalRequest {
|
|
|
28
27
|
|
|
29
28
|
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
|
30
29
|
export interface QueryProposalResponse {
|
|
31
|
-
/** proposal is the requested governance proposal. */
|
|
32
30
|
proposal: Proposal | undefined;
|
|
33
31
|
}
|
|
34
32
|
|
|
@@ -49,7 +47,6 @@ export interface QueryProposalsRequest {
|
|
|
49
47
|
* method.
|
|
50
48
|
*/
|
|
51
49
|
export interface QueryProposalsResponse {
|
|
52
|
-
/** proposals defines all the requested governance proposals. */
|
|
53
50
|
proposals: Proposal[];
|
|
54
51
|
/** pagination defines the pagination in the response. */
|
|
55
52
|
pagination: PageResponse | undefined;
|
|
@@ -65,7 +62,7 @@ export interface QueryVoteRequest {
|
|
|
65
62
|
|
|
66
63
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
|
67
64
|
export interface QueryVoteResponse {
|
|
68
|
-
/** vote
|
|
65
|
+
/** vote defined the queried vote. */
|
|
69
66
|
vote: Vote | undefined;
|
|
70
67
|
}
|
|
71
68
|
|
|
@@ -79,7 +76,7 @@ export interface QueryVotesRequest {
|
|
|
79
76
|
|
|
80
77
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
|
81
78
|
export interface QueryVotesResponse {
|
|
82
|
-
/** votes
|
|
79
|
+
/** votes defined the queried votes. */
|
|
83
80
|
votes: Vote[];
|
|
84
81
|
/** pagination defines the pagination in the response. */
|
|
85
82
|
pagination: PageResponse | undefined;
|
|
@@ -96,39 +93,16 @@ export interface QueryParamsRequest {
|
|
|
96
93
|
|
|
97
94
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
98
95
|
export interface QueryParamsResponse {
|
|
99
|
-
/**
|
|
100
|
-
* Deprecated: Prefer to use `params` instead.
|
|
101
|
-
* voting_params defines the parameters related to voting.
|
|
102
|
-
*
|
|
103
|
-
* @deprecated
|
|
104
|
-
*/
|
|
96
|
+
/** voting_params defines the parameters related to voting. */
|
|
105
97
|
votingParams:
|
|
106
98
|
| VotingParams
|
|
107
99
|
| undefined;
|
|
108
|
-
/**
|
|
109
|
-
* Deprecated: Prefer to use `params` instead.
|
|
110
|
-
* deposit_params defines the parameters related to deposit.
|
|
111
|
-
*
|
|
112
|
-
* @deprecated
|
|
113
|
-
*/
|
|
100
|
+
/** deposit_params defines the parameters related to deposit. */
|
|
114
101
|
depositParams:
|
|
115
102
|
| DepositParams
|
|
116
103
|
| undefined;
|
|
117
|
-
/**
|
|
118
|
-
|
|
119
|
-
* tally_params defines the parameters related to tally.
|
|
120
|
-
*
|
|
121
|
-
* @deprecated
|
|
122
|
-
*/
|
|
123
|
-
tallyParams:
|
|
124
|
-
| TallyParams
|
|
125
|
-
| undefined;
|
|
126
|
-
/**
|
|
127
|
-
* params defines all the paramaters of x/gov module.
|
|
128
|
-
*
|
|
129
|
-
* Since: cosmos-sdk 0.47
|
|
130
|
-
*/
|
|
131
|
-
params: Params | undefined;
|
|
104
|
+
/** tally_params defines the parameters related to tally. */
|
|
105
|
+
tallyParams: TallyParams | undefined;
|
|
132
106
|
}
|
|
133
107
|
|
|
134
108
|
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
|
@@ -155,7 +129,6 @@ export interface QueryDepositsRequest {
|
|
|
155
129
|
|
|
156
130
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
|
157
131
|
export interface QueryDepositsResponse {
|
|
158
|
-
/** deposits defines the requested deposits. */
|
|
159
132
|
deposits: Deposit[];
|
|
160
133
|
/** pagination defines the pagination in the response. */
|
|
161
134
|
pagination: PageResponse | undefined;
|
|
@@ -692,7 +665,7 @@ export const QueryParamsRequest = {
|
|
|
692
665
|
};
|
|
693
666
|
|
|
694
667
|
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
695
|
-
return { votingParams: undefined, depositParams: undefined, tallyParams: undefined
|
|
668
|
+
return { votingParams: undefined, depositParams: undefined, tallyParams: undefined };
|
|
696
669
|
}
|
|
697
670
|
|
|
698
671
|
export const QueryParamsResponse = {
|
|
@@ -706,9 +679,6 @@ export const QueryParamsResponse = {
|
|
|
706
679
|
if (message.tallyParams !== undefined) {
|
|
707
680
|
TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim();
|
|
708
681
|
}
|
|
709
|
-
if (message.params !== undefined) {
|
|
710
|
-
Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
711
|
-
}
|
|
712
682
|
return writer;
|
|
713
683
|
},
|
|
714
684
|
|
|
@@ -728,9 +698,6 @@ export const QueryParamsResponse = {
|
|
|
728
698
|
case 3:
|
|
729
699
|
message.tallyParams = TallyParams.decode(reader, reader.uint32());
|
|
730
700
|
break;
|
|
731
|
-
case 4:
|
|
732
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
733
|
-
break;
|
|
734
701
|
default:
|
|
735
702
|
reader.skipType(tag & 7);
|
|
736
703
|
break;
|
|
@@ -744,7 +711,6 @@ export const QueryParamsResponse = {
|
|
|
744
711
|
votingParams: isSet(object.votingParams) ? VotingParams.fromJSON(object.votingParams) : undefined,
|
|
745
712
|
depositParams: isSet(object.depositParams) ? DepositParams.fromJSON(object.depositParams) : undefined,
|
|
746
713
|
tallyParams: isSet(object.tallyParams) ? TallyParams.fromJSON(object.tallyParams) : undefined,
|
|
747
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
748
714
|
};
|
|
749
715
|
},
|
|
750
716
|
|
|
@@ -756,7 +722,6 @@ export const QueryParamsResponse = {
|
|
|
756
722
|
&& (obj.depositParams = message.depositParams ? DepositParams.toJSON(message.depositParams) : undefined);
|
|
757
723
|
message.tallyParams !== undefined
|
|
758
724
|
&& (obj.tallyParams = message.tallyParams ? TallyParams.toJSON(message.tallyParams) : undefined);
|
|
759
|
-
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
760
725
|
return obj;
|
|
761
726
|
},
|
|
762
727
|
|
|
@@ -771,9 +736,6 @@ export const QueryParamsResponse = {
|
|
|
771
736
|
message.tallyParams = (object.tallyParams !== undefined && object.tallyParams !== null)
|
|
772
737
|
? TallyParams.fromPartial(object.tallyParams)
|
|
773
738
|
: undefined;
|
|
774
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
775
|
-
? Params.fromPartial(object.params)
|
|
776
|
-
: undefined;
|
|
777
739
|
return message;
|
|
778
740
|
},
|
|
779
741
|
};
|
|
@@ -3,10 +3,10 @@ import Long from "long";
|
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
4
|
import { Any } from "../../../google/protobuf/any";
|
|
5
5
|
import { Coin } from "../../base/v1beta1/coin";
|
|
6
|
-
import {
|
|
6
|
+
import { voteOptionFromJSON, voteOptionToJSON, WeightedVoteOption } from "./gov";
|
|
7
7
|
export const protobufPackage = "cosmos.gov.v1";
|
|
8
8
|
function createBaseMsgSubmitProposal() {
|
|
9
|
-
return { messages: [], initialDeposit: [], proposer: "", metadata: ""
|
|
9
|
+
return { messages: [], initialDeposit: [], proposer: "", metadata: "" };
|
|
10
10
|
}
|
|
11
11
|
export const MsgSubmitProposal = {
|
|
12
12
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -22,12 +22,6 @@ export const MsgSubmitProposal = {
|
|
|
22
22
|
if (message.metadata !== "") {
|
|
23
23
|
writer.uint32(34).string(message.metadata);
|
|
24
24
|
}
|
|
25
|
-
if (message.title !== "") {
|
|
26
|
-
writer.uint32(42).string(message.title);
|
|
27
|
-
}
|
|
28
|
-
if (message.summary !== "") {
|
|
29
|
-
writer.uint32(50).string(message.summary);
|
|
30
|
-
}
|
|
31
25
|
return writer;
|
|
32
26
|
},
|
|
33
27
|
decode(input, length) {
|
|
@@ -49,12 +43,6 @@ export const MsgSubmitProposal = {
|
|
|
49
43
|
case 4:
|
|
50
44
|
message.metadata = reader.string();
|
|
51
45
|
break;
|
|
52
|
-
case 5:
|
|
53
|
-
message.title = reader.string();
|
|
54
|
-
break;
|
|
55
|
-
case 6:
|
|
56
|
-
message.summary = reader.string();
|
|
57
|
-
break;
|
|
58
46
|
default:
|
|
59
47
|
reader.skipType(tag & 7);
|
|
60
48
|
break;
|
|
@@ -70,8 +58,6 @@ export const MsgSubmitProposal = {
|
|
|
70
58
|
: [],
|
|
71
59
|
proposer: isSet(object.proposer) ? String(object.proposer) : "",
|
|
72
60
|
metadata: isSet(object.metadata) ? String(object.metadata) : "",
|
|
73
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
74
|
-
summary: isSet(object.summary) ? String(object.summary) : "",
|
|
75
61
|
};
|
|
76
62
|
},
|
|
77
63
|
toJSON(message) {
|
|
@@ -90,8 +76,6 @@ export const MsgSubmitProposal = {
|
|
|
90
76
|
}
|
|
91
77
|
message.proposer !== undefined && (obj.proposer = message.proposer);
|
|
92
78
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
93
|
-
message.title !== undefined && (obj.title = message.title);
|
|
94
|
-
message.summary !== undefined && (obj.summary = message.summary);
|
|
95
79
|
return obj;
|
|
96
80
|
},
|
|
97
81
|
fromPartial(object) {
|
|
@@ -100,8 +84,6 @@ export const MsgSubmitProposal = {
|
|
|
100
84
|
message.initialDeposit = object.initialDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
101
85
|
message.proposer = object.proposer ?? "";
|
|
102
86
|
message.metadata = object.metadata ?? "";
|
|
103
|
-
message.title = object.title ?? "";
|
|
104
|
-
message.summary = object.summary ?? "";
|
|
105
87
|
return message;
|
|
106
88
|
},
|
|
107
89
|
};
|
|
@@ -543,93 +525,6 @@ export const MsgDepositResponse = {
|
|
|
543
525
|
return message;
|
|
544
526
|
},
|
|
545
527
|
};
|
|
546
|
-
function createBaseMsgUpdateParams() {
|
|
547
|
-
return { authority: "", params: undefined };
|
|
548
|
-
}
|
|
549
|
-
export const MsgUpdateParams = {
|
|
550
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
551
|
-
if (message.authority !== "") {
|
|
552
|
-
writer.uint32(10).string(message.authority);
|
|
553
|
-
}
|
|
554
|
-
if (message.params !== undefined) {
|
|
555
|
-
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
556
|
-
}
|
|
557
|
-
return writer;
|
|
558
|
-
},
|
|
559
|
-
decode(input, length) {
|
|
560
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
561
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
562
|
-
const message = createBaseMsgUpdateParams();
|
|
563
|
-
while (reader.pos < end) {
|
|
564
|
-
const tag = reader.uint32();
|
|
565
|
-
switch (tag >>> 3) {
|
|
566
|
-
case 1:
|
|
567
|
-
message.authority = reader.string();
|
|
568
|
-
break;
|
|
569
|
-
case 2:
|
|
570
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
571
|
-
break;
|
|
572
|
-
default:
|
|
573
|
-
reader.skipType(tag & 7);
|
|
574
|
-
break;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
return message;
|
|
578
|
-
},
|
|
579
|
-
fromJSON(object) {
|
|
580
|
-
return {
|
|
581
|
-
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
582
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
583
|
-
};
|
|
584
|
-
},
|
|
585
|
-
toJSON(message) {
|
|
586
|
-
const obj = {};
|
|
587
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
588
|
-
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
589
|
-
return obj;
|
|
590
|
-
},
|
|
591
|
-
fromPartial(object) {
|
|
592
|
-
const message = createBaseMsgUpdateParams();
|
|
593
|
-
message.authority = object.authority ?? "";
|
|
594
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
595
|
-
? Params.fromPartial(object.params)
|
|
596
|
-
: undefined;
|
|
597
|
-
return message;
|
|
598
|
-
},
|
|
599
|
-
};
|
|
600
|
-
function createBaseMsgUpdateParamsResponse() {
|
|
601
|
-
return {};
|
|
602
|
-
}
|
|
603
|
-
export const MsgUpdateParamsResponse = {
|
|
604
|
-
encode(_, writer = _m0.Writer.create()) {
|
|
605
|
-
return writer;
|
|
606
|
-
},
|
|
607
|
-
decode(input, length) {
|
|
608
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
609
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
610
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
611
|
-
while (reader.pos < end) {
|
|
612
|
-
const tag = reader.uint32();
|
|
613
|
-
switch (tag >>> 3) {
|
|
614
|
-
default:
|
|
615
|
-
reader.skipType(tag & 7);
|
|
616
|
-
break;
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
return message;
|
|
620
|
-
},
|
|
621
|
-
fromJSON(_) {
|
|
622
|
-
return {};
|
|
623
|
-
},
|
|
624
|
-
toJSON(_) {
|
|
625
|
-
const obj = {};
|
|
626
|
-
return obj;
|
|
627
|
-
},
|
|
628
|
-
fromPartial(_) {
|
|
629
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
630
|
-
return message;
|
|
631
|
-
},
|
|
632
|
-
};
|
|
633
528
|
export class MsgClientImpl {
|
|
634
529
|
constructor(rpc) {
|
|
635
530
|
this.rpc = rpc;
|
|
@@ -638,7 +533,6 @@ export class MsgClientImpl {
|
|
|
638
533
|
this.Vote = this.Vote.bind(this);
|
|
639
534
|
this.VoteWeighted = this.VoteWeighted.bind(this);
|
|
640
535
|
this.Deposit = this.Deposit.bind(this);
|
|
641
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
642
536
|
}
|
|
643
537
|
SubmitProposal(request) {
|
|
644
538
|
const data = MsgSubmitProposal.encode(request).finish();
|
|
@@ -665,11 +559,6 @@ export class MsgClientImpl {
|
|
|
665
559
|
const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data);
|
|
666
560
|
return promise.then((data) => MsgDepositResponse.decode(new _m0.Reader(data)));
|
|
667
561
|
}
|
|
668
|
-
UpdateParams(request) {
|
|
669
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
670
|
-
const promise = this.rpc.request("cosmos.gov.v1.Msg", "UpdateParams", data);
|
|
671
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
672
|
-
}
|
|
673
562
|
}
|
|
674
563
|
var globalThis = (() => {
|
|
675
564
|
if (typeof globalThis !== "undefined") {
|
|
@@ -3,7 +3,7 @@ import Long from "long";
|
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
4
|
import { Any } from "../../../google/protobuf/any";
|
|
5
5
|
import { Coin } from "../../base/v1beta1/coin";
|
|
6
|
-
import {
|
|
6
|
+
import { VoteOption, voteOptionFromJSON, voteOptionToJSON, WeightedVoteOption } from "./gov";
|
|
7
7
|
|
|
8
8
|
export const protobufPackage = "cosmos.gov.v1";
|
|
9
9
|
|
|
@@ -14,31 +14,15 @@ export const protobufPackage = "cosmos.gov.v1";
|
|
|
14
14
|
* proposal Content.
|
|
15
15
|
*/
|
|
16
16
|
export interface MsgSubmitProposal {
|
|
17
|
-
/** messages are the arbitrary messages to be executed if proposal passes. */
|
|
18
17
|
messages: Any[];
|
|
19
|
-
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
20
18
|
initialDeposit: Coin[];
|
|
21
|
-
/** proposer is the account address of the proposer. */
|
|
22
19
|
proposer: string;
|
|
23
20
|
/** metadata is any arbitrary metadata attached to the proposal. */
|
|
24
21
|
metadata: string;
|
|
25
|
-
/**
|
|
26
|
-
* title is the title of the proposal.
|
|
27
|
-
*
|
|
28
|
-
* Since: cosmos-sdk 0.47
|
|
29
|
-
*/
|
|
30
|
-
title: string;
|
|
31
|
-
/**
|
|
32
|
-
* summary is the summary of the proposal
|
|
33
|
-
*
|
|
34
|
-
* Since: cosmos-sdk 0.47
|
|
35
|
-
*/
|
|
36
|
-
summary: string;
|
|
37
22
|
}
|
|
38
23
|
|
|
39
24
|
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
40
25
|
export interface MsgSubmitProposalResponse {
|
|
41
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
42
26
|
proposalId: number;
|
|
43
27
|
}
|
|
44
28
|
|
|
@@ -61,13 +45,9 @@ export interface MsgExecLegacyContentResponse {
|
|
|
61
45
|
|
|
62
46
|
/** MsgVote defines a message to cast a vote. */
|
|
63
47
|
export interface MsgVote {
|
|
64
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
65
48
|
proposalId: number;
|
|
66
|
-
/** voter is the voter address for the proposal. */
|
|
67
49
|
voter: string;
|
|
68
|
-
/** option defines the vote option. */
|
|
69
50
|
option: VoteOption;
|
|
70
|
-
/** metadata is any arbitrary metadata attached to the Vote. */
|
|
71
51
|
metadata: string;
|
|
72
52
|
}
|
|
73
53
|
|
|
@@ -77,13 +57,9 @@ export interface MsgVoteResponse {
|
|
|
77
57
|
|
|
78
58
|
/** MsgVoteWeighted defines a message to cast a vote. */
|
|
79
59
|
export interface MsgVoteWeighted {
|
|
80
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
81
60
|
proposalId: number;
|
|
82
|
-
/** voter is the voter address for the proposal. */
|
|
83
61
|
voter: string;
|
|
84
|
-
/** options defines the weighted vote options. */
|
|
85
62
|
options: WeightedVoteOption[];
|
|
86
|
-
/** metadata is any arbitrary metadata attached to the VoteWeighted. */
|
|
87
63
|
metadata: string;
|
|
88
64
|
}
|
|
89
65
|
|
|
@@ -93,11 +69,8 @@ export interface MsgVoteWeightedResponse {
|
|
|
93
69
|
|
|
94
70
|
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
95
71
|
export interface MsgDeposit {
|
|
96
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
97
72
|
proposalId: number;
|
|
98
|
-
/** depositor defines the deposit addresses from the proposals. */
|
|
99
73
|
depositor: string;
|
|
100
|
-
/** amount to be deposited by depositor. */
|
|
101
74
|
amount: Coin[];
|
|
102
75
|
}
|
|
103
76
|
|
|
@@ -105,33 +78,8 @@ export interface MsgDeposit {
|
|
|
105
78
|
export interface MsgDepositResponse {
|
|
106
79
|
}
|
|
107
80
|
|
|
108
|
-
/**
|
|
109
|
-
* MsgUpdateParams is the Msg/UpdateParams request type.
|
|
110
|
-
*
|
|
111
|
-
* Since: cosmos-sdk 0.47
|
|
112
|
-
*/
|
|
113
|
-
export interface MsgUpdateParams {
|
|
114
|
-
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
115
|
-
authority: string;
|
|
116
|
-
/**
|
|
117
|
-
* params defines the x/gov parameters to update.
|
|
118
|
-
*
|
|
119
|
-
* NOTE: All parameters must be supplied.
|
|
120
|
-
*/
|
|
121
|
-
params: Params | undefined;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* MsgUpdateParamsResponse defines the response structure for executing a
|
|
126
|
-
* MsgUpdateParams message.
|
|
127
|
-
*
|
|
128
|
-
* Since: cosmos-sdk 0.47
|
|
129
|
-
*/
|
|
130
|
-
export interface MsgUpdateParamsResponse {
|
|
131
|
-
}
|
|
132
|
-
|
|
133
81
|
function createBaseMsgSubmitProposal(): MsgSubmitProposal {
|
|
134
|
-
return { messages: [], initialDeposit: [], proposer: "", metadata: ""
|
|
82
|
+
return { messages: [], initialDeposit: [], proposer: "", metadata: "" };
|
|
135
83
|
}
|
|
136
84
|
|
|
137
85
|
export const MsgSubmitProposal = {
|
|
@@ -148,12 +96,6 @@ export const MsgSubmitProposal = {
|
|
|
148
96
|
if (message.metadata !== "") {
|
|
149
97
|
writer.uint32(34).string(message.metadata);
|
|
150
98
|
}
|
|
151
|
-
if (message.title !== "") {
|
|
152
|
-
writer.uint32(42).string(message.title);
|
|
153
|
-
}
|
|
154
|
-
if (message.summary !== "") {
|
|
155
|
-
writer.uint32(50).string(message.summary);
|
|
156
|
-
}
|
|
157
99
|
return writer;
|
|
158
100
|
},
|
|
159
101
|
|
|
@@ -176,12 +118,6 @@ export const MsgSubmitProposal = {
|
|
|
176
118
|
case 4:
|
|
177
119
|
message.metadata = reader.string();
|
|
178
120
|
break;
|
|
179
|
-
case 5:
|
|
180
|
-
message.title = reader.string();
|
|
181
|
-
break;
|
|
182
|
-
case 6:
|
|
183
|
-
message.summary = reader.string();
|
|
184
|
-
break;
|
|
185
121
|
default:
|
|
186
122
|
reader.skipType(tag & 7);
|
|
187
123
|
break;
|
|
@@ -198,8 +134,6 @@ export const MsgSubmitProposal = {
|
|
|
198
134
|
: [],
|
|
199
135
|
proposer: isSet(object.proposer) ? String(object.proposer) : "",
|
|
200
136
|
metadata: isSet(object.metadata) ? String(object.metadata) : "",
|
|
201
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
202
|
-
summary: isSet(object.summary) ? String(object.summary) : "",
|
|
203
137
|
};
|
|
204
138
|
},
|
|
205
139
|
|
|
@@ -217,8 +151,6 @@ export const MsgSubmitProposal = {
|
|
|
217
151
|
}
|
|
218
152
|
message.proposer !== undefined && (obj.proposer = message.proposer);
|
|
219
153
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
220
|
-
message.title !== undefined && (obj.title = message.title);
|
|
221
|
-
message.summary !== undefined && (obj.summary = message.summary);
|
|
222
154
|
return obj;
|
|
223
155
|
},
|
|
224
156
|
|
|
@@ -228,8 +160,6 @@ export const MsgSubmitProposal = {
|
|
|
228
160
|
message.initialDeposit = object.initialDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
229
161
|
message.proposer = object.proposer ?? "";
|
|
230
162
|
message.metadata = object.metadata ?? "";
|
|
231
|
-
message.title = object.title ?? "";
|
|
232
|
-
message.summary = object.summary ?? "";
|
|
233
163
|
return message;
|
|
234
164
|
},
|
|
235
165
|
};
|
|
@@ -724,108 +654,9 @@ export const MsgDepositResponse = {
|
|
|
724
654
|
},
|
|
725
655
|
};
|
|
726
656
|
|
|
727
|
-
function createBaseMsgUpdateParams(): MsgUpdateParams {
|
|
728
|
-
return { authority: "", params: undefined };
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
export const MsgUpdateParams = {
|
|
732
|
-
encode(message: MsgUpdateParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
733
|
-
if (message.authority !== "") {
|
|
734
|
-
writer.uint32(10).string(message.authority);
|
|
735
|
-
}
|
|
736
|
-
if (message.params !== undefined) {
|
|
737
|
-
Params.encode(message.params, writer.uint32(18).fork()).ldelim();
|
|
738
|
-
}
|
|
739
|
-
return writer;
|
|
740
|
-
},
|
|
741
|
-
|
|
742
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams {
|
|
743
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
744
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
745
|
-
const message = createBaseMsgUpdateParams();
|
|
746
|
-
while (reader.pos < end) {
|
|
747
|
-
const tag = reader.uint32();
|
|
748
|
-
switch (tag >>> 3) {
|
|
749
|
-
case 1:
|
|
750
|
-
message.authority = reader.string();
|
|
751
|
-
break;
|
|
752
|
-
case 2:
|
|
753
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
754
|
-
break;
|
|
755
|
-
default:
|
|
756
|
-
reader.skipType(tag & 7);
|
|
757
|
-
break;
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
return message;
|
|
761
|
-
},
|
|
762
|
-
|
|
763
|
-
fromJSON(object: any): MsgUpdateParams {
|
|
764
|
-
return {
|
|
765
|
-
authority: isSet(object.authority) ? String(object.authority) : "",
|
|
766
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
767
|
-
};
|
|
768
|
-
},
|
|
769
|
-
|
|
770
|
-
toJSON(message: MsgUpdateParams): unknown {
|
|
771
|
-
const obj: any = {};
|
|
772
|
-
message.authority !== undefined && (obj.authority = message.authority);
|
|
773
|
-
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
774
|
-
return obj;
|
|
775
|
-
},
|
|
776
|
-
|
|
777
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParams>, I>>(object: I): MsgUpdateParams {
|
|
778
|
-
const message = createBaseMsgUpdateParams();
|
|
779
|
-
message.authority = object.authority ?? "";
|
|
780
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
781
|
-
? Params.fromPartial(object.params)
|
|
782
|
-
: undefined;
|
|
783
|
-
return message;
|
|
784
|
-
},
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
function createBaseMsgUpdateParamsResponse(): MsgUpdateParamsResponse {
|
|
788
|
-
return {};
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
export const MsgUpdateParamsResponse = {
|
|
792
|
-
encode(_: MsgUpdateParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
793
|
-
return writer;
|
|
794
|
-
},
|
|
795
|
-
|
|
796
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse {
|
|
797
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
798
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
799
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
800
|
-
while (reader.pos < end) {
|
|
801
|
-
const tag = reader.uint32();
|
|
802
|
-
switch (tag >>> 3) {
|
|
803
|
-
default:
|
|
804
|
-
reader.skipType(tag & 7);
|
|
805
|
-
break;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
return message;
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
fromJSON(_: any): MsgUpdateParamsResponse {
|
|
812
|
-
return {};
|
|
813
|
-
},
|
|
814
|
-
|
|
815
|
-
toJSON(_: MsgUpdateParamsResponse): unknown {
|
|
816
|
-
const obj: any = {};
|
|
817
|
-
return obj;
|
|
818
|
-
},
|
|
819
|
-
|
|
820
|
-
fromPartial<I extends Exact<DeepPartial<MsgUpdateParamsResponse>, I>>(_: I): MsgUpdateParamsResponse {
|
|
821
|
-
const message = createBaseMsgUpdateParamsResponse();
|
|
822
|
-
return message;
|
|
823
|
-
},
|
|
824
|
-
};
|
|
825
|
-
|
|
826
657
|
/** Msg defines the gov Msg service. */
|
|
827
658
|
export interface Msg {
|
|
828
|
-
/** SubmitProposal defines a method to create new proposal given
|
|
659
|
+
/** SubmitProposal defines a method to create new proposal given a content. */
|
|
829
660
|
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse>;
|
|
830
661
|
/**
|
|
831
662
|
* ExecLegacyContent defines a Msg to be in included in a MsgSubmitProposal
|
|
@@ -838,13 +669,6 @@ export interface Msg {
|
|
|
838
669
|
VoteWeighted(request: MsgVoteWeighted): Promise<MsgVoteWeightedResponse>;
|
|
839
670
|
/** Deposit defines a method to add deposit on a specific proposal. */
|
|
840
671
|
Deposit(request: MsgDeposit): Promise<MsgDepositResponse>;
|
|
841
|
-
/**
|
|
842
|
-
* UpdateParams defines a governance operation for updating the x/gov module
|
|
843
|
-
* parameters. The authority is defined in the keeper.
|
|
844
|
-
*
|
|
845
|
-
* Since: cosmos-sdk 0.47
|
|
846
|
-
*/
|
|
847
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
848
672
|
}
|
|
849
673
|
|
|
850
674
|
export class MsgClientImpl implements Msg {
|
|
@@ -856,7 +680,6 @@ export class MsgClientImpl implements Msg {
|
|
|
856
680
|
this.Vote = this.Vote.bind(this);
|
|
857
681
|
this.VoteWeighted = this.VoteWeighted.bind(this);
|
|
858
682
|
this.Deposit = this.Deposit.bind(this);
|
|
859
|
-
this.UpdateParams = this.UpdateParams.bind(this);
|
|
860
683
|
}
|
|
861
684
|
SubmitProposal(request: MsgSubmitProposal): Promise<MsgSubmitProposalResponse> {
|
|
862
685
|
const data = MsgSubmitProposal.encode(request).finish();
|
|
@@ -887,12 +710,6 @@ export class MsgClientImpl implements Msg {
|
|
|
887
710
|
const promise = this.rpc.request("cosmos.gov.v1.Msg", "Deposit", data);
|
|
888
711
|
return promise.then((data) => MsgDepositResponse.decode(new _m0.Reader(data)));
|
|
889
712
|
}
|
|
890
|
-
|
|
891
|
-
UpdateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
892
|
-
const data = MsgUpdateParams.encode(request).finish();
|
|
893
|
-
const promise = this.rpc.request("cosmos.gov.v1.Msg", "UpdateParams", data);
|
|
894
|
-
return promise.then((data) => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
895
|
-
}
|
|
896
713
|
}
|
|
897
714
|
|
|
898
715
|
interface Rpc {
|
package/cosmos.gov.v1/types.js
CHANGED
|
@@ -6,5 +6,4 @@ import { Vote } from "./types/cosmos/gov/v1/gov";
|
|
|
6
6
|
import { DepositParams } from "./types/cosmos/gov/v1/gov";
|
|
7
7
|
import { VotingParams } from "./types/cosmos/gov/v1/gov";
|
|
8
8
|
import { TallyParams } from "./types/cosmos/gov/v1/gov";
|
|
9
|
-
|
|
10
|
-
export { WeightedVoteOption, Deposit, Proposal, TallyResult, Vote, DepositParams, VotingParams, TallyParams, Params, };
|
|
9
|
+
export { WeightedVoteOption, Deposit, Proposal, TallyResult, Vote, DepositParams, VotingParams, TallyParams, };
|
package/cosmos.gov.v1/types.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { Vote } from "./types/cosmos/gov/v1/gov"
|
|
|
6
6
|
import { DepositParams } from "./types/cosmos/gov/v1/gov"
|
|
7
7
|
import { VotingParams } from "./types/cosmos/gov/v1/gov"
|
|
8
8
|
import { TallyParams } from "./types/cosmos/gov/v1/gov"
|
|
9
|
-
import { Params } from "./types/cosmos/gov/v1/gov"
|
|
10
9
|
|
|
11
10
|
|
|
12
11
|
export {
|
|
@@ -18,6 +17,5 @@ export {
|
|
|
18
17
|
DepositParams,
|
|
19
18
|
VotingParams,
|
|
20
19
|
TallyParams,
|
|
21
|
-
Params,
|
|
22
20
|
|
|
23
21
|
}
|