@bze/bzejs 0.0.3 → 0.0.5
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/main/codegen/beezee/burner/burn_coins_proposal.js +13 -0
- package/main/codegen/beezee/burner/burned_coins.js +13 -0
- package/main/codegen/beezee/burner/events.js +23 -0
- package/main/codegen/beezee/burner/genesis.js +21 -0
- package/main/codegen/beezee/burner/params.js +7 -0
- package/main/codegen/beezee/burner/query.js +48 -0
- package/main/codegen/beezee/burner/tx.js +20 -0
- package/main/codegen/beezee/cointrunk/accepted_domain.js +13 -0
- package/main/codegen/beezee/cointrunk/accepted_domain_proposal.js +17 -0
- package/main/codegen/beezee/cointrunk/anon_articles_counter.js +13 -1
- package/main/codegen/beezee/cointrunk/article.js +23 -1
- package/main/codegen/beezee/cointrunk/events.js +71 -1
- package/main/codegen/beezee/cointrunk/genesis.js +43 -1
- package/main/codegen/beezee/cointrunk/params.js +26 -0
- package/main/codegen/beezee/cointrunk/publisher.js +21 -1
- package/main/codegen/beezee/cointrunk/publisher_proposal.js +19 -0
- package/main/codegen/beezee/cointrunk/query.js +158 -0
- package/main/codegen/beezee/cointrunk/tx.js +51 -0
- package/main/codegen/bze/bundle.js +12 -16
- package/main/codegen/cosmos/app/v1alpha1/config.js +31 -0
- package/main/codegen/cosmos/app/v1alpha1/module.js +53 -0
- package/main/codegen/cosmos/app/v1alpha1/query.js +18 -0
- package/main/codegen/cosmos/auth/v1beta1/auth.js +57 -1
- package/main/codegen/cosmos/auth/v1beta1/genesis.js +21 -0
- package/main/codegen/cosmos/auth/v1beta1/query.js +150 -0
- package/main/codegen/cosmos/authz/v1beta1/authz.js +63 -8
- package/main/codegen/cosmos/authz/v1beta1/event.js +29 -0
- package/main/codegen/cosmos/authz/v1beta1/genesis.js +18 -0
- package/main/codegen/cosmos/authz/v1beta1/query.js +101 -0
- package/main/codegen/cosmos/authz/v1beta1/tx.js +81 -0
- package/main/codegen/cosmos/bank/v1beta1/authz.js +18 -0
- package/main/codegen/cosmos/bank/v1beta1/bank.js +145 -0
- package/main/codegen/cosmos/bank/v1beta1/genesis.js +61 -0
- package/main/codegen/cosmos/bank/v1beta1/query.js +248 -0
- package/main/codegen/cosmos/bank/v1beta1/tx.js +65 -0
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +229 -1
- package/main/codegen/cosmos/base/kv/v1beta1/kv.js +31 -0
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +31 -1
- package/main/codegen/cosmos/base/reflection/v1beta1/reflection.js +54 -0
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +337 -0
- package/main/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +135 -1
- package/main/codegen/cosmos/base/store/v1beta1/commit_info.js +45 -1
- package/main/codegen/cosmos/base/store/v1beta1/listening.js +17 -0
- package/main/codegen/cosmos/base/tendermint/v1beta1/query.js +206 -1
- package/main/codegen/cosmos/base/v1beta1/coin.js +45 -0
- package/main/codegen/cosmos/bundle.js +73 -101
- package/main/codegen/cosmos/capability/v1beta1/capability.js +41 -1
- package/main/codegen/cosmos/capability/v1beta1/genesis.js +33 -1
- package/main/codegen/cosmos/crisis/v1beta1/genesis.js +11 -0
- package/main/codegen/cosmos/crisis/v1beta1/tx.js +22 -0
- package/main/codegen/cosmos/crypto/ed25519/keys.js +21 -0
- package/main/codegen/cosmos/crypto/hd/v1/hd.js +19 -0
- package/main/codegen/cosmos/crypto/keyring/v1/record.js +57 -0
- package/main/codegen/cosmos/crypto/multisig/keys.js +21 -0
- package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +31 -0
- package/main/codegen/cosmos/crypto/secp256k1/keys.js +21 -0
- package/main/codegen/cosmos/crypto/secp256r1/keys.js +21 -0
- package/main/codegen/cosmos/distribution/v1beta1/distribution.js +216 -0
- package/main/codegen/cosmos/distribution/v1beta1/genesis.js +184 -0
- package/main/codegen/cosmos/distribution/v1beta1/query.js +234 -0
- package/main/codegen/cosmos/distribution/v1beta1/tx.js +105 -0
- package/main/codegen/cosmos/evidence/v1beta1/evidence.js +21 -5
- package/main/codegen/cosmos/evidence/v1beta1/genesis.js +18 -0
- package/main/codegen/cosmos/evidence/v1beta1/query.js +51 -0
- package/main/codegen/cosmos/evidence/v1beta1/tx.js +23 -0
- package/main/codegen/cosmos/feegrant/v1beta1/feegrant.js +96 -8
- package/main/codegen/cosmos/feegrant/v1beta1/genesis.js +18 -0
- package/main/codegen/cosmos/feegrant/v1beta1/query.js +87 -0
- package/main/codegen/cosmos/feegrant/v1beta1/tx.js +41 -0
- package/main/codegen/cosmos/genutil/v1beta1/genesis.js +19 -0
- package/main/codegen/cosmos/gov/v1/genesis.js +47 -1
- package/main/codegen/cosmos/gov/v1/gov.js +196 -15
- package/main/codegen/cosmos/gov/v1/query.js +209 -1
- package/main/codegen/cosmos/gov/v1/tx.js +144 -0
- package/main/codegen/cosmos/gov/v1beta1/genesis.js +47 -1
- package/main/codegen/cosmos/gov/v1beta1/gov.js +198 -15
- package/main/codegen/cosmos/gov/v1beta1/query.js +209 -1
- package/main/codegen/cosmos/gov/v1beta1/tx.js +111 -0
- package/main/codegen/cosmos/group/v1/events.js +96 -1
- package/main/codegen/cosmos/group/v1/genesis.js +65 -1
- package/main/codegen/cosmos/group/v1/query.js +359 -1
- package/main/codegen/cosmos/group/v1/tx.js +365 -1
- package/main/codegen/cosmos/group/v1/types.js +269 -27
- package/main/codegen/cosmos/mint/v1beta1/genesis.js +13 -0
- package/main/codegen/cosmos/mint/v1beta1/mint.js +32 -0
- package/main/codegen/cosmos/mint/v1beta1/query.js +52 -0
- package/main/codegen/cosmos/nft/v1beta1/event.js +45 -0
- package/main/codegen/cosmos/nft/v1beta1/genesis.js +49 -0
- package/main/codegen/cosmos/nft/v1beta1/nft.js +41 -0
- package/main/codegen/cosmos/nft/v1beta1/query.js +170 -0
- package/main/codegen/cosmos/nft/v1beta1/tx.js +24 -0
- package/main/codegen/cosmos/orm/v1/orm.js +59 -0
- package/main/codegen/cosmos/orm/v1alpha1/schema.js +45 -1
- package/main/codegen/cosmos/params/v1beta1/params.js +37 -0
- package/main/codegen/cosmos/params/v1beta1/query.js +68 -0
- package/main/codegen/cosmos/slashing/v1beta1/genesis.js +74 -0
- package/main/codegen/cosmos/slashing/v1beta1/query.js +68 -0
- package/main/codegen/cosmos/slashing/v1beta1/slashing.js +43 -5
- package/main/codegen/cosmos/slashing/v1beta1/tx.js +18 -0
- package/main/codegen/cosmos/staking/v1beta1/authz.js +48 -1
- package/main/codegen/cosmos/staking/v1beta1/genesis.js +76 -0
- package/main/codegen/cosmos/staking/v1beta1/query.js +368 -0
- package/main/codegen/cosmos/staking/v1beta1/staking.js +366 -17
- package/main/codegen/cosmos/staking/v1beta1/tx.js +129 -8
- package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +95 -1
- package/main/codegen/cosmos/tx/v1beta1/service.js +173 -2
- package/main/codegen/cosmos/tx/v1beta1/tx.js +261 -0
- package/main/codegen/cosmos/upgrade/v1beta1/query.js +102 -0
- package/main/codegen/cosmos/upgrade/v1beta1/tx.js +37 -0
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +61 -5
- package/main/codegen/cosmos/vesting/v1beta1/tx.js +94 -1
- package/main/codegen/cosmos/vesting/v1beta1/vesting.js +117 -1
- package/main/codegen/cosmos_proto/cosmos.js +42 -1
- package/main/codegen/extern.js +66 -0
- package/main/codegen/google/api/http.js +69 -0
- package/main/codegen/google/protobuf/any.js +13 -0
- package/main/codegen/google/protobuf/descriptor.js +815 -6
- package/main/codegen/google/protobuf/duration.js +13 -1
- package/main/codegen/google/protobuf/empty.js +7 -0
- package/main/codegen/google/protobuf/timestamp.js +13 -1
- package/main/codegen/helpers.js +1 -1
- package/main/codegen/index.js +11 -22
- package/main/codegen/tendermint/abci/types.js +785 -12
- package/main/codegen/tendermint/crypto/keys.js +13 -0
- package/main/codegen/tendermint/crypto/proof.js +83 -1
- package/main/codegen/tendermint/libs/bits/types.js +21 -1
- package/main/codegen/tendermint/p2p/types.js +100 -12
- package/main/codegen/tendermint/types/block.js +17 -0
- package/main/codegen/tendermint/types/evidence.js +81 -8
- package/main/codegen/tendermint/types/params.js +84 -0
- package/main/codegen/tendermint/types/types.js +266 -18
- package/main/codegen/tendermint/types/validator.js +51 -1
- package/main/codegen/tendermint/version/types.js +25 -1
- package/module/codegen/beezee/burner/burn_coins_proposal.js +13 -0
- package/module/codegen/beezee/burner/burned_coins.js +13 -0
- package/module/codegen/beezee/burner/events.js +23 -0
- package/module/codegen/beezee/burner/genesis.js +19 -0
- package/module/codegen/beezee/burner/params.js +9 -0
- package/module/codegen/beezee/burner/query.js +46 -0
- package/module/codegen/beezee/burner/tx.js +20 -0
- package/module/codegen/beezee/cointrunk/accepted_domain.js +13 -0
- package/module/codegen/beezee/cointrunk/accepted_domain_proposal.js +17 -0
- package/module/codegen/beezee/cointrunk/anon_articles_counter.js +13 -1
- package/module/codegen/beezee/cointrunk/article.js +23 -1
- package/module/codegen/beezee/cointrunk/events.js +71 -1
- package/module/codegen/beezee/cointrunk/genesis.js +31 -1
- package/module/codegen/beezee/cointrunk/params.js +27 -1
- package/module/codegen/beezee/cointrunk/publisher.js +21 -1
- package/module/codegen/beezee/cointrunk/publisher_proposal.js +19 -0
- package/module/codegen/beezee/cointrunk/query.js +144 -0
- package/module/codegen/beezee/cointrunk/tx.js +52 -1
- package/module/codegen/bze/bundle.js +12 -16
- package/module/codegen/cosmos/app/v1alpha1/config.js +37 -0
- package/module/codegen/cosmos/app/v1alpha1/module.js +47 -0
- package/module/codegen/cosmos/app/v1alpha1/query.js +20 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +53 -1
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +19 -0
- package/module/codegen/cosmos/auth/v1beta1/query.js +148 -0
- package/module/codegen/cosmos/authz/v1beta1/authz.js +60 -9
- package/module/codegen/cosmos/authz/v1beta1/event.js +31 -0
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +16 -0
- package/module/codegen/cosmos/authz/v1beta1/query.js +91 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +78 -0
- package/module/codegen/cosmos/bank/v1beta1/authz.js +21 -0
- package/module/codegen/cosmos/bank/v1beta1/bank.js +123 -0
- package/module/codegen/cosmos/bank/v1beta1/genesis.js +47 -0
- package/module/codegen/cosmos/bank/v1beta1/query.js +230 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.js +55 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +193 -1
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +29 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +31 -1
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +48 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +307 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +127 -1
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +41 -1
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +25 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +194 -1
- package/module/codegen/cosmos/base/v1beta1/coin.js +52 -0
- package/module/codegen/cosmos/bundle.js +73 -101
- package/module/codegen/cosmos/capability/v1beta1/capability.js +37 -1
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +29 -1
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +13 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +24 -0
- package/module/codegen/cosmos/crypto/ed25519/keys.js +29 -0
- package/module/codegen/cosmos/crypto/hd/v1/hd.js +21 -0
- package/module/codegen/cosmos/crypto/keyring/v1/record.js +59 -0
- package/module/codegen/cosmos/crypto/multisig/keys.js +23 -0
- package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +33 -0
- package/module/codegen/cosmos/crypto/secp256k1/keys.js +29 -0
- package/module/codegen/cosmos/crypto/secp256r1/keys.js +23 -0
- package/module/codegen/cosmos/distribution/v1beta1/distribution.js +185 -1
- package/module/codegen/cosmos/distribution/v1beta1/genesis.js +153 -1
- package/module/codegen/cosmos/distribution/v1beta1/query.js +211 -1
- package/module/codegen/cosmos/distribution/v1beta1/tx.js +98 -0
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +21 -5
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +16 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.js +49 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +28 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +81 -9
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +16 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +81 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +46 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +17 -0
- package/module/codegen/cosmos/gov/v1/genesis.js +35 -1
- package/module/codegen/cosmos/gov/v1/gov.js +177 -16
- package/module/codegen/cosmos/gov/v1/query.js +198 -2
- package/module/codegen/cosmos/gov/v1/tx.js +130 -2
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +35 -1
- package/module/codegen/cosmos/gov/v1beta1/gov.js +183 -16
- package/module/codegen/cosmos/gov/v1beta1/query.js +198 -2
- package/module/codegen/cosmos/gov/v1beta1/tx.js +101 -2
- package/module/codegen/cosmos/group/v1/events.js +96 -1
- package/module/codegen/cosmos/group/v1/genesis.js +45 -1
- package/module/codegen/cosmos/group/v1/query.js +327 -1
- package/module/codegen/cosmos/group/v1/tx.js +347 -3
- package/module/codegen/cosmos/group/v1/types.js +258 -28
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +15 -0
- package/module/codegen/cosmos/mint/v1beta1/mint.js +33 -1
- package/module/codegen/cosmos/mint/v1beta1/query.js +54 -0
- package/module/codegen/cosmos/nft/v1beta1/event.js +47 -0
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +39 -0
- package/module/codegen/cosmos/nft/v1beta1/nft.js +43 -0
- package/module/codegen/cosmos/nft/v1beta1/query.js +163 -1
- package/module/codegen/cosmos/nft/v1beta1/tx.js +26 -0
- package/module/codegen/cosmos/orm/v1/orm.js +57 -0
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +41 -1
- package/module/codegen/cosmos/params/v1beta1/params.js +35 -0
- package/module/codegen/cosmos/params/v1beta1/query.js +62 -0
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +63 -1
- package/module/codegen/cosmos/slashing/v1beta1/query.js +66 -0
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +43 -5
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +20 -0
- package/module/codegen/cosmos/staking/v1beta1/authz.js +44 -1
- package/module/codegen/cosmos/staking/v1beta1/genesis.js +57 -1
- package/module/codegen/cosmos/staking/v1beta1/query.js +341 -1
- package/module/codegen/cosmos/staking/v1beta1/staking.js +339 -18
- package/module/codegen/cosmos/staking/v1beta1/tx.js +130 -9
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +88 -2
- package/module/codegen/cosmos/tx/v1beta1/service.js +158 -3
- package/module/codegen/cosmos/tx/v1beta1/tx.js +226 -1
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +99 -1
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +43 -0
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +61 -5
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +82 -1
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +97 -1
- package/module/codegen/cosmos_proto/cosmos.js +38 -1
- package/module/codegen/extern.js +30 -0
- package/module/codegen/google/api/http.js +67 -0
- package/module/codegen/google/protobuf/any.js +95 -0
- package/module/codegen/google/protobuf/descriptor.js +672 -7
- package/module/codegen/google/protobuf/duration.js +13 -1
- package/module/codegen/google/protobuf/empty.js +19 -0
- package/module/codegen/google/protobuf/timestamp.js +13 -1
- package/module/codegen/helpers.js +1 -1
- package/module/codegen/index.js +3 -4
- package/module/codegen/tendermint/abci/types.js +734 -13
- package/module/codegen/tendermint/crypto/keys.js +15 -0
- package/module/codegen/tendermint/crypto/proof.js +75 -1
- package/module/codegen/tendermint/libs/bits/types.js +17 -1
- package/module/codegen/tendermint/p2p/types.js +96 -12
- package/module/codegen/tendermint/types/block.js +17 -0
- package/module/codegen/tendermint/types/evidence.js +74 -9
- package/module/codegen/tendermint/types/params.js +81 -1
- package/module/codegen/tendermint/types/types.js +259 -19
- package/module/codegen/tendermint/types/validator.js +47 -1
- package/module/codegen/tendermint/version/types.js +25 -1
- package/package.json +1 -1
- package/src/codegen/beezee/burner/burn_coins_proposal.ts +16 -2
- package/src/codegen/beezee/burner/burned_coins.ts +16 -2
- package/src/codegen/beezee/burner/events.ts +29 -3
- package/src/codegen/beezee/burner/genesis.ts +22 -2
- package/src/codegen/beezee/burner/params.ts +10 -2
- package/src/codegen/beezee/burner/query.ts +59 -5
- package/src/codegen/beezee/burner/tx.ts +26 -3
- package/src/codegen/beezee/cointrunk/accepted_domain.ts +16 -2
- package/src/codegen/beezee/cointrunk/accepted_domain_proposal.ts +20 -2
- package/src/codegen/beezee/cointrunk/anon_articles_counter.ts +16 -2
- package/src/codegen/beezee/cointrunk/article.ts +26 -2
- package/src/codegen/beezee/cointrunk/events.ts +89 -7
- package/src/codegen/beezee/cointrunk/genesis.ts +38 -2
- package/src/codegen/beezee/cointrunk/params.ts +33 -3
- package/src/codegen/beezee/cointrunk/publisher.ts +24 -2
- package/src/codegen/beezee/cointrunk/publisher_proposal.ts +22 -2
- package/src/codegen/beezee/cointrunk/query.ts +187 -13
- package/src/codegen/beezee/cointrunk/tx.ts +64 -5
- package/src/codegen/bze/bundle.ts +14 -22
- package/src/codegen/cosmos/app/v1alpha1/config.ts +53 -3
- package/src/codegen/cosmos/app/v1alpha1/module.ts +124 -4
- package/src/codegen/cosmos/app/v1alpha1/query.ts +25 -3
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +64 -4
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +25 -2
- package/src/codegen/cosmos/auth/v1beta1/query.ts +195 -15
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +86 -16
- package/src/codegen/cosmos/authz/v1beta1/event.ts +45 -3
- package/src/codegen/cosmos/authz/v1beta1/genesis.ts +19 -2
- package/src/codegen/cosmos/authz/v1beta1/query.ts +130 -7
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +101 -7
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +19 -2
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +200 -8
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +70 -3
- package/src/codegen/cosmos/bank/v1beta1/query.ts +339 -20
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +70 -5
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +325 -11
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +35 -3
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +76 -3
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +64 -5
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +476 -27
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +163 -10
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +52 -4
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +23 -2
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +259 -16
- package/src/codegen/cosmos/base/v1beta1/coin.ts +57 -5
- package/src/codegen/cosmos/bundle.ts +103 -159
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +48 -4
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +46 -3
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +18 -2
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +28 -3
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +27 -3
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +34 -2
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +83 -6
- package/src/codegen/cosmos/crypto/multisig/keys.ts +22 -2
- package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +35 -3
- package/src/codegen/cosmos/crypto/secp256k1/keys.ts +27 -3
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +32 -3
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +237 -13
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +236 -9
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +303 -19
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +123 -9
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +26 -8
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +20 -2
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +67 -5
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +30 -3
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +137 -16
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +19 -2
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +115 -7
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +61 -5
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +21 -2
- package/src/codegen/cosmos/gov/v1/genesis.ts +55 -2
- package/src/codegen/cosmos/gov/v1/gov.ts +284 -34
- package/src/codegen/cosmos/gov/v1/query.ts +293 -19
- package/src/codegen/cosmos/gov/v1/tx.ts +173 -13
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +55 -2
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +296 -36
- package/src/codegen/cosmos/gov/v1beta1/query.ts +293 -19
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +132 -11
- package/src/codegen/cosmos/group/v1/events.ts +137 -12
- package/src/codegen/cosmos/group/v1/genesis.ts +80 -2
- package/src/codegen/cosmos/group/v1/query.ts +481 -27
- package/src/codegen/cosmos/group/v1/tx.ts +554 -34
- package/src/codegen/cosmos/group/v1/types.ts +472 -51
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +19 -2
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +53 -3
- package/src/codegen/cosmos/mint/v1beta1/query.ts +73 -7
- package/src/codegen/cosmos/nft/v1beta1/event.ts +54 -4
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +52 -3
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +69 -3
- package/src/codegen/cosmos/nft/v1beta1/query.ts +210 -15
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +37 -3
- package/src/codegen/cosmos/orm/v1/orm.ts +140 -5
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +109 -5
- package/src/codegen/cosmos/params/v1beta1/params.ts +41 -3
- package/src/codegen/cosmos/params/v1beta1/query.ts +83 -6
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +100 -5
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +87 -7
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +71 -9
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +24 -3
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +73 -5
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +91 -3
- package/src/codegen/cosmos/staking/v1beta1/query.ts +499 -29
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +507 -44
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +172 -22
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +154 -8
- package/src/codegen/cosmos/tx/v1beta1/service.ts +252 -15
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +462 -17
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +145 -11
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +53 -5
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +109 -11
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +106 -7
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +123 -7
- package/src/codegen/cosmos_proto/cosmos.ts +76 -5
- package/src/codegen/extern.ts +33 -0
- package/src/codegen/google/api/http.ts +140 -4
- package/src/codegen/google/protobuf/any.ts +47 -2
- package/src/codegen/google/protobuf/descriptor.ts +1405 -59
- package/src/codegen/google/protobuf/duration.ts +30 -2
- package/src/codegen/google/protobuf/empty.ts +10 -2
- package/src/codegen/google/protobuf/timestamp.ts +28 -2
- package/src/codegen/helpers.ts +1 -3
- package/src/codegen/index.ts +3 -4
- package/src/codegen/tendermint/abci/types.ts +970 -64
- package/src/codegen/tendermint/crypto/keys.ts +16 -2
- package/src/codegen/tendermint/crypto/proof.ts +97 -6
- package/src/codegen/tendermint/libs/bits/types.ts +22 -2
- package/src/codegen/tendermint/p2p/types.ts +118 -22
- package/src/codegen/tendermint/types/block.ts +20 -2
- package/src/codegen/tendermint/types/evidence.ts +94 -16
- package/src/codegen/tendermint/types/params.ts +137 -7
- package/src/codegen/tendermint/types/types.ts +338 -40
- package/src/codegen/tendermint/types/validator.ts +58 -4
- package/src/codegen/tendermint/version/types.ts +31 -3
- package/main/codegen/beezee/burner/tx.amino.js +0 -28
- package/main/codegen/beezee/burner/tx.registry.js +0 -47
- package/main/codegen/beezee/cointrunk/tx.amino.js +0 -59
- package/main/codegen/beezee/cointrunk/tx.registry.js +0 -65
- package/main/codegen/bze/client.js +0 -67
- package/main/codegen/cosmos/authz/v1beta1/tx.amino.js +0 -96
- package/main/codegen/cosmos/authz/v1beta1/tx.registry.js +0 -83
- package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +0 -101
- package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -65
- package/main/codegen/cosmos/client.js +0 -86
- package/main/codegen/cosmos/crisis/v1beta1/tx.amino.js +0 -32
- package/main/codegen/cosmos/crisis/v1beta1/tx.registry.js +0 -47
- package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +0 -91
- package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -101
- package/main/codegen/cosmos/evidence/v1beta1/tx.amino.js +0 -34
- package/main/codegen/cosmos/evidence/v1beta1/tx.registry.js +0 -47
- package/main/codegen/cosmos/feegrant/v1beta1/tx.amino.js +0 -57
- package/main/codegen/cosmos/feegrant/v1beta1/tx.registry.js +0 -65
- package/main/codegen/cosmos/gov/v1/tx.amino.js +0 -180
- package/main/codegen/cosmos/gov/v1/tx.registry.js +0 -119
- package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +0 -139
- package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -101
- package/main/codegen/cosmos/group/v1/tx.amino.js +0 -424
- package/main/codegen/cosmos/group/v1/tx.registry.js +0 -281
- package/main/codegen/cosmos/nft/v1beta1/tx.amino.js +0 -36
- package/main/codegen/cosmos/nft/v1beta1/tx.registry.js +0 -47
- package/main/codegen/cosmos/slashing/v1beta1/tx.amino.js +0 -24
- package/main/codegen/cosmos/slashing/v1beta1/tx.registry.js +0 -47
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +0 -213
- package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -119
- package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +0 -62
- package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -65
- package/main/codegen/cosmos/vesting/v1beta1/tx.amino.js +0 -131
- package/main/codegen/cosmos/vesting/v1beta1/tx.registry.js +0 -83
- package/module/codegen/beezee/burner/tx.amino.js +0 -23
- package/module/codegen/beezee/burner/tx.registry.js +0 -33
- package/module/codegen/beezee/cointrunk/tx.amino.js +0 -56
- package/module/codegen/beezee/cointrunk/tx.registry.js +0 -51
- package/module/codegen/bze/client.js +0 -38
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +0 -91
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +0 -69
- package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +0 -78
- package/module/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -51
- package/module/codegen/cosmos/client.js +0 -57
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +0 -27
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +0 -33
- package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +0 -88
- package/module/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -87
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +0 -29
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +0 -33
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +0 -54
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +0 -51
- package/module/codegen/cosmos/gov/v1/tx.amino.js +0 -167
- package/module/codegen/cosmos/gov/v1/tx.registry.js +0 -105
- package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +0 -128
- package/module/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -87
- package/module/codegen/cosmos/group/v1/tx.amino.js +0 -429
- package/module/codegen/cosmos/group/v1/tx.registry.js +0 -267
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +0 -31
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +0 -33
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +0 -19
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +0 -33
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +0 -216
- package/module/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -105
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +0 -59
- package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -51
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +0 -114
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +0 -69
- package/src/codegen/beezee/burner/tx.amino.ts +0 -32
- package/src/codegen/beezee/burner/tx.registry.ts +0 -37
- package/src/codegen/beezee/cointrunk/tx.amino.ts +0 -75
- package/src/codegen/beezee/cointrunk/tx.registry.ts +0 -58
- package/src/codegen/bze/client.ts +0 -48
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +0 -128
- package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +0 -79
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +0 -110
- package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +0 -58
- package/src/codegen/cosmos/client.ts +0 -76
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +0 -37
- package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +0 -37
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +0 -120
- package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +0 -100
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +0 -41
- package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +0 -37
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +0 -74
- package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +0 -58
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +0 -226
- package/src/codegen/cosmos/gov/v1/tx.registry.ts +0 -121
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +0 -174
- package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +0 -100
- package/src/codegen/cosmos/group/v1/tx.amino.ts +0 -583
- package/src/codegen/cosmos/group/v1/tx.registry.ts +0 -310
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +0 -42
- package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +0 -37
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +0 -27
- package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +0 -37
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +0 -294
- package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +0 -121
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +0 -86
- package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +0 -58
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +0 -155
- package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +0 -79
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
1
|
+
import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp";
|
|
2
2
|
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
|
3
|
-
import { Long, toTimestamp, fromTimestamp, DeepPartial } from "../../../helpers";
|
|
4
3
|
import * as _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Long, isSet, fromJsonTimestamp, fromTimestamp, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
5
5
|
/**
|
|
6
6
|
* ValidatorSigningInfo defines a validator's signing info for monitoring their
|
|
7
7
|
* liveness activity.
|
|
@@ -21,7 +21,7 @@ export interface ValidatorSigningInfo {
|
|
|
21
21
|
indexOffset: Long;
|
|
22
22
|
/** Timestamp until which the validator is jailed due to liveness downtime. */
|
|
23
23
|
|
|
24
|
-
jailedUntil?:
|
|
24
|
+
jailedUntil?: Timestamp;
|
|
25
25
|
/**
|
|
26
26
|
* Whether or not a validator has been tombstoned (killed out of validator set). It is set
|
|
27
27
|
* once the validator commits an equivocation or for any other configured misbehiavor.
|
|
@@ -42,10 +42,30 @@ export interface ValidatorSigningInfo {
|
|
|
42
42
|
|
|
43
43
|
export interface ValidatorSigningInfoSDKType {
|
|
44
44
|
address: string;
|
|
45
|
+
/** Height at which validator was first a candidate OR was unjailed */
|
|
46
|
+
|
|
45
47
|
start_height: Long;
|
|
48
|
+
/**
|
|
49
|
+
* Index which is incremented each time the validator was a bonded
|
|
50
|
+
* in a block and may have signed a precommit or not. This in conjunction with the
|
|
51
|
+
* `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`.
|
|
52
|
+
*/
|
|
53
|
+
|
|
46
54
|
index_offset: Long;
|
|
47
|
-
|
|
55
|
+
/** Timestamp until which the validator is jailed due to liveness downtime. */
|
|
56
|
+
|
|
57
|
+
jailed_until?: TimestampSDKType;
|
|
58
|
+
/**
|
|
59
|
+
* Whether or not a validator has been tombstoned (killed out of validator set). It is set
|
|
60
|
+
* once the validator commits an equivocation or for any other configured misbehiavor.
|
|
61
|
+
*/
|
|
62
|
+
|
|
48
63
|
tombstoned: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* A counter kept to avoid unnecessary array reads.
|
|
66
|
+
* Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`.
|
|
67
|
+
*/
|
|
68
|
+
|
|
49
69
|
missed_blocks_counter: Long;
|
|
50
70
|
}
|
|
51
71
|
/** Params represents the parameters used for by the slashing module. */
|
|
@@ -93,7 +113,7 @@ export const ValidatorSigningInfo = {
|
|
|
93
113
|
}
|
|
94
114
|
|
|
95
115
|
if (message.jailedUntil !== undefined) {
|
|
96
|
-
Timestamp.encode(
|
|
116
|
+
Timestamp.encode(message.jailedUntil, writer.uint32(34).fork()).ldelim();
|
|
97
117
|
}
|
|
98
118
|
|
|
99
119
|
if (message.tombstoned === true) {
|
|
@@ -129,7 +149,7 @@ export const ValidatorSigningInfo = {
|
|
|
129
149
|
break;
|
|
130
150
|
|
|
131
151
|
case 4:
|
|
132
|
-
message.jailedUntil =
|
|
152
|
+
message.jailedUntil = Timestamp.decode(reader, reader.uint32());
|
|
133
153
|
break;
|
|
134
154
|
|
|
135
155
|
case 5:
|
|
@@ -149,12 +169,34 @@ export const ValidatorSigningInfo = {
|
|
|
149
169
|
return message;
|
|
150
170
|
},
|
|
151
171
|
|
|
152
|
-
|
|
172
|
+
fromJSON(object: any): ValidatorSigningInfo {
|
|
173
|
+
return {
|
|
174
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
175
|
+
startHeight: isSet(object.startHeight) ? Long.fromValue(object.startHeight) : Long.ZERO,
|
|
176
|
+
indexOffset: isSet(object.indexOffset) ? Long.fromValue(object.indexOffset) : Long.ZERO,
|
|
177
|
+
jailedUntil: isSet(object.jailedUntil) ? fromJsonTimestamp(object.jailedUntil) : undefined,
|
|
178
|
+
tombstoned: isSet(object.tombstoned) ? Boolean(object.tombstoned) : false,
|
|
179
|
+
missedBlocksCounter: isSet(object.missedBlocksCounter) ? Long.fromValue(object.missedBlocksCounter) : Long.ZERO
|
|
180
|
+
};
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
toJSON(message: ValidatorSigningInfo): unknown {
|
|
184
|
+
const obj: any = {};
|
|
185
|
+
message.address !== undefined && (obj.address = message.address);
|
|
186
|
+
message.startHeight !== undefined && (obj.startHeight = (message.startHeight || Long.ZERO).toString());
|
|
187
|
+
message.indexOffset !== undefined && (obj.indexOffset = (message.indexOffset || Long.ZERO).toString());
|
|
188
|
+
message.jailedUntil !== undefined && (obj.jailedUntil = fromTimestamp(message.jailedUntil).toISOString());
|
|
189
|
+
message.tombstoned !== undefined && (obj.tombstoned = message.tombstoned);
|
|
190
|
+
message.missedBlocksCounter !== undefined && (obj.missedBlocksCounter = (message.missedBlocksCounter || Long.ZERO).toString());
|
|
191
|
+
return obj;
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
fromPartial(object: Partial<ValidatorSigningInfo>): ValidatorSigningInfo {
|
|
153
195
|
const message = createBaseValidatorSigningInfo();
|
|
154
196
|
message.address = object.address ?? "";
|
|
155
197
|
message.startHeight = object.startHeight !== undefined && object.startHeight !== null ? Long.fromValue(object.startHeight) : Long.ZERO;
|
|
156
198
|
message.indexOffset = object.indexOffset !== undefined && object.indexOffset !== null ? Long.fromValue(object.indexOffset) : Long.ZERO;
|
|
157
|
-
message.jailedUntil = object.jailedUntil
|
|
199
|
+
message.jailedUntil = object.jailedUntil !== undefined && object.jailedUntil !== null ? Timestamp.fromPartial(object.jailedUntil) : undefined;
|
|
158
200
|
message.tombstoned = object.tombstoned ?? false;
|
|
159
201
|
message.missedBlocksCounter = object.missedBlocksCounter !== undefined && object.missedBlocksCounter !== null ? Long.fromValue(object.missedBlocksCounter) : Long.ZERO;
|
|
160
202
|
return message;
|
|
@@ -235,7 +277,27 @@ export const Params = {
|
|
|
235
277
|
return message;
|
|
236
278
|
},
|
|
237
279
|
|
|
238
|
-
|
|
280
|
+
fromJSON(object: any): Params {
|
|
281
|
+
return {
|
|
282
|
+
signedBlocksWindow: isSet(object.signedBlocksWindow) ? Long.fromValue(object.signedBlocksWindow) : Long.ZERO,
|
|
283
|
+
minSignedPerWindow: isSet(object.minSignedPerWindow) ? bytesFromBase64(object.minSignedPerWindow) : new Uint8Array(),
|
|
284
|
+
downtimeJailDuration: isSet(object.downtimeJailDuration) ? Duration.fromJSON(object.downtimeJailDuration) : undefined,
|
|
285
|
+
slashFractionDoubleSign: isSet(object.slashFractionDoubleSign) ? bytesFromBase64(object.slashFractionDoubleSign) : new Uint8Array(),
|
|
286
|
+
slashFractionDowntime: isSet(object.slashFractionDowntime) ? bytesFromBase64(object.slashFractionDowntime) : new Uint8Array()
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
toJSON(message: Params): unknown {
|
|
291
|
+
const obj: any = {};
|
|
292
|
+
message.signedBlocksWindow !== undefined && (obj.signedBlocksWindow = (message.signedBlocksWindow || Long.ZERO).toString());
|
|
293
|
+
message.minSignedPerWindow !== undefined && (obj.minSignedPerWindow = base64FromBytes(message.minSignedPerWindow !== undefined ? message.minSignedPerWindow : new Uint8Array()));
|
|
294
|
+
message.downtimeJailDuration !== undefined && (obj.downtimeJailDuration = message.downtimeJailDuration ? Duration.toJSON(message.downtimeJailDuration) : undefined);
|
|
295
|
+
message.slashFractionDoubleSign !== undefined && (obj.slashFractionDoubleSign = base64FromBytes(message.slashFractionDoubleSign !== undefined ? message.slashFractionDoubleSign : new Uint8Array()));
|
|
296
|
+
message.slashFractionDowntime !== undefined && (obj.slashFractionDowntime = base64FromBytes(message.slashFractionDowntime !== undefined ? message.slashFractionDowntime : new Uint8Array()));
|
|
297
|
+
return obj;
|
|
298
|
+
},
|
|
299
|
+
|
|
300
|
+
fromPartial(object: Partial<Params>): Params {
|
|
239
301
|
const message = createBaseParams();
|
|
240
302
|
message.signedBlocksWindow = object.signedBlocksWindow !== undefined && object.signedBlocksWindow !== null ? Long.fromValue(object.signedBlocksWindow) : Long.ZERO;
|
|
241
303
|
message.minSignedPerWindow = object.minSignedPerWindow ?? new Uint8Array();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import {
|
|
2
|
+
import { isSet } from "../../../helpers";
|
|
3
3
|
/** MsgUnjail defines the Msg/Unjail request type */
|
|
4
4
|
|
|
5
5
|
export interface MsgUnjail {
|
|
@@ -54,7 +54,19 @@ export const MsgUnjail = {
|
|
|
54
54
|
return message;
|
|
55
55
|
},
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
fromJSON(object: any): MsgUnjail {
|
|
58
|
+
return {
|
|
59
|
+
validatorAddr: isSet(object.validatorAddr) ? String(object.validatorAddr) : ""
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
toJSON(message: MsgUnjail): unknown {
|
|
64
|
+
const obj: any = {};
|
|
65
|
+
message.validatorAddr !== undefined && (obj.validatorAddr = message.validatorAddr);
|
|
66
|
+
return obj;
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
fromPartial(object: Partial<MsgUnjail>): MsgUnjail {
|
|
58
70
|
const message = createBaseMsgUnjail();
|
|
59
71
|
message.validatorAddr = object.validatorAddr ?? "";
|
|
60
72
|
return message;
|
|
@@ -89,7 +101,16 @@ export const MsgUnjailResponse = {
|
|
|
89
101
|
return message;
|
|
90
102
|
},
|
|
91
103
|
|
|
92
|
-
|
|
104
|
+
fromJSON(_: any): MsgUnjailResponse {
|
|
105
|
+
return {};
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
toJSON(_: MsgUnjailResponse): unknown {
|
|
109
|
+
const obj: any = {};
|
|
110
|
+
return obj;
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
fromPartial(_: Partial<MsgUnjailResponse>): MsgUnjailResponse {
|
|
93
114
|
const message = createBaseMsgUnjailResponse();
|
|
94
115
|
return message;
|
|
95
116
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
|
-
import {
|
|
3
|
+
import { isSet } from "../../../helpers";
|
|
4
4
|
/**
|
|
5
5
|
* AuthorizationType defines the type of staking module authorization type
|
|
6
6
|
*
|
|
@@ -21,7 +21,26 @@ export enum AuthorizationType {
|
|
|
21
21
|
AUTHORIZATION_TYPE_REDELEGATE = 3,
|
|
22
22
|
UNRECOGNIZED = -1,
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
/**
|
|
25
|
+
* AuthorizationType defines the type of staking module authorization type
|
|
26
|
+
*
|
|
27
|
+
* Since: cosmos-sdk 0.43
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
export enum AuthorizationTypeSDKType {
|
|
31
|
+
/** AUTHORIZATION_TYPE_UNSPECIFIED - AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type */
|
|
32
|
+
AUTHORIZATION_TYPE_UNSPECIFIED = 0,
|
|
33
|
+
|
|
34
|
+
/** AUTHORIZATION_TYPE_DELEGATE - AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate */
|
|
35
|
+
AUTHORIZATION_TYPE_DELEGATE = 1,
|
|
36
|
+
|
|
37
|
+
/** AUTHORIZATION_TYPE_UNDELEGATE - AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate */
|
|
38
|
+
AUTHORIZATION_TYPE_UNDELEGATE = 2,
|
|
39
|
+
|
|
40
|
+
/** AUTHORIZATION_TYPE_REDELEGATE - AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate */
|
|
41
|
+
AUTHORIZATION_TYPE_REDELEGATE = 3,
|
|
42
|
+
UNRECOGNIZED = -1,
|
|
43
|
+
}
|
|
25
44
|
export function authorizationTypeFromJSON(object: any): AuthorizationType {
|
|
26
45
|
switch (object) {
|
|
27
46
|
case 0:
|
|
@@ -97,10 +116,23 @@ export interface StakeAuthorization {
|
|
|
97
116
|
*/
|
|
98
117
|
|
|
99
118
|
export interface StakeAuthorizationSDKType {
|
|
119
|
+
/**
|
|
120
|
+
* max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
|
|
121
|
+
* empty, there is no spend limit and any amount of coins can be delegated.
|
|
122
|
+
*/
|
|
100
123
|
max_tokens?: CoinSDKType;
|
|
124
|
+
/**
|
|
125
|
+
* allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
|
|
126
|
+
* account.
|
|
127
|
+
*/
|
|
128
|
+
|
|
101
129
|
allow_list?: StakeAuthorization_ValidatorsSDKType;
|
|
130
|
+
/** deny_list specifies list of validator addresses to whom grantee can not delegate tokens. */
|
|
131
|
+
|
|
102
132
|
deny_list?: StakeAuthorization_ValidatorsSDKType;
|
|
103
|
-
authorization_type
|
|
133
|
+
/** authorization_type defines one of AuthorizationType. */
|
|
134
|
+
|
|
135
|
+
authorization_type: AuthorizationTypeSDKType;
|
|
104
136
|
}
|
|
105
137
|
/** Validators defines list of validator addresses. */
|
|
106
138
|
|
|
@@ -177,7 +209,25 @@ export const StakeAuthorization = {
|
|
|
177
209
|
return message;
|
|
178
210
|
},
|
|
179
211
|
|
|
180
|
-
|
|
212
|
+
fromJSON(object: any): StakeAuthorization {
|
|
213
|
+
return {
|
|
214
|
+
maxTokens: isSet(object.maxTokens) ? Coin.fromJSON(object.maxTokens) : undefined,
|
|
215
|
+
allowList: isSet(object.allowList) ? StakeAuthorization_Validators.fromJSON(object.allowList) : undefined,
|
|
216
|
+
denyList: isSet(object.denyList) ? StakeAuthorization_Validators.fromJSON(object.denyList) : undefined,
|
|
217
|
+
authorizationType: isSet(object.authorizationType) ? authorizationTypeFromJSON(object.authorizationType) : 0
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
toJSON(message: StakeAuthorization): unknown {
|
|
222
|
+
const obj: any = {};
|
|
223
|
+
message.maxTokens !== undefined && (obj.maxTokens = message.maxTokens ? Coin.toJSON(message.maxTokens) : undefined);
|
|
224
|
+
message.allowList !== undefined && (obj.allowList = message.allowList ? StakeAuthorization_Validators.toJSON(message.allowList) : undefined);
|
|
225
|
+
message.denyList !== undefined && (obj.denyList = message.denyList ? StakeAuthorization_Validators.toJSON(message.denyList) : undefined);
|
|
226
|
+
message.authorizationType !== undefined && (obj.authorizationType = authorizationTypeToJSON(message.authorizationType));
|
|
227
|
+
return obj;
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
fromPartial(object: Partial<StakeAuthorization>): StakeAuthorization {
|
|
181
231
|
const message = createBaseStakeAuthorization();
|
|
182
232
|
message.maxTokens = object.maxTokens !== undefined && object.maxTokens !== null ? Coin.fromPartial(object.maxTokens) : undefined;
|
|
183
233
|
message.allowList = object.allowList !== undefined && object.allowList !== null ? StakeAuthorization_Validators.fromPartial(object.allowList) : undefined;
|
|
@@ -225,7 +275,25 @@ export const StakeAuthorization_Validators = {
|
|
|
225
275
|
return message;
|
|
226
276
|
},
|
|
227
277
|
|
|
228
|
-
|
|
278
|
+
fromJSON(object: any): StakeAuthorization_Validators {
|
|
279
|
+
return {
|
|
280
|
+
address: Array.isArray(object?.address) ? object.address.map((e: any) => String(e)) : []
|
|
281
|
+
};
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
toJSON(message: StakeAuthorization_Validators): unknown {
|
|
285
|
+
const obj: any = {};
|
|
286
|
+
|
|
287
|
+
if (message.address) {
|
|
288
|
+
obj.address = message.address.map(e => e);
|
|
289
|
+
} else {
|
|
290
|
+
obj.address = [];
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
return obj;
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
fromPartial(object: Partial<StakeAuthorization_Validators>): StakeAuthorization_Validators {
|
|
229
297
|
const message = createBaseStakeAuthorization_Validators();
|
|
230
298
|
message.address = object.address?.map(e => e) || [];
|
|
231
299
|
return message;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Params, ParamsSDKType, Validator, ValidatorSDKType, Delegation, DelegationSDKType, UnbondingDelegation, UnbondingDelegationSDKType, Redelegation, RedelegationSDKType } from "./staking";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
|
-
import {
|
|
3
|
+
import { isSet, bytesFromBase64, base64FromBytes, Long } from "../../../helpers";
|
|
4
4
|
/** GenesisState defines the staking module's genesis state. */
|
|
5
5
|
|
|
6
6
|
export interface GenesisState {
|
|
@@ -35,12 +35,31 @@ export interface GenesisState {
|
|
|
35
35
|
/** GenesisState defines the staking module's genesis state. */
|
|
36
36
|
|
|
37
37
|
export interface GenesisStateSDKType {
|
|
38
|
+
/** params defines all the paramaters of related to deposit. */
|
|
38
39
|
params?: ParamsSDKType;
|
|
40
|
+
/**
|
|
41
|
+
* last_total_power tracks the total amounts of bonded tokens recorded during
|
|
42
|
+
* the previous end block.
|
|
43
|
+
*/
|
|
44
|
+
|
|
39
45
|
last_total_power: Uint8Array;
|
|
46
|
+
/**
|
|
47
|
+
* last_validator_powers is a special index that provides a historical list
|
|
48
|
+
* of the last-block's bonded validators.
|
|
49
|
+
*/
|
|
50
|
+
|
|
40
51
|
last_validator_powers: LastValidatorPowerSDKType[];
|
|
52
|
+
/** delegations defines the validator set at genesis. */
|
|
53
|
+
|
|
41
54
|
validators: ValidatorSDKType[];
|
|
55
|
+
/** delegations defines the delegations active at genesis. */
|
|
56
|
+
|
|
42
57
|
delegations: DelegationSDKType[];
|
|
58
|
+
/** unbonding_delegations defines the unbonding delegations active at genesis. */
|
|
59
|
+
|
|
43
60
|
unbonding_delegations: UnbondingDelegationSDKType[];
|
|
61
|
+
/** redelegations defines the redelegations active at genesis. */
|
|
62
|
+
|
|
44
63
|
redelegations: RedelegationSDKType[];
|
|
45
64
|
exported: boolean;
|
|
46
65
|
}
|
|
@@ -56,7 +75,10 @@ export interface LastValidatorPower {
|
|
|
56
75
|
/** LastValidatorPower required for validator set update logic. */
|
|
57
76
|
|
|
58
77
|
export interface LastValidatorPowerSDKType {
|
|
78
|
+
/** address is the address of the validator. */
|
|
59
79
|
address: string;
|
|
80
|
+
/** power defines the power of the validator. */
|
|
81
|
+
|
|
60
82
|
power: Long;
|
|
61
83
|
}
|
|
62
84
|
|
|
@@ -160,7 +182,59 @@ export const GenesisState = {
|
|
|
160
182
|
return message;
|
|
161
183
|
},
|
|
162
184
|
|
|
163
|
-
|
|
185
|
+
fromJSON(object: any): GenesisState {
|
|
186
|
+
return {
|
|
187
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
188
|
+
lastTotalPower: isSet(object.lastTotalPower) ? bytesFromBase64(object.lastTotalPower) : new Uint8Array(),
|
|
189
|
+
lastValidatorPowers: Array.isArray(object?.lastValidatorPowers) ? object.lastValidatorPowers.map((e: any) => LastValidatorPower.fromJSON(e)) : [],
|
|
190
|
+
validators: Array.isArray(object?.validators) ? object.validators.map((e: any) => Validator.fromJSON(e)) : [],
|
|
191
|
+
delegations: Array.isArray(object?.delegations) ? object.delegations.map((e: any) => Delegation.fromJSON(e)) : [],
|
|
192
|
+
unbondingDelegations: Array.isArray(object?.unbondingDelegations) ? object.unbondingDelegations.map((e: any) => UnbondingDelegation.fromJSON(e)) : [],
|
|
193
|
+
redelegations: Array.isArray(object?.redelegations) ? object.redelegations.map((e: any) => Redelegation.fromJSON(e)) : [],
|
|
194
|
+
exported: isSet(object.exported) ? Boolean(object.exported) : false
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
toJSON(message: GenesisState): unknown {
|
|
199
|
+
const obj: any = {};
|
|
200
|
+
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
201
|
+
message.lastTotalPower !== undefined && (obj.lastTotalPower = base64FromBytes(message.lastTotalPower !== undefined ? message.lastTotalPower : new Uint8Array()));
|
|
202
|
+
|
|
203
|
+
if (message.lastValidatorPowers) {
|
|
204
|
+
obj.lastValidatorPowers = message.lastValidatorPowers.map(e => e ? LastValidatorPower.toJSON(e) : undefined);
|
|
205
|
+
} else {
|
|
206
|
+
obj.lastValidatorPowers = [];
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (message.validators) {
|
|
210
|
+
obj.validators = message.validators.map(e => e ? Validator.toJSON(e) : undefined);
|
|
211
|
+
} else {
|
|
212
|
+
obj.validators = [];
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (message.delegations) {
|
|
216
|
+
obj.delegations = message.delegations.map(e => e ? Delegation.toJSON(e) : undefined);
|
|
217
|
+
} else {
|
|
218
|
+
obj.delegations = [];
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (message.unbondingDelegations) {
|
|
222
|
+
obj.unbondingDelegations = message.unbondingDelegations.map(e => e ? UnbondingDelegation.toJSON(e) : undefined);
|
|
223
|
+
} else {
|
|
224
|
+
obj.unbondingDelegations = [];
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (message.redelegations) {
|
|
228
|
+
obj.redelegations = message.redelegations.map(e => e ? Redelegation.toJSON(e) : undefined);
|
|
229
|
+
} else {
|
|
230
|
+
obj.redelegations = [];
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
message.exported !== undefined && (obj.exported = message.exported);
|
|
234
|
+
return obj;
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
fromPartial(object: Partial<GenesisState>): GenesisState {
|
|
164
238
|
const message = createBaseGenesisState();
|
|
165
239
|
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
166
240
|
message.lastTotalPower = object.lastTotalPower ?? new Uint8Array();
|
|
@@ -221,7 +295,21 @@ export const LastValidatorPower = {
|
|
|
221
295
|
return message;
|
|
222
296
|
},
|
|
223
297
|
|
|
224
|
-
|
|
298
|
+
fromJSON(object: any): LastValidatorPower {
|
|
299
|
+
return {
|
|
300
|
+
address: isSet(object.address) ? String(object.address) : "",
|
|
301
|
+
power: isSet(object.power) ? Long.fromValue(object.power) : Long.ZERO
|
|
302
|
+
};
|
|
303
|
+
},
|
|
304
|
+
|
|
305
|
+
toJSON(message: LastValidatorPower): unknown {
|
|
306
|
+
const obj: any = {};
|
|
307
|
+
message.address !== undefined && (obj.address = message.address);
|
|
308
|
+
message.power !== undefined && (obj.power = (message.power || Long.ZERO).toString());
|
|
309
|
+
return obj;
|
|
310
|
+
},
|
|
311
|
+
|
|
312
|
+
fromPartial(object: Partial<LastValidatorPower>): LastValidatorPower {
|
|
225
313
|
const message = createBaseLastValidatorPower();
|
|
226
314
|
message.address = object.address ?? "";
|
|
227
315
|
message.power = object.power !== undefined && object.power !== null ? Long.fromValue(object.power) : Long.ZERO;
|