decentralcardgame-cardchain-client-ts 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +322 -322
- package/DecentralCardGame.cardchain.cardchain/module.ts +486 -486
- package/DecentralCardGame.cardchain.cardchain/registry.js +71 -71
- package/DecentralCardGame.cardchain.cardchain/registry.ts +71 -71
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +8 -3
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +44 -13
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +22 -22
- package/DecentralCardGame.cardchain.cardchain/types.ts +22 -22
- package/client.js +7 -7
- package/client.ts +11 -10
- package/cosmos.auth.v1beta1/module.js +2 -0
- package/cosmos.auth.v1beta1/module.ts +2 -0
- package/cosmos.auth.v1beta1/rest.js +18 -3
- package/cosmos.auth.v1beta1/rest.ts +113 -3
- package/cosmos.auth.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.auth.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +104 -3
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +157 -4
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +105 -0
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +172 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.auth.v1beta1/types.js +2 -1
- package/cosmos.auth.v1beta1/types.ts +2 -0
- package/cosmos.authz.v1beta1/module.js +19 -19
- package/cosmos.authz.v1beta1/module.ts +29 -29
- package/cosmos.authz.v1beta1/registry.js +2 -2
- package/cosmos.authz.v1beta1/registry.ts +2 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.authz.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/module.js +16 -16
- package/cosmos.bank.v1beta1/module.ts +24 -24
- package/cosmos.bank.v1beta1/registry.js +2 -2
- package/cosmos.bank.v1beta1/registry.ts +2 -2
- package/cosmos.bank.v1beta1/rest.js +37 -6
- package/cosmos.bank.v1beta1/rest.ts +99 -6
- package/cosmos.bank.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.bank.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +24 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +9 -0
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +18 -2
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +25 -4
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +230 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +356 -5
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +206 -1
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +305 -1
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +18 -27
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +16 -46
- package/cosmos.consensus.v1/index.js +5 -0
- package/cosmos.consensus.v1/index.ts +6 -0
- package/cosmos.consensus.v1/module.js +81 -0
- package/cosmos.consensus.v1/module.ts +129 -0
- package/cosmos.consensus.v1/registry.js +5 -0
- package/cosmos.consensus.v1/registry.ts +9 -0
- package/cosmos.consensus.v1/rest.js +100 -0
- package/cosmos.consensus.v1/rest.ts +268 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +94 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +147 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +129 -0
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +196 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +2 -0
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.js +2 -0
- package/cosmos.consensus.v1/types/google/api/annotations.ts +2 -0
- package/cosmos.consensus.v1/types/google/api/http.js +260 -0
- package/cosmos.consensus.v1/types/google/api/http.ts +589 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +2830 -0
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +3753 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +84 -0
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +187 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.js +369 -0
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +498 -0
- package/cosmos.consensus.v1/types.js +1 -0
- package/cosmos.consensus.v1/types.ts +5 -0
- package/cosmos.crisis.v1beta1/module.js +24 -1
- package/cosmos.crisis.v1beta1/module.ts +34 -1
- package/cosmos.crisis.v1beta1/registry.js +2 -0
- package/cosmos.crisis.v1beta1/registry.ts +2 -0
- package/cosmos.crisis.v1beta1/rest.ts +19 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +95 -0
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +140 -1
- package/cosmos.distribution.v1beta1/module.js +63 -17
- package/cosmos.distribution.v1beta1/module.ts +91 -25
- package/cosmos.distribution.v1beta1/registry.js +8 -4
- package/cosmos.distribution.v1beta1/registry.ts +8 -4
- package/cosmos.distribution.v1beta1/rest.js +14 -0
- package/cosmos.distribution.v1beta1/rest.ts +66 -7
- package/cosmos.distribution.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +19 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +120 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +158 -1
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +199 -0
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +300 -3
- package/cosmos.evidence.v1beta1/rest.js +4 -3
- package/cosmos.evidence.v1beta1/rest.ts +4 -3
- package/cosmos.evidence.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +7 -1
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +13 -2
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +25 -3
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/module.js +44 -19
- package/cosmos.gov.v1/module.ts +62 -27
- package/cosmos.gov.v1/registry.js +4 -2
- package/cosmos.gov.v1/registry.ts +4 -2
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +36 -36
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +65 -96
- package/cosmos.gov.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +45 -10
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +4 -2
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +16 -1
- package/cosmos.group.v1/module.js +98 -96
- package/cosmos.group.v1/module.ts +149 -147
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/events.js +65 -1
- package/cosmos.group.v1/types/cosmos/group/v1/events.ts +89 -1
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.group.v1/types.js +2 -1
- package/cosmos.group.v1/types.ts +2 -0
- package/cosmos.mint.v1beta1/rest.ts +9 -1
- package/cosmos.mint.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.mint.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/genesis.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/mint.ts +1 -1
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +105 -0
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +172 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +2 -0
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +2 -0
- package/cosmos.nft.v1beta1/rest.ts +18 -22
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +10 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +1 -0
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +20 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +171 -0
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +247 -0
- package/cosmos.params.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.params.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/rest.ts +8 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +94 -0
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +139 -0
- package/cosmos.staking.v1beta1/module.js +34 -32
- package/cosmos.staking.v1beta1/module.ts +50 -48
- package/cosmos.staking.v1beta1/registry.js +6 -6
- package/cosmos.staking.v1beta1/registry.ts +6 -6
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +49 -8
- package/cosmos.staking.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.staking.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +2 -0
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +36 -5
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +180 -2
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +206 -3
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +94 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +138 -1
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +3812 -0
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +4525 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +369 -0
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +498 -0
- package/cosmos.staking.v1beta1/types.js +2 -1
- package/cosmos.staking.v1beta1/types.ts +2 -0
- package/cosmos.tx.v1beta1/rest.js +66 -2
- package/cosmos.tx.v1beta1/rest.ts +177 -16
- package/cosmos.tx.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.tx.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +360 -2
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +524 -2
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +592 -266
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +703 -332
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +8 -17
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +9 -25
- package/cosmos.upgrade.v1beta1/rest.ts +0 -1
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/cosmos.vesting.v1beta1/module.js +19 -19
- package/cosmos.vesting.v1beta1/module.ts +29 -29
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.js +2 -0
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +2 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +84 -0
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +104 -0
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +1 -0
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +13 -2
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +16 -4
- package/ibc.applications.transfer.v1/module.js +5 -27
- package/ibc.applications.transfer.v1/module.ts +5 -34
- package/ibc.applications.transfer.v1/registry.js +1 -4
- package/ibc.applications.transfer.v1/registry.ts +0 -2
- package/ibc.applications.transfer.v1/rest.js +15 -1
- package/ibc.applications.transfer.v1/rest.ts +30 -1
- package/ibc.applications.transfer.v1/types/amino/amino.js +2 -0
- package/ibc.applications.transfer.v1/types/amino/amino.ts +2 -0
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +135 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +178 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +16 -1
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +23 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +91 -0
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +120 -0
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.applications.transfer.v1/types.js +3 -1
- package/ibc.applications.transfer.v1/types.ts +4 -0
- package/ibc.core.channel.v1/rest.ts +1 -0
- package/ibc.core.channel.v1/types/amino/amino.js +2 -0
- package/ibc.core.channel.v1/types/amino/amino.ts +2 -0
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +13 -2
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +14 -2
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/rest.ts +5 -1
- package/ibc.core.client.v1/types/amino/amino.js +2 -0
- package/ibc.core.client.v1/types/amino/amino.ts +2 -0
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +9 -8
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +28 -14
- package/ibc.core.connection.v1/types/amino/amino.js +2 -0
- package/ibc.core.connection.v1/types/amino/amino.ts +2 -0
- package/ibc.core.connection.v1/types/{proofs.js → cosmos/ics23/v1/proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{proofs.ts → cosmos/ics23/v1/proofs.ts} +1 -1
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +6 -4
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +5 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.js +1 -1
- package/ibc.core.connection.v1/types/ibc/core/commitment/v1/commitment.ts +1 -1
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.js +26 -0
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +34 -0
- package/index.js +3 -1
- package/index.ts +3 -1
- package/package.json +1 -4
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/collection_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/vote_right.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_result.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/voting_results.ts +0 -0
|
@@ -7,47 +7,47 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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 {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { MsgSetUserWebsite } from "./types/cardchain/cardchain/tx";
|
|
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 {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
10
|
+
import { MsgBuyCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
11
|
+
import { MsgVoteCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
12
|
+
import { MsgRemoveCardFromCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
13
|
+
import { MsgSetCollectionStoryWriter } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
14
|
+
import { MsgReportMatch } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
15
|
+
import { MsgMultiVoteCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
16
|
+
import { MsgSetProfileCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
17
|
+
import { MsgSaveCardContent } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
18
|
+
import { MsgConfirmMatch } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
19
|
+
import { MsgTransferBoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
20
|
+
import { MsgRemoveSellOffer } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
21
|
+
import { MsgApointMatchReporter } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
22
|
+
import { MsgCreateCouncil } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
23
|
+
import { MsgRestartCouncil } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
24
|
+
import { MsgAddArtworkToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
25
|
+
import { MsgOpenBoosterPack } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
26
|
+
import { MsgCreateSellOffer } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
27
|
+
import { MsgFinalizeCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
28
|
+
import { MsgSubmitMatchReporterProposal } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
29
|
+
import { MsgSubmitCopyrightProposal } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
30
|
+
import { MsgCreateuser } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
31
|
+
import { MsgRevealCouncilResponse } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
32
|
+
import { MsgAddCardToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
33
|
+
import { MsgSetUserWebsite } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
34
|
+
import { MsgCommitCouncilResponse } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
35
|
+
import { MsgAddContributorToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
36
|
+
import { MsgRemoveContributorFromCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
37
|
+
import { MsgAddArtwork } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
38
|
+
import { MsgTransferCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
39
|
+
import { MsgSetCollectionArtist } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
40
|
+
import { MsgSetCardRarity } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
41
|
+
import { MsgAddStoryToCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
42
|
+
import { MsgSetUserBiography } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
43
|
+
import { MsgChangeArtist } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
44
|
+
import { MsgRegisterForCouncil } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
45
|
+
import { MsgBuyCardScheme } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
46
|
+
import { MsgBuyCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
47
|
+
import { MsgRewokeCouncilRegistration } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
48
|
+
import { MsgDonateToCard } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
49
|
+
import { MsgCreateCollection } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
50
|
+
import { MsgSubmitCollectionProposal } from "./types/DecentralCardGame/cardchain/cardchain/tx";
|
|
51
51
|
|
|
52
52
|
import { Card as typeCard} from "./types"
|
|
53
53
|
import { TimeStamp as typeTimeStamp} from "./types"
|
|
@@ -72,100 +72,88 @@ import { VoteRight as typeVoteRight} from "./types"
|
|
|
72
72
|
import { VotingResult as typeVotingResult} from "./types"
|
|
73
73
|
import { VotingResults as typeVotingResults} from "./types"
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
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 };
|
|
76
76
|
|
|
77
|
-
type
|
|
78
|
-
value:
|
|
79
|
-
fee?: StdFee,
|
|
80
|
-
memo?: string
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
type sendMsgOpenBoosterPackParams = {
|
|
84
|
-
value: MsgOpenBoosterPack,
|
|
85
|
-
fee?: StdFee,
|
|
86
|
-
memo?: string
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
type sendMsgCreateCollectionParams = {
|
|
90
|
-
value: MsgCreateCollection,
|
|
77
|
+
type sendMsgBuyCardParams = {
|
|
78
|
+
value: MsgBuyCard,
|
|
91
79
|
fee?: StdFee,
|
|
92
80
|
memo?: string
|
|
93
81
|
};
|
|
94
82
|
|
|
95
|
-
type
|
|
96
|
-
value:
|
|
83
|
+
type sendMsgVoteCardParams = {
|
|
84
|
+
value: MsgVoteCard,
|
|
97
85
|
fee?: StdFee,
|
|
98
86
|
memo?: string
|
|
99
87
|
};
|
|
100
88
|
|
|
101
|
-
type
|
|
102
|
-
value:
|
|
89
|
+
type sendMsgRemoveCardFromCollectionParams = {
|
|
90
|
+
value: MsgRemoveCardFromCollection,
|
|
103
91
|
fee?: StdFee,
|
|
104
92
|
memo?: string
|
|
105
93
|
};
|
|
106
94
|
|
|
107
|
-
type
|
|
108
|
-
value:
|
|
95
|
+
type sendMsgSetCollectionStoryWriterParams = {
|
|
96
|
+
value: MsgSetCollectionStoryWriter,
|
|
109
97
|
fee?: StdFee,
|
|
110
98
|
memo?: string
|
|
111
99
|
};
|
|
112
100
|
|
|
113
|
-
type
|
|
114
|
-
value:
|
|
101
|
+
type sendMsgReportMatchParams = {
|
|
102
|
+
value: MsgReportMatch,
|
|
115
103
|
fee?: StdFee,
|
|
116
104
|
memo?: string
|
|
117
105
|
};
|
|
118
106
|
|
|
119
|
-
type
|
|
120
|
-
value:
|
|
107
|
+
type sendMsgMultiVoteCardParams = {
|
|
108
|
+
value: MsgMultiVoteCard,
|
|
121
109
|
fee?: StdFee,
|
|
122
110
|
memo?: string
|
|
123
111
|
};
|
|
124
112
|
|
|
125
|
-
type
|
|
126
|
-
value:
|
|
113
|
+
type sendMsgSetProfileCardParams = {
|
|
114
|
+
value: MsgSetProfileCard,
|
|
127
115
|
fee?: StdFee,
|
|
128
116
|
memo?: string
|
|
129
117
|
};
|
|
130
118
|
|
|
131
|
-
type
|
|
132
|
-
value:
|
|
119
|
+
type sendMsgSaveCardContentParams = {
|
|
120
|
+
value: MsgSaveCardContent,
|
|
133
121
|
fee?: StdFee,
|
|
134
122
|
memo?: string
|
|
135
123
|
};
|
|
136
124
|
|
|
137
|
-
type
|
|
138
|
-
value:
|
|
125
|
+
type sendMsgConfirmMatchParams = {
|
|
126
|
+
value: MsgConfirmMatch,
|
|
139
127
|
fee?: StdFee,
|
|
140
128
|
memo?: string
|
|
141
129
|
};
|
|
142
130
|
|
|
143
|
-
type
|
|
144
|
-
value:
|
|
131
|
+
type sendMsgTransferBoosterPackParams = {
|
|
132
|
+
value: MsgTransferBoosterPack,
|
|
145
133
|
fee?: StdFee,
|
|
146
134
|
memo?: string
|
|
147
135
|
};
|
|
148
136
|
|
|
149
|
-
type
|
|
150
|
-
value:
|
|
137
|
+
type sendMsgRemoveSellOfferParams = {
|
|
138
|
+
value: MsgRemoveSellOffer,
|
|
151
139
|
fee?: StdFee,
|
|
152
140
|
memo?: string
|
|
153
141
|
};
|
|
154
142
|
|
|
155
|
-
type
|
|
156
|
-
value:
|
|
143
|
+
type sendMsgApointMatchReporterParams = {
|
|
144
|
+
value: MsgApointMatchReporter,
|
|
157
145
|
fee?: StdFee,
|
|
158
146
|
memo?: string
|
|
159
147
|
};
|
|
160
148
|
|
|
161
|
-
type
|
|
162
|
-
value:
|
|
149
|
+
type sendMsgCreateCouncilParams = {
|
|
150
|
+
value: MsgCreateCouncil,
|
|
163
151
|
fee?: StdFee,
|
|
164
152
|
memo?: string
|
|
165
153
|
};
|
|
166
154
|
|
|
167
|
-
type
|
|
168
|
-
value:
|
|
155
|
+
type sendMsgRestartCouncilParams = {
|
|
156
|
+
value: MsgRestartCouncil,
|
|
169
157
|
fee?: StdFee,
|
|
170
158
|
memo?: string
|
|
171
159
|
};
|
|
@@ -176,14 +164,14 @@ type sendMsgAddArtworkToCollectionParams = {
|
|
|
176
164
|
memo?: string
|
|
177
165
|
};
|
|
178
166
|
|
|
179
|
-
type
|
|
180
|
-
value:
|
|
167
|
+
type sendMsgOpenBoosterPackParams = {
|
|
168
|
+
value: MsgOpenBoosterPack,
|
|
181
169
|
fee?: StdFee,
|
|
182
170
|
memo?: string
|
|
183
171
|
};
|
|
184
172
|
|
|
185
|
-
type
|
|
186
|
-
value:
|
|
173
|
+
type sendMsgCreateSellOfferParams = {
|
|
174
|
+
value: MsgCreateSellOffer,
|
|
187
175
|
fee?: StdFee,
|
|
188
176
|
memo?: string
|
|
189
177
|
};
|
|
@@ -194,104 +182,104 @@ type sendMsgFinalizeCollectionParams = {
|
|
|
194
182
|
memo?: string
|
|
195
183
|
};
|
|
196
184
|
|
|
197
|
-
type
|
|
198
|
-
value:
|
|
185
|
+
type sendMsgSubmitMatchReporterProposalParams = {
|
|
186
|
+
value: MsgSubmitMatchReporterProposal,
|
|
199
187
|
fee?: StdFee,
|
|
200
188
|
memo?: string
|
|
201
189
|
};
|
|
202
190
|
|
|
203
|
-
type
|
|
204
|
-
value:
|
|
191
|
+
type sendMsgSubmitCopyrightProposalParams = {
|
|
192
|
+
value: MsgSubmitCopyrightProposal,
|
|
205
193
|
fee?: StdFee,
|
|
206
194
|
memo?: string
|
|
207
195
|
};
|
|
208
196
|
|
|
209
|
-
type
|
|
210
|
-
value:
|
|
197
|
+
type sendMsgCreateuserParams = {
|
|
198
|
+
value: MsgCreateuser,
|
|
211
199
|
fee?: StdFee,
|
|
212
200
|
memo?: string
|
|
213
201
|
};
|
|
214
202
|
|
|
215
|
-
type
|
|
216
|
-
value:
|
|
203
|
+
type sendMsgRevealCouncilResponseParams = {
|
|
204
|
+
value: MsgRevealCouncilResponse,
|
|
217
205
|
fee?: StdFee,
|
|
218
206
|
memo?: string
|
|
219
207
|
};
|
|
220
208
|
|
|
221
|
-
type
|
|
222
|
-
value:
|
|
209
|
+
type sendMsgAddCardToCollectionParams = {
|
|
210
|
+
value: MsgAddCardToCollection,
|
|
223
211
|
fee?: StdFee,
|
|
224
212
|
memo?: string
|
|
225
213
|
};
|
|
226
214
|
|
|
227
|
-
type
|
|
228
|
-
value:
|
|
215
|
+
type sendMsgSetUserWebsiteParams = {
|
|
216
|
+
value: MsgSetUserWebsite,
|
|
229
217
|
fee?: StdFee,
|
|
230
218
|
memo?: string
|
|
231
219
|
};
|
|
232
220
|
|
|
233
|
-
type
|
|
234
|
-
value:
|
|
221
|
+
type sendMsgCommitCouncilResponseParams = {
|
|
222
|
+
value: MsgCommitCouncilResponse,
|
|
235
223
|
fee?: StdFee,
|
|
236
224
|
memo?: string
|
|
237
225
|
};
|
|
238
226
|
|
|
239
|
-
type
|
|
240
|
-
value:
|
|
227
|
+
type sendMsgAddContributorToCollectionParams = {
|
|
228
|
+
value: MsgAddContributorToCollection,
|
|
241
229
|
fee?: StdFee,
|
|
242
230
|
memo?: string
|
|
243
231
|
};
|
|
244
232
|
|
|
245
|
-
type
|
|
246
|
-
value:
|
|
233
|
+
type sendMsgRemoveContributorFromCollectionParams = {
|
|
234
|
+
value: MsgRemoveContributorFromCollection,
|
|
247
235
|
fee?: StdFee,
|
|
248
236
|
memo?: string
|
|
249
237
|
};
|
|
250
238
|
|
|
251
|
-
type
|
|
252
|
-
value:
|
|
239
|
+
type sendMsgAddArtworkParams = {
|
|
240
|
+
value: MsgAddArtwork,
|
|
253
241
|
fee?: StdFee,
|
|
254
242
|
memo?: string
|
|
255
243
|
};
|
|
256
244
|
|
|
257
|
-
type
|
|
258
|
-
value:
|
|
245
|
+
type sendMsgTransferCardParams = {
|
|
246
|
+
value: MsgTransferCard,
|
|
259
247
|
fee?: StdFee,
|
|
260
248
|
memo?: string
|
|
261
249
|
};
|
|
262
250
|
|
|
263
|
-
type
|
|
264
|
-
value:
|
|
251
|
+
type sendMsgSetCollectionArtistParams = {
|
|
252
|
+
value: MsgSetCollectionArtist,
|
|
265
253
|
fee?: StdFee,
|
|
266
254
|
memo?: string
|
|
267
255
|
};
|
|
268
256
|
|
|
269
|
-
type
|
|
270
|
-
value:
|
|
257
|
+
type sendMsgSetCardRarityParams = {
|
|
258
|
+
value: MsgSetCardRarity,
|
|
271
259
|
fee?: StdFee,
|
|
272
260
|
memo?: string
|
|
273
261
|
};
|
|
274
262
|
|
|
275
|
-
type
|
|
276
|
-
value:
|
|
263
|
+
type sendMsgAddStoryToCollectionParams = {
|
|
264
|
+
value: MsgAddStoryToCollection,
|
|
277
265
|
fee?: StdFee,
|
|
278
266
|
memo?: string
|
|
279
267
|
};
|
|
280
268
|
|
|
281
|
-
type
|
|
282
|
-
value:
|
|
269
|
+
type sendMsgSetUserBiographyParams = {
|
|
270
|
+
value: MsgSetUserBiography,
|
|
283
271
|
fee?: StdFee,
|
|
284
272
|
memo?: string
|
|
285
273
|
};
|
|
286
274
|
|
|
287
|
-
type
|
|
288
|
-
value:
|
|
275
|
+
type sendMsgChangeArtistParams = {
|
|
276
|
+
value: MsgChangeArtist,
|
|
289
277
|
fee?: StdFee,
|
|
290
278
|
memo?: string
|
|
291
279
|
};
|
|
292
280
|
|
|
293
|
-
type
|
|
294
|
-
value:
|
|
281
|
+
type sendMsgRegisterForCouncilParams = {
|
|
282
|
+
value: MsgRegisterForCouncil,
|
|
295
283
|
fee?: StdFee,
|
|
296
284
|
memo?: string
|
|
297
285
|
};
|
|
@@ -308,165 +296,169 @@ type sendMsgBuyCollectionParams = {
|
|
|
308
296
|
memo?: string
|
|
309
297
|
};
|
|
310
298
|
|
|
311
|
-
type
|
|
312
|
-
value:
|
|
299
|
+
type sendMsgRewokeCouncilRegistrationParams = {
|
|
300
|
+
value: MsgRewokeCouncilRegistration,
|
|
313
301
|
fee?: StdFee,
|
|
314
302
|
memo?: string
|
|
315
303
|
};
|
|
316
304
|
|
|
317
|
-
type
|
|
318
|
-
value:
|
|
305
|
+
type sendMsgDonateToCardParams = {
|
|
306
|
+
value: MsgDonateToCard,
|
|
319
307
|
fee?: StdFee,
|
|
320
308
|
memo?: string
|
|
321
309
|
};
|
|
322
310
|
|
|
323
|
-
|
|
324
|
-
type msgTransferCardParams = {
|
|
325
|
-
value: MsgTransferCard,
|
|
326
|
-
};
|
|
327
|
-
|
|
328
|
-
type msgOpenBoosterPackParams = {
|
|
329
|
-
value: MsgOpenBoosterPack,
|
|
330
|
-
};
|
|
331
|
-
|
|
332
|
-
type msgCreateCollectionParams = {
|
|
311
|
+
type sendMsgCreateCollectionParams = {
|
|
333
312
|
value: MsgCreateCollection,
|
|
313
|
+
fee?: StdFee,
|
|
314
|
+
memo?: string
|
|
334
315
|
};
|
|
335
316
|
|
|
336
|
-
type
|
|
337
|
-
value:
|
|
317
|
+
type sendMsgSubmitCollectionProposalParams = {
|
|
318
|
+
value: MsgSubmitCollectionProposal,
|
|
319
|
+
fee?: StdFee,
|
|
320
|
+
memo?: string
|
|
338
321
|
};
|
|
339
322
|
|
|
340
|
-
|
|
341
|
-
|
|
323
|
+
|
|
324
|
+
type msgBuyCardParams = {
|
|
325
|
+
value: MsgBuyCard,
|
|
342
326
|
};
|
|
343
327
|
|
|
344
|
-
type
|
|
345
|
-
value:
|
|
328
|
+
type msgVoteCardParams = {
|
|
329
|
+
value: MsgVoteCard,
|
|
346
330
|
};
|
|
347
331
|
|
|
348
|
-
type
|
|
349
|
-
value:
|
|
332
|
+
type msgRemoveCardFromCollectionParams = {
|
|
333
|
+
value: MsgRemoveCardFromCollection,
|
|
350
334
|
};
|
|
351
335
|
|
|
352
|
-
type
|
|
353
|
-
value:
|
|
336
|
+
type msgSetCollectionStoryWriterParams = {
|
|
337
|
+
value: MsgSetCollectionStoryWriter,
|
|
354
338
|
};
|
|
355
339
|
|
|
356
340
|
type msgReportMatchParams = {
|
|
357
341
|
value: MsgReportMatch,
|
|
358
342
|
};
|
|
359
343
|
|
|
360
|
-
type
|
|
361
|
-
value:
|
|
344
|
+
type msgMultiVoteCardParams = {
|
|
345
|
+
value: MsgMultiVoteCard,
|
|
362
346
|
};
|
|
363
347
|
|
|
364
|
-
type
|
|
365
|
-
value:
|
|
348
|
+
type msgSetProfileCardParams = {
|
|
349
|
+
value: MsgSetProfileCard,
|
|
366
350
|
};
|
|
367
351
|
|
|
368
|
-
type
|
|
369
|
-
value:
|
|
352
|
+
type msgSaveCardContentParams = {
|
|
353
|
+
value: MsgSaveCardContent,
|
|
370
354
|
};
|
|
371
355
|
|
|
372
|
-
type
|
|
373
|
-
value:
|
|
356
|
+
type msgConfirmMatchParams = {
|
|
357
|
+
value: MsgConfirmMatch,
|
|
374
358
|
};
|
|
375
359
|
|
|
376
360
|
type msgTransferBoosterPackParams = {
|
|
377
361
|
value: MsgTransferBoosterPack,
|
|
378
362
|
};
|
|
379
363
|
|
|
380
|
-
type
|
|
381
|
-
value:
|
|
364
|
+
type msgRemoveSellOfferParams = {
|
|
365
|
+
value: MsgRemoveSellOffer,
|
|
382
366
|
};
|
|
383
367
|
|
|
384
|
-
type
|
|
385
|
-
value:
|
|
368
|
+
type msgApointMatchReporterParams = {
|
|
369
|
+
value: MsgApointMatchReporter,
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
type msgCreateCouncilParams = {
|
|
373
|
+
value: MsgCreateCouncil,
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
type msgRestartCouncilParams = {
|
|
377
|
+
value: MsgRestartCouncil,
|
|
386
378
|
};
|
|
387
379
|
|
|
388
380
|
type msgAddArtworkToCollectionParams = {
|
|
389
381
|
value: MsgAddArtworkToCollection,
|
|
390
382
|
};
|
|
391
383
|
|
|
392
|
-
type
|
|
393
|
-
value:
|
|
384
|
+
type msgOpenBoosterPackParams = {
|
|
385
|
+
value: MsgOpenBoosterPack,
|
|
394
386
|
};
|
|
395
387
|
|
|
396
|
-
type
|
|
397
|
-
value:
|
|
388
|
+
type msgCreateSellOfferParams = {
|
|
389
|
+
value: MsgCreateSellOffer,
|
|
398
390
|
};
|
|
399
391
|
|
|
400
392
|
type msgFinalizeCollectionParams = {
|
|
401
393
|
value: MsgFinalizeCollection,
|
|
402
394
|
};
|
|
403
395
|
|
|
404
|
-
type
|
|
405
|
-
value:
|
|
396
|
+
type msgSubmitMatchReporterProposalParams = {
|
|
397
|
+
value: MsgSubmitMatchReporterProposal,
|
|
406
398
|
};
|
|
407
399
|
|
|
408
|
-
type
|
|
409
|
-
value:
|
|
400
|
+
type msgSubmitCopyrightProposalParams = {
|
|
401
|
+
value: MsgSubmitCopyrightProposal,
|
|
410
402
|
};
|
|
411
403
|
|
|
412
|
-
type
|
|
413
|
-
value:
|
|
404
|
+
type msgCreateuserParams = {
|
|
405
|
+
value: MsgCreateuser,
|
|
414
406
|
};
|
|
415
407
|
|
|
416
|
-
type
|
|
417
|
-
value:
|
|
408
|
+
type msgRevealCouncilResponseParams = {
|
|
409
|
+
value: MsgRevealCouncilResponse,
|
|
418
410
|
};
|
|
419
411
|
|
|
420
|
-
type
|
|
421
|
-
value:
|
|
412
|
+
type msgAddCardToCollectionParams = {
|
|
413
|
+
value: MsgAddCardToCollection,
|
|
422
414
|
};
|
|
423
415
|
|
|
424
|
-
type
|
|
425
|
-
value:
|
|
416
|
+
type msgSetUserWebsiteParams = {
|
|
417
|
+
value: MsgSetUserWebsite,
|
|
426
418
|
};
|
|
427
419
|
|
|
428
|
-
type
|
|
429
|
-
value:
|
|
420
|
+
type msgCommitCouncilResponseParams = {
|
|
421
|
+
value: MsgCommitCouncilResponse,
|
|
430
422
|
};
|
|
431
423
|
|
|
432
|
-
type
|
|
433
|
-
value:
|
|
424
|
+
type msgAddContributorToCollectionParams = {
|
|
425
|
+
value: MsgAddContributorToCollection,
|
|
434
426
|
};
|
|
435
427
|
|
|
436
|
-
type
|
|
437
|
-
value:
|
|
428
|
+
type msgRemoveContributorFromCollectionParams = {
|
|
429
|
+
value: MsgRemoveContributorFromCollection,
|
|
438
430
|
};
|
|
439
431
|
|
|
440
|
-
type
|
|
441
|
-
value:
|
|
432
|
+
type msgAddArtworkParams = {
|
|
433
|
+
value: MsgAddArtwork,
|
|
442
434
|
};
|
|
443
435
|
|
|
444
|
-
type
|
|
445
|
-
value:
|
|
436
|
+
type msgTransferCardParams = {
|
|
437
|
+
value: MsgTransferCard,
|
|
446
438
|
};
|
|
447
439
|
|
|
448
|
-
type
|
|
449
|
-
value:
|
|
440
|
+
type msgSetCollectionArtistParams = {
|
|
441
|
+
value: MsgSetCollectionArtist,
|
|
450
442
|
};
|
|
451
443
|
|
|
452
|
-
type
|
|
453
|
-
value:
|
|
444
|
+
type msgSetCardRarityParams = {
|
|
445
|
+
value: MsgSetCardRarity,
|
|
454
446
|
};
|
|
455
447
|
|
|
456
|
-
type
|
|
457
|
-
value:
|
|
448
|
+
type msgAddStoryToCollectionParams = {
|
|
449
|
+
value: MsgAddStoryToCollection,
|
|
458
450
|
};
|
|
459
451
|
|
|
460
|
-
type
|
|
461
|
-
value:
|
|
452
|
+
type msgSetUserBiographyParams = {
|
|
453
|
+
value: MsgSetUserBiography,
|
|
462
454
|
};
|
|
463
455
|
|
|
464
|
-
type
|
|
465
|
-
value:
|
|
456
|
+
type msgChangeArtistParams = {
|
|
457
|
+
value: MsgChangeArtist,
|
|
466
458
|
};
|
|
467
459
|
|
|
468
|
-
type
|
|
469
|
-
value:
|
|
460
|
+
type msgRegisterForCouncilParams = {
|
|
461
|
+
value: MsgRegisterForCouncil,
|
|
470
462
|
};
|
|
471
463
|
|
|
472
464
|
type msgBuyCardSchemeParams = {
|
|
@@ -477,12 +469,20 @@ type msgBuyCollectionParams = {
|
|
|
477
469
|
value: MsgBuyCollection,
|
|
478
470
|
};
|
|
479
471
|
|
|
480
|
-
type
|
|
481
|
-
value:
|
|
472
|
+
type msgRewokeCouncilRegistrationParams = {
|
|
473
|
+
value: MsgRewokeCouncilRegistration,
|
|
482
474
|
};
|
|
483
475
|
|
|
484
|
-
type
|
|
485
|
-
value:
|
|
476
|
+
type msgDonateToCardParams = {
|
|
477
|
+
value: MsgDonateToCard,
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
type msgCreateCollectionParams = {
|
|
481
|
+
value: MsgCreateCollection,
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
type msgSubmitCollectionProposalParams = {
|
|
485
|
+
value: MsgSubmitCollectionProposal,
|
|
486
486
|
};
|
|
487
487
|
|
|
488
488
|
|
|
@@ -515,227 +515,199 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
515
515
|
|
|
516
516
|
return {
|
|
517
517
|
|
|
518
|
-
async
|
|
519
|
-
if (!signer) {
|
|
520
|
-
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.')
|
|
521
|
-
}
|
|
522
|
-
try {
|
|
523
|
-
const { address } = (await signer.getAccounts())[0];
|
|
524
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
525
|
-
let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) })
|
|
526
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
527
|
-
} catch (e: any) {
|
|
528
|
-
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: '+ e.message)
|
|
529
|
-
}
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
async sendMsgOpenBoosterPack({ value, fee, memo }: sendMsgOpenBoosterPackParams): Promise<DeliverTxResponse> {
|
|
533
|
-
if (!signer) {
|
|
534
|
-
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
535
|
-
}
|
|
536
|
-
try {
|
|
537
|
-
const { address } = (await signer.getAccounts())[0];
|
|
538
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
539
|
-
let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) })
|
|
540
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
541
|
-
} catch (e: any) {
|
|
542
|
-
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
543
|
-
}
|
|
544
|
-
},
|
|
545
|
-
|
|
546
|
-
async sendMsgCreateCollection({ value, fee, memo }: sendMsgCreateCollectionParams): Promise<DeliverTxResponse> {
|
|
518
|
+
async sendMsgBuyCard({ value, fee, memo }: sendMsgBuyCardParams): Promise<DeliverTxResponse> {
|
|
547
519
|
if (!signer) {
|
|
548
|
-
throw new Error('TxClient:
|
|
520
|
+
throw new Error('TxClient:sendMsgBuyCard: Unable to sign Tx. Signer is not present.')
|
|
549
521
|
}
|
|
550
522
|
try {
|
|
551
523
|
const { address } = (await signer.getAccounts())[0];
|
|
552
524
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
553
|
-
let msg = this.
|
|
525
|
+
let msg = this.msgBuyCard({ value: MsgBuyCard.fromPartial(value) })
|
|
554
526
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
555
527
|
} catch (e: any) {
|
|
556
|
-
throw new Error('TxClient:
|
|
528
|
+
throw new Error('TxClient:sendMsgBuyCard: Could not broadcast Tx: '+ e.message)
|
|
557
529
|
}
|
|
558
530
|
},
|
|
559
531
|
|
|
560
|
-
async
|
|
532
|
+
async sendMsgVoteCard({ value, fee, memo }: sendMsgVoteCardParams): Promise<DeliverTxResponse> {
|
|
561
533
|
if (!signer) {
|
|
562
|
-
throw new Error('TxClient:
|
|
534
|
+
throw new Error('TxClient:sendMsgVoteCard: Unable to sign Tx. Signer is not present.')
|
|
563
535
|
}
|
|
564
536
|
try {
|
|
565
537
|
const { address } = (await signer.getAccounts())[0];
|
|
566
538
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
567
|
-
let msg = this.
|
|
539
|
+
let msg = this.msgVoteCard({ value: MsgVoteCard.fromPartial(value) })
|
|
568
540
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
569
541
|
} catch (e: any) {
|
|
570
|
-
throw new Error('TxClient:
|
|
542
|
+
throw new Error('TxClient:sendMsgVoteCard: Could not broadcast Tx: '+ e.message)
|
|
571
543
|
}
|
|
572
544
|
},
|
|
573
545
|
|
|
574
|
-
async
|
|
546
|
+
async sendMsgRemoveCardFromCollection({ value, fee, memo }: sendMsgRemoveCardFromCollectionParams): Promise<DeliverTxResponse> {
|
|
575
547
|
if (!signer) {
|
|
576
|
-
throw new Error('TxClient:
|
|
548
|
+
throw new Error('TxClient:sendMsgRemoveCardFromCollection: Unable to sign Tx. Signer is not present.')
|
|
577
549
|
}
|
|
578
550
|
try {
|
|
579
551
|
const { address } = (await signer.getAccounts())[0];
|
|
580
552
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
581
|
-
let msg = this.
|
|
553
|
+
let msg = this.msgRemoveCardFromCollection({ value: MsgRemoveCardFromCollection.fromPartial(value) })
|
|
582
554
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
583
555
|
} catch (e: any) {
|
|
584
|
-
throw new Error('TxClient:
|
|
556
|
+
throw new Error('TxClient:sendMsgRemoveCardFromCollection: Could not broadcast Tx: '+ e.message)
|
|
585
557
|
}
|
|
586
558
|
},
|
|
587
559
|
|
|
588
|
-
async
|
|
560
|
+
async sendMsgSetCollectionStoryWriter({ value, fee, memo }: sendMsgSetCollectionStoryWriterParams): Promise<DeliverTxResponse> {
|
|
589
561
|
if (!signer) {
|
|
590
|
-
throw new Error('TxClient:
|
|
562
|
+
throw new Error('TxClient:sendMsgSetCollectionStoryWriter: Unable to sign Tx. Signer is not present.')
|
|
591
563
|
}
|
|
592
564
|
try {
|
|
593
565
|
const { address } = (await signer.getAccounts())[0];
|
|
594
566
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
595
|
-
let msg = this.
|
|
567
|
+
let msg = this.msgSetCollectionStoryWriter({ value: MsgSetCollectionStoryWriter.fromPartial(value) })
|
|
596
568
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
597
569
|
} catch (e: any) {
|
|
598
|
-
throw new Error('TxClient:
|
|
570
|
+
throw new Error('TxClient:sendMsgSetCollectionStoryWriter: Could not broadcast Tx: '+ e.message)
|
|
599
571
|
}
|
|
600
572
|
},
|
|
601
573
|
|
|
602
|
-
async
|
|
574
|
+
async sendMsgReportMatch({ value, fee, memo }: sendMsgReportMatchParams): Promise<DeliverTxResponse> {
|
|
603
575
|
if (!signer) {
|
|
604
|
-
throw new Error('TxClient:
|
|
576
|
+
throw new Error('TxClient:sendMsgReportMatch: Unable to sign Tx. Signer is not present.')
|
|
605
577
|
}
|
|
606
578
|
try {
|
|
607
579
|
const { address } = (await signer.getAccounts())[0];
|
|
608
580
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
609
|
-
let msg = this.
|
|
581
|
+
let msg = this.msgReportMatch({ value: MsgReportMatch.fromPartial(value) })
|
|
610
582
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
611
583
|
} catch (e: any) {
|
|
612
|
-
throw new Error('TxClient:
|
|
584
|
+
throw new Error('TxClient:sendMsgReportMatch: Could not broadcast Tx: '+ e.message)
|
|
613
585
|
}
|
|
614
586
|
},
|
|
615
587
|
|
|
616
|
-
async
|
|
588
|
+
async sendMsgMultiVoteCard({ value, fee, memo }: sendMsgMultiVoteCardParams): Promise<DeliverTxResponse> {
|
|
617
589
|
if (!signer) {
|
|
618
|
-
throw new Error('TxClient:
|
|
590
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Unable to sign Tx. Signer is not present.')
|
|
619
591
|
}
|
|
620
592
|
try {
|
|
621
593
|
const { address } = (await signer.getAccounts())[0];
|
|
622
594
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
623
|
-
let msg = this.
|
|
595
|
+
let msg = this.msgMultiVoteCard({ value: MsgMultiVoteCard.fromPartial(value) })
|
|
624
596
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
625
597
|
} catch (e: any) {
|
|
626
|
-
throw new Error('TxClient:
|
|
598
|
+
throw new Error('TxClient:sendMsgMultiVoteCard: Could not broadcast Tx: '+ e.message)
|
|
627
599
|
}
|
|
628
600
|
},
|
|
629
601
|
|
|
630
|
-
async
|
|
602
|
+
async sendMsgSetProfileCard({ value, fee, memo }: sendMsgSetProfileCardParams): Promise<DeliverTxResponse> {
|
|
631
603
|
if (!signer) {
|
|
632
|
-
throw new Error('TxClient:
|
|
604
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Unable to sign Tx. Signer is not present.')
|
|
633
605
|
}
|
|
634
606
|
try {
|
|
635
607
|
const { address } = (await signer.getAccounts())[0];
|
|
636
608
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
637
|
-
let msg = this.
|
|
609
|
+
let msg = this.msgSetProfileCard({ value: MsgSetProfileCard.fromPartial(value) })
|
|
638
610
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
639
611
|
} catch (e: any) {
|
|
640
|
-
throw new Error('TxClient:
|
|
612
|
+
throw new Error('TxClient:sendMsgSetProfileCard: Could not broadcast Tx: '+ e.message)
|
|
641
613
|
}
|
|
642
614
|
},
|
|
643
615
|
|
|
644
|
-
async
|
|
616
|
+
async sendMsgSaveCardContent({ value, fee, memo }: sendMsgSaveCardContentParams): Promise<DeliverTxResponse> {
|
|
645
617
|
if (!signer) {
|
|
646
|
-
throw new Error('TxClient:
|
|
618
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Unable to sign Tx. Signer is not present.')
|
|
647
619
|
}
|
|
648
620
|
try {
|
|
649
621
|
const { address } = (await signer.getAccounts())[0];
|
|
650
622
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
651
|
-
let msg = this.
|
|
623
|
+
let msg = this.msgSaveCardContent({ value: MsgSaveCardContent.fromPartial(value) })
|
|
652
624
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
653
625
|
} catch (e: any) {
|
|
654
|
-
throw new Error('TxClient:
|
|
626
|
+
throw new Error('TxClient:sendMsgSaveCardContent: Could not broadcast Tx: '+ e.message)
|
|
655
627
|
}
|
|
656
628
|
},
|
|
657
629
|
|
|
658
|
-
async
|
|
630
|
+
async sendMsgConfirmMatch({ value, fee, memo }: sendMsgConfirmMatchParams): Promise<DeliverTxResponse> {
|
|
659
631
|
if (!signer) {
|
|
660
|
-
throw new Error('TxClient:
|
|
632
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Unable to sign Tx. Signer is not present.')
|
|
661
633
|
}
|
|
662
634
|
try {
|
|
663
635
|
const { address } = (await signer.getAccounts())[0];
|
|
664
636
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
665
|
-
let msg = this.
|
|
637
|
+
let msg = this.msgConfirmMatch({ value: MsgConfirmMatch.fromPartial(value) })
|
|
666
638
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
667
639
|
} catch (e: any) {
|
|
668
|
-
throw new Error('TxClient:
|
|
640
|
+
throw new Error('TxClient:sendMsgConfirmMatch: Could not broadcast Tx: '+ e.message)
|
|
669
641
|
}
|
|
670
642
|
},
|
|
671
643
|
|
|
672
|
-
async
|
|
644
|
+
async sendMsgTransferBoosterPack({ value, fee, memo }: sendMsgTransferBoosterPackParams): Promise<DeliverTxResponse> {
|
|
673
645
|
if (!signer) {
|
|
674
|
-
throw new Error('TxClient:
|
|
646
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
675
647
|
}
|
|
676
648
|
try {
|
|
677
649
|
const { address } = (await signer.getAccounts())[0];
|
|
678
650
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
679
|
-
let msg = this.
|
|
651
|
+
let msg = this.msgTransferBoosterPack({ value: MsgTransferBoosterPack.fromPartial(value) })
|
|
680
652
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
681
653
|
} catch (e: any) {
|
|
682
|
-
throw new Error('TxClient:
|
|
654
|
+
throw new Error('TxClient:sendMsgTransferBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
683
655
|
}
|
|
684
656
|
},
|
|
685
657
|
|
|
686
|
-
async
|
|
658
|
+
async sendMsgRemoveSellOffer({ value, fee, memo }: sendMsgRemoveSellOfferParams): Promise<DeliverTxResponse> {
|
|
687
659
|
if (!signer) {
|
|
688
|
-
throw new Error('TxClient:
|
|
660
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Unable to sign Tx. Signer is not present.')
|
|
689
661
|
}
|
|
690
662
|
try {
|
|
691
663
|
const { address } = (await signer.getAccounts())[0];
|
|
692
664
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
693
|
-
let msg = this.
|
|
665
|
+
let msg = this.msgRemoveSellOffer({ value: MsgRemoveSellOffer.fromPartial(value) })
|
|
694
666
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
695
667
|
} catch (e: any) {
|
|
696
|
-
throw new Error('TxClient:
|
|
668
|
+
throw new Error('TxClient:sendMsgRemoveSellOffer: Could not broadcast Tx: '+ e.message)
|
|
697
669
|
}
|
|
698
670
|
},
|
|
699
671
|
|
|
700
|
-
async
|
|
672
|
+
async sendMsgApointMatchReporter({ value, fee, memo }: sendMsgApointMatchReporterParams): Promise<DeliverTxResponse> {
|
|
701
673
|
if (!signer) {
|
|
702
|
-
throw new Error('TxClient:
|
|
674
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Unable to sign Tx. Signer is not present.')
|
|
703
675
|
}
|
|
704
676
|
try {
|
|
705
677
|
const { address } = (await signer.getAccounts())[0];
|
|
706
678
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
707
|
-
let msg = this.
|
|
679
|
+
let msg = this.msgApointMatchReporter({ value: MsgApointMatchReporter.fromPartial(value) })
|
|
708
680
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
709
681
|
} catch (e: any) {
|
|
710
|
-
throw new Error('TxClient:
|
|
682
|
+
throw new Error('TxClient:sendMsgApointMatchReporter: Could not broadcast Tx: '+ e.message)
|
|
711
683
|
}
|
|
712
684
|
},
|
|
713
685
|
|
|
714
|
-
async
|
|
686
|
+
async sendMsgCreateCouncil({ value, fee, memo }: sendMsgCreateCouncilParams): Promise<DeliverTxResponse> {
|
|
715
687
|
if (!signer) {
|
|
716
|
-
throw new Error('TxClient:
|
|
688
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Unable to sign Tx. Signer is not present.')
|
|
717
689
|
}
|
|
718
690
|
try {
|
|
719
691
|
const { address } = (await signer.getAccounts())[0];
|
|
720
692
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
721
|
-
let msg = this.
|
|
693
|
+
let msg = this.msgCreateCouncil({ value: MsgCreateCouncil.fromPartial(value) })
|
|
722
694
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
723
695
|
} catch (e: any) {
|
|
724
|
-
throw new Error('TxClient:
|
|
696
|
+
throw new Error('TxClient:sendMsgCreateCouncil: Could not broadcast Tx: '+ e.message)
|
|
725
697
|
}
|
|
726
698
|
},
|
|
727
699
|
|
|
728
|
-
async
|
|
700
|
+
async sendMsgRestartCouncil({ value, fee, memo }: sendMsgRestartCouncilParams): Promise<DeliverTxResponse> {
|
|
729
701
|
if (!signer) {
|
|
730
|
-
throw new Error('TxClient:
|
|
702
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Unable to sign Tx. Signer is not present.')
|
|
731
703
|
}
|
|
732
704
|
try {
|
|
733
705
|
const { address } = (await signer.getAccounts())[0];
|
|
734
706
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
735
|
-
let msg = this.
|
|
707
|
+
let msg = this.msgRestartCouncil({ value: MsgRestartCouncil.fromPartial(value) })
|
|
736
708
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
737
709
|
} catch (e: any) {
|
|
738
|
-
throw new Error('TxClient:
|
|
710
|
+
throw new Error('TxClient:sendMsgRestartCouncil: Could not broadcast Tx: '+ e.message)
|
|
739
711
|
}
|
|
740
712
|
},
|
|
741
713
|
|
|
@@ -753,31 +725,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
753
725
|
}
|
|
754
726
|
},
|
|
755
727
|
|
|
756
|
-
async
|
|
728
|
+
async sendMsgOpenBoosterPack({ value, fee, memo }: sendMsgOpenBoosterPackParams): Promise<DeliverTxResponse> {
|
|
757
729
|
if (!signer) {
|
|
758
|
-
throw new Error('TxClient:
|
|
730
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Unable to sign Tx. Signer is not present.')
|
|
759
731
|
}
|
|
760
732
|
try {
|
|
761
733
|
const { address } = (await signer.getAccounts())[0];
|
|
762
734
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
763
|
-
let msg = this.
|
|
735
|
+
let msg = this.msgOpenBoosterPack({ value: MsgOpenBoosterPack.fromPartial(value) })
|
|
764
736
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
765
737
|
} catch (e: any) {
|
|
766
|
-
throw new Error('TxClient:
|
|
738
|
+
throw new Error('TxClient:sendMsgOpenBoosterPack: Could not broadcast Tx: '+ e.message)
|
|
767
739
|
}
|
|
768
740
|
},
|
|
769
741
|
|
|
770
|
-
async
|
|
742
|
+
async sendMsgCreateSellOffer({ value, fee, memo }: sendMsgCreateSellOfferParams): Promise<DeliverTxResponse> {
|
|
771
743
|
if (!signer) {
|
|
772
|
-
throw new Error('TxClient:
|
|
744
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Unable to sign Tx. Signer is not present.')
|
|
773
745
|
}
|
|
774
746
|
try {
|
|
775
747
|
const { address } = (await signer.getAccounts())[0];
|
|
776
748
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
777
|
-
let msg = this.
|
|
749
|
+
let msg = this.msgCreateSellOffer({ value: MsgCreateSellOffer.fromPartial(value) })
|
|
778
750
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
779
751
|
} catch (e: any) {
|
|
780
|
-
throw new Error('TxClient:
|
|
752
|
+
throw new Error('TxClient:sendMsgCreateSellOffer: Could not broadcast Tx: '+ e.message)
|
|
781
753
|
}
|
|
782
754
|
},
|
|
783
755
|
|
|
@@ -795,241 +767,241 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
795
767
|
}
|
|
796
768
|
},
|
|
797
769
|
|
|
798
|
-
async
|
|
770
|
+
async sendMsgSubmitMatchReporterProposal({ value, fee, memo }: sendMsgSubmitMatchReporterProposalParams): Promise<DeliverTxResponse> {
|
|
799
771
|
if (!signer) {
|
|
800
|
-
throw new Error('TxClient:
|
|
772
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Unable to sign Tx. Signer is not present.')
|
|
801
773
|
}
|
|
802
774
|
try {
|
|
803
775
|
const { address } = (await signer.getAccounts())[0];
|
|
804
776
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
805
|
-
let msg = this.
|
|
777
|
+
let msg = this.msgSubmitMatchReporterProposal({ value: MsgSubmitMatchReporterProposal.fromPartial(value) })
|
|
806
778
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
807
779
|
} catch (e: any) {
|
|
808
|
-
throw new Error('TxClient:
|
|
780
|
+
throw new Error('TxClient:sendMsgSubmitMatchReporterProposal: Could not broadcast Tx: '+ e.message)
|
|
809
781
|
}
|
|
810
782
|
},
|
|
811
783
|
|
|
812
|
-
async
|
|
784
|
+
async sendMsgSubmitCopyrightProposal({ value, fee, memo }: sendMsgSubmitCopyrightProposalParams): Promise<DeliverTxResponse> {
|
|
813
785
|
if (!signer) {
|
|
814
|
-
throw new Error('TxClient:
|
|
786
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Unable to sign Tx. Signer is not present.')
|
|
815
787
|
}
|
|
816
788
|
try {
|
|
817
789
|
const { address } = (await signer.getAccounts())[0];
|
|
818
790
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
819
|
-
let msg = this.
|
|
791
|
+
let msg = this.msgSubmitCopyrightProposal({ value: MsgSubmitCopyrightProposal.fromPartial(value) })
|
|
820
792
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
821
793
|
} catch (e: any) {
|
|
822
|
-
throw new Error('TxClient:
|
|
794
|
+
throw new Error('TxClient:sendMsgSubmitCopyrightProposal: Could not broadcast Tx: '+ e.message)
|
|
823
795
|
}
|
|
824
796
|
},
|
|
825
797
|
|
|
826
|
-
async
|
|
798
|
+
async sendMsgCreateuser({ value, fee, memo }: sendMsgCreateuserParams): Promise<DeliverTxResponse> {
|
|
827
799
|
if (!signer) {
|
|
828
|
-
throw new Error('TxClient:
|
|
800
|
+
throw new Error('TxClient:sendMsgCreateuser: Unable to sign Tx. Signer is not present.')
|
|
829
801
|
}
|
|
830
802
|
try {
|
|
831
803
|
const { address } = (await signer.getAccounts())[0];
|
|
832
804
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
833
|
-
let msg = this.
|
|
805
|
+
let msg = this.msgCreateuser({ value: MsgCreateuser.fromPartial(value) })
|
|
834
806
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
835
807
|
} catch (e: any) {
|
|
836
|
-
throw new Error('TxClient:
|
|
808
|
+
throw new Error('TxClient:sendMsgCreateuser: Could not broadcast Tx: '+ e.message)
|
|
837
809
|
}
|
|
838
810
|
},
|
|
839
811
|
|
|
840
|
-
async
|
|
812
|
+
async sendMsgRevealCouncilResponse({ value, fee, memo }: sendMsgRevealCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
841
813
|
if (!signer) {
|
|
842
|
-
throw new Error('TxClient:
|
|
814
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
843
815
|
}
|
|
844
816
|
try {
|
|
845
817
|
const { address } = (await signer.getAccounts())[0];
|
|
846
818
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
847
|
-
let msg = this.
|
|
819
|
+
let msg = this.msgRevealCouncilResponse({ value: MsgRevealCouncilResponse.fromPartial(value) })
|
|
848
820
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
849
821
|
} catch (e: any) {
|
|
850
|
-
throw new Error('TxClient:
|
|
822
|
+
throw new Error('TxClient:sendMsgRevealCouncilResponse: Could not broadcast Tx: '+ e.message)
|
|
851
823
|
}
|
|
852
824
|
},
|
|
853
825
|
|
|
854
|
-
async
|
|
826
|
+
async sendMsgAddCardToCollection({ value, fee, memo }: sendMsgAddCardToCollectionParams): Promise<DeliverTxResponse> {
|
|
855
827
|
if (!signer) {
|
|
856
|
-
throw new Error('TxClient:
|
|
828
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Unable to sign Tx. Signer is not present.')
|
|
857
829
|
}
|
|
858
830
|
try {
|
|
859
831
|
const { address } = (await signer.getAccounts())[0];
|
|
860
832
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
861
|
-
let msg = this.
|
|
833
|
+
let msg = this.msgAddCardToCollection({ value: MsgAddCardToCollection.fromPartial(value) })
|
|
862
834
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
863
835
|
} catch (e: any) {
|
|
864
|
-
throw new Error('TxClient:
|
|
836
|
+
throw new Error('TxClient:sendMsgAddCardToCollection: Could not broadcast Tx: '+ e.message)
|
|
865
837
|
}
|
|
866
838
|
},
|
|
867
839
|
|
|
868
|
-
async
|
|
840
|
+
async sendMsgSetUserWebsite({ value, fee, memo }: sendMsgSetUserWebsiteParams): Promise<DeliverTxResponse> {
|
|
869
841
|
if (!signer) {
|
|
870
|
-
throw new Error('TxClient:
|
|
842
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Unable to sign Tx. Signer is not present.')
|
|
871
843
|
}
|
|
872
844
|
try {
|
|
873
845
|
const { address } = (await signer.getAccounts())[0];
|
|
874
846
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
875
|
-
let msg = this.
|
|
847
|
+
let msg = this.msgSetUserWebsite({ value: MsgSetUserWebsite.fromPartial(value) })
|
|
876
848
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
877
849
|
} catch (e: any) {
|
|
878
|
-
throw new Error('TxClient:
|
|
850
|
+
throw new Error('TxClient:sendMsgSetUserWebsite: Could not broadcast Tx: '+ e.message)
|
|
879
851
|
}
|
|
880
852
|
},
|
|
881
853
|
|
|
882
|
-
async
|
|
854
|
+
async sendMsgCommitCouncilResponse({ value, fee, memo }: sendMsgCommitCouncilResponseParams): Promise<DeliverTxResponse> {
|
|
883
855
|
if (!signer) {
|
|
884
|
-
throw new Error('TxClient:
|
|
856
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Unable to sign Tx. Signer is not present.')
|
|
885
857
|
}
|
|
886
858
|
try {
|
|
887
859
|
const { address } = (await signer.getAccounts())[0];
|
|
888
860
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
889
|
-
let msg = this.
|
|
861
|
+
let msg = this.msgCommitCouncilResponse({ value: MsgCommitCouncilResponse.fromPartial(value) })
|
|
890
862
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
891
863
|
} catch (e: any) {
|
|
892
|
-
throw new Error('TxClient:
|
|
864
|
+
throw new Error('TxClient:sendMsgCommitCouncilResponse: Could not broadcast Tx: '+ e.message)
|
|
893
865
|
}
|
|
894
866
|
},
|
|
895
867
|
|
|
896
|
-
async
|
|
868
|
+
async sendMsgAddContributorToCollection({ value, fee, memo }: sendMsgAddContributorToCollectionParams): Promise<DeliverTxResponse> {
|
|
897
869
|
if (!signer) {
|
|
898
|
-
throw new Error('TxClient:
|
|
870
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Unable to sign Tx. Signer is not present.')
|
|
899
871
|
}
|
|
900
872
|
try {
|
|
901
873
|
const { address } = (await signer.getAccounts())[0];
|
|
902
874
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
903
|
-
let msg = this.
|
|
875
|
+
let msg = this.msgAddContributorToCollection({ value: MsgAddContributorToCollection.fromPartial(value) })
|
|
904
876
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
905
877
|
} catch (e: any) {
|
|
906
|
-
throw new Error('TxClient:
|
|
878
|
+
throw new Error('TxClient:sendMsgAddContributorToCollection: Could not broadcast Tx: '+ e.message)
|
|
907
879
|
}
|
|
908
880
|
},
|
|
909
881
|
|
|
910
|
-
async
|
|
882
|
+
async sendMsgRemoveContributorFromCollection({ value, fee, memo }: sendMsgRemoveContributorFromCollectionParams): Promise<DeliverTxResponse> {
|
|
911
883
|
if (!signer) {
|
|
912
|
-
throw new Error('TxClient:
|
|
884
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Unable to sign Tx. Signer is not present.')
|
|
913
885
|
}
|
|
914
886
|
try {
|
|
915
887
|
const { address } = (await signer.getAccounts())[0];
|
|
916
888
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
917
|
-
let msg = this.
|
|
889
|
+
let msg = this.msgRemoveContributorFromCollection({ value: MsgRemoveContributorFromCollection.fromPartial(value) })
|
|
918
890
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
919
891
|
} catch (e: any) {
|
|
920
|
-
throw new Error('TxClient:
|
|
892
|
+
throw new Error('TxClient:sendMsgRemoveContributorFromCollection: Could not broadcast Tx: '+ e.message)
|
|
921
893
|
}
|
|
922
894
|
},
|
|
923
895
|
|
|
924
|
-
async
|
|
896
|
+
async sendMsgAddArtwork({ value, fee, memo }: sendMsgAddArtworkParams): Promise<DeliverTxResponse> {
|
|
925
897
|
if (!signer) {
|
|
926
|
-
throw new Error('TxClient:
|
|
898
|
+
throw new Error('TxClient:sendMsgAddArtwork: Unable to sign Tx. Signer is not present.')
|
|
927
899
|
}
|
|
928
900
|
try {
|
|
929
901
|
const { address } = (await signer.getAccounts())[0];
|
|
930
902
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
931
|
-
let msg = this.
|
|
903
|
+
let msg = this.msgAddArtwork({ value: MsgAddArtwork.fromPartial(value) })
|
|
932
904
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
933
905
|
} catch (e: any) {
|
|
934
|
-
throw new Error('TxClient:
|
|
906
|
+
throw new Error('TxClient:sendMsgAddArtwork: Could not broadcast Tx: '+ e.message)
|
|
935
907
|
}
|
|
936
908
|
},
|
|
937
909
|
|
|
938
|
-
async
|
|
910
|
+
async sendMsgTransferCard({ value, fee, memo }: sendMsgTransferCardParams): Promise<DeliverTxResponse> {
|
|
939
911
|
if (!signer) {
|
|
940
|
-
throw new Error('TxClient:
|
|
912
|
+
throw new Error('TxClient:sendMsgTransferCard: Unable to sign Tx. Signer is not present.')
|
|
941
913
|
}
|
|
942
914
|
try {
|
|
943
915
|
const { address } = (await signer.getAccounts())[0];
|
|
944
916
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
945
|
-
let msg = this.
|
|
917
|
+
let msg = this.msgTransferCard({ value: MsgTransferCard.fromPartial(value) })
|
|
946
918
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
947
919
|
} catch (e: any) {
|
|
948
|
-
throw new Error('TxClient:
|
|
920
|
+
throw new Error('TxClient:sendMsgTransferCard: Could not broadcast Tx: '+ e.message)
|
|
949
921
|
}
|
|
950
922
|
},
|
|
951
923
|
|
|
952
|
-
async
|
|
924
|
+
async sendMsgSetCollectionArtist({ value, fee, memo }: sendMsgSetCollectionArtistParams): Promise<DeliverTxResponse> {
|
|
953
925
|
if (!signer) {
|
|
954
|
-
throw new Error('TxClient:
|
|
926
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Unable to sign Tx. Signer is not present.')
|
|
955
927
|
}
|
|
956
928
|
try {
|
|
957
929
|
const { address } = (await signer.getAccounts())[0];
|
|
958
930
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
959
|
-
let msg = this.
|
|
931
|
+
let msg = this.msgSetCollectionArtist({ value: MsgSetCollectionArtist.fromPartial(value) })
|
|
960
932
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
961
933
|
} catch (e: any) {
|
|
962
|
-
throw new Error('TxClient:
|
|
934
|
+
throw new Error('TxClient:sendMsgSetCollectionArtist: Could not broadcast Tx: '+ e.message)
|
|
963
935
|
}
|
|
964
936
|
},
|
|
965
937
|
|
|
966
|
-
async
|
|
938
|
+
async sendMsgSetCardRarity({ value, fee, memo }: sendMsgSetCardRarityParams): Promise<DeliverTxResponse> {
|
|
967
939
|
if (!signer) {
|
|
968
|
-
throw new Error('TxClient:
|
|
940
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Unable to sign Tx. Signer is not present.')
|
|
969
941
|
}
|
|
970
942
|
try {
|
|
971
943
|
const { address } = (await signer.getAccounts())[0];
|
|
972
944
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
973
|
-
let msg = this.
|
|
945
|
+
let msg = this.msgSetCardRarity({ value: MsgSetCardRarity.fromPartial(value) })
|
|
974
946
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
975
947
|
} catch (e: any) {
|
|
976
|
-
throw new Error('TxClient:
|
|
948
|
+
throw new Error('TxClient:sendMsgSetCardRarity: Could not broadcast Tx: '+ e.message)
|
|
977
949
|
}
|
|
978
950
|
},
|
|
979
951
|
|
|
980
|
-
async
|
|
952
|
+
async sendMsgAddStoryToCollection({ value, fee, memo }: sendMsgAddStoryToCollectionParams): Promise<DeliverTxResponse> {
|
|
981
953
|
if (!signer) {
|
|
982
|
-
throw new Error('TxClient:
|
|
954
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Unable to sign Tx. Signer is not present.')
|
|
983
955
|
}
|
|
984
956
|
try {
|
|
985
957
|
const { address } = (await signer.getAccounts())[0];
|
|
986
958
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
987
|
-
let msg = this.
|
|
959
|
+
let msg = this.msgAddStoryToCollection({ value: MsgAddStoryToCollection.fromPartial(value) })
|
|
988
960
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
989
961
|
} catch (e: any) {
|
|
990
|
-
throw new Error('TxClient:
|
|
962
|
+
throw new Error('TxClient:sendMsgAddStoryToCollection: Could not broadcast Tx: '+ e.message)
|
|
991
963
|
}
|
|
992
964
|
},
|
|
993
965
|
|
|
994
|
-
async
|
|
966
|
+
async sendMsgSetUserBiography({ value, fee, memo }: sendMsgSetUserBiographyParams): Promise<DeliverTxResponse> {
|
|
995
967
|
if (!signer) {
|
|
996
|
-
throw new Error('TxClient:
|
|
968
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Unable to sign Tx. Signer is not present.')
|
|
997
969
|
}
|
|
998
970
|
try {
|
|
999
971
|
const { address } = (await signer.getAccounts())[0];
|
|
1000
972
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1001
|
-
let msg = this.
|
|
973
|
+
let msg = this.msgSetUserBiography({ value: MsgSetUserBiography.fromPartial(value) })
|
|
1002
974
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1003
975
|
} catch (e: any) {
|
|
1004
|
-
throw new Error('TxClient:
|
|
976
|
+
throw new Error('TxClient:sendMsgSetUserBiography: Could not broadcast Tx: '+ e.message)
|
|
1005
977
|
}
|
|
1006
978
|
},
|
|
1007
979
|
|
|
1008
|
-
async
|
|
980
|
+
async sendMsgChangeArtist({ value, fee, memo }: sendMsgChangeArtistParams): Promise<DeliverTxResponse> {
|
|
1009
981
|
if (!signer) {
|
|
1010
|
-
throw new Error('TxClient:
|
|
982
|
+
throw new Error('TxClient:sendMsgChangeArtist: Unable to sign Tx. Signer is not present.')
|
|
1011
983
|
}
|
|
1012
984
|
try {
|
|
1013
985
|
const { address } = (await signer.getAccounts())[0];
|
|
1014
986
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1015
|
-
let msg = this.
|
|
987
|
+
let msg = this.msgChangeArtist({ value: MsgChangeArtist.fromPartial(value) })
|
|
1016
988
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1017
989
|
} catch (e: any) {
|
|
1018
|
-
throw new Error('TxClient:
|
|
990
|
+
throw new Error('TxClient:sendMsgChangeArtist: Could not broadcast Tx: '+ e.message)
|
|
1019
991
|
}
|
|
1020
992
|
},
|
|
1021
993
|
|
|
1022
|
-
async
|
|
994
|
+
async sendMsgRegisterForCouncil({ value, fee, memo }: sendMsgRegisterForCouncilParams): Promise<DeliverTxResponse> {
|
|
1023
995
|
if (!signer) {
|
|
1024
|
-
throw new Error('TxClient:
|
|
996
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Unable to sign Tx. Signer is not present.')
|
|
1025
997
|
}
|
|
1026
998
|
try {
|
|
1027
999
|
const { address } = (await signer.getAccounts())[0];
|
|
1028
1000
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1029
|
-
let msg = this.
|
|
1001
|
+
let msg = this.msgRegisterForCouncil({ value: MsgRegisterForCouncil.fromPartial(value) })
|
|
1030
1002
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1031
1003
|
} catch (e: any) {
|
|
1032
|
-
throw new Error('TxClient:
|
|
1004
|
+
throw new Error('TxClient:sendMsgRegisterForCouncil: Could not broadcast Tx: '+ e.message)
|
|
1033
1005
|
}
|
|
1034
1006
|
},
|
|
1035
1007
|
|
|
@@ -1061,216 +1033,244 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
1061
1033
|
}
|
|
1062
1034
|
},
|
|
1063
1035
|
|
|
1064
|
-
async
|
|
1036
|
+
async sendMsgRewokeCouncilRegistration({ value, fee, memo }: sendMsgRewokeCouncilRegistrationParams): Promise<DeliverTxResponse> {
|
|
1037
|
+
if (!signer) {
|
|
1038
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Unable to sign Tx. Signer is not present.')
|
|
1039
|
+
}
|
|
1040
|
+
try {
|
|
1041
|
+
const { address } = (await signer.getAccounts())[0];
|
|
1042
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1043
|
+
let msg = this.msgRewokeCouncilRegistration({ value: MsgRewokeCouncilRegistration.fromPartial(value) })
|
|
1044
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1045
|
+
} catch (e: any) {
|
|
1046
|
+
throw new Error('TxClient:sendMsgRewokeCouncilRegistration: Could not broadcast Tx: '+ e.message)
|
|
1047
|
+
}
|
|
1048
|
+
},
|
|
1049
|
+
|
|
1050
|
+
async sendMsgDonateToCard({ value, fee, memo }: sendMsgDonateToCardParams): Promise<DeliverTxResponse> {
|
|
1051
|
+
if (!signer) {
|
|
1052
|
+
throw new Error('TxClient:sendMsgDonateToCard: Unable to sign Tx. Signer is not present.')
|
|
1053
|
+
}
|
|
1054
|
+
try {
|
|
1055
|
+
const { address } = (await signer.getAccounts())[0];
|
|
1056
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1057
|
+
let msg = this.msgDonateToCard({ value: MsgDonateToCard.fromPartial(value) })
|
|
1058
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1059
|
+
} catch (e: any) {
|
|
1060
|
+
throw new Error('TxClient:sendMsgDonateToCard: Could not broadcast Tx: '+ e.message)
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
|
|
1064
|
+
async sendMsgCreateCollection({ value, fee, memo }: sendMsgCreateCollectionParams): Promise<DeliverTxResponse> {
|
|
1065
1065
|
if (!signer) {
|
|
1066
|
-
throw new Error('TxClient:
|
|
1066
|
+
throw new Error('TxClient:sendMsgCreateCollection: Unable to sign Tx. Signer is not present.')
|
|
1067
1067
|
}
|
|
1068
1068
|
try {
|
|
1069
1069
|
const { address } = (await signer.getAccounts())[0];
|
|
1070
1070
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1071
|
-
let msg = this.
|
|
1071
|
+
let msg = this.msgCreateCollection({ value: MsgCreateCollection.fromPartial(value) })
|
|
1072
1072
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1073
1073
|
} catch (e: any) {
|
|
1074
|
-
throw new Error('TxClient:
|
|
1074
|
+
throw new Error('TxClient:sendMsgCreateCollection: Could not broadcast Tx: '+ e.message)
|
|
1075
1075
|
}
|
|
1076
1076
|
},
|
|
1077
1077
|
|
|
1078
|
-
async
|
|
1078
|
+
async sendMsgSubmitCollectionProposal({ value, fee, memo }: sendMsgSubmitCollectionProposalParams): Promise<DeliverTxResponse> {
|
|
1079
1079
|
if (!signer) {
|
|
1080
|
-
throw new Error('TxClient:
|
|
1080
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Unable to sign Tx. Signer is not present.')
|
|
1081
1081
|
}
|
|
1082
1082
|
try {
|
|
1083
1083
|
const { address } = (await signer.getAccounts())[0];
|
|
1084
1084
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
1085
|
-
let msg = this.
|
|
1085
|
+
let msg = this.msgSubmitCollectionProposal({ value: MsgSubmitCollectionProposal.fromPartial(value) })
|
|
1086
1086
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
1087
1087
|
} catch (e: any) {
|
|
1088
|
-
throw new Error('TxClient:
|
|
1088
|
+
throw new Error('TxClient:sendMsgSubmitCollectionProposal: Could not broadcast Tx: '+ e.message)
|
|
1089
1089
|
}
|
|
1090
1090
|
},
|
|
1091
1091
|
|
|
1092
1092
|
|
|
1093
|
-
|
|
1093
|
+
msgBuyCard({ value }: msgBuyCardParams): EncodeObject {
|
|
1094
1094
|
try {
|
|
1095
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1095
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCard", value: MsgBuyCard.fromPartial( value ) }
|
|
1096
1096
|
} catch (e: any) {
|
|
1097
|
-
throw new Error('TxClient:
|
|
1097
|
+
throw new Error('TxClient:MsgBuyCard: Could not create message: ' + e.message)
|
|
1098
1098
|
}
|
|
1099
1099
|
},
|
|
1100
1100
|
|
|
1101
|
-
|
|
1101
|
+
msgVoteCard({ value }: msgVoteCardParams): EncodeObject {
|
|
1102
1102
|
try {
|
|
1103
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1103
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgVoteCard", value: MsgVoteCard.fromPartial( value ) }
|
|
1104
1104
|
} catch (e: any) {
|
|
1105
|
-
throw new Error('TxClient:
|
|
1105
|
+
throw new Error('TxClient:MsgVoteCard: Could not create message: ' + e.message)
|
|
1106
1106
|
}
|
|
1107
1107
|
},
|
|
1108
1108
|
|
|
1109
|
-
|
|
1109
|
+
msgRemoveCardFromCollection({ value }: msgRemoveCardFromCollectionParams): EncodeObject {
|
|
1110
1110
|
try {
|
|
1111
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1111
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveCardFromCollection", value: MsgRemoveCardFromCollection.fromPartial( value ) }
|
|
1112
1112
|
} catch (e: any) {
|
|
1113
|
-
throw new Error('TxClient:
|
|
1113
|
+
throw new Error('TxClient:MsgRemoveCardFromCollection: Could not create message: ' + e.message)
|
|
1114
1114
|
}
|
|
1115
1115
|
},
|
|
1116
1116
|
|
|
1117
|
-
|
|
1117
|
+
msgSetCollectionStoryWriter({ value }: msgSetCollectionStoryWriterParams): EncodeObject {
|
|
1118
1118
|
try {
|
|
1119
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1119
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCollectionStoryWriter", value: MsgSetCollectionStoryWriter.fromPartial( value ) }
|
|
1120
1120
|
} catch (e: any) {
|
|
1121
|
-
throw new Error('TxClient:
|
|
1121
|
+
throw new Error('TxClient:MsgSetCollectionStoryWriter: Could not create message: ' + e.message)
|
|
1122
1122
|
}
|
|
1123
1123
|
},
|
|
1124
1124
|
|
|
1125
|
-
|
|
1125
|
+
msgReportMatch({ value }: msgReportMatchParams): EncodeObject {
|
|
1126
1126
|
try {
|
|
1127
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1127
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgReportMatch", value: MsgReportMatch.fromPartial( value ) }
|
|
1128
1128
|
} catch (e: any) {
|
|
1129
|
-
throw new Error('TxClient:
|
|
1129
|
+
throw new Error('TxClient:MsgReportMatch: Could not create message: ' + e.message)
|
|
1130
1130
|
}
|
|
1131
1131
|
},
|
|
1132
1132
|
|
|
1133
|
-
|
|
1133
|
+
msgMultiVoteCard({ value }: msgMultiVoteCardParams): EncodeObject {
|
|
1134
1134
|
try {
|
|
1135
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1135
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgMultiVoteCard", value: MsgMultiVoteCard.fromPartial( value ) }
|
|
1136
1136
|
} catch (e: any) {
|
|
1137
|
-
throw new Error('TxClient:
|
|
1137
|
+
throw new Error('TxClient:MsgMultiVoteCard: Could not create message: ' + e.message)
|
|
1138
1138
|
}
|
|
1139
1139
|
},
|
|
1140
1140
|
|
|
1141
|
-
|
|
1141
|
+
msgSetProfileCard({ value }: msgSetProfileCardParams): EncodeObject {
|
|
1142
1142
|
try {
|
|
1143
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1143
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetProfileCard", value: MsgSetProfileCard.fromPartial( value ) }
|
|
1144
1144
|
} catch (e: any) {
|
|
1145
|
-
throw new Error('TxClient:
|
|
1145
|
+
throw new Error('TxClient:MsgSetProfileCard: Could not create message: ' + e.message)
|
|
1146
1146
|
}
|
|
1147
1147
|
},
|
|
1148
1148
|
|
|
1149
|
-
|
|
1149
|
+
msgSaveCardContent({ value }: msgSaveCardContentParams): EncodeObject {
|
|
1150
1150
|
try {
|
|
1151
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1151
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSaveCardContent", value: MsgSaveCardContent.fromPartial( value ) }
|
|
1152
1152
|
} catch (e: any) {
|
|
1153
|
-
throw new Error('TxClient:
|
|
1153
|
+
throw new Error('TxClient:MsgSaveCardContent: Could not create message: ' + e.message)
|
|
1154
1154
|
}
|
|
1155
1155
|
},
|
|
1156
1156
|
|
|
1157
|
-
|
|
1157
|
+
msgConfirmMatch({ value }: msgConfirmMatchParams): EncodeObject {
|
|
1158
1158
|
try {
|
|
1159
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1159
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgConfirmMatch", value: MsgConfirmMatch.fromPartial( value ) }
|
|
1160
1160
|
} catch (e: any) {
|
|
1161
|
-
throw new Error('TxClient:
|
|
1161
|
+
throw new Error('TxClient:MsgConfirmMatch: Could not create message: ' + e.message)
|
|
1162
1162
|
}
|
|
1163
1163
|
},
|
|
1164
1164
|
|
|
1165
|
-
|
|
1165
|
+
msgTransferBoosterPack({ value }: msgTransferBoosterPackParams): EncodeObject {
|
|
1166
1166
|
try {
|
|
1167
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1167
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferBoosterPack", value: MsgTransferBoosterPack.fromPartial( value ) }
|
|
1168
1168
|
} catch (e: any) {
|
|
1169
|
-
throw new Error('TxClient:
|
|
1169
|
+
throw new Error('TxClient:MsgTransferBoosterPack: Could not create message: ' + e.message)
|
|
1170
1170
|
}
|
|
1171
1171
|
},
|
|
1172
1172
|
|
|
1173
|
-
|
|
1173
|
+
msgRemoveSellOffer({ value }: msgRemoveSellOfferParams): EncodeObject {
|
|
1174
1174
|
try {
|
|
1175
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1175
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveSellOffer", value: MsgRemoveSellOffer.fromPartial( value ) }
|
|
1176
1176
|
} catch (e: any) {
|
|
1177
|
-
throw new Error('TxClient:
|
|
1177
|
+
throw new Error('TxClient:MsgRemoveSellOffer: Could not create message: ' + e.message)
|
|
1178
1178
|
}
|
|
1179
1179
|
},
|
|
1180
1180
|
|
|
1181
|
-
|
|
1181
|
+
msgApointMatchReporter({ value }: msgApointMatchReporterParams): EncodeObject {
|
|
1182
1182
|
try {
|
|
1183
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1183
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgApointMatchReporter", value: MsgApointMatchReporter.fromPartial( value ) }
|
|
1184
1184
|
} catch (e: any) {
|
|
1185
|
-
throw new Error('TxClient:
|
|
1185
|
+
throw new Error('TxClient:MsgApointMatchReporter: Could not create message: ' + e.message)
|
|
1186
1186
|
}
|
|
1187
1187
|
},
|
|
1188
1188
|
|
|
1189
|
-
|
|
1189
|
+
msgCreateCouncil({ value }: msgCreateCouncilParams): EncodeObject {
|
|
1190
1190
|
try {
|
|
1191
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1191
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCouncil", value: MsgCreateCouncil.fromPartial( value ) }
|
|
1192
1192
|
} catch (e: any) {
|
|
1193
|
-
throw new Error('TxClient:
|
|
1193
|
+
throw new Error('TxClient:MsgCreateCouncil: Could not create message: ' + e.message)
|
|
1194
1194
|
}
|
|
1195
1195
|
},
|
|
1196
1196
|
|
|
1197
|
-
|
|
1197
|
+
msgRestartCouncil({ value }: msgRestartCouncilParams): EncodeObject {
|
|
1198
1198
|
try {
|
|
1199
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1199
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRestartCouncil", value: MsgRestartCouncil.fromPartial( value ) }
|
|
1200
1200
|
} catch (e: any) {
|
|
1201
|
-
throw new Error('TxClient:
|
|
1201
|
+
throw new Error('TxClient:MsgRestartCouncil: Could not create message: ' + e.message)
|
|
1202
1202
|
}
|
|
1203
1203
|
},
|
|
1204
1204
|
|
|
1205
|
-
|
|
1205
|
+
msgAddArtworkToCollection({ value }: msgAddArtworkToCollectionParams): EncodeObject {
|
|
1206
1206
|
try {
|
|
1207
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1207
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtworkToCollection", value: MsgAddArtworkToCollection.fromPartial( value ) }
|
|
1208
1208
|
} catch (e: any) {
|
|
1209
|
-
throw new Error('TxClient:
|
|
1209
|
+
throw new Error('TxClient:MsgAddArtworkToCollection: Could not create message: ' + e.message)
|
|
1210
1210
|
}
|
|
1211
1211
|
},
|
|
1212
1212
|
|
|
1213
|
-
|
|
1213
|
+
msgOpenBoosterPack({ value }: msgOpenBoosterPackParams): EncodeObject {
|
|
1214
1214
|
try {
|
|
1215
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1215
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgOpenBoosterPack", value: MsgOpenBoosterPack.fromPartial( value ) }
|
|
1216
1216
|
} catch (e: any) {
|
|
1217
|
-
throw new Error('TxClient:
|
|
1217
|
+
throw new Error('TxClient:MsgOpenBoosterPack: Could not create message: ' + e.message)
|
|
1218
1218
|
}
|
|
1219
1219
|
},
|
|
1220
1220
|
|
|
1221
|
-
|
|
1221
|
+
msgCreateSellOffer({ value }: msgCreateSellOfferParams): EncodeObject {
|
|
1222
1222
|
try {
|
|
1223
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1223
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateSellOffer", value: MsgCreateSellOffer.fromPartial( value ) }
|
|
1224
1224
|
} catch (e: any) {
|
|
1225
|
-
throw new Error('TxClient:
|
|
1225
|
+
throw new Error('TxClient:MsgCreateSellOffer: Could not create message: ' + e.message)
|
|
1226
1226
|
}
|
|
1227
1227
|
},
|
|
1228
1228
|
|
|
1229
|
-
|
|
1229
|
+
msgFinalizeCollection({ value }: msgFinalizeCollectionParams): EncodeObject {
|
|
1230
1230
|
try {
|
|
1231
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1231
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgFinalizeCollection", value: MsgFinalizeCollection.fromPartial( value ) }
|
|
1232
1232
|
} catch (e: any) {
|
|
1233
|
-
throw new Error('TxClient:
|
|
1233
|
+
throw new Error('TxClient:MsgFinalizeCollection: Could not create message: ' + e.message)
|
|
1234
1234
|
}
|
|
1235
1235
|
},
|
|
1236
1236
|
|
|
1237
|
-
|
|
1237
|
+
msgSubmitMatchReporterProposal({ value }: msgSubmitMatchReporterProposalParams): EncodeObject {
|
|
1238
1238
|
try {
|
|
1239
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1239
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitMatchReporterProposal", value: MsgSubmitMatchReporterProposal.fromPartial( value ) }
|
|
1240
1240
|
} catch (e: any) {
|
|
1241
|
-
throw new Error('TxClient:
|
|
1241
|
+
throw new Error('TxClient:MsgSubmitMatchReporterProposal: Could not create message: ' + e.message)
|
|
1242
1242
|
}
|
|
1243
1243
|
},
|
|
1244
1244
|
|
|
1245
|
-
|
|
1245
|
+
msgSubmitCopyrightProposal({ value }: msgSubmitCopyrightProposalParams): EncodeObject {
|
|
1246
1246
|
try {
|
|
1247
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1247
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCopyrightProposal", value: MsgSubmitCopyrightProposal.fromPartial( value ) }
|
|
1248
1248
|
} catch (e: any) {
|
|
1249
|
-
throw new Error('TxClient:
|
|
1249
|
+
throw new Error('TxClient:MsgSubmitCopyrightProposal: Could not create message: ' + e.message)
|
|
1250
1250
|
}
|
|
1251
1251
|
},
|
|
1252
1252
|
|
|
1253
|
-
|
|
1253
|
+
msgCreateuser({ value }: msgCreateuserParams): EncodeObject {
|
|
1254
1254
|
try {
|
|
1255
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1255
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateuser", value: MsgCreateuser.fromPartial( value ) }
|
|
1256
1256
|
} catch (e: any) {
|
|
1257
|
-
throw new Error('TxClient:
|
|
1257
|
+
throw new Error('TxClient:MsgCreateuser: Could not create message: ' + e.message)
|
|
1258
1258
|
}
|
|
1259
1259
|
},
|
|
1260
1260
|
|
|
1261
|
-
|
|
1261
|
+
msgRevealCouncilResponse({ value }: msgRevealCouncilResponseParams): EncodeObject {
|
|
1262
1262
|
try {
|
|
1263
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1263
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRevealCouncilResponse", value: MsgRevealCouncilResponse.fromPartial( value ) }
|
|
1264
1264
|
} catch (e: any) {
|
|
1265
|
-
throw new Error('TxClient:
|
|
1265
|
+
throw new Error('TxClient:MsgRevealCouncilResponse: Could not create message: ' + e.message)
|
|
1266
1266
|
}
|
|
1267
1267
|
},
|
|
1268
1268
|
|
|
1269
|
-
|
|
1269
|
+
msgAddCardToCollection({ value }: msgAddCardToCollectionParams): EncodeObject {
|
|
1270
1270
|
try {
|
|
1271
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1271
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddCardToCollection", value: MsgAddCardToCollection.fromPartial( value ) }
|
|
1272
1272
|
} catch (e: any) {
|
|
1273
|
-
throw new Error('TxClient:
|
|
1273
|
+
throw new Error('TxClient:MsgAddCardToCollection: Could not create message: ' + e.message)
|
|
1274
1274
|
}
|
|
1275
1275
|
},
|
|
1276
1276
|
|
|
@@ -1282,139 +1282,139 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
1282
1282
|
}
|
|
1283
1283
|
},
|
|
1284
1284
|
|
|
1285
|
-
|
|
1285
|
+
msgCommitCouncilResponse({ value }: msgCommitCouncilResponseParams): EncodeObject {
|
|
1286
1286
|
try {
|
|
1287
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1287
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCommitCouncilResponse", value: MsgCommitCouncilResponse.fromPartial( value ) }
|
|
1288
1288
|
} catch (e: any) {
|
|
1289
|
-
throw new Error('TxClient:
|
|
1289
|
+
throw new Error('TxClient:MsgCommitCouncilResponse: Could not create message: ' + e.message)
|
|
1290
1290
|
}
|
|
1291
1291
|
},
|
|
1292
1292
|
|
|
1293
|
-
|
|
1293
|
+
msgAddContributorToCollection({ value }: msgAddContributorToCollectionParams): EncodeObject {
|
|
1294
1294
|
try {
|
|
1295
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1295
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddContributorToCollection", value: MsgAddContributorToCollection.fromPartial( value ) }
|
|
1296
1296
|
} catch (e: any) {
|
|
1297
|
-
throw new Error('TxClient:
|
|
1297
|
+
throw new Error('TxClient:MsgAddContributorToCollection: Could not create message: ' + e.message)
|
|
1298
1298
|
}
|
|
1299
1299
|
},
|
|
1300
1300
|
|
|
1301
|
-
|
|
1301
|
+
msgRemoveContributorFromCollection({ value }: msgRemoveContributorFromCollectionParams): EncodeObject {
|
|
1302
1302
|
try {
|
|
1303
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1303
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRemoveContributorFromCollection", value: MsgRemoveContributorFromCollection.fromPartial( value ) }
|
|
1304
1304
|
} catch (e: any) {
|
|
1305
|
-
throw new Error('TxClient:
|
|
1305
|
+
throw new Error('TxClient:MsgRemoveContributorFromCollection: Could not create message: ' + e.message)
|
|
1306
1306
|
}
|
|
1307
1307
|
},
|
|
1308
1308
|
|
|
1309
|
-
|
|
1309
|
+
msgAddArtwork({ value }: msgAddArtworkParams): EncodeObject {
|
|
1310
1310
|
try {
|
|
1311
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1311
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddArtwork", value: MsgAddArtwork.fromPartial( value ) }
|
|
1312
1312
|
} catch (e: any) {
|
|
1313
|
-
throw new Error('TxClient:
|
|
1313
|
+
throw new Error('TxClient:MsgAddArtwork: Could not create message: ' + e.message)
|
|
1314
1314
|
}
|
|
1315
1315
|
},
|
|
1316
1316
|
|
|
1317
|
-
|
|
1317
|
+
msgTransferCard({ value }: msgTransferCardParams): EncodeObject {
|
|
1318
1318
|
try {
|
|
1319
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1319
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgTransferCard", value: MsgTransferCard.fromPartial( value ) }
|
|
1320
1320
|
} catch (e: any) {
|
|
1321
|
-
throw new Error('TxClient:
|
|
1321
|
+
throw new Error('TxClient:MsgTransferCard: Could not create message: ' + e.message)
|
|
1322
1322
|
}
|
|
1323
1323
|
},
|
|
1324
1324
|
|
|
1325
|
-
|
|
1325
|
+
msgSetCollectionArtist({ value }: msgSetCollectionArtistParams): EncodeObject {
|
|
1326
1326
|
try {
|
|
1327
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1327
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCollectionArtist", value: MsgSetCollectionArtist.fromPartial( value ) }
|
|
1328
1328
|
} catch (e: any) {
|
|
1329
|
-
throw new Error('TxClient:
|
|
1329
|
+
throw new Error('TxClient:MsgSetCollectionArtist: Could not create message: ' + e.message)
|
|
1330
1330
|
}
|
|
1331
1331
|
},
|
|
1332
1332
|
|
|
1333
|
-
|
|
1333
|
+
msgSetCardRarity({ value }: msgSetCardRarityParams): EncodeObject {
|
|
1334
1334
|
try {
|
|
1335
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1335
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetCardRarity", value: MsgSetCardRarity.fromPartial( value ) }
|
|
1336
1336
|
} catch (e: any) {
|
|
1337
|
-
throw new Error('TxClient:
|
|
1337
|
+
throw new Error('TxClient:MsgSetCardRarity: Could not create message: ' + e.message)
|
|
1338
1338
|
}
|
|
1339
1339
|
},
|
|
1340
1340
|
|
|
1341
|
-
|
|
1341
|
+
msgAddStoryToCollection({ value }: msgAddStoryToCollectionParams): EncodeObject {
|
|
1342
1342
|
try {
|
|
1343
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1343
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgAddStoryToCollection", value: MsgAddStoryToCollection.fromPartial( value ) }
|
|
1344
1344
|
} catch (e: any) {
|
|
1345
|
-
throw new Error('TxClient:
|
|
1345
|
+
throw new Error('TxClient:MsgAddStoryToCollection: Could not create message: ' + e.message)
|
|
1346
1346
|
}
|
|
1347
1347
|
},
|
|
1348
1348
|
|
|
1349
|
-
|
|
1349
|
+
msgSetUserBiography({ value }: msgSetUserBiographyParams): EncodeObject {
|
|
1350
1350
|
try {
|
|
1351
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1351
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSetUserBiography", value: MsgSetUserBiography.fromPartial( value ) }
|
|
1352
1352
|
} catch (e: any) {
|
|
1353
|
-
throw new Error('TxClient:
|
|
1353
|
+
throw new Error('TxClient:MsgSetUserBiography: Could not create message: ' + e.message)
|
|
1354
1354
|
}
|
|
1355
1355
|
},
|
|
1356
1356
|
|
|
1357
|
-
|
|
1357
|
+
msgChangeArtist({ value }: msgChangeArtistParams): EncodeObject {
|
|
1358
1358
|
try {
|
|
1359
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1359
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgChangeArtist", value: MsgChangeArtist.fromPartial( value ) }
|
|
1360
1360
|
} catch (e: any) {
|
|
1361
|
-
throw new Error('TxClient:
|
|
1361
|
+
throw new Error('TxClient:MsgChangeArtist: Could not create message: ' + e.message)
|
|
1362
1362
|
}
|
|
1363
1363
|
},
|
|
1364
1364
|
|
|
1365
|
-
|
|
1365
|
+
msgRegisterForCouncil({ value }: msgRegisterForCouncilParams): EncodeObject {
|
|
1366
1366
|
try {
|
|
1367
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1367
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRegisterForCouncil", value: MsgRegisterForCouncil.fromPartial( value ) }
|
|
1368
1368
|
} catch (e: any) {
|
|
1369
|
-
throw new Error('TxClient:
|
|
1369
|
+
throw new Error('TxClient:MsgRegisterForCouncil: Could not create message: ' + e.message)
|
|
1370
1370
|
}
|
|
1371
1371
|
},
|
|
1372
1372
|
|
|
1373
|
-
|
|
1373
|
+
msgBuyCardScheme({ value }: msgBuyCardSchemeParams): EncodeObject {
|
|
1374
1374
|
try {
|
|
1375
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1375
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCardScheme", value: MsgBuyCardScheme.fromPartial( value ) }
|
|
1376
1376
|
} catch (e: any) {
|
|
1377
|
-
throw new Error('TxClient:
|
|
1377
|
+
throw new Error('TxClient:MsgBuyCardScheme: Could not create message: ' + e.message)
|
|
1378
1378
|
}
|
|
1379
1379
|
},
|
|
1380
1380
|
|
|
1381
|
-
|
|
1381
|
+
msgBuyCollection({ value }: msgBuyCollectionParams): EncodeObject {
|
|
1382
1382
|
try {
|
|
1383
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1383
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgBuyCollection", value: MsgBuyCollection.fromPartial( value ) }
|
|
1384
1384
|
} catch (e: any) {
|
|
1385
|
-
throw new Error('TxClient:
|
|
1385
|
+
throw new Error('TxClient:MsgBuyCollection: Could not create message: ' + e.message)
|
|
1386
1386
|
}
|
|
1387
1387
|
},
|
|
1388
1388
|
|
|
1389
|
-
|
|
1389
|
+
msgRewokeCouncilRegistration({ value }: msgRewokeCouncilRegistrationParams): EncodeObject {
|
|
1390
1390
|
try {
|
|
1391
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1391
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgRewokeCouncilRegistration", value: MsgRewokeCouncilRegistration.fromPartial( value ) }
|
|
1392
1392
|
} catch (e: any) {
|
|
1393
|
-
throw new Error('TxClient:
|
|
1393
|
+
throw new Error('TxClient:MsgRewokeCouncilRegistration: Could not create message: ' + e.message)
|
|
1394
1394
|
}
|
|
1395
1395
|
},
|
|
1396
1396
|
|
|
1397
|
-
|
|
1397
|
+
msgDonateToCard({ value }: msgDonateToCardParams): EncodeObject {
|
|
1398
1398
|
try {
|
|
1399
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1399
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgDonateToCard", value: MsgDonateToCard.fromPartial( value ) }
|
|
1400
1400
|
} catch (e: any) {
|
|
1401
|
-
throw new Error('TxClient:
|
|
1401
|
+
throw new Error('TxClient:MsgDonateToCard: Could not create message: ' + e.message)
|
|
1402
1402
|
}
|
|
1403
1403
|
},
|
|
1404
1404
|
|
|
1405
|
-
|
|
1405
|
+
msgCreateCollection({ value }: msgCreateCollectionParams): EncodeObject {
|
|
1406
1406
|
try {
|
|
1407
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1407
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgCreateCollection", value: MsgCreateCollection.fromPartial( value ) }
|
|
1408
1408
|
} catch (e: any) {
|
|
1409
|
-
throw new Error('TxClient:
|
|
1409
|
+
throw new Error('TxClient:MsgCreateCollection: Could not create message: ' + e.message)
|
|
1410
1410
|
}
|
|
1411
1411
|
},
|
|
1412
1412
|
|
|
1413
|
-
|
|
1413
|
+
msgSubmitCollectionProposal({ value }: msgSubmitCollectionProposalParams): EncodeObject {
|
|
1414
1414
|
try {
|
|
1415
|
-
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.
|
|
1415
|
+
return { typeUrl: "/DecentralCardGame.cardchain.cardchain.MsgSubmitCollectionProposal", value: MsgSubmitCollectionProposal.fromPartial( value ) }
|
|
1416
1416
|
} catch (e: any) {
|
|
1417
|
-
throw new Error('TxClient:
|
|
1417
|
+
throw new Error('TxClient:MsgSubmitCollectionProposal: Could not create message: ' + e.message)
|
|
1418
1418
|
}
|
|
1419
1419
|
},
|
|
1420
1420
|
|