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
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export const protobufPackage = "DecentralCardGame.cardchain.cardchain";
|
|
5
|
+
function createBaseVotingResults() {
|
|
6
|
+
return {
|
|
7
|
+
totalVotes: 0,
|
|
8
|
+
totalFairEnoughVotes: 0,
|
|
9
|
+
totalOverpoweredVotes: 0,
|
|
10
|
+
totalUnderpoweredVotes: 0,
|
|
11
|
+
totalInappropriateVotes: 0,
|
|
12
|
+
cardResults: [],
|
|
13
|
+
notes: "",
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export const VotingResults = {
|
|
17
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
18
|
+
if (message.totalVotes !== 0) {
|
|
19
|
+
writer.uint32(8).uint64(message.totalVotes);
|
|
20
|
+
}
|
|
21
|
+
if (message.totalFairEnoughVotes !== 0) {
|
|
22
|
+
writer.uint32(16).uint64(message.totalFairEnoughVotes);
|
|
23
|
+
}
|
|
24
|
+
if (message.totalOverpoweredVotes !== 0) {
|
|
25
|
+
writer.uint32(24).uint64(message.totalOverpoweredVotes);
|
|
26
|
+
}
|
|
27
|
+
if (message.totalUnderpoweredVotes !== 0) {
|
|
28
|
+
writer.uint32(32).uint64(message.totalUnderpoweredVotes);
|
|
29
|
+
}
|
|
30
|
+
if (message.totalInappropriateVotes !== 0) {
|
|
31
|
+
writer.uint32(40).uint64(message.totalInappropriateVotes);
|
|
32
|
+
}
|
|
33
|
+
for (const v of message.cardResults) {
|
|
34
|
+
VotingResult.encode(v, writer.uint32(50).fork()).ldelim();
|
|
35
|
+
}
|
|
36
|
+
if (message.notes !== "") {
|
|
37
|
+
writer.uint32(58).string(message.notes);
|
|
38
|
+
}
|
|
39
|
+
return writer;
|
|
40
|
+
},
|
|
41
|
+
decode(input, length) {
|
|
42
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
43
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
44
|
+
const message = createBaseVotingResults();
|
|
45
|
+
while (reader.pos < end) {
|
|
46
|
+
const tag = reader.uint32();
|
|
47
|
+
switch (tag >>> 3) {
|
|
48
|
+
case 1:
|
|
49
|
+
message.totalVotes = longToNumber(reader.uint64());
|
|
50
|
+
break;
|
|
51
|
+
case 2:
|
|
52
|
+
message.totalFairEnoughVotes = longToNumber(reader.uint64());
|
|
53
|
+
break;
|
|
54
|
+
case 3:
|
|
55
|
+
message.totalOverpoweredVotes = longToNumber(reader.uint64());
|
|
56
|
+
break;
|
|
57
|
+
case 4:
|
|
58
|
+
message.totalUnderpoweredVotes = longToNumber(reader.uint64());
|
|
59
|
+
break;
|
|
60
|
+
case 5:
|
|
61
|
+
message.totalInappropriateVotes = longToNumber(reader.uint64());
|
|
62
|
+
break;
|
|
63
|
+
case 6:
|
|
64
|
+
message.cardResults.push(VotingResult.decode(reader, reader.uint32()));
|
|
65
|
+
break;
|
|
66
|
+
case 7:
|
|
67
|
+
message.notes = reader.string();
|
|
68
|
+
break;
|
|
69
|
+
default:
|
|
70
|
+
reader.skipType(tag & 7);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return message;
|
|
75
|
+
},
|
|
76
|
+
fromJSON(object) {
|
|
77
|
+
return {
|
|
78
|
+
totalVotes: isSet(object.totalVotes) ? Number(object.totalVotes) : 0,
|
|
79
|
+
totalFairEnoughVotes: isSet(object.totalFairEnoughVotes) ? Number(object.totalFairEnoughVotes) : 0,
|
|
80
|
+
totalOverpoweredVotes: isSet(object.totalOverpoweredVotes) ? Number(object.totalOverpoweredVotes) : 0,
|
|
81
|
+
totalUnderpoweredVotes: isSet(object.totalUnderpoweredVotes) ? Number(object.totalUnderpoweredVotes) : 0,
|
|
82
|
+
totalInappropriateVotes: isSet(object.totalInappropriateVotes) ? Number(object.totalInappropriateVotes) : 0,
|
|
83
|
+
cardResults: Array.isArray(object?.cardResults)
|
|
84
|
+
? object.cardResults.map((e) => VotingResult.fromJSON(e))
|
|
85
|
+
: [],
|
|
86
|
+
notes: isSet(object.notes) ? String(object.notes) : "",
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
toJSON(message) {
|
|
90
|
+
const obj = {};
|
|
91
|
+
message.totalVotes !== undefined && (obj.totalVotes = Math.round(message.totalVotes));
|
|
92
|
+
message.totalFairEnoughVotes !== undefined && (obj.totalFairEnoughVotes = Math.round(message.totalFairEnoughVotes));
|
|
93
|
+
message.totalOverpoweredVotes !== undefined
|
|
94
|
+
&& (obj.totalOverpoweredVotes = Math.round(message.totalOverpoweredVotes));
|
|
95
|
+
message.totalUnderpoweredVotes !== undefined
|
|
96
|
+
&& (obj.totalUnderpoweredVotes = Math.round(message.totalUnderpoweredVotes));
|
|
97
|
+
message.totalInappropriateVotes !== undefined
|
|
98
|
+
&& (obj.totalInappropriateVotes = Math.round(message.totalInappropriateVotes));
|
|
99
|
+
if (message.cardResults) {
|
|
100
|
+
obj.cardResults = message.cardResults.map((e) => e ? VotingResult.toJSON(e) : undefined);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
obj.cardResults = [];
|
|
104
|
+
}
|
|
105
|
+
message.notes !== undefined && (obj.notes = message.notes);
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
fromPartial(object) {
|
|
109
|
+
const message = createBaseVotingResults();
|
|
110
|
+
message.totalVotes = object.totalVotes ?? 0;
|
|
111
|
+
message.totalFairEnoughVotes = object.totalFairEnoughVotes ?? 0;
|
|
112
|
+
message.totalOverpoweredVotes = object.totalOverpoweredVotes ?? 0;
|
|
113
|
+
message.totalUnderpoweredVotes = object.totalUnderpoweredVotes ?? 0;
|
|
114
|
+
message.totalInappropriateVotes = object.totalInappropriateVotes ?? 0;
|
|
115
|
+
message.cardResults = object.cardResults?.map((e) => VotingResult.fromPartial(e)) || [];
|
|
116
|
+
message.notes = object.notes ?? "";
|
|
117
|
+
return message;
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
function createBaseVotingResult() {
|
|
121
|
+
return {
|
|
122
|
+
cardId: 0,
|
|
123
|
+
fairEnoughVotes: 0,
|
|
124
|
+
overpoweredVotes: 0,
|
|
125
|
+
underpoweredVotes: 0,
|
|
126
|
+
inappropriateVotes: 0,
|
|
127
|
+
result: "",
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export const VotingResult = {
|
|
131
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
132
|
+
if (message.cardId !== 0) {
|
|
133
|
+
writer.uint32(8).uint64(message.cardId);
|
|
134
|
+
}
|
|
135
|
+
if (message.fairEnoughVotes !== 0) {
|
|
136
|
+
writer.uint32(16).uint64(message.fairEnoughVotes);
|
|
137
|
+
}
|
|
138
|
+
if (message.overpoweredVotes !== 0) {
|
|
139
|
+
writer.uint32(24).uint64(message.overpoweredVotes);
|
|
140
|
+
}
|
|
141
|
+
if (message.underpoweredVotes !== 0) {
|
|
142
|
+
writer.uint32(32).uint64(message.underpoweredVotes);
|
|
143
|
+
}
|
|
144
|
+
if (message.inappropriateVotes !== 0) {
|
|
145
|
+
writer.uint32(40).uint64(message.inappropriateVotes);
|
|
146
|
+
}
|
|
147
|
+
if (message.result !== "") {
|
|
148
|
+
writer.uint32(50).string(message.result);
|
|
149
|
+
}
|
|
150
|
+
return writer;
|
|
151
|
+
},
|
|
152
|
+
decode(input, length) {
|
|
153
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
154
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
155
|
+
const message = createBaseVotingResult();
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
const tag = reader.uint32();
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1:
|
|
160
|
+
message.cardId = longToNumber(reader.uint64());
|
|
161
|
+
break;
|
|
162
|
+
case 2:
|
|
163
|
+
message.fairEnoughVotes = longToNumber(reader.uint64());
|
|
164
|
+
break;
|
|
165
|
+
case 3:
|
|
166
|
+
message.overpoweredVotes = longToNumber(reader.uint64());
|
|
167
|
+
break;
|
|
168
|
+
case 4:
|
|
169
|
+
message.underpoweredVotes = longToNumber(reader.uint64());
|
|
170
|
+
break;
|
|
171
|
+
case 5:
|
|
172
|
+
message.inappropriateVotes = longToNumber(reader.uint64());
|
|
173
|
+
break;
|
|
174
|
+
case 6:
|
|
175
|
+
message.result = reader.string();
|
|
176
|
+
break;
|
|
177
|
+
default:
|
|
178
|
+
reader.skipType(tag & 7);
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return message;
|
|
183
|
+
},
|
|
184
|
+
fromJSON(object) {
|
|
185
|
+
return {
|
|
186
|
+
cardId: isSet(object.cardId) ? Number(object.cardId) : 0,
|
|
187
|
+
fairEnoughVotes: isSet(object.fairEnoughVotes) ? Number(object.fairEnoughVotes) : 0,
|
|
188
|
+
overpoweredVotes: isSet(object.overpoweredVotes) ? Number(object.overpoweredVotes) : 0,
|
|
189
|
+
underpoweredVotes: isSet(object.underpoweredVotes) ? Number(object.underpoweredVotes) : 0,
|
|
190
|
+
inappropriateVotes: isSet(object.inappropriateVotes) ? Number(object.inappropriateVotes) : 0,
|
|
191
|
+
result: isSet(object.result) ? String(object.result) : "",
|
|
192
|
+
};
|
|
193
|
+
},
|
|
194
|
+
toJSON(message) {
|
|
195
|
+
const obj = {};
|
|
196
|
+
message.cardId !== undefined && (obj.cardId = Math.round(message.cardId));
|
|
197
|
+
message.fairEnoughVotes !== undefined && (obj.fairEnoughVotes = Math.round(message.fairEnoughVotes));
|
|
198
|
+
message.overpoweredVotes !== undefined && (obj.overpoweredVotes = Math.round(message.overpoweredVotes));
|
|
199
|
+
message.underpoweredVotes !== undefined && (obj.underpoweredVotes = Math.round(message.underpoweredVotes));
|
|
200
|
+
message.inappropriateVotes !== undefined && (obj.inappropriateVotes = Math.round(message.inappropriateVotes));
|
|
201
|
+
message.result !== undefined && (obj.result = message.result);
|
|
202
|
+
return obj;
|
|
203
|
+
},
|
|
204
|
+
fromPartial(object) {
|
|
205
|
+
const message = createBaseVotingResult();
|
|
206
|
+
message.cardId = object.cardId ?? 0;
|
|
207
|
+
message.fairEnoughVotes = object.fairEnoughVotes ?? 0;
|
|
208
|
+
message.overpoweredVotes = object.overpoweredVotes ?? 0;
|
|
209
|
+
message.underpoweredVotes = object.underpoweredVotes ?? 0;
|
|
210
|
+
message.inappropriateVotes = object.inappropriateVotes ?? 0;
|
|
211
|
+
message.result = object.result ?? "";
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
};
|
|
215
|
+
function createBaseSingleVote() {
|
|
216
|
+
return { cardId: 0, voteType: "" };
|
|
217
|
+
}
|
|
218
|
+
export const SingleVote = {
|
|
219
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
220
|
+
if (message.cardId !== 0) {
|
|
221
|
+
writer.uint32(8).uint64(message.cardId);
|
|
222
|
+
}
|
|
223
|
+
if (message.voteType !== "") {
|
|
224
|
+
writer.uint32(18).string(message.voteType);
|
|
225
|
+
}
|
|
226
|
+
return writer;
|
|
227
|
+
},
|
|
228
|
+
decode(input, length) {
|
|
229
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
230
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
231
|
+
const message = createBaseSingleVote();
|
|
232
|
+
while (reader.pos < end) {
|
|
233
|
+
const tag = reader.uint32();
|
|
234
|
+
switch (tag >>> 3) {
|
|
235
|
+
case 1:
|
|
236
|
+
message.cardId = longToNumber(reader.uint64());
|
|
237
|
+
break;
|
|
238
|
+
case 2:
|
|
239
|
+
message.voteType = reader.string();
|
|
240
|
+
break;
|
|
241
|
+
default:
|
|
242
|
+
reader.skipType(tag & 7);
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
return message;
|
|
247
|
+
},
|
|
248
|
+
fromJSON(object) {
|
|
249
|
+
return {
|
|
250
|
+
cardId: isSet(object.cardId) ? Number(object.cardId) : 0,
|
|
251
|
+
voteType: isSet(object.voteType) ? String(object.voteType) : "",
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
toJSON(message) {
|
|
255
|
+
const obj = {};
|
|
256
|
+
message.cardId !== undefined && (obj.cardId = Math.round(message.cardId));
|
|
257
|
+
message.voteType !== undefined && (obj.voteType = message.voteType);
|
|
258
|
+
return obj;
|
|
259
|
+
},
|
|
260
|
+
fromPartial(object) {
|
|
261
|
+
const message = createBaseSingleVote();
|
|
262
|
+
message.cardId = object.cardId ?? 0;
|
|
263
|
+
message.voteType = object.voteType ?? "";
|
|
264
|
+
return message;
|
|
265
|
+
},
|
|
266
|
+
};
|
|
267
|
+
function createBaseVoteRight() {
|
|
268
|
+
return { cardId: 0, expireBlock: 0 };
|
|
269
|
+
}
|
|
270
|
+
export const VoteRight = {
|
|
271
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
272
|
+
if (message.cardId !== 0) {
|
|
273
|
+
writer.uint32(8).uint64(message.cardId);
|
|
274
|
+
}
|
|
275
|
+
if (message.expireBlock !== 0) {
|
|
276
|
+
writer.uint32(16).int64(message.expireBlock);
|
|
277
|
+
}
|
|
278
|
+
return writer;
|
|
279
|
+
},
|
|
280
|
+
decode(input, length) {
|
|
281
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
282
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
283
|
+
const message = createBaseVoteRight();
|
|
284
|
+
while (reader.pos < end) {
|
|
285
|
+
const tag = reader.uint32();
|
|
286
|
+
switch (tag >>> 3) {
|
|
287
|
+
case 1:
|
|
288
|
+
message.cardId = longToNumber(reader.uint64());
|
|
289
|
+
break;
|
|
290
|
+
case 2:
|
|
291
|
+
message.expireBlock = longToNumber(reader.int64());
|
|
292
|
+
break;
|
|
293
|
+
default:
|
|
294
|
+
reader.skipType(tag & 7);
|
|
295
|
+
break;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
return message;
|
|
299
|
+
},
|
|
300
|
+
fromJSON(object) {
|
|
301
|
+
return {
|
|
302
|
+
cardId: isSet(object.cardId) ? Number(object.cardId) : 0,
|
|
303
|
+
expireBlock: isSet(object.expireBlock) ? Number(object.expireBlock) : 0,
|
|
304
|
+
};
|
|
305
|
+
},
|
|
306
|
+
toJSON(message) {
|
|
307
|
+
const obj = {};
|
|
308
|
+
message.cardId !== undefined && (obj.cardId = Math.round(message.cardId));
|
|
309
|
+
message.expireBlock !== undefined && (obj.expireBlock = Math.round(message.expireBlock));
|
|
310
|
+
return obj;
|
|
311
|
+
},
|
|
312
|
+
fromPartial(object) {
|
|
313
|
+
const message = createBaseVoteRight();
|
|
314
|
+
message.cardId = object.cardId ?? 0;
|
|
315
|
+
message.expireBlock = object.expireBlock ?? 0;
|
|
316
|
+
return message;
|
|
317
|
+
},
|
|
318
|
+
};
|
|
319
|
+
var globalThis = (() => {
|
|
320
|
+
if (typeof globalThis !== "undefined") {
|
|
321
|
+
return globalThis;
|
|
322
|
+
}
|
|
323
|
+
if (typeof self !== "undefined") {
|
|
324
|
+
return self;
|
|
325
|
+
}
|
|
326
|
+
if (typeof window !== "undefined") {
|
|
327
|
+
return window;
|
|
328
|
+
}
|
|
329
|
+
if (typeof global !== "undefined") {
|
|
330
|
+
return global;
|
|
331
|
+
}
|
|
332
|
+
throw "Unable to locate global object";
|
|
333
|
+
})();
|
|
334
|
+
function longToNumber(long) {
|
|
335
|
+
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
336
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
337
|
+
}
|
|
338
|
+
return long.toNumber();
|
|
339
|
+
}
|
|
340
|
+
if (_m0.util.Long !== Long) {
|
|
341
|
+
_m0.util.Long = Long;
|
|
342
|
+
_m0.configure();
|
|
343
|
+
}
|
|
344
|
+
function isSet(value) {
|
|
345
|
+
return value !== null && value !== undefined;
|
|
346
|
+
}
|