juno-network 0.5.2 → 0.6.0
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/README.md +6 -4
- package/main/codegen/JunoSwap.client.js +44 -42
- package/module/codegen/JunoSwap.client.js +180 -0
- package/module/codegen/JunoSwap.types.js +1 -0
- package/module/codegen/confio/proofs.js +1152 -0
- package/module/codegen/contracts.js +18 -0
- package/module/codegen/cosmos/app/v1alpha1/config.js +148 -0
- package/module/codegen/cosmos/app/v1alpha1/module.js +227 -0
- package/module/codegen/cosmos/app/v1alpha1/query.js +104 -0
- package/module/codegen/cosmos/app/v1alpha1/query.rpc.query.js +20 -0
- package/module/codegen/cosmos/auth/v1beta1/auth.js +297 -0
- package/module/codegen/cosmos/auth/v1beta1/genesis.js +82 -0
- package/module/codegen/cosmos/auth/v1beta1/query.js +806 -0
- package/module/codegen/cosmos/auth/v1beta1/query.lcd.js +73 -0
- package/module/codegen/cosmos/auth/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/authz/v1beta1/authz.js +236 -0
- package/module/codegen/cosmos/authz/v1beta1/event.js +135 -0
- package/module/codegen/cosmos/authz/v1beta1/genesis.js +49 -0
- package/module/codegen/cosmos/authz/v1beta1/query.js +365 -0
- package/module/codegen/cosmos/authz/v1beta1/query.lcd.js +76 -0
- package/module/codegen/cosmos/authz/v1beta1/query.rpc.query.js +53 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.amino.js +91 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.js +309 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/authz/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/bank/v1beta1/authz.js +49 -0
- package/module/codegen/cosmos/bank/v1beta1/bank.js +461 -0
- package/module/codegen/cosmos/bank/v1beta1/genesis.js +137 -0
- package/module/codegen/cosmos/bank/v1beta1/query.js +972 -0
- package/module/codegen/cosmos/bank/v1beta1/query.lcd.js +147 -0
- package/module/codegen/cosmos/bank/v1beta1/query.rpc.query.js +123 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.amino.js +78 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.js +195 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/bank/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/base/abci/v1beta1/abci.js +754 -0
- package/module/codegen/cosmos/base/kv/v1beta1/kv.js +139 -0
- package/module/codegen/cosmos/base/query/v1beta1/pagination.js +155 -0
- package/module/codegen/cosmos/base/reflection/v1beta1/reflection.js +235 -0
- package/module/codegen/cosmos/base/reflection/v2alpha1/reflection.js +1281 -0
- package/module/codegen/cosmos/base/snapshots/v1beta1/snapshot.js +712 -0
- package/module/codegen/cosmos/base/store/v1beta1/commit_info.js +225 -0
- package/module/codegen/cosmos/base/store/v1beta1/listening.js +104 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.js +1091 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.lcd.js +72 -0
- package/module/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.js +55 -0
- package/module/codegen/cosmos/base/v1beta1/coin.js +209 -0
- package/module/codegen/cosmos/bundle.js +190 -0
- package/module/codegen/cosmos/capability/v1beta1/capability.js +199 -0
- package/module/codegen/cosmos/capability/v1beta1/genesis.js +150 -0
- package/module/codegen/cosmos/client.js +44 -0
- package/module/codegen/cosmos/crisis/v1beta1/genesis.js +61 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.amino.js +27 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.js +129 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/crypto/ed25519/keys.js +95 -0
- package/module/codegen/cosmos/crypto/hd/v1/hd.js +88 -0
- package/module/codegen/cosmos/crypto/keyring/v1/record.js +270 -0
- package/module/codegen/cosmos/crypto/multisig/keys.js +59 -0
- package/module/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +105 -0
- package/module/codegen/cosmos/crypto/secp256k1/keys.js +95 -0
- package/module/codegen/cosmos/crypto/secp256r1/keys.js +95 -0
- package/module/codegen/cosmos/distribution/v1beta1/distribution.js +728 -0
- package/module/codegen/cosmos/distribution/v1beta1/genesis.js +585 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.js +880 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.lcd.js +101 -0
- package/module/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +119 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.amino.js +88 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.js +382 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/evidence/v1beta1/evidence.js +102 -0
- package/module/codegen/cosmos/evidence/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.js +255 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.lcd.js +36 -0
- package/module/codegen/cosmos/evidence/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.amino.js +29 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.js +137 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/feegrant/v1beta1/feegrant.js +365 -0
- package/module/codegen/cosmos/feegrant/v1beta1/genesis.js +67 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.js +429 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.lcd.js +50 -0
- package/module/codegen/cosmos/feegrant/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.amino.js +54 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.js +247 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.registry.js +89 -0
- package/module/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/genutil/v1beta1/genesis.js +68 -0
- package/module/codegen/cosmos/gov/v1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1/gov.js +750 -0
- package/module/codegen/cosmos/gov/v1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1/tx.amino.js +167 -0
- package/module/codegen/cosmos/gov/v1/tx.js +545 -0
- package/module/codegen/cosmos/gov/v1/tx.registry.js +120 -0
- package/module/codegen/cosmos/gov/v1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/gov/v1beta1/genesis.js +111 -0
- package/module/codegen/cosmos/gov/v1beta1/gov.js +801 -0
- package/module/codegen/cosmos/gov/v1beta1/query.js +859 -0
- package/module/codegen/cosmos/gov/v1beta1/query.lcd.js +112 -0
- package/module/codegen/cosmos/gov/v1beta1/query.rpc.query.js +108 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.amino.js +128 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.js +424 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.registry.js +99 -0
- package/module/codegen/cosmos/gov/v1beta1/tx.rpc.msg.js +41 -0
- package/module/codegen/cosmos/group/v1/events.js +549 -0
- package/module/codegen/cosmos/group/v1/genesis.js +175 -0
- package/module/codegen/cosmos/group/v1/query.js +1769 -0
- package/module/codegen/cosmos/group/v1/query.lcd.js +167 -0
- package/module/codegen/cosmos/group/v1/query.rpc.query.js +104 -0
- package/module/codegen/cosmos/group/v1/tx.amino.js +429 -0
- package/module/codegen/cosmos/group/v1/tx.js +1969 -0
- package/module/codegen/cosmos/group/v1/tx.registry.js +509 -0
- package/module/codegen/cosmos/group/v1/tx.rpc.msg.js +111 -0
- package/module/codegen/cosmos/group/v1/types.js +1350 -0
- package/module/codegen/cosmos/lcd.js +50 -0
- package/module/codegen/cosmos/mint/v1beta1/genesis.js +73 -0
- package/module/codegen/cosmos/mint/v1beta1/mint.js +193 -0
- package/module/codegen/cosmos/mint/v1beta1/query.js +308 -0
- package/module/codegen/cosmos/mint/v1beta1/query.lcd.js +32 -0
- package/module/codegen/cosmos/mint/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/msg/v1/msg.js +1 -0
- package/module/codegen/cosmos/nft/v1beta1/event.js +264 -0
- package/module/codegen/cosmos/nft/v1beta1/genesis.js +163 -0
- package/module/codegen/cosmos/nft/v1beta1/nft.js +242 -0
- package/module/codegen/cosmos/nft/v1beta1/query.js +917 -0
- package/module/codegen/cosmos/nft/v1beta1/query.lcd.js +88 -0
- package/module/codegen/cosmos/nft/v1beta1/query.rpc.query.js +62 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.amino.js +31 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.js +141 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/nft/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/orm/v1/orm.js +305 -0
- package/module/codegen/cosmos/orm/v1alpha1/schema.js +225 -0
- package/module/codegen/cosmos/params/v1beta1/params.js +175 -0
- package/module/codegen/cosmos/params/v1beta1/query.js +317 -0
- package/module/codegen/cosmos/params/v1beta1/query.lcd.js +38 -0
- package/module/codegen/cosmos/params/v1beta1/query.rpc.query.js +27 -0
- package/module/codegen/cosmos/rpc.query.js +34 -0
- package/module/codegen/cosmos/rpc.tx.js +25 -0
- package/module/codegen/cosmos/slashing/v1beta1/genesis.js +317 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.js +355 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.lcd.js +43 -0
- package/module/codegen/cosmos/slashing/v1beta1/query.rpc.query.js +34 -0
- package/module/codegen/cosmos/slashing/v1beta1/slashing.js +234 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.amino.js +19 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.js +105 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.registry.js +54 -0
- package/module/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.js +20 -0
- package/module/codegen/cosmos/staking/v1beta1/authz.js +204 -0
- package/module/codegen/cosmos/staking/v1beta1/genesis.js +178 -0
- package/module/codegen/cosmos/staking/v1beta1/query.js +1469 -0
- package/module/codegen/cosmos/staking/v1beta1/query.lcd.js +196 -0
- package/module/codegen/cosmos/staking/v1beta1/query.rpc.query.js +174 -0
- package/module/codegen/cosmos/staking/v1beta1/staking.js +1446 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.amino.js +216 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.js +598 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.registry.js +120 -0
- package/module/codegen/cosmos/staking/v1beta1/tx.rpc.msg.js +48 -0
- package/module/codegen/cosmos/tx/signing/v1beta1/signing.js +378 -0
- package/module/codegen/cosmos/tx/v1beta1/service.js +714 -0
- package/module/codegen/cosmos/tx/v1beta1/service.lcd.js +62 -0
- package/module/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +75 -0
- package/module/codegen/cosmos/tx/v1beta1/tx.js +903 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.js +445 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.lcd.js +66 -0
- package/module/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +75 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.amino.js +59 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.js +174 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.registry.js +57 -0
- package/module/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.js +27 -0
- package/module/codegen/cosmos/upgrade/v1beta1/upgrade.js +273 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.amino.js +114 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.js +440 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.registry.js +124 -0
- package/module/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.js +34 -0
- package/module/codegen/cosmos/vesting/v1beta1/vesting.js +480 -0
- package/module/codegen/cosmos_proto/bundle.js +8 -0
- package/module/codegen/cosmos_proto/cosmos.js +194 -0
- package/module/codegen/cosmwasm/bundle.js +31 -0
- package/module/codegen/cosmwasm/client.js +39 -0
- package/module/codegen/cosmwasm/lcd.js +57 -0
- package/module/codegen/cosmwasm/rpc.query.js +39 -0
- package/module/codegen/cosmwasm/rpc.tx.js +30 -0
- package/module/codegen/cosmwasm/wasm/v1/genesis.js +358 -0
- package/module/codegen/cosmwasm/wasm/v1/ibc.js +127 -0
- package/module/codegen/cosmwasm/wasm/v1/proposal.js +772 -0
- package/module/codegen/cosmwasm/wasm/v1/query.js +1046 -0
- package/module/codegen/cosmwasm/wasm/v1/query.lcd.js +128 -0
- package/module/codegen/cosmwasm/wasm/v1/query.rpc.query.js +123 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.amino.js +189 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.js +711 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.registry.js +141 -0
- package/module/codegen/cosmwasm/wasm/v1/tx.rpc.msg.js +55 -0
- package/module/codegen/cosmwasm/wasm/v1/types.js +668 -0
- package/module/codegen/gogoproto/bundle.js +8 -0
- package/module/codegen/gogoproto/gogo.js +1 -0
- package/module/codegen/google/api/annotations.js +1 -0
- package/module/codegen/google/api/http.js +328 -0
- package/module/codegen/google/bundle.js +19 -0
- package/module/codegen/google/protobuf/any.js +58 -0
- package/module/codegen/google/protobuf/descriptor.js +2775 -0
- package/module/codegen/google/protobuf/duration.js +119 -0
- package/module/codegen/google/protobuf/empty.js +35 -0
- package/module/codegen/google/protobuf/field_mask.js +48 -0
- package/module/codegen/google/protobuf/struct.js +310 -0
- package/module/codegen/google/protobuf/timestamp.js +143 -0
- package/module/codegen/google/protobuf/wrappers.js +426 -0
- package/module/codegen/ibc/applications/transfer/v1/genesis.js +69 -0
- package/module/codegen/ibc/applications/transfer/v1/query.js +276 -0
- package/module/codegen/ibc/applications/transfer/v1/query.lcd.js +46 -0
- package/module/codegen/ibc/applications/transfer/v1/query.rpc.query.js +55 -0
- package/module/codegen/ibc/applications/transfer/v1/transfer.js +115 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.amino.js +58 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.js +150 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.registry.js +36 -0
- package/module/codegen/ibc/applications/transfer/v1/tx.rpc.msg.js +20 -0
- package/module/codegen/ibc/applications/transfer/v2/packet.js +78 -0
- package/module/codegen/ibc/bundle.js +120 -0
- package/module/codegen/ibc/client.js +45 -0
- package/module/codegen/ibc/core/channel/v1/channel.js +646 -0
- package/module/codegen/ibc/core/channel/v1/genesis.js +188 -0
- package/module/codegen/ibc/core/channel/v1/query.js +1759 -0
- package/module/codegen/ibc/core/channel/v1/query.lcd.js +162 -0
- package/module/codegen/ibc/core/channel/v1/query.rpc.query.js +165 -0
- package/module/codegen/ibc/core/channel/v1/tx.amino.js +530 -0
- package/module/codegen/ibc/core/channel/v1/tx.js +1218 -0
- package/module/codegen/ibc/core/channel/v1/tx.registry.js +225 -0
- package/module/codegen/ibc/core/channel/v1/tx.rpc.msg.js +83 -0
- package/module/codegen/ibc/core/client/v1/client.js +433 -0
- package/module/codegen/ibc/core/client/v1/genesis.js +215 -0
- package/module/codegen/ibc/core/client/v1/query.js +814 -0
- package/module/codegen/ibc/core/client/v1/query.lcd.js +104 -0
- package/module/codegen/ibc/core/client/v1/query.rpc.query.js +110 -0
- package/module/codegen/ibc/core/client/v1/tx.amino.js +150 -0
- package/module/codegen/ibc/core/client/v1/tx.js +436 -0
- package/module/codegen/ibc/core/client/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/client/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/commitment/v1/commitment.js +190 -0
- package/module/codegen/ibc/core/connection/v1/connection.js +537 -0
- package/module/codegen/ibc/core/connection/v1/genesis.js +81 -0
- package/module/codegen/ibc/core/connection/v1/query.js +608 -0
- package/module/codegen/ibc/core/connection/v1/query.lcd.js +65 -0
- package/module/codegen/ibc/core/connection/v1/query.rpc.query.js +77 -0
- package/module/codegen/ibc/core/connection/v1/tx.amino.js +269 -0
- package/module/codegen/ibc/core/connection/v1/tx.js +603 -0
- package/module/codegen/ibc/core/connection/v1/tx.registry.js +99 -0
- package/module/codegen/ibc/core/connection/v1/tx.rpc.msg.js +41 -0
- package/module/codegen/ibc/core/port/v1/query.js +182 -0
- package/module/codegen/ibc/core/port/v1/query.rpc.query.js +20 -0
- package/module/codegen/ibc/core/types/v1/genesis.js +87 -0
- package/module/codegen/ibc/lcd.js +76 -0
- package/module/codegen/ibc/lightclients/localhost/v1/localhost.js +59 -0
- package/module/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1166 -0
- package/module/codegen/ibc/lightclients/tendermint/v1/tendermint.js +424 -0
- package/module/codegen/ibc/rpc.query.js +52 -0
- package/module/codegen/ibc/rpc.tx.js +43 -0
- package/module/codegen/ics23/bundle.js +8 -0
- package/module/codegen/index.js +18 -0
- package/module/codegen/juno/bundle.js +20 -0
- package/module/codegen/juno/lcd.js +55 -0
- package/module/codegen/juno/mint/genesis.js +57 -0
- package/module/codegen/juno/mint/mint.js +137 -0
- package/module/codegen/juno/mint/query.js +243 -0
- package/module/codegen/juno/mint/query.lcd.js +35 -0
- package/module/codegen/juno/mint/query.rpc.query.js +53 -0
- package/module/codegen/juno/rpc.query.js +37 -0
- package/module/codegen/tendermint/abci/types.js +3341 -0
- package/module/codegen/tendermint/bundle.js +36 -0
- package/module/codegen/tendermint/crypto/keys.js +58 -0
- package/module/codegen/tendermint/crypto/proof.js +317 -0
- package/module/codegen/tendermint/libs/bits/types.js +71 -0
- package/module/codegen/tendermint/p2p/types.js +386 -0
- package/module/codegen/tendermint/types/block.js +78 -0
- package/module/codegen/tendermint/types/evidence.js +281 -0
- package/module/codegen/tendermint/types/params.js +361 -0
- package/module/codegen/tendermint/types/types.js +1172 -0
- package/module/codegen/tendermint/types/validator.js +202 -0
- package/module/codegen/tendermint/version/types.js +119 -0
- package/module/index.js +1 -0
- package/package.json +9 -4
- package/src/codegen/JunoSwap.client.ts +299 -0
- package/src/codegen/JunoSwap.types.ts +143 -0
- package/src/codegen/confio/proofs.ts +1521 -0
- package/src/codegen/contracts.ts +13 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +172 -0
- package/src/codegen/cosmos/app/v1alpha1/module.ts +308 -0
- package/src/codegen/cosmos/app/v1alpha1/query.rpc.query.ts +26 -0
- package/src/codegen/cosmos/app/v1alpha1/query.ts +112 -0
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +316 -0
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +88 -0
- package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +72 -0
- package/src/codegen/cosmos/auth/v1beta1/query.rpc.query.ts +90 -0
- package/src/codegen/cosmos/auth/v1beta1/query.ts +865 -0
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +306 -0
- package/src/codegen/cosmos/authz/v1beta1/event.ts +180 -0
- package/src/codegen/cosmos/authz/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/authz/v1beta1/query.lcd.ts +79 -0
- package/src/codegen/cosmos/authz/v1beta1/query.rpc.query.ts +68 -0
- package/src/codegen/cosmos/authz/v1beta1/query.ts +464 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.amino.ts +131 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +51 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +396 -0
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +68 -0
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +666 -0
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +194 -0
- package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +150 -0
- package/src/codegen/cosmos/bank/v1beta1/query.rpc.query.ts +155 -0
- package/src/codegen/cosmos/bank/v1beta1/query.ts +1301 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.amino.ts +110 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +35 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +230 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1106 -0
- package/src/codegen/cosmos/base/kv/v1beta1/kv.ts +145 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +282 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +254 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1708 -0
- package/src/codegen/cosmos/base/snapshots/v1beta1/snapshot.ts +759 -0
- package/src/codegen/cosmos/base/store/v1beta1/commit_info.ts +242 -0
- package/src/codegen/cosmos/base/store/v1beta1/listening.ts +112 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +74 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.svc.ts +80 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1181 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +266 -0
- package/src/codegen/cosmos/bundle.ts +214 -0
- package/src/codegen/cosmos/capability/v1beta1/capability.ts +216 -0
- package/src/codegen/cosmos/capability/v1beta1/genesis.ts +168 -0
- package/src/codegen/cosmos/client.ts +51 -0
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +69 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.amino.ts +37 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +136 -0
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +129 -0
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +349 -0
- package/src/codegen/cosmos/crypto/multisig/keys.ts +78 -0
- package/src/codegen/cosmos/crypto/multisig/v1beta1/multisig.ts +142 -0
- package/src/codegen/cosmos/crypto/secp256k1/keys.ts +124 -0
- package/src/codegen/cosmos/crypto/secp256r1/keys.ts +122 -0
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +945 -0
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +800 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +104 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.rpc.query.ts +149 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +1187 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.amino.ts +120 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +59 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +473 -0
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +72 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +39 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +283 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.registry.ts +56 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +144 -0
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +421 -0
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +52 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.query.ts +48 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +467 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.amino.ts +75 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.registry.ts +91 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +38 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +269 -0
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +71 -0
- package/src/codegen/cosmos/gov/v1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1/gov.ts +983 -0
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1/tx.amino.ts +226 -0
- package/src/codegen/cosmos/gov/v1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +66 -0
- package/src/codegen/cosmos/gov/v1/tx.ts +661 -0
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +156 -0
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +1064 -0
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1beta1/query.rpc.query.ts +134 -0
- package/src/codegen/cosmos/gov/v1beta1/query.ts +1114 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.amino.ts +174 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.registry.ts +100 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +518 -0
- package/src/codegen/cosmos/group/v1/events.ts +600 -0
- package/src/codegen/cosmos/group/v1/genesis.ts +208 -0
- package/src/codegen/cosmos/group/v1/query.lcd.ts +159 -0
- package/src/codegen/cosmos/group/v1/query.rpc.query.ts +147 -0
- package/src/codegen/cosmos/group/v1/query.ts +1945 -0
- package/src/codegen/cosmos/group/v1/tx.amino.ts +585 -0
- package/src/codegen/cosmos/group/v1/tx.registry.ts +512 -0
- package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +157 -0
- package/src/codegen/cosmos/group/v1/tx.ts +2197 -0
- package/src/codegen/cosmos/group/v1/types.ts +1577 -0
- package/src/codegen/cosmos/lcd.ts +52 -0
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +81 -0
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +218 -0
- package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +33 -0
- package/src/codegen/cosmos/mint/v1beta1/query.rpc.query.ts +46 -0
- package/src/codegen/cosmos/mint/v1beta1/query.ts +339 -0
- package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
- package/src/codegen/cosmos/nft/v1beta1/event.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +174 -0
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +279 -0
- package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +86 -0
- package/src/codegen/cosmos/nft/v1beta1/query.rpc.query.ts +88 -0
- package/src/codegen/cosmos/nft/v1beta1/query.ts +976 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.amino.ts +42 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +25 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +156 -0
- package/src/codegen/cosmos/orm/v1/orm.ts +392 -0
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +289 -0
- package/src/codegen/cosmos/params/v1beta1/params.ts +187 -0
- package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +40 -0
- package/src/codegen/cosmos/params/v1beta1/query.rpc.query.ts +37 -0
- package/src/codegen/cosmos/params/v1beta1/query.ts +348 -0
- package/src/codegen/cosmos/rpc.query.ts +36 -0
- package/src/codegen/cosmos/rpc.tx.ts +28 -0
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +356 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +45 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.rpc.query.ts +47 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +394 -0
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +268 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.amino.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.registry.ts +55 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +110 -0
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +265 -0
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +253 -0
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +199 -0
- package/src/codegen/cosmos/staking/v1beta1/query.rpc.query.ts +222 -0
- package/src/codegen/cosmos/staking/v1beta1/query.ts +1970 -0
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +1957 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.amino.ts +294 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.registry.ts +121 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +68 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +735 -0
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +528 -0
- package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +65 -0
- package/src/codegen/cosmos/tx/v1beta1/service.rpc.svc.ts +94 -0
- package/src/codegen/cosmos/tx/v1beta1/service.ts +984 -0
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +1497 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +69 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.query.ts +99 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +631 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.amino.ts +86 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.registry.ts +58 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +40 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +245 -0
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +432 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.amino.ts +157 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.registry.ts +127 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +50 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +475 -0
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +527 -0
- package/src/codegen/cosmos_proto/bundle.ts +3 -0
- package/src/codegen/cosmos_proto/cosmos.ts +289 -0
- package/src/codegen/cosmwasm/bundle.ts +34 -0
- package/src/codegen/cosmwasm/client.ts +44 -0
- package/src/codegen/cosmwasm/lcd.ts +59 -0
- package/src/codegen/cosmwasm/rpc.query.ts +41 -0
- package/src/codegen/cosmwasm/rpc.tx.ts +33 -0
- package/src/codegen/cosmwasm/wasm/v1/genesis.ts +433 -0
- package/src/codegen/cosmwasm/wasm/v1/ibc.ts +180 -0
- package/src/codegen/cosmwasm/wasm/v1/proposal.ts +1083 -0
- package/src/codegen/cosmwasm/wasm/v1/query.lcd.ts +131 -0
- package/src/codegen/cosmwasm/wasm/v1/query.rpc.query.ts +152 -0
- package/src/codegen/cosmwasm/wasm/v1/query.ts +1378 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.amino.ts +252 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.registry.ts +142 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.rpc.msg.ts +75 -0
- package/src/codegen/cosmwasm/wasm/v1/tx.ts +944 -0
- package/src/codegen/cosmwasm/wasm/v1/types.ts +861 -0
- package/src/codegen/gogoproto/bundle.ts +3 -0
- package/src/codegen/gogoproto/gogo.ts +1 -0
- package/src/codegen/google/api/annotations.ts +1 -0
- package/src/codegen/google/api/http.ts +683 -0
- package/src/codegen/google/bundle.ts +19 -0
- package/src/codegen/google/protobuf/any.ts +291 -0
- package/src/codegen/google/protobuf/descriptor.ts +4317 -0
- package/src/codegen/google/protobuf/duration.ts +215 -0
- package/src/codegen/google/protobuf/empty.ts +62 -0
- package/src/codegen/google/protobuf/field_mask.ts +459 -0
- package/src/codegen/google/protobuf/struct.ts +420 -0
- package/src/codegen/google/protobuf/timestamp.ts +259 -0
- package/src/codegen/google/protobuf/wrappers.ts +587 -0
- package/src/codegen/ibc/applications/transfer/v1/genesis.ts +82 -0
- package/src/codegen/ibc/applications/transfer/v1/query.lcd.ts +49 -0
- package/src/codegen/ibc/applications/transfer/v1/query.rpc.query.ts +66 -0
- package/src/codegen/ibc/applications/transfer/v1/query.ts +369 -0
- package/src/codegen/ibc/applications/transfer/v1/transfer.ts +182 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.amino.ts +73 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.registry.ts +37 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.rpc.msg.ts +25 -0
- package/src/codegen/ibc/applications/transfer/v1/tx.ts +217 -0
- package/src/codegen/ibc/applications/transfer/v2/packet.ts +115 -0
- package/src/codegen/ibc/bundle.ts +125 -0
- package/src/codegen/ibc/client.ts +53 -0
- package/src/codegen/ibc/core/channel/v1/channel.ts +923 -0
- package/src/codegen/ibc/core/channel/v1/genesis.ts +231 -0
- package/src/codegen/ibc/core/channel/v1/query.lcd.ts +165 -0
- package/src/codegen/ibc/core/channel/v1/query.rpc.query.ts +214 -0
- package/src/codegen/ibc/core/channel/v1/query.ts +2444 -0
- package/src/codegen/ibc/core/channel/v1/tx.amino.ts +670 -0
- package/src/codegen/ibc/core/channel/v1/tx.registry.ts +226 -0
- package/src/codegen/ibc/core/channel/v1/tx.rpc.msg.ts +116 -0
- package/src/codegen/ibc/core/channel/v1/tx.ts +1492 -0
- package/src/codegen/ibc/core/client/v1/client.ts +629 -0
- package/src/codegen/ibc/core/client/v1/genesis.ts +288 -0
- package/src/codegen/ibc/core/client/v1/query.lcd.ts +107 -0
- package/src/codegen/ibc/core/client/v1/query.rpc.query.ts +138 -0
- package/src/codegen/ibc/core/client/v1/query.ts +1130 -0
- package/src/codegen/ibc/core/client/v1/tx.amino.ts +205 -0
- package/src/codegen/ibc/core/client/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/client/v1/tx.rpc.msg.ts +55 -0
- package/src/codegen/ibc/core/client/v1/tx.ts +603 -0
- package/src/codegen/ibc/core/commitment/v1/commitment.ts +257 -0
- package/src/codegen/ibc/core/connection/v1/connection.ts +758 -0
- package/src/codegen/ibc/core/connection/v1/genesis.ts +98 -0
- package/src/codegen/ibc/core/connection/v1/query.lcd.ts +68 -0
- package/src/codegen/ibc/core/connection/v1/query.rpc.query.ts +97 -0
- package/src/codegen/ibc/core/connection/v1/query.ts +836 -0
- package/src/codegen/ibc/core/connection/v1/tx.amino.ts +343 -0
- package/src/codegen/ibc/core/connection/v1/tx.registry.ts +100 -0
- package/src/codegen/ibc/core/connection/v1/tx.rpc.msg.ts +56 -0
- package/src/codegen/ibc/core/connection/v1/tx.ts +795 -0
- package/src/codegen/ibc/core/port/v1/query.rpc.query.ts +26 -0
- package/src/codegen/ibc/core/port/v1/query.ts +204 -0
- package/src/codegen/ibc/core/types/v1/genesis.ts +98 -0
- package/src/codegen/ibc/lcd.ts +78 -0
- package/src/codegen/ibc/lightclients/localhost/v1/localhost.ts +82 -0
- package/src/codegen/ibc/lightclients/solomachine/v1/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/solomachine/v2/solomachine.ts +1499 -0
- package/src/codegen/ibc/lightclients/tendermint/v1/tendermint.ts +626 -0
- package/src/codegen/ibc/rpc.query.ts +54 -0
- package/src/codegen/ibc/rpc.tx.ts +46 -0
- package/src/codegen/ics23/bundle.ts +3 -0
- package/src/codegen/index.ts +19 -0
- package/src/codegen/juno/bundle.ts +18 -0
- package/src/codegen/juno/lcd.ts +57 -0
- package/src/codegen/juno/mint/genesis.ts +76 -0
- package/src/codegen/juno/mint/mint.ts +172 -0
- package/src/codegen/juno/mint/query.lcd.ts +38 -0
- package/src/codegen/juno/mint/query.rpc.query.ts +64 -0
- package/src/codegen/juno/mint/query.ts +312 -0
- package/src/codegen/juno/rpc.query.ts +39 -0
- package/src/codegen/tendermint/abci/types.ts +3943 -0
- package/src/codegen/tendermint/bundle.ts +32 -0
- package/src/codegen/tendermint/crypto/keys.ts +69 -0
- package/src/codegen/tendermint/crypto/proof.ts +375 -0
- package/src/codegen/tendermint/libs/bits/types.ts +77 -0
- package/src/codegen/tendermint/p2p/types.ts +438 -0
- package/src/codegen/tendermint/types/block.ts +91 -0
- package/src/codegen/tendermint/types/evidence.ts +325 -0
- package/src/codegen/tendermint/types/params.ts +521 -0
- package/src/codegen/tendermint/types/types.ts +1399 -0
- package/src/codegen/tendermint/types/validator.ts +228 -0
- package/src/codegen/tendermint/version/types.ts +152 -0
- package/src/index.ts +1 -0
- package/types/codegen/JunoSwap.client.d.ts +29 -27
- package/types/codegen/JunoSwap.types.d.ts +43 -25
- package/types/codegen/cosmos/authz/v1beta1/query.d.ts +3 -3
- package/types/codegen/cosmos/authz/v1beta1/query.rpc.query.d.ts +10 -10
- package/types/codegen/cosmos/authz/v1beta1/tx.d.ts +3 -3
- package/types/codegen/cosmos/authz/v1beta1/tx.rpc.msg.d.ts +7 -7
- package/types/codegen/cosmos/bank/v1beta1/query.d.ts +9 -9
- package/types/codegen/cosmos/bank/v1beta1/query.rpc.query.d.ts +28 -28
- package/types/codegen/cosmos/bank/v1beta1/tx.d.ts +2 -2
- package/types/codegen/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +5 -5
- package/types/codegen/cosmos/base/reflection/v2alpha1/reflection.d.ts +6 -6
- package/types/codegen/cosmos/bundle.d.ts +214 -214
- package/types/codegen/cosmos/distribution/v1beta1/query.d.ts +9 -9
- package/types/codegen/cosmos/distribution/v1beta1/query.rpc.query.d.ts +28 -28
- package/types/codegen/cosmos/distribution/v1beta1/tx.d.ts +4 -4
- package/types/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.d.ts +9 -9
- package/types/codegen/cosmos/gov/v1/query.d.ts +8 -8
- package/types/codegen/cosmos/gov/v1/query.rpc.query.d.ts +25 -25
- package/types/codegen/cosmos/gov/v1/tx.d.ts +5 -5
- package/types/codegen/cosmos/gov/v1/tx.rpc.msg.d.ts +11 -11
- package/types/codegen/cosmos/gov/v1beta1/query.d.ts +8 -8
- package/types/codegen/cosmos/gov/v1beta1/query.rpc.query.d.ts +25 -25
- package/types/codegen/cosmos/gov/v1beta1/tx.d.ts +4 -4
- package/types/codegen/cosmos/gov/v1beta1/tx.rpc.msg.d.ts +9 -9
- package/types/codegen/cosmos/rpc.query.d.ts +61 -61
- package/types/codegen/cosmos/staking/v1beta1/query.d.ts +14 -14
- package/types/codegen/cosmos/staking/v1beta1/query.rpc.query.d.ts +43 -43
- package/types/codegen/cosmos/staking/v1beta1/tx.d.ts +5 -5
- package/types/codegen/cosmos/staking/v1beta1/tx.rpc.msg.d.ts +11 -11
- package/types/codegen/cosmos/tx/v1beta1/service.d.ts +5 -5
- package/types/codegen/cosmos/tx/v1beta1/service.rpc.svc.d.ts +16 -16
- package/types/codegen/cosmos/upgrade/v1beta1/query.d.ts +5 -5
- package/types/codegen/cosmos/upgrade/v1beta1/query.rpc.query.d.ts +16 -16
- package/types/codegen/cosmos/upgrade/v1beta1/tx.d.ts +2 -2
- package/types/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.d.ts +5 -5
- package/types/codegen/cosmwasm/bundle.d.ts +94 -94
- package/types/codegen/cosmwasm/rpc.query.d.ts +70 -70
- package/types/codegen/cosmwasm/wasm/v1/query.d.ts +9 -9
- package/types/codegen/cosmwasm/wasm/v1/query.rpc.query.d.ts +28 -28
- package/types/codegen/cosmwasm/wasm/v1/tx.d.ts +6 -6
- package/types/codegen/cosmwasm/wasm/v1/tx.rpc.msg.d.ts +13 -13
- package/types/codegen/ibc/applications/transfer/v1/query.d.ts +3 -3
- package/types/codegen/ibc/applications/transfer/v1/query.rpc.query.d.ts +10 -10
- package/types/codegen/ibc/applications/transfer/v1/tx.d.ts +1 -1
- package/types/codegen/ibc/applications/transfer/v1/tx.rpc.msg.d.ts +3 -3
- package/types/codegen/ibc/bundle.d.ts +167 -167
- package/types/codegen/ibc/core/channel/v1/query.d.ts +13 -13
- package/types/codegen/ibc/core/channel/v1/query.rpc.query.d.ts +40 -40
- package/types/codegen/ibc/core/channel/v1/tx.d.ts +10 -10
- package/types/codegen/ibc/core/channel/v1/tx.rpc.msg.d.ts +21 -21
- package/types/codegen/ibc/core/client/v1/query.d.ts +8 -8
- package/types/codegen/ibc/core/client/v1/query.rpc.query.d.ts +25 -25
- package/types/codegen/ibc/core/client/v1/tx.d.ts +4 -4
- package/types/codegen/ibc/core/client/v1/tx.rpc.msg.d.ts +9 -9
- package/types/codegen/ibc/core/connection/v1/query.d.ts +5 -5
- package/types/codegen/ibc/core/connection/v1/query.rpc.query.d.ts +16 -16
- package/types/codegen/ibc/core/connection/v1/tx.d.ts +4 -4
- package/types/codegen/ibc/core/connection/v1/tx.rpc.msg.d.ts +9 -9
- package/types/codegen/ibc/rpc.query.d.ts +90 -90
- package/types/codegen/index.d.ts +1 -1
- package/types/codegen/juno/bundle.d.ts +70 -70
- package/types/codegen/juno/mint/query.d.ts +3 -3
- package/types/codegen/juno/mint/query.rpc.query.d.ts +10 -10
- package/types/codegen/juno/rpc.query.d.ts +64 -64
- package/types/codegen/tendermint/abci/types.d.ts +15 -15
- package/types/codegen/tendermint/bundle.d.ts +15 -15
@@ -0,0 +1,1064 @@
|
|
1
|
+
import { Coin, CoinSDKType } from "../../base/v1beta1/coin";
|
2
|
+
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
3
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
4
|
+
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
5
|
+
import * as _m0 from "protobufjs/minimal";
|
6
|
+
import { DeepPartial, Long, toTimestamp, fromTimestamp } from "@osmonauts/helpers";
|
7
|
+
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
8
|
+
|
9
|
+
export enum VoteOption {
|
10
|
+
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
11
|
+
VOTE_OPTION_UNSPECIFIED = 0,
|
12
|
+
|
13
|
+
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
14
|
+
VOTE_OPTION_YES = 1,
|
15
|
+
|
16
|
+
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
17
|
+
VOTE_OPTION_ABSTAIN = 2,
|
18
|
+
|
19
|
+
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
20
|
+
VOTE_OPTION_NO = 3,
|
21
|
+
|
22
|
+
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
23
|
+
VOTE_OPTION_NO_WITH_VETO = 4,
|
24
|
+
UNRECOGNIZED = -1,
|
25
|
+
}
|
26
|
+
/** VoteOption enumerates the valid vote options for a given governance proposal. */
|
27
|
+
|
28
|
+
export enum VoteOptionSDKType {
|
29
|
+
/** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */
|
30
|
+
VOTE_OPTION_UNSPECIFIED = 0,
|
31
|
+
|
32
|
+
/** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */
|
33
|
+
VOTE_OPTION_YES = 1,
|
34
|
+
|
35
|
+
/** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */
|
36
|
+
VOTE_OPTION_ABSTAIN = 2,
|
37
|
+
|
38
|
+
/** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */
|
39
|
+
VOTE_OPTION_NO = 3,
|
40
|
+
|
41
|
+
/** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */
|
42
|
+
VOTE_OPTION_NO_WITH_VETO = 4,
|
43
|
+
UNRECOGNIZED = -1,
|
44
|
+
}
|
45
|
+
export function voteOptionFromJSON(object: any): VoteOption {
|
46
|
+
switch (object) {
|
47
|
+
case 0:
|
48
|
+
case "VOTE_OPTION_UNSPECIFIED":
|
49
|
+
return VoteOption.VOTE_OPTION_UNSPECIFIED;
|
50
|
+
|
51
|
+
case 1:
|
52
|
+
case "VOTE_OPTION_YES":
|
53
|
+
return VoteOption.VOTE_OPTION_YES;
|
54
|
+
|
55
|
+
case 2:
|
56
|
+
case "VOTE_OPTION_ABSTAIN":
|
57
|
+
return VoteOption.VOTE_OPTION_ABSTAIN;
|
58
|
+
|
59
|
+
case 3:
|
60
|
+
case "VOTE_OPTION_NO":
|
61
|
+
return VoteOption.VOTE_OPTION_NO;
|
62
|
+
|
63
|
+
case 4:
|
64
|
+
case "VOTE_OPTION_NO_WITH_VETO":
|
65
|
+
return VoteOption.VOTE_OPTION_NO_WITH_VETO;
|
66
|
+
|
67
|
+
case -1:
|
68
|
+
case "UNRECOGNIZED":
|
69
|
+
default:
|
70
|
+
return VoteOption.UNRECOGNIZED;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
export function voteOptionToJSON(object: VoteOption): string {
|
74
|
+
switch (object) {
|
75
|
+
case VoteOption.VOTE_OPTION_UNSPECIFIED:
|
76
|
+
return "VOTE_OPTION_UNSPECIFIED";
|
77
|
+
|
78
|
+
case VoteOption.VOTE_OPTION_YES:
|
79
|
+
return "VOTE_OPTION_YES";
|
80
|
+
|
81
|
+
case VoteOption.VOTE_OPTION_ABSTAIN:
|
82
|
+
return "VOTE_OPTION_ABSTAIN";
|
83
|
+
|
84
|
+
case VoteOption.VOTE_OPTION_NO:
|
85
|
+
return "VOTE_OPTION_NO";
|
86
|
+
|
87
|
+
case VoteOption.VOTE_OPTION_NO_WITH_VETO:
|
88
|
+
return "VOTE_OPTION_NO_WITH_VETO";
|
89
|
+
|
90
|
+
default:
|
91
|
+
return "UNKNOWN";
|
92
|
+
}
|
93
|
+
}
|
94
|
+
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
95
|
+
|
96
|
+
export enum ProposalStatus {
|
97
|
+
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
|
98
|
+
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
99
|
+
|
100
|
+
/**
|
101
|
+
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
102
|
+
* period.
|
103
|
+
*/
|
104
|
+
PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
|
105
|
+
|
106
|
+
/**
|
107
|
+
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
108
|
+
* period.
|
109
|
+
*/
|
110
|
+
PROPOSAL_STATUS_VOTING_PERIOD = 2,
|
111
|
+
|
112
|
+
/**
|
113
|
+
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
114
|
+
* passed.
|
115
|
+
*/
|
116
|
+
PROPOSAL_STATUS_PASSED = 3,
|
117
|
+
|
118
|
+
/**
|
119
|
+
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
120
|
+
* been rejected.
|
121
|
+
*/
|
122
|
+
PROPOSAL_STATUS_REJECTED = 4,
|
123
|
+
|
124
|
+
/**
|
125
|
+
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
126
|
+
* failed.
|
127
|
+
*/
|
128
|
+
PROPOSAL_STATUS_FAILED = 5,
|
129
|
+
UNRECOGNIZED = -1,
|
130
|
+
}
|
131
|
+
/** ProposalStatus enumerates the valid statuses of a proposal. */
|
132
|
+
|
133
|
+
export enum ProposalStatusSDKType {
|
134
|
+
/** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. */
|
135
|
+
PROPOSAL_STATUS_UNSPECIFIED = 0,
|
136
|
+
|
137
|
+
/**
|
138
|
+
* PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit
|
139
|
+
* period.
|
140
|
+
*/
|
141
|
+
PROPOSAL_STATUS_DEPOSIT_PERIOD = 1,
|
142
|
+
|
143
|
+
/**
|
144
|
+
* PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting
|
145
|
+
* period.
|
146
|
+
*/
|
147
|
+
PROPOSAL_STATUS_VOTING_PERIOD = 2,
|
148
|
+
|
149
|
+
/**
|
150
|
+
* PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has
|
151
|
+
* passed.
|
152
|
+
*/
|
153
|
+
PROPOSAL_STATUS_PASSED = 3,
|
154
|
+
|
155
|
+
/**
|
156
|
+
* PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has
|
157
|
+
* been rejected.
|
158
|
+
*/
|
159
|
+
PROPOSAL_STATUS_REJECTED = 4,
|
160
|
+
|
161
|
+
/**
|
162
|
+
* PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has
|
163
|
+
* failed.
|
164
|
+
*/
|
165
|
+
PROPOSAL_STATUS_FAILED = 5,
|
166
|
+
UNRECOGNIZED = -1,
|
167
|
+
}
|
168
|
+
export function proposalStatusFromJSON(object: any): ProposalStatus {
|
169
|
+
switch (object) {
|
170
|
+
case 0:
|
171
|
+
case "PROPOSAL_STATUS_UNSPECIFIED":
|
172
|
+
return ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED;
|
173
|
+
|
174
|
+
case 1:
|
175
|
+
case "PROPOSAL_STATUS_DEPOSIT_PERIOD":
|
176
|
+
return ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD;
|
177
|
+
|
178
|
+
case 2:
|
179
|
+
case "PROPOSAL_STATUS_VOTING_PERIOD":
|
180
|
+
return ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD;
|
181
|
+
|
182
|
+
case 3:
|
183
|
+
case "PROPOSAL_STATUS_PASSED":
|
184
|
+
return ProposalStatus.PROPOSAL_STATUS_PASSED;
|
185
|
+
|
186
|
+
case 4:
|
187
|
+
case "PROPOSAL_STATUS_REJECTED":
|
188
|
+
return ProposalStatus.PROPOSAL_STATUS_REJECTED;
|
189
|
+
|
190
|
+
case 5:
|
191
|
+
case "PROPOSAL_STATUS_FAILED":
|
192
|
+
return ProposalStatus.PROPOSAL_STATUS_FAILED;
|
193
|
+
|
194
|
+
case -1:
|
195
|
+
case "UNRECOGNIZED":
|
196
|
+
default:
|
197
|
+
return ProposalStatus.UNRECOGNIZED;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
export function proposalStatusToJSON(object: ProposalStatus): string {
|
201
|
+
switch (object) {
|
202
|
+
case ProposalStatus.PROPOSAL_STATUS_UNSPECIFIED:
|
203
|
+
return "PROPOSAL_STATUS_UNSPECIFIED";
|
204
|
+
|
205
|
+
case ProposalStatus.PROPOSAL_STATUS_DEPOSIT_PERIOD:
|
206
|
+
return "PROPOSAL_STATUS_DEPOSIT_PERIOD";
|
207
|
+
|
208
|
+
case ProposalStatus.PROPOSAL_STATUS_VOTING_PERIOD:
|
209
|
+
return "PROPOSAL_STATUS_VOTING_PERIOD";
|
210
|
+
|
211
|
+
case ProposalStatus.PROPOSAL_STATUS_PASSED:
|
212
|
+
return "PROPOSAL_STATUS_PASSED";
|
213
|
+
|
214
|
+
case ProposalStatus.PROPOSAL_STATUS_REJECTED:
|
215
|
+
return "PROPOSAL_STATUS_REJECTED";
|
216
|
+
|
217
|
+
case ProposalStatus.PROPOSAL_STATUS_FAILED:
|
218
|
+
return "PROPOSAL_STATUS_FAILED";
|
219
|
+
|
220
|
+
default:
|
221
|
+
return "UNKNOWN";
|
222
|
+
}
|
223
|
+
}
|
224
|
+
/**
|
225
|
+
* WeightedVoteOption defines a unit of vote for vote split.
|
226
|
+
*
|
227
|
+
* Since: cosmos-sdk 0.43
|
228
|
+
*/
|
229
|
+
|
230
|
+
export interface WeightedVoteOption {
|
231
|
+
option: VoteOption;
|
232
|
+
weight: string;
|
233
|
+
}
|
234
|
+
/**
|
235
|
+
* WeightedVoteOption defines a unit of vote for vote split.
|
236
|
+
*
|
237
|
+
* Since: cosmos-sdk 0.43
|
238
|
+
*/
|
239
|
+
|
240
|
+
export interface WeightedVoteOptionSDKType {
|
241
|
+
option: VoteOptionSDKType;
|
242
|
+
weight: string;
|
243
|
+
}
|
244
|
+
/**
|
245
|
+
* TextProposal defines a standard text proposal whose changes need to be
|
246
|
+
* manually updated in case of approval.
|
247
|
+
*/
|
248
|
+
|
249
|
+
export interface TextProposal {
|
250
|
+
title: string;
|
251
|
+
description: string;
|
252
|
+
}
|
253
|
+
/**
|
254
|
+
* TextProposal defines a standard text proposal whose changes need to be
|
255
|
+
* manually updated in case of approval.
|
256
|
+
*/
|
257
|
+
|
258
|
+
export interface TextProposalSDKType {
|
259
|
+
title: string;
|
260
|
+
description: string;
|
261
|
+
}
|
262
|
+
/**
|
263
|
+
* Deposit defines an amount deposited by an account address to an active
|
264
|
+
* proposal.
|
265
|
+
*/
|
266
|
+
|
267
|
+
export interface Deposit {
|
268
|
+
proposalId: Long;
|
269
|
+
depositor: string;
|
270
|
+
amount: Coin[];
|
271
|
+
}
|
272
|
+
/**
|
273
|
+
* Deposit defines an amount deposited by an account address to an active
|
274
|
+
* proposal.
|
275
|
+
*/
|
276
|
+
|
277
|
+
export interface DepositSDKType {
|
278
|
+
proposal_id: Long;
|
279
|
+
depositor: string;
|
280
|
+
amount: CoinSDKType[];
|
281
|
+
}
|
282
|
+
/** Proposal defines the core field members of a governance proposal. */
|
283
|
+
|
284
|
+
export interface Proposal {
|
285
|
+
proposalId: Long;
|
286
|
+
content: Any;
|
287
|
+
status: ProposalStatus;
|
288
|
+
/**
|
289
|
+
* final_tally_result is the final tally result of the proposal. When
|
290
|
+
* querying a proposal via gRPC, this field is not populated until the
|
291
|
+
* proposal's voting period has ended.
|
292
|
+
*/
|
293
|
+
|
294
|
+
finalTallyResult: TallyResult;
|
295
|
+
submitTime: Date;
|
296
|
+
depositEndTime: Date;
|
297
|
+
totalDeposit: Coin[];
|
298
|
+
votingStartTime: Date;
|
299
|
+
votingEndTime: Date;
|
300
|
+
}
|
301
|
+
/** Proposal defines the core field members of a governance proposal. */
|
302
|
+
|
303
|
+
export interface ProposalSDKType {
|
304
|
+
proposal_id: Long;
|
305
|
+
content: AnySDKType;
|
306
|
+
status: ProposalStatusSDKType;
|
307
|
+
/**
|
308
|
+
* final_tally_result is the final tally result of the proposal. When
|
309
|
+
* querying a proposal via gRPC, this field is not populated until the
|
310
|
+
* proposal's voting period has ended.
|
311
|
+
*/
|
312
|
+
|
313
|
+
final_tally_result: TallyResultSDKType;
|
314
|
+
submit_time: Date;
|
315
|
+
deposit_end_time: Date;
|
316
|
+
total_deposit: CoinSDKType[];
|
317
|
+
voting_start_time: Date;
|
318
|
+
voting_end_time: Date;
|
319
|
+
}
|
320
|
+
/** TallyResult defines a standard tally for a governance proposal. */
|
321
|
+
|
322
|
+
export interface TallyResult {
|
323
|
+
yes: string;
|
324
|
+
abstain: string;
|
325
|
+
no: string;
|
326
|
+
noWithVeto: string;
|
327
|
+
}
|
328
|
+
/** TallyResult defines a standard tally for a governance proposal. */
|
329
|
+
|
330
|
+
export interface TallyResultSDKType {
|
331
|
+
yes: string;
|
332
|
+
abstain: string;
|
333
|
+
no: string;
|
334
|
+
no_with_veto: string;
|
335
|
+
}
|
336
|
+
/**
|
337
|
+
* Vote defines a vote on a governance proposal.
|
338
|
+
* A Vote consists of a proposal ID, the voter, and the vote option.
|
339
|
+
*/
|
340
|
+
|
341
|
+
export interface Vote {
|
342
|
+
proposalId: Long;
|
343
|
+
voter: string;
|
344
|
+
/**
|
345
|
+
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
346
|
+
* if and only if `len(options) == 1` and that option has weight 1. In all
|
347
|
+
* other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
348
|
+
*/
|
349
|
+
|
350
|
+
/** @deprecated */
|
351
|
+
|
352
|
+
option: VoteOption;
|
353
|
+
/** Since: cosmos-sdk 0.43 */
|
354
|
+
|
355
|
+
options: WeightedVoteOption[];
|
356
|
+
}
|
357
|
+
/**
|
358
|
+
* Vote defines a vote on a governance proposal.
|
359
|
+
* A Vote consists of a proposal ID, the voter, and the vote option.
|
360
|
+
*/
|
361
|
+
|
362
|
+
export interface VoteSDKType {
|
363
|
+
proposal_id: Long;
|
364
|
+
voter: string;
|
365
|
+
/**
|
366
|
+
* Deprecated: Prefer to use `options` instead. This field is set in queries
|
367
|
+
* if and only if `len(options) == 1` and that option has weight 1. In all
|
368
|
+
* other cases, this field will default to VOTE_OPTION_UNSPECIFIED.
|
369
|
+
*/
|
370
|
+
|
371
|
+
/** @deprecated */
|
372
|
+
|
373
|
+
option: VoteOptionSDKType;
|
374
|
+
/** Since: cosmos-sdk 0.43 */
|
375
|
+
|
376
|
+
options: WeightedVoteOptionSDKType[];
|
377
|
+
}
|
378
|
+
/** DepositParams defines the params for deposits on governance proposals. */
|
379
|
+
|
380
|
+
export interface DepositParams {
|
381
|
+
/** Minimum deposit for a proposal to enter voting period. */
|
382
|
+
minDeposit: Coin[];
|
383
|
+
/**
|
384
|
+
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
385
|
+
* months.
|
386
|
+
*/
|
387
|
+
|
388
|
+
maxDepositPeriod: Duration;
|
389
|
+
}
|
390
|
+
/** DepositParams defines the params for deposits on governance proposals. */
|
391
|
+
|
392
|
+
export interface DepositParamsSDKType {
|
393
|
+
/** Minimum deposit for a proposal to enter voting period. */
|
394
|
+
min_deposit: CoinSDKType[];
|
395
|
+
/**
|
396
|
+
* Maximum period for Atom holders to deposit on a proposal. Initial value: 2
|
397
|
+
* months.
|
398
|
+
*/
|
399
|
+
|
400
|
+
max_deposit_period: DurationSDKType;
|
401
|
+
}
|
402
|
+
/** VotingParams defines the params for voting on governance proposals. */
|
403
|
+
|
404
|
+
export interface VotingParams {
|
405
|
+
/** Length of the voting period. */
|
406
|
+
votingPeriod: Duration;
|
407
|
+
}
|
408
|
+
/** VotingParams defines the params for voting on governance proposals. */
|
409
|
+
|
410
|
+
export interface VotingParamsSDKType {
|
411
|
+
/** Length of the voting period. */
|
412
|
+
voting_period: DurationSDKType;
|
413
|
+
}
|
414
|
+
/** TallyParams defines the params for tallying votes on governance proposals. */
|
415
|
+
|
416
|
+
export interface TallyParams {
|
417
|
+
/**
|
418
|
+
* Minimum percentage of total stake needed to vote for a result to be
|
419
|
+
* considered valid.
|
420
|
+
*/
|
421
|
+
quorum: Uint8Array;
|
422
|
+
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
423
|
+
|
424
|
+
threshold: Uint8Array;
|
425
|
+
/**
|
426
|
+
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
427
|
+
* vetoed. Default value: 1/3.
|
428
|
+
*/
|
429
|
+
|
430
|
+
vetoThreshold: Uint8Array;
|
431
|
+
}
|
432
|
+
/** TallyParams defines the params for tallying votes on governance proposals. */
|
433
|
+
|
434
|
+
export interface TallyParamsSDKType {
|
435
|
+
/**
|
436
|
+
* Minimum percentage of total stake needed to vote for a result to be
|
437
|
+
* considered valid.
|
438
|
+
*/
|
439
|
+
quorum: Uint8Array;
|
440
|
+
/** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */
|
441
|
+
|
442
|
+
threshold: Uint8Array;
|
443
|
+
/**
|
444
|
+
* Minimum value of Veto votes to Total votes ratio for proposal to be
|
445
|
+
* vetoed. Default value: 1/3.
|
446
|
+
*/
|
447
|
+
|
448
|
+
veto_threshold: Uint8Array;
|
449
|
+
}
|
450
|
+
|
451
|
+
function createBaseWeightedVoteOption(): WeightedVoteOption {
|
452
|
+
return {
|
453
|
+
option: 0,
|
454
|
+
weight: ""
|
455
|
+
};
|
456
|
+
}
|
457
|
+
|
458
|
+
export const WeightedVoteOption = {
|
459
|
+
encode(message: WeightedVoteOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
460
|
+
if (message.option !== 0) {
|
461
|
+
writer.uint32(8).int32(message.option);
|
462
|
+
}
|
463
|
+
|
464
|
+
if (message.weight !== "") {
|
465
|
+
writer.uint32(18).string(message.weight);
|
466
|
+
}
|
467
|
+
|
468
|
+
return writer;
|
469
|
+
},
|
470
|
+
|
471
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption {
|
472
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
473
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
474
|
+
const message = createBaseWeightedVoteOption();
|
475
|
+
|
476
|
+
while (reader.pos < end) {
|
477
|
+
const tag = reader.uint32();
|
478
|
+
|
479
|
+
switch (tag >>> 3) {
|
480
|
+
case 1:
|
481
|
+
message.option = (reader.int32() as any);
|
482
|
+
break;
|
483
|
+
|
484
|
+
case 2:
|
485
|
+
message.weight = reader.string();
|
486
|
+
break;
|
487
|
+
|
488
|
+
default:
|
489
|
+
reader.skipType(tag & 7);
|
490
|
+
break;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
|
494
|
+
return message;
|
495
|
+
},
|
496
|
+
|
497
|
+
fromPartial(object: DeepPartial<WeightedVoteOption>): WeightedVoteOption {
|
498
|
+
const message = createBaseWeightedVoteOption();
|
499
|
+
message.option = object.option ?? 0;
|
500
|
+
message.weight = object.weight ?? "";
|
501
|
+
return message;
|
502
|
+
}
|
503
|
+
|
504
|
+
};
|
505
|
+
|
506
|
+
function createBaseTextProposal(): TextProposal {
|
507
|
+
return {
|
508
|
+
title: "",
|
509
|
+
description: ""
|
510
|
+
};
|
511
|
+
}
|
512
|
+
|
513
|
+
export const TextProposal = {
|
514
|
+
encode(message: TextProposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
515
|
+
if (message.title !== "") {
|
516
|
+
writer.uint32(10).string(message.title);
|
517
|
+
}
|
518
|
+
|
519
|
+
if (message.description !== "") {
|
520
|
+
writer.uint32(18).string(message.description);
|
521
|
+
}
|
522
|
+
|
523
|
+
return writer;
|
524
|
+
},
|
525
|
+
|
526
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TextProposal {
|
527
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
528
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
529
|
+
const message = createBaseTextProposal();
|
530
|
+
|
531
|
+
while (reader.pos < end) {
|
532
|
+
const tag = reader.uint32();
|
533
|
+
|
534
|
+
switch (tag >>> 3) {
|
535
|
+
case 1:
|
536
|
+
message.title = reader.string();
|
537
|
+
break;
|
538
|
+
|
539
|
+
case 2:
|
540
|
+
message.description = reader.string();
|
541
|
+
break;
|
542
|
+
|
543
|
+
default:
|
544
|
+
reader.skipType(tag & 7);
|
545
|
+
break;
|
546
|
+
}
|
547
|
+
}
|
548
|
+
|
549
|
+
return message;
|
550
|
+
},
|
551
|
+
|
552
|
+
fromPartial(object: DeepPartial<TextProposal>): TextProposal {
|
553
|
+
const message = createBaseTextProposal();
|
554
|
+
message.title = object.title ?? "";
|
555
|
+
message.description = object.description ?? "";
|
556
|
+
return message;
|
557
|
+
}
|
558
|
+
|
559
|
+
};
|
560
|
+
|
561
|
+
function createBaseDeposit(): Deposit {
|
562
|
+
return {
|
563
|
+
proposalId: Long.UZERO,
|
564
|
+
depositor: "",
|
565
|
+
amount: []
|
566
|
+
};
|
567
|
+
}
|
568
|
+
|
569
|
+
export const Deposit = {
|
570
|
+
encode(message: Deposit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
571
|
+
if (!message.proposalId.isZero()) {
|
572
|
+
writer.uint32(8).uint64(message.proposalId);
|
573
|
+
}
|
574
|
+
|
575
|
+
if (message.depositor !== "") {
|
576
|
+
writer.uint32(18).string(message.depositor);
|
577
|
+
}
|
578
|
+
|
579
|
+
for (const v of message.amount) {
|
580
|
+
Coin.encode(v!, writer.uint32(26).fork()).ldelim();
|
581
|
+
}
|
582
|
+
|
583
|
+
return writer;
|
584
|
+
},
|
585
|
+
|
586
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Deposit {
|
587
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
588
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
589
|
+
const message = createBaseDeposit();
|
590
|
+
|
591
|
+
while (reader.pos < end) {
|
592
|
+
const tag = reader.uint32();
|
593
|
+
|
594
|
+
switch (tag >>> 3) {
|
595
|
+
case 1:
|
596
|
+
message.proposalId = (reader.uint64() as Long);
|
597
|
+
break;
|
598
|
+
|
599
|
+
case 2:
|
600
|
+
message.depositor = reader.string();
|
601
|
+
break;
|
602
|
+
|
603
|
+
case 3:
|
604
|
+
message.amount.push(Coin.decode(reader, reader.uint32()));
|
605
|
+
break;
|
606
|
+
|
607
|
+
default:
|
608
|
+
reader.skipType(tag & 7);
|
609
|
+
break;
|
610
|
+
}
|
611
|
+
}
|
612
|
+
|
613
|
+
return message;
|
614
|
+
},
|
615
|
+
|
616
|
+
fromPartial(object: DeepPartial<Deposit>): Deposit {
|
617
|
+
const message = createBaseDeposit();
|
618
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
619
|
+
message.depositor = object.depositor ?? "";
|
620
|
+
message.amount = object.amount?.map(e => Coin.fromPartial(e)) || [];
|
621
|
+
return message;
|
622
|
+
}
|
623
|
+
|
624
|
+
};
|
625
|
+
|
626
|
+
function createBaseProposal(): Proposal {
|
627
|
+
return {
|
628
|
+
proposalId: Long.UZERO,
|
629
|
+
content: undefined,
|
630
|
+
status: 0,
|
631
|
+
finalTallyResult: undefined,
|
632
|
+
submitTime: undefined,
|
633
|
+
depositEndTime: undefined,
|
634
|
+
totalDeposit: [],
|
635
|
+
votingStartTime: undefined,
|
636
|
+
votingEndTime: undefined
|
637
|
+
};
|
638
|
+
}
|
639
|
+
|
640
|
+
export const Proposal = {
|
641
|
+
encode(message: Proposal, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
642
|
+
if (!message.proposalId.isZero()) {
|
643
|
+
writer.uint32(8).uint64(message.proposalId);
|
644
|
+
}
|
645
|
+
|
646
|
+
if (message.content !== undefined) {
|
647
|
+
Any.encode(message.content, writer.uint32(18).fork()).ldelim();
|
648
|
+
}
|
649
|
+
|
650
|
+
if (message.status !== 0) {
|
651
|
+
writer.uint32(24).int32(message.status);
|
652
|
+
}
|
653
|
+
|
654
|
+
if (message.finalTallyResult !== undefined) {
|
655
|
+
TallyResult.encode(message.finalTallyResult, writer.uint32(34).fork()).ldelim();
|
656
|
+
}
|
657
|
+
|
658
|
+
if (message.submitTime !== undefined) {
|
659
|
+
Timestamp.encode(toTimestamp(message.submitTime), writer.uint32(42).fork()).ldelim();
|
660
|
+
}
|
661
|
+
|
662
|
+
if (message.depositEndTime !== undefined) {
|
663
|
+
Timestamp.encode(toTimestamp(message.depositEndTime), writer.uint32(50).fork()).ldelim();
|
664
|
+
}
|
665
|
+
|
666
|
+
for (const v of message.totalDeposit) {
|
667
|
+
Coin.encode(v!, writer.uint32(58).fork()).ldelim();
|
668
|
+
}
|
669
|
+
|
670
|
+
if (message.votingStartTime !== undefined) {
|
671
|
+
Timestamp.encode(toTimestamp(message.votingStartTime), writer.uint32(66).fork()).ldelim();
|
672
|
+
}
|
673
|
+
|
674
|
+
if (message.votingEndTime !== undefined) {
|
675
|
+
Timestamp.encode(toTimestamp(message.votingEndTime), writer.uint32(74).fork()).ldelim();
|
676
|
+
}
|
677
|
+
|
678
|
+
return writer;
|
679
|
+
},
|
680
|
+
|
681
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Proposal {
|
682
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
683
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
684
|
+
const message = createBaseProposal();
|
685
|
+
|
686
|
+
while (reader.pos < end) {
|
687
|
+
const tag = reader.uint32();
|
688
|
+
|
689
|
+
switch (tag >>> 3) {
|
690
|
+
case 1:
|
691
|
+
message.proposalId = (reader.uint64() as Long);
|
692
|
+
break;
|
693
|
+
|
694
|
+
case 2:
|
695
|
+
message.content = Any.decode(reader, reader.uint32());
|
696
|
+
break;
|
697
|
+
|
698
|
+
case 3:
|
699
|
+
message.status = (reader.int32() as any);
|
700
|
+
break;
|
701
|
+
|
702
|
+
case 4:
|
703
|
+
message.finalTallyResult = TallyResult.decode(reader, reader.uint32());
|
704
|
+
break;
|
705
|
+
|
706
|
+
case 5:
|
707
|
+
message.submitTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
708
|
+
break;
|
709
|
+
|
710
|
+
case 6:
|
711
|
+
message.depositEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
712
|
+
break;
|
713
|
+
|
714
|
+
case 7:
|
715
|
+
message.totalDeposit.push(Coin.decode(reader, reader.uint32()));
|
716
|
+
break;
|
717
|
+
|
718
|
+
case 8:
|
719
|
+
message.votingStartTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
720
|
+
break;
|
721
|
+
|
722
|
+
case 9:
|
723
|
+
message.votingEndTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
724
|
+
break;
|
725
|
+
|
726
|
+
default:
|
727
|
+
reader.skipType(tag & 7);
|
728
|
+
break;
|
729
|
+
}
|
730
|
+
}
|
731
|
+
|
732
|
+
return message;
|
733
|
+
},
|
734
|
+
|
735
|
+
fromPartial(object: DeepPartial<Proposal>): Proposal {
|
736
|
+
const message = createBaseProposal();
|
737
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
738
|
+
message.content = object.content !== undefined && object.content !== null ? Any.fromPartial(object.content) : undefined;
|
739
|
+
message.status = object.status ?? 0;
|
740
|
+
message.finalTallyResult = object.finalTallyResult !== undefined && object.finalTallyResult !== null ? TallyResult.fromPartial(object.finalTallyResult) : undefined;
|
741
|
+
message.submitTime = object.submitTime ?? undefined;
|
742
|
+
message.depositEndTime = object.depositEndTime ?? undefined;
|
743
|
+
message.totalDeposit = object.totalDeposit?.map(e => Coin.fromPartial(e)) || [];
|
744
|
+
message.votingStartTime = object.votingStartTime ?? undefined;
|
745
|
+
message.votingEndTime = object.votingEndTime ?? undefined;
|
746
|
+
return message;
|
747
|
+
}
|
748
|
+
|
749
|
+
};
|
750
|
+
|
751
|
+
function createBaseTallyResult(): TallyResult {
|
752
|
+
return {
|
753
|
+
yes: "",
|
754
|
+
abstain: "",
|
755
|
+
no: "",
|
756
|
+
noWithVeto: ""
|
757
|
+
};
|
758
|
+
}
|
759
|
+
|
760
|
+
export const TallyResult = {
|
761
|
+
encode(message: TallyResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
762
|
+
if (message.yes !== "") {
|
763
|
+
writer.uint32(10).string(message.yes);
|
764
|
+
}
|
765
|
+
|
766
|
+
if (message.abstain !== "") {
|
767
|
+
writer.uint32(18).string(message.abstain);
|
768
|
+
}
|
769
|
+
|
770
|
+
if (message.no !== "") {
|
771
|
+
writer.uint32(26).string(message.no);
|
772
|
+
}
|
773
|
+
|
774
|
+
if (message.noWithVeto !== "") {
|
775
|
+
writer.uint32(34).string(message.noWithVeto);
|
776
|
+
}
|
777
|
+
|
778
|
+
return writer;
|
779
|
+
},
|
780
|
+
|
781
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult {
|
782
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
783
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
784
|
+
const message = createBaseTallyResult();
|
785
|
+
|
786
|
+
while (reader.pos < end) {
|
787
|
+
const tag = reader.uint32();
|
788
|
+
|
789
|
+
switch (tag >>> 3) {
|
790
|
+
case 1:
|
791
|
+
message.yes = reader.string();
|
792
|
+
break;
|
793
|
+
|
794
|
+
case 2:
|
795
|
+
message.abstain = reader.string();
|
796
|
+
break;
|
797
|
+
|
798
|
+
case 3:
|
799
|
+
message.no = reader.string();
|
800
|
+
break;
|
801
|
+
|
802
|
+
case 4:
|
803
|
+
message.noWithVeto = reader.string();
|
804
|
+
break;
|
805
|
+
|
806
|
+
default:
|
807
|
+
reader.skipType(tag & 7);
|
808
|
+
break;
|
809
|
+
}
|
810
|
+
}
|
811
|
+
|
812
|
+
return message;
|
813
|
+
},
|
814
|
+
|
815
|
+
fromPartial(object: DeepPartial<TallyResult>): TallyResult {
|
816
|
+
const message = createBaseTallyResult();
|
817
|
+
message.yes = object.yes ?? "";
|
818
|
+
message.abstain = object.abstain ?? "";
|
819
|
+
message.no = object.no ?? "";
|
820
|
+
message.noWithVeto = object.noWithVeto ?? "";
|
821
|
+
return message;
|
822
|
+
}
|
823
|
+
|
824
|
+
};
|
825
|
+
|
826
|
+
function createBaseVote(): Vote {
|
827
|
+
return {
|
828
|
+
proposalId: Long.UZERO,
|
829
|
+
voter: "",
|
830
|
+
option: 0,
|
831
|
+
options: []
|
832
|
+
};
|
833
|
+
}
|
834
|
+
|
835
|
+
export const Vote = {
|
836
|
+
encode(message: Vote, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
837
|
+
if (!message.proposalId.isZero()) {
|
838
|
+
writer.uint32(8).uint64(message.proposalId);
|
839
|
+
}
|
840
|
+
|
841
|
+
if (message.voter !== "") {
|
842
|
+
writer.uint32(18).string(message.voter);
|
843
|
+
}
|
844
|
+
|
845
|
+
if (message.option !== 0) {
|
846
|
+
writer.uint32(24).int32(message.option);
|
847
|
+
}
|
848
|
+
|
849
|
+
for (const v of message.options) {
|
850
|
+
WeightedVoteOption.encode(v!, writer.uint32(34).fork()).ldelim();
|
851
|
+
}
|
852
|
+
|
853
|
+
return writer;
|
854
|
+
},
|
855
|
+
|
856
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Vote {
|
857
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
858
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
859
|
+
const message = createBaseVote();
|
860
|
+
|
861
|
+
while (reader.pos < end) {
|
862
|
+
const tag = reader.uint32();
|
863
|
+
|
864
|
+
switch (tag >>> 3) {
|
865
|
+
case 1:
|
866
|
+
message.proposalId = (reader.uint64() as Long);
|
867
|
+
break;
|
868
|
+
|
869
|
+
case 2:
|
870
|
+
message.voter = reader.string();
|
871
|
+
break;
|
872
|
+
|
873
|
+
case 3:
|
874
|
+
message.option = (reader.int32() as any);
|
875
|
+
break;
|
876
|
+
|
877
|
+
case 4:
|
878
|
+
message.options.push(WeightedVoteOption.decode(reader, reader.uint32()));
|
879
|
+
break;
|
880
|
+
|
881
|
+
default:
|
882
|
+
reader.skipType(tag & 7);
|
883
|
+
break;
|
884
|
+
}
|
885
|
+
}
|
886
|
+
|
887
|
+
return message;
|
888
|
+
},
|
889
|
+
|
890
|
+
fromPartial(object: DeepPartial<Vote>): Vote {
|
891
|
+
const message = createBaseVote();
|
892
|
+
message.proposalId = object.proposalId !== undefined && object.proposalId !== null ? Long.fromValue(object.proposalId) : Long.UZERO;
|
893
|
+
message.voter = object.voter ?? "";
|
894
|
+
message.option = object.option ?? 0;
|
895
|
+
message.options = object.options?.map(e => WeightedVoteOption.fromPartial(e)) || [];
|
896
|
+
return message;
|
897
|
+
}
|
898
|
+
|
899
|
+
};
|
900
|
+
|
901
|
+
function createBaseDepositParams(): DepositParams {
|
902
|
+
return {
|
903
|
+
minDeposit: [],
|
904
|
+
maxDepositPeriod: undefined
|
905
|
+
};
|
906
|
+
}
|
907
|
+
|
908
|
+
export const DepositParams = {
|
909
|
+
encode(message: DepositParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
910
|
+
for (const v of message.minDeposit) {
|
911
|
+
Coin.encode(v!, writer.uint32(10).fork()).ldelim();
|
912
|
+
}
|
913
|
+
|
914
|
+
if (message.maxDepositPeriod !== undefined) {
|
915
|
+
Duration.encode(message.maxDepositPeriod, writer.uint32(18).fork()).ldelim();
|
916
|
+
}
|
917
|
+
|
918
|
+
return writer;
|
919
|
+
},
|
920
|
+
|
921
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams {
|
922
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
923
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
924
|
+
const message = createBaseDepositParams();
|
925
|
+
|
926
|
+
while (reader.pos < end) {
|
927
|
+
const tag = reader.uint32();
|
928
|
+
|
929
|
+
switch (tag >>> 3) {
|
930
|
+
case 1:
|
931
|
+
message.minDeposit.push(Coin.decode(reader, reader.uint32()));
|
932
|
+
break;
|
933
|
+
|
934
|
+
case 2:
|
935
|
+
message.maxDepositPeriod = Duration.decode(reader, reader.uint32());
|
936
|
+
break;
|
937
|
+
|
938
|
+
default:
|
939
|
+
reader.skipType(tag & 7);
|
940
|
+
break;
|
941
|
+
}
|
942
|
+
}
|
943
|
+
|
944
|
+
return message;
|
945
|
+
},
|
946
|
+
|
947
|
+
fromPartial(object: DeepPartial<DepositParams>): DepositParams {
|
948
|
+
const message = createBaseDepositParams();
|
949
|
+
message.minDeposit = object.minDeposit?.map(e => Coin.fromPartial(e)) || [];
|
950
|
+
message.maxDepositPeriod = object.maxDepositPeriod ?? undefined;
|
951
|
+
return message;
|
952
|
+
}
|
953
|
+
|
954
|
+
};
|
955
|
+
|
956
|
+
function createBaseVotingParams(): VotingParams {
|
957
|
+
return {
|
958
|
+
votingPeriod: undefined
|
959
|
+
};
|
960
|
+
}
|
961
|
+
|
962
|
+
export const VotingParams = {
|
963
|
+
encode(message: VotingParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
964
|
+
if (message.votingPeriod !== undefined) {
|
965
|
+
Duration.encode(message.votingPeriod, writer.uint32(10).fork()).ldelim();
|
966
|
+
}
|
967
|
+
|
968
|
+
return writer;
|
969
|
+
},
|
970
|
+
|
971
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams {
|
972
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
973
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
974
|
+
const message = createBaseVotingParams();
|
975
|
+
|
976
|
+
while (reader.pos < end) {
|
977
|
+
const tag = reader.uint32();
|
978
|
+
|
979
|
+
switch (tag >>> 3) {
|
980
|
+
case 1:
|
981
|
+
message.votingPeriod = Duration.decode(reader, reader.uint32());
|
982
|
+
break;
|
983
|
+
|
984
|
+
default:
|
985
|
+
reader.skipType(tag & 7);
|
986
|
+
break;
|
987
|
+
}
|
988
|
+
}
|
989
|
+
|
990
|
+
return message;
|
991
|
+
},
|
992
|
+
|
993
|
+
fromPartial(object: DeepPartial<VotingParams>): VotingParams {
|
994
|
+
const message = createBaseVotingParams();
|
995
|
+
message.votingPeriod = object.votingPeriod ?? undefined;
|
996
|
+
return message;
|
997
|
+
}
|
998
|
+
|
999
|
+
};
|
1000
|
+
|
1001
|
+
function createBaseTallyParams(): TallyParams {
|
1002
|
+
return {
|
1003
|
+
quorum: new Uint8Array(),
|
1004
|
+
threshold: new Uint8Array(),
|
1005
|
+
vetoThreshold: new Uint8Array()
|
1006
|
+
};
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
export const TallyParams = {
|
1010
|
+
encode(message: TallyParams, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
1011
|
+
if (message.quorum.length !== 0) {
|
1012
|
+
writer.uint32(10).bytes(message.quorum);
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
if (message.threshold.length !== 0) {
|
1016
|
+
writer.uint32(18).bytes(message.threshold);
|
1017
|
+
}
|
1018
|
+
|
1019
|
+
if (message.vetoThreshold.length !== 0) {
|
1020
|
+
writer.uint32(26).bytes(message.vetoThreshold);
|
1021
|
+
}
|
1022
|
+
|
1023
|
+
return writer;
|
1024
|
+
},
|
1025
|
+
|
1026
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams {
|
1027
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
1028
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
1029
|
+
const message = createBaseTallyParams();
|
1030
|
+
|
1031
|
+
while (reader.pos < end) {
|
1032
|
+
const tag = reader.uint32();
|
1033
|
+
|
1034
|
+
switch (tag >>> 3) {
|
1035
|
+
case 1:
|
1036
|
+
message.quorum = reader.bytes();
|
1037
|
+
break;
|
1038
|
+
|
1039
|
+
case 2:
|
1040
|
+
message.threshold = reader.bytes();
|
1041
|
+
break;
|
1042
|
+
|
1043
|
+
case 3:
|
1044
|
+
message.vetoThreshold = reader.bytes();
|
1045
|
+
break;
|
1046
|
+
|
1047
|
+
default:
|
1048
|
+
reader.skipType(tag & 7);
|
1049
|
+
break;
|
1050
|
+
}
|
1051
|
+
}
|
1052
|
+
|
1053
|
+
return message;
|
1054
|
+
},
|
1055
|
+
|
1056
|
+
fromPartial(object: DeepPartial<TallyParams>): TallyParams {
|
1057
|
+
const message = createBaseTallyParams();
|
1058
|
+
message.quorum = object.quorum ?? new Uint8Array();
|
1059
|
+
message.threshold = object.threshold ?? new Uint8Array();
|
1060
|
+
message.vetoThreshold = object.vetoThreshold ?? new Uint8Array();
|
1061
|
+
return message;
|
1062
|
+
}
|
1063
|
+
|
1064
|
+
};
|