@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,1945 @@
|
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { ValidatorMevMatches, ValidatorMevMatchesSDKType, MevNodeToNodeMetrics, MevNodeToNodeMetricsSDKType } from "./mev";
|
|
3
|
+
import { OrderId, OrderIdSDKType, LongTermOrderPlacement, LongTermOrderPlacementSDKType, Order, OrderSDKType, StreamLiquidationOrder, StreamLiquidationOrderSDKType } from "./order";
|
|
4
|
+
import { SubaccountId, SubaccountIdSDKType } from "../subaccounts/subaccount";
|
|
5
|
+
import { ClobPair, ClobPairSDKType } from "./clob_pair";
|
|
6
|
+
import { EquityTierLimitConfiguration, EquityTierLimitConfigurationSDKType } from "./equity_tier_limit_config";
|
|
7
|
+
import { BlockRateLimitConfiguration, BlockRateLimitConfigurationSDKType } from "./block_rate_limit_config";
|
|
8
|
+
import { LiquidationsConfig, LiquidationsConfigSDKType } from "./liquidations_config";
|
|
9
|
+
import { StreamSubaccountUpdate, StreamSubaccountUpdateSDKType } from "../subaccounts/streaming";
|
|
10
|
+
import { StreamPriceUpdate, StreamPriceUpdateSDKType } from "../prices/streaming";
|
|
11
|
+
import { OffChainUpdateV1, OffChainUpdateV1SDKType } from "../indexer/off_chain_updates/off_chain_updates";
|
|
12
|
+
import { ClobMatch, ClobMatchSDKType } from "./matches";
|
|
13
|
+
import * as _m0 from "protobufjs/minimal";
|
|
14
|
+
import { DeepPartial, Long } from "../../helpers";
|
|
15
|
+
/** QueryGetClobPairRequest is request type for the ClobPair method. */
|
|
16
|
+
|
|
17
|
+
export interface QueryGetClobPairRequest {
|
|
18
|
+
/** QueryGetClobPairRequest is request type for the ClobPair method. */
|
|
19
|
+
id: number;
|
|
20
|
+
}
|
|
21
|
+
/** QueryGetClobPairRequest is request type for the ClobPair method. */
|
|
22
|
+
|
|
23
|
+
export interface QueryGetClobPairRequestSDKType {
|
|
24
|
+
id: number;
|
|
25
|
+
}
|
|
26
|
+
/** QueryClobPairResponse is response type for the ClobPair method. */
|
|
27
|
+
|
|
28
|
+
export interface QueryClobPairResponse {
|
|
29
|
+
clobPair?: ClobPair;
|
|
30
|
+
}
|
|
31
|
+
/** QueryClobPairResponse is response type for the ClobPair method. */
|
|
32
|
+
|
|
33
|
+
export interface QueryClobPairResponseSDKType {
|
|
34
|
+
clob_pair?: ClobPairSDKType;
|
|
35
|
+
}
|
|
36
|
+
/** QueryAllClobPairRequest is request type for the ClobPairAll method. */
|
|
37
|
+
|
|
38
|
+
export interface QueryAllClobPairRequest {
|
|
39
|
+
pagination?: PageRequest;
|
|
40
|
+
}
|
|
41
|
+
/** QueryAllClobPairRequest is request type for the ClobPairAll method. */
|
|
42
|
+
|
|
43
|
+
export interface QueryAllClobPairRequestSDKType {
|
|
44
|
+
pagination?: PageRequestSDKType;
|
|
45
|
+
}
|
|
46
|
+
/** QueryClobPairAllResponse is response type for the ClobPairAll method. */
|
|
47
|
+
|
|
48
|
+
export interface QueryClobPairAllResponse {
|
|
49
|
+
clobPair: ClobPair[];
|
|
50
|
+
pagination?: PageResponse;
|
|
51
|
+
}
|
|
52
|
+
/** QueryClobPairAllResponse is response type for the ClobPairAll method. */
|
|
53
|
+
|
|
54
|
+
export interface QueryClobPairAllResponseSDKType {
|
|
55
|
+
clob_pair: ClobPairSDKType[];
|
|
56
|
+
pagination?: PageResponseSDKType;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* MevNodeToNodeCalculationRequest is a request message used to run the
|
|
60
|
+
* MEV node <> node calculation.
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
export interface MevNodeToNodeCalculationRequest {
|
|
64
|
+
/**
|
|
65
|
+
* Represents the matches on the "block proposer". Note that this field
|
|
66
|
+
* does not need to be the actual block proposer's matches for a block, since
|
|
67
|
+
* the MEV calculation logic is run with this nodes matches as the "block
|
|
68
|
+
* proposer" matches.
|
|
69
|
+
*/
|
|
70
|
+
blockProposerMatches?: ValidatorMevMatches;
|
|
71
|
+
/** Represents the matches and mid-prices on the validator. */
|
|
72
|
+
|
|
73
|
+
validatorMevMetrics?: MevNodeToNodeMetrics;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* MevNodeToNodeCalculationRequest is a request message used to run the
|
|
77
|
+
* MEV node <> node calculation.
|
|
78
|
+
*/
|
|
79
|
+
|
|
80
|
+
export interface MevNodeToNodeCalculationRequestSDKType {
|
|
81
|
+
block_proposer_matches?: ValidatorMevMatchesSDKType;
|
|
82
|
+
validator_mev_metrics?: MevNodeToNodeMetricsSDKType;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* MevNodeToNodeCalculationResponse is a response message that contains the
|
|
86
|
+
* MEV node <> node calculation result.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
export interface MevNodeToNodeCalculationResponse {
|
|
90
|
+
results: MevNodeToNodeCalculationResponse_MevAndVolumePerClob[];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* MevNodeToNodeCalculationResponse is a response message that contains the
|
|
94
|
+
* MEV node <> node calculation result.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
export interface MevNodeToNodeCalculationResponseSDKType {
|
|
98
|
+
results: MevNodeToNodeCalculationResponse_MevAndVolumePerClobSDKType[];
|
|
99
|
+
}
|
|
100
|
+
/** MevAndVolumePerClob contains information about the MEV and volume per CLOB. */
|
|
101
|
+
|
|
102
|
+
export interface MevNodeToNodeCalculationResponse_MevAndVolumePerClob {
|
|
103
|
+
clobPairId: number;
|
|
104
|
+
mev: number;
|
|
105
|
+
volume: Long;
|
|
106
|
+
}
|
|
107
|
+
/** MevAndVolumePerClob contains information about the MEV and volume per CLOB. */
|
|
108
|
+
|
|
109
|
+
export interface MevNodeToNodeCalculationResponse_MevAndVolumePerClobSDKType {
|
|
110
|
+
clob_pair_id: number;
|
|
111
|
+
mev: number;
|
|
112
|
+
volume: Long;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* QueryEquityTierLimitConfigurationRequest is a request message for
|
|
116
|
+
* EquityTierLimitConfiguration.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
export interface QueryEquityTierLimitConfigurationRequest {}
|
|
120
|
+
/**
|
|
121
|
+
* QueryEquityTierLimitConfigurationRequest is a request message for
|
|
122
|
+
* EquityTierLimitConfiguration.
|
|
123
|
+
*/
|
|
124
|
+
|
|
125
|
+
export interface QueryEquityTierLimitConfigurationRequestSDKType {}
|
|
126
|
+
/**
|
|
127
|
+
* QueryEquityTierLimitConfigurationResponse is a response message that contains
|
|
128
|
+
* the EquityTierLimitConfiguration.
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
export interface QueryEquityTierLimitConfigurationResponse {
|
|
132
|
+
equityTierLimitConfig?: EquityTierLimitConfiguration;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* QueryEquityTierLimitConfigurationResponse is a response message that contains
|
|
136
|
+
* the EquityTierLimitConfiguration.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
export interface QueryEquityTierLimitConfigurationResponseSDKType {
|
|
140
|
+
equity_tier_limit_config?: EquityTierLimitConfigurationSDKType;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* QueryBlockRateLimitConfigurationRequest is a request message for
|
|
144
|
+
* BlockRateLimitConfiguration.
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
export interface QueryBlockRateLimitConfigurationRequest {}
|
|
148
|
+
/**
|
|
149
|
+
* QueryBlockRateLimitConfigurationRequest is a request message for
|
|
150
|
+
* BlockRateLimitConfiguration.
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
export interface QueryBlockRateLimitConfigurationRequestSDKType {}
|
|
154
|
+
/**
|
|
155
|
+
* QueryBlockRateLimitConfigurationResponse is a response message that contains
|
|
156
|
+
* the BlockRateLimitConfiguration.
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
export interface QueryBlockRateLimitConfigurationResponse {
|
|
160
|
+
blockRateLimitConfig?: BlockRateLimitConfiguration;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* QueryBlockRateLimitConfigurationResponse is a response message that contains
|
|
164
|
+
* the BlockRateLimitConfiguration.
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
export interface QueryBlockRateLimitConfigurationResponseSDKType {
|
|
168
|
+
block_rate_limit_config?: BlockRateLimitConfigurationSDKType;
|
|
169
|
+
}
|
|
170
|
+
/** QueryStatefulOrderRequest is a request message for StatefulOrder. */
|
|
171
|
+
|
|
172
|
+
export interface QueryStatefulOrderRequest {
|
|
173
|
+
/** Order id to query. */
|
|
174
|
+
orderId?: OrderId;
|
|
175
|
+
}
|
|
176
|
+
/** QueryStatefulOrderRequest is a request message for StatefulOrder. */
|
|
177
|
+
|
|
178
|
+
export interface QueryStatefulOrderRequestSDKType {
|
|
179
|
+
order_id?: OrderIdSDKType;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* QueryStatefulOrderResponse is a response message that contains the stateful
|
|
183
|
+
* order.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
export interface QueryStatefulOrderResponse {
|
|
187
|
+
/** Stateful order placement. */
|
|
188
|
+
orderPlacement?: LongTermOrderPlacement;
|
|
189
|
+
/** Fill amounts. */
|
|
190
|
+
|
|
191
|
+
fillAmount: Long;
|
|
192
|
+
/** Triggered status. */
|
|
193
|
+
|
|
194
|
+
triggered: boolean;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* QueryStatefulOrderResponse is a response message that contains the stateful
|
|
198
|
+
* order.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
export interface QueryStatefulOrderResponseSDKType {
|
|
202
|
+
order_placement?: LongTermOrderPlacementSDKType;
|
|
203
|
+
fill_amount: Long;
|
|
204
|
+
triggered: boolean;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* QueryLiquidationsConfigurationRequest is a request message for
|
|
208
|
+
* LiquidationsConfiguration.
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
export interface QueryLiquidationsConfigurationRequest {}
|
|
212
|
+
/**
|
|
213
|
+
* QueryLiquidationsConfigurationRequest is a request message for
|
|
214
|
+
* LiquidationsConfiguration.
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
export interface QueryLiquidationsConfigurationRequestSDKType {}
|
|
218
|
+
/**
|
|
219
|
+
* QueryLiquidationsConfigurationResponse is a response message that contains
|
|
220
|
+
* the LiquidationsConfiguration.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
export interface QueryLiquidationsConfigurationResponse {
|
|
224
|
+
liquidationsConfig?: LiquidationsConfig;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* QueryLiquidationsConfigurationResponse is a response message that contains
|
|
228
|
+
* the LiquidationsConfiguration.
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
export interface QueryLiquidationsConfigurationResponseSDKType {
|
|
232
|
+
liquidations_config?: LiquidationsConfigSDKType;
|
|
233
|
+
}
|
|
234
|
+
/** QueryNextClobPairIdRequest is a request message for the next clob pair id */
|
|
235
|
+
|
|
236
|
+
export interface QueryNextClobPairIdRequest {}
|
|
237
|
+
/** QueryNextClobPairIdRequest is a request message for the next clob pair id */
|
|
238
|
+
|
|
239
|
+
export interface QueryNextClobPairIdRequestSDKType {}
|
|
240
|
+
/** QueryNextClobPairIdResponse is a response message for the next clob pair id */
|
|
241
|
+
|
|
242
|
+
export interface QueryNextClobPairIdResponse {
|
|
243
|
+
/** QueryNextClobPairIdResponse is a response message for the next clob pair id */
|
|
244
|
+
nextClobPairId: number;
|
|
245
|
+
}
|
|
246
|
+
/** QueryNextClobPairIdResponse is a response message for the next clob pair id */
|
|
247
|
+
|
|
248
|
+
export interface QueryNextClobPairIdResponseSDKType {
|
|
249
|
+
next_clob_pair_id: number;
|
|
250
|
+
}
|
|
251
|
+
/** QueryLeverageRequest is a request message for Leverage. */
|
|
252
|
+
|
|
253
|
+
export interface QueryLeverageRequest {
|
|
254
|
+
/** The address of the wallet that owns the subaccount. */
|
|
255
|
+
owner: string;
|
|
256
|
+
/** The unique number of the subaccount for the owner. */
|
|
257
|
+
|
|
258
|
+
number: number;
|
|
259
|
+
}
|
|
260
|
+
/** QueryLeverageRequest is a request message for Leverage. */
|
|
261
|
+
|
|
262
|
+
export interface QueryLeverageRequestSDKType {
|
|
263
|
+
owner: string;
|
|
264
|
+
number: number;
|
|
265
|
+
}
|
|
266
|
+
/** QueryLeverageResponse is a response message that contains the leverage map. */
|
|
267
|
+
|
|
268
|
+
export interface QueryLeverageResponse {
|
|
269
|
+
/** List of clob pair leverage settings. */
|
|
270
|
+
clobPairLeverage: ClobPairLeverageInfo[];
|
|
271
|
+
}
|
|
272
|
+
/** QueryLeverageResponse is a response message that contains the leverage map. */
|
|
273
|
+
|
|
274
|
+
export interface QueryLeverageResponseSDKType {
|
|
275
|
+
clob_pair_leverage: ClobPairLeverageInfoSDKType[];
|
|
276
|
+
}
|
|
277
|
+
/** ClobPairLeverageInfo represents the leverage setting for a single clob pair. */
|
|
278
|
+
|
|
279
|
+
export interface ClobPairLeverageInfo {
|
|
280
|
+
/** The clob pair ID. */
|
|
281
|
+
clobPairId: number;
|
|
282
|
+
/** The user selected imf. */
|
|
283
|
+
|
|
284
|
+
customImfPpm: number;
|
|
285
|
+
}
|
|
286
|
+
/** ClobPairLeverageInfo represents the leverage setting for a single clob pair. */
|
|
287
|
+
|
|
288
|
+
export interface ClobPairLeverageInfoSDKType {
|
|
289
|
+
clob_pair_id: number;
|
|
290
|
+
custom_imf_ppm: number;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* StreamOrderbookUpdatesRequest is a request message for the
|
|
294
|
+
* StreamOrderbookUpdates method.
|
|
295
|
+
*/
|
|
296
|
+
|
|
297
|
+
export interface StreamOrderbookUpdatesRequest {
|
|
298
|
+
/** Clob pair ids to stream orderbook updates for. */
|
|
299
|
+
clobPairId: number[];
|
|
300
|
+
/** Subaccount ids to stream subaccount updates for. */
|
|
301
|
+
|
|
302
|
+
subaccountIds: SubaccountId[];
|
|
303
|
+
/** Market ids for price updates. */
|
|
304
|
+
|
|
305
|
+
marketIds: number[];
|
|
306
|
+
/**
|
|
307
|
+
* Filter order updates by subaccount IDs.
|
|
308
|
+
* If true, the orderbook updates only include orders from provided subaccount
|
|
309
|
+
* IDs.
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
filterOrdersBySubaccountId: boolean;
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* StreamOrderbookUpdatesRequest is a request message for the
|
|
316
|
+
* StreamOrderbookUpdates method.
|
|
317
|
+
*/
|
|
318
|
+
|
|
319
|
+
export interface StreamOrderbookUpdatesRequestSDKType {
|
|
320
|
+
clob_pair_id: number[];
|
|
321
|
+
subaccount_ids: SubaccountIdSDKType[];
|
|
322
|
+
market_ids: number[];
|
|
323
|
+
filter_orders_by_subaccount_id: boolean;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* StreamOrderbookUpdatesResponse is a response message for the
|
|
327
|
+
* StreamOrderbookUpdates method.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
export interface StreamOrderbookUpdatesResponse {
|
|
331
|
+
/** Batch of updates for the clob pair. */
|
|
332
|
+
updates: StreamUpdate[];
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* StreamOrderbookUpdatesResponse is a response message for the
|
|
336
|
+
* StreamOrderbookUpdates method.
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
export interface StreamOrderbookUpdatesResponseSDKType {
|
|
340
|
+
updates: StreamUpdateSDKType[];
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* StreamUpdate is an update that will be pushed through the
|
|
344
|
+
* GRPC stream.
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
export interface StreamUpdate {
|
|
348
|
+
/** Block height of the update. */
|
|
349
|
+
blockHeight: number;
|
|
350
|
+
/** Exec mode of the update. */
|
|
351
|
+
|
|
352
|
+
execMode: number;
|
|
353
|
+
orderbookUpdate?: StreamOrderbookUpdate;
|
|
354
|
+
orderFill?: StreamOrderbookFill;
|
|
355
|
+
takerOrder?: StreamTakerOrder;
|
|
356
|
+
subaccountUpdate?: StreamSubaccountUpdate;
|
|
357
|
+
priceUpdate?: StreamPriceUpdate;
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* StreamUpdate is an update that will be pushed through the
|
|
361
|
+
* GRPC stream.
|
|
362
|
+
*/
|
|
363
|
+
|
|
364
|
+
export interface StreamUpdateSDKType {
|
|
365
|
+
block_height: number;
|
|
366
|
+
exec_mode: number;
|
|
367
|
+
orderbook_update?: StreamOrderbookUpdateSDKType;
|
|
368
|
+
order_fill?: StreamOrderbookFillSDKType;
|
|
369
|
+
taker_order?: StreamTakerOrderSDKType;
|
|
370
|
+
subaccount_update?: StreamSubaccountUpdateSDKType;
|
|
371
|
+
price_update?: StreamPriceUpdateSDKType;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* StreamOrderbookUpdate provides information on an orderbook update. Used in
|
|
375
|
+
* the full node GRPC stream.
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
export interface StreamOrderbookUpdate {
|
|
379
|
+
/**
|
|
380
|
+
* Snapshot indicates if the response is from a snapshot of the orderbook.
|
|
381
|
+
* All updates should be ignored until snapshot is recieved.
|
|
382
|
+
* If the snapshot is true, then all previous entries should be
|
|
383
|
+
* discarded and the orderbook should be resynced.
|
|
384
|
+
*/
|
|
385
|
+
snapshot: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Orderbook updates for the clob pair. Can contain order place, removals,
|
|
388
|
+
* or updates.
|
|
389
|
+
*/
|
|
390
|
+
|
|
391
|
+
updates: OffChainUpdateV1[];
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* StreamOrderbookUpdate provides information on an orderbook update. Used in
|
|
395
|
+
* the full node GRPC stream.
|
|
396
|
+
*/
|
|
397
|
+
|
|
398
|
+
export interface StreamOrderbookUpdateSDKType {
|
|
399
|
+
snapshot: boolean;
|
|
400
|
+
updates: OffChainUpdateV1SDKType[];
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* StreamOrderbookFill provides information on an orderbook fill. Used in
|
|
404
|
+
* the full node GRPC stream.
|
|
405
|
+
*/
|
|
406
|
+
|
|
407
|
+
export interface StreamOrderbookFill {
|
|
408
|
+
/**
|
|
409
|
+
* Clob match. Provides information on which orders were matched
|
|
410
|
+
* and the type of order.
|
|
411
|
+
*/
|
|
412
|
+
clobMatch?: ClobMatch;
|
|
413
|
+
/**
|
|
414
|
+
* All orders involved in the specified clob match. Used to look up
|
|
415
|
+
* price of a match through a given maker order id.
|
|
416
|
+
*/
|
|
417
|
+
|
|
418
|
+
orders: Order[];
|
|
419
|
+
/** Resulting fill amounts for each order in the orders array. */
|
|
420
|
+
|
|
421
|
+
fillAmounts: Long[];
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* StreamOrderbookFill provides information on an orderbook fill. Used in
|
|
425
|
+
* the full node GRPC stream.
|
|
426
|
+
*/
|
|
427
|
+
|
|
428
|
+
export interface StreamOrderbookFillSDKType {
|
|
429
|
+
clob_match?: ClobMatchSDKType;
|
|
430
|
+
orders: OrderSDKType[];
|
|
431
|
+
fill_amounts: Long[];
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* StreamTakerOrder provides information on a taker order that was attempted
|
|
435
|
+
* to be matched on the orderbook.
|
|
436
|
+
* It is intended to be used only in full node streaming.
|
|
437
|
+
*/
|
|
438
|
+
|
|
439
|
+
export interface StreamTakerOrder {
|
|
440
|
+
order?: Order;
|
|
441
|
+
liquidationOrder?: StreamLiquidationOrder;
|
|
442
|
+
/**
|
|
443
|
+
* Information on the taker order after it is matched on the book,
|
|
444
|
+
* either successfully or unsuccessfully.
|
|
445
|
+
*/
|
|
446
|
+
|
|
447
|
+
takerOrderStatus?: StreamTakerOrderStatus;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* StreamTakerOrder provides information on a taker order that was attempted
|
|
451
|
+
* to be matched on the orderbook.
|
|
452
|
+
* It is intended to be used only in full node streaming.
|
|
453
|
+
*/
|
|
454
|
+
|
|
455
|
+
export interface StreamTakerOrderSDKType {
|
|
456
|
+
order?: OrderSDKType;
|
|
457
|
+
liquidation_order?: StreamLiquidationOrderSDKType;
|
|
458
|
+
taker_order_status?: StreamTakerOrderStatusSDKType;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* StreamTakerOrderStatus is a representation of a taker order
|
|
462
|
+
* after it is attempted to be matched on the orderbook.
|
|
463
|
+
* It is intended to be used only in full node streaming.
|
|
464
|
+
*/
|
|
465
|
+
|
|
466
|
+
export interface StreamTakerOrderStatus {
|
|
467
|
+
/**
|
|
468
|
+
* The state of the taker order after attempting to match it against the
|
|
469
|
+
* orderbook. Possible enum values can be found here:
|
|
470
|
+
* https://github.com/zogux/v4-chain/blob/main/protocol/x/clob/types/orderbook.go#L105
|
|
471
|
+
*/
|
|
472
|
+
orderStatus: number;
|
|
473
|
+
/** The amount of remaining (non-matched) base quantums of this taker order. */
|
|
474
|
+
|
|
475
|
+
remainingQuantums: Long;
|
|
476
|
+
/**
|
|
477
|
+
* The amount of base quantums that were *optimistically* filled for this
|
|
478
|
+
* taker order when the order is matched against the orderbook. Note that if
|
|
479
|
+
* any quantums of this order were optimistically filled or filled in state
|
|
480
|
+
* before this invocation of the matching loop, this value will not include
|
|
481
|
+
* them.
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
optimisticallyFilledQuantums: Long;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* StreamTakerOrderStatus is a representation of a taker order
|
|
488
|
+
* after it is attempted to be matched on the orderbook.
|
|
489
|
+
* It is intended to be used only in full node streaming.
|
|
490
|
+
*/
|
|
491
|
+
|
|
492
|
+
export interface StreamTakerOrderStatusSDKType {
|
|
493
|
+
order_status: number;
|
|
494
|
+
remaining_quantums: Long;
|
|
495
|
+
optimistically_filled_quantums: Long;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function createBaseQueryGetClobPairRequest(): QueryGetClobPairRequest {
|
|
499
|
+
return {
|
|
500
|
+
id: 0
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export const QueryGetClobPairRequest = {
|
|
505
|
+
encode(message: QueryGetClobPairRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
506
|
+
if (message.id !== 0) {
|
|
507
|
+
writer.uint32(8).uint32(message.id);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
return writer;
|
|
511
|
+
},
|
|
512
|
+
|
|
513
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryGetClobPairRequest {
|
|
514
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
515
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
516
|
+
const message = createBaseQueryGetClobPairRequest();
|
|
517
|
+
|
|
518
|
+
while (reader.pos < end) {
|
|
519
|
+
const tag = reader.uint32();
|
|
520
|
+
|
|
521
|
+
switch (tag >>> 3) {
|
|
522
|
+
case 1:
|
|
523
|
+
message.id = reader.uint32();
|
|
524
|
+
break;
|
|
525
|
+
|
|
526
|
+
default:
|
|
527
|
+
reader.skipType(tag & 7);
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
return message;
|
|
533
|
+
},
|
|
534
|
+
|
|
535
|
+
fromPartial(object: DeepPartial<QueryGetClobPairRequest>): QueryGetClobPairRequest {
|
|
536
|
+
const message = createBaseQueryGetClobPairRequest();
|
|
537
|
+
message.id = object.id ?? 0;
|
|
538
|
+
return message;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
function createBaseQueryClobPairResponse(): QueryClobPairResponse {
|
|
544
|
+
return {
|
|
545
|
+
clobPair: undefined
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export const QueryClobPairResponse = {
|
|
550
|
+
encode(message: QueryClobPairResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
551
|
+
if (message.clobPair !== undefined) {
|
|
552
|
+
ClobPair.encode(message.clobPair, writer.uint32(10).fork()).ldelim();
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
return writer;
|
|
556
|
+
},
|
|
557
|
+
|
|
558
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClobPairResponse {
|
|
559
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
560
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
561
|
+
const message = createBaseQueryClobPairResponse();
|
|
562
|
+
|
|
563
|
+
while (reader.pos < end) {
|
|
564
|
+
const tag = reader.uint32();
|
|
565
|
+
|
|
566
|
+
switch (tag >>> 3) {
|
|
567
|
+
case 1:
|
|
568
|
+
message.clobPair = ClobPair.decode(reader, reader.uint32());
|
|
569
|
+
break;
|
|
570
|
+
|
|
571
|
+
default:
|
|
572
|
+
reader.skipType(tag & 7);
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
return message;
|
|
578
|
+
},
|
|
579
|
+
|
|
580
|
+
fromPartial(object: DeepPartial<QueryClobPairResponse>): QueryClobPairResponse {
|
|
581
|
+
const message = createBaseQueryClobPairResponse();
|
|
582
|
+
message.clobPair = object.clobPair !== undefined && object.clobPair !== null ? ClobPair.fromPartial(object.clobPair) : undefined;
|
|
583
|
+
return message;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
function createBaseQueryAllClobPairRequest(): QueryAllClobPairRequest {
|
|
589
|
+
return {
|
|
590
|
+
pagination: undefined
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
export const QueryAllClobPairRequest = {
|
|
595
|
+
encode(message: QueryAllClobPairRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
596
|
+
if (message.pagination !== undefined) {
|
|
597
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
return writer;
|
|
601
|
+
},
|
|
602
|
+
|
|
603
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryAllClobPairRequest {
|
|
604
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
605
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
606
|
+
const message = createBaseQueryAllClobPairRequest();
|
|
607
|
+
|
|
608
|
+
while (reader.pos < end) {
|
|
609
|
+
const tag = reader.uint32();
|
|
610
|
+
|
|
611
|
+
switch (tag >>> 3) {
|
|
612
|
+
case 1:
|
|
613
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
614
|
+
break;
|
|
615
|
+
|
|
616
|
+
default:
|
|
617
|
+
reader.skipType(tag & 7);
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
return message;
|
|
623
|
+
},
|
|
624
|
+
|
|
625
|
+
fromPartial(object: DeepPartial<QueryAllClobPairRequest>): QueryAllClobPairRequest {
|
|
626
|
+
const message = createBaseQueryAllClobPairRequest();
|
|
627
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
628
|
+
return message;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
function createBaseQueryClobPairAllResponse(): QueryClobPairAllResponse {
|
|
634
|
+
return {
|
|
635
|
+
clobPair: [],
|
|
636
|
+
pagination: undefined
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export const QueryClobPairAllResponse = {
|
|
641
|
+
encode(message: QueryClobPairAllResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
642
|
+
for (const v of message.clobPair) {
|
|
643
|
+
ClobPair.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
if (message.pagination !== undefined) {
|
|
647
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
return writer;
|
|
651
|
+
},
|
|
652
|
+
|
|
653
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryClobPairAllResponse {
|
|
654
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
655
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
656
|
+
const message = createBaseQueryClobPairAllResponse();
|
|
657
|
+
|
|
658
|
+
while (reader.pos < end) {
|
|
659
|
+
const tag = reader.uint32();
|
|
660
|
+
|
|
661
|
+
switch (tag >>> 3) {
|
|
662
|
+
case 1:
|
|
663
|
+
message.clobPair.push(ClobPair.decode(reader, reader.uint32()));
|
|
664
|
+
break;
|
|
665
|
+
|
|
666
|
+
case 2:
|
|
667
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
668
|
+
break;
|
|
669
|
+
|
|
670
|
+
default:
|
|
671
|
+
reader.skipType(tag & 7);
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
|
|
679
|
+
fromPartial(object: DeepPartial<QueryClobPairAllResponse>): QueryClobPairAllResponse {
|
|
680
|
+
const message = createBaseQueryClobPairAllResponse();
|
|
681
|
+
message.clobPair = object.clobPair?.map(e => ClobPair.fromPartial(e)) || [];
|
|
682
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
683
|
+
return message;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
};
|
|
687
|
+
|
|
688
|
+
function createBaseMevNodeToNodeCalculationRequest(): MevNodeToNodeCalculationRequest {
|
|
689
|
+
return {
|
|
690
|
+
blockProposerMatches: undefined,
|
|
691
|
+
validatorMevMetrics: undefined
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
export const MevNodeToNodeCalculationRequest = {
|
|
696
|
+
encode(message: MevNodeToNodeCalculationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
697
|
+
if (message.blockProposerMatches !== undefined) {
|
|
698
|
+
ValidatorMevMatches.encode(message.blockProposerMatches, writer.uint32(10).fork()).ldelim();
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
if (message.validatorMevMetrics !== undefined) {
|
|
702
|
+
MevNodeToNodeMetrics.encode(message.validatorMevMetrics, writer.uint32(18).fork()).ldelim();
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
return writer;
|
|
706
|
+
},
|
|
707
|
+
|
|
708
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MevNodeToNodeCalculationRequest {
|
|
709
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
710
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
711
|
+
const message = createBaseMevNodeToNodeCalculationRequest();
|
|
712
|
+
|
|
713
|
+
while (reader.pos < end) {
|
|
714
|
+
const tag = reader.uint32();
|
|
715
|
+
|
|
716
|
+
switch (tag >>> 3) {
|
|
717
|
+
case 1:
|
|
718
|
+
message.blockProposerMatches = ValidatorMevMatches.decode(reader, reader.uint32());
|
|
719
|
+
break;
|
|
720
|
+
|
|
721
|
+
case 2:
|
|
722
|
+
message.validatorMevMetrics = MevNodeToNodeMetrics.decode(reader, reader.uint32());
|
|
723
|
+
break;
|
|
724
|
+
|
|
725
|
+
default:
|
|
726
|
+
reader.skipType(tag & 7);
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
return message;
|
|
732
|
+
},
|
|
733
|
+
|
|
734
|
+
fromPartial(object: DeepPartial<MevNodeToNodeCalculationRequest>): MevNodeToNodeCalculationRequest {
|
|
735
|
+
const message = createBaseMevNodeToNodeCalculationRequest();
|
|
736
|
+
message.blockProposerMatches = object.blockProposerMatches !== undefined && object.blockProposerMatches !== null ? ValidatorMevMatches.fromPartial(object.blockProposerMatches) : undefined;
|
|
737
|
+
message.validatorMevMetrics = object.validatorMevMetrics !== undefined && object.validatorMevMetrics !== null ? MevNodeToNodeMetrics.fromPartial(object.validatorMevMetrics) : undefined;
|
|
738
|
+
return message;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
function createBaseMevNodeToNodeCalculationResponse(): MevNodeToNodeCalculationResponse {
|
|
744
|
+
return {
|
|
745
|
+
results: []
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
export const MevNodeToNodeCalculationResponse = {
|
|
750
|
+
encode(message: MevNodeToNodeCalculationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
751
|
+
for (const v of message.results) {
|
|
752
|
+
MevNodeToNodeCalculationResponse_MevAndVolumePerClob.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
return writer;
|
|
756
|
+
},
|
|
757
|
+
|
|
758
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MevNodeToNodeCalculationResponse {
|
|
759
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
760
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
761
|
+
const message = createBaseMevNodeToNodeCalculationResponse();
|
|
762
|
+
|
|
763
|
+
while (reader.pos < end) {
|
|
764
|
+
const tag = reader.uint32();
|
|
765
|
+
|
|
766
|
+
switch (tag >>> 3) {
|
|
767
|
+
case 1:
|
|
768
|
+
message.results.push(MevNodeToNodeCalculationResponse_MevAndVolumePerClob.decode(reader, reader.uint32()));
|
|
769
|
+
break;
|
|
770
|
+
|
|
771
|
+
default:
|
|
772
|
+
reader.skipType(tag & 7);
|
|
773
|
+
break;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
return message;
|
|
778
|
+
},
|
|
779
|
+
|
|
780
|
+
fromPartial(object: DeepPartial<MevNodeToNodeCalculationResponse>): MevNodeToNodeCalculationResponse {
|
|
781
|
+
const message = createBaseMevNodeToNodeCalculationResponse();
|
|
782
|
+
message.results = object.results?.map(e => MevNodeToNodeCalculationResponse_MevAndVolumePerClob.fromPartial(e)) || [];
|
|
783
|
+
return message;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
function createBaseMevNodeToNodeCalculationResponse_MevAndVolumePerClob(): MevNodeToNodeCalculationResponse_MevAndVolumePerClob {
|
|
789
|
+
return {
|
|
790
|
+
clobPairId: 0,
|
|
791
|
+
mev: 0,
|
|
792
|
+
volume: Long.UZERO
|
|
793
|
+
};
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
export const MevNodeToNodeCalculationResponse_MevAndVolumePerClob = {
|
|
797
|
+
encode(message: MevNodeToNodeCalculationResponse_MevAndVolumePerClob, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
798
|
+
if (message.clobPairId !== 0) {
|
|
799
|
+
writer.uint32(8).uint32(message.clobPairId);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
if (message.mev !== 0) {
|
|
803
|
+
writer.uint32(21).float(message.mev);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
if (!message.volume.isZero()) {
|
|
807
|
+
writer.uint32(24).uint64(message.volume);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
return writer;
|
|
811
|
+
},
|
|
812
|
+
|
|
813
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MevNodeToNodeCalculationResponse_MevAndVolumePerClob {
|
|
814
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
815
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
816
|
+
const message = createBaseMevNodeToNodeCalculationResponse_MevAndVolumePerClob();
|
|
817
|
+
|
|
818
|
+
while (reader.pos < end) {
|
|
819
|
+
const tag = reader.uint32();
|
|
820
|
+
|
|
821
|
+
switch (tag >>> 3) {
|
|
822
|
+
case 1:
|
|
823
|
+
message.clobPairId = reader.uint32();
|
|
824
|
+
break;
|
|
825
|
+
|
|
826
|
+
case 2:
|
|
827
|
+
message.mev = reader.float();
|
|
828
|
+
break;
|
|
829
|
+
|
|
830
|
+
case 3:
|
|
831
|
+
message.volume = (reader.uint64() as Long);
|
|
832
|
+
break;
|
|
833
|
+
|
|
834
|
+
default:
|
|
835
|
+
reader.skipType(tag & 7);
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
return message;
|
|
841
|
+
},
|
|
842
|
+
|
|
843
|
+
fromPartial(object: DeepPartial<MevNodeToNodeCalculationResponse_MevAndVolumePerClob>): MevNodeToNodeCalculationResponse_MevAndVolumePerClob {
|
|
844
|
+
const message = createBaseMevNodeToNodeCalculationResponse_MevAndVolumePerClob();
|
|
845
|
+
message.clobPairId = object.clobPairId ?? 0;
|
|
846
|
+
message.mev = object.mev ?? 0;
|
|
847
|
+
message.volume = object.volume !== undefined && object.volume !== null ? Long.fromValue(object.volume) : Long.UZERO;
|
|
848
|
+
return message;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
function createBaseQueryEquityTierLimitConfigurationRequest(): QueryEquityTierLimitConfigurationRequest {
|
|
854
|
+
return {};
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
export const QueryEquityTierLimitConfigurationRequest = {
|
|
858
|
+
encode(_: QueryEquityTierLimitConfigurationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
859
|
+
return writer;
|
|
860
|
+
},
|
|
861
|
+
|
|
862
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryEquityTierLimitConfigurationRequest {
|
|
863
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
864
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
865
|
+
const message = createBaseQueryEquityTierLimitConfigurationRequest();
|
|
866
|
+
|
|
867
|
+
while (reader.pos < end) {
|
|
868
|
+
const tag = reader.uint32();
|
|
869
|
+
|
|
870
|
+
switch (tag >>> 3) {
|
|
871
|
+
default:
|
|
872
|
+
reader.skipType(tag & 7);
|
|
873
|
+
break;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
return message;
|
|
878
|
+
},
|
|
879
|
+
|
|
880
|
+
fromPartial(_: DeepPartial<QueryEquityTierLimitConfigurationRequest>): QueryEquityTierLimitConfigurationRequest {
|
|
881
|
+
const message = createBaseQueryEquityTierLimitConfigurationRequest();
|
|
882
|
+
return message;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
function createBaseQueryEquityTierLimitConfigurationResponse(): QueryEquityTierLimitConfigurationResponse {
|
|
888
|
+
return {
|
|
889
|
+
equityTierLimitConfig: undefined
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
export const QueryEquityTierLimitConfigurationResponse = {
|
|
894
|
+
encode(message: QueryEquityTierLimitConfigurationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
895
|
+
if (message.equityTierLimitConfig !== undefined) {
|
|
896
|
+
EquityTierLimitConfiguration.encode(message.equityTierLimitConfig, writer.uint32(10).fork()).ldelim();
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
return writer;
|
|
900
|
+
},
|
|
901
|
+
|
|
902
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryEquityTierLimitConfigurationResponse {
|
|
903
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
904
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
905
|
+
const message = createBaseQueryEquityTierLimitConfigurationResponse();
|
|
906
|
+
|
|
907
|
+
while (reader.pos < end) {
|
|
908
|
+
const tag = reader.uint32();
|
|
909
|
+
|
|
910
|
+
switch (tag >>> 3) {
|
|
911
|
+
case 1:
|
|
912
|
+
message.equityTierLimitConfig = EquityTierLimitConfiguration.decode(reader, reader.uint32());
|
|
913
|
+
break;
|
|
914
|
+
|
|
915
|
+
default:
|
|
916
|
+
reader.skipType(tag & 7);
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
return message;
|
|
922
|
+
},
|
|
923
|
+
|
|
924
|
+
fromPartial(object: DeepPartial<QueryEquityTierLimitConfigurationResponse>): QueryEquityTierLimitConfigurationResponse {
|
|
925
|
+
const message = createBaseQueryEquityTierLimitConfigurationResponse();
|
|
926
|
+
message.equityTierLimitConfig = object.equityTierLimitConfig !== undefined && object.equityTierLimitConfig !== null ? EquityTierLimitConfiguration.fromPartial(object.equityTierLimitConfig) : undefined;
|
|
927
|
+
return message;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
function createBaseQueryBlockRateLimitConfigurationRequest(): QueryBlockRateLimitConfigurationRequest {
|
|
933
|
+
return {};
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
export const QueryBlockRateLimitConfigurationRequest = {
|
|
937
|
+
encode(_: QueryBlockRateLimitConfigurationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
938
|
+
return writer;
|
|
939
|
+
},
|
|
940
|
+
|
|
941
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBlockRateLimitConfigurationRequest {
|
|
942
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
943
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
944
|
+
const message = createBaseQueryBlockRateLimitConfigurationRequest();
|
|
945
|
+
|
|
946
|
+
while (reader.pos < end) {
|
|
947
|
+
const tag = reader.uint32();
|
|
948
|
+
|
|
949
|
+
switch (tag >>> 3) {
|
|
950
|
+
default:
|
|
951
|
+
reader.skipType(tag & 7);
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
return message;
|
|
957
|
+
},
|
|
958
|
+
|
|
959
|
+
fromPartial(_: DeepPartial<QueryBlockRateLimitConfigurationRequest>): QueryBlockRateLimitConfigurationRequest {
|
|
960
|
+
const message = createBaseQueryBlockRateLimitConfigurationRequest();
|
|
961
|
+
return message;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
function createBaseQueryBlockRateLimitConfigurationResponse(): QueryBlockRateLimitConfigurationResponse {
|
|
967
|
+
return {
|
|
968
|
+
blockRateLimitConfig: undefined
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
export const QueryBlockRateLimitConfigurationResponse = {
|
|
973
|
+
encode(message: QueryBlockRateLimitConfigurationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
974
|
+
if (message.blockRateLimitConfig !== undefined) {
|
|
975
|
+
BlockRateLimitConfiguration.encode(message.blockRateLimitConfig, writer.uint32(10).fork()).ldelim();
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
return writer;
|
|
979
|
+
},
|
|
980
|
+
|
|
981
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryBlockRateLimitConfigurationResponse {
|
|
982
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
983
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
984
|
+
const message = createBaseQueryBlockRateLimitConfigurationResponse();
|
|
985
|
+
|
|
986
|
+
while (reader.pos < end) {
|
|
987
|
+
const tag = reader.uint32();
|
|
988
|
+
|
|
989
|
+
switch (tag >>> 3) {
|
|
990
|
+
case 1:
|
|
991
|
+
message.blockRateLimitConfig = BlockRateLimitConfiguration.decode(reader, reader.uint32());
|
|
992
|
+
break;
|
|
993
|
+
|
|
994
|
+
default:
|
|
995
|
+
reader.skipType(tag & 7);
|
|
996
|
+
break;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
return message;
|
|
1001
|
+
},
|
|
1002
|
+
|
|
1003
|
+
fromPartial(object: DeepPartial<QueryBlockRateLimitConfigurationResponse>): QueryBlockRateLimitConfigurationResponse {
|
|
1004
|
+
const message = createBaseQueryBlockRateLimitConfigurationResponse();
|
|
1005
|
+
message.blockRateLimitConfig = object.blockRateLimitConfig !== undefined && object.blockRateLimitConfig !== null ? BlockRateLimitConfiguration.fromPartial(object.blockRateLimitConfig) : undefined;
|
|
1006
|
+
return message;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
};
|
|
1010
|
+
|
|
1011
|
+
function createBaseQueryStatefulOrderRequest(): QueryStatefulOrderRequest {
|
|
1012
|
+
return {
|
|
1013
|
+
orderId: undefined
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
export const QueryStatefulOrderRequest = {
|
|
1018
|
+
encode(message: QueryStatefulOrderRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1019
|
+
if (message.orderId !== undefined) {
|
|
1020
|
+
OrderId.encode(message.orderId, writer.uint32(10).fork()).ldelim();
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
return writer;
|
|
1024
|
+
},
|
|
1025
|
+
|
|
1026
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryStatefulOrderRequest {
|
|
1027
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1028
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1029
|
+
const message = createBaseQueryStatefulOrderRequest();
|
|
1030
|
+
|
|
1031
|
+
while (reader.pos < end) {
|
|
1032
|
+
const tag = reader.uint32();
|
|
1033
|
+
|
|
1034
|
+
switch (tag >>> 3) {
|
|
1035
|
+
case 1:
|
|
1036
|
+
message.orderId = OrderId.decode(reader, reader.uint32());
|
|
1037
|
+
break;
|
|
1038
|
+
|
|
1039
|
+
default:
|
|
1040
|
+
reader.skipType(tag & 7);
|
|
1041
|
+
break;
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
return message;
|
|
1046
|
+
},
|
|
1047
|
+
|
|
1048
|
+
fromPartial(object: DeepPartial<QueryStatefulOrderRequest>): QueryStatefulOrderRequest {
|
|
1049
|
+
const message = createBaseQueryStatefulOrderRequest();
|
|
1050
|
+
message.orderId = object.orderId !== undefined && object.orderId !== null ? OrderId.fromPartial(object.orderId) : undefined;
|
|
1051
|
+
return message;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
function createBaseQueryStatefulOrderResponse(): QueryStatefulOrderResponse {
|
|
1057
|
+
return {
|
|
1058
|
+
orderPlacement: undefined,
|
|
1059
|
+
fillAmount: Long.UZERO,
|
|
1060
|
+
triggered: false
|
|
1061
|
+
};
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
export const QueryStatefulOrderResponse = {
|
|
1065
|
+
encode(message: QueryStatefulOrderResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1066
|
+
if (message.orderPlacement !== undefined) {
|
|
1067
|
+
LongTermOrderPlacement.encode(message.orderPlacement, writer.uint32(10).fork()).ldelim();
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
if (!message.fillAmount.isZero()) {
|
|
1071
|
+
writer.uint32(16).uint64(message.fillAmount);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
if (message.triggered === true) {
|
|
1075
|
+
writer.uint32(24).bool(message.triggered);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
return writer;
|
|
1079
|
+
},
|
|
1080
|
+
|
|
1081
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryStatefulOrderResponse {
|
|
1082
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1083
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1084
|
+
const message = createBaseQueryStatefulOrderResponse();
|
|
1085
|
+
|
|
1086
|
+
while (reader.pos < end) {
|
|
1087
|
+
const tag = reader.uint32();
|
|
1088
|
+
|
|
1089
|
+
switch (tag >>> 3) {
|
|
1090
|
+
case 1:
|
|
1091
|
+
message.orderPlacement = LongTermOrderPlacement.decode(reader, reader.uint32());
|
|
1092
|
+
break;
|
|
1093
|
+
|
|
1094
|
+
case 2:
|
|
1095
|
+
message.fillAmount = (reader.uint64() as Long);
|
|
1096
|
+
break;
|
|
1097
|
+
|
|
1098
|
+
case 3:
|
|
1099
|
+
message.triggered = reader.bool();
|
|
1100
|
+
break;
|
|
1101
|
+
|
|
1102
|
+
default:
|
|
1103
|
+
reader.skipType(tag & 7);
|
|
1104
|
+
break;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
return message;
|
|
1109
|
+
},
|
|
1110
|
+
|
|
1111
|
+
fromPartial(object: DeepPartial<QueryStatefulOrderResponse>): QueryStatefulOrderResponse {
|
|
1112
|
+
const message = createBaseQueryStatefulOrderResponse();
|
|
1113
|
+
message.orderPlacement = object.orderPlacement !== undefined && object.orderPlacement !== null ? LongTermOrderPlacement.fromPartial(object.orderPlacement) : undefined;
|
|
1114
|
+
message.fillAmount = object.fillAmount !== undefined && object.fillAmount !== null ? Long.fromValue(object.fillAmount) : Long.UZERO;
|
|
1115
|
+
message.triggered = object.triggered ?? false;
|
|
1116
|
+
return message;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
function createBaseQueryLiquidationsConfigurationRequest(): QueryLiquidationsConfigurationRequest {
|
|
1122
|
+
return {};
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
export const QueryLiquidationsConfigurationRequest = {
|
|
1126
|
+
encode(_: QueryLiquidationsConfigurationRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1127
|
+
return writer;
|
|
1128
|
+
},
|
|
1129
|
+
|
|
1130
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryLiquidationsConfigurationRequest {
|
|
1131
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1132
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1133
|
+
const message = createBaseQueryLiquidationsConfigurationRequest();
|
|
1134
|
+
|
|
1135
|
+
while (reader.pos < end) {
|
|
1136
|
+
const tag = reader.uint32();
|
|
1137
|
+
|
|
1138
|
+
switch (tag >>> 3) {
|
|
1139
|
+
default:
|
|
1140
|
+
reader.skipType(tag & 7);
|
|
1141
|
+
break;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
return message;
|
|
1146
|
+
},
|
|
1147
|
+
|
|
1148
|
+
fromPartial(_: DeepPartial<QueryLiquidationsConfigurationRequest>): QueryLiquidationsConfigurationRequest {
|
|
1149
|
+
const message = createBaseQueryLiquidationsConfigurationRequest();
|
|
1150
|
+
return message;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
function createBaseQueryLiquidationsConfigurationResponse(): QueryLiquidationsConfigurationResponse {
|
|
1156
|
+
return {
|
|
1157
|
+
liquidationsConfig: undefined
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
export const QueryLiquidationsConfigurationResponse = {
|
|
1162
|
+
encode(message: QueryLiquidationsConfigurationResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1163
|
+
if (message.liquidationsConfig !== undefined) {
|
|
1164
|
+
LiquidationsConfig.encode(message.liquidationsConfig, writer.uint32(10).fork()).ldelim();
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
return writer;
|
|
1168
|
+
},
|
|
1169
|
+
|
|
1170
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryLiquidationsConfigurationResponse {
|
|
1171
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1172
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1173
|
+
const message = createBaseQueryLiquidationsConfigurationResponse();
|
|
1174
|
+
|
|
1175
|
+
while (reader.pos < end) {
|
|
1176
|
+
const tag = reader.uint32();
|
|
1177
|
+
|
|
1178
|
+
switch (tag >>> 3) {
|
|
1179
|
+
case 1:
|
|
1180
|
+
message.liquidationsConfig = LiquidationsConfig.decode(reader, reader.uint32());
|
|
1181
|
+
break;
|
|
1182
|
+
|
|
1183
|
+
default:
|
|
1184
|
+
reader.skipType(tag & 7);
|
|
1185
|
+
break;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
return message;
|
|
1190
|
+
},
|
|
1191
|
+
|
|
1192
|
+
fromPartial(object: DeepPartial<QueryLiquidationsConfigurationResponse>): QueryLiquidationsConfigurationResponse {
|
|
1193
|
+
const message = createBaseQueryLiquidationsConfigurationResponse();
|
|
1194
|
+
message.liquidationsConfig = object.liquidationsConfig !== undefined && object.liquidationsConfig !== null ? LiquidationsConfig.fromPartial(object.liquidationsConfig) : undefined;
|
|
1195
|
+
return message;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
function createBaseQueryNextClobPairIdRequest(): QueryNextClobPairIdRequest {
|
|
1201
|
+
return {};
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
export const QueryNextClobPairIdRequest = {
|
|
1205
|
+
encode(_: QueryNextClobPairIdRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1206
|
+
return writer;
|
|
1207
|
+
},
|
|
1208
|
+
|
|
1209
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNextClobPairIdRequest {
|
|
1210
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1211
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1212
|
+
const message = createBaseQueryNextClobPairIdRequest();
|
|
1213
|
+
|
|
1214
|
+
while (reader.pos < end) {
|
|
1215
|
+
const tag = reader.uint32();
|
|
1216
|
+
|
|
1217
|
+
switch (tag >>> 3) {
|
|
1218
|
+
default:
|
|
1219
|
+
reader.skipType(tag & 7);
|
|
1220
|
+
break;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
return message;
|
|
1225
|
+
},
|
|
1226
|
+
|
|
1227
|
+
fromPartial(_: DeepPartial<QueryNextClobPairIdRequest>): QueryNextClobPairIdRequest {
|
|
1228
|
+
const message = createBaseQueryNextClobPairIdRequest();
|
|
1229
|
+
return message;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1234
|
+
function createBaseQueryNextClobPairIdResponse(): QueryNextClobPairIdResponse {
|
|
1235
|
+
return {
|
|
1236
|
+
nextClobPairId: 0
|
|
1237
|
+
};
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
export const QueryNextClobPairIdResponse = {
|
|
1241
|
+
encode(message: QueryNextClobPairIdResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1242
|
+
if (message.nextClobPairId !== 0) {
|
|
1243
|
+
writer.uint32(8).uint32(message.nextClobPairId);
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
return writer;
|
|
1247
|
+
},
|
|
1248
|
+
|
|
1249
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryNextClobPairIdResponse {
|
|
1250
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1251
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1252
|
+
const message = createBaseQueryNextClobPairIdResponse();
|
|
1253
|
+
|
|
1254
|
+
while (reader.pos < end) {
|
|
1255
|
+
const tag = reader.uint32();
|
|
1256
|
+
|
|
1257
|
+
switch (tag >>> 3) {
|
|
1258
|
+
case 1:
|
|
1259
|
+
message.nextClobPairId = reader.uint32();
|
|
1260
|
+
break;
|
|
1261
|
+
|
|
1262
|
+
default:
|
|
1263
|
+
reader.skipType(tag & 7);
|
|
1264
|
+
break;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
return message;
|
|
1269
|
+
},
|
|
1270
|
+
|
|
1271
|
+
fromPartial(object: DeepPartial<QueryNextClobPairIdResponse>): QueryNextClobPairIdResponse {
|
|
1272
|
+
const message = createBaseQueryNextClobPairIdResponse();
|
|
1273
|
+
message.nextClobPairId = object.nextClobPairId ?? 0;
|
|
1274
|
+
return message;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
function createBaseQueryLeverageRequest(): QueryLeverageRequest {
|
|
1280
|
+
return {
|
|
1281
|
+
owner: "",
|
|
1282
|
+
number: 0
|
|
1283
|
+
};
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
export const QueryLeverageRequest = {
|
|
1287
|
+
encode(message: QueryLeverageRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1288
|
+
if (message.owner !== "") {
|
|
1289
|
+
writer.uint32(10).string(message.owner);
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
if (message.number !== 0) {
|
|
1293
|
+
writer.uint32(16).uint32(message.number);
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
return writer;
|
|
1297
|
+
},
|
|
1298
|
+
|
|
1299
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryLeverageRequest {
|
|
1300
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1301
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1302
|
+
const message = createBaseQueryLeverageRequest();
|
|
1303
|
+
|
|
1304
|
+
while (reader.pos < end) {
|
|
1305
|
+
const tag = reader.uint32();
|
|
1306
|
+
|
|
1307
|
+
switch (tag >>> 3) {
|
|
1308
|
+
case 1:
|
|
1309
|
+
message.owner = reader.string();
|
|
1310
|
+
break;
|
|
1311
|
+
|
|
1312
|
+
case 2:
|
|
1313
|
+
message.number = reader.uint32();
|
|
1314
|
+
break;
|
|
1315
|
+
|
|
1316
|
+
default:
|
|
1317
|
+
reader.skipType(tag & 7);
|
|
1318
|
+
break;
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
return message;
|
|
1323
|
+
},
|
|
1324
|
+
|
|
1325
|
+
fromPartial(object: DeepPartial<QueryLeverageRequest>): QueryLeverageRequest {
|
|
1326
|
+
const message = createBaseQueryLeverageRequest();
|
|
1327
|
+
message.owner = object.owner ?? "";
|
|
1328
|
+
message.number = object.number ?? 0;
|
|
1329
|
+
return message;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1334
|
+
function createBaseQueryLeverageResponse(): QueryLeverageResponse {
|
|
1335
|
+
return {
|
|
1336
|
+
clobPairLeverage: []
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
export const QueryLeverageResponse = {
|
|
1341
|
+
encode(message: QueryLeverageResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1342
|
+
for (const v of message.clobPairLeverage) {
|
|
1343
|
+
ClobPairLeverageInfo.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
return writer;
|
|
1347
|
+
},
|
|
1348
|
+
|
|
1349
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QueryLeverageResponse {
|
|
1350
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1351
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1352
|
+
const message = createBaseQueryLeverageResponse();
|
|
1353
|
+
|
|
1354
|
+
while (reader.pos < end) {
|
|
1355
|
+
const tag = reader.uint32();
|
|
1356
|
+
|
|
1357
|
+
switch (tag >>> 3) {
|
|
1358
|
+
case 1:
|
|
1359
|
+
message.clobPairLeverage.push(ClobPairLeverageInfo.decode(reader, reader.uint32()));
|
|
1360
|
+
break;
|
|
1361
|
+
|
|
1362
|
+
default:
|
|
1363
|
+
reader.skipType(tag & 7);
|
|
1364
|
+
break;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
return message;
|
|
1369
|
+
},
|
|
1370
|
+
|
|
1371
|
+
fromPartial(object: DeepPartial<QueryLeverageResponse>): QueryLeverageResponse {
|
|
1372
|
+
const message = createBaseQueryLeverageResponse();
|
|
1373
|
+
message.clobPairLeverage = object.clobPairLeverage?.map(e => ClobPairLeverageInfo.fromPartial(e)) || [];
|
|
1374
|
+
return message;
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
function createBaseClobPairLeverageInfo(): ClobPairLeverageInfo {
|
|
1380
|
+
return {
|
|
1381
|
+
clobPairId: 0,
|
|
1382
|
+
customImfPpm: 0
|
|
1383
|
+
};
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
export const ClobPairLeverageInfo = {
|
|
1387
|
+
encode(message: ClobPairLeverageInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1388
|
+
if (message.clobPairId !== 0) {
|
|
1389
|
+
writer.uint32(8).uint32(message.clobPairId);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
if (message.customImfPpm !== 0) {
|
|
1393
|
+
writer.uint32(16).uint32(message.customImfPpm);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
return writer;
|
|
1397
|
+
},
|
|
1398
|
+
|
|
1399
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ClobPairLeverageInfo {
|
|
1400
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1401
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1402
|
+
const message = createBaseClobPairLeverageInfo();
|
|
1403
|
+
|
|
1404
|
+
while (reader.pos < end) {
|
|
1405
|
+
const tag = reader.uint32();
|
|
1406
|
+
|
|
1407
|
+
switch (tag >>> 3) {
|
|
1408
|
+
case 1:
|
|
1409
|
+
message.clobPairId = reader.uint32();
|
|
1410
|
+
break;
|
|
1411
|
+
|
|
1412
|
+
case 2:
|
|
1413
|
+
message.customImfPpm = reader.uint32();
|
|
1414
|
+
break;
|
|
1415
|
+
|
|
1416
|
+
default:
|
|
1417
|
+
reader.skipType(tag & 7);
|
|
1418
|
+
break;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
return message;
|
|
1423
|
+
},
|
|
1424
|
+
|
|
1425
|
+
fromPartial(object: DeepPartial<ClobPairLeverageInfo>): ClobPairLeverageInfo {
|
|
1426
|
+
const message = createBaseClobPairLeverageInfo();
|
|
1427
|
+
message.clobPairId = object.clobPairId ?? 0;
|
|
1428
|
+
message.customImfPpm = object.customImfPpm ?? 0;
|
|
1429
|
+
return message;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
};
|
|
1433
|
+
|
|
1434
|
+
function createBaseStreamOrderbookUpdatesRequest(): StreamOrderbookUpdatesRequest {
|
|
1435
|
+
return {
|
|
1436
|
+
clobPairId: [],
|
|
1437
|
+
subaccountIds: [],
|
|
1438
|
+
marketIds: [],
|
|
1439
|
+
filterOrdersBySubaccountId: false
|
|
1440
|
+
};
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
export const StreamOrderbookUpdatesRequest = {
|
|
1444
|
+
encode(message: StreamOrderbookUpdatesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1445
|
+
writer.uint32(10).fork();
|
|
1446
|
+
|
|
1447
|
+
for (const v of message.clobPairId) {
|
|
1448
|
+
writer.uint32(v);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
writer.ldelim();
|
|
1452
|
+
|
|
1453
|
+
for (const v of message.subaccountIds) {
|
|
1454
|
+
SubaccountId.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
writer.uint32(26).fork();
|
|
1458
|
+
|
|
1459
|
+
for (const v of message.marketIds) {
|
|
1460
|
+
writer.uint32(v);
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
writer.ldelim();
|
|
1464
|
+
|
|
1465
|
+
if (message.filterOrdersBySubaccountId === true) {
|
|
1466
|
+
writer.uint32(32).bool(message.filterOrdersBySubaccountId);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
return writer;
|
|
1470
|
+
},
|
|
1471
|
+
|
|
1472
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamOrderbookUpdatesRequest {
|
|
1473
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1474
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1475
|
+
const message = createBaseStreamOrderbookUpdatesRequest();
|
|
1476
|
+
|
|
1477
|
+
while (reader.pos < end) {
|
|
1478
|
+
const tag = reader.uint32();
|
|
1479
|
+
|
|
1480
|
+
switch (tag >>> 3) {
|
|
1481
|
+
case 1:
|
|
1482
|
+
if ((tag & 7) === 2) {
|
|
1483
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1484
|
+
|
|
1485
|
+
while (reader.pos < end2) {
|
|
1486
|
+
message.clobPairId.push(reader.uint32());
|
|
1487
|
+
}
|
|
1488
|
+
} else {
|
|
1489
|
+
message.clobPairId.push(reader.uint32());
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
break;
|
|
1493
|
+
|
|
1494
|
+
case 2:
|
|
1495
|
+
message.subaccountIds.push(SubaccountId.decode(reader, reader.uint32()));
|
|
1496
|
+
break;
|
|
1497
|
+
|
|
1498
|
+
case 3:
|
|
1499
|
+
if ((tag & 7) === 2) {
|
|
1500
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1501
|
+
|
|
1502
|
+
while (reader.pos < end2) {
|
|
1503
|
+
message.marketIds.push(reader.uint32());
|
|
1504
|
+
}
|
|
1505
|
+
} else {
|
|
1506
|
+
message.marketIds.push(reader.uint32());
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
break;
|
|
1510
|
+
|
|
1511
|
+
case 4:
|
|
1512
|
+
message.filterOrdersBySubaccountId = reader.bool();
|
|
1513
|
+
break;
|
|
1514
|
+
|
|
1515
|
+
default:
|
|
1516
|
+
reader.skipType(tag & 7);
|
|
1517
|
+
break;
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
return message;
|
|
1522
|
+
},
|
|
1523
|
+
|
|
1524
|
+
fromPartial(object: DeepPartial<StreamOrderbookUpdatesRequest>): StreamOrderbookUpdatesRequest {
|
|
1525
|
+
const message = createBaseStreamOrderbookUpdatesRequest();
|
|
1526
|
+
message.clobPairId = object.clobPairId?.map(e => e) || [];
|
|
1527
|
+
message.subaccountIds = object.subaccountIds?.map(e => SubaccountId.fromPartial(e)) || [];
|
|
1528
|
+
message.marketIds = object.marketIds?.map(e => e) || [];
|
|
1529
|
+
message.filterOrdersBySubaccountId = object.filterOrdersBySubaccountId ?? false;
|
|
1530
|
+
return message;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
function createBaseStreamOrderbookUpdatesResponse(): StreamOrderbookUpdatesResponse {
|
|
1536
|
+
return {
|
|
1537
|
+
updates: []
|
|
1538
|
+
};
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
export const StreamOrderbookUpdatesResponse = {
|
|
1542
|
+
encode(message: StreamOrderbookUpdatesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1543
|
+
for (const v of message.updates) {
|
|
1544
|
+
StreamUpdate.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
return writer;
|
|
1548
|
+
},
|
|
1549
|
+
|
|
1550
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamOrderbookUpdatesResponse {
|
|
1551
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1552
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1553
|
+
const message = createBaseStreamOrderbookUpdatesResponse();
|
|
1554
|
+
|
|
1555
|
+
while (reader.pos < end) {
|
|
1556
|
+
const tag = reader.uint32();
|
|
1557
|
+
|
|
1558
|
+
switch (tag >>> 3) {
|
|
1559
|
+
case 1:
|
|
1560
|
+
message.updates.push(StreamUpdate.decode(reader, reader.uint32()));
|
|
1561
|
+
break;
|
|
1562
|
+
|
|
1563
|
+
default:
|
|
1564
|
+
reader.skipType(tag & 7);
|
|
1565
|
+
break;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
return message;
|
|
1570
|
+
},
|
|
1571
|
+
|
|
1572
|
+
fromPartial(object: DeepPartial<StreamOrderbookUpdatesResponse>): StreamOrderbookUpdatesResponse {
|
|
1573
|
+
const message = createBaseStreamOrderbookUpdatesResponse();
|
|
1574
|
+
message.updates = object.updates?.map(e => StreamUpdate.fromPartial(e)) || [];
|
|
1575
|
+
return message;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1580
|
+
function createBaseStreamUpdate(): StreamUpdate {
|
|
1581
|
+
return {
|
|
1582
|
+
blockHeight: 0,
|
|
1583
|
+
execMode: 0,
|
|
1584
|
+
orderbookUpdate: undefined,
|
|
1585
|
+
orderFill: undefined,
|
|
1586
|
+
takerOrder: undefined,
|
|
1587
|
+
subaccountUpdate: undefined,
|
|
1588
|
+
priceUpdate: undefined
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
export const StreamUpdate = {
|
|
1593
|
+
encode(message: StreamUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1594
|
+
if (message.blockHeight !== 0) {
|
|
1595
|
+
writer.uint32(8).uint32(message.blockHeight);
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
if (message.execMode !== 0) {
|
|
1599
|
+
writer.uint32(16).uint32(message.execMode);
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
if (message.orderbookUpdate !== undefined) {
|
|
1603
|
+
StreamOrderbookUpdate.encode(message.orderbookUpdate, writer.uint32(26).fork()).ldelim();
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
if (message.orderFill !== undefined) {
|
|
1607
|
+
StreamOrderbookFill.encode(message.orderFill, writer.uint32(34).fork()).ldelim();
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
if (message.takerOrder !== undefined) {
|
|
1611
|
+
StreamTakerOrder.encode(message.takerOrder, writer.uint32(42).fork()).ldelim();
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
if (message.subaccountUpdate !== undefined) {
|
|
1615
|
+
StreamSubaccountUpdate.encode(message.subaccountUpdate, writer.uint32(50).fork()).ldelim();
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
if (message.priceUpdate !== undefined) {
|
|
1619
|
+
StreamPriceUpdate.encode(message.priceUpdate, writer.uint32(58).fork()).ldelim();
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
return writer;
|
|
1623
|
+
},
|
|
1624
|
+
|
|
1625
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamUpdate {
|
|
1626
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1627
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1628
|
+
const message = createBaseStreamUpdate();
|
|
1629
|
+
|
|
1630
|
+
while (reader.pos < end) {
|
|
1631
|
+
const tag = reader.uint32();
|
|
1632
|
+
|
|
1633
|
+
switch (tag >>> 3) {
|
|
1634
|
+
case 1:
|
|
1635
|
+
message.blockHeight = reader.uint32();
|
|
1636
|
+
break;
|
|
1637
|
+
|
|
1638
|
+
case 2:
|
|
1639
|
+
message.execMode = reader.uint32();
|
|
1640
|
+
break;
|
|
1641
|
+
|
|
1642
|
+
case 3:
|
|
1643
|
+
message.orderbookUpdate = StreamOrderbookUpdate.decode(reader, reader.uint32());
|
|
1644
|
+
break;
|
|
1645
|
+
|
|
1646
|
+
case 4:
|
|
1647
|
+
message.orderFill = StreamOrderbookFill.decode(reader, reader.uint32());
|
|
1648
|
+
break;
|
|
1649
|
+
|
|
1650
|
+
case 5:
|
|
1651
|
+
message.takerOrder = StreamTakerOrder.decode(reader, reader.uint32());
|
|
1652
|
+
break;
|
|
1653
|
+
|
|
1654
|
+
case 6:
|
|
1655
|
+
message.subaccountUpdate = StreamSubaccountUpdate.decode(reader, reader.uint32());
|
|
1656
|
+
break;
|
|
1657
|
+
|
|
1658
|
+
case 7:
|
|
1659
|
+
message.priceUpdate = StreamPriceUpdate.decode(reader, reader.uint32());
|
|
1660
|
+
break;
|
|
1661
|
+
|
|
1662
|
+
default:
|
|
1663
|
+
reader.skipType(tag & 7);
|
|
1664
|
+
break;
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
return message;
|
|
1669
|
+
},
|
|
1670
|
+
|
|
1671
|
+
fromPartial(object: DeepPartial<StreamUpdate>): StreamUpdate {
|
|
1672
|
+
const message = createBaseStreamUpdate();
|
|
1673
|
+
message.blockHeight = object.blockHeight ?? 0;
|
|
1674
|
+
message.execMode = object.execMode ?? 0;
|
|
1675
|
+
message.orderbookUpdate = object.orderbookUpdate !== undefined && object.orderbookUpdate !== null ? StreamOrderbookUpdate.fromPartial(object.orderbookUpdate) : undefined;
|
|
1676
|
+
message.orderFill = object.orderFill !== undefined && object.orderFill !== null ? StreamOrderbookFill.fromPartial(object.orderFill) : undefined;
|
|
1677
|
+
message.takerOrder = object.takerOrder !== undefined && object.takerOrder !== null ? StreamTakerOrder.fromPartial(object.takerOrder) : undefined;
|
|
1678
|
+
message.subaccountUpdate = object.subaccountUpdate !== undefined && object.subaccountUpdate !== null ? StreamSubaccountUpdate.fromPartial(object.subaccountUpdate) : undefined;
|
|
1679
|
+
message.priceUpdate = object.priceUpdate !== undefined && object.priceUpdate !== null ? StreamPriceUpdate.fromPartial(object.priceUpdate) : undefined;
|
|
1680
|
+
return message;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
};
|
|
1684
|
+
|
|
1685
|
+
function createBaseStreamOrderbookUpdate(): StreamOrderbookUpdate {
|
|
1686
|
+
return {
|
|
1687
|
+
snapshot: false,
|
|
1688
|
+
updates: []
|
|
1689
|
+
};
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
export const StreamOrderbookUpdate = {
|
|
1693
|
+
encode(message: StreamOrderbookUpdate, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1694
|
+
if (message.snapshot === true) {
|
|
1695
|
+
writer.uint32(8).bool(message.snapshot);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
for (const v of message.updates) {
|
|
1699
|
+
OffChainUpdateV1.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
return writer;
|
|
1703
|
+
},
|
|
1704
|
+
|
|
1705
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamOrderbookUpdate {
|
|
1706
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1707
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1708
|
+
const message = createBaseStreamOrderbookUpdate();
|
|
1709
|
+
|
|
1710
|
+
while (reader.pos < end) {
|
|
1711
|
+
const tag = reader.uint32();
|
|
1712
|
+
|
|
1713
|
+
switch (tag >>> 3) {
|
|
1714
|
+
case 1:
|
|
1715
|
+
message.snapshot = reader.bool();
|
|
1716
|
+
break;
|
|
1717
|
+
|
|
1718
|
+
case 2:
|
|
1719
|
+
message.updates.push(OffChainUpdateV1.decode(reader, reader.uint32()));
|
|
1720
|
+
break;
|
|
1721
|
+
|
|
1722
|
+
default:
|
|
1723
|
+
reader.skipType(tag & 7);
|
|
1724
|
+
break;
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
return message;
|
|
1729
|
+
},
|
|
1730
|
+
|
|
1731
|
+
fromPartial(object: DeepPartial<StreamOrderbookUpdate>): StreamOrderbookUpdate {
|
|
1732
|
+
const message = createBaseStreamOrderbookUpdate();
|
|
1733
|
+
message.snapshot = object.snapshot ?? false;
|
|
1734
|
+
message.updates = object.updates?.map(e => OffChainUpdateV1.fromPartial(e)) || [];
|
|
1735
|
+
return message;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
function createBaseStreamOrderbookFill(): StreamOrderbookFill {
|
|
1741
|
+
return {
|
|
1742
|
+
clobMatch: undefined,
|
|
1743
|
+
orders: [],
|
|
1744
|
+
fillAmounts: []
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
export const StreamOrderbookFill = {
|
|
1749
|
+
encode(message: StreamOrderbookFill, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1750
|
+
if (message.clobMatch !== undefined) {
|
|
1751
|
+
ClobMatch.encode(message.clobMatch, writer.uint32(10).fork()).ldelim();
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
for (const v of message.orders) {
|
|
1755
|
+
Order.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
writer.uint32(26).fork();
|
|
1759
|
+
|
|
1760
|
+
for (const v of message.fillAmounts) {
|
|
1761
|
+
writer.uint64(v);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
writer.ldelim();
|
|
1765
|
+
return writer;
|
|
1766
|
+
},
|
|
1767
|
+
|
|
1768
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamOrderbookFill {
|
|
1769
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1770
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1771
|
+
const message = createBaseStreamOrderbookFill();
|
|
1772
|
+
|
|
1773
|
+
while (reader.pos < end) {
|
|
1774
|
+
const tag = reader.uint32();
|
|
1775
|
+
|
|
1776
|
+
switch (tag >>> 3) {
|
|
1777
|
+
case 1:
|
|
1778
|
+
message.clobMatch = ClobMatch.decode(reader, reader.uint32());
|
|
1779
|
+
break;
|
|
1780
|
+
|
|
1781
|
+
case 2:
|
|
1782
|
+
message.orders.push(Order.decode(reader, reader.uint32()));
|
|
1783
|
+
break;
|
|
1784
|
+
|
|
1785
|
+
case 3:
|
|
1786
|
+
if ((tag & 7) === 2) {
|
|
1787
|
+
const end2 = reader.uint32() + reader.pos;
|
|
1788
|
+
|
|
1789
|
+
while (reader.pos < end2) {
|
|
1790
|
+
message.fillAmounts.push((reader.uint64() as Long));
|
|
1791
|
+
}
|
|
1792
|
+
} else {
|
|
1793
|
+
message.fillAmounts.push((reader.uint64() as Long));
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
break;
|
|
1797
|
+
|
|
1798
|
+
default:
|
|
1799
|
+
reader.skipType(tag & 7);
|
|
1800
|
+
break;
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
return message;
|
|
1805
|
+
},
|
|
1806
|
+
|
|
1807
|
+
fromPartial(object: DeepPartial<StreamOrderbookFill>): StreamOrderbookFill {
|
|
1808
|
+
const message = createBaseStreamOrderbookFill();
|
|
1809
|
+
message.clobMatch = object.clobMatch !== undefined && object.clobMatch !== null ? ClobMatch.fromPartial(object.clobMatch) : undefined;
|
|
1810
|
+
message.orders = object.orders?.map(e => Order.fromPartial(e)) || [];
|
|
1811
|
+
message.fillAmounts = object.fillAmounts?.map(e => Long.fromValue(e)) || [];
|
|
1812
|
+
return message;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
function createBaseStreamTakerOrder(): StreamTakerOrder {
|
|
1818
|
+
return {
|
|
1819
|
+
order: undefined,
|
|
1820
|
+
liquidationOrder: undefined,
|
|
1821
|
+
takerOrderStatus: undefined
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
export const StreamTakerOrder = {
|
|
1826
|
+
encode(message: StreamTakerOrder, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1827
|
+
if (message.order !== undefined) {
|
|
1828
|
+
Order.encode(message.order, writer.uint32(10).fork()).ldelim();
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
if (message.liquidationOrder !== undefined) {
|
|
1832
|
+
StreamLiquidationOrder.encode(message.liquidationOrder, writer.uint32(18).fork()).ldelim();
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
if (message.takerOrderStatus !== undefined) {
|
|
1836
|
+
StreamTakerOrderStatus.encode(message.takerOrderStatus, writer.uint32(26).fork()).ldelim();
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
return writer;
|
|
1840
|
+
},
|
|
1841
|
+
|
|
1842
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamTakerOrder {
|
|
1843
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1844
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1845
|
+
const message = createBaseStreamTakerOrder();
|
|
1846
|
+
|
|
1847
|
+
while (reader.pos < end) {
|
|
1848
|
+
const tag = reader.uint32();
|
|
1849
|
+
|
|
1850
|
+
switch (tag >>> 3) {
|
|
1851
|
+
case 1:
|
|
1852
|
+
message.order = Order.decode(reader, reader.uint32());
|
|
1853
|
+
break;
|
|
1854
|
+
|
|
1855
|
+
case 2:
|
|
1856
|
+
message.liquidationOrder = StreamLiquidationOrder.decode(reader, reader.uint32());
|
|
1857
|
+
break;
|
|
1858
|
+
|
|
1859
|
+
case 3:
|
|
1860
|
+
message.takerOrderStatus = StreamTakerOrderStatus.decode(reader, reader.uint32());
|
|
1861
|
+
break;
|
|
1862
|
+
|
|
1863
|
+
default:
|
|
1864
|
+
reader.skipType(tag & 7);
|
|
1865
|
+
break;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
return message;
|
|
1870
|
+
},
|
|
1871
|
+
|
|
1872
|
+
fromPartial(object: DeepPartial<StreamTakerOrder>): StreamTakerOrder {
|
|
1873
|
+
const message = createBaseStreamTakerOrder();
|
|
1874
|
+
message.order = object.order !== undefined && object.order !== null ? Order.fromPartial(object.order) : undefined;
|
|
1875
|
+
message.liquidationOrder = object.liquidationOrder !== undefined && object.liquidationOrder !== null ? StreamLiquidationOrder.fromPartial(object.liquidationOrder) : undefined;
|
|
1876
|
+
message.takerOrderStatus = object.takerOrderStatus !== undefined && object.takerOrderStatus !== null ? StreamTakerOrderStatus.fromPartial(object.takerOrderStatus) : undefined;
|
|
1877
|
+
return message;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
};
|
|
1881
|
+
|
|
1882
|
+
function createBaseStreamTakerOrderStatus(): StreamTakerOrderStatus {
|
|
1883
|
+
return {
|
|
1884
|
+
orderStatus: 0,
|
|
1885
|
+
remainingQuantums: Long.UZERO,
|
|
1886
|
+
optimisticallyFilledQuantums: Long.UZERO
|
|
1887
|
+
};
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
export const StreamTakerOrderStatus = {
|
|
1891
|
+
encode(message: StreamTakerOrderStatus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
1892
|
+
if (message.orderStatus !== 0) {
|
|
1893
|
+
writer.uint32(8).uint32(message.orderStatus);
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
if (!message.remainingQuantums.isZero()) {
|
|
1897
|
+
writer.uint32(16).uint64(message.remainingQuantums);
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
if (!message.optimisticallyFilledQuantums.isZero()) {
|
|
1901
|
+
writer.uint32(24).uint64(message.optimisticallyFilledQuantums);
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
return writer;
|
|
1905
|
+
},
|
|
1906
|
+
|
|
1907
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): StreamTakerOrderStatus {
|
|
1908
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
1909
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1910
|
+
const message = createBaseStreamTakerOrderStatus();
|
|
1911
|
+
|
|
1912
|
+
while (reader.pos < end) {
|
|
1913
|
+
const tag = reader.uint32();
|
|
1914
|
+
|
|
1915
|
+
switch (tag >>> 3) {
|
|
1916
|
+
case 1:
|
|
1917
|
+
message.orderStatus = reader.uint32();
|
|
1918
|
+
break;
|
|
1919
|
+
|
|
1920
|
+
case 2:
|
|
1921
|
+
message.remainingQuantums = (reader.uint64() as Long);
|
|
1922
|
+
break;
|
|
1923
|
+
|
|
1924
|
+
case 3:
|
|
1925
|
+
message.optimisticallyFilledQuantums = (reader.uint64() as Long);
|
|
1926
|
+
break;
|
|
1927
|
+
|
|
1928
|
+
default:
|
|
1929
|
+
reader.skipType(tag & 7);
|
|
1930
|
+
break;
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
return message;
|
|
1935
|
+
},
|
|
1936
|
+
|
|
1937
|
+
fromPartial(object: DeepPartial<StreamTakerOrderStatus>): StreamTakerOrderStatus {
|
|
1938
|
+
const message = createBaseStreamTakerOrderStatus();
|
|
1939
|
+
message.orderStatus = object.orderStatus ?? 0;
|
|
1940
|
+
message.remainingQuantums = object.remainingQuantums !== undefined && object.remainingQuantums !== null ? Long.fromValue(object.remainingQuantums) : Long.UZERO;
|
|
1941
|
+
message.optimisticallyFilledQuantums = object.optimisticallyFilledQuantums !== undefined && object.optimisticallyFilledQuantums !== null ? Long.fromValue(object.optimisticallyFilledQuantums) : Long.UZERO;
|
|
1942
|
+
return message;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
};
|