decentralcardgame-cardchain-client-ts 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +318 -383
- package/DecentralCardGame.cardchain.cardchain/module.ts +463 -558
- package/DecentralCardGame.cardchain.cardchain/registry.js +72 -78
- package/DecentralCardGame.cardchain.cardchain/registry.ts +72 -78
- package/DecentralCardGame.cardchain.cardchain/rest.js +77 -60
- package/DecentralCardGame.cardchain.cardchain/rest.ts +123 -76
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.js +657 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/card.ts +741 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.js +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/copyright_proposal.ts +134 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.js +356 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/council.ts +415 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.js +254 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/genesis.ts +281 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.js +88 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/image.ts +115 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.js +308 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match.ts +355 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.js +67 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/match_reporter_proposal.ts +92 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.js +73 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/num.ts +102 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.js +325 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/params.ts +380 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.js +2200 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/query.ts +2633 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.js +85 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/running_average.ts +111 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.js +148 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/sell_offer.ts +183 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/server.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.js +365 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set.ts +416 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.js +93 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/set_proposal.ts +124 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.js +4185 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/tx.ts +5139 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.js +580 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/user.ts +652 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.js +346 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voting.ts +417 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +25 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +26 -22
- package/DecentralCardGame.cardchain.featureflag/index.js +5 -0
- package/DecentralCardGame.cardchain.featureflag/index.ts +6 -0
- package/DecentralCardGame.cardchain.featureflag/module.js +62 -0
- package/DecentralCardGame.cardchain.featureflag/module.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/registry.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/registry.ts +7 -0
- package/DecentralCardGame.cardchain.featureflag/rest.js +128 -0
- package/DecentralCardGame.cardchain.featureflag/rest.ts +222 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.js +67 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/flag.ts +92 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.js +135 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/genesis.ts +172 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.js +36 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/params.ts +58 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.js +76 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/proposal.ts +102 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.js +279 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/query.ts +371 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.js +7 -0
- package/DecentralCardGame.cardchain.featureflag/types/cardchain/featureflag/tx.ts +17 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.js +190 -0
- package/DecentralCardGame.cardchain.featureflag/types/cosmos/base/query/v1beta1/pagination.ts +286 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/gogoproto/gogo.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.js +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/annotations.ts +2 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.js +260 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/api/http.ts +589 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.js +2830 -0
- package/DecentralCardGame.cardchain.featureflag/types/google/protobuf/descriptor.ts +3753 -0
- package/DecentralCardGame.cardchain.featureflag/types.js +4 -0
- package/DecentralCardGame.cardchain.featureflag/types.ts +11 -0
- package/client.js +7 -7
- package/client.ts +9 -10
- package/cosmos.auth.v1beta1/module.js +0 -2
- package/cosmos.auth.v1beta1/module.ts +0 -2
- package/cosmos.auth.v1beta1/rest.js +3 -18
- package/cosmos.auth.v1beta1/rest.ts +3 -113
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
- package/cosmos.auth.v1beta1/types.js +1 -2
- package/cosmos.auth.v1beta1/types.ts +0 -2
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +6 -37
- package/cosmos.bank.v1beta1/rest.ts +6 -99
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
- package/cosmos.crisis.v1beta1/module.js +1 -24
- package/cosmos.crisis.v1beta1/module.ts +1 -34
- package/cosmos.crisis.v1beta1/registry.js +0 -2
- package/cosmos.crisis.v1beta1/registry.ts +0 -2
- package/cosmos.crisis.v1beta1/rest.ts +0 -19
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
- package/cosmos.distribution.v1beta1/module.js +21 -67
- package/cosmos.distribution.v1beta1/module.ts +34 -100
- package/cosmos.distribution.v1beta1/registry.js +4 -8
- package/cosmos.distribution.v1beta1/registry.ts +4 -8
- package/cosmos.distribution.v1beta1/rest.js +0 -14
- package/cosmos.distribution.v1beta1/rest.ts +7 -66
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
- package/cosmos.evidence.v1beta1/rest.js +3 -4
- package/cosmos.evidence.v1beta1/rest.ts +3 -4
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
- package/cosmos.gov.v1/module.js +21 -46
- package/cosmos.gov.v1/module.ts +33 -68
- package/cosmos.gov.v1/registry.js +4 -6
- package/cosmos.gov.v1/registry.ts +4 -6
- package/cosmos.gov.v1/rest.ts +41 -155
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
- package/cosmos.gov.v1/types.js +1 -2
- package/cosmos.gov.v1/types.ts +0 -2
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +96 -65
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
- package/cosmos.group.v1/module.js +92 -92
- package/cosmos.group.v1/module.ts +138 -138
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +9 -29
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
- package/cosmos.mint.v1beta1/rest.ts +1 -9
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.nft.v1beta1/rest.ts +22 -18
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
- package/cosmos.slashing.v1beta1/rest.ts +0 -8
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
- package/cosmos.staking.v1beta1/module.js +39 -41
- package/cosmos.staking.v1beta1/module.ts +59 -61
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +8 -49
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
- package/cosmos.staking.v1beta1/types.js +1 -2
- package/cosmos.staking.v1beta1/types.ts +0 -2
- package/cosmos.tx.v1beta1/rest.js +2 -66
- package/cosmos.tx.v1beta1/rest.ts +16 -177
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
- package/cosmos.upgrade.v1beta1/rest.ts +1 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
- package/ibc.applications.transfer.v1/module.js +27 -5
- package/ibc.applications.transfer.v1/module.ts +34 -5
- package/ibc.applications.transfer.v1/registry.js +4 -1
- package/ibc.applications.transfer.v1/registry.ts +2 -0
- package/ibc.applications.transfer.v1/rest.js +1 -15
- package/ibc.applications.transfer.v1/rest.ts +1 -30
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.applications.transfer.v1/types.js +1 -3
- package/ibc.applications.transfer.v1/types.ts +0 -4
- package/ibc.core.channel.v1/rest.ts +0 -1
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/rest.ts +1 -5
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +0 -26
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
- package/ibc.core.connection.v1/types/proofs.js +1126 -0
- package/ibc.core.connection.v1/types/proofs.ts +1408 -0
- package/index.js +3 -3
- package/index.ts +3 -3
- package/package.json +5 -5
|
@@ -269,9 +269,6 @@ function createBaseProposal() {
|
|
|
269
269
|
votingStartTime: undefined,
|
|
270
270
|
votingEndTime: undefined,
|
|
271
271
|
metadata: "",
|
|
272
|
-
title: "",
|
|
273
|
-
summary: "",
|
|
274
|
-
proposer: "",
|
|
275
272
|
};
|
|
276
273
|
}
|
|
277
274
|
export const Proposal = {
|
|
@@ -306,15 +303,6 @@ export const Proposal = {
|
|
|
306
303
|
if (message.metadata !== "") {
|
|
307
304
|
writer.uint32(82).string(message.metadata);
|
|
308
305
|
}
|
|
309
|
-
if (message.title !== "") {
|
|
310
|
-
writer.uint32(90).string(message.title);
|
|
311
|
-
}
|
|
312
|
-
if (message.summary !== "") {
|
|
313
|
-
writer.uint32(98).string(message.summary);
|
|
314
|
-
}
|
|
315
|
-
if (message.proposer !== "") {
|
|
316
|
-
writer.uint32(106).string(message.proposer);
|
|
317
|
-
}
|
|
318
306
|
return writer;
|
|
319
307
|
},
|
|
320
308
|
decode(input, length) {
|
|
@@ -354,15 +342,6 @@ export const Proposal = {
|
|
|
354
342
|
case 10:
|
|
355
343
|
message.metadata = reader.string();
|
|
356
344
|
break;
|
|
357
|
-
case 11:
|
|
358
|
-
message.title = reader.string();
|
|
359
|
-
break;
|
|
360
|
-
case 12:
|
|
361
|
-
message.summary = reader.string();
|
|
362
|
-
break;
|
|
363
|
-
case 13:
|
|
364
|
-
message.proposer = reader.string();
|
|
365
|
-
break;
|
|
366
345
|
default:
|
|
367
346
|
reader.skipType(tag & 7);
|
|
368
347
|
break;
|
|
@@ -382,9 +361,6 @@ export const Proposal = {
|
|
|
382
361
|
votingStartTime: isSet(object.votingStartTime) ? fromJsonTimestamp(object.votingStartTime) : undefined,
|
|
383
362
|
votingEndTime: isSet(object.votingEndTime) ? fromJsonTimestamp(object.votingEndTime) : undefined,
|
|
384
363
|
metadata: isSet(object.metadata) ? String(object.metadata) : "",
|
|
385
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
386
|
-
summary: isSet(object.summary) ? String(object.summary) : "",
|
|
387
|
-
proposer: isSet(object.proposer) ? String(object.proposer) : "",
|
|
388
364
|
};
|
|
389
365
|
},
|
|
390
366
|
toJSON(message) {
|
|
@@ -410,9 +386,6 @@ export const Proposal = {
|
|
|
410
386
|
message.votingStartTime !== undefined && (obj.votingStartTime = message.votingStartTime.toISOString());
|
|
411
387
|
message.votingEndTime !== undefined && (obj.votingEndTime = message.votingEndTime.toISOString());
|
|
412
388
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
413
|
-
message.title !== undefined && (obj.title = message.title);
|
|
414
|
-
message.summary !== undefined && (obj.summary = message.summary);
|
|
415
|
-
message.proposer !== undefined && (obj.proposer = message.proposer);
|
|
416
389
|
return obj;
|
|
417
390
|
},
|
|
418
391
|
fromPartial(object) {
|
|
@@ -429,9 +402,6 @@ export const Proposal = {
|
|
|
429
402
|
message.votingStartTime = object.votingStartTime ?? undefined;
|
|
430
403
|
message.votingEndTime = object.votingEndTime ?? undefined;
|
|
431
404
|
message.metadata = object.metadata ?? "";
|
|
432
|
-
message.title = object.title ?? "";
|
|
433
|
-
message.summary = object.summary ?? "";
|
|
434
|
-
message.proposer = object.proposer ?? "";
|
|
435
405
|
return message;
|
|
436
406
|
},
|
|
437
407
|
};
|
|
@@ -745,155 +715,6 @@ export const TallyParams = {
|
|
|
745
715
|
return message;
|
|
746
716
|
},
|
|
747
717
|
};
|
|
748
|
-
function createBaseParams() {
|
|
749
|
-
return {
|
|
750
|
-
minDeposit: [],
|
|
751
|
-
maxDepositPeriod: undefined,
|
|
752
|
-
votingPeriod: undefined,
|
|
753
|
-
quorum: "",
|
|
754
|
-
threshold: "",
|
|
755
|
-
vetoThreshold: "",
|
|
756
|
-
minInitialDepositRatio: "",
|
|
757
|
-
burnVoteQuorum: false,
|
|
758
|
-
burnProposalDepositPrevote: false,
|
|
759
|
-
burnVoteVeto: false,
|
|
760
|
-
};
|
|
761
|
-
}
|
|
762
|
-
export const Params = {
|
|
763
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
764
|
-
for (const v of message.minDeposit) {
|
|
765
|
-
Coin.encode(v, writer.uint32(10).fork()).ldelim();
|
|
766
|
-
}
|
|
767
|
-
if (message.maxDepositPeriod !== undefined) {
|
|
768
|
-
Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
|
|
769
|
-
}
|
|
770
|
-
if (message.votingPeriod !== undefined) {
|
|
771
|
-
Duration.encode(message.votingPeriod, writer.uint32(26).fork()).ldelim();
|
|
772
|
-
}
|
|
773
|
-
if (message.quorum !== "") {
|
|
774
|
-
writer.uint32(34).string(message.quorum);
|
|
775
|
-
}
|
|
776
|
-
if (message.threshold !== "") {
|
|
777
|
-
writer.uint32(42).string(message.threshold);
|
|
778
|
-
}
|
|
779
|
-
if (message.vetoThreshold !== "") {
|
|
780
|
-
writer.uint32(50).string(message.vetoThreshold);
|
|
781
|
-
}
|
|
782
|
-
if (message.minInitialDepositRatio !== "") {
|
|
783
|
-
writer.uint32(58).string(message.minInitialDepositRatio);
|
|
784
|
-
}
|
|
785
|
-
if (message.burnVoteQuorum === true) {
|
|
786
|
-
writer.uint32(104).bool(message.burnVoteQuorum);
|
|
787
|
-
}
|
|
788
|
-
if (message.burnProposalDepositPrevote === true) {
|
|
789
|
-
writer.uint32(112).bool(message.burnProposalDepositPrevote);
|
|
790
|
-
}
|
|
791
|
-
if (message.burnVoteVeto === true) {
|
|
792
|
-
writer.uint32(120).bool(message.burnVoteVeto);
|
|
793
|
-
}
|
|
794
|
-
return writer;
|
|
795
|
-
},
|
|
796
|
-
decode(input, length) {
|
|
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 = createBaseParams();
|
|
800
|
-
while (reader.pos < end) {
|
|
801
|
-
const tag = reader.uint32();
|
|
802
|
-
switch (tag >>> 3) {
|
|
803
|
-
case 1:
|
|
804
|
-
message.minDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
805
|
-
break;
|
|
806
|
-
case 2:
|
|
807
|
-
message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
|
|
808
|
-
break;
|
|
809
|
-
case 3:
|
|
810
|
-
message.votingPeriod = Duration.decode(reader, reader.uint32());
|
|
811
|
-
break;
|
|
812
|
-
case 4:
|
|
813
|
-
message.quorum = reader.string();
|
|
814
|
-
break;
|
|
815
|
-
case 5:
|
|
816
|
-
message.threshold = reader.string();
|
|
817
|
-
break;
|
|
818
|
-
case 6:
|
|
819
|
-
message.vetoThreshold = reader.string();
|
|
820
|
-
break;
|
|
821
|
-
case 7:
|
|
822
|
-
message.minInitialDepositRatio = reader.string();
|
|
823
|
-
break;
|
|
824
|
-
case 13:
|
|
825
|
-
message.burnVoteQuorum = reader.bool();
|
|
826
|
-
break;
|
|
827
|
-
case 14:
|
|
828
|
-
message.burnProposalDepositPrevote = reader.bool();
|
|
829
|
-
break;
|
|
830
|
-
case 15:
|
|
831
|
-
message.burnVoteVeto = reader.bool();
|
|
832
|
-
break;
|
|
833
|
-
default:
|
|
834
|
-
reader.skipType(tag & 7);
|
|
835
|
-
break;
|
|
836
|
-
}
|
|
837
|
-
}
|
|
838
|
-
return message;
|
|
839
|
-
},
|
|
840
|
-
fromJSON(object) {
|
|
841
|
-
return {
|
|
842
|
-
minDeposit: Array.isArray(object?.minDeposit) ? object.minDeposit.map((e) => Coin.fromJSON(e)) : [],
|
|
843
|
-
maxDepositPeriod: isSet(object.maxDepositPeriod) ? Duration.fromJSON(object.maxDepositPeriod) : undefined,
|
|
844
|
-
votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined,
|
|
845
|
-
quorum: isSet(object.quorum) ? String(object.quorum) : "",
|
|
846
|
-
threshold: isSet(object.threshold) ? String(object.threshold) : "",
|
|
847
|
-
vetoThreshold: isSet(object.vetoThreshold) ? String(object.vetoThreshold) : "",
|
|
848
|
-
minInitialDepositRatio: isSet(object.minInitialDepositRatio) ? String(object.minInitialDepositRatio) : "",
|
|
849
|
-
burnVoteQuorum: isSet(object.burnVoteQuorum) ? Boolean(object.burnVoteQuorum) : false,
|
|
850
|
-
burnProposalDepositPrevote: isSet(object.burnProposalDepositPrevote)
|
|
851
|
-
? Boolean(object.burnProposalDepositPrevote)
|
|
852
|
-
: false,
|
|
853
|
-
burnVoteVeto: isSet(object.burnVoteVeto) ? Boolean(object.burnVoteVeto) : false,
|
|
854
|
-
};
|
|
855
|
-
},
|
|
856
|
-
toJSON(message) {
|
|
857
|
-
const obj = {};
|
|
858
|
-
if (message.minDeposit) {
|
|
859
|
-
obj.minDeposit = message.minDeposit.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
860
|
-
}
|
|
861
|
-
else {
|
|
862
|
-
obj.minDeposit = [];
|
|
863
|
-
}
|
|
864
|
-
message.maxDepositPeriod !== undefined
|
|
865
|
-
&& (obj.maxDepositPeriod = message.maxDepositPeriod ? Duration.toJSON(message.maxDepositPeriod) : undefined);
|
|
866
|
-
message.votingPeriod !== undefined
|
|
867
|
-
&& (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined);
|
|
868
|
-
message.quorum !== undefined && (obj.quorum = message.quorum);
|
|
869
|
-
message.threshold !== undefined && (obj.threshold = message.threshold);
|
|
870
|
-
message.vetoThreshold !== undefined && (obj.vetoThreshold = message.vetoThreshold);
|
|
871
|
-
message.minInitialDepositRatio !== undefined && (obj.minInitialDepositRatio = message.minInitialDepositRatio);
|
|
872
|
-
message.burnVoteQuorum !== undefined && (obj.burnVoteQuorum = message.burnVoteQuorum);
|
|
873
|
-
message.burnProposalDepositPrevote !== undefined
|
|
874
|
-
&& (obj.burnProposalDepositPrevote = message.burnProposalDepositPrevote);
|
|
875
|
-
message.burnVoteVeto !== undefined && (obj.burnVoteVeto = message.burnVoteVeto);
|
|
876
|
-
return obj;
|
|
877
|
-
},
|
|
878
|
-
fromPartial(object) {
|
|
879
|
-
const message = createBaseParams();
|
|
880
|
-
message.minDeposit = object.minDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
881
|
-
message.maxDepositPeriod = (object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null)
|
|
882
|
-
? Duration.fromPartial(object.maxDepositPeriod)
|
|
883
|
-
: undefined;
|
|
884
|
-
message.votingPeriod = (object.votingPeriod !== undefined && object.votingPeriod !== null)
|
|
885
|
-
? Duration.fromPartial(object.votingPeriod)
|
|
886
|
-
: undefined;
|
|
887
|
-
message.quorum = object.quorum ?? "";
|
|
888
|
-
message.threshold = object.threshold ?? "";
|
|
889
|
-
message.vetoThreshold = object.vetoThreshold ?? "";
|
|
890
|
-
message.minInitialDepositRatio = object.minInitialDepositRatio ?? "";
|
|
891
|
-
message.burnVoteQuorum = object.burnVoteQuorum ?? false;
|
|
892
|
-
message.burnProposalDepositPrevote = object.burnProposalDepositPrevote ?? false;
|
|
893
|
-
message.burnVoteVeto = object.burnVoteVeto ?? false;
|
|
894
|
-
return message;
|
|
895
|
-
},
|
|
896
|
-
};
|
|
897
718
|
var globalThis = (() => {
|
|
898
719
|
if (typeof globalThis !== "undefined") {
|
|
899
720
|
return globalThis;
|
|
@@ -148,9 +148,7 @@ export function proposalStatusToJSON(object: ProposalStatus): string {
|
|
|
148
148
|
|
|
149
149
|
/** WeightedVoteOption defines a unit of vote for vote split. */
|
|
150
150
|
export interface WeightedVoteOption {
|
|
151
|
-
/** option defines the valid vote options, it must not contain duplicate vote options. */
|
|
152
151
|
option: VoteOption;
|
|
153
|
-
/** weight is the vote weight associated with the vote option. */
|
|
154
152
|
weight: string;
|
|
155
153
|
}
|
|
156
154
|
|
|
@@ -159,79 +157,38 @@ export interface WeightedVoteOption {
|
|
|
159
157
|
* proposal.
|
|
160
158
|
*/
|
|
161
159
|
export interface Deposit {
|
|
162
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
163
160
|
proposalId: number;
|
|
164
|
-
/** depositor defines the deposit addresses from the proposals. */
|
|
165
161
|
depositor: string;
|
|
166
|
-
/** amount to be deposited by depositor. */
|
|
167
162
|
amount: Coin[];
|
|
168
163
|
}
|
|
169
164
|
|
|
170
165
|
/** Proposal defines the core field members of a governance proposal. */
|
|
171
166
|
export interface Proposal {
|
|
172
|
-
/** id defines the unique id of the proposal. */
|
|
173
167
|
id: number;
|
|
174
|
-
/** messages are the arbitrary messages to be executed if the proposal passes. */
|
|
175
168
|
messages: Any[];
|
|
176
|
-
/** status defines the proposal status. */
|
|
177
169
|
status: ProposalStatus;
|
|
178
170
|
/**
|
|
179
171
|
* final_tally_result is the final tally result of the proposal. When
|
|
180
172
|
* querying a proposal via gRPC, this field is not populated until the
|
|
181
173
|
* proposal's voting period has ended.
|
|
182
174
|
*/
|
|
183
|
-
finalTallyResult:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
/** submit_time is the time of proposal submission. */
|
|
187
|
-
submitTime:
|
|
188
|
-
| Date
|
|
189
|
-
| undefined;
|
|
190
|
-
/** deposit_end_time is the end time for deposition. */
|
|
191
|
-
depositEndTime:
|
|
192
|
-
| Date
|
|
193
|
-
| undefined;
|
|
194
|
-
/** total_deposit is the total deposit on the proposal. */
|
|
175
|
+
finalTallyResult: TallyResult | undefined;
|
|
176
|
+
submitTime: Date | undefined;
|
|
177
|
+
depositEndTime: Date | undefined;
|
|
195
178
|
totalDeposit: Coin[];
|
|
196
|
-
|
|
197
|
-
votingStartTime:
|
|
198
|
-
| Date
|
|
199
|
-
| undefined;
|
|
200
|
-
/** voting_end_time is the end time of voting on a proposal. */
|
|
179
|
+
votingStartTime: Date | undefined;
|
|
201
180
|
votingEndTime:
|
|
202
181
|
| Date
|
|
203
182
|
| undefined;
|
|
204
183
|
/** metadata is any arbitrary metadata attached to the proposal. */
|
|
205
184
|
metadata: string;
|
|
206
|
-
/**
|
|
207
|
-
* title is the title of the proposal
|
|
208
|
-
*
|
|
209
|
-
* Since: cosmos-sdk 0.47
|
|
210
|
-
*/
|
|
211
|
-
title: string;
|
|
212
|
-
/**
|
|
213
|
-
* summary is a short summary of the proposal
|
|
214
|
-
*
|
|
215
|
-
* Since: cosmos-sdk 0.47
|
|
216
|
-
*/
|
|
217
|
-
summary: string;
|
|
218
|
-
/**
|
|
219
|
-
* Proposer is the address of the proposal sumbitter
|
|
220
|
-
*
|
|
221
|
-
* Since: cosmos-sdk 0.47
|
|
222
|
-
*/
|
|
223
|
-
proposer: string;
|
|
224
185
|
}
|
|
225
186
|
|
|
226
187
|
/** TallyResult defines a standard tally for a governance proposal. */
|
|
227
188
|
export interface TallyResult {
|
|
228
|
-
/** yes_count is the number of yes votes on a proposal. */
|
|
229
189
|
yesCount: string;
|
|
230
|
-
/** abstain_count is the number of abstain votes on a proposal. */
|
|
231
190
|
abstainCount: string;
|
|
232
|
-
/** no_count is the number of no votes on a proposal. */
|
|
233
191
|
noCount: string;
|
|
234
|
-
/** no_with_veto_count is the number of no with veto votes on a proposal. */
|
|
235
192
|
noWithVetoCount: string;
|
|
236
193
|
}
|
|
237
194
|
|
|
@@ -240,11 +197,8 @@ export interface TallyResult {
|
|
|
240
197
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
|
241
198
|
*/
|
|
242
199
|
export interface Vote {
|
|
243
|
-
/** proposal_id defines the unique id of the proposal. */
|
|
244
200
|
proposalId: number;
|
|
245
|
-
/** voter is the voter address of the proposal. */
|
|
246
201
|
voter: string;
|
|
247
|
-
/** options is the weighted vote options. */
|
|
248
202
|
options: WeightedVoteOption[];
|
|
249
203
|
/** metadata is any arbitrary metadata to attached to the vote. */
|
|
250
204
|
metadata: string;
|
|
@@ -256,52 +210,19 @@ export interface DepositParams {
|
|
|
256
210
|
minDeposit: Coin[];
|
|
257
211
|
/**
|
|
258
212
|
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
259
|
-
*
|
|
213
|
+
* months.
|
|
260
214
|
*/
|
|
261
215
|
maxDepositPeriod: Duration | undefined;
|
|
262
216
|
}
|
|
263
217
|
|
|
264
218
|
/** VotingParams defines the params for voting on governance proposals. */
|
|
265
219
|
export interface VotingParams {
|
|
266
|
-
/**
|
|
220
|
+
/** Length of the voting period. */
|
|
267
221
|
votingPeriod: Duration | undefined;
|
|
268
222
|
}
|
|
269
223
|
|
|
270
224
|
/** TallyParams defines the params for tallying votes on governance proposals. */
|
|
271
225
|
export interface TallyParams {
|
|
272
|
-
/**
|
|
273
|
-
* Minimum percentage of total stake needed to vote for a result to be
|
|
274
|
-
* considered valid.
|
|
275
|
-
*/
|
|
276
|
-
quorum: string;
|
|
277
|
-
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
|
278
|
-
threshold: string;
|
|
279
|
-
/**
|
|
280
|
-
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
|
281
|
-
* vetoed. Default value: 1/3.
|
|
282
|
-
*/
|
|
283
|
-
vetoThreshold: string;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Params defines the parameters for the x/gov module.
|
|
288
|
-
*
|
|
289
|
-
* Since: cosmos-sdk 0.47
|
|
290
|
-
*/
|
|
291
|
-
export interface Params {
|
|
292
|
-
/** Minimum deposit for a proposal to enter voting period. */
|
|
293
|
-
minDeposit: Coin[];
|
|
294
|
-
/**
|
|
295
|
-
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
296
|
-
* months.
|
|
297
|
-
*/
|
|
298
|
-
maxDepositPeriod:
|
|
299
|
-
| Duration
|
|
300
|
-
| undefined;
|
|
301
|
-
/** Duration of the voting period. */
|
|
302
|
-
votingPeriod:
|
|
303
|
-
| Duration
|
|
304
|
-
| undefined;
|
|
305
226
|
/**
|
|
306
227
|
* Minimum percentage of total stake needed to vote for a result to be
|
|
307
228
|
* considered valid.
|
|
@@ -314,14 +235,6 @@ export interface Params {
|
|
|
314
235
|
* vetoed. Default value: 1/3.
|
|
315
236
|
*/
|
|
316
237
|
vetoThreshold: string;
|
|
317
|
-
/** The ratio representing the proportion of the deposit value that must be paid at proposal submission. */
|
|
318
|
-
minInitialDepositRatio: string;
|
|
319
|
-
/** burn deposits if a proposal does not meet quorum */
|
|
320
|
-
burnVoteQuorum: boolean;
|
|
321
|
-
/** burn deposits if the proposal does not enter voting period */
|
|
322
|
-
burnProposalDepositPrevote: boolean;
|
|
323
|
-
/** burn deposits if quorum with vote type no_veto is met */
|
|
324
|
-
burnVoteVeto: boolean;
|
|
325
238
|
}
|
|
326
239
|
|
|
327
240
|
function createBaseWeightedVoteOption(): WeightedVoteOption {
|
|
@@ -465,9 +378,6 @@ function createBaseProposal(): Proposal {
|
|
|
465
378
|
votingStartTime: undefined,
|
|
466
379
|
votingEndTime: undefined,
|
|
467
380
|
metadata: "",
|
|
468
|
-
title: "",
|
|
469
|
-
summary: "",
|
|
470
|
-
proposer: "",
|
|
471
381
|
};
|
|
472
382
|
}
|
|
473
383
|
|
|
@@ -503,15 +413,6 @@ export const Proposal = {
|
|
|
503
413
|
if (message.metadata !== "") {
|
|
504
414
|
writer.uint32(82).string(message.metadata);
|
|
505
415
|
}
|
|
506
|
-
if (message.title !== "") {
|
|
507
|
-
writer.uint32(90).string(message.title);
|
|
508
|
-
}
|
|
509
|
-
if (message.summary !== "") {
|
|
510
|
-
writer.uint32(98).string(message.summary);
|
|
511
|
-
}
|
|
512
|
-
if (message.proposer !== "") {
|
|
513
|
-
writer.uint32(106).string(message.proposer);
|
|
514
|
-
}
|
|
515
416
|
return writer;
|
|
516
417
|
},
|
|
517
418
|
|
|
@@ -552,15 +453,6 @@ export const Proposal = {
|
|
|
552
453
|
case 10:
|
|
553
454
|
message.metadata = reader.string();
|
|
554
455
|
break;
|
|
555
|
-
case 11:
|
|
556
|
-
message.title = reader.string();
|
|
557
|
-
break;
|
|
558
|
-
case 12:
|
|
559
|
-
message.summary = reader.string();
|
|
560
|
-
break;
|
|
561
|
-
case 13:
|
|
562
|
-
message.proposer = reader.string();
|
|
563
|
-
break;
|
|
564
456
|
default:
|
|
565
457
|
reader.skipType(tag & 7);
|
|
566
458
|
break;
|
|
@@ -581,9 +473,6 @@ export const Proposal = {
|
|
|
581
473
|
votingStartTime: isSet(object.votingStartTime) ? fromJsonTimestamp(object.votingStartTime) : undefined,
|
|
582
474
|
votingEndTime: isSet(object.votingEndTime) ? fromJsonTimestamp(object.votingEndTime) : undefined,
|
|
583
475
|
metadata: isSet(object.metadata) ? String(object.metadata) : "",
|
|
584
|
-
title: isSet(object.title) ? String(object.title) : "",
|
|
585
|
-
summary: isSet(object.summary) ? String(object.summary) : "",
|
|
586
|
-
proposer: isSet(object.proposer) ? String(object.proposer) : "",
|
|
587
476
|
};
|
|
588
477
|
},
|
|
589
478
|
|
|
@@ -608,9 +497,6 @@ export const Proposal = {
|
|
|
608
497
|
message.votingStartTime !== undefined && (obj.votingStartTime = message.votingStartTime.toISOString());
|
|
609
498
|
message.votingEndTime !== undefined && (obj.votingEndTime = message.votingEndTime.toISOString());
|
|
610
499
|
message.metadata !== undefined && (obj.metadata = message.metadata);
|
|
611
|
-
message.title !== undefined && (obj.title = message.title);
|
|
612
|
-
message.summary !== undefined && (obj.summary = message.summary);
|
|
613
|
-
message.proposer !== undefined && (obj.proposer = message.proposer);
|
|
614
500
|
return obj;
|
|
615
501
|
},
|
|
616
502
|
|
|
@@ -628,9 +514,6 @@ export const Proposal = {
|
|
|
628
514
|
message.votingStartTime = object.votingStartTime ?? undefined;
|
|
629
515
|
message.votingEndTime = object.votingEndTime ?? undefined;
|
|
630
516
|
message.metadata = object.metadata ?? "";
|
|
631
|
-
message.title = object.title ?? "";
|
|
632
|
-
message.summary = object.summary ?? "";
|
|
633
|
-
message.proposer = object.proposer ?? "";
|
|
634
517
|
return message;
|
|
635
518
|
},
|
|
636
519
|
};
|
|
@@ -973,160 +856,6 @@ export const TallyParams = {
|
|
|
973
856
|
},
|
|
974
857
|
};
|
|
975
858
|
|
|
976
|
-
function createBaseParams(): Params {
|
|
977
|
-
return {
|
|
978
|
-
minDeposit: [],
|
|
979
|
-
maxDepositPeriod: undefined,
|
|
980
|
-
votingPeriod: undefined,
|
|
981
|
-
quorum: "",
|
|
982
|
-
threshold: "",
|
|
983
|
-
vetoThreshold: "",
|
|
984
|
-
minInitialDepositRatio: "",
|
|
985
|
-
burnVoteQuorum: false,
|
|
986
|
-
burnProposalDepositPrevote: false,
|
|
987
|
-
burnVoteVeto: false,
|
|
988
|
-
};
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
export const Params = {
|
|
992
|
-
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
993
|
-
for (const v of message.minDeposit) {
|
|
994
|
-
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
995
|
-
}
|
|
996
|
-
if (message.maxDepositPeriod !== undefined) {
|
|
997
|
-
Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
|
|
998
|
-
}
|
|
999
|
-
if (message.votingPeriod !== undefined) {
|
|
1000
|
-
Duration.encode(message.votingPeriod, writer.uint32(26).fork()).ldelim();
|
|
1001
|
-
}
|
|
1002
|
-
if (message.quorum !== "") {
|
|
1003
|
-
writer.uint32(34).string(message.quorum);
|
|
1004
|
-
}
|
|
1005
|
-
if (message.threshold !== "") {
|
|
1006
|
-
writer.uint32(42).string(message.threshold);
|
|
1007
|
-
}
|
|
1008
|
-
if (message.vetoThreshold !== "") {
|
|
1009
|
-
writer.uint32(50).string(message.vetoThreshold);
|
|
1010
|
-
}
|
|
1011
|
-
if (message.minInitialDepositRatio !== "") {
|
|
1012
|
-
writer.uint32(58).string(message.minInitialDepositRatio);
|
|
1013
|
-
}
|
|
1014
|
-
if (message.burnVoteQuorum === true) {
|
|
1015
|
-
writer.uint32(104).bool(message.burnVoteQuorum);
|
|
1016
|
-
}
|
|
1017
|
-
if (message.burnProposalDepositPrevote === true) {
|
|
1018
|
-
writer.uint32(112).bool(message.burnProposalDepositPrevote);
|
|
1019
|
-
}
|
|
1020
|
-
if (message.burnVoteVeto === true) {
|
|
1021
|
-
writer.uint32(120).bool(message.burnVoteVeto);
|
|
1022
|
-
}
|
|
1023
|
-
return writer;
|
|
1024
|
-
},
|
|
1025
|
-
|
|
1026
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
|
1027
|
-
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1028
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1029
|
-
const message = createBaseParams();
|
|
1030
|
-
while (reader.pos < end) {
|
|
1031
|
-
const tag = reader.uint32();
|
|
1032
|
-
switch (tag >>> 3) {
|
|
1033
|
-
case 1:
|
|
1034
|
-
message.minDeposit.push(Coin.decode(reader, reader.uint32()));
|
|
1035
|
-
break;
|
|
1036
|
-
case 2:
|
|
1037
|
-
message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
|
|
1038
|
-
break;
|
|
1039
|
-
case 3:
|
|
1040
|
-
message.votingPeriod = Duration.decode(reader, reader.uint32());
|
|
1041
|
-
break;
|
|
1042
|
-
case 4:
|
|
1043
|
-
message.quorum = reader.string();
|
|
1044
|
-
break;
|
|
1045
|
-
case 5:
|
|
1046
|
-
message.threshold = reader.string();
|
|
1047
|
-
break;
|
|
1048
|
-
case 6:
|
|
1049
|
-
message.vetoThreshold = reader.string();
|
|
1050
|
-
break;
|
|
1051
|
-
case 7:
|
|
1052
|
-
message.minInitialDepositRatio = reader.string();
|
|
1053
|
-
break;
|
|
1054
|
-
case 13:
|
|
1055
|
-
message.burnVoteQuorum = reader.bool();
|
|
1056
|
-
break;
|
|
1057
|
-
case 14:
|
|
1058
|
-
message.burnProposalDepositPrevote = reader.bool();
|
|
1059
|
-
break;
|
|
1060
|
-
case 15:
|
|
1061
|
-
message.burnVoteVeto = reader.bool();
|
|
1062
|
-
break;
|
|
1063
|
-
default:
|
|
1064
|
-
reader.skipType(tag & 7);
|
|
1065
|
-
break;
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
return message;
|
|
1069
|
-
},
|
|
1070
|
-
|
|
1071
|
-
fromJSON(object: any): Params {
|
|
1072
|
-
return {
|
|
1073
|
-
minDeposit: Array.isArray(object?.minDeposit) ? object.minDeposit.map((e: any) => Coin.fromJSON(e)) : [],
|
|
1074
|
-
maxDepositPeriod: isSet(object.maxDepositPeriod) ? Duration.fromJSON(object.maxDepositPeriod) : undefined,
|
|
1075
|
-
votingPeriod: isSet(object.votingPeriod) ? Duration.fromJSON(object.votingPeriod) : undefined,
|
|
1076
|
-
quorum: isSet(object.quorum) ? String(object.quorum) : "",
|
|
1077
|
-
threshold: isSet(object.threshold) ? String(object.threshold) : "",
|
|
1078
|
-
vetoThreshold: isSet(object.vetoThreshold) ? String(object.vetoThreshold) : "",
|
|
1079
|
-
minInitialDepositRatio: isSet(object.minInitialDepositRatio) ? String(object.minInitialDepositRatio) : "",
|
|
1080
|
-
burnVoteQuorum: isSet(object.burnVoteQuorum) ? Boolean(object.burnVoteQuorum) : false,
|
|
1081
|
-
burnProposalDepositPrevote: isSet(object.burnProposalDepositPrevote)
|
|
1082
|
-
? Boolean(object.burnProposalDepositPrevote)
|
|
1083
|
-
: false,
|
|
1084
|
-
burnVoteVeto: isSet(object.burnVoteVeto) ? Boolean(object.burnVoteVeto) : false,
|
|
1085
|
-
};
|
|
1086
|
-
},
|
|
1087
|
-
|
|
1088
|
-
toJSON(message: Params): unknown {
|
|
1089
|
-
const obj: any = {};
|
|
1090
|
-
if (message.minDeposit) {
|
|
1091
|
-
obj.minDeposit = message.minDeposit.map((e) => e ? Coin.toJSON(e) : undefined);
|
|
1092
|
-
} else {
|
|
1093
|
-
obj.minDeposit = [];
|
|
1094
|
-
}
|
|
1095
|
-
message.maxDepositPeriod !== undefined
|
|
1096
|
-
&& (obj.maxDepositPeriod = message.maxDepositPeriod ? Duration.toJSON(message.maxDepositPeriod) : undefined);
|
|
1097
|
-
message.votingPeriod !== undefined
|
|
1098
|
-
&& (obj.votingPeriod = message.votingPeriod ? Duration.toJSON(message.votingPeriod) : undefined);
|
|
1099
|
-
message.quorum !== undefined && (obj.quorum = message.quorum);
|
|
1100
|
-
message.threshold !== undefined && (obj.threshold = message.threshold);
|
|
1101
|
-
message.vetoThreshold !== undefined && (obj.vetoThreshold = message.vetoThreshold);
|
|
1102
|
-
message.minInitialDepositRatio !== undefined && (obj.minInitialDepositRatio = message.minInitialDepositRatio);
|
|
1103
|
-
message.burnVoteQuorum !== undefined && (obj.burnVoteQuorum = message.burnVoteQuorum);
|
|
1104
|
-
message.burnProposalDepositPrevote !== undefined
|
|
1105
|
-
&& (obj.burnProposalDepositPrevote = message.burnProposalDepositPrevote);
|
|
1106
|
-
message.burnVoteVeto !== undefined && (obj.burnVoteVeto = message.burnVoteVeto);
|
|
1107
|
-
return obj;
|
|
1108
|
-
},
|
|
1109
|
-
|
|
1110
|
-
fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
|
|
1111
|
-
const message = createBaseParams();
|
|
1112
|
-
message.minDeposit = object.minDeposit?.map((e) => Coin.fromPartial(e)) || [];
|
|
1113
|
-
message.maxDepositPeriod = (object.maxDepositPeriod !== undefined && object.maxDepositPeriod !== null)
|
|
1114
|
-
? Duration.fromPartial(object.maxDepositPeriod)
|
|
1115
|
-
: undefined;
|
|
1116
|
-
message.votingPeriod = (object.votingPeriod !== undefined && object.votingPeriod !== null)
|
|
1117
|
-
? Duration.fromPartial(object.votingPeriod)
|
|
1118
|
-
: undefined;
|
|
1119
|
-
message.quorum = object.quorum ?? "";
|
|
1120
|
-
message.threshold = object.threshold ?? "";
|
|
1121
|
-
message.vetoThreshold = object.vetoThreshold ?? "";
|
|
1122
|
-
message.minInitialDepositRatio = object.minInitialDepositRatio ?? "";
|
|
1123
|
-
message.burnVoteQuorum = object.burnVoteQuorum ?? false;
|
|
1124
|
-
message.burnProposalDepositPrevote = object.burnProposalDepositPrevote ?? false;
|
|
1125
|
-
message.burnVoteVeto = object.burnVoteVeto ?? false;
|
|
1126
|
-
return message;
|
|
1127
|
-
},
|
|
1128
|
-
};
|
|
1129
|
-
|
|
1130
859
|
declare var self: any | undefined;
|
|
1131
860
|
declare var window: any | undefined;
|
|
1132
861
|
declare var global: any | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
4
|
import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination";
|
|
5
|
-
import { Deposit, DepositParams,
|
|
5
|
+
import { Deposit, DepositParams, Proposal, proposalStatusFromJSON, proposalStatusToJSON, TallyParams, TallyResult, Vote, VotingParams, } from "./gov";
|
|
6
6
|
export const protobufPackage = "cosmos.gov.v1";
|
|
7
7
|
function createBaseQueryProposalRequest() {
|
|
8
8
|
return { proposalId: 0 };
|
|
@@ -471,7 +471,7 @@ export const QueryParamsRequest = {
|
|
|
471
471
|
},
|
|
472
472
|
};
|
|
473
473
|
function createBaseQueryParamsResponse() {
|
|
474
|
-
return { votingParams: undefined, depositParams: undefined, tallyParams: undefined
|
|
474
|
+
return { votingParams: undefined, depositParams: undefined, tallyParams: undefined };
|
|
475
475
|
}
|
|
476
476
|
export const QueryParamsResponse = {
|
|
477
477
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -484,9 +484,6 @@ export const QueryParamsResponse = {
|
|
|
484
484
|
if (message.tallyParams !== undefined) {
|
|
485
485
|
TallyParams.encode(message.tallyParams, writer.uint32(26).fork()).ldelim();
|
|
486
486
|
}
|
|
487
|
-
if (message.params !== undefined) {
|
|
488
|
-
Params.encode(message.params, writer.uint32(34).fork()).ldelim();
|
|
489
|
-
}
|
|
490
487
|
return writer;
|
|
491
488
|
},
|
|
492
489
|
decode(input, length) {
|
|
@@ -505,9 +502,6 @@ export const QueryParamsResponse = {
|
|
|
505
502
|
case 3:
|
|
506
503
|
message.tallyParams = TallyParams.decode(reader, reader.uint32());
|
|
507
504
|
break;
|
|
508
|
-
case 4:
|
|
509
|
-
message.params = Params.decode(reader, reader.uint32());
|
|
510
|
-
break;
|
|
511
505
|
default:
|
|
512
506
|
reader.skipType(tag & 7);
|
|
513
507
|
break;
|
|
@@ -520,7 +514,6 @@ export const QueryParamsResponse = {
|
|
|
520
514
|
votingParams: isSet(object.votingParams) ? VotingParams.fromJSON(object.votingParams) : undefined,
|
|
521
515
|
depositParams: isSet(object.depositParams) ? DepositParams.fromJSON(object.depositParams) : undefined,
|
|
522
516
|
tallyParams: isSet(object.tallyParams) ? TallyParams.fromJSON(object.tallyParams) : undefined,
|
|
523
|
-
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
524
517
|
};
|
|
525
518
|
},
|
|
526
519
|
toJSON(message) {
|
|
@@ -531,7 +524,6 @@ export const QueryParamsResponse = {
|
|
|
531
524
|
&& (obj.depositParams = message.depositParams ? DepositParams.toJSON(message.depositParams) : undefined);
|
|
532
525
|
message.tallyParams !== undefined
|
|
533
526
|
&& (obj.tallyParams = message.tallyParams ? TallyParams.toJSON(message.tallyParams) : undefined);
|
|
534
|
-
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
535
527
|
return obj;
|
|
536
528
|
},
|
|
537
529
|
fromPartial(object) {
|
|
@@ -545,9 +537,6 @@ export const QueryParamsResponse = {
|
|
|
545
537
|
message.tallyParams = (object.tallyParams !== undefined && object.tallyParams !== null)
|
|
546
538
|
? TallyParams.fromPartial(object.tallyParams)
|
|
547
539
|
: undefined;
|
|
548
|
-
message.params = (object.params !== undefined && object.params !== null)
|
|
549
|
-
? Params.fromPartial(object.params)
|
|
550
|
-
: undefined;
|
|
551
540
|
return message;
|
|
552
541
|
},
|
|
553
542
|
};
|