@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,288 @@
|
|
|
1
|
+
import { SubaccountId, SubaccountIdSDKType } from "../subaccounts/subaccount";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { DeepPartial, Long } from "../../helpers";
|
|
4
|
+
/**
|
|
5
|
+
* PerpetualLiquidationInfo holds information about a liquidation that occurred
|
|
6
|
+
* for a position held by a subaccount.
|
|
7
|
+
* Note this proto is defined to make it easier to hash
|
|
8
|
+
* the metadata of a liquidation, and is never written to state.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
export interface PerpetualLiquidationInfo {
|
|
12
|
+
/**
|
|
13
|
+
* The id of the subaccount that got liquidated/deleveraged or was deleveraged
|
|
14
|
+
* onto.
|
|
15
|
+
*/
|
|
16
|
+
subaccountId?: SubaccountId;
|
|
17
|
+
/** The id of the perpetual involved. */
|
|
18
|
+
|
|
19
|
+
perpetualId: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* PerpetualLiquidationInfo holds information about a liquidation that occurred
|
|
23
|
+
* for a position held by a subaccount.
|
|
24
|
+
* Note this proto is defined to make it easier to hash
|
|
25
|
+
* the metadata of a liquidation, and is never written to state.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
export interface PerpetualLiquidationInfoSDKType {
|
|
29
|
+
subaccount_id?: SubaccountIdSDKType;
|
|
30
|
+
perpetual_id: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* SubaccountLiquidationInfo holds liquidation information per-subaccount in the
|
|
34
|
+
* current block.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
export interface SubaccountLiquidationInfo {
|
|
38
|
+
/**
|
|
39
|
+
* An unsorted list of unique perpetual IDs that the subaccount has previously
|
|
40
|
+
* liquidated.
|
|
41
|
+
*/
|
|
42
|
+
perpetualsLiquidated: number[];
|
|
43
|
+
/**
|
|
44
|
+
* The notional value (in quote quantums, determined by the oracle price) of
|
|
45
|
+
* all positions liquidated for this subaccount.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
notionalLiquidated: Long;
|
|
49
|
+
/**
|
|
50
|
+
* The amount of funds that the insurance fund has lost
|
|
51
|
+
* covering this subaccount.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
quantumsInsuranceLost: Long;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* SubaccountLiquidationInfo holds liquidation information per-subaccount in the
|
|
58
|
+
* current block.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export interface SubaccountLiquidationInfoSDKType {
|
|
62
|
+
perpetuals_liquidated: number[];
|
|
63
|
+
notional_liquidated: Long;
|
|
64
|
+
quantums_insurance_lost: Long;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* SubaccountOpenPositionInfo holds information about open positions for a
|
|
68
|
+
* perpetual.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
export interface SubaccountOpenPositionInfo {
|
|
72
|
+
/** The id of the perpetual. */
|
|
73
|
+
perpetualId: number;
|
|
74
|
+
/** The ids of the subaccounts with long positions. */
|
|
75
|
+
|
|
76
|
+
subaccountsWithLongPosition: SubaccountId[];
|
|
77
|
+
/** The ids of the subaccounts with short positions. */
|
|
78
|
+
|
|
79
|
+
subaccountsWithShortPosition: SubaccountId[];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* SubaccountOpenPositionInfo holds information about open positions for a
|
|
83
|
+
* perpetual.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
export interface SubaccountOpenPositionInfoSDKType {
|
|
87
|
+
perpetual_id: number;
|
|
88
|
+
subaccounts_with_long_position: SubaccountIdSDKType[];
|
|
89
|
+
subaccounts_with_short_position: SubaccountIdSDKType[];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function createBasePerpetualLiquidationInfo(): PerpetualLiquidationInfo {
|
|
93
|
+
return {
|
|
94
|
+
subaccountId: undefined,
|
|
95
|
+
perpetualId: 0
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export const PerpetualLiquidationInfo = {
|
|
100
|
+
encode(message: PerpetualLiquidationInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
101
|
+
if (message.subaccountId !== undefined) {
|
|
102
|
+
SubaccountId.encode(message.subaccountId, writer.uint32(10).fork()).ldelim();
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (message.perpetualId !== 0) {
|
|
106
|
+
writer.uint32(16).uint32(message.perpetualId);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return writer;
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PerpetualLiquidationInfo {
|
|
113
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
114
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
115
|
+
const message = createBasePerpetualLiquidationInfo();
|
|
116
|
+
|
|
117
|
+
while (reader.pos < end) {
|
|
118
|
+
const tag = reader.uint32();
|
|
119
|
+
|
|
120
|
+
switch (tag >>> 3) {
|
|
121
|
+
case 1:
|
|
122
|
+
message.subaccountId = SubaccountId.decode(reader, reader.uint32());
|
|
123
|
+
break;
|
|
124
|
+
|
|
125
|
+
case 2:
|
|
126
|
+
message.perpetualId = reader.uint32();
|
|
127
|
+
break;
|
|
128
|
+
|
|
129
|
+
default:
|
|
130
|
+
reader.skipType(tag & 7);
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
|
|
138
|
+
fromPartial(object: DeepPartial<PerpetualLiquidationInfo>): PerpetualLiquidationInfo {
|
|
139
|
+
const message = createBasePerpetualLiquidationInfo();
|
|
140
|
+
message.subaccountId = object.subaccountId !== undefined && object.subaccountId !== null ? SubaccountId.fromPartial(object.subaccountId) : undefined;
|
|
141
|
+
message.perpetualId = object.perpetualId ?? 0;
|
|
142
|
+
return message;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
function createBaseSubaccountLiquidationInfo(): SubaccountLiquidationInfo {
|
|
148
|
+
return {
|
|
149
|
+
perpetualsLiquidated: [],
|
|
150
|
+
notionalLiquidated: Long.UZERO,
|
|
151
|
+
quantumsInsuranceLost: Long.UZERO
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export const SubaccountLiquidationInfo = {
|
|
156
|
+
encode(message: SubaccountLiquidationInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
157
|
+
writer.uint32(10).fork();
|
|
158
|
+
|
|
159
|
+
for (const v of message.perpetualsLiquidated) {
|
|
160
|
+
writer.uint32(v);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
writer.ldelim();
|
|
164
|
+
|
|
165
|
+
if (!message.notionalLiquidated.isZero()) {
|
|
166
|
+
writer.uint32(16).uint64(message.notionalLiquidated);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (!message.quantumsInsuranceLost.isZero()) {
|
|
170
|
+
writer.uint32(24).uint64(message.quantumsInsuranceLost);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return writer;
|
|
174
|
+
},
|
|
175
|
+
|
|
176
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SubaccountLiquidationInfo {
|
|
177
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
178
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
179
|
+
const message = createBaseSubaccountLiquidationInfo();
|
|
180
|
+
|
|
181
|
+
while (reader.pos < end) {
|
|
182
|
+
const tag = reader.uint32();
|
|
183
|
+
|
|
184
|
+
switch (tag >>> 3) {
|
|
185
|
+
case 1:
|
|
186
|
+
if ((tag & 7) === 2) {
|
|
187
|
+
const end2 = reader.uint32() + reader.pos;
|
|
188
|
+
|
|
189
|
+
while (reader.pos < end2) {
|
|
190
|
+
message.perpetualsLiquidated.push(reader.uint32());
|
|
191
|
+
}
|
|
192
|
+
} else {
|
|
193
|
+
message.perpetualsLiquidated.push(reader.uint32());
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
break;
|
|
197
|
+
|
|
198
|
+
case 2:
|
|
199
|
+
message.notionalLiquidated = (reader.uint64() as Long);
|
|
200
|
+
break;
|
|
201
|
+
|
|
202
|
+
case 3:
|
|
203
|
+
message.quantumsInsuranceLost = (reader.uint64() as Long);
|
|
204
|
+
break;
|
|
205
|
+
|
|
206
|
+
default:
|
|
207
|
+
reader.skipType(tag & 7);
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return message;
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
fromPartial(object: DeepPartial<SubaccountLiquidationInfo>): SubaccountLiquidationInfo {
|
|
216
|
+
const message = createBaseSubaccountLiquidationInfo();
|
|
217
|
+
message.perpetualsLiquidated = object.perpetualsLiquidated?.map(e => e) || [];
|
|
218
|
+
message.notionalLiquidated = object.notionalLiquidated !== undefined && object.notionalLiquidated !== null ? Long.fromValue(object.notionalLiquidated) : Long.UZERO;
|
|
219
|
+
message.quantumsInsuranceLost = object.quantumsInsuranceLost !== undefined && object.quantumsInsuranceLost !== null ? Long.fromValue(object.quantumsInsuranceLost) : Long.UZERO;
|
|
220
|
+
return message;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
function createBaseSubaccountOpenPositionInfo(): SubaccountOpenPositionInfo {
|
|
226
|
+
return {
|
|
227
|
+
perpetualId: 0,
|
|
228
|
+
subaccountsWithLongPosition: [],
|
|
229
|
+
subaccountsWithShortPosition: []
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export const SubaccountOpenPositionInfo = {
|
|
234
|
+
encode(message: SubaccountOpenPositionInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
235
|
+
if (message.perpetualId !== 0) {
|
|
236
|
+
writer.uint32(8).uint32(message.perpetualId);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
for (const v of message.subaccountsWithLongPosition) {
|
|
240
|
+
SubaccountId.encode(v!, writer.uint32(18).fork()).ldelim();
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
for (const v of message.subaccountsWithShortPosition) {
|
|
244
|
+
SubaccountId.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
return writer;
|
|
248
|
+
},
|
|
249
|
+
|
|
250
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SubaccountOpenPositionInfo {
|
|
251
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
252
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
253
|
+
const message = createBaseSubaccountOpenPositionInfo();
|
|
254
|
+
|
|
255
|
+
while (reader.pos < end) {
|
|
256
|
+
const tag = reader.uint32();
|
|
257
|
+
|
|
258
|
+
switch (tag >>> 3) {
|
|
259
|
+
case 1:
|
|
260
|
+
message.perpetualId = reader.uint32();
|
|
261
|
+
break;
|
|
262
|
+
|
|
263
|
+
case 2:
|
|
264
|
+
message.subaccountsWithLongPosition.push(SubaccountId.decode(reader, reader.uint32()));
|
|
265
|
+
break;
|
|
266
|
+
|
|
267
|
+
case 3:
|
|
268
|
+
message.subaccountsWithShortPosition.push(SubaccountId.decode(reader, reader.uint32()));
|
|
269
|
+
break;
|
|
270
|
+
|
|
271
|
+
default:
|
|
272
|
+
reader.skipType(tag & 7);
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
return message;
|
|
278
|
+
},
|
|
279
|
+
|
|
280
|
+
fromPartial(object: DeepPartial<SubaccountOpenPositionInfo>): SubaccountOpenPositionInfo {
|
|
281
|
+
const message = createBaseSubaccountOpenPositionInfo();
|
|
282
|
+
message.perpetualId = object.perpetualId ?? 0;
|
|
283
|
+
message.subaccountsWithLongPosition = object.subaccountsWithLongPosition?.map(e => SubaccountId.fromPartial(e)) || [];
|
|
284
|
+
message.subaccountsWithShortPosition = object.subaccountsWithShortPosition?.map(e => SubaccountId.fromPartial(e)) || [];
|
|
285
|
+
return message;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
};
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import * as _m0 from "protobufjs/minimal";
|
|
2
|
+
import { DeepPartial, Long } from "../../helpers";
|
|
3
|
+
/** LiquidationsConfig stores all configurable fields related to liquidations. */
|
|
4
|
+
|
|
5
|
+
export interface LiquidationsConfig {
|
|
6
|
+
/**
|
|
7
|
+
* The maximum liquidation fee (in parts-per-million). This fee goes
|
|
8
|
+
* 100% to the insurance fund.
|
|
9
|
+
*/
|
|
10
|
+
maxLiquidationFeePpm: number;
|
|
11
|
+
/**
|
|
12
|
+
* Limits around how much of a single position can be liquidated
|
|
13
|
+
* within a single block.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
positionBlockLimits?: PositionBlockLimits;
|
|
17
|
+
/**
|
|
18
|
+
* Limits around how many quote quantums from a single subaccount can
|
|
19
|
+
* be liquidated within a single block.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
subaccountBlockLimits?: SubaccountBlockLimits;
|
|
23
|
+
/**
|
|
24
|
+
* Config about how the fillable-price spread from the oracle price
|
|
25
|
+
* increases based on the adjusted bankruptcy rating of the subaccount.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
fillablePriceConfig?: FillablePriceConfig;
|
|
29
|
+
}
|
|
30
|
+
/** LiquidationsConfig stores all configurable fields related to liquidations. */
|
|
31
|
+
|
|
32
|
+
export interface LiquidationsConfigSDKType {
|
|
33
|
+
max_liquidation_fee_ppm: number;
|
|
34
|
+
position_block_limits?: PositionBlockLimitsSDKType;
|
|
35
|
+
subaccount_block_limits?: SubaccountBlockLimitsSDKType;
|
|
36
|
+
fillable_price_config?: FillablePriceConfigSDKType;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* PositionBlockLimits stores all configurable fields related to limits
|
|
40
|
+
* around how much of a single position can be liquidated within a single block.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
export interface PositionBlockLimits {
|
|
44
|
+
/**
|
|
45
|
+
* The minimum amount of quantums to liquidate for each message (in
|
|
46
|
+
* quote quantums).
|
|
47
|
+
* Overridden by the maximum size of the position.
|
|
48
|
+
*/
|
|
49
|
+
minPositionNotionalLiquidated: Long;
|
|
50
|
+
/**
|
|
51
|
+
* The maximum portion of the position liquidated (in parts-per-
|
|
52
|
+
* million). Overridden by min_position_notional_liquidated.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
maxPositionPortionLiquidatedPpm: number;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* PositionBlockLimits stores all configurable fields related to limits
|
|
59
|
+
* around how much of a single position can be liquidated within a single block.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
export interface PositionBlockLimitsSDKType {
|
|
63
|
+
min_position_notional_liquidated: Long;
|
|
64
|
+
max_position_portion_liquidated_ppm: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* SubaccountBlockLimits stores all configurable fields related to limits
|
|
68
|
+
* around how many quote quantums from a single subaccount can
|
|
69
|
+
* be liquidated within a single block.
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
export interface SubaccountBlockLimits {
|
|
73
|
+
/**
|
|
74
|
+
* The maximum notional amount that a single subaccount can have
|
|
75
|
+
* liquidated (in quote quantums) per block.
|
|
76
|
+
*/
|
|
77
|
+
maxNotionalLiquidated: Long;
|
|
78
|
+
/**
|
|
79
|
+
* The maximum insurance-fund payout amount for a given subaccount
|
|
80
|
+
* per block. I.e. how much it can cover for that subaccount.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
maxQuantumsInsuranceLost: Long;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* SubaccountBlockLimits stores all configurable fields related to limits
|
|
87
|
+
* around how many quote quantums from a single subaccount can
|
|
88
|
+
* be liquidated within a single block.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
export interface SubaccountBlockLimitsSDKType {
|
|
92
|
+
max_notional_liquidated: Long;
|
|
93
|
+
max_quantums_insurance_lost: Long;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* FillablePriceConfig stores all configurable fields related to calculating
|
|
97
|
+
* the fillable price for liquidating a position.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
export interface FillablePriceConfig {
|
|
101
|
+
/** The rate at which the Adjusted Bankruptcy Rating increases. */
|
|
102
|
+
bankruptcyAdjustmentPpm: number;
|
|
103
|
+
/**
|
|
104
|
+
* The maximum value that the liquidation spread can take, as
|
|
105
|
+
* a ratio against the position's maintenance margin.
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
spreadToMaintenanceMarginRatioPpm: number;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* FillablePriceConfig stores all configurable fields related to calculating
|
|
112
|
+
* the fillable price for liquidating a position.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
export interface FillablePriceConfigSDKType {
|
|
116
|
+
bankruptcy_adjustment_ppm: number;
|
|
117
|
+
spread_to_maintenance_margin_ratio_ppm: number;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function createBaseLiquidationsConfig(): LiquidationsConfig {
|
|
121
|
+
return {
|
|
122
|
+
maxLiquidationFeePpm: 0,
|
|
123
|
+
positionBlockLimits: undefined,
|
|
124
|
+
subaccountBlockLimits: undefined,
|
|
125
|
+
fillablePriceConfig: undefined
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export const LiquidationsConfig = {
|
|
130
|
+
encode(message: LiquidationsConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
131
|
+
if (message.maxLiquidationFeePpm !== 0) {
|
|
132
|
+
writer.uint32(8).uint32(message.maxLiquidationFeePpm);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (message.positionBlockLimits !== undefined) {
|
|
136
|
+
PositionBlockLimits.encode(message.positionBlockLimits, writer.uint32(18).fork()).ldelim();
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (message.subaccountBlockLimits !== undefined) {
|
|
140
|
+
SubaccountBlockLimits.encode(message.subaccountBlockLimits, writer.uint32(26).fork()).ldelim();
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (message.fillablePriceConfig !== undefined) {
|
|
144
|
+
FillablePriceConfig.encode(message.fillablePriceConfig, writer.uint32(34).fork()).ldelim();
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return writer;
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): LiquidationsConfig {
|
|
151
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
152
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
153
|
+
const message = createBaseLiquidationsConfig();
|
|
154
|
+
|
|
155
|
+
while (reader.pos < end) {
|
|
156
|
+
const tag = reader.uint32();
|
|
157
|
+
|
|
158
|
+
switch (tag >>> 3) {
|
|
159
|
+
case 1:
|
|
160
|
+
message.maxLiquidationFeePpm = reader.uint32();
|
|
161
|
+
break;
|
|
162
|
+
|
|
163
|
+
case 2:
|
|
164
|
+
message.positionBlockLimits = PositionBlockLimits.decode(reader, reader.uint32());
|
|
165
|
+
break;
|
|
166
|
+
|
|
167
|
+
case 3:
|
|
168
|
+
message.subaccountBlockLimits = SubaccountBlockLimits.decode(reader, reader.uint32());
|
|
169
|
+
break;
|
|
170
|
+
|
|
171
|
+
case 4:
|
|
172
|
+
message.fillablePriceConfig = FillablePriceConfig.decode(reader, reader.uint32());
|
|
173
|
+
break;
|
|
174
|
+
|
|
175
|
+
default:
|
|
176
|
+
reader.skipType(tag & 7);
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
fromPartial(object: DeepPartial<LiquidationsConfig>): LiquidationsConfig {
|
|
185
|
+
const message = createBaseLiquidationsConfig();
|
|
186
|
+
message.maxLiquidationFeePpm = object.maxLiquidationFeePpm ?? 0;
|
|
187
|
+
message.positionBlockLimits = object.positionBlockLimits !== undefined && object.positionBlockLimits !== null ? PositionBlockLimits.fromPartial(object.positionBlockLimits) : undefined;
|
|
188
|
+
message.subaccountBlockLimits = object.subaccountBlockLimits !== undefined && object.subaccountBlockLimits !== null ? SubaccountBlockLimits.fromPartial(object.subaccountBlockLimits) : undefined;
|
|
189
|
+
message.fillablePriceConfig = object.fillablePriceConfig !== undefined && object.fillablePriceConfig !== null ? FillablePriceConfig.fromPartial(object.fillablePriceConfig) : undefined;
|
|
190
|
+
return message;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
function createBasePositionBlockLimits(): PositionBlockLimits {
|
|
196
|
+
return {
|
|
197
|
+
minPositionNotionalLiquidated: Long.UZERO,
|
|
198
|
+
maxPositionPortionLiquidatedPpm: 0
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export const PositionBlockLimits = {
|
|
203
|
+
encode(message: PositionBlockLimits, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
204
|
+
if (!message.minPositionNotionalLiquidated.isZero()) {
|
|
205
|
+
writer.uint32(8).uint64(message.minPositionNotionalLiquidated);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
if (message.maxPositionPortionLiquidatedPpm !== 0) {
|
|
209
|
+
writer.uint32(16).uint32(message.maxPositionPortionLiquidatedPpm);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return writer;
|
|
213
|
+
},
|
|
214
|
+
|
|
215
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PositionBlockLimits {
|
|
216
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
217
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
218
|
+
const message = createBasePositionBlockLimits();
|
|
219
|
+
|
|
220
|
+
while (reader.pos < end) {
|
|
221
|
+
const tag = reader.uint32();
|
|
222
|
+
|
|
223
|
+
switch (tag >>> 3) {
|
|
224
|
+
case 1:
|
|
225
|
+
message.minPositionNotionalLiquidated = (reader.uint64() as Long);
|
|
226
|
+
break;
|
|
227
|
+
|
|
228
|
+
case 2:
|
|
229
|
+
message.maxPositionPortionLiquidatedPpm = reader.uint32();
|
|
230
|
+
break;
|
|
231
|
+
|
|
232
|
+
default:
|
|
233
|
+
reader.skipType(tag & 7);
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
return message;
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
fromPartial(object: DeepPartial<PositionBlockLimits>): PositionBlockLimits {
|
|
242
|
+
const message = createBasePositionBlockLimits();
|
|
243
|
+
message.minPositionNotionalLiquidated = object.minPositionNotionalLiquidated !== undefined && object.minPositionNotionalLiquidated !== null ? Long.fromValue(object.minPositionNotionalLiquidated) : Long.UZERO;
|
|
244
|
+
message.maxPositionPortionLiquidatedPpm = object.maxPositionPortionLiquidatedPpm ?? 0;
|
|
245
|
+
return message;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
function createBaseSubaccountBlockLimits(): SubaccountBlockLimits {
|
|
251
|
+
return {
|
|
252
|
+
maxNotionalLiquidated: Long.UZERO,
|
|
253
|
+
maxQuantumsInsuranceLost: Long.UZERO
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export const SubaccountBlockLimits = {
|
|
258
|
+
encode(message: SubaccountBlockLimits, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
259
|
+
if (!message.maxNotionalLiquidated.isZero()) {
|
|
260
|
+
writer.uint32(8).uint64(message.maxNotionalLiquidated);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (!message.maxQuantumsInsuranceLost.isZero()) {
|
|
264
|
+
writer.uint32(16).uint64(message.maxQuantumsInsuranceLost);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
return writer;
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SubaccountBlockLimits {
|
|
271
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
272
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
+
const message = createBaseSubaccountBlockLimits();
|
|
274
|
+
|
|
275
|
+
while (reader.pos < end) {
|
|
276
|
+
const tag = reader.uint32();
|
|
277
|
+
|
|
278
|
+
switch (tag >>> 3) {
|
|
279
|
+
case 1:
|
|
280
|
+
message.maxNotionalLiquidated = (reader.uint64() as Long);
|
|
281
|
+
break;
|
|
282
|
+
|
|
283
|
+
case 2:
|
|
284
|
+
message.maxQuantumsInsuranceLost = (reader.uint64() as Long);
|
|
285
|
+
break;
|
|
286
|
+
|
|
287
|
+
default:
|
|
288
|
+
reader.skipType(tag & 7);
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
return message;
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
fromPartial(object: DeepPartial<SubaccountBlockLimits>): SubaccountBlockLimits {
|
|
297
|
+
const message = createBaseSubaccountBlockLimits();
|
|
298
|
+
message.maxNotionalLiquidated = object.maxNotionalLiquidated !== undefined && object.maxNotionalLiquidated !== null ? Long.fromValue(object.maxNotionalLiquidated) : Long.UZERO;
|
|
299
|
+
message.maxQuantumsInsuranceLost = object.maxQuantumsInsuranceLost !== undefined && object.maxQuantumsInsuranceLost !== null ? Long.fromValue(object.maxQuantumsInsuranceLost) : Long.UZERO;
|
|
300
|
+
return message;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
function createBaseFillablePriceConfig(): FillablePriceConfig {
|
|
306
|
+
return {
|
|
307
|
+
bankruptcyAdjustmentPpm: 0,
|
|
308
|
+
spreadToMaintenanceMarginRatioPpm: 0
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export const FillablePriceConfig = {
|
|
313
|
+
encode(message: FillablePriceConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
314
|
+
if (message.bankruptcyAdjustmentPpm !== 0) {
|
|
315
|
+
writer.uint32(8).uint32(message.bankruptcyAdjustmentPpm);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (message.spreadToMaintenanceMarginRatioPpm !== 0) {
|
|
319
|
+
writer.uint32(16).uint32(message.spreadToMaintenanceMarginRatioPpm);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return writer;
|
|
323
|
+
},
|
|
324
|
+
|
|
325
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FillablePriceConfig {
|
|
326
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
327
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
328
|
+
const message = createBaseFillablePriceConfig();
|
|
329
|
+
|
|
330
|
+
while (reader.pos < end) {
|
|
331
|
+
const tag = reader.uint32();
|
|
332
|
+
|
|
333
|
+
switch (tag >>> 3) {
|
|
334
|
+
case 1:
|
|
335
|
+
message.bankruptcyAdjustmentPpm = reader.uint32();
|
|
336
|
+
break;
|
|
337
|
+
|
|
338
|
+
case 2:
|
|
339
|
+
message.spreadToMaintenanceMarginRatioPpm = reader.uint32();
|
|
340
|
+
break;
|
|
341
|
+
|
|
342
|
+
default:
|
|
343
|
+
reader.skipType(tag & 7);
|
|
344
|
+
break;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
return message;
|
|
349
|
+
},
|
|
350
|
+
|
|
351
|
+
fromPartial(object: DeepPartial<FillablePriceConfig>): FillablePriceConfig {
|
|
352
|
+
const message = createBaseFillablePriceConfig();
|
|
353
|
+
message.bankruptcyAdjustmentPpm = object.bankruptcyAdjustmentPpm ?? 0;
|
|
354
|
+
message.spreadToMaintenanceMarginRatioPpm = object.spreadToMaintenanceMarginRatioPpm ?? 0;
|
|
355
|
+
return message;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
};
|