decentralcardgame-cardchain-client-ts 0.0.9 → 0.0.11
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 +322 -322
- package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
- package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
- package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
- 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 +22 -22
- package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
- package/client.js +7 -7
- package/client.ts +11 -10
- 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 +63 -17
- package/cosmos.distribution.v1beta1/module.ts +91 -25
- 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 +44 -19
- package/cosmos.gov.v1/module.ts +62 -27
- package/cosmos.gov.v1/registry.js +4 -2
- package/cosmos.gov.v1/registry.ts +4 -2
- 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 +98 -96
- package/cosmos.group.v1/module.ts +149 -147
- 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/events.js +65 -1
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- 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.group.v1/types.js +2 -1
- package/cosmos.group.v1/types.ts +2 -0
- 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 +34 -32
- package/cosmos.staking.v1beta1/module.ts +50 -48
- 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/module.js +19 -19
- package/cosmos.vesting.v1beta1/module.ts +29 -29
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- 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 +1 -4
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
- /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.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.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/params.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.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 → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
|
@@ -7,20 +7,20 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
11
|
-
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
12
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
13
|
-
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
14
|
-
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
15
10
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
11
|
+
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
12
|
+
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
16
13
|
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
17
|
-
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
18
14
|
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
19
|
-
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
20
15
|
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
16
|
+
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
17
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
18
|
+
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
19
|
+
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
21
20
|
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
22
|
-
import {
|
|
21
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
23
22
|
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
23
|
+
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
24
24
|
|
|
25
25
|
import { EventCreateGroup as typeEventCreateGroup} from "./types"
|
|
26
26
|
import { EventUpdateGroup as typeEventUpdateGroup} from "./types"
|
|
@@ -31,6 +31,7 @@ import { EventWithdrawProposal as typeEventWithdrawProposal} from "./types"
|
|
|
31
31
|
import { EventVote as typeEventVote} from "./types"
|
|
32
32
|
import { EventExec as typeEventExec} from "./types"
|
|
33
33
|
import { EventLeaveGroup as typeEventLeaveGroup} from "./types"
|
|
34
|
+
import { EventProposalPruned as typeEventProposalPruned} from "./types"
|
|
34
35
|
import { Member as typeMember} from "./types"
|
|
35
36
|
import { MemberRequest as typeMemberRequest} from "./types"
|
|
36
37
|
import { ThresholdDecisionPolicy as typeThresholdDecisionPolicy} from "./types"
|
|
@@ -43,58 +44,52 @@ import { Proposal as typeProposal} from "./types"
|
|
|
43
44
|
import { TallyResult as typeTallyResult} from "./types"
|
|
44
45
|
import { Vote as typeVote} from "./types"
|
|
45
46
|
|
|
46
|
-
export {
|
|
47
|
+
export { MsgSubmitProposal, MsgVote, MsgUpdateGroupMembers, MsgWithdrawProposal, MsgCreateGroup, MsgUpdateGroupAdmin, MsgUpdateGroupPolicyAdmin, MsgUpdateGroupPolicyDecisionPolicy, MsgUpdateGroupMetadata, MsgCreateGroupPolicy, MsgExec, MsgCreateGroupWithPolicy, MsgLeaveGroup, MsgUpdateGroupPolicyMetadata };
|
|
47
48
|
|
|
48
|
-
type
|
|
49
|
-
value:
|
|
50
|
-
fee?: StdFee,
|
|
51
|
-
memo?: string
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
type sendMsgUpdateGroupPolicyAdminParams = {
|
|
55
|
-
value: MsgUpdateGroupPolicyAdmin,
|
|
49
|
+
type sendMsgSubmitProposalParams = {
|
|
50
|
+
value: MsgSubmitProposal,
|
|
56
51
|
fee?: StdFee,
|
|
57
52
|
memo?: string
|
|
58
53
|
};
|
|
59
54
|
|
|
60
|
-
type
|
|
61
|
-
value:
|
|
55
|
+
type sendMsgVoteParams = {
|
|
56
|
+
value: MsgVote,
|
|
62
57
|
fee?: StdFee,
|
|
63
58
|
memo?: string
|
|
64
59
|
};
|
|
65
60
|
|
|
66
|
-
type
|
|
67
|
-
value:
|
|
61
|
+
type sendMsgUpdateGroupMembersParams = {
|
|
62
|
+
value: MsgUpdateGroupMembers,
|
|
68
63
|
fee?: StdFee,
|
|
69
64
|
memo?: string
|
|
70
65
|
};
|
|
71
66
|
|
|
72
|
-
type
|
|
73
|
-
value:
|
|
67
|
+
type sendMsgWithdrawProposalParams = {
|
|
68
|
+
value: MsgWithdrawProposal,
|
|
74
69
|
fee?: StdFee,
|
|
75
70
|
memo?: string
|
|
76
71
|
};
|
|
77
72
|
|
|
78
|
-
type
|
|
79
|
-
value:
|
|
73
|
+
type sendMsgCreateGroupParams = {
|
|
74
|
+
value: MsgCreateGroup,
|
|
80
75
|
fee?: StdFee,
|
|
81
76
|
memo?: string
|
|
82
77
|
};
|
|
83
78
|
|
|
84
|
-
type
|
|
85
|
-
value:
|
|
79
|
+
type sendMsgUpdateGroupAdminParams = {
|
|
80
|
+
value: MsgUpdateGroupAdmin,
|
|
86
81
|
fee?: StdFee,
|
|
87
82
|
memo?: string
|
|
88
83
|
};
|
|
89
84
|
|
|
90
|
-
type
|
|
91
|
-
value:
|
|
85
|
+
type sendMsgUpdateGroupPolicyAdminParams = {
|
|
86
|
+
value: MsgUpdateGroupPolicyAdmin,
|
|
92
87
|
fee?: StdFee,
|
|
93
88
|
memo?: string
|
|
94
89
|
};
|
|
95
90
|
|
|
96
|
-
type
|
|
97
|
-
value:
|
|
91
|
+
type sendMsgUpdateGroupPolicyDecisionPolicyParams = {
|
|
92
|
+
value: MsgUpdateGroupPolicyDecisionPolicy,
|
|
98
93
|
fee?: StdFee,
|
|
99
94
|
memo?: string
|
|
100
95
|
};
|
|
@@ -105,8 +100,8 @@ type sendMsgUpdateGroupMetadataParams = {
|
|
|
105
100
|
memo?: string
|
|
106
101
|
};
|
|
107
102
|
|
|
108
|
-
type
|
|
109
|
-
value:
|
|
103
|
+
type sendMsgCreateGroupPolicyParams = {
|
|
104
|
+
value: MsgCreateGroupPolicy,
|
|
110
105
|
fee?: StdFee,
|
|
111
106
|
memo?: string
|
|
112
107
|
};
|
|
@@ -117,8 +112,8 @@ type sendMsgExecParams = {
|
|
|
117
112
|
memo?: string
|
|
118
113
|
};
|
|
119
114
|
|
|
120
|
-
type
|
|
121
|
-
value:
|
|
115
|
+
type sendMsgCreateGroupWithPolicyParams = {
|
|
116
|
+
value: MsgCreateGroupWithPolicy,
|
|
122
117
|
fee?: StdFee,
|
|
123
118
|
memo?: string
|
|
124
119
|
};
|
|
@@ -129,63 +124,69 @@ type sendMsgLeaveGroupParams = {
|
|
|
129
124
|
memo?: string
|
|
130
125
|
};
|
|
131
126
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
127
|
+
type sendMsgUpdateGroupPolicyMetadataParams = {
|
|
128
|
+
value: MsgUpdateGroupPolicyMetadata,
|
|
129
|
+
fee?: StdFee,
|
|
130
|
+
memo?: string
|
|
135
131
|
};
|
|
136
132
|
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
|
|
134
|
+
type msgSubmitProposalParams = {
|
|
135
|
+
value: MsgSubmitProposal,
|
|
139
136
|
};
|
|
140
137
|
|
|
141
|
-
type
|
|
142
|
-
value:
|
|
138
|
+
type msgVoteParams = {
|
|
139
|
+
value: MsgVote,
|
|
143
140
|
};
|
|
144
141
|
|
|
145
|
-
type
|
|
146
|
-
value:
|
|
142
|
+
type msgUpdateGroupMembersParams = {
|
|
143
|
+
value: MsgUpdateGroupMembers,
|
|
147
144
|
};
|
|
148
145
|
|
|
149
|
-
type
|
|
150
|
-
value:
|
|
146
|
+
type msgWithdrawProposalParams = {
|
|
147
|
+
value: MsgWithdrawProposal,
|
|
151
148
|
};
|
|
152
149
|
|
|
153
|
-
type
|
|
154
|
-
value:
|
|
150
|
+
type msgCreateGroupParams = {
|
|
151
|
+
value: MsgCreateGroup,
|
|
155
152
|
};
|
|
156
153
|
|
|
157
|
-
type
|
|
158
|
-
value:
|
|
154
|
+
type msgUpdateGroupAdminParams = {
|
|
155
|
+
value: MsgUpdateGroupAdmin,
|
|
159
156
|
};
|
|
160
157
|
|
|
161
|
-
type
|
|
162
|
-
value:
|
|
158
|
+
type msgUpdateGroupPolicyAdminParams = {
|
|
159
|
+
value: MsgUpdateGroupPolicyAdmin,
|
|
163
160
|
};
|
|
164
161
|
|
|
165
|
-
type
|
|
166
|
-
value:
|
|
162
|
+
type msgUpdateGroupPolicyDecisionPolicyParams = {
|
|
163
|
+
value: MsgUpdateGroupPolicyDecisionPolicy,
|
|
167
164
|
};
|
|
168
165
|
|
|
169
166
|
type msgUpdateGroupMetadataParams = {
|
|
170
167
|
value: MsgUpdateGroupMetadata,
|
|
171
168
|
};
|
|
172
169
|
|
|
173
|
-
type
|
|
174
|
-
value:
|
|
170
|
+
type msgCreateGroupPolicyParams = {
|
|
171
|
+
value: MsgCreateGroupPolicy,
|
|
175
172
|
};
|
|
176
173
|
|
|
177
174
|
type msgExecParams = {
|
|
178
175
|
value: MsgExec,
|
|
179
176
|
};
|
|
180
177
|
|
|
181
|
-
type
|
|
182
|
-
value:
|
|
178
|
+
type msgCreateGroupWithPolicyParams = {
|
|
179
|
+
value: MsgCreateGroupWithPolicy,
|
|
183
180
|
};
|
|
184
181
|
|
|
185
182
|
type msgLeaveGroupParams = {
|
|
186
183
|
value: MsgLeaveGroup,
|
|
187
184
|
};
|
|
188
185
|
|
|
186
|
+
type msgUpdateGroupPolicyMetadataParams = {
|
|
187
|
+
value: MsgUpdateGroupPolicyMetadata,
|
|
188
|
+
};
|
|
189
|
+
|
|
189
190
|
|
|
190
191
|
export const registry = new Registry(msgTypes);
|
|
191
192
|
|
|
@@ -216,129 +217,115 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
216
217
|
|
|
217
218
|
return {
|
|
218
219
|
|
|
219
|
-
async
|
|
220
|
-
if (!signer) {
|
|
221
|
-
throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.')
|
|
222
|
-
}
|
|
223
|
-
try {
|
|
224
|
-
const { address } = (await signer.getAccounts())[0];
|
|
225
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
226
|
-
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) })
|
|
227
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
228
|
-
} catch (e: any) {
|
|
229
|
-
throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message)
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise<DeliverTxResponse> {
|
|
220
|
+
async sendMsgSubmitProposal({ value, fee, memo }: sendMsgSubmitProposalParams): Promise<DeliverTxResponse> {
|
|
234
221
|
if (!signer) {
|
|
235
|
-
throw new Error('TxClient:
|
|
222
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Unable to sign Tx. Signer is not present.')
|
|
236
223
|
}
|
|
237
224
|
try {
|
|
238
225
|
const { address } = (await signer.getAccounts())[0];
|
|
239
226
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
240
|
-
let msg = this.
|
|
227
|
+
let msg = this.msgSubmitProposal({ value: MsgSubmitProposal.fromPartial(value) })
|
|
241
228
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
242
229
|
} catch (e: any) {
|
|
243
|
-
throw new Error('TxClient:
|
|
230
|
+
throw new Error('TxClient:sendMsgSubmitProposal: Could not broadcast Tx: '+ e.message)
|
|
244
231
|
}
|
|
245
232
|
},
|
|
246
233
|
|
|
247
|
-
async
|
|
234
|
+
async sendMsgVote({ value, fee, memo }: sendMsgVoteParams): Promise<DeliverTxResponse> {
|
|
248
235
|
if (!signer) {
|
|
249
|
-
throw new Error('TxClient:
|
|
236
|
+
throw new Error('TxClient:sendMsgVote: Unable to sign Tx. Signer is not present.')
|
|
250
237
|
}
|
|
251
238
|
try {
|
|
252
239
|
const { address } = (await signer.getAccounts())[0];
|
|
253
240
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
254
|
-
let msg = this.
|
|
241
|
+
let msg = this.msgVote({ value: MsgVote.fromPartial(value) })
|
|
255
242
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
256
243
|
} catch (e: any) {
|
|
257
|
-
throw new Error('TxClient:
|
|
244
|
+
throw new Error('TxClient:sendMsgVote: Could not broadcast Tx: '+ e.message)
|
|
258
245
|
}
|
|
259
246
|
},
|
|
260
247
|
|
|
261
|
-
async
|
|
248
|
+
async sendMsgUpdateGroupMembers({ value, fee, memo }: sendMsgUpdateGroupMembersParams): Promise<DeliverTxResponse> {
|
|
262
249
|
if (!signer) {
|
|
263
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Unable to sign Tx. Signer is not present.')
|
|
264
251
|
}
|
|
265
252
|
try {
|
|
266
253
|
const { address } = (await signer.getAccounts())[0];
|
|
267
254
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
268
|
-
let msg = this.
|
|
255
|
+
let msg = this.msgUpdateGroupMembers({ value: MsgUpdateGroupMembers.fromPartial(value) })
|
|
269
256
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
270
257
|
} catch (e: any) {
|
|
271
|
-
throw new Error('TxClient:
|
|
258
|
+
throw new Error('TxClient:sendMsgUpdateGroupMembers: Could not broadcast Tx: '+ e.message)
|
|
272
259
|
}
|
|
273
260
|
},
|
|
274
261
|
|
|
275
|
-
async
|
|
262
|
+
async sendMsgWithdrawProposal({ value, fee, memo }: sendMsgWithdrawProposalParams): Promise<DeliverTxResponse> {
|
|
276
263
|
if (!signer) {
|
|
277
|
-
throw new Error('TxClient:
|
|
264
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Unable to sign Tx. Signer is not present.')
|
|
278
265
|
}
|
|
279
266
|
try {
|
|
280
267
|
const { address } = (await signer.getAccounts())[0];
|
|
281
268
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
282
|
-
let msg = this.
|
|
269
|
+
let msg = this.msgWithdrawProposal({ value: MsgWithdrawProposal.fromPartial(value) })
|
|
283
270
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
284
271
|
} catch (e: any) {
|
|
285
|
-
throw new Error('TxClient:
|
|
272
|
+
throw new Error('TxClient:sendMsgWithdrawProposal: Could not broadcast Tx: '+ e.message)
|
|
286
273
|
}
|
|
287
274
|
},
|
|
288
275
|
|
|
289
|
-
async
|
|
276
|
+
async sendMsgCreateGroup({ value, fee, memo }: sendMsgCreateGroupParams): Promise<DeliverTxResponse> {
|
|
290
277
|
if (!signer) {
|
|
291
|
-
throw new Error('TxClient:
|
|
278
|
+
throw new Error('TxClient:sendMsgCreateGroup: Unable to sign Tx. Signer is not present.')
|
|
292
279
|
}
|
|
293
280
|
try {
|
|
294
281
|
const { address } = (await signer.getAccounts())[0];
|
|
295
282
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
296
|
-
let msg = this.
|
|
283
|
+
let msg = this.msgCreateGroup({ value: MsgCreateGroup.fromPartial(value) })
|
|
297
284
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
298
285
|
} catch (e: any) {
|
|
299
|
-
throw new Error('TxClient:
|
|
286
|
+
throw new Error('TxClient:sendMsgCreateGroup: Could not broadcast Tx: '+ e.message)
|
|
300
287
|
}
|
|
301
288
|
},
|
|
302
289
|
|
|
303
|
-
async
|
|
290
|
+
async sendMsgUpdateGroupAdmin({ value, fee, memo }: sendMsgUpdateGroupAdminParams): Promise<DeliverTxResponse> {
|
|
304
291
|
if (!signer) {
|
|
305
|
-
throw new Error('TxClient:
|
|
292
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Unable to sign Tx. Signer is not present.')
|
|
306
293
|
}
|
|
307
294
|
try {
|
|
308
295
|
const { address } = (await signer.getAccounts())[0];
|
|
309
296
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
310
|
-
let msg = this.
|
|
297
|
+
let msg = this.msgUpdateGroupAdmin({ value: MsgUpdateGroupAdmin.fromPartial(value) })
|
|
311
298
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
312
299
|
} catch (e: any) {
|
|
313
|
-
throw new Error('TxClient:
|
|
300
|
+
throw new Error('TxClient:sendMsgUpdateGroupAdmin: Could not broadcast Tx: '+ e.message)
|
|
314
301
|
}
|
|
315
302
|
},
|
|
316
303
|
|
|
317
|
-
async
|
|
304
|
+
async sendMsgUpdateGroupPolicyAdmin({ value, fee, memo }: sendMsgUpdateGroupPolicyAdminParams): Promise<DeliverTxResponse> {
|
|
318
305
|
if (!signer) {
|
|
319
|
-
throw new Error('TxClient:
|
|
306
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Unable to sign Tx. Signer is not present.')
|
|
320
307
|
}
|
|
321
308
|
try {
|
|
322
309
|
const { address } = (await signer.getAccounts())[0];
|
|
323
310
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
324
|
-
let msg = this.
|
|
311
|
+
let msg = this.msgUpdateGroupPolicyAdmin({ value: MsgUpdateGroupPolicyAdmin.fromPartial(value) })
|
|
325
312
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
326
313
|
} catch (e: any) {
|
|
327
|
-
throw new Error('TxClient:
|
|
314
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyAdmin: Could not broadcast Tx: '+ e.message)
|
|
328
315
|
}
|
|
329
316
|
},
|
|
330
317
|
|
|
331
|
-
async
|
|
318
|
+
async sendMsgUpdateGroupPolicyDecisionPolicy({ value, fee, memo }: sendMsgUpdateGroupPolicyDecisionPolicyParams): Promise<DeliverTxResponse> {
|
|
332
319
|
if (!signer) {
|
|
333
|
-
throw new Error('TxClient:
|
|
320
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Unable to sign Tx. Signer is not present.')
|
|
334
321
|
}
|
|
335
322
|
try {
|
|
336
323
|
const { address } = (await signer.getAccounts())[0];
|
|
337
324
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
338
|
-
let msg = this.
|
|
325
|
+
let msg = this.msgUpdateGroupPolicyDecisionPolicy({ value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial(value) })
|
|
339
326
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
340
327
|
} catch (e: any) {
|
|
341
|
-
throw new Error('TxClient:
|
|
328
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyDecisionPolicy: Could not broadcast Tx: '+ e.message)
|
|
342
329
|
}
|
|
343
330
|
},
|
|
344
331
|
|
|
@@ -356,17 +343,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
356
343
|
}
|
|
357
344
|
},
|
|
358
345
|
|
|
359
|
-
async
|
|
346
|
+
async sendMsgCreateGroupPolicy({ value, fee, memo }: sendMsgCreateGroupPolicyParams): Promise<DeliverTxResponse> {
|
|
360
347
|
if (!signer) {
|
|
361
|
-
throw new Error('TxClient:
|
|
348
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Unable to sign Tx. Signer is not present.')
|
|
362
349
|
}
|
|
363
350
|
try {
|
|
364
351
|
const { address } = (await signer.getAccounts())[0];
|
|
365
352
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
366
|
-
let msg = this.
|
|
353
|
+
let msg = this.msgCreateGroupPolicy({ value: MsgCreateGroupPolicy.fromPartial(value) })
|
|
367
354
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
368
355
|
} catch (e: any) {
|
|
369
|
-
throw new Error('TxClient:
|
|
356
|
+
throw new Error('TxClient:sendMsgCreateGroupPolicy: Could not broadcast Tx: '+ e.message)
|
|
370
357
|
}
|
|
371
358
|
},
|
|
372
359
|
|
|
@@ -384,17 +371,17 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
384
371
|
}
|
|
385
372
|
},
|
|
386
373
|
|
|
387
|
-
async
|
|
374
|
+
async sendMsgCreateGroupWithPolicy({ value, fee, memo }: sendMsgCreateGroupWithPolicyParams): Promise<DeliverTxResponse> {
|
|
388
375
|
if (!signer) {
|
|
389
|
-
throw new Error('TxClient:
|
|
376
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Unable to sign Tx. Signer is not present.')
|
|
390
377
|
}
|
|
391
378
|
try {
|
|
392
379
|
const { address } = (await signer.getAccounts())[0];
|
|
393
380
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
394
|
-
let msg = this.
|
|
381
|
+
let msg = this.msgCreateGroupWithPolicy({ value: MsgCreateGroupWithPolicy.fromPartial(value) })
|
|
395
382
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
396
383
|
} catch (e: any) {
|
|
397
|
-
throw new Error('TxClient:
|
|
384
|
+
throw new Error('TxClient:sendMsgCreateGroupWithPolicy: Could not broadcast Tx: '+ e.message)
|
|
398
385
|
}
|
|
399
386
|
},
|
|
400
387
|
|
|
@@ -412,76 +399,82 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
412
399
|
}
|
|
413
400
|
},
|
|
414
401
|
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
402
|
+
async sendMsgUpdateGroupPolicyMetadata({ value, fee, memo }: sendMsgUpdateGroupPolicyMetadataParams): Promise<DeliverTxResponse> {
|
|
403
|
+
if (!signer) {
|
|
404
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Unable to sign Tx. Signer is not present.')
|
|
405
|
+
}
|
|
406
|
+
try {
|
|
407
|
+
const { address } = (await signer.getAccounts())[0];
|
|
408
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
409
|
+
let msg = this.msgUpdateGroupPolicyMetadata({ value: MsgUpdateGroupPolicyMetadata.fromPartial(value) })
|
|
410
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
419
411
|
} catch (e: any) {
|
|
420
|
-
throw new Error('TxClient:
|
|
412
|
+
throw new Error('TxClient:sendMsgUpdateGroupPolicyMetadata: Could not broadcast Tx: '+ e.message)
|
|
421
413
|
}
|
|
422
414
|
},
|
|
423
415
|
|
|
424
|
-
|
|
416
|
+
|
|
417
|
+
msgSubmitProposal({ value }: msgSubmitProposalParams): EncodeObject {
|
|
425
418
|
try {
|
|
426
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
419
|
+
return { typeUrl: "/cosmos.group.v1.MsgSubmitProposal", value: MsgSubmitProposal.fromPartial( value ) }
|
|
427
420
|
} catch (e: any) {
|
|
428
|
-
throw new Error('TxClient:
|
|
421
|
+
throw new Error('TxClient:MsgSubmitProposal: Could not create message: ' + e.message)
|
|
429
422
|
}
|
|
430
423
|
},
|
|
431
424
|
|
|
432
|
-
|
|
425
|
+
msgVote({ value }: msgVoteParams): EncodeObject {
|
|
433
426
|
try {
|
|
434
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
427
|
+
return { typeUrl: "/cosmos.group.v1.MsgVote", value: MsgVote.fromPartial( value ) }
|
|
435
428
|
} catch (e: any) {
|
|
436
|
-
throw new Error('TxClient:
|
|
429
|
+
throw new Error('TxClient:MsgVote: Could not create message: ' + e.message)
|
|
437
430
|
}
|
|
438
431
|
},
|
|
439
432
|
|
|
440
|
-
|
|
433
|
+
msgUpdateGroupMembers({ value }: msgUpdateGroupMembersParams): EncodeObject {
|
|
441
434
|
try {
|
|
442
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
435
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupMembers", value: MsgUpdateGroupMembers.fromPartial( value ) }
|
|
443
436
|
} catch (e: any) {
|
|
444
|
-
throw new Error('TxClient:
|
|
437
|
+
throw new Error('TxClient:MsgUpdateGroupMembers: Could not create message: ' + e.message)
|
|
445
438
|
}
|
|
446
439
|
},
|
|
447
440
|
|
|
448
|
-
|
|
441
|
+
msgWithdrawProposal({ value }: msgWithdrawProposalParams): EncodeObject {
|
|
449
442
|
try {
|
|
450
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
443
|
+
return { typeUrl: "/cosmos.group.v1.MsgWithdrawProposal", value: MsgWithdrawProposal.fromPartial( value ) }
|
|
451
444
|
} catch (e: any) {
|
|
452
|
-
throw new Error('TxClient:
|
|
445
|
+
throw new Error('TxClient:MsgWithdrawProposal: Could not create message: ' + e.message)
|
|
453
446
|
}
|
|
454
447
|
},
|
|
455
448
|
|
|
456
|
-
|
|
449
|
+
msgCreateGroup({ value }: msgCreateGroupParams): EncodeObject {
|
|
457
450
|
try {
|
|
458
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
451
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroup", value: MsgCreateGroup.fromPartial( value ) }
|
|
459
452
|
} catch (e: any) {
|
|
460
|
-
throw new Error('TxClient:
|
|
453
|
+
throw new Error('TxClient:MsgCreateGroup: Could not create message: ' + e.message)
|
|
461
454
|
}
|
|
462
455
|
},
|
|
463
456
|
|
|
464
|
-
|
|
457
|
+
msgUpdateGroupAdmin({ value }: msgUpdateGroupAdminParams): EncodeObject {
|
|
465
458
|
try {
|
|
466
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
459
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupAdmin", value: MsgUpdateGroupAdmin.fromPartial( value ) }
|
|
467
460
|
} catch (e: any) {
|
|
468
|
-
throw new Error('TxClient:
|
|
461
|
+
throw new Error('TxClient:MsgUpdateGroupAdmin: Could not create message: ' + e.message)
|
|
469
462
|
}
|
|
470
463
|
},
|
|
471
464
|
|
|
472
|
-
|
|
465
|
+
msgUpdateGroupPolicyAdmin({ value }: msgUpdateGroupPolicyAdminParams): EncodeObject {
|
|
473
466
|
try {
|
|
474
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
467
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", value: MsgUpdateGroupPolicyAdmin.fromPartial( value ) }
|
|
475
468
|
} catch (e: any) {
|
|
476
|
-
throw new Error('TxClient:
|
|
469
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyAdmin: Could not create message: ' + e.message)
|
|
477
470
|
}
|
|
478
471
|
},
|
|
479
472
|
|
|
480
|
-
|
|
473
|
+
msgUpdateGroupPolicyDecisionPolicy({ value }: msgUpdateGroupPolicyDecisionPolicyParams): EncodeObject {
|
|
481
474
|
try {
|
|
482
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
475
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", value: MsgUpdateGroupPolicyDecisionPolicy.fromPartial( value ) }
|
|
483
476
|
} catch (e: any) {
|
|
484
|
-
throw new Error('TxClient:
|
|
477
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyDecisionPolicy: Could not create message: ' + e.message)
|
|
485
478
|
}
|
|
486
479
|
},
|
|
487
480
|
|
|
@@ -493,11 +486,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
493
486
|
}
|
|
494
487
|
},
|
|
495
488
|
|
|
496
|
-
|
|
489
|
+
msgCreateGroupPolicy({ value }: msgCreateGroupPolicyParams): EncodeObject {
|
|
497
490
|
try {
|
|
498
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
491
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupPolicy", value: MsgCreateGroupPolicy.fromPartial( value ) }
|
|
499
492
|
} catch (e: any) {
|
|
500
|
-
throw new Error('TxClient:
|
|
493
|
+
throw new Error('TxClient:MsgCreateGroupPolicy: Could not create message: ' + e.message)
|
|
501
494
|
}
|
|
502
495
|
},
|
|
503
496
|
|
|
@@ -509,11 +502,11 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
509
502
|
}
|
|
510
503
|
},
|
|
511
504
|
|
|
512
|
-
|
|
505
|
+
msgCreateGroupWithPolicy({ value }: msgCreateGroupWithPolicyParams): EncodeObject {
|
|
513
506
|
try {
|
|
514
|
-
return { typeUrl: "/cosmos.group.v1.
|
|
507
|
+
return { typeUrl: "/cosmos.group.v1.MsgCreateGroupWithPolicy", value: MsgCreateGroupWithPolicy.fromPartial( value ) }
|
|
515
508
|
} catch (e: any) {
|
|
516
|
-
throw new Error('TxClient:
|
|
509
|
+
throw new Error('TxClient:MsgCreateGroupWithPolicy: Could not create message: ' + e.message)
|
|
517
510
|
}
|
|
518
511
|
},
|
|
519
512
|
|
|
@@ -525,6 +518,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
525
518
|
}
|
|
526
519
|
},
|
|
527
520
|
|
|
521
|
+
msgUpdateGroupPolicyMetadata({ value }: msgUpdateGroupPolicyMetadataParams): EncodeObject {
|
|
522
|
+
try {
|
|
523
|
+
return { typeUrl: "/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", value: MsgUpdateGroupPolicyMetadata.fromPartial( value ) }
|
|
524
|
+
} catch (e: any) {
|
|
525
|
+
throw new Error('TxClient:MsgUpdateGroupPolicyMetadata: Could not create message: ' + e.message)
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
|
|
528
529
|
}
|
|
529
530
|
};
|
|
530
531
|
|
|
@@ -556,6 +557,7 @@ class SDKModule {
|
|
|
556
557
|
EventVote: getStructure(typeEventVote.fromPartial({})),
|
|
557
558
|
EventExec: getStructure(typeEventExec.fromPartial({})),
|
|
558
559
|
EventLeaveGroup: getStructure(typeEventLeaveGroup.fromPartial({})),
|
|
560
|
+
EventProposalPruned: getStructure(typeEventProposalPruned.fromPartial({})),
|
|
559
561
|
Member: getStructure(typeMember.fromPartial({})),
|
|
560
562
|
MemberRequest: getStructure(typeMemberRequest.fromPartial({})),
|
|
561
563
|
ThresholdDecisionPolicy: getStructure(typeThresholdDecisionPolicy.fromPartial({})),
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
2
|
-
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
3
|
-
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
4
|
-
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
5
|
-
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
6
1
|
import { MsgSubmitProposal } from "./types/cosmos/group/v1/tx";
|
|
2
|
+
import { MsgVote } from "./types/cosmos/group/v1/tx";
|
|
3
|
+
import { MsgUpdateGroupMembers } from "./types/cosmos/group/v1/tx";
|
|
7
4
|
import { MsgWithdrawProposal } from "./types/cosmos/group/v1/tx";
|
|
8
|
-
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
9
5
|
import { MsgCreateGroup } from "./types/cosmos/group/v1/tx";
|
|
10
|
-
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
11
6
|
import { MsgUpdateGroupAdmin } from "./types/cosmos/group/v1/tx";
|
|
7
|
+
import { MsgUpdateGroupPolicyAdmin } from "./types/cosmos/group/v1/tx";
|
|
8
|
+
import { MsgUpdateGroupPolicyDecisionPolicy } from "./types/cosmos/group/v1/tx";
|
|
9
|
+
import { MsgUpdateGroupMetadata } from "./types/cosmos/group/v1/tx";
|
|
10
|
+
import { MsgCreateGroupPolicy } from "./types/cosmos/group/v1/tx";
|
|
12
11
|
import { MsgExec } from "./types/cosmos/group/v1/tx";
|
|
13
|
-
import {
|
|
12
|
+
import { MsgCreateGroupWithPolicy } from "./types/cosmos/group/v1/tx";
|
|
14
13
|
import { MsgLeaveGroup } from "./types/cosmos/group/v1/tx";
|
|
14
|
+
import { MsgUpdateGroupPolicyMetadata } from "./types/cosmos/group/v1/tx";
|
|
15
15
|
const msgTypes = [
|
|
16
|
-
["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers],
|
|
17
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
18
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
19
|
-
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
20
|
-
["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
|
|
21
16
|
["/cosmos.group.v1.MsgSubmitProposal", MsgSubmitProposal],
|
|
17
|
+
["/cosmos.group.v1.MsgVote", MsgVote],
|
|
18
|
+
["/cosmos.group.v1.MsgUpdateGroupMembers", MsgUpdateGroupMembers],
|
|
22
19
|
["/cosmos.group.v1.MsgWithdrawProposal", MsgWithdrawProposal],
|
|
23
|
-
["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
|
|
24
20
|
["/cosmos.group.v1.MsgCreateGroup", MsgCreateGroup],
|
|
25
|
-
["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
|
|
26
21
|
["/cosmos.group.v1.MsgUpdateGroupAdmin", MsgUpdateGroupAdmin],
|
|
22
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyAdmin", MsgUpdateGroupPolicyAdmin],
|
|
23
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyDecisionPolicy", MsgUpdateGroupPolicyDecisionPolicy],
|
|
24
|
+
["/cosmos.group.v1.MsgUpdateGroupMetadata", MsgUpdateGroupMetadata],
|
|
25
|
+
["/cosmos.group.v1.MsgCreateGroupPolicy", MsgCreateGroupPolicy],
|
|
27
26
|
["/cosmos.group.v1.MsgExec", MsgExec],
|
|
28
|
-
["/cosmos.group.v1.
|
|
27
|
+
["/cosmos.group.v1.MsgCreateGroupWithPolicy", MsgCreateGroupWithPolicy],
|
|
29
28
|
["/cosmos.group.v1.MsgLeaveGroup", MsgLeaveGroup],
|
|
29
|
+
["/cosmos.group.v1.MsgUpdateGroupPolicyMetadata", MsgUpdateGroupPolicyMetadata],
|
|
30
30
|
];
|
|
31
31
|
export { msgTypes };
|