@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,228 @@
|
|
|
1
|
+
import { OrderId, OrderIdSDKType } from "./order";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { DeepPartial } from "../../helpers";
|
|
4
|
+
export enum OrderRemoval_RemovalReason {
|
|
5
|
+
/**
|
|
6
|
+
* REMOVAL_REASON_UNSPECIFIED - REMOVAL_REASON_UNSPECIFIED represents an unspecified removal reason. This
|
|
7
|
+
* removal reason is used as a catchall and should never appear on an
|
|
8
|
+
* OrderRemoval in the operations queue.
|
|
9
|
+
*/
|
|
10
|
+
REMOVAL_REASON_UNSPECIFIED = 0,
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* REMOVAL_REASON_UNDERCOLLATERALIZED - REMOVAL_REASON_UNDERCOLLATERALIZED represents a removal of an order which
|
|
14
|
+
* if filled in isolation with respect to the current state of the
|
|
15
|
+
* subaccount would leave the subaccount undercollateralized.
|
|
16
|
+
*/
|
|
17
|
+
REMOVAL_REASON_UNDERCOLLATERALIZED = 1,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* REMOVAL_REASON_INVALID_REDUCE_ONLY - REMOVAL_REASON_INVALID_REDUCE_ONLY represents a removal of a reduce-only
|
|
21
|
+
* order which if filled in isolation with respect to the current state of
|
|
22
|
+
* the subaccount would cause the subaccount's existing position to increase
|
|
23
|
+
* or change sides.
|
|
24
|
+
*/
|
|
25
|
+
REMOVAL_REASON_INVALID_REDUCE_ONLY = 2,
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER - REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER represents a removal of
|
|
29
|
+
* a stateful post-only order that was deemed invalid because it crossed
|
|
30
|
+
* maker orders on the book of the proposer.
|
|
31
|
+
*/
|
|
32
|
+
REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER = 3,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* REMOVAL_REASON_INVALID_SELF_TRADE - REMOVAL_REASON_INVALID_SELF_TRADE represents a removal of a stateful
|
|
36
|
+
* order that was deemed invalid because it constituted a self trade on the
|
|
37
|
+
* proposers orderbook.
|
|
38
|
+
*/
|
|
39
|
+
REMOVAL_REASON_INVALID_SELF_TRADE = 4,
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* REMOVAL_REASON_CONDITIONAL_FOK_COULD_NOT_BE_FULLY_FILLED - REMOVAL_REASON_CONDITIONAL_FOK_COULD_NOT_BE_FULLY_FILLED represents a
|
|
43
|
+
* removal of a conditional FOK order that was deemed invalid because it
|
|
44
|
+
* could not be completely filled. Conditional FOK orders should always be
|
|
45
|
+
* fully-filled or removed in the block after they are triggered.
|
|
46
|
+
*/
|
|
47
|
+
REMOVAL_REASON_CONDITIONAL_FOK_COULD_NOT_BE_FULLY_FILLED = 5,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* REMOVAL_REASON_CONDITIONAL_IOC_WOULD_REST_ON_BOOK - REMOVAL_REASON_CONDITIONAL_IOC_WOULD_REST_ON_BOOK represents a removal
|
|
51
|
+
* of a conditional IOC order.
|
|
52
|
+
* Conditional IOC orders should always have their remaining size removed
|
|
53
|
+
* in the block after they are triggered.
|
|
54
|
+
*/
|
|
55
|
+
REMOVAL_REASON_CONDITIONAL_IOC_WOULD_REST_ON_BOOK = 6,
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* REMOVAL_REASON_FULLY_FILLED - REMOVAL_REASON_FULLY_FILLED represents a removal of an order that
|
|
59
|
+
* was fully filled and should therefore be removed from state.
|
|
60
|
+
*/
|
|
61
|
+
REMOVAL_REASON_FULLY_FILLED = 7,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* REMOVAL_REASON_VIOLATES_ISOLATED_SUBACCOUNT_CONSTRAINTS - REMOVAL_REASON_FULLY_FILLED represents a removal of an order that
|
|
65
|
+
* would lead to the subaccount violating isolated subaccount constraints.
|
|
66
|
+
*/
|
|
67
|
+
REMOVAL_REASON_VIOLATES_ISOLATED_SUBACCOUNT_CONSTRAINTS = 8,
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* REMOVAL_REASON_PERMISSIONED_KEY_EXPIRED - REMOVAL_REASON_PERMISSIONED_KEY_EXPIRED represents a removal of an order
|
|
71
|
+
* that was placed using an expired permissioned key.
|
|
72
|
+
*/
|
|
73
|
+
REMOVAL_REASON_PERMISSIONED_KEY_EXPIRED = 9,
|
|
74
|
+
UNRECOGNIZED = -1,
|
|
75
|
+
}
|
|
76
|
+
export const OrderRemoval_RemovalReasonSDKType = OrderRemoval_RemovalReason;
|
|
77
|
+
export function orderRemoval_RemovalReasonFromJSON(object: any): OrderRemoval_RemovalReason {
|
|
78
|
+
switch (object) {
|
|
79
|
+
case 0:
|
|
80
|
+
case "REMOVAL_REASON_UNSPECIFIED":
|
|
81
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_UNSPECIFIED;
|
|
82
|
+
|
|
83
|
+
case 1:
|
|
84
|
+
case "REMOVAL_REASON_UNDERCOLLATERALIZED":
|
|
85
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_UNDERCOLLATERALIZED;
|
|
86
|
+
|
|
87
|
+
case 2:
|
|
88
|
+
case "REMOVAL_REASON_INVALID_REDUCE_ONLY":
|
|
89
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_INVALID_REDUCE_ONLY;
|
|
90
|
+
|
|
91
|
+
case 3:
|
|
92
|
+
case "REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER":
|
|
93
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER;
|
|
94
|
+
|
|
95
|
+
case 4:
|
|
96
|
+
case "REMOVAL_REASON_INVALID_SELF_TRADE":
|
|
97
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_INVALID_SELF_TRADE;
|
|
98
|
+
|
|
99
|
+
case 5:
|
|
100
|
+
case "REMOVAL_REASON_CONDITIONAL_FOK_COULD_NOT_BE_FULLY_FILLED":
|
|
101
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_CONDITIONAL_FOK_COULD_NOT_BE_FULLY_FILLED;
|
|
102
|
+
|
|
103
|
+
case 6:
|
|
104
|
+
case "REMOVAL_REASON_CONDITIONAL_IOC_WOULD_REST_ON_BOOK":
|
|
105
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_CONDITIONAL_IOC_WOULD_REST_ON_BOOK;
|
|
106
|
+
|
|
107
|
+
case 7:
|
|
108
|
+
case "REMOVAL_REASON_FULLY_FILLED":
|
|
109
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_FULLY_FILLED;
|
|
110
|
+
|
|
111
|
+
case 8:
|
|
112
|
+
case "REMOVAL_REASON_VIOLATES_ISOLATED_SUBACCOUNT_CONSTRAINTS":
|
|
113
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_VIOLATES_ISOLATED_SUBACCOUNT_CONSTRAINTS;
|
|
114
|
+
|
|
115
|
+
case 9:
|
|
116
|
+
case "REMOVAL_REASON_PERMISSIONED_KEY_EXPIRED":
|
|
117
|
+
return OrderRemoval_RemovalReason.REMOVAL_REASON_PERMISSIONED_KEY_EXPIRED;
|
|
118
|
+
|
|
119
|
+
case -1:
|
|
120
|
+
case "UNRECOGNIZED":
|
|
121
|
+
default:
|
|
122
|
+
return OrderRemoval_RemovalReason.UNRECOGNIZED;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
export function orderRemoval_RemovalReasonToJSON(object: OrderRemoval_RemovalReason): string {
|
|
126
|
+
switch (object) {
|
|
127
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_UNSPECIFIED:
|
|
128
|
+
return "REMOVAL_REASON_UNSPECIFIED";
|
|
129
|
+
|
|
130
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_UNDERCOLLATERALIZED:
|
|
131
|
+
return "REMOVAL_REASON_UNDERCOLLATERALIZED";
|
|
132
|
+
|
|
133
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_INVALID_REDUCE_ONLY:
|
|
134
|
+
return "REMOVAL_REASON_INVALID_REDUCE_ONLY";
|
|
135
|
+
|
|
136
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER:
|
|
137
|
+
return "REMOVAL_REASON_POST_ONLY_WOULD_CROSS_MAKER_ORDER";
|
|
138
|
+
|
|
139
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_INVALID_SELF_TRADE:
|
|
140
|
+
return "REMOVAL_REASON_INVALID_SELF_TRADE";
|
|
141
|
+
|
|
142
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_CONDITIONAL_FOK_COULD_NOT_BE_FULLY_FILLED:
|
|
143
|
+
return "REMOVAL_REASON_CONDITIONAL_FOK_COULD_NOT_BE_FULLY_FILLED";
|
|
144
|
+
|
|
145
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_CONDITIONAL_IOC_WOULD_REST_ON_BOOK:
|
|
146
|
+
return "REMOVAL_REASON_CONDITIONAL_IOC_WOULD_REST_ON_BOOK";
|
|
147
|
+
|
|
148
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_FULLY_FILLED:
|
|
149
|
+
return "REMOVAL_REASON_FULLY_FILLED";
|
|
150
|
+
|
|
151
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_VIOLATES_ISOLATED_SUBACCOUNT_CONSTRAINTS:
|
|
152
|
+
return "REMOVAL_REASON_VIOLATES_ISOLATED_SUBACCOUNT_CONSTRAINTS";
|
|
153
|
+
|
|
154
|
+
case OrderRemoval_RemovalReason.REMOVAL_REASON_PERMISSIONED_KEY_EXPIRED:
|
|
155
|
+
return "REMOVAL_REASON_PERMISSIONED_KEY_EXPIRED";
|
|
156
|
+
|
|
157
|
+
case OrderRemoval_RemovalReason.UNRECOGNIZED:
|
|
158
|
+
default:
|
|
159
|
+
return "UNRECOGNIZED";
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/** OrderRemoval is a request type used for forced removal of stateful orders. */
|
|
163
|
+
|
|
164
|
+
export interface OrderRemoval {
|
|
165
|
+
orderId?: OrderId;
|
|
166
|
+
removalReason: OrderRemoval_RemovalReason;
|
|
167
|
+
}
|
|
168
|
+
/** OrderRemoval is a request type used for forced removal of stateful orders. */
|
|
169
|
+
|
|
170
|
+
export interface OrderRemovalSDKType {
|
|
171
|
+
order_id?: OrderIdSDKType;
|
|
172
|
+
removal_reason: OrderRemoval_RemovalReason;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function createBaseOrderRemoval(): OrderRemoval {
|
|
176
|
+
return {
|
|
177
|
+
orderId: undefined,
|
|
178
|
+
removalReason: 0
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export const OrderRemoval = {
|
|
183
|
+
encode(message: OrderRemoval, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
184
|
+
if (message.orderId !== undefined) {
|
|
185
|
+
OrderId.encode(message.orderId, writer.uint32(10).fork()).ldelim();
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (message.removalReason !== 0) {
|
|
189
|
+
writer.uint32(16).int32(message.removalReason);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return writer;
|
|
193
|
+
},
|
|
194
|
+
|
|
195
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OrderRemoval {
|
|
196
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
197
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
198
|
+
const message = createBaseOrderRemoval();
|
|
199
|
+
|
|
200
|
+
while (reader.pos < end) {
|
|
201
|
+
const tag = reader.uint32();
|
|
202
|
+
|
|
203
|
+
switch (tag >>> 3) {
|
|
204
|
+
case 1:
|
|
205
|
+
message.orderId = OrderId.decode(reader, reader.uint32());
|
|
206
|
+
break;
|
|
207
|
+
|
|
208
|
+
case 2:
|
|
209
|
+
message.removalReason = (reader.int32() as any);
|
|
210
|
+
break;
|
|
211
|
+
|
|
212
|
+
default:
|
|
213
|
+
reader.skipType(tag & 7);
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
|
|
221
|
+
fromPartial(object: DeepPartial<OrderRemoval>): OrderRemoval {
|
|
222
|
+
const message = createBaseOrderRemoval();
|
|
223
|
+
message.orderId = object.orderId !== undefined && object.orderId !== null ? OrderId.fromPartial(object.orderId) : undefined;
|
|
224
|
+
message.removalReason = object.removalReason ?? 0;
|
|
225
|
+
return message;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { OrderId, OrderIdSDKType } from "./order";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { DeepPartial } from "../../helpers";
|
|
4
|
+
/**
|
|
5
|
+
* ProcessProposerMatchesEvents is used for communicating which events occurred
|
|
6
|
+
* in the last block that require updating the state of the memclob in the
|
|
7
|
+
* Commit blocker. It contains information about the following state updates:
|
|
8
|
+
* - Long term order IDs that were placed in the last block.
|
|
9
|
+
* - Stateful order IDs that were expired in the last block.
|
|
10
|
+
* - Order IDs that were filled in the last block.
|
|
11
|
+
* - Stateful cancellations order IDs that were placed in the last block.
|
|
12
|
+
* - Stateful order IDs forcefully removed in the last block.
|
|
13
|
+
* - Conditional order IDs triggered in the last block.
|
|
14
|
+
* - Conditional order IDs placed, but not triggered in the last block.
|
|
15
|
+
* - The height of the block in which the events occurred.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export interface ProcessProposerMatchesEvents {
|
|
19
|
+
/** @deprecated */
|
|
20
|
+
placedLongTermOrderIds: OrderId[];
|
|
21
|
+
expiredStatefulOrderIds: OrderId[];
|
|
22
|
+
orderIdsFilledInLastBlock: OrderId[];
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
|
|
25
|
+
placedStatefulCancellationOrderIds: OrderId[];
|
|
26
|
+
removedStatefulOrderIds: OrderId[];
|
|
27
|
+
conditionalOrderIdsTriggeredInLastBlock: OrderId[];
|
|
28
|
+
/** @deprecated */
|
|
29
|
+
|
|
30
|
+
placedConditionalOrderIds: OrderId[];
|
|
31
|
+
blockHeight: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* ProcessProposerMatchesEvents is used for communicating which events occurred
|
|
35
|
+
* in the last block that require updating the state of the memclob in the
|
|
36
|
+
* Commit blocker. It contains information about the following state updates:
|
|
37
|
+
* - Long term order IDs that were placed in the last block.
|
|
38
|
+
* - Stateful order IDs that were expired in the last block.
|
|
39
|
+
* - Order IDs that were filled in the last block.
|
|
40
|
+
* - Stateful cancellations order IDs that were placed in the last block.
|
|
41
|
+
* - Stateful order IDs forcefully removed in the last block.
|
|
42
|
+
* - Conditional order IDs triggered in the last block.
|
|
43
|
+
* - Conditional order IDs placed, but not triggered in the last block.
|
|
44
|
+
* - The height of the block in which the events occurred.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
export interface ProcessProposerMatchesEventsSDKType {
|
|
48
|
+
/** @deprecated */
|
|
49
|
+
placed_long_term_order_ids: OrderIdSDKType[];
|
|
50
|
+
expired_stateful_order_ids: OrderIdSDKType[];
|
|
51
|
+
order_ids_filled_in_last_block: OrderIdSDKType[];
|
|
52
|
+
/** @deprecated */
|
|
53
|
+
|
|
54
|
+
placed_stateful_cancellation_order_ids: OrderIdSDKType[];
|
|
55
|
+
removed_stateful_order_ids: OrderIdSDKType[];
|
|
56
|
+
conditional_order_ids_triggered_in_last_block: OrderIdSDKType[];
|
|
57
|
+
/** @deprecated */
|
|
58
|
+
|
|
59
|
+
placed_conditional_order_ids: OrderIdSDKType[];
|
|
60
|
+
block_height: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function createBaseProcessProposerMatchesEvents(): ProcessProposerMatchesEvents {
|
|
64
|
+
return {
|
|
65
|
+
placedLongTermOrderIds: [],
|
|
66
|
+
expiredStatefulOrderIds: [],
|
|
67
|
+
orderIdsFilledInLastBlock: [],
|
|
68
|
+
placedStatefulCancellationOrderIds: [],
|
|
69
|
+
removedStatefulOrderIds: [],
|
|
70
|
+
conditionalOrderIdsTriggeredInLastBlock: [],
|
|
71
|
+
placedConditionalOrderIds: [],
|
|
72
|
+
blockHeight: 0
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export const ProcessProposerMatchesEvents = {
|
|
77
|
+
encode(message: ProcessProposerMatchesEvents, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
78
|
+
for (const v of message.placedLongTermOrderIds) {
|
|
79
|
+
OrderId.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
for (const v of message.expiredStatefulOrderIds) {
|
|
83
|
+
OrderId.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
for (const v of message.orderIdsFilledInLastBlock) {
|
|
87
|
+
OrderId.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
for (const v of message.placedStatefulCancellationOrderIds) {
|
|
91
|
+
OrderId.encode(v!, writer.uint32(34).fork()).ldelim();
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
for (const v of message.removedStatefulOrderIds) {
|
|
95
|
+
OrderId.encode(v!, writer.uint32(42).fork()).ldelim();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
for (const v of message.conditionalOrderIdsTriggeredInLastBlock) {
|
|
99
|
+
OrderId.encode(v!, writer.uint32(50).fork()).ldelim();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
for (const v of message.placedConditionalOrderIds) {
|
|
103
|
+
OrderId.encode(v!, writer.uint32(58).fork()).ldelim();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (message.blockHeight !== 0) {
|
|
107
|
+
writer.uint32(64).uint32(message.blockHeight);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return writer;
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ProcessProposerMatchesEvents {
|
|
114
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
115
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
116
|
+
const message = createBaseProcessProposerMatchesEvents();
|
|
117
|
+
|
|
118
|
+
while (reader.pos < end) {
|
|
119
|
+
const tag = reader.uint32();
|
|
120
|
+
|
|
121
|
+
switch (tag >>> 3) {
|
|
122
|
+
case 1:
|
|
123
|
+
message.placedLongTermOrderIds.push(OrderId.decode(reader, reader.uint32()));
|
|
124
|
+
break;
|
|
125
|
+
|
|
126
|
+
case 2:
|
|
127
|
+
message.expiredStatefulOrderIds.push(OrderId.decode(reader, reader.uint32()));
|
|
128
|
+
break;
|
|
129
|
+
|
|
130
|
+
case 3:
|
|
131
|
+
message.orderIdsFilledInLastBlock.push(OrderId.decode(reader, reader.uint32()));
|
|
132
|
+
break;
|
|
133
|
+
|
|
134
|
+
case 4:
|
|
135
|
+
message.placedStatefulCancellationOrderIds.push(OrderId.decode(reader, reader.uint32()));
|
|
136
|
+
break;
|
|
137
|
+
|
|
138
|
+
case 5:
|
|
139
|
+
message.removedStatefulOrderIds.push(OrderId.decode(reader, reader.uint32()));
|
|
140
|
+
break;
|
|
141
|
+
|
|
142
|
+
case 6:
|
|
143
|
+
message.conditionalOrderIdsTriggeredInLastBlock.push(OrderId.decode(reader, reader.uint32()));
|
|
144
|
+
break;
|
|
145
|
+
|
|
146
|
+
case 7:
|
|
147
|
+
message.placedConditionalOrderIds.push(OrderId.decode(reader, reader.uint32()));
|
|
148
|
+
break;
|
|
149
|
+
|
|
150
|
+
case 8:
|
|
151
|
+
message.blockHeight = reader.uint32();
|
|
152
|
+
break;
|
|
153
|
+
|
|
154
|
+
default:
|
|
155
|
+
reader.skipType(tag & 7);
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
fromPartial(object: DeepPartial<ProcessProposerMatchesEvents>): ProcessProposerMatchesEvents {
|
|
164
|
+
const message = createBaseProcessProposerMatchesEvents();
|
|
165
|
+
message.placedLongTermOrderIds = object.placedLongTermOrderIds?.map(e => OrderId.fromPartial(e)) || [];
|
|
166
|
+
message.expiredStatefulOrderIds = object.expiredStatefulOrderIds?.map(e => OrderId.fromPartial(e)) || [];
|
|
167
|
+
message.orderIdsFilledInLastBlock = object.orderIdsFilledInLastBlock?.map(e => OrderId.fromPartial(e)) || [];
|
|
168
|
+
message.placedStatefulCancellationOrderIds = object.placedStatefulCancellationOrderIds?.map(e => OrderId.fromPartial(e)) || [];
|
|
169
|
+
message.removedStatefulOrderIds = object.removedStatefulOrderIds?.map(e => OrderId.fromPartial(e)) || [];
|
|
170
|
+
message.conditionalOrderIdsTriggeredInLastBlock = object.conditionalOrderIdsTriggeredInLastBlock?.map(e => OrderId.fromPartial(e)) || [];
|
|
171
|
+
message.placedConditionalOrderIds = object.placedConditionalOrderIds?.map(e => OrderId.fromPartial(e)) || [];
|
|
172
|
+
message.blockHeight = object.blockHeight ?? 0;
|
|
173
|
+
return message;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { setPaginationParams } from "../../helpers";
|
|
2
|
+
import { LCDClient } from "@osmonauts/lcd";
|
|
3
|
+
import { QueryGetClobPairRequest, QueryClobPairResponseSDKType, QueryAllClobPairRequest, QueryClobPairAllResponseSDKType, QueryEquityTierLimitConfigurationRequest, QueryEquityTierLimitConfigurationResponseSDKType, QueryBlockRateLimitConfigurationRequest, QueryBlockRateLimitConfigurationResponseSDKType, QueryLiquidationsConfigurationRequest, QueryLiquidationsConfigurationResponseSDKType, QueryNextClobPairIdRequest, QueryNextClobPairIdResponseSDKType, QueryLeverageRequest, QueryLeverageResponseSDKType } from "./query";
|
|
4
|
+
export class LCDQueryClient {
|
|
5
|
+
req: LCDClient;
|
|
6
|
+
|
|
7
|
+
constructor({
|
|
8
|
+
requestClient
|
|
9
|
+
}: {
|
|
10
|
+
requestClient: LCDClient;
|
|
11
|
+
}) {
|
|
12
|
+
this.req = requestClient;
|
|
13
|
+
this.clobPair = this.clobPair.bind(this);
|
|
14
|
+
this.clobPairAll = this.clobPairAll.bind(this);
|
|
15
|
+
this.equityTierLimitConfiguration = this.equityTierLimitConfiguration.bind(this);
|
|
16
|
+
this.blockRateLimitConfiguration = this.blockRateLimitConfiguration.bind(this);
|
|
17
|
+
this.liquidationsConfiguration = this.liquidationsConfiguration.bind(this);
|
|
18
|
+
this.nextClobPairId = this.nextClobPairId.bind(this);
|
|
19
|
+
this.leverage = this.leverage.bind(this);
|
|
20
|
+
}
|
|
21
|
+
/* Queries a ClobPair by id. */
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
async clobPair(params: QueryGetClobPairRequest): Promise<QueryClobPairResponseSDKType> {
|
|
25
|
+
const endpoint = `zogux/clob/clob_pair/${params.id}`;
|
|
26
|
+
return await this.req.get<QueryClobPairResponseSDKType>(endpoint);
|
|
27
|
+
}
|
|
28
|
+
/* Queries a list of ClobPair items. */
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
async clobPairAll(params: QueryAllClobPairRequest = {
|
|
32
|
+
pagination: undefined
|
|
33
|
+
}): Promise<QueryClobPairAllResponseSDKType> {
|
|
34
|
+
const options: any = {
|
|
35
|
+
params: {}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
if (typeof params?.pagination !== "undefined") {
|
|
39
|
+
setPaginationParams(options, params.pagination);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const endpoint = `zogux/clob/clob_pair`;
|
|
43
|
+
return await this.req.get<QueryClobPairAllResponseSDKType>(endpoint, options);
|
|
44
|
+
}
|
|
45
|
+
/* Queries EquityTierLimitConfiguration. */
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
async equityTierLimitConfiguration(_params: QueryEquityTierLimitConfigurationRequest = {}): Promise<QueryEquityTierLimitConfigurationResponseSDKType> {
|
|
49
|
+
const endpoint = `zogux/clob/equity_tier`;
|
|
50
|
+
return await this.req.get<QueryEquityTierLimitConfigurationResponseSDKType>(endpoint);
|
|
51
|
+
}
|
|
52
|
+
/* Queries BlockRateLimitConfiguration. */
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
async blockRateLimitConfiguration(_params: QueryBlockRateLimitConfigurationRequest = {}): Promise<QueryBlockRateLimitConfigurationResponseSDKType> {
|
|
56
|
+
const endpoint = `zogux/clob/block_rate`;
|
|
57
|
+
return await this.req.get<QueryBlockRateLimitConfigurationResponseSDKType>(endpoint);
|
|
58
|
+
}
|
|
59
|
+
/* Queries LiquidationsConfiguration. */
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
async liquidationsConfiguration(_params: QueryLiquidationsConfigurationRequest = {}): Promise<QueryLiquidationsConfigurationResponseSDKType> {
|
|
63
|
+
const endpoint = `zogux/clob/liquidations_config`;
|
|
64
|
+
return await this.req.get<QueryLiquidationsConfigurationResponseSDKType>(endpoint);
|
|
65
|
+
}
|
|
66
|
+
/* Queries the next clob pair id. */
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
async nextClobPairId(_params: QueryNextClobPairIdRequest = {}): Promise<QueryNextClobPairIdResponseSDKType> {
|
|
70
|
+
const endpoint = `zogux/clob/next_clob_pair_id`;
|
|
71
|
+
return await this.req.get<QueryNextClobPairIdResponseSDKType>(endpoint);
|
|
72
|
+
}
|
|
73
|
+
/* Queries leverage for a subaccount. */
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
async leverage(params: QueryLeverageRequest): Promise<QueryLeverageResponseSDKType> {
|
|
77
|
+
const endpoint = `zogux/clob/leverage/${params.owner}/${params.number}`;
|
|
78
|
+
return await this.req.get<QueryLeverageResponseSDKType>(endpoint);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { Rpc } from "../../helpers";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
|
|
4
|
+
import { QueryGetClobPairRequest, QueryClobPairResponse, QueryAllClobPairRequest, QueryClobPairAllResponse, MevNodeToNodeCalculationRequest, MevNodeToNodeCalculationResponse, QueryEquityTierLimitConfigurationRequest, QueryEquityTierLimitConfigurationResponse, QueryBlockRateLimitConfigurationRequest, QueryBlockRateLimitConfigurationResponse, QueryLiquidationsConfigurationRequest, QueryLiquidationsConfigurationResponse, QueryStatefulOrderRequest, QueryStatefulOrderResponse, QueryNextClobPairIdRequest, QueryNextClobPairIdResponse, QueryLeverageRequest, QueryLeverageResponse, StreamOrderbookUpdatesRequest, StreamOrderbookUpdatesResponse } from "./query";
|
|
5
|
+
/** Query defines the gRPC querier service. */
|
|
6
|
+
|
|
7
|
+
export interface Query {
|
|
8
|
+
/** Queries a ClobPair by id. */
|
|
9
|
+
clobPair(request: QueryGetClobPairRequest): Promise<QueryClobPairResponse>;
|
|
10
|
+
/** Queries a list of ClobPair items. */
|
|
11
|
+
|
|
12
|
+
clobPairAll(request?: QueryAllClobPairRequest): Promise<QueryClobPairAllResponse>;
|
|
13
|
+
/** Runs the MEV node <> node calculation with the provided parameters. */
|
|
14
|
+
|
|
15
|
+
mevNodeToNodeCalculation(request: MevNodeToNodeCalculationRequest): Promise<MevNodeToNodeCalculationResponse>;
|
|
16
|
+
/** Queries EquityTierLimitConfiguration. */
|
|
17
|
+
|
|
18
|
+
equityTierLimitConfiguration(request?: QueryEquityTierLimitConfigurationRequest): Promise<QueryEquityTierLimitConfigurationResponse>;
|
|
19
|
+
/** Queries BlockRateLimitConfiguration. */
|
|
20
|
+
|
|
21
|
+
blockRateLimitConfiguration(request?: QueryBlockRateLimitConfigurationRequest): Promise<QueryBlockRateLimitConfigurationResponse>;
|
|
22
|
+
/** Queries LiquidationsConfiguration. */
|
|
23
|
+
|
|
24
|
+
liquidationsConfiguration(request?: QueryLiquidationsConfigurationRequest): Promise<QueryLiquidationsConfigurationResponse>;
|
|
25
|
+
/** Queries the stateful order for a given order id. */
|
|
26
|
+
|
|
27
|
+
statefulOrder(request: QueryStatefulOrderRequest): Promise<QueryStatefulOrderResponse>;
|
|
28
|
+
/** Queries the next clob pair id. */
|
|
29
|
+
|
|
30
|
+
nextClobPairId(request?: QueryNextClobPairIdRequest): Promise<QueryNextClobPairIdResponse>;
|
|
31
|
+
/** Queries leverage for a subaccount. */
|
|
32
|
+
|
|
33
|
+
leverage(request: QueryLeverageRequest): Promise<QueryLeverageResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Streams orderbook updates. Updates contain orderbook data
|
|
36
|
+
* such as order placements, updates, and fills.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
streamOrderbookUpdates(request: StreamOrderbookUpdatesRequest): Promise<StreamOrderbookUpdatesResponse>;
|
|
40
|
+
}
|
|
41
|
+
export class QueryClientImpl implements Query {
|
|
42
|
+
private readonly rpc: Rpc;
|
|
43
|
+
|
|
44
|
+
constructor(rpc: Rpc) {
|
|
45
|
+
this.rpc = rpc;
|
|
46
|
+
this.clobPair = this.clobPair.bind(this);
|
|
47
|
+
this.clobPairAll = this.clobPairAll.bind(this);
|
|
48
|
+
this.mevNodeToNodeCalculation = this.mevNodeToNodeCalculation.bind(this);
|
|
49
|
+
this.equityTierLimitConfiguration = this.equityTierLimitConfiguration.bind(this);
|
|
50
|
+
this.blockRateLimitConfiguration = this.blockRateLimitConfiguration.bind(this);
|
|
51
|
+
this.liquidationsConfiguration = this.liquidationsConfiguration.bind(this);
|
|
52
|
+
this.statefulOrder = this.statefulOrder.bind(this);
|
|
53
|
+
this.nextClobPairId = this.nextClobPairId.bind(this);
|
|
54
|
+
this.leverage = this.leverage.bind(this);
|
|
55
|
+
this.streamOrderbookUpdates = this.streamOrderbookUpdates.bind(this);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
clobPair(request: QueryGetClobPairRequest): Promise<QueryClobPairResponse> {
|
|
59
|
+
const data = QueryGetClobPairRequest.encode(request).finish();
|
|
60
|
+
const promise = this.rpc.request("zogux.clob.Query", "ClobPair", data);
|
|
61
|
+
return promise.then(data => QueryClobPairResponse.decode(new _m0.Reader(data)));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
clobPairAll(request: QueryAllClobPairRequest = {
|
|
65
|
+
pagination: undefined
|
|
66
|
+
}): Promise<QueryClobPairAllResponse> {
|
|
67
|
+
const data = QueryAllClobPairRequest.encode(request).finish();
|
|
68
|
+
const promise = this.rpc.request("zogux.clob.Query", "ClobPairAll", data);
|
|
69
|
+
return promise.then(data => QueryClobPairAllResponse.decode(new _m0.Reader(data)));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
mevNodeToNodeCalculation(request: MevNodeToNodeCalculationRequest): Promise<MevNodeToNodeCalculationResponse> {
|
|
73
|
+
const data = MevNodeToNodeCalculationRequest.encode(request).finish();
|
|
74
|
+
const promise = this.rpc.request("zogux.clob.Query", "MevNodeToNodeCalculation", data);
|
|
75
|
+
return promise.then(data => MevNodeToNodeCalculationResponse.decode(new _m0.Reader(data)));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
equityTierLimitConfiguration(request: QueryEquityTierLimitConfigurationRequest = {}): Promise<QueryEquityTierLimitConfigurationResponse> {
|
|
79
|
+
const data = QueryEquityTierLimitConfigurationRequest.encode(request).finish();
|
|
80
|
+
const promise = this.rpc.request("zogux.clob.Query", "EquityTierLimitConfiguration", data);
|
|
81
|
+
return promise.then(data => QueryEquityTierLimitConfigurationResponse.decode(new _m0.Reader(data)));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
blockRateLimitConfiguration(request: QueryBlockRateLimitConfigurationRequest = {}): Promise<QueryBlockRateLimitConfigurationResponse> {
|
|
85
|
+
const data = QueryBlockRateLimitConfigurationRequest.encode(request).finish();
|
|
86
|
+
const promise = this.rpc.request("zogux.clob.Query", "BlockRateLimitConfiguration", data);
|
|
87
|
+
return promise.then(data => QueryBlockRateLimitConfigurationResponse.decode(new _m0.Reader(data)));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
liquidationsConfiguration(request: QueryLiquidationsConfigurationRequest = {}): Promise<QueryLiquidationsConfigurationResponse> {
|
|
91
|
+
const data = QueryLiquidationsConfigurationRequest.encode(request).finish();
|
|
92
|
+
const promise = this.rpc.request("zogux.clob.Query", "LiquidationsConfiguration", data);
|
|
93
|
+
return promise.then(data => QueryLiquidationsConfigurationResponse.decode(new _m0.Reader(data)));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
statefulOrder(request: QueryStatefulOrderRequest): Promise<QueryStatefulOrderResponse> {
|
|
97
|
+
const data = QueryStatefulOrderRequest.encode(request).finish();
|
|
98
|
+
const promise = this.rpc.request("zogux.clob.Query", "StatefulOrder", data);
|
|
99
|
+
return promise.then(data => QueryStatefulOrderResponse.decode(new _m0.Reader(data)));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
nextClobPairId(request: QueryNextClobPairIdRequest = {}): Promise<QueryNextClobPairIdResponse> {
|
|
103
|
+
const data = QueryNextClobPairIdRequest.encode(request).finish();
|
|
104
|
+
const promise = this.rpc.request("zogux.clob.Query", "NextClobPairId", data);
|
|
105
|
+
return promise.then(data => QueryNextClobPairIdResponse.decode(new _m0.Reader(data)));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
leverage(request: QueryLeverageRequest): Promise<QueryLeverageResponse> {
|
|
109
|
+
const data = QueryLeverageRequest.encode(request).finish();
|
|
110
|
+
const promise = this.rpc.request("zogux.clob.Query", "Leverage", data);
|
|
111
|
+
return promise.then(data => QueryLeverageResponse.decode(new _m0.Reader(data)));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
streamOrderbookUpdates(request: StreamOrderbookUpdatesRequest): Promise<StreamOrderbookUpdatesResponse> {
|
|
115
|
+
const data = StreamOrderbookUpdatesRequest.encode(request).finish();
|
|
116
|
+
const promise = this.rpc.request("zogux.clob.Query", "StreamOrderbookUpdates", data);
|
|
117
|
+
return promise.then(data => StreamOrderbookUpdatesResponse.decode(new _m0.Reader(data)));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
export const createRpcQueryExtension = (base: QueryClient) => {
|
|
122
|
+
const rpc = createProtobufRpcClient(base);
|
|
123
|
+
const queryService = new QueryClientImpl(rpc);
|
|
124
|
+
return {
|
|
125
|
+
clobPair(request: QueryGetClobPairRequest): Promise<QueryClobPairResponse> {
|
|
126
|
+
return queryService.clobPair(request);
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
clobPairAll(request?: QueryAllClobPairRequest): Promise<QueryClobPairAllResponse> {
|
|
130
|
+
return queryService.clobPairAll(request);
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
mevNodeToNodeCalculation(request: MevNodeToNodeCalculationRequest): Promise<MevNodeToNodeCalculationResponse> {
|
|
134
|
+
return queryService.mevNodeToNodeCalculation(request);
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
equityTierLimitConfiguration(request?: QueryEquityTierLimitConfigurationRequest): Promise<QueryEquityTierLimitConfigurationResponse> {
|
|
138
|
+
return queryService.equityTierLimitConfiguration(request);
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
blockRateLimitConfiguration(request?: QueryBlockRateLimitConfigurationRequest): Promise<QueryBlockRateLimitConfigurationResponse> {
|
|
142
|
+
return queryService.blockRateLimitConfiguration(request);
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
liquidationsConfiguration(request?: QueryLiquidationsConfigurationRequest): Promise<QueryLiquidationsConfigurationResponse> {
|
|
146
|
+
return queryService.liquidationsConfiguration(request);
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
statefulOrder(request: QueryStatefulOrderRequest): Promise<QueryStatefulOrderResponse> {
|
|
150
|
+
return queryService.statefulOrder(request);
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
nextClobPairId(request?: QueryNextClobPairIdRequest): Promise<QueryNextClobPairIdResponse> {
|
|
154
|
+
return queryService.nextClobPairId(request);
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
leverage(request: QueryLeverageRequest): Promise<QueryLeverageResponse> {
|
|
158
|
+
return queryService.leverage(request);
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
streamOrderbookUpdates(request: StreamOrderbookUpdatesRequest): Promise<StreamOrderbookUpdatesResponse> {
|
|
162
|
+
return queryService.streamOrderbookUpdates(request);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
};
|
|
166
|
+
};
|