decentralcardgame-cardchain-client-ts 0.0.13 → 0.0.15
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 +357 -334
- package/DecentralCardGame.cardchain.cardchain/module.ts +531 -498
- package/DecentralCardGame.cardchain.cardchain/registry.js +77 -75
- package/DecentralCardGame.cardchain.cardchain/registry.ts +77 -75
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -23
- package/DecentralCardGame.cardchain.cardchain/rest.ts +89 -62
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +89 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +95 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +12 -12
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +58 -29
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +65 -33
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +72 -66
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +99 -92
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.js → DecentralCardGame/cardchain/cardchain/set.js} +8 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.ts → DecentralCardGame/cardchain/cardchain/set.ts} +20 -20
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.js → DecentralCardGame/cardchain/cardchain/set_proposal.js} +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.ts → DecentralCardGame/cardchain/cardchain/set_proposal.ts} +18 -18
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +362 -261
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +568 -466
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +34 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +36 -9
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +24 -24
- package/client.js +7 -7
- package/client.ts +10 -9
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/rest.js +18 -3
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.js +2 -1
- package/cosmos.auth.v1beta1/types.ts +2 -0
- 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/amino/amino.js +2 -0
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- 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 +37 -6
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.consensus.v1/index.js +5 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.js +81 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.js +5 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.js +100 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.js +1 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/module.js +24 -1
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.js +2 -0
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.distribution.v1beta1/module.js +67 -21
- package/cosmos.distribution.v1beta1/module.ts +100 -34
- package/cosmos.distribution.v1beta1/registry.js +8 -4
- package/cosmos.distribution.v1beta1/registry.ts +8 -4
- package/cosmos.distribution.v1beta1/rest.js +14 -0
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.evidence.v1beta1/rest.js +4 -3
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/module.js +46 -21
- package/cosmos.gov.v1/module.ts +68 -33
- package/cosmos.gov.v1/registry.js +6 -4
- package/cosmos.gov.v1/registry.ts +6 -4
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- 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 +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- 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 +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- 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.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.staking.v1beta1/module.js +41 -39
- package/cosmos.staking.v1beta1/module.ts +61 -59
- 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 +49 -8
- package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types.js +2 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/rest.js +66 -2
- package/cosmos.tx.v1beta1/rest.ts +177 -16
- package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.js +1 -4
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.js +15 -1
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.js +3 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- 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 +26 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +5 -6
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.ts} +0 -0
package/cosmos.gov.v1/module.js
CHANGED
|
@@ -3,10 +3,11 @@ import { SigningStargateClient } from "@cosmjs/stargate";
|
|
|
3
3
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import {
|
|
7
|
-
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
6
|
+
import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
|
|
8
7
|
import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
|
|
8
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
9
9
|
import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
|
|
10
|
+
import { MsgVote } from "./types/cosmos/gov/v1/tx";
|
|
10
11
|
import { WeightedVoteOption as typeWeightedVoteOption } from "./types";
|
|
11
12
|
import { Deposit as typeDeposit } from "./types";
|
|
12
13
|
import { Proposal as typeProposal } from "./types";
|
|
@@ -15,7 +16,8 @@ import { Vote as typeVote } from "./types";
|
|
|
15
16
|
import { DepositParams as typeDepositParams } from "./types";
|
|
16
17
|
import { VotingParams as typeVotingParams } from "./types";
|
|
17
18
|
import { TallyParams as typeTallyParams } from "./types";
|
|
18
|
-
|
|
19
|
+
import { Params as typeParams } from "./types";
|
|
20
|
+
export { MsgUpdateParams, MsgDeposit, MsgVoteWeighted, MsgSubmitProposal, MsgVote };
|
|
19
21
|
export const registry = new Registry(msgTypes);
|
|
20
22
|
function getStructure(template) {
|
|
21
23
|
const structure = { fields: [] };
|
|
@@ -31,46 +33,46 @@ const defaultFee = {
|
|
|
31
33
|
};
|
|
32
34
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
33
35
|
return {
|
|
34
|
-
async
|
|
36
|
+
async sendMsgUpdateParams({ value, fee, memo }) {
|
|
35
37
|
if (!signer) {
|
|
36
|
-
throw new Error('TxClient:
|
|
38
|
+
throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.');
|
|
37
39
|
}
|
|
38
40
|
try {
|
|
39
41
|
const { address } = (await signer.getAccounts())[0];
|
|
40
42
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
41
|
-
let msg = this.
|
|
43
|
+
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) });
|
|
42
44
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
43
45
|
}
|
|
44
46
|
catch (e) {
|
|
45
|
-
throw new Error('TxClient:
|
|
47
|
+
throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: ' + e.message);
|
|
46
48
|
}
|
|
47
49
|
},
|
|
48
|
-
async
|
|
50
|
+
async sendMsgDeposit({ value, fee, memo }) {
|
|
49
51
|
if (!signer) {
|
|
50
|
-
throw new Error('TxClient:
|
|
52
|
+
throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.');
|
|
51
53
|
}
|
|
52
54
|
try {
|
|
53
55
|
const { address } = (await signer.getAccounts())[0];
|
|
54
56
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
55
|
-
let msg = this.
|
|
57
|
+
let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) });
|
|
56
58
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
57
59
|
}
|
|
58
60
|
catch (e) {
|
|
59
|
-
throw new Error('TxClient:
|
|
61
|
+
throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: ' + e.message);
|
|
60
62
|
}
|
|
61
63
|
},
|
|
62
|
-
async
|
|
64
|
+
async sendMsgVoteWeighted({ value, fee, memo }) {
|
|
63
65
|
if (!signer) {
|
|
64
|
-
throw new Error('TxClient:
|
|
66
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.');
|
|
65
67
|
}
|
|
66
68
|
try {
|
|
67
69
|
const { address } = (await signer.getAccounts())[0];
|
|
68
70
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
69
|
-
let msg = this.
|
|
71
|
+
let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) });
|
|
70
72
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
71
73
|
}
|
|
72
74
|
catch (e) {
|
|
73
|
-
throw new Error('TxClient:
|
|
75
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: ' + e.message);
|
|
74
76
|
}
|
|
75
77
|
},
|
|
76
78
|
async sendMsgSubmitProposal({ value, fee, memo }) {
|
|
@@ -87,20 +89,26 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
87
89
|
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
|
|
88
90
|
}
|
|
89
91
|
},
|
|
90
|
-
|
|
92
|
+
async sendMsgVote({ value, fee, memo }) {
|
|
93
|
+
if (!signer) {
|
|
94
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
|
|
95
|
+
}
|
|
91
96
|
try {
|
|
92
|
-
|
|
97
|
+
const { address } = (await signer.getAccounts())[0];
|
|
98
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
99
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
100
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
93
101
|
}
|
|
94
102
|
catch (e) {
|
|
95
|
-
throw new Error('TxClient:
|
|
103
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
|
|
96
104
|
}
|
|
97
105
|
},
|
|
98
|
-
|
|
106
|
+
msgUpdateParams({ value }) {
|
|
99
107
|
try {
|
|
100
|
-
return { typeUrl: "/cosmos.gov.v1.
|
|
108
|
+
return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) };
|
|
101
109
|
}
|
|
102
110
|
catch (e) {
|
|
103
|
-
throw new Error('TxClient:
|
|
111
|
+
throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message);
|
|
104
112
|
}
|
|
105
113
|
},
|
|
106
114
|
msgDeposit({ value }) {
|
|
@@ -111,6 +119,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
111
119
|
throw new Error('TxClient:MsgDeposit: Could not create message: ' + e.message);
|
|
112
120
|
}
|
|
113
121
|
},
|
|
122
|
+
msgVoteWeighted({ value }) {
|
|
123
|
+
try {
|
|
124
|
+
return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial(value) };
|
|
125
|
+
}
|
|
126
|
+
catch (e) {
|
|
127
|
+
throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
114
130
|
msgSubmitProposal({ value }) {
|
|
115
131
|
try {
|
|
116
132
|
return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial(value) };
|
|
@@ -119,6 +135,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
119
135
|
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
|
|
120
136
|
}
|
|
121
137
|
},
|
|
138
|
+
msgVote({ value }) {
|
|
139
|
+
try {
|
|
140
|
+
return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial(value) };
|
|
141
|
+
}
|
|
142
|
+
catch (e) {
|
|
143
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message);
|
|
144
|
+
}
|
|
145
|
+
},
|
|
122
146
|
};
|
|
123
147
|
};
|
|
124
148
|
export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
|
|
@@ -138,6 +162,7 @@ class SDKModule {
|
|
|
138
162
|
DepositParams: getStructure(typeDepositParams.fromPartial({})),
|
|
139
163
|
VotingParams: getStructure(typeVotingParams.fromPartial({})),
|
|
140
164
|
TallyParams: getStructure(typeTallyParams.fromPartial({})),
|
|
165
|
+
Params: getStructure(typeParams.fromPartial({})),
|
|
141
166
|
};
|
|
142
167
|
client.on('signer-changed', (signer) => {
|
|
143
168
|
this.updateTX(client);
|
package/cosmos.gov.v1/module.ts
CHANGED
|
@@ -7,10 +7,11 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import {
|
|
11
|
-
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
10
|
+
import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
|
|
12
11
|
import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
|
|
12
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
13
13
|
import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
|
|
14
|
+
import { MsgVote } from "./types/cosmos/gov/v1/tx";
|
|
14
15
|
|
|
15
16
|
import { WeightedVoteOption as typeWeightedVoteOption} from "./types"
|
|
16
17
|
import { Deposit as typeDeposit} from "./types"
|
|
@@ -20,23 +21,24 @@ import { Vote as typeVote} from "./types"
|
|
|
20
21
|
import { DepositParams as typeDepositParams} from "./types"
|
|
21
22
|
import { VotingParams as typeVotingParams} from "./types"
|
|
22
23
|
import { TallyParams as typeTallyParams} from "./types"
|
|
24
|
+
import { Params as typeParams} from "./types"
|
|
23
25
|
|
|
24
|
-
export {
|
|
26
|
+
export { MsgUpdateParams, MsgDeposit, MsgVoteWeighted, MsgSubmitProposal, MsgVote };
|
|
25
27
|
|
|
26
|
-
type
|
|
27
|
-
value:
|
|
28
|
+
type sendMsgUpdateParamsParams = {
|
|
29
|
+
value: MsgUpdateParams,
|
|
28
30
|
fee?: StdFee,
|
|
29
31
|
memo?: string
|
|
30
32
|
};
|
|
31
33
|
|
|
32
|
-
type
|
|
33
|
-
value:
|
|
34
|
+
type sendMsgDepositParams = {
|
|
35
|
+
value: MsgDeposit,
|
|
34
36
|
fee?: StdFee,
|
|
35
37
|
memo?: string
|
|
36
38
|
};
|
|
37
39
|
|
|
38
|
-
type
|
|
39
|
-
value:
|
|
40
|
+
type sendMsgVoteWeightedParams = {
|
|
41
|
+
value: MsgVoteWeighted,
|
|
40
42
|
fee?: StdFee,
|
|
41
43
|
memo?: string
|
|
42
44
|
};
|
|
@@ -47,23 +49,33 @@ type sendMsgSubmitProposalParams = {
|
|
|
47
49
|
memo?: string
|
|
48
50
|
};
|
|
49
51
|
|
|
50
|
-
|
|
51
|
-
type msgVoteParams = {
|
|
52
|
+
type sendMsgVoteParams = {
|
|
52
53
|
value: MsgVote,
|
|
54
|
+
fee?: StdFee,
|
|
55
|
+
memo?: string
|
|
53
56
|
};
|
|
54
57
|
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
|
|
59
|
+
type msgUpdateParamsParams = {
|
|
60
|
+
value: MsgUpdateParams,
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
type msgDepositParams = {
|
|
60
64
|
value: MsgDeposit,
|
|
61
65
|
};
|
|
62
66
|
|
|
67
|
+
type msgVoteWeightedParams = {
|
|
68
|
+
value: MsgVoteWeighted,
|
|
69
|
+
};
|
|
70
|
+
|
|
63
71
|
type msgSubmitProposalParams = {
|
|
64
72
|
value: MsgSubmitProposal,
|
|
65
73
|
};
|
|
66
74
|
|
|
75
|
+
type msgVoteParams = {
|
|
76
|
+
value: MsgVote,
|
|
77
|
+
};
|
|
78
|
+
|
|
67
79
|
|
|
68
80
|
export const registry = new Registry(msgTypes);
|
|
69
81
|
|
|
@@ -94,45 +106,45 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
94
106
|
|
|
95
107
|
return {
|
|
96
108
|
|
|
97
|
-
async
|
|
109
|
+
async sendMsgUpdateParams({ value, fee, memo }: sendMsgUpdateParamsParams): Promise<DeliverTxResponse> {
|
|
98
110
|
if (!signer) {
|
|
99
|
-
throw new Error('TxClient:
|
|
111
|
+
throw new Error('TxClient:sendMsgUpdateParams: Unable to sign Tx. Signer is not present.')
|
|
100
112
|
}
|
|
101
113
|
try {
|
|
102
114
|
const { address } = (await signer.getAccounts())[0];
|
|
103
115
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
104
|
-
let msg = this.
|
|
116
|
+
let msg = this.msgUpdateParams({ value: MsgUpdateParams.fromPartial(value) })
|
|
105
117
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
106
118
|
} catch (e: any) {
|
|
107
|
-
throw new Error('TxClient:
|
|
119
|
+
throw new Error('TxClient:sendMsgUpdateParams: Could not broadcast Tx: '+ e.message)
|
|
108
120
|
}
|
|
109
121
|
},
|
|
110
122
|
|
|
111
|
-
async
|
|
123
|
+
async sendMsgDeposit({ value, fee, memo }: sendMsgDepositParams): Promise<DeliverTxResponse> {
|
|
112
124
|
if (!signer) {
|
|
113
|
-
throw new Error('TxClient:
|
|
125
|
+
throw new Error('TxClient:sendMsgDeposit: Unable to sign Tx. Signer is not present.')
|
|
114
126
|
}
|
|
115
127
|
try {
|
|
116
128
|
const { address } = (await signer.getAccounts())[0];
|
|
117
129
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
118
|
-
let msg = this.
|
|
130
|
+
let msg = this.msgDeposit({ value: MsgDeposit.fromPartial(value) })
|
|
119
131
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
120
132
|
} catch (e: any) {
|
|
121
|
-
throw new Error('TxClient:
|
|
133
|
+
throw new Error('TxClient:sendMsgDeposit: Could not broadcast Tx: '+ e.message)
|
|
122
134
|
}
|
|
123
135
|
},
|
|
124
136
|
|
|
125
|
-
async
|
|
137
|
+
async sendMsgVoteWeighted({ value, fee, memo }: sendMsgVoteWeightedParams): Promise<DeliverTxResponse> {
|
|
126
138
|
if (!signer) {
|
|
127
|
-
throw new Error('TxClient:
|
|
139
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Unable to sign Tx. Signer is not present.')
|
|
128
140
|
}
|
|
129
141
|
try {
|
|
130
142
|
const { address } = (await signer.getAccounts())[0];
|
|
131
143
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
132
|
-
let msg = this.
|
|
144
|
+
let msg = this.msgVoteWeighted({ value: MsgVoteWeighted.fromPartial(value) })
|
|
133
145
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
134
146
|
} catch (e: any) {
|
|
135
|
-
throw new Error('TxClient:
|
|
147
|
+
throw new Error('TxClient:sendMsgVoteWeighted: Could not broadcast Tx: '+ e.message)
|
|
136
148
|
}
|
|
137
149
|
},
|
|
138
150
|
|
|
@@ -150,20 +162,26 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
150
162
|
}
|
|
151
163
|
},
|
|
152
164
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
165
|
+
async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
|
|
166
|
+
if (!signer) {
|
|
167
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
|
|
168
|
+
}
|
|
169
|
+
try {
|
|
170
|
+
const { address } = (await signer.getAccounts())[0];
|
|
171
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
172
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
|
|
173
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
157
174
|
} catch (e: any) {
|
|
158
|
-
throw new Error('TxClient:
|
|
175
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
|
|
159
176
|
}
|
|
160
177
|
},
|
|
161
178
|
|
|
162
|
-
|
|
179
|
+
|
|
180
|
+
msgUpdateParams({ value }: msgUpdateParamsParams): EncodeObject {
|
|
163
181
|
try {
|
|
164
|
-
return { typeUrl: "/cosmos.gov.v1.
|
|
182
|
+
return { typeUrl: "/cosmos.gov.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial( value ) }
|
|
165
183
|
} catch (e: any) {
|
|
166
|
-
throw new Error('TxClient:
|
|
184
|
+
throw new Error('TxClient:MsgUpdateParams: Could not create message: ' + e.message)
|
|
167
185
|
}
|
|
168
186
|
},
|
|
169
187
|
|
|
@@ -175,6 +193,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
175
193
|
}
|
|
176
194
|
},
|
|
177
195
|
|
|
196
|
+
msgVoteWeighted({ value }: msgVoteWeightedParams): EncodeObject {
|
|
197
|
+
try {
|
|
198
|
+
return { typeUrl: "/cosmos.gov.v1.MsgVoteWeighted", value: MsgVoteWeighted.fromPartial( value ) }
|
|
199
|
+
} catch (e: any) {
|
|
200
|
+
throw new Error('TxClient:MsgVoteWeighted: Could not create message: ' + e.message)
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
|
|
178
204
|
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
|
|
179
205
|
try {
|
|
180
206
|
return { typeUrl: "/cosmos.gov.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
|
|
@@ -183,6 +209,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
183
209
|
}
|
|
184
210
|
},
|
|
185
211
|
|
|
212
|
+
msgVote({ value }: msgVoteParams): EncodeObject {
|
|
213
|
+
try {
|
|
214
|
+
return { typeUrl: "/cosmos.gov.v1.MsgVote", value: MsgVote.fromPartial( value ) }
|
|
215
|
+
} catch (e: any) {
|
|
216
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
|
|
186
220
|
}
|
|
187
221
|
};
|
|
188
222
|
|
|
@@ -213,6 +247,7 @@ class SDKModule {
|
|
|
213
247
|
DepositParams: getStructure(typeDepositParams.fromPartial({})),
|
|
214
248
|
VotingParams: getStructure(typeVotingParams.fromPartial({})),
|
|
215
249
|
TallyParams: getStructure(typeTallyParams.fromPartial({})),
|
|
250
|
+
Params: getStructure(typeParams.fromPartial({})),
|
|
216
251
|
|
|
217
252
|
};
|
|
218
253
|
client.on('signer-changed',(signer) => {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
1
|
+
import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
|
|
3
2
|
import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
|
|
3
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
4
4
|
import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
|
|
5
|
+
import { MsgVote } from "./types/cosmos/gov/v1/tx";
|
|
5
6
|
const msgTypes = [
|
|
6
|
-
["/cosmos.gov.v1.
|
|
7
|
-
["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
|
|
7
|
+
["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams],
|
|
8
8
|
["/cosmos.gov.v1.MsgDeposit", MsgDeposit],
|
|
9
|
+
["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
|
|
9
10
|
["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
11
|
+
["/cosmos.gov.v1.MsgVote", MsgVote],
|
|
10
12
|
];
|
|
11
13
|
export { msgTypes };
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import {
|
|
3
|
-
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
2
|
+
import { MsgUpdateParams } from "./types/cosmos/gov/v1/tx";
|
|
4
3
|
import { MsgDeposit } from "./types/cosmos/gov/v1/tx";
|
|
4
|
+
import { MsgVoteWeighted } from "./types/cosmos/gov/v1/tx";
|
|
5
5
|
import { MsgSubmitProposal } from "./types/cosmos/gov/v1/tx";
|
|
6
|
+
import { MsgVote } from "./types/cosmos/gov/v1/tx";
|
|
6
7
|
|
|
7
8
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
8
|
-
["/cosmos.gov.v1.
|
|
9
|
-
["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
|
|
9
|
+
["/cosmos.gov.v1.MsgUpdateParams", MsgUpdateParams],
|
|
10
10
|
["/cosmos.gov.v1.MsgDeposit", MsgDeposit],
|
|
11
|
+
["/cosmos.gov.v1.MsgVoteWeighted", MsgVoteWeighted],
|
|
11
12
|
["/cosmos.gov.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
13
|
+
["/cosmos.gov.v1.MsgVote", MsgVote],
|
|
12
14
|
|
|
13
15
|
];
|
|
14
16
|
|