@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,356 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/** TableDescriptor describes an ORM table. */
|
|
4
|
+
|
|
5
|
+
export interface TableDescriptor {
|
|
6
|
+
/** primary_key defines the primary key for the table. */
|
|
7
|
+
primaryKey?: PrimaryKeyDescriptor;
|
|
8
|
+
/** index defines one or more secondary indexes. */
|
|
9
|
+
|
|
10
|
+
index: SecondaryIndexDescriptor[];
|
|
11
|
+
/**
|
|
12
|
+
* id is a non-zero integer ID that must be unique within the
|
|
13
|
+
* tables and singletons in this file. It may be deprecated in the future when this
|
|
14
|
+
* can be auto-generated.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
id: number;
|
|
18
|
+
}
|
|
19
|
+
/** TableDescriptor describes an ORM table. */
|
|
20
|
+
|
|
21
|
+
export interface TableDescriptorSDKType {
|
|
22
|
+
primary_key?: PrimaryKeyDescriptorSDKType;
|
|
23
|
+
index: SecondaryIndexDescriptorSDKType[];
|
|
24
|
+
id: number;
|
|
25
|
+
}
|
|
26
|
+
/** PrimaryKeyDescriptor describes a table primary key. */
|
|
27
|
+
|
|
28
|
+
export interface PrimaryKeyDescriptor {
|
|
29
|
+
/**
|
|
30
|
+
* fields is a comma-separated list of fields in the primary key. Spaces are
|
|
31
|
+
* not allowed. Supported field types, their encodings, and any applicable constraints
|
|
32
|
+
* are described below.
|
|
33
|
+
* - uint32 are encoded as 2,3,4 or 5 bytes using a compact encoding that
|
|
34
|
+
* is suitable for sorted iteration (not varint encoding). This type is
|
|
35
|
+
* well-suited for small integers.
|
|
36
|
+
* - uint64 are encoded as 2,4,6 or 9 bytes using a compact encoding that
|
|
37
|
+
* is suitable for sorted iteration (not varint encoding). This type is
|
|
38
|
+
* well-suited for small integers such as auto-incrementing sequences.
|
|
39
|
+
* - fixed32, fixed64 are encoded as big-endian fixed width bytes and support
|
|
40
|
+
* sorted iteration. These types are well-suited for encoding fixed with
|
|
41
|
+
* decimals as integers.
|
|
42
|
+
* - string's are encoded as raw bytes in terminal key segments and null-terminated
|
|
43
|
+
* in non-terminal segments. Null characters are thus forbidden in strings.
|
|
44
|
+
* string fields support sorted iteration.
|
|
45
|
+
* - bytes are encoded as raw bytes in terminal segments and length-prefixed
|
|
46
|
+
* with a 32-bit unsigned varint in non-terminal segments.
|
|
47
|
+
* - int32, sint32, int64, sint64, sfixed32, sfixed64 are encoded as fixed width bytes with
|
|
48
|
+
* an encoding that enables sorted iteration.
|
|
49
|
+
* - google.protobuf.Timestamp is encoded such that values with only seconds occupy 6 bytes,
|
|
50
|
+
* values including nanos occupy 9 bytes, and nil values occupy 1 byte. When iterating, nil
|
|
51
|
+
* values will always be ordered last. Seconds and nanos values must conform to the officially
|
|
52
|
+
* specified ranges of 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z and 0 to 999,999,999 respectively.
|
|
53
|
+
* - google.protobuf.Duration is encoded as 12 bytes using an encoding that enables sorted iteration.
|
|
54
|
+
* - enum fields are encoded using varint encoding and do not support sorted
|
|
55
|
+
* iteration.
|
|
56
|
+
* - bool fields are encoded as a single byte 0 or 1.
|
|
57
|
+
*
|
|
58
|
+
* All other fields types are unsupported in keys including repeated and
|
|
59
|
+
* oneof fields.
|
|
60
|
+
*
|
|
61
|
+
* Primary keys are prefixed by the varint encoded table id and the byte 0x0
|
|
62
|
+
* plus any additional prefix specified by the schema.
|
|
63
|
+
*/
|
|
64
|
+
fields: string;
|
|
65
|
+
/**
|
|
66
|
+
* auto_increment specifies that the primary key is generated by an
|
|
67
|
+
* auto-incrementing integer. If this is set to true fields must only
|
|
68
|
+
* contain one field of that is of type uint64.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
autoIncrement: boolean;
|
|
72
|
+
}
|
|
73
|
+
/** PrimaryKeyDescriptor describes a table primary key. */
|
|
74
|
+
|
|
75
|
+
export interface PrimaryKeyDescriptorSDKType {
|
|
76
|
+
fields: string;
|
|
77
|
+
auto_increment: boolean;
|
|
78
|
+
}
|
|
79
|
+
/** PrimaryKeyDescriptor describes a table secondary index. */
|
|
80
|
+
|
|
81
|
+
export interface SecondaryIndexDescriptor {
|
|
82
|
+
/**
|
|
83
|
+
* fields is a comma-separated list of fields in the index. The supported
|
|
84
|
+
* field types are the same as those for PrimaryKeyDescriptor.fields.
|
|
85
|
+
* Index keys are prefixed by the varint encoded table id and the varint
|
|
86
|
+
* encoded index id plus any additional prefix specified by the schema.
|
|
87
|
+
*
|
|
88
|
+
* In addition the field segments, non-unique index keys are suffixed with
|
|
89
|
+
* any additional primary key fields not present in the index fields so that the
|
|
90
|
+
* primary key can be reconstructed. Unique indexes instead of being suffixed
|
|
91
|
+
* store the remaining primary key fields in the value..
|
|
92
|
+
*/
|
|
93
|
+
fields: string;
|
|
94
|
+
/**
|
|
95
|
+
* id is a non-zero integer ID that must be unique within the indexes for this
|
|
96
|
+
* table and less than 32768. It may be deprecated in the future when this can
|
|
97
|
+
* be auto-generated.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
id: number;
|
|
101
|
+
/** unique specifies that this an unique index. */
|
|
102
|
+
|
|
103
|
+
unique: boolean;
|
|
104
|
+
}
|
|
105
|
+
/** PrimaryKeyDescriptor describes a table secondary index. */
|
|
106
|
+
|
|
107
|
+
export interface SecondaryIndexDescriptorSDKType {
|
|
108
|
+
fields: string;
|
|
109
|
+
id: number;
|
|
110
|
+
unique: boolean;
|
|
111
|
+
}
|
|
112
|
+
/** TableDescriptor describes an ORM singleton table which has at most one instance. */
|
|
113
|
+
|
|
114
|
+
export interface SingletonDescriptor {
|
|
115
|
+
/**
|
|
116
|
+
* id is a non-zero integer ID that must be unique within the
|
|
117
|
+
* tables and singletons in this file. It may be deprecated in the future when this
|
|
118
|
+
* can be auto-generated.
|
|
119
|
+
*/
|
|
120
|
+
id: number;
|
|
121
|
+
}
|
|
122
|
+
/** TableDescriptor describes an ORM singleton table which has at most one instance. */
|
|
123
|
+
|
|
124
|
+
export interface SingletonDescriptorSDKType {
|
|
125
|
+
id: number;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function createBaseTableDescriptor(): TableDescriptor {
|
|
129
|
+
return {
|
|
130
|
+
primaryKey: undefined,
|
|
131
|
+
index: [],
|
|
132
|
+
id: 0
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export const TableDescriptor = {
|
|
137
|
+
encode(message: TableDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
138
|
+
if (message.primaryKey !== undefined) {
|
|
139
|
+
PrimaryKeyDescriptor.encode(message.primaryKey, writer.uint32(10).fork()).ldelim();
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
for (const v of message.index) {
|
|
143
|
+
SecondaryIndexDescriptor.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (message.id !== 0) {
|
|
147
|
+
writer.uint32(24).uint32(message.id);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return writer;
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TableDescriptor {
|
|
154
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
155
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
156
|
+
const message = createBaseTableDescriptor();
|
|
157
|
+
|
|
158
|
+
while (reader.pos < end) {
|
|
159
|
+
const tag = reader.uint32();
|
|
160
|
+
|
|
161
|
+
switch (tag >>> 3) {
|
|
162
|
+
case 1:
|
|
163
|
+
message.primaryKey = PrimaryKeyDescriptor.decode(reader, reader.uint32());
|
|
164
|
+
break;
|
|
165
|
+
|
|
166
|
+
case 2:
|
|
167
|
+
message.index.push(SecondaryIndexDescriptor.decode(reader, reader.uint32()));
|
|
168
|
+
break;
|
|
169
|
+
|
|
170
|
+
case 3:
|
|
171
|
+
message.id = reader.uint32();
|
|
172
|
+
break;
|
|
173
|
+
|
|
174
|
+
default:
|
|
175
|
+
reader.skipType(tag & 7);
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
return message;
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
fromPartial(object: DeepPartial<TableDescriptor>): TableDescriptor {
|
|
184
|
+
const message = createBaseTableDescriptor();
|
|
185
|
+
message.primaryKey = object.primaryKey !== undefined && object.primaryKey !== null ? PrimaryKeyDescriptor.fromPartial(object.primaryKey) : undefined;
|
|
186
|
+
message.index = object.index?.map(e => SecondaryIndexDescriptor.fromPartial(e)) || [];
|
|
187
|
+
message.id = object.id ?? 0;
|
|
188
|
+
return message;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
function createBasePrimaryKeyDescriptor(): PrimaryKeyDescriptor {
|
|
194
|
+
return {
|
|
195
|
+
fields: "",
|
|
196
|
+
autoIncrement: false
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export const PrimaryKeyDescriptor = {
|
|
201
|
+
encode(message: PrimaryKeyDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
202
|
+
if (message.fields !== "") {
|
|
203
|
+
writer.uint32(10).string(message.fields);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
if (message.autoIncrement === true) {
|
|
207
|
+
writer.uint32(16).bool(message.autoIncrement);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return writer;
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PrimaryKeyDescriptor {
|
|
214
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
215
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
216
|
+
const message = createBasePrimaryKeyDescriptor();
|
|
217
|
+
|
|
218
|
+
while (reader.pos < end) {
|
|
219
|
+
const tag = reader.uint32();
|
|
220
|
+
|
|
221
|
+
switch (tag >>> 3) {
|
|
222
|
+
case 1:
|
|
223
|
+
message.fields = reader.string();
|
|
224
|
+
break;
|
|
225
|
+
|
|
226
|
+
case 2:
|
|
227
|
+
message.autoIncrement = reader.bool();
|
|
228
|
+
break;
|
|
229
|
+
|
|
230
|
+
default:
|
|
231
|
+
reader.skipType(tag & 7);
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
|
|
239
|
+
fromPartial(object: DeepPartial<PrimaryKeyDescriptor>): PrimaryKeyDescriptor {
|
|
240
|
+
const message = createBasePrimaryKeyDescriptor();
|
|
241
|
+
message.fields = object.fields ?? "";
|
|
242
|
+
message.autoIncrement = object.autoIncrement ?? false;
|
|
243
|
+
return message;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
function createBaseSecondaryIndexDescriptor(): SecondaryIndexDescriptor {
|
|
249
|
+
return {
|
|
250
|
+
fields: "",
|
|
251
|
+
id: 0,
|
|
252
|
+
unique: false
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export const SecondaryIndexDescriptor = {
|
|
257
|
+
encode(message: SecondaryIndexDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
258
|
+
if (message.fields !== "") {
|
|
259
|
+
writer.uint32(10).string(message.fields);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (message.id !== 0) {
|
|
263
|
+
writer.uint32(16).uint32(message.id);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
if (message.unique === true) {
|
|
267
|
+
writer.uint32(24).bool(message.unique);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
return writer;
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SecondaryIndexDescriptor {
|
|
274
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
275
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
276
|
+
const message = createBaseSecondaryIndexDescriptor();
|
|
277
|
+
|
|
278
|
+
while (reader.pos < end) {
|
|
279
|
+
const tag = reader.uint32();
|
|
280
|
+
|
|
281
|
+
switch (tag >>> 3) {
|
|
282
|
+
case 1:
|
|
283
|
+
message.fields = reader.string();
|
|
284
|
+
break;
|
|
285
|
+
|
|
286
|
+
case 2:
|
|
287
|
+
message.id = reader.uint32();
|
|
288
|
+
break;
|
|
289
|
+
|
|
290
|
+
case 3:
|
|
291
|
+
message.unique = reader.bool();
|
|
292
|
+
break;
|
|
293
|
+
|
|
294
|
+
default:
|
|
295
|
+
reader.skipType(tag & 7);
|
|
296
|
+
break;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
return message;
|
|
301
|
+
},
|
|
302
|
+
|
|
303
|
+
fromPartial(object: DeepPartial<SecondaryIndexDescriptor>): SecondaryIndexDescriptor {
|
|
304
|
+
const message = createBaseSecondaryIndexDescriptor();
|
|
305
|
+
message.fields = object.fields ?? "";
|
|
306
|
+
message.id = object.id ?? 0;
|
|
307
|
+
message.unique = object.unique ?? false;
|
|
308
|
+
return message;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
function createBaseSingletonDescriptor(): SingletonDescriptor {
|
|
314
|
+
return {
|
|
315
|
+
id: 0
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export const SingletonDescriptor = {
|
|
320
|
+
encode(message: SingletonDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
321
|
+
if (message.id !== 0) {
|
|
322
|
+
writer.uint32(8).uint32(message.id);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
return writer;
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SingletonDescriptor {
|
|
329
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
330
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
331
|
+
const message = createBaseSingletonDescriptor();
|
|
332
|
+
|
|
333
|
+
while (reader.pos < end) {
|
|
334
|
+
const tag = reader.uint32();
|
|
335
|
+
|
|
336
|
+
switch (tag >>> 3) {
|
|
337
|
+
case 1:
|
|
338
|
+
message.id = reader.uint32();
|
|
339
|
+
break;
|
|
340
|
+
|
|
341
|
+
default:
|
|
342
|
+
reader.skipType(tag & 7);
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
return message;
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
fromPartial(object: DeepPartial<SingletonDescriptor>): SingletonDescriptor {
|
|
351
|
+
const message = createBaseSingletonDescriptor();
|
|
352
|
+
message.id = object.id ?? 0;
|
|
353
|
+
return message;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
};
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
import { DeepPartial } from "../../../helpers";
|
|
3
|
+
/** StorageType */
|
|
4
|
+
|
|
5
|
+
export enum StorageType {
|
|
6
|
+
/**
|
|
7
|
+
* STORAGE_TYPE_DEFAULT_UNSPECIFIED - STORAGE_TYPE_DEFAULT_UNSPECIFIED indicates the persistent storage where all
|
|
8
|
+
* data is stored in the regular Merkle-tree backed KV-store.
|
|
9
|
+
*/
|
|
10
|
+
STORAGE_TYPE_DEFAULT_UNSPECIFIED = 0,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* STORAGE_TYPE_MEMORY - STORAGE_TYPE_MEMORY indicates in-memory storage that will be
|
|
14
|
+
* reloaded every time an app restarts. Tables with this type of storage
|
|
15
|
+
* will by default be ignored when importing and exporting a module's
|
|
16
|
+
* state from JSON.
|
|
17
|
+
*/
|
|
18
|
+
STORAGE_TYPE_MEMORY = 1,
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* STORAGE_TYPE_TRANSIENT - STORAGE_TYPE_TRANSIENT indicates transient storage that is reset
|
|
22
|
+
* at the end of every block. Tables with this type of storage
|
|
23
|
+
* will by default be ignored when importing and exporting a module's
|
|
24
|
+
* state from JSON.
|
|
25
|
+
*/
|
|
26
|
+
STORAGE_TYPE_TRANSIENT = 2,
|
|
27
|
+
UNRECOGNIZED = -1,
|
|
28
|
+
}
|
|
29
|
+
export const StorageTypeSDKType = StorageType;
|
|
30
|
+
export function storageTypeFromJSON(object: any): StorageType {
|
|
31
|
+
switch (object) {
|
|
32
|
+
case 0:
|
|
33
|
+
case "STORAGE_TYPE_DEFAULT_UNSPECIFIED":
|
|
34
|
+
return StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED;
|
|
35
|
+
|
|
36
|
+
case 1:
|
|
37
|
+
case "STORAGE_TYPE_MEMORY":
|
|
38
|
+
return StorageType.STORAGE_TYPE_MEMORY;
|
|
39
|
+
|
|
40
|
+
case 2:
|
|
41
|
+
case "STORAGE_TYPE_TRANSIENT":
|
|
42
|
+
return StorageType.STORAGE_TYPE_TRANSIENT;
|
|
43
|
+
|
|
44
|
+
case -1:
|
|
45
|
+
case "UNRECOGNIZED":
|
|
46
|
+
default:
|
|
47
|
+
return StorageType.UNRECOGNIZED;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export function storageTypeToJSON(object: StorageType): string {
|
|
51
|
+
switch (object) {
|
|
52
|
+
case StorageType.STORAGE_TYPE_DEFAULT_UNSPECIFIED:
|
|
53
|
+
return "STORAGE_TYPE_DEFAULT_UNSPECIFIED";
|
|
54
|
+
|
|
55
|
+
case StorageType.STORAGE_TYPE_MEMORY:
|
|
56
|
+
return "STORAGE_TYPE_MEMORY";
|
|
57
|
+
|
|
58
|
+
case StorageType.STORAGE_TYPE_TRANSIENT:
|
|
59
|
+
return "STORAGE_TYPE_TRANSIENT";
|
|
60
|
+
|
|
61
|
+
case StorageType.UNRECOGNIZED:
|
|
62
|
+
default:
|
|
63
|
+
return "UNRECOGNIZED";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/** ModuleSchemaDescriptor describe's a module's ORM schema. */
|
|
67
|
+
|
|
68
|
+
export interface ModuleSchemaDescriptor {
|
|
69
|
+
schemaFile: ModuleSchemaDescriptor_FileEntry[];
|
|
70
|
+
/**
|
|
71
|
+
* prefix is an optional prefix that precedes all keys in this module's
|
|
72
|
+
* store.
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
prefix: Uint8Array;
|
|
76
|
+
}
|
|
77
|
+
/** ModuleSchemaDescriptor describe's a module's ORM schema. */
|
|
78
|
+
|
|
79
|
+
export interface ModuleSchemaDescriptorSDKType {
|
|
80
|
+
schema_file: ModuleSchemaDescriptor_FileEntrySDKType[];
|
|
81
|
+
prefix: Uint8Array;
|
|
82
|
+
}
|
|
83
|
+
/** FileEntry describes an ORM file used in a module. */
|
|
84
|
+
|
|
85
|
+
export interface ModuleSchemaDescriptor_FileEntry {
|
|
86
|
+
/**
|
|
87
|
+
* id is a prefix that will be varint encoded and prepended to all the
|
|
88
|
+
* table keys specified in the file's tables.
|
|
89
|
+
*/
|
|
90
|
+
id: number;
|
|
91
|
+
/**
|
|
92
|
+
* proto_file_name is the name of a file .proto in that contains
|
|
93
|
+
* table definitions. The .proto file must be in a package that the
|
|
94
|
+
* module has referenced using cosmos.app.v1.ModuleDescriptor.use_package.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
protoFileName: string;
|
|
98
|
+
/**
|
|
99
|
+
* storage_type optionally indicates the type of storage this file's
|
|
100
|
+
* tables should used. If it is left unspecified, the default KV-storage
|
|
101
|
+
* of the app will be used.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
storageType: StorageType;
|
|
105
|
+
}
|
|
106
|
+
/** FileEntry describes an ORM file used in a module. */
|
|
107
|
+
|
|
108
|
+
export interface ModuleSchemaDescriptor_FileEntrySDKType {
|
|
109
|
+
id: number;
|
|
110
|
+
proto_file_name: string;
|
|
111
|
+
storage_type: StorageType;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function createBaseModuleSchemaDescriptor(): ModuleSchemaDescriptor {
|
|
115
|
+
return {
|
|
116
|
+
schemaFile: [],
|
|
117
|
+
prefix: new Uint8Array()
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const ModuleSchemaDescriptor = {
|
|
122
|
+
encode(message: ModuleSchemaDescriptor, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
123
|
+
for (const v of message.schemaFile) {
|
|
124
|
+
ModuleSchemaDescriptor_FileEntry.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (message.prefix.length !== 0) {
|
|
128
|
+
writer.uint32(18).bytes(message.prefix);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return writer;
|
|
132
|
+
},
|
|
133
|
+
|
|
134
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor {
|
|
135
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
136
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
137
|
+
const message = createBaseModuleSchemaDescriptor();
|
|
138
|
+
|
|
139
|
+
while (reader.pos < end) {
|
|
140
|
+
const tag = reader.uint32();
|
|
141
|
+
|
|
142
|
+
switch (tag >>> 3) {
|
|
143
|
+
case 1:
|
|
144
|
+
message.schemaFile.push(ModuleSchemaDescriptor_FileEntry.decode(reader, reader.uint32()));
|
|
145
|
+
break;
|
|
146
|
+
|
|
147
|
+
case 2:
|
|
148
|
+
message.prefix = reader.bytes();
|
|
149
|
+
break;
|
|
150
|
+
|
|
151
|
+
default:
|
|
152
|
+
reader.skipType(tag & 7);
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return message;
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
fromPartial(object: DeepPartial<ModuleSchemaDescriptor>): ModuleSchemaDescriptor {
|
|
161
|
+
const message = createBaseModuleSchemaDescriptor();
|
|
162
|
+
message.schemaFile = object.schemaFile?.map(e => ModuleSchemaDescriptor_FileEntry.fromPartial(e)) || [];
|
|
163
|
+
message.prefix = object.prefix ?? new Uint8Array();
|
|
164
|
+
return message;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
function createBaseModuleSchemaDescriptor_FileEntry(): ModuleSchemaDescriptor_FileEntry {
|
|
170
|
+
return {
|
|
171
|
+
id: 0,
|
|
172
|
+
protoFileName: "",
|
|
173
|
+
storageType: 0
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const ModuleSchemaDescriptor_FileEntry = {
|
|
178
|
+
encode(message: ModuleSchemaDescriptor_FileEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
179
|
+
if (message.id !== 0) {
|
|
180
|
+
writer.uint32(8).uint32(message.id);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (message.protoFileName !== "") {
|
|
184
|
+
writer.uint32(18).string(message.protoFileName);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (message.storageType !== 0) {
|
|
188
|
+
writer.uint32(24).int32(message.storageType);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
return writer;
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ModuleSchemaDescriptor_FileEntry {
|
|
195
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
196
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
197
|
+
const message = createBaseModuleSchemaDescriptor_FileEntry();
|
|
198
|
+
|
|
199
|
+
while (reader.pos < end) {
|
|
200
|
+
const tag = reader.uint32();
|
|
201
|
+
|
|
202
|
+
switch (tag >>> 3) {
|
|
203
|
+
case 1:
|
|
204
|
+
message.id = reader.uint32();
|
|
205
|
+
break;
|
|
206
|
+
|
|
207
|
+
case 2:
|
|
208
|
+
message.protoFileName = reader.string();
|
|
209
|
+
break;
|
|
210
|
+
|
|
211
|
+
case 3:
|
|
212
|
+
message.storageType = (reader.int32() as any);
|
|
213
|
+
break;
|
|
214
|
+
|
|
215
|
+
default:
|
|
216
|
+
reader.skipType(tag & 7);
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
return message;
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
fromPartial(object: DeepPartial<ModuleSchemaDescriptor_FileEntry>): ModuleSchemaDescriptor_FileEntry {
|
|
225
|
+
const message = createBaseModuleSchemaDescriptor_FileEntry();
|
|
226
|
+
message.id = object.id ?? 0;
|
|
227
|
+
message.protoFileName = object.protoFileName ?? "";
|
|
228
|
+
message.storageType = object.storageType ?? 0;
|
|
229
|
+
return message;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
import { DeepPartial } from "../../../../helpers";
|
|
3
|
+
/** Module is the config object of the params module. */
|
|
4
|
+
|
|
5
|
+
export interface Module {}
|
|
6
|
+
/** Module is the config object of the params module. */
|
|
7
|
+
|
|
8
|
+
export interface ModuleSDKType {}
|
|
9
|
+
|
|
10
|
+
function createBaseModule(): Module {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const Module = {
|
|
15
|
+
encode(_: Module, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
16
|
+
return writer;
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Module {
|
|
20
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
21
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
|
+
const message = createBaseModule();
|
|
23
|
+
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
|
|
27
|
+
switch (tag >>> 3) {
|
|
28
|
+
default:
|
|
29
|
+
reader.skipType(tag & 7);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return message;
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
fromPartial(_: DeepPartial<Module>): Module {
|
|
38
|
+
const message = createBaseModule();
|
|
39
|
+
return message;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
};
|