decentralcardgame-cardchain-client-ts 0.0.12 → 0.0.14
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 +532 -499
- 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 -8
- package/client.ts +11 -11
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +3 -1
- 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 +30 -30
- 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 +25 -25
- 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/module.ts +1 -1
- 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 +35 -2
- 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 +101 -35
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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 +69 -34
- 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 +37 -37
- 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 +139 -139
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/module.ts +1 -1
- 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 +62 -60
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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/module.ts +1 -1
- 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.interchain_accounts.host.v1/module.ts +1 -1
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +6 -35
- 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/module.ts +1 -1
- 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/module.ts +1 -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/module.ts +1 -1
- 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 +8 -8
- /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
|
@@ -150,7 +150,9 @@ export function proposalStatusToJSON(object: ProposalStatus): string {
|
|
|
150
150
|
* Since: cosmos-sdk 0.43
|
|
151
151
|
*/
|
|
152
152
|
export interface WeightedVoteOption {
|
|
153
|
+
/** option defines the valid vote options, it must not contain duplicate vote options. */
|
|
153
154
|
option: VoteOption;
|
|
155
|
+
/** weight is the vote weight associated with the vote option. */
|
|
154
156
|
weight: string;
|
|
155
157
|
}
|
|
156
158
|
|
|
@@ -159,7 +161,9 @@ export interface WeightedVoteOption {
|
|
|
159
161
|
* manually updated in case of approval.
|
|
160
162
|
*/
|
|
161
163
|
export interface TextProposal {
|
|
164
|
+
/** title of the proposal. */
|
|
162
165
|
title: string;
|
|
166
|
+
/** description associated with the proposal. */
|
|
163
167
|
description: string;
|
|
164
168
|
}
|
|
165
169
|
|
|
@@ -168,34 +172,59 @@ export interface TextProposal {
|
|
|
168
172
|
* proposal.
|
|
169
173
|
*/
|
|
170
174
|
export interface Deposit {
|
|
175
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
171
176
|
proposalId: number;
|
|
177
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
172
178
|
depositor: string;
|
|
179
|
+
/** amount to be deposited by depositor. */
|
|
173
180
|
amount: Coin[];
|
|
174
181
|
}
|
|
175
182
|
|
|
176
183
|
/** Proposal defines the core field members of a governance proposal. */
|
|
177
184
|
export interface Proposal {
|
|
185
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
178
186
|
proposalId: number;
|
|
179
|
-
content
|
|
187
|
+
/** content is the proposal's content. */
|
|
188
|
+
content:
|
|
189
|
+
| Any
|
|
190
|
+
| undefined;
|
|
191
|
+
/** status defines the proposal status. */
|
|
180
192
|
status: ProposalStatus;
|
|
181
193
|
/**
|
|
182
194
|
* final_tally_result is the final tally result of the proposal. When
|
|
183
195
|
* querying a proposal via gRPC, this field is not populated until the
|
|
184
196
|
* proposal's voting period has ended.
|
|
185
197
|
*/
|
|
186
|
-
finalTallyResult:
|
|
187
|
-
|
|
188
|
-
|
|
198
|
+
finalTallyResult:
|
|
199
|
+
| TallyResult
|
|
200
|
+
| undefined;
|
|
201
|
+
/** submit_time is the time of proposal submission. */
|
|
202
|
+
submitTime:
|
|
203
|
+
| Date
|
|
204
|
+
| undefined;
|
|
205
|
+
/** deposit_end_time is the end time for deposition. */
|
|
206
|
+
depositEndTime:
|
|
207
|
+
| Date
|
|
208
|
+
| undefined;
|
|
209
|
+
/** total_deposit is the total deposit on the proposal. */
|
|
189
210
|
totalDeposit: Coin[];
|
|
190
|
-
|
|
211
|
+
/** voting_start_time is the starting time to vote on a proposal. */
|
|
212
|
+
votingStartTime:
|
|
213
|
+
| Date
|
|
214
|
+
| undefined;
|
|
215
|
+
/** voting_end_time is the end time of voting on a proposal. */
|
|
191
216
|
votingEndTime: Date | undefined;
|
|
192
217
|
}
|
|
193
218
|
|
|
194
219
|
/** TallyResult defines a standard tally for a governance proposal. */
|
|
195
220
|
export interface TallyResult {
|
|
221
|
+
/** yes is the number of yes votes on a proposal. */
|
|
196
222
|
yes: string;
|
|
223
|
+
/** abstain is the number of abstain votes on a proposal. */
|
|
197
224
|
abstain: string;
|
|
225
|
+
/** no is the number of no votes on a proposal. */
|
|
198
226
|
no: string;
|
|
227
|
+
/** no_with_veto is the number of no with veto votes on a proposal. */
|
|
199
228
|
noWithVeto: string;
|
|
200
229
|
}
|
|
201
230
|
|
|
@@ -204,7 +233,9 @@ export interface TallyResult {
|
|
|
204
233
|
* A Vote consists of a proposal ID, the voter, and the vote option.
|
|
205
234
|
*/
|
|
206
235
|
export interface Vote {
|
|
236
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
207
237
|
proposalId: number;
|
|
238
|
+
/** voter is the voter address of the proposal. */
|
|
208
239
|
voter: string;
|
|
209
240
|
/**
|
|
210
241
|
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
|
@@ -214,7 +245,11 @@ export interface Vote {
|
|
|
214
245
|
* @deprecated
|
|
215
246
|
*/
|
|
216
247
|
option: VoteOption;
|
|
217
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* options is the weighted vote options.
|
|
250
|
+
*
|
|
251
|
+
* Since: cosmos-sdk 0.43
|
|
252
|
+
*/
|
|
218
253
|
options: WeightedVoteOption[];
|
|
219
254
|
}
|
|
220
255
|
|
|
@@ -224,14 +259,14 @@ export interface DepositParams {
|
|
|
224
259
|
minDeposit: Coin[];
|
|
225
260
|
/**
|
|
226
261
|
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
|
227
|
-
*
|
|
262
|
+
* months.
|
|
228
263
|
*/
|
|
229
264
|
maxDepositPeriod: Duration | undefined;
|
|
230
265
|
}
|
|
231
266
|
|
|
232
267
|
/** VotingParams defines the params for voting on governance proposals. */
|
|
233
268
|
export interface VotingParams {
|
|
234
|
-
/**
|
|
269
|
+
/** Duration of the voting period. */
|
|
235
270
|
votingPeriod: Duration | undefined;
|
|
236
271
|
}
|
|
237
272
|
|
|
@@ -239,14 +274,14 @@ export interface VotingParams {
|
|
|
239
274
|
export interface TallyParams {
|
|
240
275
|
/**
|
|
241
276
|
* Minimum percentage of total stake needed to vote for a result to be
|
|
242
|
-
*
|
|
277
|
+
* considered valid.
|
|
243
278
|
*/
|
|
244
279
|
quorum: Uint8Array;
|
|
245
280
|
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
|
246
281
|
threshold: Uint8Array;
|
|
247
282
|
/**
|
|
248
283
|
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
|
249
|
-
*
|
|
284
|
+
* vetoed. Default value: 1/3.
|
|
250
285
|
*/
|
|
251
286
|
vetoThreshold: Uint8Array;
|
|
252
287
|
}
|
|
@@ -45,6 +45,7 @@ export interface QueryProposalsRequest {
|
|
|
45
45
|
* method.
|
|
46
46
|
*/
|
|
47
47
|
export interface QueryProposalsResponse {
|
|
48
|
+
/** proposals defines all the requested governance proposals. */
|
|
48
49
|
proposals: Proposal[];
|
|
49
50
|
/** pagination defines the pagination in the response. */
|
|
50
51
|
pagination: PageResponse | undefined;
|
|
@@ -60,7 +61,7 @@ export interface QueryVoteRequest {
|
|
|
60
61
|
|
|
61
62
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
|
62
63
|
export interface QueryVoteResponse {
|
|
63
|
-
/** vote
|
|
64
|
+
/** vote defines the queried vote. */
|
|
64
65
|
vote: Vote | undefined;
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -74,7 +75,7 @@ export interface QueryVotesRequest {
|
|
|
74
75
|
|
|
75
76
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
|
76
77
|
export interface QueryVotesResponse {
|
|
77
|
-
/** votes
|
|
78
|
+
/** votes defines the queried votes. */
|
|
78
79
|
votes: Vote[];
|
|
79
80
|
/** pagination defines the pagination in the response. */
|
|
80
81
|
pagination: PageResponse | undefined;
|
|
@@ -127,6 +128,7 @@ export interface QueryDepositsRequest {
|
|
|
127
128
|
|
|
128
129
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
|
129
130
|
export interface QueryDepositsResponse {
|
|
131
|
+
/** deposits defines the requested deposits. */
|
|
130
132
|
deposits: Deposit[];
|
|
131
133
|
/** pagination defines the pagination in the response. */
|
|
132
134
|
pagination: PageResponse | undefined;
|
|
@@ -12,20 +12,29 @@ export const protobufPackage = "cosmos.gov.v1beta1";
|
|
|
12
12
|
* proposal Content.
|
|
13
13
|
*/
|
|
14
14
|
export interface MsgSubmitProposal {
|
|
15
|
-
content
|
|
15
|
+
/** content is the proposal's content. */
|
|
16
|
+
content:
|
|
17
|
+
| Any
|
|
18
|
+
| undefined;
|
|
19
|
+
/** initial_deposit is the deposit value that must be paid at proposal submission. */
|
|
16
20
|
initialDeposit: Coin[];
|
|
21
|
+
/** proposer is the account address of the proposer. */
|
|
17
22
|
proposer: string;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
/** MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. */
|
|
21
26
|
export interface MsgSubmitProposalResponse {
|
|
27
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
22
28
|
proposalId: number;
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
/** MsgVote defines a message to cast a vote. */
|
|
26
32
|
export interface MsgVote {
|
|
33
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
27
34
|
proposalId: number;
|
|
35
|
+
/** voter is the voter address for the proposal. */
|
|
28
36
|
voter: string;
|
|
37
|
+
/** option defines the vote option. */
|
|
29
38
|
option: VoteOption;
|
|
30
39
|
}
|
|
31
40
|
|
|
@@ -39,8 +48,11 @@ export interface MsgVoteResponse {
|
|
|
39
48
|
* Since: cosmos-sdk 0.43
|
|
40
49
|
*/
|
|
41
50
|
export interface MsgVoteWeighted {
|
|
51
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
42
52
|
proposalId: number;
|
|
53
|
+
/** voter is the voter address for the proposal. */
|
|
43
54
|
voter: string;
|
|
55
|
+
/** options defines the weighted vote options. */
|
|
44
56
|
options: WeightedVoteOption[];
|
|
45
57
|
}
|
|
46
58
|
|
|
@@ -54,8 +66,11 @@ export interface MsgVoteWeightedResponse {
|
|
|
54
66
|
|
|
55
67
|
/** MsgDeposit defines a message to submit a deposit to an existing proposal. */
|
|
56
68
|
export interface MsgDeposit {
|
|
69
|
+
/** proposal_id defines the unique id of the proposal. */
|
|
57
70
|
proposalId: number;
|
|
71
|
+
/** depositor defines the deposit addresses from the proposals. */
|
|
58
72
|
depositor: string;
|
|
73
|
+
/** amount to be deposited by depositor. */
|
|
59
74
|
amount: Coin[];
|
|
60
75
|
}
|
|
61
76
|
|
|
@@ -4,19 +4,19 @@ import { Registry } from "@cosmjs/proto-signing";
|
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
6
|
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
7
|
-
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
8
|
-
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
9
7
|
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
9
|
+
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
10
|
+
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
12
11
|
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
13
12
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
14
|
-
import {
|
|
13
|
+
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
14
|
+
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
15
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
16
|
+
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
15
17
|
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
16
|
-
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
17
|
-
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
18
18
|
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
19
|
-
import {
|
|
19
|
+
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
20
20
|
import { EventCreateGroup as typeEventCreateGroup } from "./types";
|
|
21
21
|
import { EventUpdateGroup as typeEventUpdateGroup } from "./types";
|
|
22
22
|
import { EventCreateGroupPolicy as typeEventCreateGroupPolicy } from "./types";
|
|
@@ -38,7 +38,7 @@ import { GroupPolicyInfo as typeGroupPolicyInfo } from "./types";
|
|
|
38
38
|
import { Proposal as typeProposal } from "./types";
|
|
39
39
|
import { TallyResult as typeTallyResult } from "./types";
|
|
40
40
|
import { Vote as typeVote } from "./types";
|
|
41
|
-
export { MsgCreateGroupWithPolicy,
|
|
41
|
+
export { MsgCreateGroupWithPolicy, MsgUpdateGroupPolicyMetadata, MsgUpdateGroupMetadata, MsgLeaveGroup, MsgCreateGroupPolicy, MsgVote, MsgSubmitProposal, MsgExec, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgCreateGroup, MsgUpdateGroupMembers, MsgUpdateGroupPolicyAdmin, MsgWithdrawProposal };
|
|
42
42
|
export const registry = new Registry(msgTypes);
|
|
43
43
|
function getStructure(template) {
|
|
44
44
|
const structure = { fields: [] };
|
|
@@ -68,158 +68,158 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
68
68
|
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: ' + e.message);
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
async
|
|
71
|
+
async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }) {
|
|
72
72
|
if (!signer) {
|
|
73
|
-
throw new Error('TxClient:
|
|
73
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.');
|
|
74
74
|
}
|
|
75
75
|
try {
|
|
76
76
|
const { address } = (await signer.getAccounts())[0];
|
|
77
77
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
78
|
-
let msg = this.
|
|
78
|
+
let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) });
|
|
79
79
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
80
80
|
}
|
|
81
81
|
catch (e) {
|
|
82
|
-
throw new Error('TxClient:
|
|
82
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: ' + e.message);
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
async
|
|
85
|
+
async sendMsgUpdateGroupMetadata({ value, fee, memo }) {
|
|
86
86
|
if (!signer) {
|
|
87
|
-
throw new Error('TxClient:
|
|
87
|
+
throw new Error('TxClient:sendMsgUpdateGroupMetadata: Unable to sign Tx. Signer is not present.');
|
|
88
88
|
}
|
|
89
89
|
try {
|
|
90
90
|
const { address } = (await signer.getAccounts())[0];
|
|
91
91
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
92
|
-
let msg = this.
|
|
92
|
+
let msg = this.msgUpdateGroupMetadata({ value: MsgUpdateGroupMetadata.fromPartial(value) });
|
|
93
93
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
94
94
|
}
|
|
95
95
|
catch (e) {
|
|
96
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:sendMsgUpdateGroupMetadata: Could not broadcast Tx: ' + e.message);
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
async
|
|
99
|
+
async sendMsgLeaveGroup({ value, fee, memo }) {
|
|
100
100
|
if (!signer) {
|
|
101
|
-
throw new Error('TxClient:
|
|
101
|
+
throw new Error('TxClient:sendMsgLeaveGroup: Unable to sign Tx. Signer is not present.');
|
|
102
102
|
}
|
|
103
103
|
try {
|
|
104
104
|
const { address } = (await signer.getAccounts())[0];
|
|
105
105
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
106
|
-
let msg = this.
|
|
106
|
+
let msg = this.msgLeaveGroup({ value: MsgLeaveGroup.fromPartial(value) });
|
|
107
107
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
108
108
|
}
|
|
109
109
|
catch (e) {
|
|
110
|
-
throw new Error('TxClient:
|
|
110
|
+
throw new Error('TxClient:sendMsgLeaveGroup: Could not broadcast Tx: ' + e.message);
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
async
|
|
113
|
+
async sendMsgCreateGroupPolicy({ value, fee, memo }) {
|
|
114
114
|
if (!signer) {
|
|
115
|
-
throw new Error('TxClient:
|
|
115
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.');
|
|
116
116
|
}
|
|
117
117
|
try {
|
|
118
118
|
const { address } = (await signer.getAccounts())[0];
|
|
119
119
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
120
|
-
let msg = this.
|
|
120
|
+
let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) });
|
|
121
121
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
122
122
|
}
|
|
123
123
|
catch (e) {
|
|
124
|
-
throw new Error('TxClient:
|
|
124
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: ' + e.message);
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
async
|
|
127
|
+
async sendMsgVote({ value, fee, memo }) {
|
|
128
128
|
if (!signer) {
|
|
129
|
-
throw new Error('TxClient:
|
|
129
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.');
|
|
130
130
|
}
|
|
131
131
|
try {
|
|
132
132
|
const { address } = (await signer.getAccounts())[0];
|
|
133
133
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
134
|
-
let msg = this.
|
|
134
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) });
|
|
135
135
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
136
136
|
}
|
|
137
137
|
catch (e) {
|
|
138
|
-
throw new Error('TxClient:
|
|
138
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: ' + e.message);
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
|
-
async
|
|
141
|
+
async sendMsgSubmitProposal({ value, fee, memo }) {
|
|
142
142
|
if (!signer) {
|
|
143
|
-
throw new Error('TxClient:
|
|
143
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.');
|
|
144
144
|
}
|
|
145
145
|
try {
|
|
146
146
|
const { address } = (await signer.getAccounts())[0];
|
|
147
147
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
148
|
-
let msg = this.
|
|
148
|
+
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) });
|
|
149
149
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
150
150
|
}
|
|
151
151
|
catch (e) {
|
|
152
|
-
throw new Error('TxClient:
|
|
152
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: ' + e.message);
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
-
async
|
|
155
|
+
async sendMsgExec({ value, fee, memo }) {
|
|
156
156
|
if (!signer) {
|
|
157
|
-
throw new Error('TxClient:
|
|
157
|
+
throw new Error('TxClient:sendMsgExec: Unable to sign Tx. Signer is not present.');
|
|
158
158
|
}
|
|
159
159
|
try {
|
|
160
160
|
const { address } = (await signer.getAccounts())[0];
|
|
161
161
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
162
|
-
let msg = this.
|
|
162
|
+
let msg = this.msgExec({ value: MsgExec.fromPartial(value) });
|
|
163
163
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
164
164
|
}
|
|
165
165
|
catch (e) {
|
|
166
|
-
throw new Error('TxClient:
|
|
166
|
+
throw new Error('TxClient:sendMsgExec: Could not broadcast Tx: ' + e.message);
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
async
|
|
169
|
+
async sendMsgUpdateGroupAdmin({ value, fee, memo }) {
|
|
170
170
|
if (!signer) {
|
|
171
|
-
throw new Error('TxClient:
|
|
171
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.');
|
|
172
172
|
}
|
|
173
173
|
try {
|
|
174
174
|
const { address } = (await signer.getAccounts())[0];
|
|
175
175
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
176
|
-
let msg = this.
|
|
176
|
+
let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) });
|
|
177
177
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
178
178
|
}
|
|
179
179
|
catch (e) {
|
|
180
|
-
throw new Error('TxClient:
|
|
180
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: ' + e.message);
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
|
-
async
|
|
183
|
+
async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }) {
|
|
184
184
|
if (!signer) {
|
|
185
|
-
throw new Error('TxClient:
|
|
185
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.');
|
|
186
186
|
}
|
|
187
187
|
try {
|
|
188
188
|
const { address } = (await signer.getAccounts())[0];
|
|
189
189
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
190
|
-
let msg = this.
|
|
190
|
+
let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) });
|
|
191
191
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
192
192
|
}
|
|
193
193
|
catch (e) {
|
|
194
|
-
throw new Error('TxClient:
|
|
194
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: ' + e.message);
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
|
-
async
|
|
197
|
+
async sendMsgCreateGroup({ value, fee, memo }) {
|
|
198
198
|
if (!signer) {
|
|
199
|
-
throw new Error('TxClient:
|
|
199
|
+
throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.');
|
|
200
200
|
}
|
|
201
201
|
try {
|
|
202
202
|
const { address } = (await signer.getAccounts())[0];
|
|
203
203
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
204
|
-
let msg = this.
|
|
204
|
+
let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) });
|
|
205
205
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
206
206
|
}
|
|
207
207
|
catch (e) {
|
|
208
|
-
throw new Error('TxClient:
|
|
208
|
+
throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: ' + e.message);
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
|
-
async
|
|
211
|
+
async sendMsgUpdateGroupMembers({ value, fee, memo }) {
|
|
212
212
|
if (!signer) {
|
|
213
|
-
throw new Error('TxClient:
|
|
213
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.');
|
|
214
214
|
}
|
|
215
215
|
try {
|
|
216
216
|
const { address } = (await signer.getAccounts())[0];
|
|
217
217
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
218
|
-
let msg = this.
|
|
218
|
+
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) });
|
|
219
219
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
220
220
|
}
|
|
221
221
|
catch (e) {
|
|
222
|
-
throw new Error('TxClient:
|
|
222
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: ' + e.message);
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }) {
|
|
@@ -236,18 +236,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
236
236
|
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: ' + e.message);
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
|
-
async
|
|
239
|
+
async sendMsgWithdrawProposal({ value, fee, memo }) {
|
|
240
240
|
if (!signer) {
|
|
241
|
-
throw new Error('TxClient:
|
|
241
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.');
|
|
242
242
|
}
|
|
243
243
|
try {
|
|
244
244
|
const { address } = (await signer.getAccounts())[0];
|
|
245
245
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
246
|
-
let msg = this.
|
|
246
|
+
let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) });
|
|
247
247
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
248
248
|
}
|
|
249
249
|
catch (e) {
|
|
250
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: ' + e.message);
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
253
|
msgCreateGroupWithPolicy({ value }) {
|
|
@@ -258,44 +258,36 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
258
258
|
throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message);
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
|
-
|
|
262
|
-
try {
|
|
263
|
-
return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
|
|
264
|
-
}
|
|
265
|
-
catch (e) {
|
|
266
|
-
throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
|
|
267
|
-
}
|
|
268
|
-
},
|
|
269
|
-
msgUpdateGroupAdmin({ value }) {
|
|
261
|
+
msgUpdateGroupPolicyMetadata({ value }) {
|
|
270
262
|
try {
|
|
271
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
263
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial(value) };
|
|
272
264
|
}
|
|
273
265
|
catch (e) {
|
|
274
|
-
throw new Error('TxClient:
|
|
266
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message);
|
|
275
267
|
}
|
|
276
268
|
},
|
|
277
|
-
|
|
269
|
+
msgUpdateGroupMetadata({ value }) {
|
|
278
270
|
try {
|
|
279
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
271
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMetadata", value: MsgUpdateGroupMetadata.fromPartial(value) };
|
|
280
272
|
}
|
|
281
273
|
catch (e) {
|
|
282
|
-
throw new Error('TxClient:
|
|
274
|
+
throw new Error('TxClient:MsgUpdateGroupMetadata: Could not create message: ' + e.message);
|
|
283
275
|
}
|
|
284
276
|
},
|
|
285
|
-
|
|
277
|
+
msgLeaveGroup({ value }) {
|
|
286
278
|
try {
|
|
287
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
279
|
+
return { typeUrl: "/cosmos.group.v1.MsgLeaveGroup", value: MsgLeaveGroup.fromPartial(value) };
|
|
288
280
|
}
|
|
289
281
|
catch (e) {
|
|
290
|
-
throw new Error('TxClient:
|
|
282
|
+
throw new Error('TxClient:MsgLeaveGroup: Could not create message: ' + e.message);
|
|
291
283
|
}
|
|
292
284
|
},
|
|
293
|
-
|
|
285
|
+
msgCreateGroupPolicy({ value }) {
|
|
294
286
|
try {
|
|
295
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
287
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial(value) };
|
|
296
288
|
}
|
|
297
289
|
catch (e) {
|
|
298
|
-
throw new Error('TxClient:
|
|
290
|
+
throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message);
|
|
299
291
|
}
|
|
300
292
|
},
|
|
301
293
|
msgVote({ value }) {
|
|
@@ -314,36 +306,44 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
314
306
|
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message);
|
|
315
307
|
}
|
|
316
308
|
},
|
|
317
|
-
|
|
309
|
+
msgExec({ value }) {
|
|
318
310
|
try {
|
|
319
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
311
|
+
return { typeUrl: "/cosmos.group.v1.MsgExec", value: MsgExec.fromPartial(value) };
|
|
320
312
|
}
|
|
321
313
|
catch (e) {
|
|
322
|
-
throw new Error('TxClient:
|
|
314
|
+
throw new Error('TxClient:MsgExec: Could not create message: ' + e.message);
|
|
323
315
|
}
|
|
324
316
|
},
|
|
325
|
-
|
|
317
|
+
msgUpdateGroupAdmin({ value }) {
|
|
326
318
|
try {
|
|
327
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
319
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial(value) };
|
|
328
320
|
}
|
|
329
321
|
catch (e) {
|
|
330
|
-
throw new Error('TxClient:
|
|
322
|
+
throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message);
|
|
331
323
|
}
|
|
332
324
|
},
|
|
333
|
-
|
|
325
|
+
msgUpdateGroupPolicyDecisionPolicy({ value }) {
|
|
334
326
|
try {
|
|
335
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
327
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) };
|
|
336
328
|
}
|
|
337
329
|
catch (e) {
|
|
338
|
-
throw new Error('TxClient:
|
|
330
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message);
|
|
339
331
|
}
|
|
340
332
|
},
|
|
341
|
-
|
|
333
|
+
msgCreateGroup({ value }) {
|
|
342
334
|
try {
|
|
343
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
335
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial(value) };
|
|
344
336
|
}
|
|
345
337
|
catch (e) {
|
|
346
|
-
throw new Error('TxClient:
|
|
338
|
+
throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message);
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
msgUpdateGroupMembers({ value }) {
|
|
342
|
+
try {
|
|
343
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial(value) };
|
|
344
|
+
}
|
|
345
|
+
catch (e) {
|
|
346
|
+
throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message);
|
|
347
347
|
}
|
|
348
348
|
},
|
|
349
349
|
msgUpdateGroupPolicyAdmin({ value }) {
|
|
@@ -354,12 +354,12 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
354
354
|
throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message);
|
|
355
355
|
}
|
|
356
356
|
},
|
|
357
|
-
|
|
357
|
+
msgWithdrawProposal({ value }) {
|
|
358
358
|
try {
|
|
359
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
359
|
+
return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial(value) };
|
|
360
360
|
}
|
|
361
361
|
catch (e) {
|
|
362
|
-
throw new Error('TxClient:
|
|
362
|
+
throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message);
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
365
|
};
|