@zoguxprotocol/proto 0.1.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/LICENSE +800 -0
- package/README.md +14 -0
- package/package.json +48 -0
- package/src/codegen/amino/amino.ts +1 -0
- package/src/codegen/amino/bundle.ts +3 -0
- package/src/codegen/cosmos/app/runtime/v1alpha1/module.ts +277 -0
- package/src/codegen/cosmos/app/v1alpha1/config.ts +265 -0
- package/src/codegen/cosmos/app/v1alpha1/module.ts +274 -0
- package/src/codegen/cosmos/app/v1alpha1/query.rpc.Query.ts +35 -0
- package/src/codegen/cosmos/app/v1alpha1/query.ts +99 -0
- package/src/codegen/cosmos/auth/module/v1/module.ts +159 -0
- package/src/codegen/cosmos/auth/v1beta1/auth.ts +365 -0
- package/src/codegen/cosmos/auth/v1beta1/genesis.ts +74 -0
- package/src/codegen/cosmos/auth/v1beta1/query.lcd.ts +130 -0
- package/src/codegen/cosmos/auth/v1beta1/query.rpc.Query.ts +194 -0
- package/src/codegen/cosmos/auth/v1beta1/query.ts +1221 -0
- package/src/codegen/cosmos/auth/v1beta1/tx.rpc.msg.ts +29 -0
- package/src/codegen/cosmos/auth/v1beta1/tx.ts +135 -0
- package/src/codegen/cosmos/authz/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/authz/v1beta1/authz.ts +298 -0
- package/src/codegen/cosmos/authz/v1beta1/event.ts +170 -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 +71 -0
- package/src/codegen/cosmos/authz/v1beta1/query.ts +447 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.rpc.msg.ts +56 -0
- package/src/codegen/cosmos/authz/v1beta1/tx.ts +390 -0
- package/src/codegen/cosmos/bank/module/v1/module.ts +76 -0
- package/src/codegen/cosmos/bank/v1beta1/authz.ts +87 -0
- package/src/codegen/cosmos/bank/v1beta1/bank.ts +630 -0
- package/src/codegen/cosmos/bank/v1beta1/genesis.ts +199 -0
- package/src/codegen/cosmos/bank/v1beta1/query.lcd.ts +237 -0
- package/src/codegen/cosmos/bank/v1beta1/query.rpc.Query.ts +243 -0
- package/src/codegen/cosmos/bank/v1beta1/query.ts +1727 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.rpc.msg.ts +66 -0
- package/src/codegen/cosmos/bank/v1beta1/tx.ts +519 -0
- package/src/codegen/cosmos/base/abci/v1beta1/abci.ts +1147 -0
- package/src/codegen/cosmos/base/node/v1beta1/query.lcd.ts +30 -0
- package/src/codegen/cosmos/base/node/v1beta1/query.rpc.Service.ts +49 -0
- package/src/codegen/cosmos/base/node/v1beta1/query.ts +276 -0
- package/src/codegen/cosmos/base/query/v1beta1/pagination.ts +243 -0
- package/src/codegen/cosmos/base/reflection/v1beta1/reflection.ts +221 -0
- package/src/codegen/cosmos/base/reflection/v2alpha1/reflection.ts +1630 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.lcd.ts +113 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.rpc.Service.ts +127 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/query.ts +1486 -0
- package/src/codegen/cosmos/base/tendermint/v1beta1/types.ts +335 -0
- package/src/codegen/cosmos/base/v1beta1/coin.ts +278 -0
- package/src/codegen/cosmos/bundle.ts +578 -0
- package/src/codegen/cosmos/circuit/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/circuit/v1/query.lcd.ts +49 -0
- package/src/codegen/cosmos/circuit/v1/query.rpc.Query.ts +65 -0
- package/src/codegen/cosmos/circuit/v1/query.ts +334 -0
- package/src/codegen/cosmos/circuit/v1/tx.rpc.msg.ts +50 -0
- package/src/codegen/cosmos/circuit/v1/tx.ts +409 -0
- package/src/codegen/cosmos/circuit/v1/types.ts +290 -0
- package/src/codegen/cosmos/consensus/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/consensus/v1/query.lcd.ts +22 -0
- package/src/codegen/cosmos/consensus/v1/query.rpc.Query.ts +35 -0
- package/src/codegen/cosmos/consensus/v1/query.ts +103 -0
- package/src/codegen/cosmos/consensus/v1/tx.rpc.msg.ts +29 -0
- package/src/codegen/cosmos/consensus/v1/tx.ts +163 -0
- package/src/codegen/cosmos/crisis/module/v1/module.ts +72 -0
- package/src/codegen/cosmos/crisis/v1beta1/genesis.ts +62 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.rpc.msg.ts +39 -0
- package/src/codegen/cosmos/crisis/v1beta1/tx.ts +255 -0
- package/src/codegen/cosmos/crypto/ed25519/keys.ts +130 -0
- package/src/codegen/cosmos/crypto/hd/v1/hd.ts +117 -0
- package/src/codegen/cosmos/crypto/keyring/v1/record.ts +326 -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 +117 -0
- package/src/codegen/cosmos/distribution/module/v1/module.ts +71 -0
- package/src/codegen/cosmos/distribution/v1beta1/distribution.ts +977 -0
- package/src/codegen/cosmos/distribution/v1beta1/genesis.ts +752 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.lcd.ts +112 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.rpc.Query.ts +164 -0
- package/src/codegen/cosmos/distribution/v1beta1/query.ts +1300 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.rpc.msg.ts +113 -0
- package/src/codegen/cosmos/distribution/v1beta1/tx.ts +907 -0
- package/src/codegen/cosmos/evidence/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/evidence/v1beta1/evidence.ts +107 -0
- package/src/codegen/cosmos/evidence/v1beta1/genesis.ts +59 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.lcd.ts +49 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.rpc.Query.ts +51 -0
- package/src/codegen/cosmos/evidence/v1beta1/query.ts +278 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.rpc.msg.ts +27 -0
- package/src/codegen/cosmos/evidence/v1beta1/tx.ts +135 -0
- package/src/codegen/cosmos/feegrant/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/feegrant/v1beta1/feegrant.ts +368 -0
- package/src/codegen/cosmos/feegrant/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.lcd.ts +57 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.rpc.Query.ts +67 -0
- package/src/codegen/cosmos/feegrant/v1beta1/query.ts +424 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.rpc.msg.ts +54 -0
- package/src/codegen/cosmos/feegrant/v1beta1/tx.ts +355 -0
- package/src/codegen/cosmos/genutil/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/genutil/v1beta1/genesis.ts +58 -0
- package/src/codegen/cosmos/gov/module/v1/module.ts +75 -0
- package/src/codegen/cosmos/gov/v1/genesis.ts +203 -0
- package/src/codegen/cosmos/gov/v1/gov.ts +1353 -0
- package/src/codegen/cosmos/gov/v1/query.lcd.ts +123 -0
- package/src/codegen/cosmos/gov/v1/query.rpc.Query.ts +147 -0
- package/src/codegen/cosmos/gov/v1/query.ts +1210 -0
- package/src/codegen/cosmos/gov/v1/tx.rpc.msg.ts +96 -0
- package/src/codegen/cosmos/gov/v1/tx.ts +1040 -0
- package/src/codegen/cosmos/gov/v1beta1/genesis.ts +143 -0
- package/src/codegen/cosmos/gov/v1beta1/gov.ts +1020 -0
- package/src/codegen/cosmos/gov/v1beta1/query.lcd.ts +115 -0
- package/src/codegen/cosmos/gov/v1beta1/query.rpc.Query.ts +133 -0
- package/src/codegen/cosmos/gov/v1beta1/query.ts +1076 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.rpc.msg.ts +58 -0
- package/src/codegen/cosmos/gov/v1beta1/tx.ts +539 -0
- package/src/codegen/cosmos/group/module/v1/module.ts +79 -0
- package/src/codegen/cosmos/group/v1/events.ts +633 -0
- package/src/codegen/cosmos/group/v1/genesis.ts +166 -0
- package/src/codegen/cosmos/group/v1/query.lcd.ts +207 -0
- package/src/codegen/cosmos/group/v1/query.rpc.Query.ts +229 -0
- package/src/codegen/cosmos/group/v1/query.ts +1840 -0
- package/src/codegen/cosmos/group/v1/tx.rpc.msg.ts +154 -0
- package/src/codegen/cosmos/group/v1/tx.ts +2004 -0
- package/src/codegen/cosmos/group/v1/types.ts +1528 -0
- package/src/codegen/cosmos/lcd.ts +114 -0
- package/src/codegen/cosmos/mint/module/v1/module.ts +71 -0
- package/src/codegen/cosmos/mint/v1beta1/genesis.ts +73 -0
- package/src/codegen/cosmos/mint/v1beta1/mint.ts +198 -0
- package/src/codegen/cosmos/mint/v1beta1/query.lcd.ts +38 -0
- package/src/codegen/cosmos/mint/v1beta1/query.rpc.Query.ts +63 -0
- package/src/codegen/cosmos/mint/v1beta1/query.ts +309 -0
- package/src/codegen/cosmos/mint/v1beta1/tx.rpc.msg.ts +29 -0
- package/src/codegen/cosmos/mint/v1beta1/tx.ts +135 -0
- package/src/codegen/cosmos/msg/textual/v1/textual.ts +1 -0
- package/src/codegen/cosmos/msg/v1/msg.ts +1 -0
- package/src/codegen/cosmos/nft/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/nft/v1beta1/event.ts +268 -0
- package/src/codegen/cosmos/nft/v1beta1/genesis.ts +143 -0
- package/src/codegen/cosmos/nft/v1beta1/nft.ts +255 -0
- package/src/codegen/cosmos/nft/v1beta1/query.lcd.ts +98 -0
- package/src/codegen/cosmos/nft/v1beta1/query.rpc.Query.ts +124 -0
- package/src/codegen/cosmos/nft/v1beta1/query.ts +886 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.rpc.msg.ts +24 -0
- package/src/codegen/cosmos/nft/v1beta1/tx.ts +140 -0
- package/src/codegen/cosmos/orm/module/v1alpha1/module.ts +50 -0
- package/src/codegen/cosmos/orm/query/v1alpha1/query.rpc.Query.ts +49 -0
- package/src/codegen/cosmos/orm/query/v1alpha1/query.ts +640 -0
- package/src/codegen/cosmos/orm/v1/orm.ts +356 -0
- package/src/codegen/cosmos/orm/v1alpha1/schema.ts +232 -0
- package/src/codegen/cosmos/params/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/params/v1beta1/params.ts +166 -0
- package/src/codegen/cosmos/params/v1beta1/query.lcd.ts +45 -0
- package/src/codegen/cosmos/params/v1beta1/query.rpc.Query.ts +56 -0
- package/src/codegen/cosmos/params/v1beta1/query.ts +321 -0
- package/src/codegen/cosmos/query/v1/query.ts +1 -0
- package/src/codegen/cosmos/reflection/v1/reflection.ts +99 -0
- package/src/codegen/cosmos/rpc.query.ts +82 -0
- package/src/codegen/cosmos/rpc.tx.ts +61 -0
- package/src/codegen/cosmos/slashing/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/slashing/v1beta1/genesis.ts +309 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.lcd.ts +49 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.rpc.Query.ts +65 -0
- package/src/codegen/cosmos/slashing/v1beta1/query.ts +358 -0
- package/src/codegen/cosmos/slashing/v1beta1/slashing.ts +249 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.rpc.msg.ts +43 -0
- package/src/codegen/cosmos/slashing/v1beta1/tx.ts +230 -0
- package/src/codegen/cosmos/staking/module/v1/module.ts +104 -0
- package/src/codegen/cosmos/staking/v1beta1/authz.ts +244 -0
- package/src/codegen/cosmos/staking/v1beta1/genesis.ts +233 -0
- package/src/codegen/cosmos/staking/v1beta1/query.lcd.ts +220 -0
- package/src/codegen/cosmos/staking/v1beta1/query.rpc.Query.ts +260 -0
- package/src/codegen/cosmos/staking/v1beta1/query.ts +1910 -0
- package/src/codegen/cosmos/staking/v1beta1/staking.ts +2075 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.rpc.msg.ts +102 -0
- package/src/codegen/cosmos/staking/v1beta1/tx.ts +1039 -0
- package/src/codegen/cosmos/store/internal/kv/v1beta1/kv.ts +124 -0
- package/src/codegen/cosmos/store/snapshots/v1/snapshot.ts +564 -0
- package/src/codegen/cosmos/store/streaming/abci/grpc.ts +231 -0
- package/src/codegen/cosmos/store/v1beta1/commit_info.ts +234 -0
- package/src/codegen/cosmos/store/v1beta1/listening.ts +196 -0
- package/src/codegen/cosmos/tx/config/v1/config.ts +78 -0
- package/src/codegen/cosmos/tx/signing/v1beta1/signing.ts +487 -0
- package/src/codegen/cosmos/tx/v1beta1/service.lcd.ts +77 -0
- package/src/codegen/cosmos/tx/v1beta1/service.rpc.Service.ts +167 -0
- package/src/codegen/cosmos/tx/v1beta1/service.ts +1536 -0
- package/src/codegen/cosmos/tx/v1beta1/tx.ts +1331 -0
- package/src/codegen/cosmos/upgrade/module/v1/module.ts +58 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.lcd.ts +71 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.rpc.Query.ts +106 -0
- package/src/codegen/cosmos/upgrade/v1beta1/query.ts +617 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.rpc.msg.ts +43 -0
- package/src/codegen/cosmos/upgrade/v1beta1/tx.ts +241 -0
- package/src/codegen/cosmos/upgrade/v1beta1/upgrade.ts +403 -0
- package/src/codegen/cosmos/vesting/module/v1/module.ts +42 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.rpc.msg.ts +57 -0
- package/src/codegen/cosmos/vesting/v1beta1/tx.ts +445 -0
- package/src/codegen/cosmos/vesting/v1beta1/vesting.ts +473 -0
- package/src/codegen/cosmos_proto/bundle.ts +3 -0
- package/src/codegen/cosmos_proto/cosmos.ts +255 -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 +920 -0
- package/src/codegen/google/bundle.ts +16 -0
- package/src/codegen/google/protobuf/any.ts +260 -0
- package/src/codegen/google/protobuf/descriptor.ts +3697 -0
- package/src/codegen/google/protobuf/duration.ts +201 -0
- package/src/codegen/google/protobuf/timestamp.ts +247 -0
- package/src/codegen/helpers.ts +242 -0
- package/src/codegen/index.ts +13 -0
- package/src/codegen/tendermint/abci/types.ts +4487 -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 +372 -0
- package/src/codegen/tendermint/libs/bits/types.ts +77 -0
- package/src/codegen/tendermint/p2p/types.ts +350 -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 +544 -0
- package/src/codegen/tendermint/types/types.ts +1558 -0
- package/src/codegen/tendermint/types/validator.ts +286 -0
- package/src/codegen/tendermint/version/types.ts +152 -0
- package/src/codegen/zogux/accountplus/accountplus.ts +152 -0
- package/src/codegen/zogux/accountplus/genesis.ts +186 -0
- package/src/codegen/zogux/accountplus/models.ts +103 -0
- package/src/codegen/zogux/accountplus/params.ts +62 -0
- package/src/codegen/zogux/accountplus/query.lcd.ts +46 -0
- package/src/codegen/zogux/accountplus/query.rpc.Query.ts +77 -0
- package/src/codegen/zogux/accountplus/query.ts +455 -0
- package/src/codegen/zogux/accountplus/tx.rpc.msg.ts +47 -0
- package/src/codegen/zogux/accountplus/tx.ts +460 -0
- package/src/codegen/zogux/affiliates/affiliates.ts +425 -0
- package/src/codegen/zogux/affiliates/genesis.ts +73 -0
- package/src/codegen/zogux/affiliates/query.lcd.ts +62 -0
- package/src/codegen/zogux/affiliates/query.rpc.Query.ts +105 -0
- package/src/codegen/zogux/affiliates/query.ts +747 -0
- package/src/codegen/zogux/affiliates/tx.rpc.msg.ts +64 -0
- package/src/codegen/zogux/affiliates/tx.ts +553 -0
- package/src/codegen/zogux/assets/asset.ts +167 -0
- package/src/codegen/zogux/assets/genesis.ts +58 -0
- package/src/codegen/zogux/assets/query.lcd.ts +41 -0
- package/src/codegen/zogux/assets/query.rpc.Query.ts +51 -0
- package/src/codegen/zogux/assets/query.ts +238 -0
- package/src/codegen/zogux/assets/tx.ts +1 -0
- package/src/codegen/zogux/blocktime/blocktime.ts +203 -0
- package/src/codegen/zogux/blocktime/genesis.ts +58 -0
- package/src/codegen/zogux/blocktime/params.ts +125 -0
- package/src/codegen/zogux/blocktime/query.lcd.ts +38 -0
- package/src/codegen/zogux/blocktime/query.rpc.Query.ts +77 -0
- package/src/codegen/zogux/blocktime/query.ts +428 -0
- package/src/codegen/zogux/blocktime/tx.rpc.msg.ts +34 -0
- package/src/codegen/zogux/blocktime/tx.ts +233 -0
- package/src/codegen/zogux/bridge/bridge_event.ts +171 -0
- package/src/codegen/zogux/bridge/bridge_event_info.ts +81 -0
- package/src/codegen/zogux/bridge/events.ts +434 -0
- package/src/codegen/zogux/bridge/genesis.ts +131 -0
- package/src/codegen/zogux/bridge/params.ts +404 -0
- package/src/codegen/zogux/bridge/query.lcd.ts +162 -0
- package/src/codegen/zogux/bridge/query.rpc.Query.ts +249 -0
- package/src/codegen/zogux/bridge/query.ts +1342 -0
- package/src/codegen/zogux/bridge/token.ts +1030 -0
- package/src/codegen/zogux/bridge/tss.ts +883 -0
- package/src/codegen/zogux/bridge/tx.rpc.msg.ts +159 -0
- package/src/codegen/zogux/bridge/tx.ts +542 -0
- package/src/codegen/zogux/bridge/withdrawal.ts +306 -0
- package/src/codegen/zogux/bundle.ts +441 -0
- package/src/codegen/zogux/clob/block_rate_limit_config.ts +216 -0
- package/src/codegen/zogux/clob/clob_pair.ts +396 -0
- package/src/codegen/zogux/clob/equity_tier_limit_config.ts +154 -0
- package/src/codegen/zogux/clob/finalize_block.ts +65 -0
- package/src/codegen/zogux/clob/genesis.ts +97 -0
- package/src/codegen/zogux/clob/liquidations.ts +288 -0
- package/src/codegen/zogux/clob/liquidations_config.ts +358 -0
- package/src/codegen/zogux/clob/matches.ts +552 -0
- package/src/codegen/zogux/clob/mev.ts +525 -0
- package/src/codegen/zogux/clob/operation.ts +200 -0
- package/src/codegen/zogux/clob/order.ts +1538 -0
- package/src/codegen/zogux/clob/order_removals.ts +228 -0
- package/src/codegen/zogux/clob/process_proposer_matches_events.ts +176 -0
- package/src/codegen/zogux/clob/query.lcd.ts +81 -0
- package/src/codegen/zogux/clob/query.rpc.Query.ts +166 -0
- package/src/codegen/zogux/clob/query.ts +1945 -0
- package/src/codegen/zogux/clob/streaming.ts +96 -0
- package/src/codegen/zogux/clob/tx.rpc.msg.ts +131 -0
- package/src/codegen/zogux/clob/tx.ts +1472 -0
- package/src/codegen/zogux/daemons/bridge/bridge.ts +104 -0
- package/src/codegen/zogux/daemons/liquidation/liquidation.ts +156 -0
- package/src/codegen/zogux/daemons/pricefeed/price_feed.ts +244 -0
- package/src/codegen/zogux/delaymsg/block_message_ids.ts +79 -0
- package/src/codegen/zogux/delaymsg/delayed_message.ts +87 -0
- package/src/codegen/zogux/delaymsg/genesis.ts +73 -0
- package/src/codegen/zogux/delaymsg/query.lcd.ts +38 -0
- package/src/codegen/zogux/delaymsg/query.rpc.Query.ts +63 -0
- package/src/codegen/zogux/delaymsg/query.ts +364 -0
- package/src/codegen/zogux/delaymsg/tx.rpc.msg.ts +27 -0
- package/src/codegen/zogux/delaymsg/tx.ts +142 -0
- package/src/codegen/zogux/epochs/epoch_info.ts +167 -0
- package/src/codegen/zogux/epochs/genesis.ts +58 -0
- package/src/codegen/zogux/epochs/query.lcd.ts +41 -0
- package/src/codegen/zogux/epochs/query.rpc.Query.ts +51 -0
- package/src/codegen/zogux/epochs/query.ts +237 -0
- package/src/codegen/zogux/feetiers/genesis.ts +74 -0
- package/src/codegen/zogux/feetiers/params.ts +184 -0
- package/src/codegen/zogux/feetiers/per_market_fee_discount.ts +111 -0
- package/src/codegen/zogux/feetiers/query.lcd.ts +71 -0
- package/src/codegen/zogux/feetiers/query.rpc.Query.ts +108 -0
- package/src/codegen/zogux/feetiers/query.ts +715 -0
- package/src/codegen/zogux/feetiers/staking_tier.ts +151 -0
- package/src/codegen/zogux/feetiers/tx.rpc.msg.ts +47 -0
- package/src/codegen/zogux/feetiers/tx.ts +351 -0
- package/src/codegen/zogux/govplus/genesis.ts +42 -0
- package/src/codegen/zogux/govplus/query.rpc.Query.ts +18 -0
- package/src/codegen/zogux/govplus/query.ts +1 -0
- package/src/codegen/zogux/govplus/tx.rpc.msg.ts +27 -0
- package/src/codegen/zogux/govplus/tx.ts +173 -0
- package/src/codegen/zogux/indexer/events/events.ts +4292 -0
- package/src/codegen/zogux/indexer/indexer_manager/event.ts +428 -0
- package/src/codegen/zogux/indexer/off_chain_updates/off_chain_updates.ts +594 -0
- package/src/codegen/zogux/indexer/protocol/v1/clob.ts +887 -0
- package/src/codegen/zogux/indexer/protocol/v1/perpetual.ts +52 -0
- package/src/codegen/zogux/indexer/protocol/v1/subaccount.ts +281 -0
- package/src/codegen/zogux/indexer/protocol/v1/vault.ts +69 -0
- package/src/codegen/zogux/indexer/redis/redis_order.ts +190 -0
- package/src/codegen/zogux/indexer/shared/removal_reason.ts +216 -0
- package/src/codegen/zogux/indexer/socks/messages.ts +656 -0
- package/src/codegen/zogux/lcd.ts +176 -0
- package/src/codegen/zogux/listing/genesis.ts +76 -0
- package/src/codegen/zogux/listing/params.ts +89 -0
- package/src/codegen/zogux/listing/query.lcd.ts +30 -0
- package/src/codegen/zogux/listing/query.rpc.Query.ts +49 -0
- package/src/codegen/zogux/listing/query.ts +194 -0
- package/src/codegen/zogux/listing/tx.rpc.msg.ts +57 -0
- package/src/codegen/zogux/listing/tx.ts +483 -0
- package/src/codegen/zogux/perpetuals/genesis.ts +83 -0
- package/src/codegen/zogux/perpetuals/params.ts +97 -0
- package/src/codegen/zogux/perpetuals/perpetual.ts +660 -0
- package/src/codegen/zogux/perpetuals/query.lcd.ts +91 -0
- package/src/codegen/zogux/perpetuals/query.rpc.Query.ts +123 -0
- package/src/codegen/zogux/perpetuals/query.ts +765 -0
- package/src/codegen/zogux/perpetuals/tx.rpc.msg.ts +70 -0
- package/src/codegen/zogux/perpetuals/tx.ts +649 -0
- package/src/codegen/zogux/prices/genesis.ts +71 -0
- package/src/codegen/zogux/prices/market_param.ts +162 -0
- package/src/codegen/zogux/prices/market_price.ts +95 -0
- package/src/codegen/zogux/prices/query.lcd.ts +75 -0
- package/src/codegen/zogux/prices/query.rpc.Query.ts +95 -0
- package/src/codegen/zogux/prices/query.ts +630 -0
- package/src/codegen/zogux/prices/streaming.ts +87 -0
- package/src/codegen/zogux/prices/tx.rpc.msg.ts +50 -0
- package/src/codegen/zogux/prices/tx.ts +405 -0
- package/src/codegen/zogux/ratelimit/capacity.ts +147 -0
- package/src/codegen/zogux/ratelimit/genesis.ts +59 -0
- package/src/codegen/zogux/ratelimit/limit_params.ts +174 -0
- package/src/codegen/zogux/ratelimit/pending_send_packet.ts +75 -0
- package/src/codegen/zogux/ratelimit/query.lcd.ts +46 -0
- package/src/codegen/zogux/ratelimit/query.rpc.Query.ts +63 -0
- package/src/codegen/zogux/ratelimit/query.ts +333 -0
- package/src/codegen/zogux/ratelimit/tx.rpc.msg.ts +24 -0
- package/src/codegen/zogux/ratelimit/tx.ts +112 -0
- package/src/codegen/zogux/revshare/genesis.ts +58 -0
- package/src/codegen/zogux/revshare/params.ts +93 -0
- package/src/codegen/zogux/revshare/query.lcd.ts +47 -0
- package/src/codegen/zogux/revshare/query.rpc.Query.ts +80 -0
- package/src/codegen/zogux/revshare/query.ts +415 -0
- package/src/codegen/zogux/revshare/revshare.ts +266 -0
- package/src/codegen/zogux/revshare/tx.rpc.msg.ts +60 -0
- package/src/codegen/zogux/revshare/tx.ts +462 -0
- package/src/codegen/zogux/rewards/genesis.ts +59 -0
- package/src/codegen/zogux/rewards/params.ts +122 -0
- package/src/codegen/zogux/rewards/query.lcd.ts +22 -0
- package/src/codegen/zogux/rewards/query.rpc.Query.ts +35 -0
- package/src/codegen/zogux/rewards/query.ts +98 -0
- package/src/codegen/zogux/rewards/reward_share.ts +75 -0
- package/src/codegen/zogux/rewards/tx.rpc.msg.ts +24 -0
- package/src/codegen/zogux/rewards/tx.ts +112 -0
- package/src/codegen/zogux/rpc.query.ts +106 -0
- package/src/codegen/zogux/rpc.tx.ts +82 -0
- package/src/codegen/zogux/sending/genesis.ts +42 -0
- package/src/codegen/zogux/sending/query.rpc.Query.ts +18 -0
- package/src/codegen/zogux/sending/query.ts +1 -0
- package/src/codegen/zogux/sending/transfer.ts +420 -0
- package/src/codegen/zogux/sending/tx.rpc.msg.ts +64 -0
- package/src/codegen/zogux/sending/tx.ts +237 -0
- package/src/codegen/zogux/stats/genesis.ts +59 -0
- package/src/codegen/zogux/stats/params.ts +59 -0
- package/src/codegen/zogux/stats/query.lcd.ts +54 -0
- package/src/codegen/zogux/stats/query.rpc.Query.ts +77 -0
- package/src/codegen/zogux/stats/query.ts +412 -0
- package/src/codegen/zogux/stats/stats.ts +593 -0
- package/src/codegen/zogux/stats/tx.rpc.msg.ts +24 -0
- package/src/codegen/zogux/stats/tx.ts +112 -0
- package/src/codegen/zogux/subaccounts/asset_position.ts +96 -0
- package/src/codegen/zogux/subaccounts/genesis.ts +58 -0
- package/src/codegen/zogux/subaccounts/leverage.ts +134 -0
- package/src/codegen/zogux/subaccounts/perpetual_position.ts +109 -0
- package/src/codegen/zogux/subaccounts/query.lcd.ts +58 -0
- package/src/codegen/zogux/subaccounts/query.rpc.Query.ts +82 -0
- package/src/codegen/zogux/subaccounts/query.ts +527 -0
- package/src/codegen/zogux/subaccounts/streaming.ts +266 -0
- package/src/codegen/zogux/subaccounts/subaccount.ts +190 -0
- package/src/codegen/zogux/token/genesis.ts +73 -0
- package/src/codegen/zogux/token/params.ts +196 -0
- package/src/codegen/zogux/token/query.lcd.ts +38 -0
- package/src/codegen/zogux/token/query.rpc.Query.ts +63 -0
- package/src/codegen/zogux/token/query.ts +342 -0
- package/src/codegen/zogux/token/tx.rpc.msg.ts +84 -0
- package/src/codegen/zogux/token/tx.ts +828 -0
- package/src/codegen/zogux/vault/genesis.ts +433 -0
- package/src/codegen/zogux/vault/params.ts +523 -0
- package/src/codegen/zogux/vault/query.lcd.ts +91 -0
- package/src/codegen/zogux/vault/query.rpc.Query.ts +137 -0
- package/src/codegen/zogux/vault/query.ts +1162 -0
- package/src/codegen/zogux/vault/share.ts +271 -0
- package/src/codegen/zogux/vault/tx.rpc.msg.ts +97 -0
- package/src/codegen/zogux/vault/tx.ts +1189 -0
- package/src/codegen/zogux/vault/vault.ts +185 -0
- package/src/codegen/zogux/vest/genesis.ts +59 -0
- package/src/codegen/zogux/vest/query.lcd.ts +30 -0
- package/src/codegen/zogux/vest/query.rpc.Query.ts +35 -0
- package/src/codegen/zogux/vest/query.ts +114 -0
- package/src/codegen/zogux/vest/tx.rpc.msg.ts +34 -0
- package/src/codegen/zogux/vest/tx.ts +223 -0
- package/src/codegen/zogux/vest/vest_entry.ts +127 -0
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
|
2
|
+
import { Params, ParamsSDKType, ValidatorSigningInfo, ValidatorSigningInfoSDKType } from "./slashing";
|
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
|
4
|
+
import { DeepPartial } from "../../../helpers";
|
|
5
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method */
|
|
6
|
+
|
|
7
|
+
export interface QueryParamsRequest {}
|
|
8
|
+
/** QueryParamsRequest is the request type for the Query/Params RPC method */
|
|
9
|
+
|
|
10
|
+
export interface QueryParamsRequestSDKType {}
|
|
11
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method */
|
|
12
|
+
|
|
13
|
+
export interface QueryParamsResponse {
|
|
14
|
+
params?: Params;
|
|
15
|
+
}
|
|
16
|
+
/** QueryParamsResponse is the response type for the Query/Params RPC method */
|
|
17
|
+
|
|
18
|
+
export interface QueryParamsResponseSDKType {
|
|
19
|
+
params?: ParamsSDKType;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC
|
|
23
|
+
* method
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
export interface QuerySigningInfoRequest {
|
|
27
|
+
/** cons_address is the address to query signing info of */
|
|
28
|
+
consAddress: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC
|
|
32
|
+
* method
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
export interface QuerySigningInfoRequestSDKType {
|
|
36
|
+
cons_address: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC
|
|
40
|
+
* method
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
export interface QuerySigningInfoResponse {
|
|
44
|
+
/** val_signing_info is the signing info of requested val cons address */
|
|
45
|
+
valSigningInfo?: ValidatorSigningInfo;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC
|
|
49
|
+
* method
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
export interface QuerySigningInfoResponseSDKType {
|
|
53
|
+
val_signing_info?: ValidatorSigningInfoSDKType;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC
|
|
57
|
+
* method
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
export interface QuerySigningInfosRequest {
|
|
61
|
+
pagination?: PageRequest;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC
|
|
65
|
+
* method
|
|
66
|
+
*/
|
|
67
|
+
|
|
68
|
+
export interface QuerySigningInfosRequestSDKType {
|
|
69
|
+
pagination?: PageRequestSDKType;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC
|
|
73
|
+
* method
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
export interface QuerySigningInfosResponse {
|
|
77
|
+
/** info is the signing info of all validators */
|
|
78
|
+
info: ValidatorSigningInfo[];
|
|
79
|
+
pagination?: PageResponse;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC
|
|
83
|
+
* method
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
export interface QuerySigningInfosResponseSDKType {
|
|
87
|
+
info: ValidatorSigningInfoSDKType[];
|
|
88
|
+
pagination?: PageResponseSDKType;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function createBaseQueryParamsRequest(): QueryParamsRequest {
|
|
92
|
+
return {};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export const QueryParamsRequest = {
|
|
96
|
+
encode(_: QueryParamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
97
|
+
return writer;
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest {
|
|
101
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
102
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
103
|
+
const message = createBaseQueryParamsRequest();
|
|
104
|
+
|
|
105
|
+
while (reader.pos < end) {
|
|
106
|
+
const tag = reader.uint32();
|
|
107
|
+
|
|
108
|
+
switch (tag >>> 3) {
|
|
109
|
+
default:
|
|
110
|
+
reader.skipType(tag & 7);
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
fromPartial(_: DeepPartial<QueryParamsRequest>): QueryParamsRequest {
|
|
119
|
+
const message = createBaseQueryParamsRequest();
|
|
120
|
+
return message;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
function createBaseQueryParamsResponse(): QueryParamsResponse {
|
|
126
|
+
return {
|
|
127
|
+
params: undefined
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export const QueryParamsResponse = {
|
|
132
|
+
encode(message: QueryParamsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
133
|
+
if (message.params !== undefined) {
|
|
134
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
return writer;
|
|
138
|
+
},
|
|
139
|
+
|
|
140
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse {
|
|
141
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
142
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
143
|
+
const message = createBaseQueryParamsResponse();
|
|
144
|
+
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
|
|
148
|
+
switch (tag >>> 3) {
|
|
149
|
+
case 1:
|
|
150
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
151
|
+
break;
|
|
152
|
+
|
|
153
|
+
default:
|
|
154
|
+
reader.skipType(tag & 7);
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return message;
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse {
|
|
163
|
+
const message = createBaseQueryParamsResponse();
|
|
164
|
+
message.params = object.params !== undefined && object.params !== null ? Params.fromPartial(object.params) : undefined;
|
|
165
|
+
return message;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
function createBaseQuerySigningInfoRequest(): QuerySigningInfoRequest {
|
|
171
|
+
return {
|
|
172
|
+
consAddress: ""
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export const QuerySigningInfoRequest = {
|
|
177
|
+
encode(message: QuerySigningInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
178
|
+
if (message.consAddress !== "") {
|
|
179
|
+
writer.uint32(10).string(message.consAddress);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return writer;
|
|
183
|
+
},
|
|
184
|
+
|
|
185
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoRequest {
|
|
186
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
187
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
188
|
+
const message = createBaseQuerySigningInfoRequest();
|
|
189
|
+
|
|
190
|
+
while (reader.pos < end) {
|
|
191
|
+
const tag = reader.uint32();
|
|
192
|
+
|
|
193
|
+
switch (tag >>> 3) {
|
|
194
|
+
case 1:
|
|
195
|
+
message.consAddress = reader.string();
|
|
196
|
+
break;
|
|
197
|
+
|
|
198
|
+
default:
|
|
199
|
+
reader.skipType(tag & 7);
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return message;
|
|
205
|
+
},
|
|
206
|
+
|
|
207
|
+
fromPartial(object: DeepPartial<QuerySigningInfoRequest>): QuerySigningInfoRequest {
|
|
208
|
+
const message = createBaseQuerySigningInfoRequest();
|
|
209
|
+
message.consAddress = object.consAddress ?? "";
|
|
210
|
+
return message;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
function createBaseQuerySigningInfoResponse(): QuerySigningInfoResponse {
|
|
216
|
+
return {
|
|
217
|
+
valSigningInfo: undefined
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export const QuerySigningInfoResponse = {
|
|
222
|
+
encode(message: QuerySigningInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
223
|
+
if (message.valSigningInfo !== undefined) {
|
|
224
|
+
ValidatorSigningInfo.encode(message.valSigningInfo, writer.uint32(10).fork()).ldelim();
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
return writer;
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfoResponse {
|
|
231
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
232
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
|
+
const message = createBaseQuerySigningInfoResponse();
|
|
234
|
+
|
|
235
|
+
while (reader.pos < end) {
|
|
236
|
+
const tag = reader.uint32();
|
|
237
|
+
|
|
238
|
+
switch (tag >>> 3) {
|
|
239
|
+
case 1:
|
|
240
|
+
message.valSigningInfo = ValidatorSigningInfo.decode(reader, reader.uint32());
|
|
241
|
+
break;
|
|
242
|
+
|
|
243
|
+
default:
|
|
244
|
+
reader.skipType(tag & 7);
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return message;
|
|
250
|
+
},
|
|
251
|
+
|
|
252
|
+
fromPartial(object: DeepPartial<QuerySigningInfoResponse>): QuerySigningInfoResponse {
|
|
253
|
+
const message = createBaseQuerySigningInfoResponse();
|
|
254
|
+
message.valSigningInfo = object.valSigningInfo !== undefined && object.valSigningInfo !== null ? ValidatorSigningInfo.fromPartial(object.valSigningInfo) : undefined;
|
|
255
|
+
return message;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
function createBaseQuerySigningInfosRequest(): QuerySigningInfosRequest {
|
|
261
|
+
return {
|
|
262
|
+
pagination: undefined
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export const QuerySigningInfosRequest = {
|
|
267
|
+
encode(message: QuerySigningInfosRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
268
|
+
if (message.pagination !== undefined) {
|
|
269
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
return writer;
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosRequest {
|
|
276
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
277
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
278
|
+
const message = createBaseQuerySigningInfosRequest();
|
|
279
|
+
|
|
280
|
+
while (reader.pos < end) {
|
|
281
|
+
const tag = reader.uint32();
|
|
282
|
+
|
|
283
|
+
switch (tag >>> 3) {
|
|
284
|
+
case 1:
|
|
285
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
286
|
+
break;
|
|
287
|
+
|
|
288
|
+
default:
|
|
289
|
+
reader.skipType(tag & 7);
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
return message;
|
|
295
|
+
},
|
|
296
|
+
|
|
297
|
+
fromPartial(object: DeepPartial<QuerySigningInfosRequest>): QuerySigningInfosRequest {
|
|
298
|
+
const message = createBaseQuerySigningInfosRequest();
|
|
299
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
300
|
+
return message;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
function createBaseQuerySigningInfosResponse(): QuerySigningInfosResponse {
|
|
306
|
+
return {
|
|
307
|
+
info: [],
|
|
308
|
+
pagination: undefined
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export const QuerySigningInfosResponse = {
|
|
313
|
+
encode(message: QuerySigningInfosResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
314
|
+
for (const v of message.info) {
|
|
315
|
+
ValidatorSigningInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (message.pagination !== undefined) {
|
|
319
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return writer;
|
|
323
|
+
},
|
|
324
|
+
|
|
325
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuerySigningInfosResponse {
|
|
326
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
327
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
328
|
+
const message = createBaseQuerySigningInfosResponse();
|
|
329
|
+
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
const tag = reader.uint32();
|
|
332
|
+
|
|
333
|
+
switch (tag >>> 3) {
|
|
334
|
+
case 1:
|
|
335
|
+
message.info.push(ValidatorSigningInfo.decode(reader, reader.uint32()));
|
|
336
|
+
break;
|
|
337
|
+
|
|
338
|
+
case 2:
|
|
339
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
340
|
+
break;
|
|
341
|
+
|
|
342
|
+
default:
|
|
343
|
+
reader.skipType(tag & 7);
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
return message;
|
|
349
|
+
},
|
|
350
|
+
|
|
351
|
+
fromPartial(object: DeepPartial<QuerySigningInfosResponse>): QuerySigningInfosResponse {
|
|
352
|
+
const message = createBaseQuerySigningInfosResponse();
|
|
353
|
+
message.info = object.info?.map(e => ValidatorSigningInfo.fromPartial(e)) || [];
|
|
354
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
355
|
+
return message;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { Timestamp } from "../../../google/protobuf/timestamp";
|
|
2
|
+
import { Duration, DurationSDKType } from "../../../google/protobuf/duration";
|
|
3
|
+
import { Long, toTimestamp, fromTimestamp, DeepPartial } from "../../../helpers";
|
|
4
|
+
import * as _m0 from "protobufjs/minimal";
|
|
5
|
+
/**
|
|
6
|
+
* ValidatorSigningInfo defines a validator's signing info for monitoring their
|
|
7
|
+
* liveness activity.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export interface ValidatorSigningInfo {
|
|
11
|
+
address: string;
|
|
12
|
+
/** Height at which validator was first a candidate OR was un-jailed */
|
|
13
|
+
|
|
14
|
+
startHeight: Long;
|
|
15
|
+
/**
|
|
16
|
+
* Index which is incremented every time a validator is bonded in a block and
|
|
17
|
+
* _may_ have signed a pre-commit or not. This in conjunction with the
|
|
18
|
+
* signed_blocks_window param determines the index in the missed block bitmap.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
indexOffset: Long;
|
|
22
|
+
/** Timestamp until which the validator is jailed due to liveness downtime. */
|
|
23
|
+
|
|
24
|
+
jailedUntil?: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Whether or not a validator has been tombstoned (killed out of validator
|
|
27
|
+
* set). It is set once the validator commits an equivocation or for any other
|
|
28
|
+
* configured misbehavior.
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
tombstoned: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* A counter of missed (unsigned) blocks. It is used to avoid unnecessary
|
|
34
|
+
* reads in the missed block bitmap.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
missedBlocksCounter: Long;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* ValidatorSigningInfo defines a validator's signing info for monitoring their
|
|
41
|
+
* liveness activity.
|
|
42
|
+
*/
|
|
43
|
+
|
|
44
|
+
export interface ValidatorSigningInfoSDKType {
|
|
45
|
+
address: string;
|
|
46
|
+
start_height: Long;
|
|
47
|
+
index_offset: Long;
|
|
48
|
+
jailed_until?: Date;
|
|
49
|
+
tombstoned: boolean;
|
|
50
|
+
missed_blocks_counter: Long;
|
|
51
|
+
}
|
|
52
|
+
/** Params represents the parameters used for by the slashing module. */
|
|
53
|
+
|
|
54
|
+
export interface Params {
|
|
55
|
+
signedBlocksWindow: Long;
|
|
56
|
+
minSignedPerWindow: Uint8Array;
|
|
57
|
+
downtimeJailDuration?: Duration;
|
|
58
|
+
slashFractionDoubleSign: Uint8Array;
|
|
59
|
+
slashFractionDowntime: Uint8Array;
|
|
60
|
+
}
|
|
61
|
+
/** Params represents the parameters used for by the slashing module. */
|
|
62
|
+
|
|
63
|
+
export interface ParamsSDKType {
|
|
64
|
+
signed_blocks_window: Long;
|
|
65
|
+
min_signed_per_window: Uint8Array;
|
|
66
|
+
downtime_jail_duration?: DurationSDKType;
|
|
67
|
+
slash_fraction_double_sign: Uint8Array;
|
|
68
|
+
slash_fraction_downtime: Uint8Array;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function createBaseValidatorSigningInfo(): ValidatorSigningInfo {
|
|
72
|
+
return {
|
|
73
|
+
address: "",
|
|
74
|
+
startHeight: Long.ZERO,
|
|
75
|
+
indexOffset: Long.ZERO,
|
|
76
|
+
jailedUntil: undefined,
|
|
77
|
+
tombstoned: false,
|
|
78
|
+
missedBlocksCounter: Long.ZERO
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const ValidatorSigningInfo = {
|
|
83
|
+
encode(message: ValidatorSigningInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
84
|
+
if (message.address !== "") {
|
|
85
|
+
writer.uint32(10).string(message.address);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (!message.startHeight.isZero()) {
|
|
89
|
+
writer.uint32(16).int64(message.startHeight);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (!message.indexOffset.isZero()) {
|
|
93
|
+
writer.uint32(24).int64(message.indexOffset);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (message.jailedUntil !== undefined) {
|
|
97
|
+
Timestamp.encode(toTimestamp(message.jailedUntil), writer.uint32(34).fork()).ldelim();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (message.tombstoned === true) {
|
|
101
|
+
writer.uint32(40).bool(message.tombstoned);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (!message.missedBlocksCounter.isZero()) {
|
|
105
|
+
writer.uint32(48).int64(message.missedBlocksCounter);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return writer;
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSigningInfo {
|
|
112
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
113
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
114
|
+
const message = createBaseValidatorSigningInfo();
|
|
115
|
+
|
|
116
|
+
while (reader.pos < end) {
|
|
117
|
+
const tag = reader.uint32();
|
|
118
|
+
|
|
119
|
+
switch (tag >>> 3) {
|
|
120
|
+
case 1:
|
|
121
|
+
message.address = reader.string();
|
|
122
|
+
break;
|
|
123
|
+
|
|
124
|
+
case 2:
|
|
125
|
+
message.startHeight = (reader.int64() as Long);
|
|
126
|
+
break;
|
|
127
|
+
|
|
128
|
+
case 3:
|
|
129
|
+
message.indexOffset = (reader.int64() as Long);
|
|
130
|
+
break;
|
|
131
|
+
|
|
132
|
+
case 4:
|
|
133
|
+
message.jailedUntil = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
134
|
+
break;
|
|
135
|
+
|
|
136
|
+
case 5:
|
|
137
|
+
message.tombstoned = reader.bool();
|
|
138
|
+
break;
|
|
139
|
+
|
|
140
|
+
case 6:
|
|
141
|
+
message.missedBlocksCounter = (reader.int64() as Long);
|
|
142
|
+
break;
|
|
143
|
+
|
|
144
|
+
default:
|
|
145
|
+
reader.skipType(tag & 7);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return message;
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
fromPartial(object: DeepPartial<ValidatorSigningInfo>): ValidatorSigningInfo {
|
|
154
|
+
const message = createBaseValidatorSigningInfo();
|
|
155
|
+
message.address = object.address ?? "";
|
|
156
|
+
message.startHeight = object.startHeight !== undefined && object.startHeight !== null ? Long.fromValue(object.startHeight) : Long.ZERO;
|
|
157
|
+
message.indexOffset = object.indexOffset !== undefined && object.indexOffset !== null ? Long.fromValue(object.indexOffset) : Long.ZERO;
|
|
158
|
+
message.jailedUntil = object.jailedUntil ?? undefined;
|
|
159
|
+
message.tombstoned = object.tombstoned ?? false;
|
|
160
|
+
message.missedBlocksCounter = object.missedBlocksCounter !== undefined && object.missedBlocksCounter !== null ? Long.fromValue(object.missedBlocksCounter) : Long.ZERO;
|
|
161
|
+
return message;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
function createBaseParams(): Params {
|
|
167
|
+
return {
|
|
168
|
+
signedBlocksWindow: Long.ZERO,
|
|
169
|
+
minSignedPerWindow: new Uint8Array(),
|
|
170
|
+
downtimeJailDuration: undefined,
|
|
171
|
+
slashFractionDoubleSign: new Uint8Array(),
|
|
172
|
+
slashFractionDowntime: new Uint8Array()
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export const Params = {
|
|
177
|
+
encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
178
|
+
if (!message.signedBlocksWindow.isZero()) {
|
|
179
|
+
writer.uint32(8).int64(message.signedBlocksWindow);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (message.minSignedPerWindow.length !== 0) {
|
|
183
|
+
writer.uint32(18).bytes(message.minSignedPerWindow);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (message.downtimeJailDuration !== undefined) {
|
|
187
|
+
Duration.encode(message.downtimeJailDuration, writer.uint32(26).fork()).ldelim();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (message.slashFractionDoubleSign.length !== 0) {
|
|
191
|
+
writer.uint32(34).bytes(message.slashFractionDoubleSign);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (message.slashFractionDowntime.length !== 0) {
|
|
195
|
+
writer.uint32(42).bytes(message.slashFractionDowntime);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return writer;
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Params {
|
|
202
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
203
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
204
|
+
const message = createBaseParams();
|
|
205
|
+
|
|
206
|
+
while (reader.pos < end) {
|
|
207
|
+
const tag = reader.uint32();
|
|
208
|
+
|
|
209
|
+
switch (tag >>> 3) {
|
|
210
|
+
case 1:
|
|
211
|
+
message.signedBlocksWindow = (reader.int64() as Long);
|
|
212
|
+
break;
|
|
213
|
+
|
|
214
|
+
case 2:
|
|
215
|
+
message.minSignedPerWindow = reader.bytes();
|
|
216
|
+
break;
|
|
217
|
+
|
|
218
|
+
case 3:
|
|
219
|
+
message.downtimeJailDuration = Duration.decode(reader, reader.uint32());
|
|
220
|
+
break;
|
|
221
|
+
|
|
222
|
+
case 4:
|
|
223
|
+
message.slashFractionDoubleSign = reader.bytes();
|
|
224
|
+
break;
|
|
225
|
+
|
|
226
|
+
case 5:
|
|
227
|
+
message.slashFractionDowntime = reader.bytes();
|
|
228
|
+
break;
|
|
229
|
+
|
|
230
|
+
default:
|
|
231
|
+
reader.skipType(tag & 7);
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
fromPartial(object: DeepPartial<Params>): Params {
|
|
240
|
+
const message = createBaseParams();
|
|
241
|
+
message.signedBlocksWindow = object.signedBlocksWindow !== undefined && object.signedBlocksWindow !== null ? Long.fromValue(object.signedBlocksWindow) : Long.ZERO;
|
|
242
|
+
message.minSignedPerWindow = object.minSignedPerWindow ?? new Uint8Array();
|
|
243
|
+
message.downtimeJailDuration = object.downtimeJailDuration !== undefined && object.downtimeJailDuration !== null ? Duration.fromPartial(object.downtimeJailDuration) : undefined;
|
|
244
|
+
message.slashFractionDoubleSign = object.slashFractionDoubleSign ?? new Uint8Array();
|
|
245
|
+
message.slashFractionDowntime = object.slashFractionDowntime ?? new Uint8Array();
|
|
246
|
+
return message;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Rpc } from "../../../helpers";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { MsgUnjail, MsgUnjailResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
|
|
4
|
+
/** Msg defines the slashing Msg service. */
|
|
5
|
+
|
|
6
|
+
export interface Msg {
|
|
7
|
+
/**
|
|
8
|
+
* Unjail defines a method for unjailing a jailed validator, thus returning
|
|
9
|
+
* them into the bonded validator set, so they can begin receiving provisions
|
|
10
|
+
* and rewards again.
|
|
11
|
+
*/
|
|
12
|
+
unjail(request: MsgUnjail): Promise<MsgUnjailResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* UpdateParams defines a governance operation for updating the x/slashing module
|
|
15
|
+
* parameters. The authority defaults to the x/gov module account.
|
|
16
|
+
*
|
|
17
|
+
* Since: cosmos-sdk 0.47
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
|
|
21
|
+
}
|
|
22
|
+
export class MsgClientImpl implements Msg {
|
|
23
|
+
private readonly rpc: Rpc;
|
|
24
|
+
|
|
25
|
+
constructor(rpc: Rpc) {
|
|
26
|
+
this.rpc = rpc;
|
|
27
|
+
this.unjail = this.unjail.bind(this);
|
|
28
|
+
this.updateParams = this.updateParams.bind(this);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
unjail(request: MsgUnjail): Promise<MsgUnjailResponse> {
|
|
32
|
+
const data = MsgUnjail.encode(request).finish();
|
|
33
|
+
const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "Unjail", data);
|
|
34
|
+
return promise.then(data => MsgUnjailResponse.decode(new _m0.Reader(data)));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse> {
|
|
38
|
+
const data = MsgUpdateParams.encode(request).finish();
|
|
39
|
+
const promise = this.rpc.request("cosmos.slashing.v1beta1.Msg", "UpdateParams", data);
|
|
40
|
+
return promise.then(data => MsgUpdateParamsResponse.decode(new _m0.Reader(data)));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
}
|