@bze/bzejs 0.0.2 → 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/.gitkeep +0 -0
- 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
|
@@ -2,7 +2,7 @@ import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } fr
|
|
|
2
2
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
|
3
3
|
import { Params, ParamsSDKType } from "./auth";
|
|
4
4
|
import * as _m0 from "protobufjs/minimal";
|
|
5
|
-
import {
|
|
5
|
+
import { isSet, bytesFromBase64, base64FromBytes } from "../../../helpers";
|
|
6
6
|
/**
|
|
7
7
|
* QueryAccountsRequest is the request type for the Query/Accounts RPC method.
|
|
8
8
|
*
|
|
@@ -20,6 +20,7 @@ export interface QueryAccountsRequest {
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
export interface QueryAccountsRequestSDKType {
|
|
23
|
+
/** pagination defines an optional pagination for the request. */
|
|
23
24
|
pagination?: PageRequestSDKType;
|
|
24
25
|
}
|
|
25
26
|
/**
|
|
@@ -42,7 +43,10 @@ export interface QueryAccountsResponse {
|
|
|
42
43
|
*/
|
|
43
44
|
|
|
44
45
|
export interface QueryAccountsResponseSDKType {
|
|
46
|
+
/** accounts are the existing accounts */
|
|
45
47
|
accounts: AnySDKType[];
|
|
48
|
+
/** pagination defines the pagination in the response. */
|
|
49
|
+
|
|
46
50
|
pagination?: PageResponseSDKType;
|
|
47
51
|
}
|
|
48
52
|
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
@@ -54,6 +58,7 @@ export interface QueryAccountRequest {
|
|
|
54
58
|
/** QueryAccountRequest is the request type for the Query/Account RPC method. */
|
|
55
59
|
|
|
56
60
|
export interface QueryAccountRequestSDKType {
|
|
61
|
+
/** address defines the address to query for. */
|
|
57
62
|
address: string;
|
|
58
63
|
}
|
|
59
64
|
/** QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method. */
|
|
@@ -71,6 +76,7 @@ export interface QueryParamsResponse {
|
|
|
71
76
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
72
77
|
|
|
73
78
|
export interface QueryParamsResponseSDKType {
|
|
79
|
+
/** params defines the parameters of the module. */
|
|
74
80
|
params?: ParamsSDKType;
|
|
75
81
|
}
|
|
76
82
|
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
|
@@ -82,6 +88,7 @@ export interface QueryAccountResponse {
|
|
|
82
88
|
/** QueryAccountResponse is the response type for the Query/Account RPC method. */
|
|
83
89
|
|
|
84
90
|
export interface QueryAccountResponseSDKType {
|
|
91
|
+
/** account defines the account of the corresponding address. */
|
|
85
92
|
account?: AnySDKType;
|
|
86
93
|
}
|
|
87
94
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
@@ -194,7 +201,19 @@ export const QueryAccountsRequest = {
|
|
|
194
201
|
return message;
|
|
195
202
|
},
|
|
196
203
|
|
|
197
|
-
|
|
204
|
+
fromJSON(object: any): QueryAccountsRequest {
|
|
205
|
+
return {
|
|
206
|
+
pagination: isSet(object.pagination) ? PageRequest.fromJSON(object.pagination) : undefined
|
|
207
|
+
};
|
|
208
|
+
},
|
|
209
|
+
|
|
210
|
+
toJSON(message: QueryAccountsRequest): unknown {
|
|
211
|
+
const obj: any = {};
|
|
212
|
+
message.pagination !== undefined && (obj.pagination = message.pagination ? PageRequest.toJSON(message.pagination) : undefined);
|
|
213
|
+
return obj;
|
|
214
|
+
},
|
|
215
|
+
|
|
216
|
+
fromPartial(object: Partial<QueryAccountsRequest>): QueryAccountsRequest {
|
|
198
217
|
const message = createBaseQueryAccountsRequest();
|
|
199
218
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
200
219
|
return message;
|
|
@@ -248,7 +267,27 @@ export const QueryAccountsResponse = {
|
|
|
248
267
|
return message;
|
|
249
268
|
},
|
|
250
269
|
|
|
251
|
-
|
|
270
|
+
fromJSON(object: any): QueryAccountsResponse {
|
|
271
|
+
return {
|
|
272
|
+
accounts: Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : [],
|
|
273
|
+
pagination: isSet(object.pagination) ? PageResponse.fromJSON(object.pagination) : undefined
|
|
274
|
+
};
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
toJSON(message: QueryAccountsResponse): unknown {
|
|
278
|
+
const obj: any = {};
|
|
279
|
+
|
|
280
|
+
if (message.accounts) {
|
|
281
|
+
obj.accounts = message.accounts.map(e => e ? Any.toJSON(e) : undefined);
|
|
282
|
+
} else {
|
|
283
|
+
obj.accounts = [];
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
message.pagination !== undefined && (obj.pagination = message.pagination ? PageResponse.toJSON(message.pagination) : undefined);
|
|
287
|
+
return obj;
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
fromPartial(object: Partial<QueryAccountsResponse>): QueryAccountsResponse {
|
|
252
291
|
const message = createBaseQueryAccountsResponse();
|
|
253
292
|
message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || [];
|
|
254
293
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
@@ -294,7 +333,19 @@ export const QueryAccountRequest = {
|
|
|
294
333
|
return message;
|
|
295
334
|
},
|
|
296
335
|
|
|
297
|
-
|
|
336
|
+
fromJSON(object: any): QueryAccountRequest {
|
|
337
|
+
return {
|
|
338
|
+
address: isSet(object.address) ? String(object.address) : ""
|
|
339
|
+
};
|
|
340
|
+
},
|
|
341
|
+
|
|
342
|
+
toJSON(message: QueryAccountRequest): unknown {
|
|
343
|
+
const obj: any = {};
|
|
344
|
+
message.address !== undefined && (obj.address = message.address);
|
|
345
|
+
return obj;
|
|
346
|
+
},
|
|
347
|
+
|
|
348
|
+
fromPartial(object: Partial<QueryAccountRequest>): QueryAccountRequest {
|
|
298
349
|
const message = createBaseQueryAccountRequest();
|
|
299
350
|
message.address = object.address ?? "";
|
|
300
351
|
return message;
|
|
@@ -329,7 +380,16 @@ export const QueryModuleAccountsRequest = {
|
|
|
329
380
|
return message;
|
|
330
381
|
},
|
|
331
382
|
|
|
332
|
-
|
|
383
|
+
fromJSON(_: any): QueryModuleAccountsRequest {
|
|
384
|
+
return {};
|
|
385
|
+
},
|
|
386
|
+
|
|
387
|
+
toJSON(_: QueryModuleAccountsRequest): unknown {
|
|
388
|
+
const obj: any = {};
|
|
389
|
+
return obj;
|
|
390
|
+
},
|
|
391
|
+
|
|
392
|
+
fromPartial(_: Partial<QueryModuleAccountsRequest>): QueryModuleAccountsRequest {
|
|
333
393
|
const message = createBaseQueryModuleAccountsRequest();
|
|
334
394
|
return message;
|
|
335
395
|
}
|
|
@@ -373,7 +433,19 @@ export const QueryParamsResponse = {
|
|
|
373
433
|
return message;
|
|
374
434
|
},
|
|
375
435
|
|
|
376
|
-
|
|
436
|
+
fromJSON(object: any): QueryParamsResponse {
|
|
437
|
+
return {
|
|
438
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined
|
|
439
|
+
};
|
|
440
|
+
},
|
|
441
|
+
|
|
442
|
+
toJSON(message: QueryParamsResponse): unknown {
|
|
443
|
+
const obj: any = {};
|
|
444
|
+
message.params !== undefined && (obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
445
|
+
return obj;
|
|
446
|
+
},
|
|
447
|
+
|
|
448
|
+
fromPartial(object: Partial<QueryParamsResponse>): QueryParamsResponse {
|
|
377
449
|
const message = createBaseQueryParamsResponse();
|
|
378
450
|
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
379
451
|
return message;
|
|
@@ -418,7 +490,19 @@ export const QueryAccountResponse = {
|
|
|
418
490
|
return message;
|
|
419
491
|
},
|
|
420
492
|
|
|
421
|
-
|
|
493
|
+
fromJSON(object: any): QueryAccountResponse {
|
|
494
|
+
return {
|
|
495
|
+
account: isSet(object.account) ? Any.fromJSON(object.account) : undefined
|
|
496
|
+
};
|
|
497
|
+
},
|
|
498
|
+
|
|
499
|
+
toJSON(message: QueryAccountResponse): unknown {
|
|
500
|
+
const obj: any = {};
|
|
501
|
+
message.account !== undefined && (obj.account = message.account ? Any.toJSON(message.account) : undefined);
|
|
502
|
+
return obj;
|
|
503
|
+
},
|
|
504
|
+
|
|
505
|
+
fromPartial(object: Partial<QueryAccountResponse>): QueryAccountResponse {
|
|
422
506
|
const message = createBaseQueryAccountResponse();
|
|
423
507
|
message.account = object.account !== undefined && object.account !== null ? Any.fromPartial(object.account) : undefined;
|
|
424
508
|
return message;
|
|
@@ -453,7 +537,16 @@ export const QueryParamsRequest = {
|
|
|
453
537
|
return message;
|
|
454
538
|
},
|
|
455
539
|
|
|
456
|
-
|
|
540
|
+
fromJSON(_: any): QueryParamsRequest {
|
|
541
|
+
return {};
|
|
542
|
+
},
|
|
543
|
+
|
|
544
|
+
toJSON(_: QueryParamsRequest): unknown {
|
|
545
|
+
const obj: any = {};
|
|
546
|
+
return obj;
|
|
547
|
+
},
|
|
548
|
+
|
|
549
|
+
fromPartial(_: Partial<QueryParamsRequest>): QueryParamsRequest {
|
|
457
550
|
const message = createBaseQueryParamsRequest();
|
|
458
551
|
return message;
|
|
459
552
|
}
|
|
@@ -497,7 +590,25 @@ export const QueryModuleAccountsResponse = {
|
|
|
497
590
|
return message;
|
|
498
591
|
},
|
|
499
592
|
|
|
500
|
-
|
|
593
|
+
fromJSON(object: any): QueryModuleAccountsResponse {
|
|
594
|
+
return {
|
|
595
|
+
accounts: Array.isArray(object?.accounts) ? object.accounts.map((e: any) => Any.fromJSON(e)) : []
|
|
596
|
+
};
|
|
597
|
+
},
|
|
598
|
+
|
|
599
|
+
toJSON(message: QueryModuleAccountsResponse): unknown {
|
|
600
|
+
const obj: any = {};
|
|
601
|
+
|
|
602
|
+
if (message.accounts) {
|
|
603
|
+
obj.accounts = message.accounts.map(e => e ? Any.toJSON(e) : undefined);
|
|
604
|
+
} else {
|
|
605
|
+
obj.accounts = [];
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
return obj;
|
|
609
|
+
},
|
|
610
|
+
|
|
611
|
+
fromPartial(object: Partial<QueryModuleAccountsResponse>): QueryModuleAccountsResponse {
|
|
501
612
|
const message = createBaseQueryModuleAccountsResponse();
|
|
502
613
|
message.accounts = object.accounts?.map(e => Any.fromPartial(e)) || [];
|
|
503
614
|
return message;
|
|
@@ -532,7 +643,16 @@ export const Bech32PrefixRequest = {
|
|
|
532
643
|
return message;
|
|
533
644
|
},
|
|
534
645
|
|
|
535
|
-
|
|
646
|
+
fromJSON(_: any): Bech32PrefixRequest {
|
|
647
|
+
return {};
|
|
648
|
+
},
|
|
649
|
+
|
|
650
|
+
toJSON(_: Bech32PrefixRequest): unknown {
|
|
651
|
+
const obj: any = {};
|
|
652
|
+
return obj;
|
|
653
|
+
},
|
|
654
|
+
|
|
655
|
+
fromPartial(_: Partial<Bech32PrefixRequest>): Bech32PrefixRequest {
|
|
536
656
|
const message = createBaseBech32PrefixRequest();
|
|
537
657
|
return message;
|
|
538
658
|
}
|
|
@@ -576,7 +696,19 @@ export const Bech32PrefixResponse = {
|
|
|
576
696
|
return message;
|
|
577
697
|
},
|
|
578
698
|
|
|
579
|
-
|
|
699
|
+
fromJSON(object: any): Bech32PrefixResponse {
|
|
700
|
+
return {
|
|
701
|
+
bech32Prefix: isSet(object.bech32Prefix) ? String(object.bech32Prefix) : ""
|
|
702
|
+
};
|
|
703
|
+
},
|
|
704
|
+
|
|
705
|
+
toJSON(message: Bech32PrefixResponse): unknown {
|
|
706
|
+
const obj: any = {};
|
|
707
|
+
message.bech32Prefix !== undefined && (obj.bech32Prefix = message.bech32Prefix);
|
|
708
|
+
return obj;
|
|
709
|
+
},
|
|
710
|
+
|
|
711
|
+
fromPartial(object: Partial<Bech32PrefixResponse>): Bech32PrefixResponse {
|
|
580
712
|
const message = createBaseBech32PrefixResponse();
|
|
581
713
|
message.bech32Prefix = object.bech32Prefix ?? "";
|
|
582
714
|
return message;
|
|
@@ -621,7 +753,19 @@ export const AddressBytesToStringRequest = {
|
|
|
621
753
|
return message;
|
|
622
754
|
},
|
|
623
755
|
|
|
624
|
-
|
|
756
|
+
fromJSON(object: any): AddressBytesToStringRequest {
|
|
757
|
+
return {
|
|
758
|
+
addressBytes: isSet(object.addressBytes) ? bytesFromBase64(object.addressBytes) : new Uint8Array()
|
|
759
|
+
};
|
|
760
|
+
},
|
|
761
|
+
|
|
762
|
+
toJSON(message: AddressBytesToStringRequest): unknown {
|
|
763
|
+
const obj: any = {};
|
|
764
|
+
message.addressBytes !== undefined && (obj.addressBytes = base64FromBytes(message.addressBytes !== undefined ? message.addressBytes : new Uint8Array()));
|
|
765
|
+
return obj;
|
|
766
|
+
},
|
|
767
|
+
|
|
768
|
+
fromPartial(object: Partial<AddressBytesToStringRequest>): AddressBytesToStringRequest {
|
|
625
769
|
const message = createBaseAddressBytesToStringRequest();
|
|
626
770
|
message.addressBytes = object.addressBytes ?? new Uint8Array();
|
|
627
771
|
return message;
|
|
@@ -666,7 +810,19 @@ export const AddressBytesToStringResponse = {
|
|
|
666
810
|
return message;
|
|
667
811
|
},
|
|
668
812
|
|
|
669
|
-
|
|
813
|
+
fromJSON(object: any): AddressBytesToStringResponse {
|
|
814
|
+
return {
|
|
815
|
+
addressString: isSet(object.addressString) ? String(object.addressString) : ""
|
|
816
|
+
};
|
|
817
|
+
},
|
|
818
|
+
|
|
819
|
+
toJSON(message: AddressBytesToStringResponse): unknown {
|
|
820
|
+
const obj: any = {};
|
|
821
|
+
message.addressString !== undefined && (obj.addressString = message.addressString);
|
|
822
|
+
return obj;
|
|
823
|
+
},
|
|
824
|
+
|
|
825
|
+
fromPartial(object: Partial<AddressBytesToStringResponse>): AddressBytesToStringResponse {
|
|
670
826
|
const message = createBaseAddressBytesToStringResponse();
|
|
671
827
|
message.addressString = object.addressString ?? "";
|
|
672
828
|
return message;
|
|
@@ -711,7 +867,19 @@ export const AddressStringToBytesRequest = {
|
|
|
711
867
|
return message;
|
|
712
868
|
},
|
|
713
869
|
|
|
714
|
-
|
|
870
|
+
fromJSON(object: any): AddressStringToBytesRequest {
|
|
871
|
+
return {
|
|
872
|
+
addressString: isSet(object.addressString) ? String(object.addressString) : ""
|
|
873
|
+
};
|
|
874
|
+
},
|
|
875
|
+
|
|
876
|
+
toJSON(message: AddressStringToBytesRequest): unknown {
|
|
877
|
+
const obj: any = {};
|
|
878
|
+
message.addressString !== undefined && (obj.addressString = message.addressString);
|
|
879
|
+
return obj;
|
|
880
|
+
},
|
|
881
|
+
|
|
882
|
+
fromPartial(object: Partial<AddressStringToBytesRequest>): AddressStringToBytesRequest {
|
|
715
883
|
const message = createBaseAddressStringToBytesRequest();
|
|
716
884
|
message.addressString = object.addressString ?? "";
|
|
717
885
|
return message;
|
|
@@ -756,7 +924,19 @@ export const AddressStringToBytesResponse = {
|
|
|
756
924
|
return message;
|
|
757
925
|
},
|
|
758
926
|
|
|
759
|
-
|
|
927
|
+
fromJSON(object: any): AddressStringToBytesResponse {
|
|
928
|
+
return {
|
|
929
|
+
addressBytes: isSet(object.addressBytes) ? bytesFromBase64(object.addressBytes) : new Uint8Array()
|
|
930
|
+
};
|
|
931
|
+
},
|
|
932
|
+
|
|
933
|
+
toJSON(message: AddressStringToBytesResponse): unknown {
|
|
934
|
+
const obj: any = {};
|
|
935
|
+
message.addressBytes !== undefined && (obj.addressBytes = base64FromBytes(message.addressBytes !== undefined ? message.addressBytes : new Uint8Array()));
|
|
936
|
+
return obj;
|
|
937
|
+
},
|
|
938
|
+
|
|
939
|
+
fromPartial(object: Partial<AddressStringToBytesResponse>): AddressStringToBytesResponse {
|
|
760
940
|
const message = createBaseAddressStringToBytesResponse();
|
|
761
941
|
message.addressBytes = object.addressBytes ?? new Uint8Array();
|
|
762
942
|
return message;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
|
2
|
-
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
2
|
+
import { Timestamp, TimestampSDKType } from "../../../google/protobuf/timestamp";
|
|
3
3
|
import * as _m0 from "protobufjs/minimal";
|
|
4
|
-
import {
|
|
4
|
+
import { isSet, fromJsonTimestamp, fromTimestamp } from "../../../helpers";
|
|
5
5
|
/**
|
|
6
6
|
* GenericAuthorization gives the grantee unrestricted permissions to execute
|
|
7
7
|
* the provided method on behalf of the granter's account.
|
|
@@ -17,6 +17,7 @@ export interface GenericAuthorization {
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
export interface GenericAuthorizationSDKType {
|
|
20
|
+
/** Msg, identified by it's type URL, to grant unrestricted permissions to execute */
|
|
20
21
|
msg: string;
|
|
21
22
|
}
|
|
22
23
|
/**
|
|
@@ -32,7 +33,7 @@ export interface Grant {
|
|
|
32
33
|
* may apply to invalidate the grant)
|
|
33
34
|
*/
|
|
34
35
|
|
|
35
|
-
expiration?:
|
|
36
|
+
expiration?: Timestamp;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* Grant gives permissions to execute
|
|
@@ -41,7 +42,13 @@ export interface Grant {
|
|
|
41
42
|
|
|
42
43
|
export interface GrantSDKType {
|
|
43
44
|
authorization?: AnySDKType;
|
|
44
|
-
|
|
45
|
+
/**
|
|
46
|
+
* time when the grant will expire and will be pruned. If null, then the grant
|
|
47
|
+
* doesn't have a time expiration (other conditions in `authorization`
|
|
48
|
+
* may apply to invalidate the grant)
|
|
49
|
+
*/
|
|
50
|
+
|
|
51
|
+
expiration?: TimestampSDKType;
|
|
45
52
|
}
|
|
46
53
|
/**
|
|
47
54
|
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
|
@@ -52,7 +59,7 @@ export interface GrantAuthorization {
|
|
|
52
59
|
granter: string;
|
|
53
60
|
grantee: string;
|
|
54
61
|
authorization?: Any;
|
|
55
|
-
expiration?:
|
|
62
|
+
expiration?: Timestamp;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* GrantAuthorization extends a grant with both the addresses of the grantee and granter.
|
|
@@ -63,7 +70,7 @@ export interface GrantAuthorizationSDKType {
|
|
|
63
70
|
granter: string;
|
|
64
71
|
grantee: string;
|
|
65
72
|
authorization?: AnySDKType;
|
|
66
|
-
expiration?:
|
|
73
|
+
expiration?: TimestampSDKType;
|
|
67
74
|
}
|
|
68
75
|
/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
|
|
69
76
|
|
|
@@ -74,6 +81,7 @@ export interface GrantQueueItem {
|
|
|
74
81
|
/** GrantQueueItem contains the list of TypeURL of a sdk.Msg. */
|
|
75
82
|
|
|
76
83
|
export interface GrantQueueItemSDKType {
|
|
84
|
+
/** msg_type_urls contains the list of TypeURL of a sdk.Msg. */
|
|
77
85
|
msg_type_urls: string[];
|
|
78
86
|
}
|
|
79
87
|
|
|
@@ -114,7 +122,19 @@ export const GenericAuthorization = {
|
|
|
114
122
|
return message;
|
|
115
123
|
},
|
|
116
124
|
|
|
117
|
-
|
|
125
|
+
fromJSON(object: any): GenericAuthorization {
|
|
126
|
+
return {
|
|
127
|
+
msg: isSet(object.msg) ? String(object.msg) : ""
|
|
128
|
+
};
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
toJSON(message: GenericAuthorization): unknown {
|
|
132
|
+
const obj: any = {};
|
|
133
|
+
message.msg !== undefined && (obj.msg = message.msg);
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
fromPartial(object: Partial<GenericAuthorization>): GenericAuthorization {
|
|
118
138
|
const message = createBaseGenericAuthorization();
|
|
119
139
|
message.msg = object.msg ?? "";
|
|
120
140
|
return message;
|
|
@@ -136,7 +156,7 @@ export const Grant = {
|
|
|
136
156
|
}
|
|
137
157
|
|
|
138
158
|
if (message.expiration !== undefined) {
|
|
139
|
-
Timestamp.encode(
|
|
159
|
+
Timestamp.encode(message.expiration, writer.uint32(18).fork()).ldelim();
|
|
140
160
|
}
|
|
141
161
|
|
|
142
162
|
return writer;
|
|
@@ -156,7 +176,7 @@ export const Grant = {
|
|
|
156
176
|
break;
|
|
157
177
|
|
|
158
178
|
case 2:
|
|
159
|
-
message.expiration =
|
|
179
|
+
message.expiration = Timestamp.decode(reader, reader.uint32());
|
|
160
180
|
break;
|
|
161
181
|
|
|
162
182
|
default:
|
|
@@ -168,10 +188,24 @@ export const Grant = {
|
|
|
168
188
|
return message;
|
|
169
189
|
},
|
|
170
190
|
|
|
171
|
-
|
|
191
|
+
fromJSON(object: any): Grant {
|
|
192
|
+
return {
|
|
193
|
+
authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined,
|
|
194
|
+
expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
toJSON(message: Grant): unknown {
|
|
199
|
+
const obj: any = {};
|
|
200
|
+
message.authorization !== undefined && (obj.authorization = message.authorization ? Any.toJSON(message.authorization) : undefined);
|
|
201
|
+
message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString());
|
|
202
|
+
return obj;
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
fromPartial(object: Partial<Grant>): Grant {
|
|
172
206
|
const message = createBaseGrant();
|
|
173
207
|
message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined;
|
|
174
|
-
message.expiration = object.expiration
|
|
208
|
+
message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined;
|
|
175
209
|
return message;
|
|
176
210
|
}
|
|
177
211
|
|
|
@@ -201,7 +235,7 @@ export const GrantAuthorization = {
|
|
|
201
235
|
}
|
|
202
236
|
|
|
203
237
|
if (message.expiration !== undefined) {
|
|
204
|
-
Timestamp.encode(
|
|
238
|
+
Timestamp.encode(message.expiration, writer.uint32(34).fork()).ldelim();
|
|
205
239
|
}
|
|
206
240
|
|
|
207
241
|
return writer;
|
|
@@ -229,7 +263,7 @@ export const GrantAuthorization = {
|
|
|
229
263
|
break;
|
|
230
264
|
|
|
231
265
|
case 4:
|
|
232
|
-
message.expiration =
|
|
266
|
+
message.expiration = Timestamp.decode(reader, reader.uint32());
|
|
233
267
|
break;
|
|
234
268
|
|
|
235
269
|
default:
|
|
@@ -241,12 +275,30 @@ export const GrantAuthorization = {
|
|
|
241
275
|
return message;
|
|
242
276
|
},
|
|
243
277
|
|
|
244
|
-
|
|
278
|
+
fromJSON(object: any): GrantAuthorization {
|
|
279
|
+
return {
|
|
280
|
+
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
281
|
+
grantee: isSet(object.grantee) ? String(object.grantee) : "",
|
|
282
|
+
authorization: isSet(object.authorization) ? Any.fromJSON(object.authorization) : undefined,
|
|
283
|
+
expiration: isSet(object.expiration) ? fromJsonTimestamp(object.expiration) : undefined
|
|
284
|
+
};
|
|
285
|
+
},
|
|
286
|
+
|
|
287
|
+
toJSON(message: GrantAuthorization): unknown {
|
|
288
|
+
const obj: any = {};
|
|
289
|
+
message.granter !== undefined && (obj.granter = message.granter);
|
|
290
|
+
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
291
|
+
message.authorization !== undefined && (obj.authorization = message.authorization ? Any.toJSON(message.authorization) : undefined);
|
|
292
|
+
message.expiration !== undefined && (obj.expiration = fromTimestamp(message.expiration).toISOString());
|
|
293
|
+
return obj;
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
fromPartial(object: Partial<GrantAuthorization>): GrantAuthorization {
|
|
245
297
|
const message = createBaseGrantAuthorization();
|
|
246
298
|
message.granter = object.granter ?? "";
|
|
247
299
|
message.grantee = object.grantee ?? "";
|
|
248
300
|
message.authorization = object.authorization !== undefined && object.authorization !== null ? Any.fromPartial(object.authorization) : undefined;
|
|
249
|
-
message.expiration = object.expiration
|
|
301
|
+
message.expiration = object.expiration !== undefined && object.expiration !== null ? Timestamp.fromPartial(object.expiration) : undefined;
|
|
250
302
|
return message;
|
|
251
303
|
}
|
|
252
304
|
|
|
@@ -289,7 +341,25 @@ export const GrantQueueItem = {
|
|
|
289
341
|
return message;
|
|
290
342
|
},
|
|
291
343
|
|
|
292
|
-
|
|
344
|
+
fromJSON(object: any): GrantQueueItem {
|
|
345
|
+
return {
|
|
346
|
+
msgTypeUrls: Array.isArray(object?.msgTypeUrls) ? object.msgTypeUrls.map((e: any) => String(e)) : []
|
|
347
|
+
};
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
toJSON(message: GrantQueueItem): unknown {
|
|
351
|
+
const obj: any = {};
|
|
352
|
+
|
|
353
|
+
if (message.msgTypeUrls) {
|
|
354
|
+
obj.msgTypeUrls = message.msgTypeUrls.map(e => e);
|
|
355
|
+
} else {
|
|
356
|
+
obj.msgTypeUrls = [];
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
return obj;
|
|
360
|
+
},
|
|
361
|
+
|
|
362
|
+
fromPartial(object: Partial<GrantQueueItem>): GrantQueueItem {
|
|
293
363
|
const message = createBaseGrantQueueItem();
|
|
294
364
|
message.msgTypeUrls = object.msgTypeUrls?.map(e => e) || [];
|
|
295
365
|
return message;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _m0 from "protobufjs/minimal";
|
|
2
|
-
import {
|
|
2
|
+
import { isSet } from "../../../helpers";
|
|
3
3
|
/** EventGrant is emitted on Msg/Grant */
|
|
4
4
|
|
|
5
5
|
export interface EventGrant {
|
|
@@ -15,8 +15,13 @@ export interface EventGrant {
|
|
|
15
15
|
/** EventGrant is emitted on Msg/Grant */
|
|
16
16
|
|
|
17
17
|
export interface EventGrantSDKType {
|
|
18
|
+
/** Msg type URL for which an autorization is granted */
|
|
18
19
|
msg_type_url: string;
|
|
20
|
+
/** Granter account address */
|
|
21
|
+
|
|
19
22
|
granter: string;
|
|
23
|
+
/** Grantee account address */
|
|
24
|
+
|
|
20
25
|
grantee: string;
|
|
21
26
|
}
|
|
22
27
|
/** EventRevoke is emitted on Msg/Revoke */
|
|
@@ -34,8 +39,13 @@ export interface EventRevoke {
|
|
|
34
39
|
/** EventRevoke is emitted on Msg/Revoke */
|
|
35
40
|
|
|
36
41
|
export interface EventRevokeSDKType {
|
|
42
|
+
/** Msg type URL for which an autorization is revoked */
|
|
37
43
|
msg_type_url: string;
|
|
44
|
+
/** Granter account address */
|
|
45
|
+
|
|
38
46
|
granter: string;
|
|
47
|
+
/** Grantee account address */
|
|
48
|
+
|
|
39
49
|
grantee: string;
|
|
40
50
|
}
|
|
41
51
|
|
|
@@ -94,7 +104,23 @@ export const EventGrant = {
|
|
|
94
104
|
return message;
|
|
95
105
|
},
|
|
96
106
|
|
|
97
|
-
|
|
107
|
+
fromJSON(object: any): EventGrant {
|
|
108
|
+
return {
|
|
109
|
+
msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "",
|
|
110
|
+
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
111
|
+
grantee: isSet(object.grantee) ? String(object.grantee) : ""
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
toJSON(message: EventGrant): unknown {
|
|
116
|
+
const obj: any = {};
|
|
117
|
+
message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl);
|
|
118
|
+
message.granter !== undefined && (obj.granter = message.granter);
|
|
119
|
+
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
fromPartial(object: Partial<EventGrant>): EventGrant {
|
|
98
124
|
const message = createBaseEventGrant();
|
|
99
125
|
message.msgTypeUrl = object.msgTypeUrl ?? "";
|
|
100
126
|
message.granter = object.granter ?? "";
|
|
@@ -159,7 +185,23 @@ export const EventRevoke = {
|
|
|
159
185
|
return message;
|
|
160
186
|
},
|
|
161
187
|
|
|
162
|
-
|
|
188
|
+
fromJSON(object: any): EventRevoke {
|
|
189
|
+
return {
|
|
190
|
+
msgTypeUrl: isSet(object.msgTypeUrl) ? String(object.msgTypeUrl) : "",
|
|
191
|
+
granter: isSet(object.granter) ? String(object.granter) : "",
|
|
192
|
+
grantee: isSet(object.grantee) ? String(object.grantee) : ""
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
toJSON(message: EventRevoke): unknown {
|
|
197
|
+
const obj: any = {};
|
|
198
|
+
message.msgTypeUrl !== undefined && (obj.msgTypeUrl = message.msgTypeUrl);
|
|
199
|
+
message.granter !== undefined && (obj.granter = message.granter);
|
|
200
|
+
message.grantee !== undefined && (obj.grantee = message.grantee);
|
|
201
|
+
return obj;
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
fromPartial(object: Partial<EventRevoke>): EventRevoke {
|
|
163
205
|
const message = createBaseEventRevoke();
|
|
164
206
|
message.msgTypeUrl = object.msgTypeUrl ?? "";
|
|
165
207
|
message.granter = object.granter ?? "";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GrantAuthorization, GrantAuthorizationSDKType } from "./authz";
|
|
2
2
|
import * as _m0 from "protobufjs/minimal";
|
|
3
|
-
import { DeepPartial } from "../../../helpers";
|
|
4
3
|
/** GenesisState defines the authz module's genesis state. */
|
|
5
4
|
|
|
6
5
|
export interface GenesisState {
|
|
@@ -49,7 +48,25 @@ export const GenesisState = {
|
|
|
49
48
|
return message;
|
|
50
49
|
},
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
fromJSON(object: any): GenesisState {
|
|
52
|
+
return {
|
|
53
|
+
authorization: Array.isArray(object?.authorization) ? object.authorization.map((e: any) => GrantAuthorization.fromJSON(e)) : []
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
toJSON(message: GenesisState): unknown {
|
|
58
|
+
const obj: any = {};
|
|
59
|
+
|
|
60
|
+
if (message.authorization) {
|
|
61
|
+
obj.authorization = message.authorization.map(e => e ? GrantAuthorization.toJSON(e) : undefined);
|
|
62
|
+
} else {
|
|
63
|
+
obj.authorization = [];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return obj;
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
fromPartial(object: Partial<GenesisState>): GenesisState {
|
|
53
70
|
const message = createBaseGenesisState();
|
|
54
71
|
message.authorization = object.authorization?.map(e => GrantAuthorization.fromPartial(e)) || [];
|
|
55
72
|
return message;
|