decentralcardgame-cardchain-client-ts 0.0.13 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DecentralCardGame.cardchain.cardchain/module.js +357 -334
- package/DecentralCardGame.cardchain.cardchain/module.ts +531 -498
- package/DecentralCardGame.cardchain.cardchain/registry.js +77 -75
- package/DecentralCardGame.cardchain.cardchain/registry.ts +77 -75
- package/DecentralCardGame.cardchain.cardchain/rest.js +31 -23
- package/DecentralCardGame.cardchain.cardchain/rest.ts +89 -62
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.js +89 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/card.ts +95 -0
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.js +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/genesis.ts +12 -12
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.js +58 -29
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/params.ts +65 -33
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.js +72 -66
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/query.ts +99 -92
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.js → DecentralCardGame/cardchain/cardchain/set.js} +8 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection.ts → DecentralCardGame/cardchain/cardchain/set.ts} +20 -20
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.js → DecentralCardGame/cardchain/cardchain/set_proposal.js} +11 -11
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/collection_proposal.ts → DecentralCardGame/cardchain/cardchain/set_proposal.ts} +18 -18
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.js +362 -261
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/tx.ts +568 -466
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.js +34 -8
- package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/user.ts +36 -9
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +2 -0
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +2 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +24 -24
- package/client.js +7 -7
- package/client.ts +10 -9
- 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 +67 -21
- package/cosmos.distribution.v1beta1/module.ts +100 -34
- 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 +46 -21
- package/cosmos.gov.v1/module.ts +68 -33
- package/cosmos.gov.v1/registry.js +6 -4
- package/cosmos.gov.v1/registry.ts +6 -4
- package/cosmos.gov.v1/rest.ts +155 -41
- package/cosmos.gov.v1/types/amino/amino.js +2 -0
- package/cosmos.gov.v1/types/amino/amino.ts +2 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +13 -1
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +40 -5
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +179 -0
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +277 -6
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +13 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +45 -7
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +113 -2
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +186 -3
- package/cosmos.gov.v1/types.js +2 -1
- package/cosmos.gov.v1/types.ts +2 -0
- package/cosmos.gov.v1beta1/module.js +24 -24
- package/cosmos.gov.v1beta1/module.ts +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 +92 -92
- package/cosmos.group.v1/module.ts +138 -138
- package/cosmos.group.v1/registry.js +16 -16
- package/cosmos.group.v1/registry.ts +16 -16
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +29 -9
- package/cosmos.group.v1/types/amino/amino.js +2 -0
- package/cosmos.group.v1/types/amino/amino.ts +2 -0
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +52 -34
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +79 -49
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +20 -0
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +46 -6
- package/cosmos.mint.v1beta1/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 +41 -39
- package/cosmos.staking.v1beta1/module.ts +61 -59
- 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/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 +5 -6
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain → DecentralCardGame/cardchain}/cardchain/server.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.js → DecentralCardGame/cardchain/cardchain/voting.js} +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{cardchain/cardchain/voteing.ts → DecentralCardGame/cardchain/cardchain/voting.ts} +0 -0
|
@@ -23,10 +23,7 @@ export interface AbciEvent {
|
|
|
23
23
|
* EventAttribute is a single key-value pair, associated with an event.
|
|
24
24
|
*/
|
|
25
25
|
export interface AbciEventAttribute {
|
|
26
|
-
/** @format byte */
|
|
27
26
|
key?: string;
|
|
28
|
-
|
|
29
|
-
/** @format byte */
|
|
30
27
|
value?: string;
|
|
31
28
|
|
|
32
29
|
/** nondeterministic */
|
|
@@ -201,14 +198,6 @@ export interface TenderminttypesData {
|
|
|
201
198
|
txs?: string[];
|
|
202
199
|
}
|
|
203
200
|
|
|
204
|
-
export interface TenderminttypesEvidence {
|
|
205
|
-
/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */
|
|
206
|
-
duplicate_vote_evidence?: TypesDuplicateVoteEvidence;
|
|
207
|
-
|
|
208
|
-
/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */
|
|
209
|
-
light_client_attack_evidence?: TypesLightClientAttackEvidence;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
201
|
export interface TenderminttypesValidator {
|
|
213
202
|
/** @format byte */
|
|
214
203
|
address?: string;
|
|
@@ -299,8 +288,16 @@ export interface TypesDuplicateVoteEvidence {
|
|
|
299
288
|
timestamp?: string;
|
|
300
289
|
}
|
|
301
290
|
|
|
291
|
+
export interface TypesEvidence {
|
|
292
|
+
/** DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. */
|
|
293
|
+
duplicate_vote_evidence?: TypesDuplicateVoteEvidence;
|
|
294
|
+
|
|
295
|
+
/** LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. */
|
|
296
|
+
light_client_attack_evidence?: TypesLightClientAttackEvidence;
|
|
297
|
+
}
|
|
298
|
+
|
|
302
299
|
export interface TypesEvidenceList {
|
|
303
|
-
evidence?:
|
|
300
|
+
evidence?: TypesEvidence[];
|
|
304
301
|
}
|
|
305
302
|
|
|
306
303
|
/**
|
|
@@ -536,8 +533,8 @@ export interface V1Beta1AuthInfo {
|
|
|
536
533
|
* BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
|
|
537
534
|
|
|
538
535
|
- BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
|
|
539
|
-
- BROADCAST_MODE_BLOCK:
|
|
540
|
-
|
|
536
|
+
- BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead,
|
|
537
|
+
BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards.
|
|
541
538
|
- BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
|
|
542
539
|
a CheckTx execution response only.
|
|
543
540
|
- BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
|
|
@@ -565,8 +562,8 @@ export interface V1Beta1BroadcastTxRequest {
|
|
|
565
562
|
* BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method.
|
|
566
563
|
*
|
|
567
564
|
* - BROADCAST_MODE_UNSPECIFIED: zero-value for mode ordering
|
|
568
|
-
* - BROADCAST_MODE_BLOCK:
|
|
569
|
-
*
|
|
565
|
+
* - BROADCAST_MODE_BLOCK: DEPRECATED: use BROADCAST_MODE_SYNC instead,
|
|
566
|
+
* BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards.
|
|
570
567
|
* - BROADCAST_MODE_SYNC: BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for
|
|
571
568
|
* a CheckTx execution response only.
|
|
572
569
|
* - BROADCAST_MODE_ASYNC: BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns
|
|
@@ -1052,6 +1049,98 @@ export interface V1Beta1TxBody {
|
|
|
1052
1049
|
non_critical_extension_options?: ProtobufAny[];
|
|
1053
1050
|
}
|
|
1054
1051
|
|
|
1052
|
+
/**
|
|
1053
|
+
* TxDecodeAminoRequest is the request type for the Service.TxDecodeAmino
|
|
1054
|
+
RPC method.
|
|
1055
|
+
|
|
1056
|
+
Since: cosmos-sdk 0.47
|
|
1057
|
+
*/
|
|
1058
|
+
export interface V1Beta1TxDecodeAminoRequest {
|
|
1059
|
+
/** @format byte */
|
|
1060
|
+
amino_binary?: string;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* TxDecodeAminoResponse is the response type for the Service.TxDecodeAmino
|
|
1065
|
+
RPC method.
|
|
1066
|
+
|
|
1067
|
+
Since: cosmos-sdk 0.47
|
|
1068
|
+
*/
|
|
1069
|
+
export interface V1Beta1TxDecodeAminoResponse {
|
|
1070
|
+
amino_json?: string;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* TxDecodeRequest is the request type for the Service.TxDecode
|
|
1075
|
+
RPC method.
|
|
1076
|
+
|
|
1077
|
+
Since: cosmos-sdk 0.47
|
|
1078
|
+
*/
|
|
1079
|
+
export interface V1Beta1TxDecodeRequest {
|
|
1080
|
+
/**
|
|
1081
|
+
* tx_bytes is the raw transaction.
|
|
1082
|
+
* @format byte
|
|
1083
|
+
*/
|
|
1084
|
+
tx_bytes?: string;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* TxDecodeResponse is the response type for the
|
|
1089
|
+
Service.TxDecode method.
|
|
1090
|
+
|
|
1091
|
+
Since: cosmos-sdk 0.47
|
|
1092
|
+
*/
|
|
1093
|
+
export interface V1Beta1TxDecodeResponse {
|
|
1094
|
+
/** tx is the decoded transaction. */
|
|
1095
|
+
tx?: V1Beta1Tx;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* TxEncodeAminoRequest is the request type for the Service.TxEncodeAmino
|
|
1100
|
+
RPC method.
|
|
1101
|
+
|
|
1102
|
+
Since: cosmos-sdk 0.47
|
|
1103
|
+
*/
|
|
1104
|
+
export interface V1Beta1TxEncodeAminoRequest {
|
|
1105
|
+
amino_json?: string;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* TxEncodeAminoResponse is the response type for the Service.TxEncodeAmino
|
|
1110
|
+
RPC method.
|
|
1111
|
+
|
|
1112
|
+
Since: cosmos-sdk 0.47
|
|
1113
|
+
*/
|
|
1114
|
+
export interface V1Beta1TxEncodeAminoResponse {
|
|
1115
|
+
/** @format byte */
|
|
1116
|
+
amino_binary?: string;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* TxEncodeRequest is the request type for the Service.TxEncode
|
|
1121
|
+
RPC method.
|
|
1122
|
+
|
|
1123
|
+
Since: cosmos-sdk 0.47
|
|
1124
|
+
*/
|
|
1125
|
+
export interface V1Beta1TxEncodeRequest {
|
|
1126
|
+
/** tx is the transaction to encode. */
|
|
1127
|
+
tx?: V1Beta1Tx;
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* TxEncodeResponse is the response type for the
|
|
1132
|
+
Service.TxEncode method.
|
|
1133
|
+
|
|
1134
|
+
Since: cosmos-sdk 0.47
|
|
1135
|
+
*/
|
|
1136
|
+
export interface V1Beta1TxEncodeResponse {
|
|
1137
|
+
/**
|
|
1138
|
+
* tx_bytes is the encoded transaction bytes.
|
|
1139
|
+
* @format byte
|
|
1140
|
+
*/
|
|
1141
|
+
tx_bytes?: string;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1055
1144
|
/**
|
|
1056
1145
|
* TxResponse defines a structure containing relevant tx data and metadata. The
|
|
1057
1146
|
tags are stringified and the log is JSON decoded.
|
|
@@ -1261,6 +1350,78 @@ export class HttpClient<SecurityDataType = unknown> {
|
|
|
1261
1350
|
* @version version not set
|
|
1262
1351
|
*/
|
|
1263
1352
|
export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
1353
|
+
/**
|
|
1354
|
+
* @description Since: cosmos-sdk 0.47
|
|
1355
|
+
*
|
|
1356
|
+
* @tags Service
|
|
1357
|
+
* @name ServiceTxDecode
|
|
1358
|
+
* @summary TxDecode decodes the transaction.
|
|
1359
|
+
* @request POST:/cosmos/tx/v1beta1/decode
|
|
1360
|
+
*/
|
|
1361
|
+
serviceTxDecode = (body: V1Beta1TxDecodeRequest, params: RequestParams = {}) =>
|
|
1362
|
+
this.request<V1Beta1TxDecodeResponse, RpcStatus>({
|
|
1363
|
+
path: `/cosmos/tx/v1beta1/decode`,
|
|
1364
|
+
method: "POST",
|
|
1365
|
+
body: body,
|
|
1366
|
+
type: ContentType.Json,
|
|
1367
|
+
format: "json",
|
|
1368
|
+
...params,
|
|
1369
|
+
});
|
|
1370
|
+
|
|
1371
|
+
/**
|
|
1372
|
+
* @description Since: cosmos-sdk 0.47
|
|
1373
|
+
*
|
|
1374
|
+
* @tags Service
|
|
1375
|
+
* @name ServiceTxDecodeAmino
|
|
1376
|
+
* @summary TxDecodeAmino decodes an Amino transaction from encoded bytes to JSON.
|
|
1377
|
+
* @request POST:/cosmos/tx/v1beta1/decode/amino
|
|
1378
|
+
*/
|
|
1379
|
+
serviceTxDecodeAmino = (body: V1Beta1TxDecodeAminoRequest, params: RequestParams = {}) =>
|
|
1380
|
+
this.request<V1Beta1TxDecodeAminoResponse, RpcStatus>({
|
|
1381
|
+
path: `/cosmos/tx/v1beta1/decode/amino`,
|
|
1382
|
+
method: "POST",
|
|
1383
|
+
body: body,
|
|
1384
|
+
type: ContentType.Json,
|
|
1385
|
+
format: "json",
|
|
1386
|
+
...params,
|
|
1387
|
+
});
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* @description Since: cosmos-sdk 0.47
|
|
1391
|
+
*
|
|
1392
|
+
* @tags Service
|
|
1393
|
+
* @name ServiceTxEncode
|
|
1394
|
+
* @summary TxEncode encodes the transaction.
|
|
1395
|
+
* @request POST:/cosmos/tx/v1beta1/encode
|
|
1396
|
+
*/
|
|
1397
|
+
serviceTxEncode = (body: V1Beta1TxEncodeRequest, params: RequestParams = {}) =>
|
|
1398
|
+
this.request<V1Beta1TxEncodeResponse, RpcStatus>({
|
|
1399
|
+
path: `/cosmos/tx/v1beta1/encode`,
|
|
1400
|
+
method: "POST",
|
|
1401
|
+
body: body,
|
|
1402
|
+
type: ContentType.Json,
|
|
1403
|
+
format: "json",
|
|
1404
|
+
...params,
|
|
1405
|
+
});
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* @description Since: cosmos-sdk 0.47
|
|
1409
|
+
*
|
|
1410
|
+
* @tags Service
|
|
1411
|
+
* @name ServiceTxEncodeAmino
|
|
1412
|
+
* @summary TxEncodeAmino encodes an Amino transaction from JSON to encoded bytes.
|
|
1413
|
+
* @request POST:/cosmos/tx/v1beta1/encode/amino
|
|
1414
|
+
*/
|
|
1415
|
+
serviceTxEncodeAmino = (body: V1Beta1TxEncodeAminoRequest, params: RequestParams = {}) =>
|
|
1416
|
+
this.request<V1Beta1TxEncodeAminoResponse, RpcStatus>({
|
|
1417
|
+
path: `/cosmos/tx/v1beta1/encode/amino`,
|
|
1418
|
+
method: "POST",
|
|
1419
|
+
body: body,
|
|
1420
|
+
type: ContentType.Json,
|
|
1421
|
+
format: "json",
|
|
1422
|
+
...params,
|
|
1423
|
+
});
|
|
1424
|
+
|
|
1264
1425
|
/**
|
|
1265
1426
|
* No description
|
|
1266
1427
|
*
|
|
@@ -54,8 +54,10 @@ export var BroadcastMode;
|
|
|
54
54
|
/** BROADCAST_MODE_UNSPECIFIED - zero-value for mode ordering */
|
|
55
55
|
BroadcastMode[BroadcastMode["BROADCAST_MODE_UNSPECIFIED"] = 0] = "BROADCAST_MODE_UNSPECIFIED";
|
|
56
56
|
/**
|
|
57
|
-
* BROADCAST_MODE_BLOCK -
|
|
58
|
-
*
|
|
57
|
+
* BROADCAST_MODE_BLOCK - DEPRECATED: use BROADCAST_MODE_SYNC instead,
|
|
58
|
+
* BROADCAST_MODE_BLOCK is not supported by the SDK from v0.47.x onwards.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated
|
|
59
61
|
*/
|
|
60
62
|
BroadcastMode[BroadcastMode["BROADCAST_MODE_BLOCK"] = 1] = "BROADCAST_MODE_BLOCK";
|
|
61
63
|
/**
|
|
@@ -712,6 +714,338 @@ export const GetBlockWithTxsResponse = {
|
|
|
712
714
|
return message;
|
|
713
715
|
},
|
|
714
716
|
};
|
|
717
|
+
function createBaseTxDecodeRequest() {
|
|
718
|
+
return { txBytes: new Uint8Array() };
|
|
719
|
+
}
|
|
720
|
+
export const TxDecodeRequest = {
|
|
721
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
722
|
+
if (message.txBytes.length !== 0) {
|
|
723
|
+
writer.uint32(10).bytes(message.txBytes);
|
|
724
|
+
}
|
|
725
|
+
return writer;
|
|
726
|
+
},
|
|
727
|
+
decode(input, length) {
|
|
728
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
729
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
730
|
+
const message = createBaseTxDecodeRequest();
|
|
731
|
+
while (reader.pos < end) {
|
|
732
|
+
const tag = reader.uint32();
|
|
733
|
+
switch (tag >>> 3) {
|
|
734
|
+
case 1:
|
|
735
|
+
message.txBytes = reader.bytes();
|
|
736
|
+
break;
|
|
737
|
+
default:
|
|
738
|
+
reader.skipType(tag & 7);
|
|
739
|
+
break;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
return message;
|
|
743
|
+
},
|
|
744
|
+
fromJSON(object) {
|
|
745
|
+
return { txBytes: isSet(object.txBytes) ? bytesFromBase64(object.txBytes) : new Uint8Array() };
|
|
746
|
+
},
|
|
747
|
+
toJSON(message) {
|
|
748
|
+
const obj = {};
|
|
749
|
+
message.txBytes !== undefined
|
|
750
|
+
&& (obj.txBytes = base64FromBytes(message.txBytes !== undefined ? message.txBytes : new Uint8Array()));
|
|
751
|
+
return obj;
|
|
752
|
+
},
|
|
753
|
+
fromPartial(object) {
|
|
754
|
+
const message = createBaseTxDecodeRequest();
|
|
755
|
+
message.txBytes = object.txBytes ?? new Uint8Array();
|
|
756
|
+
return message;
|
|
757
|
+
},
|
|
758
|
+
};
|
|
759
|
+
function createBaseTxDecodeResponse() {
|
|
760
|
+
return { tx: undefined };
|
|
761
|
+
}
|
|
762
|
+
export const TxDecodeResponse = {
|
|
763
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
764
|
+
if (message.tx !== undefined) {
|
|
765
|
+
Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
|
|
766
|
+
}
|
|
767
|
+
return writer;
|
|
768
|
+
},
|
|
769
|
+
decode(input, length) {
|
|
770
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
771
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
772
|
+
const message = createBaseTxDecodeResponse();
|
|
773
|
+
while (reader.pos < end) {
|
|
774
|
+
const tag = reader.uint32();
|
|
775
|
+
switch (tag >>> 3) {
|
|
776
|
+
case 1:
|
|
777
|
+
message.tx = Tx.decode(reader, reader.uint32());
|
|
778
|
+
break;
|
|
779
|
+
default:
|
|
780
|
+
reader.skipType(tag & 7);
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
return message;
|
|
785
|
+
},
|
|
786
|
+
fromJSON(object) {
|
|
787
|
+
return { tx: isSet(object.tx) ? Tx.fromJSON(object.tx) : undefined };
|
|
788
|
+
},
|
|
789
|
+
toJSON(message) {
|
|
790
|
+
const obj = {};
|
|
791
|
+
message.tx !== undefined && (obj.tx = message.tx ? Tx.toJSON(message.tx) : undefined);
|
|
792
|
+
return obj;
|
|
793
|
+
},
|
|
794
|
+
fromPartial(object) {
|
|
795
|
+
const message = createBaseTxDecodeResponse();
|
|
796
|
+
message.tx = (object.tx !== undefined && object.tx !== null) ? Tx.fromPartial(object.tx) : undefined;
|
|
797
|
+
return message;
|
|
798
|
+
},
|
|
799
|
+
};
|
|
800
|
+
function createBaseTxEncodeRequest() {
|
|
801
|
+
return { tx: undefined };
|
|
802
|
+
}
|
|
803
|
+
export const TxEncodeRequest = {
|
|
804
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
805
|
+
if (message.tx !== undefined) {
|
|
806
|
+
Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
|
|
807
|
+
}
|
|
808
|
+
return writer;
|
|
809
|
+
},
|
|
810
|
+
decode(input, length) {
|
|
811
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
812
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
813
|
+
const message = createBaseTxEncodeRequest();
|
|
814
|
+
while (reader.pos < end) {
|
|
815
|
+
const tag = reader.uint32();
|
|
816
|
+
switch (tag >>> 3) {
|
|
817
|
+
case 1:
|
|
818
|
+
message.tx = Tx.decode(reader, reader.uint32());
|
|
819
|
+
break;
|
|
820
|
+
default:
|
|
821
|
+
reader.skipType(tag & 7);
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
return message;
|
|
826
|
+
},
|
|
827
|
+
fromJSON(object) {
|
|
828
|
+
return { tx: isSet(object.tx) ? Tx.fromJSON(object.tx) : undefined };
|
|
829
|
+
},
|
|
830
|
+
toJSON(message) {
|
|
831
|
+
const obj = {};
|
|
832
|
+
message.tx !== undefined && (obj.tx = message.tx ? Tx.toJSON(message.tx) : undefined);
|
|
833
|
+
return obj;
|
|
834
|
+
},
|
|
835
|
+
fromPartial(object) {
|
|
836
|
+
const message = createBaseTxEncodeRequest();
|
|
837
|
+
message.tx = (object.tx !== undefined && object.tx !== null) ? Tx.fromPartial(object.tx) : undefined;
|
|
838
|
+
return message;
|
|
839
|
+
},
|
|
840
|
+
};
|
|
841
|
+
function createBaseTxEncodeResponse() {
|
|
842
|
+
return { txBytes: new Uint8Array() };
|
|
843
|
+
}
|
|
844
|
+
export const TxEncodeResponse = {
|
|
845
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
846
|
+
if (message.txBytes.length !== 0) {
|
|
847
|
+
writer.uint32(10).bytes(message.txBytes);
|
|
848
|
+
}
|
|
849
|
+
return writer;
|
|
850
|
+
},
|
|
851
|
+
decode(input, length) {
|
|
852
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
853
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
854
|
+
const message = createBaseTxEncodeResponse();
|
|
855
|
+
while (reader.pos < end) {
|
|
856
|
+
const tag = reader.uint32();
|
|
857
|
+
switch (tag >>> 3) {
|
|
858
|
+
case 1:
|
|
859
|
+
message.txBytes = reader.bytes();
|
|
860
|
+
break;
|
|
861
|
+
default:
|
|
862
|
+
reader.skipType(tag & 7);
|
|
863
|
+
break;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
return message;
|
|
867
|
+
},
|
|
868
|
+
fromJSON(object) {
|
|
869
|
+
return { txBytes: isSet(object.txBytes) ? bytesFromBase64(object.txBytes) : new Uint8Array() };
|
|
870
|
+
},
|
|
871
|
+
toJSON(message) {
|
|
872
|
+
const obj = {};
|
|
873
|
+
message.txBytes !== undefined
|
|
874
|
+
&& (obj.txBytes = base64FromBytes(message.txBytes !== undefined ? message.txBytes : new Uint8Array()));
|
|
875
|
+
return obj;
|
|
876
|
+
},
|
|
877
|
+
fromPartial(object) {
|
|
878
|
+
const message = createBaseTxEncodeResponse();
|
|
879
|
+
message.txBytes = object.txBytes ?? new Uint8Array();
|
|
880
|
+
return message;
|
|
881
|
+
},
|
|
882
|
+
};
|
|
883
|
+
function createBaseTxEncodeAminoRequest() {
|
|
884
|
+
return { aminoJson: "" };
|
|
885
|
+
}
|
|
886
|
+
export const TxEncodeAminoRequest = {
|
|
887
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
888
|
+
if (message.aminoJson !== "") {
|
|
889
|
+
writer.uint32(10).string(message.aminoJson);
|
|
890
|
+
}
|
|
891
|
+
return writer;
|
|
892
|
+
},
|
|
893
|
+
decode(input, length) {
|
|
894
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
895
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
896
|
+
const message = createBaseTxEncodeAminoRequest();
|
|
897
|
+
while (reader.pos < end) {
|
|
898
|
+
const tag = reader.uint32();
|
|
899
|
+
switch (tag >>> 3) {
|
|
900
|
+
case 1:
|
|
901
|
+
message.aminoJson = reader.string();
|
|
902
|
+
break;
|
|
903
|
+
default:
|
|
904
|
+
reader.skipType(tag & 7);
|
|
905
|
+
break;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
return message;
|
|
909
|
+
},
|
|
910
|
+
fromJSON(object) {
|
|
911
|
+
return { aminoJson: isSet(object.aminoJson) ? String(object.aminoJson) : "" };
|
|
912
|
+
},
|
|
913
|
+
toJSON(message) {
|
|
914
|
+
const obj = {};
|
|
915
|
+
message.aminoJson !== undefined && (obj.aminoJson = message.aminoJson);
|
|
916
|
+
return obj;
|
|
917
|
+
},
|
|
918
|
+
fromPartial(object) {
|
|
919
|
+
const message = createBaseTxEncodeAminoRequest();
|
|
920
|
+
message.aminoJson = object.aminoJson ?? "";
|
|
921
|
+
return message;
|
|
922
|
+
},
|
|
923
|
+
};
|
|
924
|
+
function createBaseTxEncodeAminoResponse() {
|
|
925
|
+
return { aminoBinary: new Uint8Array() };
|
|
926
|
+
}
|
|
927
|
+
export const TxEncodeAminoResponse = {
|
|
928
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
929
|
+
if (message.aminoBinary.length !== 0) {
|
|
930
|
+
writer.uint32(10).bytes(message.aminoBinary);
|
|
931
|
+
}
|
|
932
|
+
return writer;
|
|
933
|
+
},
|
|
934
|
+
decode(input, length) {
|
|
935
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
936
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
937
|
+
const message = createBaseTxEncodeAminoResponse();
|
|
938
|
+
while (reader.pos < end) {
|
|
939
|
+
const tag = reader.uint32();
|
|
940
|
+
switch (tag >>> 3) {
|
|
941
|
+
case 1:
|
|
942
|
+
message.aminoBinary = reader.bytes();
|
|
943
|
+
break;
|
|
944
|
+
default:
|
|
945
|
+
reader.skipType(tag & 7);
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
return message;
|
|
950
|
+
},
|
|
951
|
+
fromJSON(object) {
|
|
952
|
+
return { aminoBinary: isSet(object.aminoBinary) ? bytesFromBase64(object.aminoBinary) : new Uint8Array() };
|
|
953
|
+
},
|
|
954
|
+
toJSON(message) {
|
|
955
|
+
const obj = {};
|
|
956
|
+
message.aminoBinary !== undefined
|
|
957
|
+
&& (obj.aminoBinary = base64FromBytes(message.aminoBinary !== undefined ? message.aminoBinary : new Uint8Array()));
|
|
958
|
+
return obj;
|
|
959
|
+
},
|
|
960
|
+
fromPartial(object) {
|
|
961
|
+
const message = createBaseTxEncodeAminoResponse();
|
|
962
|
+
message.aminoBinary = object.aminoBinary ?? new Uint8Array();
|
|
963
|
+
return message;
|
|
964
|
+
},
|
|
965
|
+
};
|
|
966
|
+
function createBaseTxDecodeAminoRequest() {
|
|
967
|
+
return { aminoBinary: new Uint8Array() };
|
|
968
|
+
}
|
|
969
|
+
export const TxDecodeAminoRequest = {
|
|
970
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
971
|
+
if (message.aminoBinary.length !== 0) {
|
|
972
|
+
writer.uint32(10).bytes(message.aminoBinary);
|
|
973
|
+
}
|
|
974
|
+
return writer;
|
|
975
|
+
},
|
|
976
|
+
decode(input, length) {
|
|
977
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
978
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
979
|
+
const message = createBaseTxDecodeAminoRequest();
|
|
980
|
+
while (reader.pos < end) {
|
|
981
|
+
const tag = reader.uint32();
|
|
982
|
+
switch (tag >>> 3) {
|
|
983
|
+
case 1:
|
|
984
|
+
message.aminoBinary = reader.bytes();
|
|
985
|
+
break;
|
|
986
|
+
default:
|
|
987
|
+
reader.skipType(tag & 7);
|
|
988
|
+
break;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
return message;
|
|
992
|
+
},
|
|
993
|
+
fromJSON(object) {
|
|
994
|
+
return { aminoBinary: isSet(object.aminoBinary) ? bytesFromBase64(object.aminoBinary) : new Uint8Array() };
|
|
995
|
+
},
|
|
996
|
+
toJSON(message) {
|
|
997
|
+
const obj = {};
|
|
998
|
+
message.aminoBinary !== undefined
|
|
999
|
+
&& (obj.aminoBinary = base64FromBytes(message.aminoBinary !== undefined ? message.aminoBinary : new Uint8Array()));
|
|
1000
|
+
return obj;
|
|
1001
|
+
},
|
|
1002
|
+
fromPartial(object) {
|
|
1003
|
+
const message = createBaseTxDecodeAminoRequest();
|
|
1004
|
+
message.aminoBinary = object.aminoBinary ?? new Uint8Array();
|
|
1005
|
+
return message;
|
|
1006
|
+
},
|
|
1007
|
+
};
|
|
1008
|
+
function createBaseTxDecodeAminoResponse() {
|
|
1009
|
+
return { aminoJson: "" };
|
|
1010
|
+
}
|
|
1011
|
+
export const TxDecodeAminoResponse = {
|
|
1012
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
1013
|
+
if (message.aminoJson !== "") {
|
|
1014
|
+
writer.uint32(10).string(message.aminoJson);
|
|
1015
|
+
}
|
|
1016
|
+
return writer;
|
|
1017
|
+
},
|
|
1018
|
+
decode(input, length) {
|
|
1019
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1020
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1021
|
+
const message = createBaseTxDecodeAminoResponse();
|
|
1022
|
+
while (reader.pos < end) {
|
|
1023
|
+
const tag = reader.uint32();
|
|
1024
|
+
switch (tag >>> 3) {
|
|
1025
|
+
case 1:
|
|
1026
|
+
message.aminoJson = reader.string();
|
|
1027
|
+
break;
|
|
1028
|
+
default:
|
|
1029
|
+
reader.skipType(tag & 7);
|
|
1030
|
+
break;
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
return message;
|
|
1034
|
+
},
|
|
1035
|
+
fromJSON(object) {
|
|
1036
|
+
return { aminoJson: isSet(object.aminoJson) ? String(object.aminoJson) : "" };
|
|
1037
|
+
},
|
|
1038
|
+
toJSON(message) {
|
|
1039
|
+
const obj = {};
|
|
1040
|
+
message.aminoJson !== undefined && (obj.aminoJson = message.aminoJson);
|
|
1041
|
+
return obj;
|
|
1042
|
+
},
|
|
1043
|
+
fromPartial(object) {
|
|
1044
|
+
const message = createBaseTxDecodeAminoResponse();
|
|
1045
|
+
message.aminoJson = object.aminoJson ?? "";
|
|
1046
|
+
return message;
|
|
1047
|
+
},
|
|
1048
|
+
};
|
|
715
1049
|
export class ServiceClientImpl {
|
|
716
1050
|
constructor(rpc) {
|
|
717
1051
|
this.rpc = rpc;
|
|
@@ -720,6 +1054,10 @@ export class ServiceClientImpl {
|
|
|
720
1054
|
this.BroadcastTx = this.BroadcastTx.bind(this);
|
|
721
1055
|
this.GetTxsEvent = this.GetTxsEvent.bind(this);
|
|
722
1056
|
this.GetBlockWithTxs = this.GetBlockWithTxs.bind(this);
|
|
1057
|
+
this.TxDecode = this.TxDecode.bind(this);
|
|
1058
|
+
this.TxEncode = this.TxEncode.bind(this);
|
|
1059
|
+
this.TxEncodeAmino = this.TxEncodeAmino.bind(this);
|
|
1060
|
+
this.TxDecodeAmino = this.TxDecodeAmino.bind(this);
|
|
723
1061
|
}
|
|
724
1062
|
Simulate(request) {
|
|
725
1063
|
const data = SimulateRequest.encode(request).finish();
|
|
@@ -746,6 +1084,26 @@ export class ServiceClientImpl {
|
|
|
746
1084
|
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "GetBlockWithTxs", data);
|
|
747
1085
|
return promise.then((data) => GetBlockWithTxsResponse.decode(new _m0.Reader(data)));
|
|
748
1086
|
}
|
|
1087
|
+
TxDecode(request) {
|
|
1088
|
+
const data = TxDecodeRequest.encode(request).finish();
|
|
1089
|
+
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "TxDecode", data);
|
|
1090
|
+
return promise.then((data) => TxDecodeResponse.decode(new _m0.Reader(data)));
|
|
1091
|
+
}
|
|
1092
|
+
TxEncode(request) {
|
|
1093
|
+
const data = TxEncodeRequest.encode(request).finish();
|
|
1094
|
+
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "TxEncode", data);
|
|
1095
|
+
return promise.then((data) => TxEncodeResponse.decode(new _m0.Reader(data)));
|
|
1096
|
+
}
|
|
1097
|
+
TxEncodeAmino(request) {
|
|
1098
|
+
const data = TxEncodeAminoRequest.encode(request).finish();
|
|
1099
|
+
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "TxEncodeAmino", data);
|
|
1100
|
+
return promise.then((data) => TxEncodeAminoResponse.decode(new _m0.Reader(data)));
|
|
1101
|
+
}
|
|
1102
|
+
TxDecodeAmino(request) {
|
|
1103
|
+
const data = TxDecodeAminoRequest.encode(request).finish();
|
|
1104
|
+
const promise = this.rpc.request("cosmos.tx.v1beta1.Service", "TxDecodeAmino", data);
|
|
1105
|
+
return promise.then((data) => TxDecodeAminoResponse.decode(new _m0.Reader(data)));
|
|
1106
|
+
}
|
|
749
1107
|
}
|
|
750
1108
|
var globalThis = (() => {
|
|
751
1109
|
if (typeof globalThis !== "undefined") {
|