@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
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<p align="center"><img src="https://zogux.exchange/icon.svg?" width="256" /></p>
|
|
2
|
+
|
|
3
|
+
<h1 align="center">proto-js</h1>
|
|
4
|
+
|
|
5
|
+
<div align="center">
|
|
6
|
+
<a href='https://www.npmjs.com/package/@zoguxprotocol/proto'>
|
|
7
|
+
<img src='https://img.shields.io/npm/v/@zoguxprotocol/proto.svg' alt='npm'/>
|
|
8
|
+
</a>
|
|
9
|
+
<a href='https://github.com/zoguxprotocol/zogux-chain/blob/main/proto-js/LICENSE'>
|
|
10
|
+
<img src='https://img.shields.io/badge/License-AGPL_v3-blue.svg' alt='License' />
|
|
11
|
+
</a>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
Generated Javascript package for Zogux Chain protobufs.
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@zoguxprotocol/proto",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"access": "public",
|
|
5
|
+
"description": "Protos for Zogux protocol",
|
|
6
|
+
"author": "Zogux Trading Inc.",
|
|
7
|
+
"homepage": "https://github.com/zoguxprotocol/zogux-chain",
|
|
8
|
+
"license": "AGPL-3.0",
|
|
9
|
+
"main": "main/index.js",
|
|
10
|
+
"module": "module/index.js",
|
|
11
|
+
"typings": "types/index.d.ts",
|
|
12
|
+
"directories": {
|
|
13
|
+
"lib": "src"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"types",
|
|
17
|
+
"src",
|
|
18
|
+
"main",
|
|
19
|
+
"module"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc --project ./tsconfig.json",
|
|
23
|
+
"_comment": "In codegen we delete autocli because it has some proto map field code that doesn't compile in strict mode. We don't use autocli so this is okay for now.",
|
|
24
|
+
"transpile": "(cd .. && make proto-export-deps && rm -rf .proto-export-deps/cosmos/autocli) && rm -rf src/ && telescope transpile --protoDirs ../.proto-export-deps --outPath ./src/codegen --no-includeAminos --includeLCDClients --includeRPCClients"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/zoguxprotocol/zogux-chain"
|
|
32
|
+
},
|
|
33
|
+
"keywords": [],
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/zoguxprotocol/zogux-chain/issues"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@cosmjs/stargate": "^0.32.1",
|
|
39
|
+
"@dydxprotocol/node-service-base-dev": "^0.3.2",
|
|
40
|
+
"@osmonauts/lcd": "^0.6.0",
|
|
41
|
+
"@osmonauts/telescope": "0.86.0",
|
|
42
|
+
"long": "^4.0.0",
|
|
43
|
+
"typescript": "^4.8.4"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"protobufjs": "^6.11.2"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
/** Module is the config object for the runtime module. */
|
|
4
|
+
|
|
5
|
+
export interface Module {
|
|
6
|
+
/** app_name is the name of the app. */
|
|
7
|
+
appName: string;
|
|
8
|
+
/**
|
|
9
|
+
* begin_blockers specifies the module names of begin blockers
|
|
10
|
+
* to call in the order in which they should be called. If this is left empty
|
|
11
|
+
* no begin blocker will be registered.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
beginBlockers: string[];
|
|
15
|
+
/**
|
|
16
|
+
* end_blockers specifies the module names of the end blockers
|
|
17
|
+
* to call in the order in which they should be called. If this is left empty
|
|
18
|
+
* no end blocker will be registered.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
endBlockers: string[];
|
|
22
|
+
/**
|
|
23
|
+
* init_genesis specifies the module names of init genesis functions
|
|
24
|
+
* to call in the order in which they should be called. If this is left empty
|
|
25
|
+
* no init genesis function will be registered.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
initGenesis: string[];
|
|
29
|
+
/**
|
|
30
|
+
* export_genesis specifies the order in which to export module genesis data.
|
|
31
|
+
* If this is left empty, the init_genesis order will be used for export genesis
|
|
32
|
+
* if it is specified.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
exportGenesis: string[];
|
|
36
|
+
/**
|
|
37
|
+
* override_store_keys is an optional list of overrides for the module store keys
|
|
38
|
+
* to be used in keeper construction.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
overrideStoreKeys: StoreKeyConfig[];
|
|
42
|
+
/**
|
|
43
|
+
* order_migrations defines the order in which module migrations are performed.
|
|
44
|
+
* If this is left empty, it uses the default migration order.
|
|
45
|
+
* https://pkg.go.dev/github.com/cosmos/cosmos-sdk@v0.47.0-alpha2/types/module#DefaultMigrationsOrder
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
orderMigrations: string[];
|
|
49
|
+
/**
|
|
50
|
+
* precommiters specifies the module names of the precommiters
|
|
51
|
+
* to call in the order in which they should be called. If this is left empty
|
|
52
|
+
* no precommit function will be registered.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
precommiters: string[];
|
|
56
|
+
/**
|
|
57
|
+
* prepare_check_staters specifies the module names of the prepare_check_staters
|
|
58
|
+
* to call in the order in which they should be called. If this is left empty
|
|
59
|
+
* no preparecheckstate function will be registered.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
prepareCheckStaters: string[];
|
|
63
|
+
}
|
|
64
|
+
/** Module is the config object for the runtime module. */
|
|
65
|
+
|
|
66
|
+
export interface ModuleSDKType {
|
|
67
|
+
app_name: string;
|
|
68
|
+
begin_blockers: string[];
|
|
69
|
+
end_blockers: string[];
|
|
70
|
+
init_genesis: string[];
|
|
71
|
+
export_genesis: string[];
|
|
72
|
+
override_store_keys: StoreKeyConfigSDKType[];
|
|
73
|
+
order_migrations: string[];
|
|
74
|
+
precommiters: string[];
|
|
75
|
+
prepare_check_staters: string[];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* StoreKeyConfig may be supplied to override the default module store key, which
|
|
79
|
+
* is the module name.
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
export interface StoreKeyConfig {
|
|
83
|
+
/** name of the module to override the store key of */
|
|
84
|
+
moduleName: string;
|
|
85
|
+
/** the kv store key to use instead of the module name. */
|
|
86
|
+
|
|
87
|
+
kvStoreKey: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* StoreKeyConfig may be supplied to override the default module store key, which
|
|
91
|
+
* is the module name.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
export interface StoreKeyConfigSDKType {
|
|
95
|
+
module_name: string;
|
|
96
|
+
kv_store_key: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function createBaseModule(): Module {
|
|
100
|
+
return {
|
|
101
|
+
appName: "",
|
|
102
|
+
beginBlockers: [],
|
|
103
|
+
endBlockers: [],
|
|
104
|
+
initGenesis: [],
|
|
105
|
+
exportGenesis: [],
|
|
106
|
+
overrideStoreKeys: [],
|
|
107
|
+
orderMigrations: [],
|
|
108
|
+
precommiters: [],
|
|
109
|
+
prepareCheckStaters: []
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export const Module = {
|
|
114
|
+
encode(message: Module, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
115
|
+
if (message.appName !== "") {
|
|
116
|
+
writer.uint32(10).string(message.appName);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
for (const v of message.beginBlockers) {
|
|
120
|
+
writer.uint32(18).string(v!);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
for (const v of message.endBlockers) {
|
|
124
|
+
writer.uint32(26).string(v!);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
for (const v of message.initGenesis) {
|
|
128
|
+
writer.uint32(34).string(v!);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
for (const v of message.exportGenesis) {
|
|
132
|
+
writer.uint32(42).string(v!);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
for (const v of message.overrideStoreKeys) {
|
|
136
|
+
StoreKeyConfig.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
for (const v of message.orderMigrations) {
|
|
140
|
+
writer.uint32(58).string(v!);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
for (const v of message.precommiters) {
|
|
144
|
+
writer.uint32(66).string(v!);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
for (const v of message.prepareCheckStaters) {
|
|
148
|
+
writer.uint32(74).string(v!);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
return writer;
|
|
152
|
+
},
|
|
153
|
+
|
|
154
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Module {
|
|
155
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
156
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
157
|
+
const message = createBaseModule();
|
|
158
|
+
|
|
159
|
+
while (reader.pos < end) {
|
|
160
|
+
const tag = reader.uint32();
|
|
161
|
+
|
|
162
|
+
switch (tag >>> 3) {
|
|
163
|
+
case 1:
|
|
164
|
+
message.appName = reader.string();
|
|
165
|
+
break;
|
|
166
|
+
|
|
167
|
+
case 2:
|
|
168
|
+
message.beginBlockers.push(reader.string());
|
|
169
|
+
break;
|
|
170
|
+
|
|
171
|
+
case 3:
|
|
172
|
+
message.endBlockers.push(reader.string());
|
|
173
|
+
break;
|
|
174
|
+
|
|
175
|
+
case 4:
|
|
176
|
+
message.initGenesis.push(reader.string());
|
|
177
|
+
break;
|
|
178
|
+
|
|
179
|
+
case 5:
|
|
180
|
+
message.exportGenesis.push(reader.string());
|
|
181
|
+
break;
|
|
182
|
+
|
|
183
|
+
case 6:
|
|
184
|
+
message.overrideStoreKeys.push(StoreKeyConfig.decode(reader, reader.uint32()));
|
|
185
|
+
break;
|
|
186
|
+
|
|
187
|
+
case 7:
|
|
188
|
+
message.orderMigrations.push(reader.string());
|
|
189
|
+
break;
|
|
190
|
+
|
|
191
|
+
case 8:
|
|
192
|
+
message.precommiters.push(reader.string());
|
|
193
|
+
break;
|
|
194
|
+
|
|
195
|
+
case 9:
|
|
196
|
+
message.prepareCheckStaters.push(reader.string());
|
|
197
|
+
break;
|
|
198
|
+
|
|
199
|
+
default:
|
|
200
|
+
reader.skipType(tag & 7);
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return message;
|
|
206
|
+
},
|
|
207
|
+
|
|
208
|
+
fromPartial(object: DeepPartial<Module>): Module {
|
|
209
|
+
const message = createBaseModule();
|
|
210
|
+
message.appName = object.appName ?? "";
|
|
211
|
+
message.beginBlockers = object.beginBlockers?.map(e => e) || [];
|
|
212
|
+
message.endBlockers = object.endBlockers?.map(e => e) || [];
|
|
213
|
+
message.initGenesis = object.initGenesis?.map(e => e) || [];
|
|
214
|
+
message.exportGenesis = object.exportGenesis?.map(e => e) || [];
|
|
215
|
+
message.overrideStoreKeys = object.overrideStoreKeys?.map(e => StoreKeyConfig.fromPartial(e)) || [];
|
|
216
|
+
message.orderMigrations = object.orderMigrations?.map(e => e) || [];
|
|
217
|
+
message.precommiters = object.precommiters?.map(e => e) || [];
|
|
218
|
+
message.prepareCheckStaters = object.prepareCheckStaters?.map(e => e) || [];
|
|
219
|
+
return message;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
function createBaseStoreKeyConfig(): StoreKeyConfig {
|
|
225
|
+
return {
|
|
226
|
+
moduleName: "",
|
|
227
|
+
kvStoreKey: ""
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export const StoreKeyConfig = {
|
|
232
|
+
encode(message: StoreKeyConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
233
|
+
if (message.moduleName !== "") {
|
|
234
|
+
writer.uint32(10).string(message.moduleName);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (message.kvStoreKey !== "") {
|
|
238
|
+
writer.uint32(18).string(message.kvStoreKey);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
return writer;
|
|
242
|
+
},
|
|
243
|
+
|
|
244
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StoreKeyConfig {
|
|
245
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
246
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
247
|
+
const message = createBaseStoreKeyConfig();
|
|
248
|
+
|
|
249
|
+
while (reader.pos < end) {
|
|
250
|
+
const tag = reader.uint32();
|
|
251
|
+
|
|
252
|
+
switch (tag >>> 3) {
|
|
253
|
+
case 1:
|
|
254
|
+
message.moduleName = reader.string();
|
|
255
|
+
break;
|
|
256
|
+
|
|
257
|
+
case 2:
|
|
258
|
+
message.kvStoreKey = reader.string();
|
|
259
|
+
break;
|
|
260
|
+
|
|
261
|
+
default:
|
|
262
|
+
reader.skipType(tag & 7);
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return message;
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
fromPartial(object: DeepPartial<StoreKeyConfig>): StoreKeyConfig {
|
|
271
|
+
const message = createBaseStoreKeyConfig();
|
|
272
|
+
message.moduleName = object.moduleName ?? "";
|
|
273
|
+
message.kvStoreKey = object.kvStoreKey ?? "";
|
|
274
|
+
return message;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { Any, AnySDKType } from "../../../google/protobuf/any";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { DeepPartial } from "../../../helpers";
|
|
4
|
+
/**
|
|
5
|
+
* Config represents the configuration for a Cosmos SDK ABCI app.
|
|
6
|
+
* It is intended that all state machine logic including the version of
|
|
7
|
+
* baseapp and tx handlers (and possibly even Tendermint) that an app needs
|
|
8
|
+
* can be described in a config object. For compatibility, the framework should
|
|
9
|
+
* allow a mixture of declarative and imperative app wiring, however, apps
|
|
10
|
+
* that strive for the maximum ease of maintainability should be able to describe
|
|
11
|
+
* their state machine with a config object alone.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export interface Config {
|
|
15
|
+
/** modules are the module configurations for the app. */
|
|
16
|
+
modules: ModuleConfig[];
|
|
17
|
+
/**
|
|
18
|
+
* golang_bindings specifies explicit interface to implementation type bindings which
|
|
19
|
+
* depinject uses to resolve interface inputs to provider functions. The scope of this
|
|
20
|
+
* field's configuration is global (not module specific).
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
golangBindings: GolangBinding[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Config represents the configuration for a Cosmos SDK ABCI app.
|
|
27
|
+
* It is intended that all state machine logic including the version of
|
|
28
|
+
* baseapp and tx handlers (and possibly even Tendermint) that an app needs
|
|
29
|
+
* can be described in a config object. For compatibility, the framework should
|
|
30
|
+
* allow a mixture of declarative and imperative app wiring, however, apps
|
|
31
|
+
* that strive for the maximum ease of maintainability should be able to describe
|
|
32
|
+
* their state machine with a config object alone.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
export interface ConfigSDKType {
|
|
36
|
+
modules: ModuleConfigSDKType[];
|
|
37
|
+
golang_bindings: GolangBindingSDKType[];
|
|
38
|
+
}
|
|
39
|
+
/** ModuleConfig is a module configuration for an app. */
|
|
40
|
+
|
|
41
|
+
export interface ModuleConfig {
|
|
42
|
+
/**
|
|
43
|
+
* name is the unique name of the module within the app. It should be a name
|
|
44
|
+
* that persists between different versions of a module so that modules
|
|
45
|
+
* can be smoothly upgraded to new versions.
|
|
46
|
+
*
|
|
47
|
+
* For example, for the module cosmos.bank.module.v1.Module, we may chose
|
|
48
|
+
* to simply name the module "bank" in the app. When we upgrade to
|
|
49
|
+
* cosmos.bank.module.v2.Module, the app-specific name "bank" stays the same
|
|
50
|
+
* and the framework knows that the v2 module should receive all the same state
|
|
51
|
+
* that the v1 module had. Note: modules should provide info on which versions
|
|
52
|
+
* they can migrate from in the ModuleDescriptor.can_migration_from field.
|
|
53
|
+
*/
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* config is the config object for the module. Module config messages should
|
|
57
|
+
* define a ModuleDescriptor using the cosmos.app.v1alpha1.is_module extension.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
config?: Any;
|
|
61
|
+
/**
|
|
62
|
+
* golang_bindings specifies explicit interface to implementation type bindings which
|
|
63
|
+
* depinject uses to resolve interface inputs to provider functions. The scope of this
|
|
64
|
+
* field's configuration is module specific.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
golangBindings: GolangBinding[];
|
|
68
|
+
}
|
|
69
|
+
/** ModuleConfig is a module configuration for an app. */
|
|
70
|
+
|
|
71
|
+
export interface ModuleConfigSDKType {
|
|
72
|
+
name: string;
|
|
73
|
+
config?: AnySDKType;
|
|
74
|
+
golang_bindings: GolangBindingSDKType[];
|
|
75
|
+
}
|
|
76
|
+
/** GolangBinding is an explicit interface type to implementing type binding for dependency injection. */
|
|
77
|
+
|
|
78
|
+
export interface GolangBinding {
|
|
79
|
+
/** interface_type is the interface type which will be bound to a specific implementation type */
|
|
80
|
+
interfaceType: string;
|
|
81
|
+
/** implementation is the implementing type which will be supplied when an input of type interface is requested */
|
|
82
|
+
|
|
83
|
+
implementation: string;
|
|
84
|
+
}
|
|
85
|
+
/** GolangBinding is an explicit interface type to implementing type binding for dependency injection. */
|
|
86
|
+
|
|
87
|
+
export interface GolangBindingSDKType {
|
|
88
|
+
interface_type: string;
|
|
89
|
+
implementation: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function createBaseConfig(): Config {
|
|
93
|
+
return {
|
|
94
|
+
modules: [],
|
|
95
|
+
golangBindings: []
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const Config = {
|
|
100
|
+
encode(message: Config, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
101
|
+
for (const v of message.modules) {
|
|
102
|
+
ModuleConfig.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
for (const v of message.golangBindings) {
|
|
106
|
+
GolangBinding.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return writer;
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Config {
|
|
113
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
115
|
+
const message = createBaseConfig();
|
|
116
|
+
|
|
117
|
+
while (reader.pos < end) {
|
|
118
|
+
const tag = reader.uint32();
|
|
119
|
+
|
|
120
|
+
switch (tag >>> 3) {
|
|
121
|
+
case 1:
|
|
122
|
+
message.modules.push(ModuleConfig.decode(reader, reader.uint32()));
|
|
123
|
+
break;
|
|
124
|
+
|
|
125
|
+
case 2:
|
|
126
|
+
message.golangBindings.push(GolangBinding.decode(reader, reader.uint32()));
|
|
127
|
+
break;
|
|
128
|
+
|
|
129
|
+
default:
|
|
130
|
+
reader.skipType(tag & 7);
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
fromPartial(object: DeepPartial<Config>): Config {
|
|
139
|
+
const message = createBaseConfig();
|
|
140
|
+
message.modules = object.modules?.map(e => ModuleConfig.fromPartial(e)) || [];
|
|
141
|
+
message.golangBindings = object.golangBindings?.map(e => GolangBinding.fromPartial(e)) || [];
|
|
142
|
+
return message;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
function createBaseModuleConfig(): ModuleConfig {
|
|
148
|
+
return {
|
|
149
|
+
name: "",
|
|
150
|
+
config: undefined,
|
|
151
|
+
golangBindings: []
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export const ModuleConfig = {
|
|
156
|
+
encode(message: ModuleConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
157
|
+
if (message.name !== "") {
|
|
158
|
+
writer.uint32(10).string(message.name);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (message.config !== undefined) {
|
|
162
|
+
Any.encode(message.config, writer.uint32(18).fork()).ldelim();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
for (const v of message.golangBindings) {
|
|
166
|
+
GolangBinding.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return writer;
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleConfig {
|
|
173
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
174
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
175
|
+
const message = createBaseModuleConfig();
|
|
176
|
+
|
|
177
|
+
while (reader.pos < end) {
|
|
178
|
+
const tag = reader.uint32();
|
|
179
|
+
|
|
180
|
+
switch (tag >>> 3) {
|
|
181
|
+
case 1:
|
|
182
|
+
message.name = reader.string();
|
|
183
|
+
break;
|
|
184
|
+
|
|
185
|
+
case 2:
|
|
186
|
+
message.config = Any.decode(reader, reader.uint32());
|
|
187
|
+
break;
|
|
188
|
+
|
|
189
|
+
case 3:
|
|
190
|
+
message.golangBindings.push(GolangBinding.decode(reader, reader.uint32()));
|
|
191
|
+
break;
|
|
192
|
+
|
|
193
|
+
default:
|
|
194
|
+
reader.skipType(tag & 7);
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return message;
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
fromPartial(object: DeepPartial<ModuleConfig>): ModuleConfig {
|
|
203
|
+
const message = createBaseModuleConfig();
|
|
204
|
+
message.name = object.name ?? "";
|
|
205
|
+
message.config = object.config !== undefined && object.config !== null ? Any.fromPartial(object.config) : undefined;
|
|
206
|
+
message.golangBindings = object.golangBindings?.map(e => GolangBinding.fromPartial(e)) || [];
|
|
207
|
+
return message;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
function createBaseGolangBinding(): GolangBinding {
|
|
213
|
+
return {
|
|
214
|
+
interfaceType: "",
|
|
215
|
+
implementation: ""
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export const GolangBinding = {
|
|
220
|
+
encode(message: GolangBinding, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
221
|
+
if (message.interfaceType !== "") {
|
|
222
|
+
writer.uint32(10).string(message.interfaceType);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (message.implementation !== "") {
|
|
226
|
+
writer.uint32(18).string(message.implementation);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
return writer;
|
|
230
|
+
},
|
|
231
|
+
|
|
232
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GolangBinding {
|
|
233
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
234
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
235
|
+
const message = createBaseGolangBinding();
|
|
236
|
+
|
|
237
|
+
while (reader.pos < end) {
|
|
238
|
+
const tag = reader.uint32();
|
|
239
|
+
|
|
240
|
+
switch (tag >>> 3) {
|
|
241
|
+
case 1:
|
|
242
|
+
message.interfaceType = reader.string();
|
|
243
|
+
break;
|
|
244
|
+
|
|
245
|
+
case 2:
|
|
246
|
+
message.implementation = reader.string();
|
|
247
|
+
break;
|
|
248
|
+
|
|
249
|
+
default:
|
|
250
|
+
reader.skipType(tag & 7);
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
fromPartial(object: DeepPartial<GolangBinding>): GolangBinding {
|
|
259
|
+
const message = createBaseGolangBinding();
|
|
260
|
+
message.interfaceType = object.interfaceType ?? "";
|
|
261
|
+
message.implementation = object.implementation ?? "";
|
|
262
|
+
return message;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
};
|