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
|
@@ -3,47 +3,47 @@ import { SigningStargateClient } from "@cosmjs/stargate";
|
|
|
3
3
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
6
|
+
import { MsgBuyCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
7
|
+
import { MsgVoteCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
8
|
+
import { MsgRemoveCardFromCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
9
|
+
import { MsgSetCollectionStoryWriter } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
10
|
+
import { MsgReportMatch } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
11
|
+
import { MsgMultiVoteCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
12
|
+
import { MsgSetProfileCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
13
|
+
import { MsgSaveCardContent } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgConfirmMatch } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgTransferBoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
16
|
+
import { MsgRemoveSellOffer } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
17
|
+
import { MsgApointMatchReporter } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
18
|
+
import { MsgCreateCouncil } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
19
|
+
import { MsgRestartCouncil } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
20
|
+
import { MsgAddArtworkToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
21
|
+
import { MsgOpenBoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgCreateSellOffer } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgFinalizeCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgSubmitMatchReporterProposal } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
25
|
+
import { MsgSubmitCopyrightProposal } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
26
|
+
import { MsgCreateuser } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
27
|
+
import { MsgRevealCouncilResponse } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
28
|
+
import { MsgAddCardToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
29
|
+
import { MsgSetUserWebsite } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
30
|
+
import { MsgCommitCouncilResponse } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
31
|
+
import { MsgAddContributorToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
32
|
+
import { MsgRemoveContributorFromCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
33
|
+
import { MsgAddArtwork } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
34
|
+
import { MsgTransferCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
35
|
+
import { MsgSetCollectionArtist } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
36
|
+
import { MsgSetCardRarity } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
37
|
+
import { MsgAddStoryToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
38
|
+
import { MsgSetUserBiography } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
39
|
+
import { MsgChangeArtist } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
40
|
+
import { MsgRegisterForCouncil } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
41
|
+
import { MsgBuyCardScheme } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
42
|
+
import { MsgBuyCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
43
|
+
import { MsgRewokeCouncilRegistration } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
44
|
+
import { MsgDonateToCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
45
|
+
import { MsgCreateCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
46
|
+
import { MsgSubmitCollectionProposal } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
47
47
|
import { Card as typeCard } from "./types";
|
|
48
48
|
import { TimeStamp as typeTimeStamp } from "./types";
|
|
49
49
|
import { Collection as typeCollection } from "./types";
|
|
@@ -66,7 +66,7 @@ import { AirDrops as typeAirDrops } from "./types";
|
|
|
66
66
|
import { VoteRight as typeVoteRight } from "./types";
|
|
67
67
|
import { VotingResult as typeVotingResult } from "./types";
|
|
68
68
|
import { VotingResults as typeVotingResults } from "./types";
|
|
69
|
-
export {
|
|
69
|
+
export { MsgBuyCard, MsgVoteCard, MsgRemoveCardFromCollection, MsgSetCollectionStoryWriter, MsgReportMatch, MsgMultiVoteCard, MsgSetProfileCard, MsgSaveCardContent, MsgConfirmMatch, MsgTransferBoosterPack, MsgRemoveSellOffer, MsgApointMatchReporter, MsgCreateCouncil, MsgRestartCouncil, MsgAddArtworkToCollection, MsgOpenBoosterPack, MsgCreateSellOffer, MsgFinalizeCollection, MsgSubmitMatchReporterProposal, MsgSubmitCopyrightProposal, MsgCreateuser, MsgRevealCouncilResponse, MsgAddCardToCollection, MsgSetUserWebsite, MsgCommitCouncilResponse, MsgAddContributorToCollection, MsgRemoveContributorFromCollection, MsgAddArtwork, MsgTransferCard, MsgSetCollectionArtist, MsgSetCardRarity, MsgAddStoryToCollection, MsgSetUserBiography, MsgChangeArtist, MsgRegisterForCouncil, MsgBuyCardScheme, MsgBuyCollection, MsgRewokeCouncilRegistration, MsgDonateToCard, MsgCreateCollection, MsgSubmitCollectionProposal };
|
|
70
70
|
export const registry = new Registry(msgTypes);
|
|
71
71
|
function getStructure(template) {
|
|
72
72
|
const structure = { fields: [] };
|
|
@@ -82,326 +82,326 @@ const defaultFee = {
|
|
|
82
82
|
};
|
|
83
83
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
84
84
|
return {
|
|
85
|
-
async
|
|
85
|
+
async sendMsgBuyCard({ value, fee, memo }) {
|
|
86
86
|
if (!signer) {
|
|
87
|
-
throw new Error('TxClient:
|
|
87
|
+
throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.');
|
|
88
88
|
}
|
|
89
89
|
try {
|
|
90
90
|
const { address } = (await signer.getAccounts())[0];
|
|
91
91
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
92
|
-
let msg = this.
|
|
92
|
+
let msg = this.msgBuyCard({ value: MsgBuyCard.fromPartial(value) });
|
|
93
93
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
94
94
|
}
|
|
95
95
|
catch (e) {
|
|
96
|
-
throw new Error('TxClient:
|
|
96
|
+
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: ' + e.message);
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
-
async
|
|
99
|
+
async sendMsgVoteCard({ value, fee, memo }) {
|
|
100
100
|
if (!signer) {
|
|
101
|
-
throw new Error('TxClient:
|
|
101
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.');
|
|
102
102
|
}
|
|
103
103
|
try {
|
|
104
104
|
const { address } = (await signer.getAccounts())[0];
|
|
105
105
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
106
|
-
let msg = this.
|
|
106
|
+
let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) });
|
|
107
107
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
108
108
|
}
|
|
109
109
|
catch (e) {
|
|
110
|
-
throw new Error('TxClient:
|
|
110
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: ' + e.message);
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
async
|
|
113
|
+
async sendMsgRemoveCardFromCollection({ value, fee, memo }) {
|
|
114
114
|
if (!signer) {
|
|
115
|
-
throw new Error('TxClient:
|
|
115
|
+
throw new Error('TxClient:sendMsgRemoveCardFromCollection: Unable to sign Tx. Signer is not present.');
|
|
116
116
|
}
|
|
117
117
|
try {
|
|
118
118
|
const { address } = (await signer.getAccounts())[0];
|
|
119
119
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
120
|
-
let msg = this.
|
|
120
|
+
let msg = this.msgRemoveCardFromCollection({ value: MsgRemoveCardFromCollection.fromPartial(value) });
|
|
121
121
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
122
122
|
}
|
|
123
123
|
catch (e) {
|
|
124
|
-
throw new Error('TxClient:
|
|
124
|
+
throw new Error('TxClient:sendMsgRemoveCardFromCollection: Could not broadcast Tx: ' + e.message);
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
async
|
|
127
|
+
async sendMsgSetCollectionStoryWriter({ value, fee, memo }) {
|
|
128
128
|
if (!signer) {
|
|
129
|
-
throw new Error('TxClient:
|
|
129
|
+
throw new Error('TxClient:sendMsgSetCollectionStoryWriter: Unable to sign Tx. Signer is not present.');
|
|
130
130
|
}
|
|
131
131
|
try {
|
|
132
132
|
const { address } = (await signer.getAccounts())[0];
|
|
133
133
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
134
|
-
let msg = this.
|
|
134
|
+
let msg = this.msgSetCollectionStoryWriter({ value: MsgSetCollectionStoryWriter.fromPartial(value) });
|
|
135
135
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
136
136
|
}
|
|
137
137
|
catch (e) {
|
|
138
|
-
throw new Error('TxClient:
|
|
138
|
+
throw new Error('TxClient:sendMsgSetCollectionStoryWriter: Could not broadcast Tx: ' + e.message);
|
|
139
139
|
}
|
|
140
140
|
},
|
|
141
|
-
async
|
|
141
|
+
async sendMsgReportMatch({ value, fee, memo }) {
|
|
142
142
|
if (!signer) {
|
|
143
|
-
throw new Error('TxClient:
|
|
143
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.');
|
|
144
144
|
}
|
|
145
145
|
try {
|
|
146
146
|
const { address } = (await signer.getAccounts())[0];
|
|
147
147
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
148
|
-
let msg = this.
|
|
148
|
+
let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) });
|
|
149
149
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
150
150
|
}
|
|
151
151
|
catch (e) {
|
|
152
|
-
throw new Error('TxClient:
|
|
152
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: ' + e.message);
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
-
async
|
|
155
|
+
async sendMsgMultiVoteCard({ value, fee, memo }) {
|
|
156
156
|
if (!signer) {
|
|
157
|
-
throw new Error('TxClient:
|
|
157
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.');
|
|
158
158
|
}
|
|
159
159
|
try {
|
|
160
160
|
const { address } = (await signer.getAccounts())[0];
|
|
161
161
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
162
|
-
let msg = this.
|
|
162
|
+
let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) });
|
|
163
163
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
164
164
|
}
|
|
165
165
|
catch (e) {
|
|
166
|
-
throw new Error('TxClient:
|
|
166
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: ' + e.message);
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
|
-
async
|
|
169
|
+
async sendMsgSetProfileCard({ value, fee, memo }) {
|
|
170
170
|
if (!signer) {
|
|
171
|
-
throw new Error('TxClient:
|
|
171
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.');
|
|
172
172
|
}
|
|
173
173
|
try {
|
|
174
174
|
const { address } = (await signer.getAccounts())[0];
|
|
175
175
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
176
|
-
let msg = this.
|
|
176
|
+
let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) });
|
|
177
177
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
178
178
|
}
|
|
179
179
|
catch (e) {
|
|
180
|
-
throw new Error('TxClient:
|
|
180
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: ' + e.message);
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
|
-
async
|
|
183
|
+
async sendMsgSaveCardContent({ value, fee, memo }) {
|
|
184
184
|
if (!signer) {
|
|
185
|
-
throw new Error('TxClient:
|
|
185
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.');
|
|
186
186
|
}
|
|
187
187
|
try {
|
|
188
188
|
const { address } = (await signer.getAccounts())[0];
|
|
189
189
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
190
|
-
let msg = this.
|
|
190
|
+
let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) });
|
|
191
191
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
192
192
|
}
|
|
193
193
|
catch (e) {
|
|
194
|
-
throw new Error('TxClient:
|
|
194
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: ' + e.message);
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
|
-
async
|
|
197
|
+
async sendMsgConfirmMatch({ value, fee, memo }) {
|
|
198
198
|
if (!signer) {
|
|
199
|
-
throw new Error('TxClient:
|
|
199
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.');
|
|
200
200
|
}
|
|
201
201
|
try {
|
|
202
202
|
const { address } = (await signer.getAccounts())[0];
|
|
203
203
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
204
|
-
let msg = this.
|
|
204
|
+
let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) });
|
|
205
205
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
206
206
|
}
|
|
207
207
|
catch (e) {
|
|
208
|
-
throw new Error('TxClient:
|
|
208
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: ' + e.message);
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
|
-
async
|
|
211
|
+
async sendMsgTransferBoosterPack({ value, fee, memo }) {
|
|
212
212
|
if (!signer) {
|
|
213
|
-
throw new Error('TxClient:
|
|
213
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.');
|
|
214
214
|
}
|
|
215
215
|
try {
|
|
216
216
|
const { address } = (await signer.getAccounts())[0];
|
|
217
217
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
218
|
-
let msg = this.
|
|
218
|
+
let msg = this.msgTransferBoosterPack({ value: MsgTransferBoosterPack.fromPartial(value) });
|
|
219
219
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
220
220
|
}
|
|
221
221
|
catch (e) {
|
|
222
|
-
throw new Error('TxClient:
|
|
222
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: ' + e.message);
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
|
-
async
|
|
225
|
+
async sendMsgRemoveSellOffer({ value, fee, memo }) {
|
|
226
226
|
if (!signer) {
|
|
227
|
-
throw new Error('TxClient:
|
|
227
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.');
|
|
228
228
|
}
|
|
229
229
|
try {
|
|
230
230
|
const { address } = (await signer.getAccounts())[0];
|
|
231
231
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
232
|
-
let msg = this.
|
|
232
|
+
let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) });
|
|
233
233
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
234
234
|
}
|
|
235
235
|
catch (e) {
|
|
236
|
-
throw new Error('TxClient:
|
|
236
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: ' + e.message);
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
|
-
async
|
|
239
|
+
async sendMsgApointMatchReporter({ value, fee, memo }) {
|
|
240
240
|
if (!signer) {
|
|
241
|
-
throw new Error('TxClient:
|
|
241
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.');
|
|
242
242
|
}
|
|
243
243
|
try {
|
|
244
244
|
const { address } = (await signer.getAccounts())[0];
|
|
245
245
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
246
|
-
let msg = this.
|
|
246
|
+
let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) });
|
|
247
247
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
248
248
|
}
|
|
249
249
|
catch (e) {
|
|
250
|
-
throw new Error('TxClient:
|
|
250
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: ' + e.message);
|
|
251
251
|
}
|
|
252
252
|
},
|
|
253
|
-
async
|
|
253
|
+
async sendMsgCreateCouncil({ value, fee, memo }) {
|
|
254
254
|
if (!signer) {
|
|
255
|
-
throw new Error('TxClient:
|
|
255
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.');
|
|
256
256
|
}
|
|
257
257
|
try {
|
|
258
258
|
const { address } = (await signer.getAccounts())[0];
|
|
259
259
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
260
|
-
let msg = this.
|
|
260
|
+
let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) });
|
|
261
261
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
262
262
|
}
|
|
263
263
|
catch (e) {
|
|
264
|
-
throw new Error('TxClient:
|
|
264
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: ' + e.message);
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
|
-
async
|
|
267
|
+
async sendMsgRestartCouncil({ value, fee, memo }) {
|
|
268
268
|
if (!signer) {
|
|
269
|
-
throw new Error('TxClient:
|
|
269
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.');
|
|
270
270
|
}
|
|
271
271
|
try {
|
|
272
272
|
const { address } = (await signer.getAccounts())[0];
|
|
273
273
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
274
|
-
let msg = this.
|
|
274
|
+
let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) });
|
|
275
275
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
276
276
|
}
|
|
277
277
|
catch (e) {
|
|
278
|
-
throw new Error('TxClient:
|
|
278
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: ' + e.message);
|
|
279
279
|
}
|
|
280
280
|
},
|
|
281
|
-
async
|
|
281
|
+
async sendMsgAddArtworkToCollection({ value, fee, memo }) {
|
|
282
282
|
if (!signer) {
|
|
283
|
-
throw new Error('TxClient:
|
|
283
|
+
throw new Error('TxClient:sendMsgAddArtworkToCollection: Unable to sign Tx. Signer is not present.');
|
|
284
284
|
}
|
|
285
285
|
try {
|
|
286
286
|
const { address } = (await signer.getAccounts())[0];
|
|
287
287
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
288
|
-
let msg = this.
|
|
288
|
+
let msg = this.msgAddArtworkToCollection({ value: MsgAddArtworkToCollection.fromPartial(value) });
|
|
289
289
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
290
290
|
}
|
|
291
291
|
catch (e) {
|
|
292
|
-
throw new Error('TxClient:
|
|
292
|
+
throw new Error('TxClient:sendMsgAddArtworkToCollection: Could not broadcast Tx: ' + e.message);
|
|
293
293
|
}
|
|
294
294
|
},
|
|
295
|
-
async
|
|
295
|
+
async sendMsgOpenBoosterPack({ value, fee, memo }) {
|
|
296
296
|
if (!signer) {
|
|
297
|
-
throw new Error('TxClient:
|
|
297
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.');
|
|
298
298
|
}
|
|
299
299
|
try {
|
|
300
300
|
const { address } = (await signer.getAccounts())[0];
|
|
301
301
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
302
|
-
let msg = this.
|
|
302
|
+
let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) });
|
|
303
303
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
304
304
|
}
|
|
305
305
|
catch (e) {
|
|
306
|
-
throw new Error('TxClient:
|
|
306
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: ' + e.message);
|
|
307
307
|
}
|
|
308
308
|
},
|
|
309
|
-
async
|
|
309
|
+
async sendMsgCreateSellOffer({ value, fee, memo }) {
|
|
310
310
|
if (!signer) {
|
|
311
|
-
throw new Error('TxClient:
|
|
311
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Unable to sign Tx. Signer is not present.');
|
|
312
312
|
}
|
|
313
313
|
try {
|
|
314
314
|
const { address } = (await signer.getAccounts())[0];
|
|
315
315
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
316
|
-
let msg = this.
|
|
316
|
+
let msg = this.msgCreateSellOffer({ value: MsgCreateSellOffer.fromPartial(value) });
|
|
317
317
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
318
318
|
}
|
|
319
319
|
catch (e) {
|
|
320
|
-
throw new Error('TxClient:
|
|
320
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: ' + e.message);
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
|
-
async
|
|
323
|
+
async sendMsgFinalizeCollection({ value, fee, memo }) {
|
|
324
324
|
if (!signer) {
|
|
325
|
-
throw new Error('TxClient:
|
|
325
|
+
throw new Error('TxClient:sendMsgFinalizeCollection: Unable to sign Tx. Signer is not present.');
|
|
326
326
|
}
|
|
327
327
|
try {
|
|
328
328
|
const { address } = (await signer.getAccounts())[0];
|
|
329
329
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
330
|
-
let msg = this.
|
|
330
|
+
let msg = this.msgFinalizeCollection({ value: MsgFinalizeCollection.fromPartial(value) });
|
|
331
331
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
332
332
|
}
|
|
333
333
|
catch (e) {
|
|
334
|
-
throw new Error('TxClient:
|
|
334
|
+
throw new Error('TxClient:sendMsgFinalizeCollection: Could not broadcast Tx: ' + e.message);
|
|
335
335
|
}
|
|
336
336
|
},
|
|
337
|
-
async
|
|
337
|
+
async sendMsgSubmitMatchReporterProposal({ value, fee, memo }) {
|
|
338
338
|
if (!signer) {
|
|
339
|
-
throw new Error('TxClient:
|
|
339
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Unable to sign Tx. Signer is not present.');
|
|
340
340
|
}
|
|
341
341
|
try {
|
|
342
342
|
const { address } = (await signer.getAccounts())[0];
|
|
343
343
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
344
|
-
let msg = this.
|
|
344
|
+
let msg = this.msgSubmitMatchReporterProposal({ value: MsgSubmitMatchReporterProposal.fromPartial(value) });
|
|
345
345
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
346
346
|
}
|
|
347
347
|
catch (e) {
|
|
348
|
-
throw new Error('TxClient:
|
|
348
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Could not broadcast Tx: ' + e.message);
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
|
-
async
|
|
351
|
+
async sendMsgSubmitCopyrightProposal({ value, fee, memo }) {
|
|
352
352
|
if (!signer) {
|
|
353
|
-
throw new Error('TxClient:
|
|
353
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Unable to sign Tx. Signer is not present.');
|
|
354
354
|
}
|
|
355
355
|
try {
|
|
356
356
|
const { address } = (await signer.getAccounts())[0];
|
|
357
357
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
358
|
-
let msg = this.
|
|
358
|
+
let msg = this.msgSubmitCopyrightProposal({ value: MsgSubmitCopyrightProposal.fromPartial(value) });
|
|
359
359
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
360
360
|
}
|
|
361
361
|
catch (e) {
|
|
362
|
-
throw new Error('TxClient:
|
|
362
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Could not broadcast Tx: ' + e.message);
|
|
363
363
|
}
|
|
364
364
|
},
|
|
365
|
-
async
|
|
365
|
+
async sendMsgCreateuser({ value, fee, memo }) {
|
|
366
366
|
if (!signer) {
|
|
367
|
-
throw new Error('TxClient:
|
|
367
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.');
|
|
368
368
|
}
|
|
369
369
|
try {
|
|
370
370
|
const { address } = (await signer.getAccounts())[0];
|
|
371
371
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
372
|
-
let msg = this.
|
|
372
|
+
let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) });
|
|
373
373
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
374
374
|
}
|
|
375
375
|
catch (e) {
|
|
376
|
-
throw new Error('TxClient:
|
|
376
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: ' + e.message);
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
|
-
async
|
|
379
|
+
async sendMsgRevealCouncilResponse({ value, fee, memo }) {
|
|
380
380
|
if (!signer) {
|
|
381
|
-
throw new Error('TxClient:
|
|
381
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.');
|
|
382
382
|
}
|
|
383
383
|
try {
|
|
384
384
|
const { address } = (await signer.getAccounts())[0];
|
|
385
385
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
386
|
-
let msg = this.
|
|
386
|
+
let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) });
|
|
387
387
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
388
388
|
}
|
|
389
389
|
catch (e) {
|
|
390
|
-
throw new Error('TxClient:
|
|
390
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: ' + e.message);
|
|
391
391
|
}
|
|
392
392
|
},
|
|
393
|
-
async
|
|
393
|
+
async sendMsgAddCardToCollection({ value, fee, memo }) {
|
|
394
394
|
if (!signer) {
|
|
395
|
-
throw new Error('TxClient:
|
|
395
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Unable to sign Tx. Signer is not present.');
|
|
396
396
|
}
|
|
397
397
|
try {
|
|
398
398
|
const { address } = (await signer.getAccounts())[0];
|
|
399
399
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
400
|
-
let msg = this.
|
|
400
|
+
let msg = this.msgAddCardToCollection({ value: MsgAddCardToCollection.fromPartial(value) });
|
|
401
401
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
402
402
|
}
|
|
403
403
|
catch (e) {
|
|
404
|
-
throw new Error('TxClient:
|
|
404
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Could not broadcast Tx: ' + e.message);
|
|
405
405
|
}
|
|
406
406
|
},
|
|
407
407
|
async sendMsgSetUserWebsite({ value, fee, memo }) {
|
|
@@ -418,426 +418,426 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
418
418
|
throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: ' + e.message);
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
|
-
async
|
|
421
|
+
async sendMsgCommitCouncilResponse({ value, fee, memo }) {
|
|
422
422
|
if (!signer) {
|
|
423
|
-
throw new Error('TxClient:
|
|
423
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.');
|
|
424
424
|
}
|
|
425
425
|
try {
|
|
426
426
|
const { address } = (await signer.getAccounts())[0];
|
|
427
427
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
428
|
-
let msg = this.
|
|
428
|
+
let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) });
|
|
429
429
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
430
430
|
}
|
|
431
431
|
catch (e) {
|
|
432
|
-
throw new Error('TxClient:
|
|
432
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: ' + e.message);
|
|
433
433
|
}
|
|
434
434
|
},
|
|
435
|
-
async
|
|
435
|
+
async sendMsgAddContributorToCollection({ value, fee, memo }) {
|
|
436
436
|
if (!signer) {
|
|
437
|
-
throw new Error('TxClient:
|
|
437
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Unable to sign Tx. Signer is not present.');
|
|
438
438
|
}
|
|
439
439
|
try {
|
|
440
440
|
const { address } = (await signer.getAccounts())[0];
|
|
441
441
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
442
|
-
let msg = this.
|
|
442
|
+
let msg = this.msgAddContributorToCollection({ value: MsgAddContributorToCollection.fromPartial(value) });
|
|
443
443
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
444
444
|
}
|
|
445
445
|
catch (e) {
|
|
446
|
-
throw new Error('TxClient:
|
|
446
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Could not broadcast Tx: ' + e.message);
|
|
447
447
|
}
|
|
448
448
|
},
|
|
449
|
-
async
|
|
449
|
+
async sendMsgRemoveContributorFromCollection({ value, fee, memo }) {
|
|
450
450
|
if (!signer) {
|
|
451
|
-
throw new Error('TxClient:
|
|
451
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Unable to sign Tx. Signer is not present.');
|
|
452
452
|
}
|
|
453
453
|
try {
|
|
454
454
|
const { address } = (await signer.getAccounts())[0];
|
|
455
455
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
456
|
-
let msg = this.
|
|
456
|
+
let msg = this.msgRemoveContributorFromCollection({ value: MsgRemoveContributorFromCollection.fromPartial(value) });
|
|
457
457
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
458
458
|
}
|
|
459
459
|
catch (e) {
|
|
460
|
-
throw new Error('TxClient:
|
|
460
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Could not broadcast Tx: ' + e.message);
|
|
461
461
|
}
|
|
462
462
|
},
|
|
463
|
-
async
|
|
463
|
+
async sendMsgAddArtwork({ value, fee, memo }) {
|
|
464
464
|
if (!signer) {
|
|
465
|
-
throw new Error('TxClient:
|
|
465
|
+
throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.');
|
|
466
466
|
}
|
|
467
467
|
try {
|
|
468
468
|
const { address } = (await signer.getAccounts())[0];
|
|
469
469
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
470
|
-
let msg = this.
|
|
470
|
+
let msg = this.msgAddArtwork({ value: MsgAddArtwork.fromPartial(value) });
|
|
471
471
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
472
472
|
}
|
|
473
473
|
catch (e) {
|
|
474
|
-
throw new Error('TxClient:
|
|
474
|
+
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: ' + e.message);
|
|
475
475
|
}
|
|
476
476
|
},
|
|
477
|
-
async
|
|
477
|
+
async sendMsgTransferCard({ value, fee, memo }) {
|
|
478
478
|
if (!signer) {
|
|
479
|
-
throw new Error('TxClient:
|
|
479
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.');
|
|
480
480
|
}
|
|
481
481
|
try {
|
|
482
482
|
const { address } = (await signer.getAccounts())[0];
|
|
483
483
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
484
|
-
let msg = this.
|
|
484
|
+
let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) });
|
|
485
485
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
486
486
|
}
|
|
487
487
|
catch (e) {
|
|
488
|
-
throw new Error('TxClient:
|
|
488
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: ' + e.message);
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
|
-
async
|
|
491
|
+
async sendMsgSetCollectionArtist({ value, fee, memo }) {
|
|
492
492
|
if (!signer) {
|
|
493
|
-
throw new Error('TxClient:
|
|
493
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Unable to sign Tx. Signer is not present.');
|
|
494
494
|
}
|
|
495
495
|
try {
|
|
496
496
|
const { address } = (await signer.getAccounts())[0];
|
|
497
497
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
498
|
-
let msg = this.
|
|
498
|
+
let msg = this.msgSetCollectionArtist({ value: MsgSetCollectionArtist.fromPartial(value) });
|
|
499
499
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
500
500
|
}
|
|
501
501
|
catch (e) {
|
|
502
|
-
throw new Error('TxClient:
|
|
502
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Could not broadcast Tx: ' + e.message);
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
|
-
async
|
|
505
|
+
async sendMsgSetCardRarity({ value, fee, memo }) {
|
|
506
506
|
if (!signer) {
|
|
507
|
-
throw new Error('TxClient:
|
|
507
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.');
|
|
508
508
|
}
|
|
509
509
|
try {
|
|
510
510
|
const { address } = (await signer.getAccounts())[0];
|
|
511
511
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
512
|
-
let msg = this.
|
|
512
|
+
let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) });
|
|
513
513
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
514
514
|
}
|
|
515
515
|
catch (e) {
|
|
516
|
-
throw new Error('TxClient:
|
|
516
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: ' + e.message);
|
|
517
517
|
}
|
|
518
518
|
},
|
|
519
|
-
async
|
|
519
|
+
async sendMsgAddStoryToCollection({ value, fee, memo }) {
|
|
520
520
|
if (!signer) {
|
|
521
|
-
throw new Error('TxClient:
|
|
521
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Unable to sign Tx. Signer is not present.');
|
|
522
522
|
}
|
|
523
523
|
try {
|
|
524
524
|
const { address } = (await signer.getAccounts())[0];
|
|
525
525
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
526
|
-
let msg = this.
|
|
526
|
+
let msg = this.msgAddStoryToCollection({ value: MsgAddStoryToCollection.fromPartial(value) });
|
|
527
527
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
528
528
|
}
|
|
529
529
|
catch (e) {
|
|
530
|
-
throw new Error('TxClient:
|
|
530
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Could not broadcast Tx: ' + e.message);
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
|
-
async
|
|
533
|
+
async sendMsgSetUserBiography({ value, fee, memo }) {
|
|
534
534
|
if (!signer) {
|
|
535
|
-
throw new Error('TxClient:
|
|
535
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.');
|
|
536
536
|
}
|
|
537
537
|
try {
|
|
538
538
|
const { address } = (await signer.getAccounts())[0];
|
|
539
539
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
540
|
-
let msg = this.
|
|
540
|
+
let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) });
|
|
541
541
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
542
542
|
}
|
|
543
543
|
catch (e) {
|
|
544
|
-
throw new Error('TxClient:
|
|
544
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: ' + e.message);
|
|
545
545
|
}
|
|
546
546
|
},
|
|
547
|
-
async
|
|
547
|
+
async sendMsgChangeArtist({ value, fee, memo }) {
|
|
548
548
|
if (!signer) {
|
|
549
|
-
throw new Error('TxClient:
|
|
549
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.');
|
|
550
550
|
}
|
|
551
551
|
try {
|
|
552
552
|
const { address } = (await signer.getAccounts())[0];
|
|
553
553
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
554
|
-
let msg = this.
|
|
554
|
+
let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) });
|
|
555
555
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
556
556
|
}
|
|
557
557
|
catch (e) {
|
|
558
|
-
throw new Error('TxClient:
|
|
558
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: ' + e.message);
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
-
async
|
|
561
|
+
async sendMsgRegisterForCouncil({ value, fee, memo }) {
|
|
562
562
|
if (!signer) {
|
|
563
|
-
throw new Error('TxClient:
|
|
563
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.');
|
|
564
564
|
}
|
|
565
565
|
try {
|
|
566
566
|
const { address } = (await signer.getAccounts())[0];
|
|
567
567
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
568
|
-
let msg = this.
|
|
568
|
+
let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) });
|
|
569
569
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
570
570
|
}
|
|
571
571
|
catch (e) {
|
|
572
|
-
throw new Error('TxClient:
|
|
572
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: ' + e.message);
|
|
573
573
|
}
|
|
574
574
|
},
|
|
575
|
-
async
|
|
575
|
+
async sendMsgBuyCardScheme({ value, fee, memo }) {
|
|
576
576
|
if (!signer) {
|
|
577
|
-
throw new Error('TxClient:
|
|
577
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Unable to sign Tx. Signer is not present.');
|
|
578
578
|
}
|
|
579
579
|
try {
|
|
580
580
|
const { address } = (await signer.getAccounts())[0];
|
|
581
581
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
582
|
-
let msg = this.
|
|
582
|
+
let msg = this.msgBuyCardScheme({ value: MsgBuyCardScheme.fromPartial(value) });
|
|
583
583
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
584
584
|
}
|
|
585
585
|
catch (e) {
|
|
586
|
-
throw new Error('TxClient:
|
|
586
|
+
throw new Error('TxClient:sendMsgBuyCardScheme: Could not broadcast Tx: ' + e.message);
|
|
587
587
|
}
|
|
588
588
|
},
|
|
589
|
-
async
|
|
589
|
+
async sendMsgBuyCollection({ value, fee, memo }) {
|
|
590
590
|
if (!signer) {
|
|
591
|
-
throw new Error('TxClient:
|
|
591
|
+
throw new Error('TxClient:sendMsgBuyCollection: Unable to sign Tx. Signer is not present.');
|
|
592
592
|
}
|
|
593
593
|
try {
|
|
594
594
|
const { address } = (await signer.getAccounts())[0];
|
|
595
595
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
596
|
-
let msg = this.
|
|
596
|
+
let msg = this.msgBuyCollection({ value: MsgBuyCollection.fromPartial(value) });
|
|
597
597
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
598
598
|
}
|
|
599
599
|
catch (e) {
|
|
600
|
-
throw new Error('TxClient:
|
|
600
|
+
throw new Error('TxClient:sendMsgBuyCollection: Could not broadcast Tx: ' + e.message);
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
|
-
async
|
|
603
|
+
async sendMsgRewokeCouncilRegistration({ value, fee, memo }) {
|
|
604
604
|
if (!signer) {
|
|
605
|
-
throw new Error('TxClient:
|
|
605
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.');
|
|
606
606
|
}
|
|
607
607
|
try {
|
|
608
608
|
const { address } = (await signer.getAccounts())[0];
|
|
609
609
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
610
|
-
let msg = this.
|
|
610
|
+
let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) });
|
|
611
611
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
612
612
|
}
|
|
613
613
|
catch (e) {
|
|
614
|
-
throw new Error('TxClient:
|
|
614
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: ' + e.message);
|
|
615
615
|
}
|
|
616
616
|
},
|
|
617
|
-
async
|
|
617
|
+
async sendMsgDonateToCard({ value, fee, memo }) {
|
|
618
618
|
if (!signer) {
|
|
619
|
-
throw new Error('TxClient:
|
|
619
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.');
|
|
620
620
|
}
|
|
621
621
|
try {
|
|
622
622
|
const { address } = (await signer.getAccounts())[0];
|
|
623
623
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
624
|
-
let msg = this.
|
|
624
|
+
let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) });
|
|
625
625
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
626
626
|
}
|
|
627
627
|
catch (e) {
|
|
628
|
-
throw new Error('TxClient:
|
|
628
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: ' + e.message);
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
|
-
async
|
|
631
|
+
async sendMsgCreateCollection({ value, fee, memo }) {
|
|
632
632
|
if (!signer) {
|
|
633
|
-
throw new Error('TxClient:
|
|
633
|
+
throw new Error('TxClient:sendMsgCreateCollection: Unable to sign Tx. Signer is not present.');
|
|
634
634
|
}
|
|
635
635
|
try {
|
|
636
636
|
const { address } = (await signer.getAccounts())[0];
|
|
637
637
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
638
|
-
let msg = this.
|
|
638
|
+
let msg = this.msgCreateCollection({ value: MsgCreateCollection.fromPartial(value) });
|
|
639
639
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
640
640
|
}
|
|
641
641
|
catch (e) {
|
|
642
|
-
throw new Error('TxClient:
|
|
642
|
+
throw new Error('TxClient:sendMsgCreateCollection: Could not broadcast Tx: ' + e.message);
|
|
643
643
|
}
|
|
644
644
|
},
|
|
645
|
-
async
|
|
645
|
+
async sendMsgSubmitCollectionProposal({ value, fee, memo }) {
|
|
646
646
|
if (!signer) {
|
|
647
|
-
throw new Error('TxClient:
|
|
647
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Unable to sign Tx. Signer is not present.');
|
|
648
648
|
}
|
|
649
649
|
try {
|
|
650
650
|
const { address } = (await signer.getAccounts())[0];
|
|
651
651
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
652
|
-
let msg = this.
|
|
652
|
+
let msg = this.msgSubmitCollectionProposal({ value: MsgSubmitCollectionProposal.fromPartial(value) });
|
|
653
653
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
654
654
|
}
|
|
655
655
|
catch (e) {
|
|
656
|
-
throw new Error('TxClient:
|
|
656
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Could not broadcast Tx: ' + e.message);
|
|
657
657
|
}
|
|
658
658
|
},
|
|
659
|
-
|
|
659
|
+
msgBuyCard({ value }) {
|
|
660
660
|
try {
|
|
661
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
661
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard", value: MsgBuyCard.fromPartial(value) };
|
|
662
662
|
}
|
|
663
663
|
catch (e) {
|
|
664
|
-
throw new Error('TxClient:
|
|
664
|
+
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message);
|
|
665
665
|
}
|
|
666
666
|
},
|
|
667
|
-
|
|
667
|
+
msgVoteCard({ value }) {
|
|
668
668
|
try {
|
|
669
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
669
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial(value) };
|
|
670
670
|
}
|
|
671
671
|
catch (e) {
|
|
672
|
-
throw new Error('TxClient:
|
|
672
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message);
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
|
-
|
|
675
|
+
msgRemoveCardFromCollection({ value }) {
|
|
676
676
|
try {
|
|
677
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
677
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromCollection", value: MsgRemoveCardFromCollection.fromPartial(value) };
|
|
678
678
|
}
|
|
679
679
|
catch (e) {
|
|
680
|
-
throw new Error('TxClient:
|
|
680
|
+
throw new Error('TxClient:MsgRemoveCardFromCollection: Could not create message: ' + e.message);
|
|
681
681
|
}
|
|
682
682
|
},
|
|
683
|
-
|
|
683
|
+
msgSetCollectionStoryWriter({ value }) {
|
|
684
684
|
try {
|
|
685
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
685
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCollectionStoryWriter", value: MsgSetCollectionStoryWriter.fromPartial(value) };
|
|
686
686
|
}
|
|
687
687
|
catch (e) {
|
|
688
|
-
throw new Error('TxClient:
|
|
688
|
+
throw new Error('TxClient:MsgSetCollectionStoryWriter: Could not create message: ' + e.message);
|
|
689
689
|
}
|
|
690
690
|
},
|
|
691
|
-
|
|
691
|
+
msgReportMatch({ value }) {
|
|
692
692
|
try {
|
|
693
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
693
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch", value: MsgReportMatch.fromPartial(value) };
|
|
694
694
|
}
|
|
695
695
|
catch (e) {
|
|
696
|
-
throw new Error('TxClient:
|
|
696
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message);
|
|
697
697
|
}
|
|
698
698
|
},
|
|
699
|
-
|
|
699
|
+
msgMultiVoteCard({ value }) {
|
|
700
700
|
try {
|
|
701
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
701
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", value: MsgMultiVoteCard.fromPartial(value) };
|
|
702
702
|
}
|
|
703
703
|
catch (e) {
|
|
704
|
-
throw new Error('TxClient:
|
|
704
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message);
|
|
705
705
|
}
|
|
706
706
|
},
|
|
707
|
-
|
|
707
|
+
msgSetProfileCard({ value }) {
|
|
708
708
|
try {
|
|
709
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
709
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", value: MsgSetProfileCard.fromPartial(value) };
|
|
710
710
|
}
|
|
711
711
|
catch (e) {
|
|
712
|
-
throw new Error('TxClient:
|
|
712
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message);
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
|
-
|
|
715
|
+
msgSaveCardContent({ value }) {
|
|
716
716
|
try {
|
|
717
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
717
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", value: MsgSaveCardContent.fromPartial(value) };
|
|
718
718
|
}
|
|
719
719
|
catch (e) {
|
|
720
|
-
throw new Error('TxClient:
|
|
720
|
+
throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message);
|
|
721
721
|
}
|
|
722
722
|
},
|
|
723
|
-
|
|
723
|
+
msgConfirmMatch({ value }) {
|
|
724
724
|
try {
|
|
725
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
725
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", value: MsgConfirmMatch.fromPartial(value) };
|
|
726
726
|
}
|
|
727
727
|
catch (e) {
|
|
728
|
-
throw new Error('TxClient:
|
|
728
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message);
|
|
729
729
|
}
|
|
730
730
|
},
|
|
731
|
-
|
|
731
|
+
msgTransferBoosterPack({ value }) {
|
|
732
732
|
try {
|
|
733
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
733
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", value: MsgTransferBoosterPack.fromPartial(value) };
|
|
734
734
|
}
|
|
735
735
|
catch (e) {
|
|
736
|
-
throw new Error('TxClient:
|
|
736
|
+
throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message);
|
|
737
737
|
}
|
|
738
738
|
},
|
|
739
|
-
|
|
739
|
+
msgRemoveSellOffer({ value }) {
|
|
740
740
|
try {
|
|
741
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
741
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", value: MsgRemoveSellOffer.fromPartial(value) };
|
|
742
742
|
}
|
|
743
743
|
catch (e) {
|
|
744
|
-
throw new Error('TxClient:
|
|
744
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message);
|
|
745
745
|
}
|
|
746
746
|
},
|
|
747
|
-
|
|
747
|
+
msgApointMatchReporter({ value }) {
|
|
748
748
|
try {
|
|
749
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
749
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", value: MsgApointMatchReporter.fromPartial(value) };
|
|
750
750
|
}
|
|
751
751
|
catch (e) {
|
|
752
|
-
throw new Error('TxClient:
|
|
752
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message);
|
|
753
753
|
}
|
|
754
754
|
},
|
|
755
|
-
|
|
755
|
+
msgCreateCouncil({ value }) {
|
|
756
756
|
try {
|
|
757
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
757
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", value: MsgCreateCouncil.fromPartial(value) };
|
|
758
758
|
}
|
|
759
759
|
catch (e) {
|
|
760
|
-
throw new Error('TxClient:
|
|
760
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message);
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
|
-
|
|
763
|
+
msgRestartCouncil({ value }) {
|
|
764
764
|
try {
|
|
765
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
765
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", value: MsgRestartCouncil.fromPartial(value) };
|
|
766
766
|
}
|
|
767
767
|
catch (e) {
|
|
768
|
-
throw new Error('TxClient:
|
|
768
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message);
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
|
-
|
|
771
|
+
msgAddArtworkToCollection({ value }) {
|
|
772
772
|
try {
|
|
773
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
773
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToCollection", value: MsgAddArtworkToCollection.fromPartial(value) };
|
|
774
774
|
}
|
|
775
775
|
catch (e) {
|
|
776
|
-
throw new Error('TxClient:
|
|
776
|
+
throw new Error('TxClient:MsgAddArtworkToCollection: Could not create message: ' + e.message);
|
|
777
777
|
}
|
|
778
778
|
},
|
|
779
|
-
|
|
779
|
+
msgOpenBoosterPack({ value }) {
|
|
780
780
|
try {
|
|
781
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
781
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", value: MsgOpenBoosterPack.fromPartial(value) };
|
|
782
782
|
}
|
|
783
783
|
catch (e) {
|
|
784
|
-
throw new Error('TxClient:
|
|
784
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message);
|
|
785
785
|
}
|
|
786
786
|
},
|
|
787
|
-
|
|
787
|
+
msgCreateSellOffer({ value }) {
|
|
788
788
|
try {
|
|
789
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
789
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", value: MsgCreateSellOffer.fromPartial(value) };
|
|
790
790
|
}
|
|
791
791
|
catch (e) {
|
|
792
|
-
throw new Error('TxClient:
|
|
792
|
+
throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message);
|
|
793
793
|
}
|
|
794
794
|
},
|
|
795
|
-
|
|
795
|
+
msgFinalizeCollection({ value }) {
|
|
796
796
|
try {
|
|
797
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
797
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeCollection", value: MsgFinalizeCollection.fromPartial(value) };
|
|
798
798
|
}
|
|
799
799
|
catch (e) {
|
|
800
|
-
throw new Error('TxClient:
|
|
800
|
+
throw new Error('TxClient:MsgFinalizeCollection: Could not create message: ' + e.message);
|
|
801
801
|
}
|
|
802
802
|
},
|
|
803
|
-
|
|
803
|
+
msgSubmitMatchReporterProposal({ value }) {
|
|
804
804
|
try {
|
|
805
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
805
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitMatchReporterProposal", value: MsgSubmitMatchReporterProposal.fromPartial(value) };
|
|
806
806
|
}
|
|
807
807
|
catch (e) {
|
|
808
|
-
throw new Error('TxClient:
|
|
808
|
+
throw new Error('TxClient:MsgSubmitMatchReporterProposal: Could not create message: ' + e.message);
|
|
809
809
|
}
|
|
810
810
|
},
|
|
811
|
-
|
|
811
|
+
msgSubmitCopyrightProposal({ value }) {
|
|
812
812
|
try {
|
|
813
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
813
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCopyrightProposal", value: MsgSubmitCopyrightProposal.fromPartial(value) };
|
|
814
814
|
}
|
|
815
815
|
catch (e) {
|
|
816
|
-
throw new Error('TxClient:
|
|
816
|
+
throw new Error('TxClient:MsgSubmitCopyrightProposal: Could not create message: ' + e.message);
|
|
817
817
|
}
|
|
818
818
|
},
|
|
819
|
-
|
|
819
|
+
msgCreateuser({ value }) {
|
|
820
820
|
try {
|
|
821
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
821
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser", value: MsgCreateuser.fromPartial(value) };
|
|
822
822
|
}
|
|
823
823
|
catch (e) {
|
|
824
|
-
throw new Error('TxClient:
|
|
824
|
+
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message);
|
|
825
825
|
}
|
|
826
826
|
},
|
|
827
|
-
|
|
827
|
+
msgRevealCouncilResponse({ value }) {
|
|
828
828
|
try {
|
|
829
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
829
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", value: MsgRevealCouncilResponse.fromPartial(value) };
|
|
830
830
|
}
|
|
831
831
|
catch (e) {
|
|
832
|
-
throw new Error('TxClient:
|
|
832
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message);
|
|
833
833
|
}
|
|
834
834
|
},
|
|
835
|
-
|
|
835
|
+
msgAddCardToCollection({ value }) {
|
|
836
836
|
try {
|
|
837
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
837
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToCollection", value: MsgAddCardToCollection.fromPartial(value) };
|
|
838
838
|
}
|
|
839
839
|
catch (e) {
|
|
840
|
-
throw new Error('TxClient:
|
|
840
|
+
throw new Error('TxClient:MsgAddCardToCollection: Could not create message: ' + e.message);
|
|
841
841
|
}
|
|
842
842
|
},
|
|
843
843
|
msgSetUserWebsite({ value }) {
|
|
@@ -848,140 +848,140 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
848
848
|
throw new Error('TxClient:MsgSetUserWebsite: Could not create message: ' + e.message);
|
|
849
849
|
}
|
|
850
850
|
},
|
|
851
|
-
|
|
851
|
+
msgCommitCouncilResponse({ value }) {
|
|
852
852
|
try {
|
|
853
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
853
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", value: MsgCommitCouncilResponse.fromPartial(value) };
|
|
854
854
|
}
|
|
855
855
|
catch (e) {
|
|
856
|
-
throw new Error('TxClient:
|
|
856
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message);
|
|
857
857
|
}
|
|
858
858
|
},
|
|
859
|
-
|
|
859
|
+
msgAddContributorToCollection({ value }) {
|
|
860
860
|
try {
|
|
861
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
861
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToCollection", value: MsgAddContributorToCollection.fromPartial(value) };
|
|
862
862
|
}
|
|
863
863
|
catch (e) {
|
|
864
|
-
throw new Error('TxClient:
|
|
864
|
+
throw new Error('TxClient:MsgAddContributorToCollection: Could not create message: ' + e.message);
|
|
865
865
|
}
|
|
866
866
|
},
|
|
867
|
-
|
|
867
|
+
msgRemoveContributorFromCollection({ value }) {
|
|
868
868
|
try {
|
|
869
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
869
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromCollection", value: MsgRemoveContributorFromCollection.fromPartial(value) };
|
|
870
870
|
}
|
|
871
871
|
catch (e) {
|
|
872
|
-
throw new Error('TxClient:
|
|
872
|
+
throw new Error('TxClient:MsgRemoveContributorFromCollection: Could not create message: ' + e.message);
|
|
873
873
|
}
|
|
874
874
|
},
|
|
875
|
-
|
|
875
|
+
msgAddArtwork({ value }) {
|
|
876
876
|
try {
|
|
877
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
877
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", value: MsgAddArtwork.fromPartial(value) };
|
|
878
878
|
}
|
|
879
879
|
catch (e) {
|
|
880
|
-
throw new Error('TxClient:
|
|
880
|
+
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message);
|
|
881
881
|
}
|
|
882
882
|
},
|
|
883
|
-
|
|
883
|
+
msgTransferCard({ value }) {
|
|
884
884
|
try {
|
|
885
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
885
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard", value: MsgTransferCard.fromPartial(value) };
|
|
886
886
|
}
|
|
887
887
|
catch (e) {
|
|
888
|
-
throw new Error('TxClient:
|
|
888
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message);
|
|
889
889
|
}
|
|
890
890
|
},
|
|
891
|
-
|
|
891
|
+
msgSetCollectionArtist({ value }) {
|
|
892
892
|
try {
|
|
893
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
893
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCollectionArtist", value: MsgSetCollectionArtist.fromPartial(value) };
|
|
894
894
|
}
|
|
895
895
|
catch (e) {
|
|
896
|
-
throw new Error('TxClient:
|
|
896
|
+
throw new Error('TxClient:MsgSetCollectionArtist: Could not create message: ' + e.message);
|
|
897
897
|
}
|
|
898
898
|
},
|
|
899
|
-
|
|
899
|
+
msgSetCardRarity({ value }) {
|
|
900
900
|
try {
|
|
901
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
901
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", value: MsgSetCardRarity.fromPartial(value) };
|
|
902
902
|
}
|
|
903
903
|
catch (e) {
|
|
904
|
-
throw new Error('TxClient:
|
|
904
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message);
|
|
905
905
|
}
|
|
906
906
|
},
|
|
907
|
-
|
|
907
|
+
msgAddStoryToCollection({ value }) {
|
|
908
908
|
try {
|
|
909
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
909
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToCollection", value: MsgAddStoryToCollection.fromPartial(value) };
|
|
910
910
|
}
|
|
911
911
|
catch (e) {
|
|
912
|
-
throw new Error('TxClient:
|
|
912
|
+
throw new Error('TxClient:MsgAddStoryToCollection: Could not create message: ' + e.message);
|
|
913
913
|
}
|
|
914
914
|
},
|
|
915
|
-
|
|
915
|
+
msgSetUserBiography({ value }) {
|
|
916
916
|
try {
|
|
917
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
917
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", value: MsgSetUserBiography.fromPartial(value) };
|
|
918
918
|
}
|
|
919
919
|
catch (e) {
|
|
920
|
-
throw new Error('TxClient:
|
|
920
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message);
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
|
-
|
|
923
|
+
msgChangeArtist({ value }) {
|
|
924
924
|
try {
|
|
925
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
925
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", value: MsgChangeArtist.fromPartial(value) };
|
|
926
926
|
}
|
|
927
927
|
catch (e) {
|
|
928
|
-
throw new Error('TxClient:
|
|
928
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message);
|
|
929
929
|
}
|
|
930
930
|
},
|
|
931
|
-
|
|
931
|
+
msgRegisterForCouncil({ value }) {
|
|
932
932
|
try {
|
|
933
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
933
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", value: MsgRegisterForCouncil.fromPartial(value) };
|
|
934
934
|
}
|
|
935
935
|
catch (e) {
|
|
936
|
-
throw new Error('TxClient:
|
|
936
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message);
|
|
937
937
|
}
|
|
938
938
|
},
|
|
939
|
-
|
|
939
|
+
msgBuyCardScheme({ value }) {
|
|
940
940
|
try {
|
|
941
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
941
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", value: MsgBuyCardScheme.fromPartial(value) };
|
|
942
942
|
}
|
|
943
943
|
catch (e) {
|
|
944
|
-
throw new Error('TxClient:
|
|
944
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message);
|
|
945
945
|
}
|
|
946
946
|
},
|
|
947
|
-
|
|
947
|
+
msgBuyCollection({ value }) {
|
|
948
948
|
try {
|
|
949
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
949
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCollection", value: MsgBuyCollection.fromPartial(value) };
|
|
950
950
|
}
|
|
951
951
|
catch (e) {
|
|
952
|
-
throw new Error('TxClient:
|
|
952
|
+
throw new Error('TxClient:MsgBuyCollection: Could not create message: ' + e.message);
|
|
953
953
|
}
|
|
954
954
|
},
|
|
955
|
-
|
|
955
|
+
msgRewokeCouncilRegistration({ value }) {
|
|
956
956
|
try {
|
|
957
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
957
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", value: MsgRewokeCouncilRegistration.fromPartial(value) };
|
|
958
958
|
}
|
|
959
959
|
catch (e) {
|
|
960
|
-
throw new Error('TxClient:
|
|
960
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message);
|
|
961
961
|
}
|
|
962
962
|
},
|
|
963
|
-
|
|
963
|
+
msgDonateToCard({ value }) {
|
|
964
964
|
try {
|
|
965
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
965
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", value: MsgDonateToCard.fromPartial(value) };
|
|
966
966
|
}
|
|
967
967
|
catch (e) {
|
|
968
|
-
throw new Error('TxClient:
|
|
968
|
+
throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message);
|
|
969
969
|
}
|
|
970
970
|
},
|
|
971
|
-
|
|
971
|
+
msgCreateCollection({ value }) {
|
|
972
972
|
try {
|
|
973
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
973
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCollection", value: MsgCreateCollection.fromPartial(value) };
|
|
974
974
|
}
|
|
975
975
|
catch (e) {
|
|
976
|
-
throw new Error('TxClient:
|
|
976
|
+
throw new Error('TxClient:MsgCreateCollection: Could not create message: ' + e.message);
|
|
977
977
|
}
|
|
978
978
|
},
|
|
979
|
-
|
|
979
|
+
msgSubmitCollectionProposal({ value }) {
|
|
980
980
|
try {
|
|
981
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
981
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCollectionProposal", value: MsgSubmitCollectionProposal.fromPartial(value) };
|
|
982
982
|
}
|
|
983
983
|
catch (e) {
|
|
984
|
-
throw new Error('TxClient:
|
|
984
|
+
throw new Error('TxClient:MsgSubmitCollectionProposal: Could not create message: ' + e.message);
|
|
985
985
|
}
|
|
986
986
|
},
|
|
987
987
|
};
|