decentralcardgame-cardchain-client-ts 0.0.11 → 0.0.12
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 +350 -327
- package/DecentralCardGame.cardchain.cardchain/module.ts +517 -484
- package/DecentralCardGame.cardchain.cardchain/registry.js +74 -72
- package/DecentralCardGame.cardchain.cardchain/registry.ts +74 -72
- package/DecentralCardGame.cardchain.cardchain/rest.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/rest.ts +12 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/genesis.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.js +101 -3
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match.ts +103 -3
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.js +10 -0
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/params.ts +11 -0
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.js +2 -4
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/query.ts +2 -4
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.js +190 -122
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/tx.ts +220 -144
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.js +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/user.ts +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.js +346 -0
- package/DecentralCardGame.cardchain.cardchain/types/cardchain/cardchain/voteing.ts +417 -0
- package/DecentralCardGame.cardchain.cardchain/types.js +23 -23
- package/DecentralCardGame.cardchain.cardchain/types.ts +25 -25
- package/client.js +8 -8
- package/client.ts +11 -12
- package/cosmos.auth.v1beta1/module.js +0 -2
- package/cosmos.auth.v1beta1/module.ts +0 -2
- package/cosmos.auth.v1beta1/rest.js +3 -18
- package/cosmos.auth.v1beta1/rest.ts +3 -113
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/genesis.ts +1 -1
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.js +3 -104
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/query.ts +4 -157
- package/cosmos.auth.v1beta1/types.js +1 -2
- package/cosmos.auth.v1beta1/types.ts +0 -2
- package/cosmos.authz.v1beta1/types/cosmos/authz/v1beta1/tx.ts +1 -1
- package/cosmos.bank.v1beta1/rest.js +6 -37
- package/cosmos.bank.v1beta1/rest.ts +6 -99
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/authz.ts +2 -24
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/bank.ts +0 -9
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.js +2 -18
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/genesis.ts +4 -25
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.js +1 -230
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/query.ts +5 -356
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.js +1 -206
- package/cosmos.bank.v1beta1/types/cosmos/bank/v1beta1/tx.ts +1 -305
- package/cosmos.base.tendermint.v1beta1/rest.js +3 -3
- package/cosmos.base.tendermint.v1beta1/rest.ts +27 -18
- package/cosmos.base.tendermint.v1beta1/types/cosmos/base/tendermint/v1beta1/query.ts +46 -16
- package/cosmos.crisis.v1beta1/module.js +1 -24
- package/cosmos.crisis.v1beta1/module.ts +1 -34
- package/cosmos.crisis.v1beta1/registry.js +0 -2
- package/cosmos.crisis.v1beta1/registry.ts +0 -2
- package/cosmos.crisis.v1beta1/rest.ts +0 -19
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.js +0 -95
- package/cosmos.crisis.v1beta1/types/cosmos/crisis/v1beta1/tx.ts +1 -140
- package/cosmos.distribution.v1beta1/module.js +9 -55
- package/cosmos.distribution.v1beta1/module.ts +13 -79
- package/cosmos.distribution.v1beta1/registry.js +2 -6
- package/cosmos.distribution.v1beta1/registry.ts +2 -6
- package/cosmos.distribution.v1beta1/rest.js +0 -14
- package/cosmos.distribution.v1beta1/rest.ts +7 -66
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/distribution.ts +0 -19
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/genesis.ts +4 -4
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.js +0 -120
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/query.ts +1 -158
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.js +0 -199
- package/cosmos.distribution.v1beta1/types/cosmos/distribution/v1beta1/tx.ts +3 -300
- package/cosmos.evidence.v1beta1/rest.js +3 -4
- package/cosmos.evidence.v1beta1/rest.ts +3 -4
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/evidence.ts +1 -7
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.js +2 -13
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/query.ts +3 -25
- package/cosmos.evidence.v1beta1/types/cosmos/evidence/v1beta1/tx.ts +0 -2
- package/cosmos.gov.v1/module.js +9 -34
- package/cosmos.gov.v1/module.ts +13 -48
- package/cosmos.gov.v1/registry.js +2 -4
- package/cosmos.gov.v1/registry.ts +2 -4
- package/cosmos.gov.v1/rest.ts +41 -155
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.js +1 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/genesis.ts +5 -40
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.js +0 -179
- package/cosmos.gov.v1/types/cosmos/gov/v1/gov.ts +6 -277
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.js +2 -13
- package/cosmos.gov.v1/types/cosmos/gov/v1/query.ts +7 -45
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.js +2 -113
- package/cosmos.gov.v1/types/cosmos/gov/v1/tx.ts +3 -186
- package/cosmos.gov.v1/types.js +1 -2
- package/cosmos.gov.v1/types.ts +0 -2
- package/cosmos.gov.v1beta1/module.js +31 -31
- package/cosmos.gov.v1beta1/module.ts +47 -47
- package/cosmos.gov.v1beta1/registry.js +4 -4
- package/cosmos.gov.v1beta1/registry.ts +4 -4
- package/cosmos.gov.v1beta1/rest.ts +96 -65
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/genesis.ts +3 -3
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/gov.ts +10 -45
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/query.ts +2 -4
- package/cosmos.gov.v1beta1/types/cosmos/gov/v1beta1/tx.ts +1 -16
- package/cosmos.group.v1/module.js +104 -104
- package/cosmos.group.v1/module.ts +155 -155
- package/cosmos.group.v1/registry.js +18 -18
- package/cosmos.group.v1/registry.ts +18 -18
- package/cosmos.group.v1/rest.js +3 -3
- package/cosmos.group.v1/rest.ts +9 -29
- package/cosmos.group.v1/types/cosmos/group/v1/query.ts +5 -5
- package/cosmos.group.v1/types/cosmos/group/v1/tx.js +34 -52
- package/cosmos.group.v1/types/cosmos/group/v1/tx.ts +49 -79
- package/cosmos.group.v1/types/cosmos/group/v1/types.js +0 -20
- package/cosmos.group.v1/types/cosmos/group/v1/types.ts +6 -46
- package/cosmos.mint.v1beta1/rest.ts +1 -9
- 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.nft.v1beta1/rest.ts +22 -18
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/event.ts +0 -10
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/genesis.ts +0 -1
- package/cosmos.nft.v1beta1/types/cosmos/nft/v1beta1/query.ts +0 -20
- package/cosmos.slashing.v1beta1/rest.ts +0 -8
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/genesis.ts +1 -1
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.js +0 -94
- package/cosmos.slashing.v1beta1/types/cosmos/slashing/v1beta1/tx.ts +0 -139
- package/cosmos.staking.v1beta1/module.js +40 -42
- package/cosmos.staking.v1beta1/module.ts +60 -62
- package/cosmos.staking.v1beta1/registry.js +8 -8
- package/cosmos.staking.v1beta1/registry.ts +8 -8
- package/cosmos.staking.v1beta1/rest.js +7 -7
- package/cosmos.staking.v1beta1/rest.ts +8 -49
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/genesis.ts +1 -1
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/query.ts +5 -36
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.js +2 -180
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/staking.ts +3 -206
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.js +1 -94
- package/cosmos.staking.v1beta1/types/cosmos/staking/v1beta1/tx.ts +1 -138
- package/cosmos.staking.v1beta1/types.js +1 -2
- package/cosmos.staking.v1beta1/types.ts +0 -2
- package/cosmos.tx.v1beta1/rest.js +2 -66
- package/cosmos.tx.v1beta1/rest.ts +16 -177
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.js +2 -360
- package/cosmos.tx.v1beta1/types/cosmos/tx/v1beta1/service.ts +2 -524
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.js +266 -592
- package/cosmos.tx.v1beta1/types/tendermint/abci/types.ts +332 -703
- package/cosmos.tx.v1beta1/types/tendermint/types/params.js +17 -8
- package/cosmos.tx.v1beta1/types/tendermint/types/params.ts +25 -9
- package/cosmos.upgrade.v1beta1/rest.ts +1 -0
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/tx.ts +3 -3
- package/cosmos.upgrade.v1beta1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/cosmos.vesting.v1beta1/module.js +16 -16
- package/cosmos.vesting.v1beta1/module.ts +24 -24
- package/cosmos.vesting.v1beta1/registry.js +2 -2
- package/cosmos.vesting.v1beta1/registry.ts +2 -2
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.js +0 -84
- package/cosmos.vesting.v1beta1/types/cosmos/auth/v1beta1/auth.ts +0 -104
- package/ibc.applications.interchain_accounts.controller.v1/rest.ts +0 -1
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.js +2 -13
- package/ibc.applications.interchain_accounts.controller.v1/types/ibc/applications/interchain_accounts/controller/v1/tx.ts +4 -16
- package/ibc.applications.transfer.v1/module.js +27 -5
- package/ibc.applications.transfer.v1/module.ts +34 -5
- package/ibc.applications.transfer.v1/registry.js +4 -1
- package/ibc.applications.transfer.v1/registry.ts +2 -0
- package/ibc.applications.transfer.v1/rest.js +1 -15
- package/ibc.applications.transfer.v1/rest.ts +1 -30
- package/ibc.applications.transfer.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.js +1 -16
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/genesis.ts +2 -23
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.js +0 -91
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/query.ts +0 -120
- package/ibc.applications.transfer.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.applications.transfer.v1/types.js +1 -3
- package/ibc.applications.transfer.v1/types.ts +0 -4
- package/ibc.core.channel.v1/rest.ts +0 -1
- package/ibc.core.channel.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.js +2 -13
- package/ibc.core.channel.v1/types/ibc/core/channel/v1/tx.ts +2 -14
- package/ibc.core.channel.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/rest.ts +1 -5
- package/ibc.core.client.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.client.v1/types/ibc/core/client/v1/client.ts +1 -5
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.js +8 -9
- package/ibc.core.client.v1/types/ibc/core/client/v1/tx.ts +14 -28
- package/ibc.core.connection.v1/types/cosmos/upgrade/v1beta1/upgrade.ts +4 -6
- package/ibc.core.connection.v1/types/ibc/core/client/v1/client.ts +1 -5
- 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 +0 -26
- package/ibc.core.connection.v1/types/ibc/core/connection/v1/tx.ts +0 -34
- package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.js → proofs.js} +1 -1
- package/ibc.core.connection.v1/types/{cosmos/ics23/v1/proofs.ts → proofs.ts} +1 -1
- package/index.js +1 -3
- package/index.ts +1 -3
- package/package.json +1 -1
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.js +0 -84
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/vote_right.ts +0 -114
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.js +0 -127
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_result.ts +0 -161
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.js +0 -148
- package/DecentralCardGame.cardchain.cardchain/types/DecentralCardGame/cardchain/cardchain/voting_results.ts +0 -182
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.js +0 -2
- package/DecentralCardGame.cardchain.cardchain/types/amino/amino.ts +0 -2
- package/cosmos.auth.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.auth.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.js +0 -105
- package/cosmos.auth.v1beta1/types/cosmos/auth/v1beta1/tx.ts +0 -172
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/cosmos.auth.v1beta1/types/cosmos/query/v1/query.ts +0 -2
- package/cosmos.authz.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.authz.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.bank.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.bank.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/cosmos.bank.v1beta1/types/cosmos/query/v1/query.ts +0 -2
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.base.tendermint.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.consensus.v1/index.js +0 -5
- package/cosmos.consensus.v1/index.ts +0 -6
- package/cosmos.consensus.v1/module.js +0 -81
- package/cosmos.consensus.v1/module.ts +0 -129
- package/cosmos.consensus.v1/registry.js +0 -5
- package/cosmos.consensus.v1/registry.ts +0 -9
- package/cosmos.consensus.v1/rest.js +0 -100
- package/cosmos.consensus.v1/rest.ts +0 -268
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.js +0 -94
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/query.ts +0 -147
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.js +0 -129
- package/cosmos.consensus.v1/types/cosmos/consensus/v1/tx.ts +0 -196
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.js +0 -2
- package/cosmos.consensus.v1/types/cosmos/msg/v1/msg.ts +0 -2
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.js +0 -171
- package/cosmos.consensus.v1/types/cosmos_proto/cosmos.ts +0 -247
- package/cosmos.consensus.v1/types/gogoproto/gogo.js +0 -2
- package/cosmos.consensus.v1/types/gogoproto/gogo.ts +0 -2
- package/cosmos.consensus.v1/types/google/api/annotations.js +0 -2
- package/cosmos.consensus.v1/types/google/api/annotations.ts +0 -2
- package/cosmos.consensus.v1/types/google/api/http.js +0 -260
- package/cosmos.consensus.v1/types/google/api/http.ts +0 -589
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.js +0 -2830
- package/cosmos.consensus.v1/types/google/protobuf/descriptor.ts +0 -3753
- package/cosmos.consensus.v1/types/google/protobuf/duration.js +0 -84
- package/cosmos.consensus.v1/types/google/protobuf/duration.ts +0 -187
- package/cosmos.consensus.v1/types/tendermint/types/params.js +0 -369
- package/cosmos.consensus.v1/types/tendermint/types/params.ts +0 -498
- package/cosmos.consensus.v1/types.js +0 -1
- package/cosmos.consensus.v1/types.ts +0 -5
- package/cosmos.crisis.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.crisis.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.distribution.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.distribution.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.evidence.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.evidence.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.feegrant.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.feegrant.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.gov.v1/types/amino/amino.js +0 -2
- package/cosmos.gov.v1/types/amino/amino.ts +0 -2
- package/cosmos.gov.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.gov.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.group.v1/types/amino/amino.js +0 -2
- package/cosmos.group.v1/types/amino/amino.ts +0 -2
- package/cosmos.mint.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.mint.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.js +0 -105
- package/cosmos.mint.v1beta1/types/cosmos/mint/v1beta1/tx.ts +0 -172
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.js +0 -2
- package/cosmos.mint.v1beta1/types/cosmos/msg/v1/msg.ts +0 -2
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.js +0 -171
- package/cosmos.nft.v1beta1/types/cosmos_proto/cosmos.ts +0 -247
- package/cosmos.params.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.params.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.slashing.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.slashing.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.staking.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.staking.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.js +0 -2
- package/cosmos.staking.v1beta1/types/cosmos/query/v1/query.ts +0 -2
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.js +0 -3812
- package/cosmos.staking.v1beta1/types/tendermint/abci/types.ts +0 -4525
- package/cosmos.staking.v1beta1/types/tendermint/types/params.js +0 -369
- package/cosmos.staking.v1beta1/types/tendermint/types/params.ts +0 -498
- package/cosmos.tx.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.tx.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.upgrade.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.upgrade.v1beta1/types/amino/amino.ts +0 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.js +0 -2
- package/cosmos.vesting.v1beta1/types/amino/amino.ts +0 -2
- package/ibc.applications.transfer.v1/types/amino/amino.js +0 -2
- package/ibc.applications.transfer.v1/types/amino/amino.ts +0 -2
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.js +0 -135
- package/ibc.applications.transfer.v1/types/ibc/applications/transfer/v1/authz.ts +0 -178
- package/ibc.core.channel.v1/types/amino/amino.js +0 -2
- package/ibc.core.channel.v1/types/amino/amino.ts +0 -2
- package/ibc.core.client.v1/types/amino/amino.js +0 -2
- package/ibc.core.client.v1/types/amino/amino.ts +0 -2
- package/ibc.core.connection.v1/types/amino/amino.js +0 -2
- package/ibc.core.connection.v1/types/amino/amino.ts +0 -2
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/card.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/collection_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/copyright_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/council.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/image.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/match_reporter_proposal.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/num.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/running_average.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/sell_offer.ts +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.js +0 -0
- /package/DecentralCardGame.cardchain.cardchain/types/{DecentralCardGame/cardchain → cardchain}/cardchain/server.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, timeIotaMs: 0 };
|
|
89
89
|
}
|
|
90
90
|
export const BlockParams = {
|
|
91
91
|
encode(message, writer = _m0.Writer.create()) {
|
|
@@ -95,6 +95,9 @@ 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
|
+
}
|
|
98
101
|
return writer;
|
|
99
102
|
},
|
|
100
103
|
decode(input, length) {
|
|
@@ -110,6 +113,9 @@ export const BlockParams = {
|
|
|
110
113
|
case 2:
|
|
111
114
|
message.maxGas = longToNumber(reader.int64());
|
|
112
115
|
break;
|
|
116
|
+
case 3:
|
|
117
|
+
message.timeIotaMs = longToNumber(reader.int64());
|
|
118
|
+
break;
|
|
113
119
|
default:
|
|
114
120
|
reader.skipType(tag & 7);
|
|
115
121
|
break;
|
|
@@ -121,18 +127,21 @@ export const BlockParams = {
|
|
|
121
127
|
return {
|
|
122
128
|
maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
|
|
123
129
|
maxGas: isSet(object.maxGas) ? Number(object.maxGas) : 0,
|
|
130
|
+
timeIotaMs: isSet(object.timeIotaMs) ? Number(object.timeIotaMs) : 0,
|
|
124
131
|
};
|
|
125
132
|
},
|
|
126
133
|
toJSON(message) {
|
|
127
134
|
const obj = {};
|
|
128
135
|
message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
|
|
129
136
|
message.maxGas !== undefined && (obj.maxGas = Math.round(message.maxGas));
|
|
137
|
+
message.timeIotaMs !== undefined && (obj.timeIotaMs = Math.round(message.timeIotaMs));
|
|
130
138
|
return obj;
|
|
131
139
|
},
|
|
132
140
|
fromPartial(object) {
|
|
133
141
|
const message = createBaseBlockParams();
|
|
134
142
|
message.maxBytes = object.maxBytes ?? 0;
|
|
135
143
|
message.maxGas = object.maxGas ?? 0;
|
|
144
|
+
message.timeIotaMs = object.timeIotaMs ?? 0;
|
|
136
145
|
return message;
|
|
137
146
|
},
|
|
138
147
|
};
|
|
@@ -247,12 +256,12 @@ export const ValidatorParams = {
|
|
|
247
256
|
},
|
|
248
257
|
};
|
|
249
258
|
function createBaseVersionParams() {
|
|
250
|
-
return {
|
|
259
|
+
return { appVersion: 0 };
|
|
251
260
|
}
|
|
252
261
|
export const VersionParams = {
|
|
253
262
|
encode(message, writer = _m0.Writer.create()) {
|
|
254
|
-
if (message.
|
|
255
|
-
writer.uint32(8).uint64(message.
|
|
263
|
+
if (message.appVersion !== 0) {
|
|
264
|
+
writer.uint32(8).uint64(message.appVersion);
|
|
256
265
|
}
|
|
257
266
|
return writer;
|
|
258
267
|
},
|
|
@@ -264,7 +273,7 @@ export const VersionParams = {
|
|
|
264
273
|
const tag = reader.uint32();
|
|
265
274
|
switch (tag >>> 3) {
|
|
266
275
|
case 1:
|
|
267
|
-
message.
|
|
276
|
+
message.appVersion = longToNumber(reader.uint64());
|
|
268
277
|
break;
|
|
269
278
|
default:
|
|
270
279
|
reader.skipType(tag & 7);
|
|
@@ -274,16 +283,16 @@ export const VersionParams = {
|
|
|
274
283
|
return message;
|
|
275
284
|
},
|
|
276
285
|
fromJSON(object) {
|
|
277
|
-
return {
|
|
286
|
+
return { appVersion: isSet(object.appVersion) ? Number(object.appVersion) : 0 };
|
|
278
287
|
},
|
|
279
288
|
toJSON(message) {
|
|
280
289
|
const obj = {};
|
|
281
|
-
message.
|
|
290
|
+
message.appVersion !== undefined && (obj.appVersion = Math.round(message.appVersion));
|
|
282
291
|
return obj;
|
|
283
292
|
},
|
|
284
293
|
fromPartial(object) {
|
|
285
294
|
const message = createBaseVersionParams();
|
|
286
|
-
message.
|
|
295
|
+
message.appVersion = object.appVersion ?? 0;
|
|
287
296
|
return message;
|
|
288
297
|
},
|
|
289
298
|
};
|
|
@@ -28,6 +28,13 @@ 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;
|
|
31
38
|
}
|
|
32
39
|
|
|
33
40
|
/** EvidenceParams determine how we handle evidence of malfeasance. */
|
|
@@ -67,7 +74,7 @@ export interface ValidatorParams {
|
|
|
67
74
|
|
|
68
75
|
/** VersionParams contains the ABCI application version. */
|
|
69
76
|
export interface VersionParams {
|
|
70
|
-
|
|
77
|
+
appVersion: number;
|
|
71
78
|
}
|
|
72
79
|
|
|
73
80
|
/**
|
|
@@ -168,7 +175,7 @@ export const ConsensusParams = {
|
|
|
168
175
|
};
|
|
169
176
|
|
|
170
177
|
function createBaseBlockParams(): BlockParams {
|
|
171
|
-
return { maxBytes: 0, maxGas: 0 };
|
|
178
|
+
return { maxBytes: 0, maxGas: 0, timeIotaMs: 0 };
|
|
172
179
|
}
|
|
173
180
|
|
|
174
181
|
export const BlockParams = {
|
|
@@ -179,6 +186,9 @@ export const BlockParams = {
|
|
|
179
186
|
if (message.maxGas !== 0) {
|
|
180
187
|
writer.uint32(16).int64(message.maxGas);
|
|
181
188
|
}
|
|
189
|
+
if (message.timeIotaMs !== 0) {
|
|
190
|
+
writer.uint32(24).int64(message.timeIotaMs);
|
|
191
|
+
}
|
|
182
192
|
return writer;
|
|
183
193
|
},
|
|
184
194
|
|
|
@@ -195,6 +205,9 @@ export const BlockParams = {
|
|
|
195
205
|
case 2:
|
|
196
206
|
message.maxGas = longToNumber(reader.int64() as Long);
|
|
197
207
|
break;
|
|
208
|
+
case 3:
|
|
209
|
+
message.timeIotaMs = longToNumber(reader.int64() as Long);
|
|
210
|
+
break;
|
|
198
211
|
default:
|
|
199
212
|
reader.skipType(tag & 7);
|
|
200
213
|
break;
|
|
@@ -207,6 +220,7 @@ export const BlockParams = {
|
|
|
207
220
|
return {
|
|
208
221
|
maxBytes: isSet(object.maxBytes) ? Number(object.maxBytes) : 0,
|
|
209
222
|
maxGas: isSet(object.maxGas) ? Number(object.maxGas) : 0,
|
|
223
|
+
timeIotaMs: isSet(object.timeIotaMs) ? Number(object.timeIotaMs) : 0,
|
|
210
224
|
};
|
|
211
225
|
},
|
|
212
226
|
|
|
@@ -214,6 +228,7 @@ export const BlockParams = {
|
|
|
214
228
|
const obj: any = {};
|
|
215
229
|
message.maxBytes !== undefined && (obj.maxBytes = Math.round(message.maxBytes));
|
|
216
230
|
message.maxGas !== undefined && (obj.maxGas = Math.round(message.maxGas));
|
|
231
|
+
message.timeIotaMs !== undefined && (obj.timeIotaMs = Math.round(message.timeIotaMs));
|
|
217
232
|
return obj;
|
|
218
233
|
},
|
|
219
234
|
|
|
@@ -221,6 +236,7 @@ export const BlockParams = {
|
|
|
221
236
|
const message = createBaseBlockParams();
|
|
222
237
|
message.maxBytes = object.maxBytes ?? 0;
|
|
223
238
|
message.maxGas = object.maxGas ?? 0;
|
|
239
|
+
message.timeIotaMs = object.timeIotaMs ?? 0;
|
|
224
240
|
return message;
|
|
225
241
|
},
|
|
226
242
|
};
|
|
@@ -347,13 +363,13 @@ export const ValidatorParams = {
|
|
|
347
363
|
};
|
|
348
364
|
|
|
349
365
|
function createBaseVersionParams(): VersionParams {
|
|
350
|
-
return {
|
|
366
|
+
return { appVersion: 0 };
|
|
351
367
|
}
|
|
352
368
|
|
|
353
369
|
export const VersionParams = {
|
|
354
370
|
encode(message: VersionParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
355
|
-
if (message.
|
|
356
|
-
writer.uint32(8).uint64(message.
|
|
371
|
+
if (message.appVersion !== 0) {
|
|
372
|
+
writer.uint32(8).uint64(message.appVersion);
|
|
357
373
|
}
|
|
358
374
|
return writer;
|
|
359
375
|
},
|
|
@@ -366,7 +382,7 @@ export const VersionParams = {
|
|
|
366
382
|
const tag = reader.uint32();
|
|
367
383
|
switch (tag >>> 3) {
|
|
368
384
|
case 1:
|
|
369
|
-
message.
|
|
385
|
+
message.appVersion = longToNumber(reader.uint64() as Long);
|
|
370
386
|
break;
|
|
371
387
|
default:
|
|
372
388
|
reader.skipType(tag & 7);
|
|
@@ -377,18 +393,18 @@ export const VersionParams = {
|
|
|
377
393
|
},
|
|
378
394
|
|
|
379
395
|
fromJSON(object: any): VersionParams {
|
|
380
|
-
return {
|
|
396
|
+
return { appVersion: isSet(object.appVersion) ? Number(object.appVersion) : 0 };
|
|
381
397
|
},
|
|
382
398
|
|
|
383
399
|
toJSON(message: VersionParams): unknown {
|
|
384
400
|
const obj: any = {};
|
|
385
|
-
message.
|
|
401
|
+
message.appVersion !== undefined && (obj.appVersion = Math.round(message.appVersion));
|
|
386
402
|
return obj;
|
|
387
403
|
},
|
|
388
404
|
|
|
389
405
|
fromPartial<I extends Exact<DeepPartial<VersionParams>, I>>(object: I): VersionParams {
|
|
390
406
|
const message = createBaseVersionParams();
|
|
391
|
-
message.
|
|
407
|
+
message.appVersion = object.appVersion ?? 0;
|
|
392
408
|
return message;
|
|
393
409
|
},
|
|
394
410
|
};
|
|
@@ -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 of the governance account. */
|
|
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 of the governance account. */
|
|
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
|
+
* approvid software upgrade.
|
|
241
241
|
*
|
|
242
242
|
* Since: cosmos-sdk 0.46
|
|
243
243
|
*/
|
|
@@ -28,7 +28,10 @@ export interface Plan {
|
|
|
28
28
|
time:
|
|
29
29
|
| Date
|
|
30
30
|
| undefined;
|
|
31
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* The height at which the upgrade must be performed.
|
|
33
|
+
* Only used if Time is not set.
|
|
34
|
+
*/
|
|
32
35
|
height: number;
|
|
33
36
|
/**
|
|
34
37
|
* Any application specific upgrade info to be included on-chain
|
|
@@ -54,11 +57,8 @@ export interface Plan {
|
|
|
54
57
|
* @deprecated
|
|
55
58
|
*/
|
|
56
59
|
export interface SoftwareUpgradeProposal {
|
|
57
|
-
/** title of the proposal */
|
|
58
60
|
title: string;
|
|
59
|
-
/** description of the proposal */
|
|
60
61
|
description: string;
|
|
61
|
-
/** plan of the proposal */
|
|
62
62
|
plan: Plan | undefined;
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -71,9 +71,7 @@ export interface SoftwareUpgradeProposal {
|
|
|
71
71
|
* @deprecated
|
|
72
72
|
*/
|
|
73
73
|
export interface CancelSoftwareUpgradeProposal {
|
|
74
|
-
/** title of the proposal */
|
|
75
74
|
title: string;
|
|
76
|
-
/** description of the proposal */
|
|
77
75
|
description: string;
|
|
78
76
|
}
|
|
79
77
|
|
|
@@ -3,8 +3,8 @@ 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 { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
7
6
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
7
|
+
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
8
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";
|
|
@@ -12,7 +12,7 @@ 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 { MsgCreatePeriodicVestingAccount, MsgCreateVestingAccount, MsgCreatePermanentLockedAccount };
|
|
16
16
|
export const registry = new Registry(msgTypes);
|
|
17
17
|
function getStructure(template) {
|
|
18
18
|
const structure = { fields: [] };
|
|
@@ -28,32 +28,32 @@ const defaultFee = {
|
|
|
28
28
|
};
|
|
29
29
|
export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26657", prefix: "cosmos" }) => {
|
|
30
30
|
return {
|
|
31
|
-
async
|
|
31
|
+
async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }) {
|
|
32
32
|
if (!signer) {
|
|
33
|
-
throw new Error('TxClient:
|
|
33
|
+
throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Unable to sign Tx. Signer is not present.');
|
|
34
34
|
}
|
|
35
35
|
try {
|
|
36
36
|
const { address } = (await signer.getAccounts())[0];
|
|
37
37
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
38
|
-
let msg = this.
|
|
38
|
+
let msg = this.msgCreatePeriodicVestingAccount({ value: MsgCreatePeriodicVestingAccount.fromPartial(value) });
|
|
39
39
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
40
40
|
}
|
|
41
41
|
catch (e) {
|
|
42
|
-
throw new Error('TxClient:
|
|
42
|
+
throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: ' + e.message);
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
async
|
|
45
|
+
async sendMsgCreateVestingAccount({ value, fee, memo }) {
|
|
46
46
|
if (!signer) {
|
|
47
|
-
throw new Error('TxClient:
|
|
47
|
+
throw new Error('TxClient:sendMsgCreateVestingAccount: Unable to sign Tx. Signer is not present.');
|
|
48
48
|
}
|
|
49
49
|
try {
|
|
50
50
|
const { address } = (await signer.getAccounts())[0];
|
|
51
51
|
const signingClient = await SigningStargateClient.connectWithSigner(addr, signer, { registry, prefix });
|
|
52
|
-
let msg = this.
|
|
52
|
+
let msg = this.msgCreateVestingAccount({ value: MsgCreateVestingAccount.fromPartial(value) });
|
|
53
53
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo);
|
|
54
54
|
}
|
|
55
55
|
catch (e) {
|
|
56
|
-
throw new Error('TxClient:
|
|
56
|
+
throw new Error('TxClient:sendMsgCreateVestingAccount: Could not broadcast Tx: ' + e.message);
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
async sendMsgCreatePermanentLockedAccount({ value, fee, memo }) {
|
|
@@ -70,20 +70,20 @@ export const txClient = ({ signer, prefix, addr } = { addr: "http://localhost:26
|
|
|
70
70
|
throw new Error('TxClient:sendMsgCreatePermanentLockedAccount: Could not broadcast Tx: ' + e.message);
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
|
|
73
|
+
msgCreatePeriodicVestingAccount({ value }) {
|
|
74
74
|
try {
|
|
75
|
-
return { typeUrl: "/cosmos.vesting.v1beta1.
|
|
75
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial(value) };
|
|
76
76
|
}
|
|
77
77
|
catch (e) {
|
|
78
|
-
throw new Error('TxClient:
|
|
78
|
+
throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message);
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
msgCreateVestingAccount({ value }) {
|
|
82
82
|
try {
|
|
83
|
-
return { typeUrl: "/cosmos.vesting.v1beta1.
|
|
83
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial(value) };
|
|
84
84
|
}
|
|
85
85
|
catch (e) {
|
|
86
|
-
throw new Error('TxClient:
|
|
86
|
+
throw new Error('TxClient:MsgCreateVestingAccount: Could not create message: ' + e.message);
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
msgCreatePermanentLockedAccount({ value }) {
|
|
@@ -7,8 +7,8 @@ import { msgTypes } from './registry';
|
|
|
7
7
|
import { IgniteClient } from "../client"
|
|
8
8
|
import { MissingWalletError } from "../helpers"
|
|
9
9
|
import { Api } from "./rest";
|
|
10
|
-
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
11
10
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
11
|
+
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
12
12
|
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
13
13
|
|
|
14
14
|
import { BaseVestingAccount as typeBaseVestingAccount} from "./types"
|
|
@@ -18,16 +18,16 @@ 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 {
|
|
21
|
+
export { MsgCreatePeriodicVestingAccount, MsgCreateVestingAccount, MsgCreatePermanentLockedAccount };
|
|
22
22
|
|
|
23
|
-
type
|
|
24
|
-
value:
|
|
23
|
+
type sendMsgCreatePeriodicVestingAccountParams = {
|
|
24
|
+
value: MsgCreatePeriodicVestingAccount,
|
|
25
25
|
fee?: StdFee,
|
|
26
26
|
memo?: string
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
type
|
|
30
|
-
value:
|
|
29
|
+
type sendMsgCreateVestingAccountParams = {
|
|
30
|
+
value: MsgCreateVestingAccount,
|
|
31
31
|
fee?: StdFee,
|
|
32
32
|
memo?: string
|
|
33
33
|
};
|
|
@@ -39,14 +39,14 @@ type sendMsgCreatePermanentLockedAccountParams = {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
type msgCreateVestingAccountParams = {
|
|
43
|
-
value: MsgCreateVestingAccount,
|
|
44
|
-
};
|
|
45
|
-
|
|
46
42
|
type msgCreatePeriodicVestingAccountParams = {
|
|
47
43
|
value: MsgCreatePeriodicVestingAccount,
|
|
48
44
|
};
|
|
49
45
|
|
|
46
|
+
type msgCreateVestingAccountParams = {
|
|
47
|
+
value: MsgCreateVestingAccount,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
50
|
type msgCreatePermanentLockedAccountParams = {
|
|
51
51
|
value: MsgCreatePermanentLockedAccount,
|
|
52
52
|
};
|
|
@@ -81,31 +81,31 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
81
81
|
|
|
82
82
|
return {
|
|
83
83
|
|
|
84
|
-
async
|
|
84
|
+
async sendMsgCreatePeriodicVestingAccount({ value, fee, memo }: sendMsgCreatePeriodicVestingAccountParams): Promise<DeliverTxResponse> {
|
|
85
85
|
if (!signer) {
|
|
86
|
-
throw new Error('TxClient:
|
|
86
|
+
throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Unable to sign Tx. Signer is not present.')
|
|
87
87
|
}
|
|
88
88
|
try {
|
|
89
89
|
const { address } = (await signer.getAccounts())[0];
|
|
90
90
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
91
|
-
let msg = this.
|
|
91
|
+
let msg = this.msgCreatePeriodicVestingAccount({ value: MsgCreatePeriodicVestingAccount.fromPartial(value) })
|
|
92
92
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
93
93
|
} catch (e: any) {
|
|
94
|
-
throw new Error('TxClient:
|
|
94
|
+
throw new Error('TxClient:sendMsgCreatePeriodicVestingAccount: Could not broadcast Tx: '+ e.message)
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
|
|
98
|
-
async
|
|
98
|
+
async sendMsgCreateVestingAccount({ value, fee, memo }: sendMsgCreateVestingAccountParams): Promise<DeliverTxResponse> {
|
|
99
99
|
if (!signer) {
|
|
100
|
-
throw new Error('TxClient:
|
|
100
|
+
throw new Error('TxClient:sendMsgCreateVestingAccount: Unable to sign Tx. Signer is not present.')
|
|
101
101
|
}
|
|
102
102
|
try {
|
|
103
103
|
const { address } = (await signer.getAccounts())[0];
|
|
104
104
|
const signingClient = await SigningStargateClient.connectWithSigner(addr,signer,{registry, prefix});
|
|
105
|
-
let msg = this.
|
|
105
|
+
let msg = this.msgCreateVestingAccount({ value: MsgCreateVestingAccount.fromPartial(value) })
|
|
106
106
|
return await signingClient.signAndBroadcast(address, [msg], fee ? fee : defaultFee, memo)
|
|
107
107
|
} catch (e: any) {
|
|
108
|
-
throw new Error('TxClient:
|
|
108
|
+
throw new Error('TxClient:sendMsgCreateVestingAccount: Could not broadcast Tx: '+ e.message)
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
|
|
@@ -124,19 +124,19 @@ export const txClient = ({ signer, prefix, addr }: TxClientOptions = { addr: "ht
|
|
|
124
124
|
},
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
msgCreatePeriodicVestingAccount({ value }: msgCreatePeriodicVestingAccountParams): EncodeObject {
|
|
128
128
|
try {
|
|
129
|
-
return { typeUrl: "/cosmos.vesting.v1beta1.
|
|
129
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", value: MsgCreatePeriodicVestingAccount.fromPartial( value ) }
|
|
130
130
|
} catch (e: any) {
|
|
131
|
-
throw new Error('TxClient:
|
|
131
|
+
throw new Error('TxClient:MsgCreatePeriodicVestingAccount: Could not create message: ' + e.message)
|
|
132
132
|
}
|
|
133
133
|
},
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
msgCreateVestingAccount({ value }: msgCreateVestingAccountParams): EncodeObject {
|
|
136
136
|
try {
|
|
137
|
-
return { typeUrl: "/cosmos.vesting.v1beta1.
|
|
137
|
+
return { typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", value: MsgCreateVestingAccount.fromPartial( value ) }
|
|
138
138
|
} catch (e: any) {
|
|
139
|
-
throw new Error('TxClient:
|
|
139
|
+
throw new Error('TxClient:MsgCreateVestingAccount: Could not create message: ' + e.message)
|
|
140
140
|
}
|
|
141
141
|
},
|
|
142
142
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
2
1
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
2
|
+
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
3
3
|
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
4
4
|
const msgTypes = [
|
|
5
|
-
["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount],
|
|
6
5
|
["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount],
|
|
6
|
+
["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount],
|
|
7
7
|
["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount],
|
|
8
8
|
];
|
|
9
9
|
export { msgTypes };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
|
-
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
3
2
|
import { MsgCreatePeriodicVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
3
|
+
import { MsgCreateVestingAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
4
4
|
import { MsgCreatePermanentLockedAccount } from "./types/cosmos/vesting/v1beta1/tx";
|
|
5
5
|
|
|
6
6
|
const msgTypes: Array<[string, GeneratedType]> = [
|
|
7
|
-
["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount],
|
|
8
7
|
["/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount", MsgCreatePeriodicVestingAccount],
|
|
8
|
+
["/cosmos.vesting.v1beta1.MsgCreateVestingAccount", MsgCreateVestingAccount],
|
|
9
9
|
["/cosmos.vesting.v1beta1.MsgCreatePermanentLockedAccount", MsgCreatePermanentLockedAccount],
|
|
10
10
|
|
|
11
11
|
];
|
|
@@ -144,65 +144,6 @@ 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
|
-
};
|
|
206
147
|
function createBaseParams() {
|
|
207
148
|
return {
|
|
208
149
|
maxMemoCharacters: 0,
|
|
@@ -304,31 +245,6 @@ var globalThis = (() => {
|
|
|
304
245
|
}
|
|
305
246
|
throw "Unable to locate global object";
|
|
306
247
|
})();
|
|
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
|
-
}
|
|
332
248
|
function longToNumber(long) {
|
|
333
249
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
334
250
|
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|