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
|
@@ -85,7 +85,7 @@ export const ConsensusParams = {
|
|
|
85
85
|
},
|
|
86
86
|
};
|
|
87
87
|
function createBaseBlockParams() {
|
|
88
|
-
return { maxBytes: 0, maxGas: 0
|
|
88
|
+
return { maxBytes: 0, maxGas: 0 };
|
|
89
89
|
}
|
|
90
90
|
export const BlockParams = {
|
|
91
91
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -95,9 +95,6 @@ export const BlockParams = {
|
|
|
95
95
|
if (message.maxGas !== 0) {
|
|
96
96
|
writer.uint32(16).int64(message.maxGas);
|
|
97
97
|
}
|
|
98
|
-
if (message.timeIotaMs !== 0) {
|
|
99
|
-
writer.uint32(24).int64(message.timeIotaMs);
|
|
100
|
-
}
|
|
101
98
|
return writer;
|
|
102
99
|
},
|
|
103
100
|
decode(input, length) {
|
|
@@ -113,9 +110,6 @@ export const BlockParams = {
|
|
|
113
110
|
case 2:
|
|
114
111
|
message.maxGas = longToNumber(reader.int64());
|
|
115
112
|
break;
|
|
116
|
-
case 3:
|
|
117
|
-
message.timeIotaMs = longToNumber(reader.int64());
|
|
118
|
-
break;
|
|
119
113
|
default:
|
|
120
114
|
reader.skipType(tag & 7);
|
|
121
115
|
break;
|
|
@@ -127,21 +121,18 @@ export const BlockParams = {
|
|
|
127
121
|
return {
|
|
128
122
|
maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
|
|
129
123
|
maxGas: isSet(object.maxGas) ? Number(object.maxGas) : 0,
|
|
130
|
-
timeIotaMs: isSet(object.timeIotaMs) ? Number(object.timeIotaMs) : 0,
|
|
131
124
|
};
|
|
132
125
|
},
|
|
133
126
|
toJSON(message) {
|
|
134
127
|
const obj = {};
|
|
135
128
|
message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
|
|
136
129
|
message.maxGas !== undefined && (obj.maxGas = Math.round(message.maxGas));
|
|
137
|
-
message.timeIotaMs !== undefined && (obj.timeIotaMs = Math.round(message.timeIotaMs));
|
|
138
130
|
return obj;
|
|
139
131
|
},
|
|
140
132
|
fromPartial(object) {
|
|
141
133
|
const message = createBaseBlockParams();
|
|
142
134
|
message.maxBytes = object.maxBytes ?? 0;
|
|
143
135
|
message.maxGas = object.maxGas ?? 0;
|
|
144
|
-
message.timeIotaMs = object.timeIotaMs ?? 0;
|
|
145
136
|
return message;
|
|
146
137
|
},
|
|
147
138
|
};
|
|
@@ -256,12 +247,12 @@ export const ValidatorParams = {
|
|
|
256
247
|
},
|
|
257
248
|
};
|
|
258
249
|
function createBaseVersionParams() {
|
|
259
|
-
return {
|
|
250
|
+
return { app: 0 };
|
|
260
251
|
}
|
|
261
252
|
export const VersionParams = {
|
|
262
253
|
encode(message, writer = _m0.Writer.create()) {
|
|
263
|
-
if (message.
|
|
264
|
-
writer.uint32(8).uint64(message.
|
|
254
|
+
if (message.app !== 0) {
|
|
255
|
+
writer.uint32(8).uint64(message.app);
|
|
265
256
|
}
|
|
266
257
|
return writer;
|
|
267
258
|
},
|
|
@@ -273,7 +264,7 @@ export const VersionParams = {
|
|
|
273
264
|
const tag = reader.uint32();
|
|
274
265
|
switch (tag >>> 3) {
|
|
275
266
|
case 1:
|
|
276
|
-
message.
|
|
267
|
+
message.app = longToNumber(reader.uint64());
|
|
277
268
|
break;
|
|
278
269
|
default:
|
|
279
270
|
reader.skipType(tag & 7);
|
|
@@ -283,16 +274,16 @@ export const VersionParams = {
|
|
|
283
274
|
return message;
|
|
284
275
|
},
|
|
285
276
|
fromJSON(object) {
|
|
286
|
-
return {
|
|
277
|
+
return { app: isSet(object.app) ? Number(object.app) : 0 };
|
|
287
278
|
},
|
|
288
279
|
toJSON(message) {
|
|
289
280
|
const obj = {};
|
|
290
|
-
message.
|
|
281
|
+
message.app !== undefined && (obj.app = Math.round(message.app));
|
|
291
282
|
return obj;
|
|
292
283
|
},
|
|
293
284
|
fromPartial(object) {
|
|
294
285
|
const message = createBaseVersionParams();
|
|
295
|
-
message.
|
|
286
|
+
message.app = object.app ?? 0;
|
|
296
287
|
return message;
|
|
297
288
|
},
|
|
298
289
|
};
|
|
@@ -28,13 +28,6 @@ export interface BlockParams {
|
|
|
28
28
|
* Note: must be greater or equal to -1
|
|
29
29
|
*/
|
|
30
30
|
maxGas: number;
|
|
31
|
-
/**
|
|
32
|
-
* Minimum time increment between consecutive blocks (in milliseconds) If the
|
|
33
|
-
* block header timestamp is ahead of the system clock, decrease this value.
|
|
34
|
-
*
|
|
35
|
-
* Not exposed to the application.
|
|
36
|
-
*/
|
|
37
|
-
timeIotaMs: number;
|
|
38
31
|
}
|
|
39
32
|
|
|
40
33
|
/** EvidenceParams determine how we handle evidence of malfeasance. */
|
|
@@ -74,7 +67,7 @@ export interface ValidatorParams {
|
|
|
74
67
|
|
|
75
68
|
/** VersionParams contains the ABCI application version. */
|
|
76
69
|
export interface VersionParams {
|
|
77
|
-
|
|
70
|
+
app: number;
|
|
78
71
|
}
|
|
79
72
|
|
|
80
73
|
/**
|
|
@@ -175,7 +168,7 @@ export const ConsensusParams = {
|
|
|
175
168
|
};
|
|
176
169
|
|
|
177
170
|
function createBaseBlockParams(): BlockParams {
|
|
178
|
-
return { maxBytes: 0, maxGas: 0
|
|
171
|
+
return { maxBytes: 0, maxGas: 0 };
|
|
179
172
|
}
|
|
180
173
|
|
|
181
174
|
export const BlockParams = {
|
|
@@ -186,9 +179,6 @@ export const BlockParams = {
|
|
|
186
179
|
if (message.maxGas !== 0) {
|
|
187
180
|
writer.uint32(16).int64(message.maxGas);
|
|
188
181
|
}
|
|
189
|
-
if (message.timeIotaMs !== 0) {
|
|
190
|
-
writer.uint32(24).int64(message.timeIotaMs);
|
|
191
|
-
}
|
|
192
182
|
return writer;
|
|
193
183
|
},
|
|
194
184
|
|
|
@@ -205,9 +195,6 @@ export const BlockParams = {
|
|
|
205
195
|
case 2:
|
|
206
196
|
message.maxGas = longToNumber(reader.int64() as Long);
|
|
207
197
|
break;
|
|
208
|
-
case 3:
|
|
209
|
-
message.timeIotaMs = longToNumber(reader.int64() as Long);
|
|
210
|
-
break;
|
|
211
198
|
default:
|
|
212
199
|
reader.skipType(tag & 7);
|
|
213
200
|
break;
|
|
@@ -220,7 +207,6 @@ export const BlockParams = {
|
|
|
220
207
|
return {
|
|
221
208
|
maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
|
|
222
209
|
maxGas: isSet(object.maxGas) ? Number(object.maxGas) : 0,
|
|
223
|
-
timeIotaMs: isSet(object.timeIotaMs) ? Number(object.timeIotaMs) : 0,
|
|
224
210
|
};
|
|
225
211
|
},
|
|
226
212
|
|
|
@@ -228,7 +214,6 @@ export const BlockParams = {
|
|
|
228
214
|
const obj: any = {};
|
|
229
215
|
message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
|
|
230
216
|
message.maxGas !== undefined && (obj.maxGas = Math.round(message.maxGas));
|
|
231
|
-
message.timeIotaMs !== undefined && (obj.timeIotaMs = Math.round(message.timeIotaMs));
|
|
232
217
|
return obj;
|
|
233
218
|
},
|
|
234
219
|
|
|
@@ -236,7 +221,6 @@ export const BlockParams = {
|
|
|
236
221
|
const message = createBaseBlockParams();
|
|
237
222
|
message.maxBytes = object.maxBytes ?? 0;
|
|
238
223
|
message.maxGas = object.maxGas ?? 0;
|
|
239
|
-
message.timeIotaMs = object.timeIotaMs ?? 0;
|
|
240
224
|
return message;
|
|
241
225
|
},
|
|
242
226
|
};
|
|
@@ -363,13 +347,13 @@ export const ValidatorParams = {
|
|
|
363
347
|
};
|
|
364
348
|
|
|
365
349
|
function createBaseVersionParams(): VersionParams {
|
|
366
|
-
return {
|
|
350
|
+
return { app: 0 };
|
|
367
351
|
}
|
|
368
352
|
|
|
369
353
|
export const VersionParams = {
|
|
370
354
|
encode(message: VersionParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
371
|
-
if (message.
|
|
372
|
-
writer.uint32(8).uint64(message.
|
|
355
|
+
if (message.app !== 0) {
|
|
356
|
+
writer.uint32(8).uint64(message.app);
|
|
373
357
|
}
|
|
374
358
|
return writer;
|
|
375
359
|
},
|
|
@@ -382,7 +366,7 @@ export const VersionParams = {
|
|
|
382
366
|
const tag = reader.uint32();
|
|
383
367
|
switch (tag >>> 3) {
|
|
384
368
|
case 1:
|
|
385
|
-
message.
|
|
369
|
+
message.app = longToNumber(reader.uint64() as Long);
|
|
386
370
|
break;
|
|
387
371
|
default:
|
|
388
372
|
reader.skipType(tag & 7);
|
|
@@ -393,18 +377,18 @@ export const VersionParams = {
|
|
|
393
377
|
},
|
|
394
378
|
|
|
395
379
|
fromJSON(object: any): VersionParams {
|
|
396
|
-
return {
|
|
380
|
+
return { app: isSet(object.app) ? Number(object.app) : 0 };
|
|
397
381
|
},
|
|
398
382
|
|
|
399
383
|
toJSON(message: VersionParams): unknown {
|
|
400
384
|
const obj: any = {};
|
|
401
|
-
message.
|
|
385
|
+
message.app !== undefined && (obj.app = Math.round(message.app));
|
|
402
386
|
return obj;
|
|
403
387
|
},
|
|
404
388
|
|
|
405
389
|
fromPartial<I extends Exact<DeepPartial<VersionParams>, I>>(object: I): VersionParams {
|
|
406
390
|
const message = createBaseVersionParams();
|
|
407
|
-
message.
|
|
391
|
+
message.app = object.app ?? 0;
|
|
408
392
|
return message;
|
|
409
393
|
},
|
|
410
394
|
};
|
|
@@ -12,7 +12,7 @@ export const protobufPackage = "cosmos.upgrade.v1beta1";
|
|
|
12
12
|
* Since: cosmos-sdk 0.46
|
|
13
13
|
*/
|
|
14
14
|
export interface MsgSoftwareUpgrade {
|
|
15
|
-
/** authority is the address
|
|
15
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
16
16
|
authority: string;
|
|
17
17
|
/** plan is the upgrade plan. */
|
|
18
18
|
plan: Plan | undefined;
|
|
@@ -32,7 +32,7 @@ export interface MsgSoftwareUpgradeResponse {
|
|
|
32
32
|
* Since: cosmos-sdk 0.46
|
|
33
33
|
*/
|
|
34
34
|
export interface MsgCancelUpgrade {
|
|
35
|
-
/** authority is the address
|
|
35
|
+
/** authority is the address that controls the module (defaults to x/gov unless overwritten). */
|
|
36
36
|
authority: string;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -237,7 +237,7 @@ export interface Msg {
|
|
|
237
237
|
SoftwareUpgrade(request: MsgSoftwareUpgrade): Promise<MsgSoftwareUpgradeResponse>;
|
|
238
238
|
/**
|
|
239
239
|
* CancelUpgrade is a governance operation for cancelling a previously
|
|
240
|
-
*
|
|
240
|
+
* approved software upgrade.
|
|
241
241
|
*
|
|
242
242
|
* Since: cosmos-sdk 0.46
|
|
243
243
|
*/
|
|
@@ -28,10 +28,7 @@ export interface Plan {
|
|
|
28
28
|
time:
|
|
29
29
|
| Date
|
|
30
30
|
| undefined;
|
|
31
|
-
/**
|
|
32
|
-
* The height at which the upgrade must be performed.
|
|
33
|
-
* Only used if Time is not set.
|
|
34
|
-
*/
|
|
31
|
+
/** The height at which the upgrade must be performed. */
|
|
35
32
|
height: number;
|
|
36
33
|
/**
|
|
37
34
|
* Any application specific upgrade info to be included on-chain
|
|
@@ -57,8 +54,11 @@ export interface Plan {
|
|
|
57
54
|
* @deprecated
|
|
58
55
|
*/
|
|
59
56
|
export interface SoftwareUpgradeProposal {
|
|
57
|
+
/** title of the proposal */
|
|
60
58
|
title: string;
|
|
59
|
+
/** description of the proposal */
|
|
61
60
|
description: string;
|
|
61
|
+
/** plan of the proposal */
|
|
62
62
|
plan: Plan | undefined;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -71,7 +71,9 @@ export interface SoftwareUpgradeProposal {
|
|
|
71
71
|
* @deprecated
|
|
72
72
|
*/
|
|
73
73
|
export interface CancelSoftwareUpgradeProposal {
|
|
74
|
+
/** title of the proposal */
|
|
74
75
|
title: string;
|
|
76
|
+
/** description of the proposal */
|
|
75
77
|
description: string;
|
|
76
78
|
}
|
|
77
79
|
|
|
@@ -3,16 +3,16 @@ import { SigningStargateClient } from "@cosmjs/stargate";
|
|
|
3
3
|
import { Registry } from "@cosmjs/proto-signing";
|
|
4
4
|
import { msgTypes } from './registry';
|
|
5
5
|
import { Api } from "./rest";
|
|
6
|
-
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
7
6
|
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
8
7
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
8
|
+
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
9
9
|
import { BaseVestingAccount as typeBaseVestingAccount } from "./types";
|
|
10
10
|
import { ContinuousVestingAccount as typeContinuousVestingAccount } from "./types";
|
|
11
11
|
import { DelayedVestingAccount as typeDelayedVestingAccount } from "./types";
|
|
12
12
|
import { Period as typePeriod } from "./types";
|
|
13
13
|
import { PeriodicVestingAccount as typePeriodicVestingAccount } from "./types";
|
|
14
14
|
import { PermanentLockedAccount as typePermanentLockedAccount } from "./types";
|
|
15
|
-
export {
|
|
15
|
+
export { MsgCreateVestingAccount, MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccount };
|
|
16
16
|
export const registry = new Registry(msgTypes);
|
|
17
17
|
function getStructure(template) {
|
|
18
18
|
const structure = { fields: [] };
|
|
@@ -28,20 +28,6 @@ const defaultFee = {
|
|
|
28
28
|
};
|
|
29
29
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
30
30
|
return {
|
|
31
|
-
async sendMsgCreatePermanentLockedAccount({ value, fee, memo }) {
|
|
32
|
-
if (!signer) {
|
|
33
|
-
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Unable to sign Tx. Signer is not present.');
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
const { address } = (await signer.getAccounts())[0];
|
|
37
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
38
|
-
let msg = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) });
|
|
39
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
40
|
-
}
|
|
41
|
-
catch (e) {
|
|
42
|
-
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: ' + e.message);
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
31
|
async sendMsgCreateVestingAccount({ value, fee, memo }) {
|
|
46
32
|
if (!signer) {
|
|
47
33
|
throw new Error('TxClient:sendMsgCreateVestingAccount: Unable to sign Tx. Signer is not present.');
|
|
@@ -70,12 +56,18 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
70
56
|
throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: ' + e.message);
|
|
71
57
|
}
|
|
72
58
|
},
|
|
73
|
-
|
|
59
|
+
async sendMsgCreatePermanentLockedAccount({ value, fee, memo }) {
|
|
60
|
+
if (!signer) {
|
|
61
|
+
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Unable to sign Tx. Signer is not present.');
|
|
62
|
+
}
|
|
74
63
|
try {
|
|
75
|
-
|
|
64
|
+
const { address } = (await signer.getAccounts())[0];
|
|
65
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
66
|
+
let msg = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) });
|
|
67
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
76
68
|
}
|
|
77
69
|
catch (e) {
|
|
78
|
-
throw new Error('TxClient:
|
|
70
|
+
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: ' + e.message);
|
|
79
71
|
}
|
|
80
72
|
},
|
|
81
73
|
msgCreateVestingAccount({ value }) {
|
|
@@ -94,6 +86,14 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
94
86
|
throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message);
|
|
95
87
|
}
|
|
96
88
|
},
|
|
89
|
+
msgCreatePermanentLockedAccount({ value }) {
|
|
90
|
+
try {
|
|
91
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial(value) };
|
|
92
|
+
}
|
|
93
|
+
catch (e) {
|
|
94
|
+
throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
99
|
export const queryClient = ({ addr: addr } = { addr: "http://localhost:1317" }) => {
|
|
@@ -7,9 +7,9 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
11
10
|
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
12
11
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
12
|
+
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
13
13
|
|
|
14
14
|
import { BaseVestingAccount as typeBaseVestingAccount} from "./types"
|
|
15
15
|
import { ContinuousVestingAccount as typeContinuousVestingAccount} from "./types"
|
|
@@ -18,13 +18,7 @@ import { Period as typePeriod} from "./types"
|
|
|
18
18
|
import { PeriodicVestingAccount as typePeriodicVestingAccount} from "./types"
|
|
19
19
|
import { PermanentLockedAccount as typePermanentLockedAccount} from "./types"
|
|
20
20
|
|
|
21
|
-
export {
|
|
22
|
-
|
|
23
|
-
type sendMsgCreatePermanentLockedAccountParams = {
|
|
24
|
-
value: MsgCreatePermanentLockedAccount,
|
|
25
|
-
fee?: StdFee,
|
|
26
|
-
memo?: string
|
|
27
|
-
};
|
|
21
|
+
export { MsgCreateVestingAccount, MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccount };
|
|
28
22
|
|
|
29
23
|
type sendMsgCreateVestingAccountParams = {
|
|
30
24
|
value: MsgCreateVestingAccount,
|
|
@@ -38,11 +32,13 @@ type sendMsgCreatePeriodicVestingAccountParams = {
|
|
|
38
32
|
memo?: string
|
|
39
33
|
};
|
|
40
34
|
|
|
41
|
-
|
|
42
|
-
type msgCreatePermanentLockedAccountParams = {
|
|
35
|
+
type sendMsgCreatePermanentLockedAccountParams = {
|
|
43
36
|
value: MsgCreatePermanentLockedAccount,
|
|
37
|
+
fee?: StdFee,
|
|
38
|
+
memo?: string
|
|
44
39
|
};
|
|
45
40
|
|
|
41
|
+
|
|
46
42
|
type msgCreateVestingAccountParams = {
|
|
47
43
|
value: MsgCreateVestingAccount,
|
|
48
44
|
};
|
|
@@ -51,6 +47,10 @@ type msgCreatePeriodicVestingAccountParams = {
|
|
|
51
47
|
value: MsgCreatePeriodicVestingAccount,
|
|
52
48
|
};
|
|
53
49
|
|
|
50
|
+
type msgCreatePermanentLockedAccountParams = {
|
|
51
|
+
value: MsgCreatePermanentLockedAccount,
|
|
52
|
+
};
|
|
53
|
+
|
|
54
54
|
|
|
55
55
|
export const registry = new Registry(msgTypes);
|
|
56
56
|
|
|
@@ -81,20 +81,6 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
81
81
|
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
async sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise<DeliverTxResponse> {
|
|
85
|
-
if (!signer) {
|
|
86
|
-
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Unable to sign Tx. Signer is not present.')
|
|
87
|
-
}
|
|
88
|
-
try {
|
|
89
|
-
const { address } = (await signer.getAccounts())[0];
|
|
90
|
-
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
91
|
-
let msg = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) })
|
|
92
|
-
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
93
|
-
} catch (e: any) {
|
|
94
|
-
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: '+ e.message)
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
|
|
98
84
|
async sendMsgCreateVestingAccount({ value, fee, memo }: sendMsgCreateVestingAccountParams): Promise<DeliverTxResponse> {
|
|
99
85
|
if (!signer) {
|
|
100
86
|
throw new Error('TxClient:sendMsgCreateVestingAccount: Unable to sign Tx. Signer is not present.')
|
|
@@ -123,15 +109,21 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
123
109
|
}
|
|
124
110
|
},
|
|
125
111
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
112
|
+
async sendMsgCreatePermanentLockedAccount({ value, fee, memo }: sendMsgCreatePermanentLockedAccountParams): Promise<DeliverTxResponse> {
|
|
113
|
+
if (!signer) {
|
|
114
|
+
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Unable to sign Tx. Signer is not present.')
|
|
115
|
+
}
|
|
116
|
+
try {
|
|
117
|
+
const { address } = (await signer.getAccounts())[0];
|
|
118
|
+
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
119
|
+
let msg = this.msgCreatePermanentLockedAccount({ value: MsgCreatePermanentLockedAccount.fromPartial(value) })
|
|
120
|
+
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
130
121
|
} catch (e: any) {
|
|
131
|
-
throw new Error('TxClient:
|
|
122
|
+
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: '+ e.message)
|
|
132
123
|
}
|
|
133
124
|
},
|
|
134
125
|
|
|
126
|
+
|
|
135
127
|
msgCreateVestingAccount({ value }: msgCreateVestingAccountParams): EncodeObject {
|
|
136
128
|
try {
|
|
137
129
|
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial( value ) }
|
|
@@ -148,6 +140,14 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
148
140
|
}
|
|
149
141
|
},
|
|
150
142
|
|
|
143
|
+
msgCreatePermanentLockedAccount({ value }: msgCreatePermanentLockedAccountParams): EncodeObject {
|
|
144
|
+
try {
|
|
145
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", value: MsgCreatePermanentLockedAccount.fromPartial( value ) }
|
|
146
|
+
} catch (e: any) {
|
|
147
|
+
throw new Error('TxClient:MsgCreatePermanentLockedAccount: Could not create message: ' + e.message)
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
2
1
|
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
3
2
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
3
|
+
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
4
4
|
const msgTypes = [
|
|
5
|
-
["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount],
|
|
6
5
|
["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount],
|
|
7
6
|
["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount],
|
|
7
|
+
["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount],
|
|
8
8
|
];
|
|
9
9
|
export { msgTypes };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
3
2
|
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
4
3
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
4
|
+
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
5
5
|
|
|
6
6
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
7
|
-
["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount],
|
|
8
7
|
["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount],
|
|
9
8
|
["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount],
|
|
9
|
+
["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount],
|
|
10
10
|
|
|
11
11
|
];
|
|
12
12
|
|
|
@@ -144,6 +144,65 @@ export const ModuleAccount = {
|
|
|
144
144
|
return message;
|
|
145
145
|
},
|
|
146
146
|
};
|
|
147
|
+
function createBaseModuleCredential() {
|
|
148
|
+
return { moduleName: "", derivationKeys: [] };
|
|
149
|
+
}
|
|
150
|
+
export const ModuleCredential = {
|
|
151
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
152
|
+
if (message.moduleName !== "") {
|
|
153
|
+
writer.uint32(10).string(message.moduleName);
|
|
154
|
+
}
|
|
155
|
+
for (const v of message.derivationKeys) {
|
|
156
|
+
writer.uint32(18).bytes(v);
|
|
157
|
+
}
|
|
158
|
+
return writer;
|
|
159
|
+
},
|
|
160
|
+
decode(input, length) {
|
|
161
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
162
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
163
|
+
const message = createBaseModuleCredential();
|
|
164
|
+
while (reader.pos < end) {
|
|
165
|
+
const tag = reader.uint32();
|
|
166
|
+
switch (tag >>> 3) {
|
|
167
|
+
case 1:
|
|
168
|
+
message.moduleName = reader.string();
|
|
169
|
+
break;
|
|
170
|
+
case 2:
|
|
171
|
+
message.derivationKeys.push(reader.bytes());
|
|
172
|
+
break;
|
|
173
|
+
default:
|
|
174
|
+
reader.skipType(tag & 7);
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
fromJSON(object) {
|
|
181
|
+
return {
|
|
182
|
+
moduleName: isSet(object.moduleName) ? String(object.moduleName) : "",
|
|
183
|
+
derivationKeys: Array.isArray(object?.derivationKeys)
|
|
184
|
+
? object.derivationKeys.map((e) => bytesFromBase64(e))
|
|
185
|
+
: [],
|
|
186
|
+
};
|
|
187
|
+
},
|
|
188
|
+
toJSON(message) {
|
|
189
|
+
const obj = {};
|
|
190
|
+
message.moduleName !== undefined && (obj.moduleName = message.moduleName);
|
|
191
|
+
if (message.derivationKeys) {
|
|
192
|
+
obj.derivationKeys = message.derivationKeys.map((e) => base64FromBytes(e !== undefined ? e : new Uint8Array()));
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
obj.derivationKeys = [];
|
|
196
|
+
}
|
|
197
|
+
return obj;
|
|
198
|
+
},
|
|
199
|
+
fromPartial(object) {
|
|
200
|
+
const message = createBaseModuleCredential();
|
|
201
|
+
message.moduleName = object.moduleName ?? "";
|
|
202
|
+
message.derivationKeys = object.derivationKeys?.map((e) => e) || [];
|
|
203
|
+
return message;
|
|
204
|
+
},
|
|
205
|
+
};
|
|
147
206
|
function createBaseParams() {
|
|
148
207
|
return {
|
|
149
208
|
maxMemoCharacters: 0,
|
|
@@ -245,6 +304,31 @@ var globalThis = (() => {
|
|
|
245
304
|
}
|
|
246
305
|
throw "Unable to locate global object";
|
|
247
306
|
})();
|
|
307
|
+
function bytesFromBase64(b64) {
|
|
308
|
+
if (globalThis.Buffer) {
|
|
309
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
310
|
+
}
|
|
311
|
+
else {
|
|
312
|
+
const bin = globalThis.atob(b64);
|
|
313
|
+
const arr = new Uint8Array(bin.length);
|
|
314
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
315
|
+
arr[i] = bin.charCodeAt(i);
|
|
316
|
+
}
|
|
317
|
+
return arr;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
function base64FromBytes(arr) {
|
|
321
|
+
if (globalThis.Buffer) {
|
|
322
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
const bin = [];
|
|
326
|
+
arr.forEach((byte) => {
|
|
327
|
+
bin.push(String.fromCharCode(byte));
|
|
328
|
+
});
|
|
329
|
+
return globalThis.btoa(bin.join(""));
|
|
330
|
+
}
|
|
331
|
+
}
|
|
248
332
|
function longToNumber(long) {
|
|
249
333
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
250
334
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|