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