diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a1388bd3..f73432e6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,22 +6,11 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml -- repo: https://github.com/flakeheaven/flakeheaven - rev: 3.3.0 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.15.10 hooks: - - id: flakeheaven - name: flakeheaven - description: '`flakeheaven` is a `flake8` wrapper.' - entry: flakeheaven lint - language: python - types_or: [ python, jupyter, markdown, rst, yaml ] - require_serial: true - minimum_pre_commit_version: 2.9.0 -- repo: https://github.com/pycqa/isort - rev: 5.12.0 - hooks: - - id: isort - name: isort (python) + - id: ruff + args: [--fix] - repo: https://github.com/psf/black-pre-commit-mirror rev: 23.9.1 hooks: diff --git a/Makefile b/Makefile index 9596c6cf..0fcbac48 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ clean-all: $(call clean_repos) clone-injective-indexer: - git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.18.3 --depth 1 --single-branch + git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.18.59 --depth 1 --single-branch clone-all: clone-injective-indexer diff --git a/README.md b/README.md index 978f056b..48b00017 100644 --- a/README.md +++ b/README.md @@ -72,45 +72,21 @@ poetry run pytest -v --- -## Choose Exchange V1 or Exchange V2 queries - -The Injective Python SDK provides two different clients for interacting with the exchange: - -1. **Exchange V1 Client** (`async_client` module): - - Use this client if you need to interact with the original Injective Exchange API - - Import using: `from pyinjective.async_client import AsyncClient` - - Suitable for applications that need to maintain compatibility with the original exchange interface - - Example: - ```python - from pyinjective.async_client import AsyncClient - from pyinjective.network import Network - - async def main(): - # Initialize client with mainnet - client = AsyncClient(network=Network.mainnet()) - # Or use testnet - # client = AsyncClient(network=Network.testnet()) - # Use V1 exchange queries here - ``` - -2. **Exchange V2 Client** (`async_client_v2` module): - - Use this client for the latest exchange features and improvements - - Import using: `from pyinjective.async_client_v2 import AsyncClient` - - Recommended for new applications and when you need access to the latest exchange features - - Example: - ```python - from pyinjective.async_client_v2 import AsyncClient - from pyinjective.network import Network - - async def main(): - # Initialize client with mainnet - client = AsyncClient(network=Network.mainnet()) - # Or use testnet - # client = AsyncClient(network=Network.testnet()) - # Use V2 exchange queries here - ``` - -Both clients provide similar interfaces but with different underlying implementations. Choose V2 for new projects unless you have specific requirements for V1 compatibility. +## Async client (exchange V2) + +The Injective Python SDK exposes `AsyncClient` from the `async_client_v2` module: + +- Import using: `from pyinjective.async_client_v2 import AsyncClient` +- Example: +```python +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.network import Network + +async def main(): + client = AsyncClient(network=Network.mainnet()) + # Or use testnet + # client = AsyncClient(network=Network.testnet()) +``` > **Market Format Differences**: > - V1 AsyncClient: Markets are initialized with values in chain format (raw blockchain values) diff --git a/buf.gen.yaml b/buf.gen.yaml index 37a88caa..ae63dedd 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -12,21 +12,21 @@ inputs: - module: buf.build/googleapis/googleapis - module: buf.build/cosmos/ics23 - git_repo: https://github.com/InjectiveLabs/ibc-go - tag: v8.7.0-inj.3 + tag: v8.7.0-inj.4 - git_repo: https://github.com/InjectiveLabs/wasmd - tag: v0.53.3-inj.2 + tag: v0.53.3-inj.3 - git_repo: https://github.com/InjectiveLabs/cometbft - tag: v1.0.1-inj.6 + tag: v1.0.1-inj.7 - git_repo: https://github.com/InjectiveLabs/cosmos-sdk - tag: v0.50.14-inj.4 + tag: v0.50.14-inj.9 # - git_repo: https://github.com/InjectiveLabs/wasmd # branch: v0.51.x-inj # subdir: proto - - git_repo: https://github.com/InjectiveLabs/hyperlane-cosmos - tag: v1.0.1-inj - subdir: proto + # - git_repo: https://github.com/InjectiveLabs/hyperlane-cosmos + # tag: v1.0.1-inj + # subdir: proto - git_repo: https://github.com/InjectiveLabs/injective-core - tag: v1.18.0 + tag: v1.19.0-beta subdir: proto # - git_repo: https://github.com/InjectiveLabs/injective-core # branch: c-655/add_chainlink_data_streams_oracle diff --git a/examples/chain_client/auction/2_MsgClaimVoucher.py b/examples/chain_client/auction/2_MsgClaimVoucher.py new file mode 100644 index 00000000..4bc74f1f --- /dev/null +++ b/examples/chain_client/auction/2_MsgClaimVoucher.py @@ -0,0 +1,54 @@ +import asyncio +import json +import os + +import dotenv + +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.core.broadcaster import MsgBroadcasterWithPk +from pyinjective.core.network import Network +from pyinjective.wallet import PrivateKey + + +async def main() -> None: + dotenv.load_dotenv() + private_key_in_hexa = os.getenv("INJECTIVE_PRIVATE_KEY") + + network = Network.devnet() + + client = AsyncClient(network) + composer = await client.composer() + + gas_price = await client.current_chain_gas_price() + gas_price = int(gas_price * 1.1) + + message_broadcaster = MsgBroadcasterWithPk.new_using_simulation( + network=network, + private_key=private_key_in_hexa, + gas_price=gas_price, + client=client, + composer=composer, + ) + + priv_key = PrivateKey.from_hex(private_key_in_hexa) + pub_key = priv_key.to_public_key() + address = pub_key.to_address() + + denom = "factory/inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r/inj_test" + + message = composer.msg_auction_claim_voucher( + sender=address.to_acc_bech32(), + denom=denom, + ) + + result = await message_broadcaster.broadcast([message]) + print("---Transaction Response---") + print(json.dumps(result, indent=2)) + + gas_price = await client.current_chain_gas_price() + gas_price = int(gas_price * 1.1) + message_broadcaster.update_gas_price(gas_price=gas_price) + + +if __name__ == "__main__": + asyncio.get_event_loop().run_until_complete(main()) diff --git a/examples/chain_client/auction/query/1_Vouchers.py b/examples/chain_client/auction/query/1_Vouchers.py new file mode 100644 index 00000000..d0271b34 --- /dev/null +++ b/examples/chain_client/auction/query/1_Vouchers.py @@ -0,0 +1,17 @@ +import asyncio + +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.core.network import Network + + +async def main() -> None: + network = Network.testnet() + client = AsyncClient(network) + + denom = "inj" + vouchers = await client.fetch_auction_vouchers(denom=denom) + print(vouchers) + + +if __name__ == "__main__": + asyncio.get_event_loop().run_until_complete(main()) diff --git a/examples/chain_client/auction/query/2_Voucher.py b/examples/chain_client/auction/query/2_Voucher.py new file mode 100644 index 00000000..bb48bca4 --- /dev/null +++ b/examples/chain_client/auction/query/2_Voucher.py @@ -0,0 +1,18 @@ +import asyncio + +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.core.network import Network + + +async def main() -> None: + network = Network.testnet() + client = AsyncClient(network) + + denom = "inj" + address = "inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr" + voucher = await client.fetch_auction_voucher(denom=denom, address=address) + print(voucher) + + +if __name__ == "__main__": + asyncio.get_event_loop().run_until_complete(main()) diff --git a/examples/chain_client/distribution/1_SetWithdrawAddress.py b/examples/chain_client/distribution/1_SetWithdrawAddress.py index 261124e1..877091b7 100644 --- a/examples/chain_client/distribution/1_SetWithdrawAddress.py +++ b/examples/chain_client/distribution/1_SetWithdrawAddress.py @@ -4,7 +4,8 @@ import dotenv -from pyinjective import AsyncClient, PrivateKey +from pyinjective import PrivateKey +from pyinjective.async_client_v2 import AsyncClient from pyinjective.core.broadcaster import MsgBroadcasterWithPk from pyinjective.core.network import Network diff --git a/examples/chain_client/distribution/4_FundCommunityPool.py b/examples/chain_client/distribution/4_FundCommunityPool.py index 10d93c16..b5d85e5c 100644 --- a/examples/chain_client/distribution/4_FundCommunityPool.py +++ b/examples/chain_client/distribution/4_FundCommunityPool.py @@ -5,7 +5,8 @@ import dotenv -from pyinjective import AsyncClient, PrivateKey +from pyinjective import PrivateKey +from pyinjective.async_client_v2 import AsyncClient from pyinjective.core.broadcaster import MsgBroadcasterWithPk from pyinjective.core.network import Network diff --git a/examples/chain_client/insurance/4_MsgClaimVoucher.py b/examples/chain_client/insurance/4_MsgClaimVoucher.py new file mode 100644 index 00000000..ea22a220 --- /dev/null +++ b/examples/chain_client/insurance/4_MsgClaimVoucher.py @@ -0,0 +1,54 @@ +import asyncio +import json +import os + +import dotenv + +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.core.broadcaster import MsgBroadcasterWithPk +from pyinjective.core.network import Network +from pyinjective.wallet import PrivateKey + + +async def main() -> None: + dotenv.load_dotenv() + private_key_in_hexa = os.getenv("INJECTIVE_PRIVATE_KEY") + + network = Network.devnet() + + client = AsyncClient(network) + composer = await client.composer() + + gas_price = await client.current_chain_gas_price() + gas_price = int(gas_price * 1.1) + + message_broadcaster = MsgBroadcasterWithPk.new_using_simulation( + network=network, + private_key=private_key_in_hexa, + gas_price=gas_price, + client=client, + composer=composer, + ) + + priv_key = PrivateKey.from_hex(private_key_in_hexa) + pub_key = priv_key.to_public_key() + address = pub_key.to_address() + + denom = "factory/inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r/inj_test" + + message = composer.msg_insurance_claim_voucher( + sender=address.to_acc_bech32(), + denom=denom, + ) + + result = await message_broadcaster.broadcast([message]) + print("---Transaction Response---") + print(json.dumps(result, indent=2)) + + gas_price = await client.current_chain_gas_price() + gas_price = int(gas_price * 1.1) + message_broadcaster.update_gas_price(gas_price=gas_price) + + +if __name__ == "__main__": + asyncio.get_event_loop().run_until_complete(main()) diff --git a/examples/chain_client/insurance/query/1_Vouchers.py b/examples/chain_client/insurance/query/1_Vouchers.py new file mode 100644 index 00000000..feb22f7f --- /dev/null +++ b/examples/chain_client/insurance/query/1_Vouchers.py @@ -0,0 +1,17 @@ +import asyncio + +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.core.network import Network + + +async def main() -> None: + network = Network.testnet() + client = AsyncClient(network) + + denom = "inj" + vouchers = await client.fetch_insurance_vouchers(denom=denom) + print(vouchers) + + +if __name__ == "__main__": + asyncio.get_event_loop().run_until_complete(main()) diff --git a/examples/chain_client/insurance/query/2_Voucher.py b/examples/chain_client/insurance/query/2_Voucher.py new file mode 100644 index 00000000..1f976141 --- /dev/null +++ b/examples/chain_client/insurance/query/2_Voucher.py @@ -0,0 +1,18 @@ +import asyncio + +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.core.network import Network + + +async def main() -> None: + network = Network.testnet() + client = AsyncClient(network) + + denom = "inj" + address = "inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr" + voucher = await client.fetch_insurance_voucher(denom=denom, address=address) + print(voucher) + + +if __name__ == "__main__": + asyncio.get_event_loop().run_until_complete(main()) diff --git a/poetry.lock b/poetry.lock index 95a77767..6399c3c3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.3.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand. [[package]] name = "aiohappyeyeballs" @@ -6,7 +6,6 @@ version = "2.6.1" description = "Happy Eyeballs for asyncio" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8"}, {file = "aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558"}, @@ -18,7 +17,6 @@ version = "3.13.2" description = "Async http client/server framework (asyncio)" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "aiohttp-3.13.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:2372b15a5f62ed37789a6b383ff7344fc5b9f243999b0cd9b629d8bc5f5b4155"}, {file = "aiohttp-3.13.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e7f8659a48995edee7229522984bd1009c1213929c769c2daa80b40fe49a180c"}, @@ -153,7 +151,7 @@ propcache = ">=0.2.0" yarl = ">=1.17.0,<2.0" [package.extras] -speedups = ["Brotli ; platform_python_implementation == \"CPython\"", "aiodns (>=3.3.0)", "backports.zstd ; platform_python_implementation == \"CPython\" and python_version < \"3.14\"", "brotlicffi ; platform_python_implementation != \"CPython\""] +speedups = ["Brotli", "aiodns (>=3.3.0)", "backports.zstd", "brotlicffi"] [[package]] name = "aioresponses" @@ -161,7 +159,6 @@ version = "0.7.8" description = "Mock out requests made by ClientSession from aiohttp package" optional = false python-versions = "*" -groups = ["test"] files = [ {file = "aioresponses-0.7.8-py2.py3-none-any.whl", hash = "sha256:b73bd4400d978855e55004b23a3a84cb0f018183bcf066a85ad392800b5b9a94"}, {file = "aioresponses-0.7.8.tar.gz", hash = "sha256:b861cdfe5dc58f3b8afac7b0a6973d5d7b2cb608dd0f6253d16b8ee8eaf6df11"}, @@ -177,7 +174,6 @@ version = "1.4.0" description = "aiosignal: a list of registered asynchronous callbacks" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "aiosignal-1.4.0-py3-none-any.whl", hash = "sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e"}, {file = "aiosignal-1.4.0.tar.gz", hash = "sha256:f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7"}, @@ -193,7 +189,6 @@ version = "0.7.0" description = "Reusable constraint types to use with typing.Annotated" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"}, {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"}, @@ -205,7 +200,6 @@ version = "1.5.1" description = "Fast ASN.1 parser and serializer with definitions for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 and TSP" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "asn1crypto-1.5.1-py2.py3-none-any.whl", hash = "sha256:db4e40728b728508912cbb3d44f19ce188f218e9eba635821bb4b68564f8fd67"}, {file = "asn1crypto-1.5.1.tar.gz", hash = "sha256:13ae38502be632115abf8a24cbe5f4da52e3b5231990aff31123c805306ccb9c"}, @@ -217,8 +211,6 @@ version = "5.0.1" description = "Timeout context manager for asyncio programs" optional = false python-versions = ">=3.8" -groups = ["main", "test"] -markers = "python_version == \"3.10\"" files = [ {file = "async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c"}, {file = "async_timeout-5.0.1.tar.gz", hash = "sha256:d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3"}, @@ -230,7 +222,6 @@ version = "25.4.0" description = "Classes Without Boilerplate" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "attrs-25.4.0-py3-none-any.whl", hash = "sha256:adcf7e2a1fb3b36ac48d97835bb6d8ade15b8dcce26aba8bf1d14847b57a3373"}, {file = "attrs-25.4.0.tar.gz", hash = "sha256:16d5969b87f0859ef33a48b35d55ac1be6e42ae49d5e853b597db70c35c57e11"}, @@ -242,8 +233,6 @@ version = "1.2.0" description = "Backport of asyncio.Runner, a context manager that controls event loop life cycle." optional = false python-versions = "<3.11,>=3.8" -groups = ["test"] -markers = "python_version == \"3.10\"" files = [ {file = "backports_asyncio_runner-1.2.0-py3-none-any.whl", hash = "sha256:0da0a936a8aeb554eccb426dc55af3ba63bcdc69fa1a600b5bb305413a4477b5"}, {file = "backports_asyncio_runner-1.2.0.tar.gz", hash = "sha256:a5aa7b2b7d8f8bfcaa2b57313f70792df84e32a2a746f585213373f900b42162"}, @@ -255,7 +244,6 @@ version = "1.2.0" description = "Reference implementation for Bech32 and segwit addresses." optional = false python-versions = ">=3.5" -groups = ["main"] files = [ {file = "bech32-1.2.0-py3-none-any.whl", hash = "sha256:990dc8e5a5e4feabbdf55207b5315fdd9b73db40be294a19b3752cde9e79d981"}, {file = "bech32-1.2.0.tar.gz", hash = "sha256:7d6db8214603bd7871fcfa6c0826ef68b85b0abd90fa21c285a9c5e21d2bd899"}, @@ -267,7 +255,6 @@ version = "5.0.0" description = "Minimalistic implementation of BIP32 (Bitcoin HD wallets)" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "bip32-5.0.0-py3-none-any.whl", hash = "sha256:b20872795ae2bb4e5fac351f53ccdf2b998f82e927413922a2c5473a004bd6d0"}, {file = "bip32-5.0.0.tar.gz", hash = "sha256:4caa1f74eed9f2cd4624b55f34a4094f52542552fe3d0cc52e1179b8d6e9f21e"}, @@ -282,7 +269,6 @@ version = "3.8.0" description = "efficient arrays of booleans -- C extension" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "bitarray-3.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f08342dc8d19214faa7ef99574dea6c37a2790d6d04a9793ef8fa76c188dc08d"}, {file = "bitarray-3.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:792462abfeeca6cc8c6c1e6d27e14319682f0182f6b0ba37befe911af794db70"}, @@ -396,7 +382,6 @@ version = "25.12.0" description = "The uncompromising code formatter." optional = false python-versions = ">=3.10" -groups = ["dev"] files = [ {file = "black-25.12.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:f85ba1ad15d446756b4ab5f3044731bf68b777f8f9ac9cdabd2425b97cd9c4e8"}, {file = "black-25.12.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:546eecfe9a3a6b46f9d69d8a642585a6eaf348bcbbc4d87a19635570e02d9f4a"}, @@ -449,7 +434,6 @@ version = "0.3.5" description = "A ~8x faster drop-in replacement for eth_utils.to_checksum_address. Raises the exact same Exceptions. Implemented in C." optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "cchecksum-0.3.5-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:88795797d739961e5c4b2964ba6c927d712550ddf8a89a7a8b4d55f10420927f"}, {file = "cchecksum-0.3.5-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a3b7c2f5d7e85892bfdbd2136f641f952d423c9d49485aeb49eeb341ac3a07a5"}, @@ -471,7 +455,6 @@ version = "2025.11.12" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.7" -groups = ["main", "test"] files = [ {file = "certifi-2025.11.12-py3-none-any.whl", hash = "sha256:97de8790030bbd5c2d96b7ec782fc2f7820ef8dba6db909ccf95449f2d062d4b"}, {file = "certifi-2025.11.12.tar.gz", hash = "sha256:d8ab5478f2ecd78af242878415affce761ca6bc54a22a27e026d7c25357c3316"}, @@ -483,7 +466,6 @@ version = "2.0.0" description = "Foreign Function Interface for Python calling C code." optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "cffi-2.0.0-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:0cf2d91ecc3fcc0625c2c530fe004f82c110405f101548512cce44322fa8ac44"}, {file = "cffi-2.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f73b96c41e3b2adedc34a7356e64c8eb96e03a3782b535e043a986276ce12a49"}, @@ -580,7 +562,6 @@ version = "3.5.0" description = "Validate configuration and produce human readable error messages." optional = false python-versions = ">=3.10" -groups = ["dev"] files = [ {file = "cfgv-3.5.0-py2.py3-none-any.whl", hash = "sha256:a8dc6b26ad22ff227d2634a65cb388215ce6cc96bbcc5cfde7641ae87e8dacc0"}, {file = "cfgv-3.5.0.tar.gz", hash = "sha256:d5b1034354820651caa73ede66a6294d6e95c1b00acc5e9b098e917404669132"}, @@ -592,7 +573,6 @@ version = "3.4.4" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7" -groups = ["main", "test"] files = [ {file = "charset_normalizer-3.4.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e824f1492727fa856dd6eda4f7cee25f8518a12f3c4a56a74e8095695089cf6d"}, {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4bd5d4137d500351a30687c2d3971758aac9a19208fc110ccb9d7188fbe709e8"}, @@ -715,7 +695,6 @@ version = "2.1.5" description = "Python bindings for C-KZG-4844" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "ckzg-2.1.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:49ee4c830de89764bfd9e8188446f3020f14d32bd4486fcbc5a4a5afad775ac0"}, {file = "ckzg-2.1.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:3b4f0c6c2f1a629d4d64e900c65633595c63d208001d588c61b6c8bc1b189dec"}, @@ -861,7 +840,6 @@ version = "8.3.1" description = "Composable command line interface toolkit" optional = false python-versions = ">=3.10" -groups = ["dev"] files = [ {file = "click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6"}, {file = "click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a"}, @@ -876,7 +854,6 @@ version = "20.0.0" description = "Cross-platform Python CFFI bindings for libsecp256k1" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "coincurve-20.0.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d559b22828638390118cae9372a1bb6f6594f5584c311deb1de6a83163a0919b"}, {file = "coincurve-20.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:33d7f6ebd90fcc550f819f7f2cce2af525c342aac07f0ccda46ad8956ad9d99b"}, @@ -943,12 +920,10 @@ version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" -groups = ["dev", "test"] files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] -markers = {test = "sys_platform == \"win32\""} [[package]] name = "coverage" @@ -956,7 +931,6 @@ version = "7.13.0" description = "Code coverage measurement for Python" optional = false python-versions = ">=3.10" -groups = ["test"] files = [ {file = "coverage-7.13.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:02d9fb9eccd48f6843c98a37bd6817462f130b86da8660461e8f5e54d4c06070"}, {file = "coverage-7.13.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:367449cf07d33dc216c083f2036bb7d976c6e4903ab31be400ad74ad9f85ce98"}, @@ -1056,7 +1030,7 @@ files = [ tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} [package.extras] -toml = ["tomli ; python_full_version <= \"3.11.0a6\""] +toml = ["tomli"] [[package]] name = "cytoolz" @@ -1064,8 +1038,6 @@ version = "1.1.0" description = "Cython implementation of Toolz: High performance functional utilities" optional = false python-versions = ">=3.9" -groups = ["main"] -markers = "implementation_name == \"cpython\"" files = [ {file = "cytoolz-1.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:72d7043a88ea5e61ba9d17ea0d1c1eff10f645d7edfcc4e56a31ef78be287644"}, {file = "cytoolz-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d759e9ed421bacfeb456d47af8d734c057b9912b5f2441f95b27ca35e5efab07"}, @@ -1255,7 +1227,6 @@ version = "0.4.0" description = "Distribution utilities" optional = false python-versions = "*" -groups = ["dev"] files = [ {file = "distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16"}, {file = "distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d"}, @@ -1267,7 +1238,6 @@ version = "0.19.1" description = "ECDSA cryptographic signature library (pure python)" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.6" -groups = ["main"] files = [ {file = "ecdsa-0.19.1-py2.py3-none-any.whl", hash = "sha256:30638e27cf77b7e15c4c4cc1973720149e1033827cfd00661ca5c8cc0cdb24c3"}, {file = "ecdsa-0.19.1.tar.gz", hash = "sha256:478cba7b62555866fcb3bb3fe985e06decbdb68ef55713c4e5ab98c57d508e61"}, @@ -1286,7 +1256,6 @@ version = "0.3.1" description = "eip712: Message classes for typed structured data hashing and signing in Ethereum" optional = false python-versions = "<4,>=3.10" -groups = ["main"] files = [ {file = "eip712-0.3.1-py3-none-any.whl", hash = "sha256:323cd017e9c9082c2610198d6b9ad17acd08a5d85ab9aa5bcbf4577092aab71f"}, {file = "eip712-0.3.1.tar.gz", hash = "sha256:50b253165e8c18a73ba0033b8c00c5de75eaeec75bc0523a294ea75ed1fb5801"}, @@ -1298,25 +1267,12 @@ eth-pydantic-types = ">=0.2.4,<0.3" eth-utils = ">=2.3.1,<6" pydantic = ">=2,<3" -[[package]] -name = "entrypoints" -version = "0.4" -description = "Discover and load entry points from installed packages." -optional = false -python-versions = ">=3.6" -groups = ["dev"] -files = [ - {file = "entrypoints-0.4-py3-none-any.whl", hash = "sha256:f174b5ff827504fd3cd97cc3f8649f3693f51538c7e4bdf3ef002c8429d42f9f"}, - {file = "entrypoints-0.4.tar.gz", hash = "sha256:b706eddaa9218a19ebcd67b56818f05bb27589b1ca9e8d797b74affad4ccacd4"}, -] - [[package]] name = "eth-abi" version = "5.2.0" description = "eth_abi: Python utilities for working with Ethereum ABI definitions, especially encoding and decoding" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_abi-5.2.0-py3-none-any.whl", hash = "sha256:17abe47560ad753f18054f5b3089fcb588f3e3a092136a416b6c1502cb7e8877"}, {file = "eth_abi-5.2.0.tar.gz", hash = "sha256:178703fa98c07d8eecd5ae569e7e8d159e493ebb6eeb534a8fe973fbc4e40ef0"}, @@ -1339,7 +1295,6 @@ version = "0.13.7" description = "eth-account: Sign Ethereum transactions and messages with local private keys" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_account-0.13.7-py3-none-any.whl", hash = "sha256:39727de8c94d004ff61d10da7587509c04d2dc7eac71e04830135300bdfc6d24"}, {file = "eth_account-0.13.7.tar.gz", hash = "sha256:5853ecbcbb22e65411176f121f5f24b8afeeaf13492359d254b16d8b18c77a46"}, @@ -1348,7 +1303,7 @@ files = [ [package.dependencies] bitarray = ">=2.4.0" ckzg = ">=2.0.0" -eth-abi = ">=4.0.0b2" +eth-abi = ">=4.0.0-b.2" eth-keyfile = ">=0.7.0,<0.9.0" eth-keys = ">=0.4.0" eth-rlp = ">=2.1.0" @@ -1368,7 +1323,6 @@ version = "0.7.1" description = "eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_hash-0.7.1-py3-none-any.whl", hash = "sha256:0fb1add2adf99ef28883fd6228eb447ef519ea72933535ad1a0b28c6f65f868a"}, {file = "eth_hash-0.7.1.tar.gz", hash = "sha256:d2411a403a0b0a62e8247b4117932d900ffb4c8c64b15f92620547ca5ce46be5"}, @@ -1381,7 +1335,7 @@ pycryptodome = {version = ">=3.6.6,<4", optional = true, markers = "extra == \"p dev = ["build (>=0.9.0)", "bump_my_version (>=0.19.0)", "ipython", "mypy (==1.10.0)", "pre-commit (>=3.4.0)", "pytest (>=7.0.0)", "pytest-xdist (>=2.4.0)", "sphinx (>=6.0.0)", "sphinx-autobuild (>=2021.3.14)", "sphinx_rtd_theme (>=1.0.0)", "towncrier (>=24,<25)", "tox (>=4.0.0)", "twine", "wheel"] docs = ["sphinx (>=6.0.0)", "sphinx-autobuild (>=2021.3.14)", "sphinx_rtd_theme (>=1.0.0)", "towncrier (>=24,<25)"] pycryptodome = ["pycryptodome (>=3.6.6,<4)"] -pysha3 = ["pysha3 (>=1.0.0,<2.0.0) ; python_version < \"3.9\"", "safe-pysha3 (>=1.0.0) ; python_version >= \"3.9\""] +pysha3 = ["pysha3 (>=1.0.0,<2.0.0)", "safe-pysha3 (>=1.0.0)"] test = ["pytest (>=7.0.0)", "pytest-xdist (>=2.4.0)"] [[package]] @@ -1390,7 +1344,6 @@ version = "0.8.1" description = "eth-keyfile: A library for handling the encrypted keyfiles used to store ethereum private keys" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_keyfile-0.8.1-py3-none-any.whl", hash = "sha256:65387378b82fe7e86d7cb9f8d98e6d639142661b2f6f490629da09fddbef6d64"}, {file = "eth_keyfile-0.8.1.tar.gz", hash = "sha256:9708bc31f386b52cca0969238ff35b1ac72bd7a7186f2a84b86110d3c973bec1"}, @@ -1412,7 +1365,6 @@ version = "0.7.0" description = "eth-keys: Common API for Ethereum key operations" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_keys-0.7.0-py3-none-any.whl", hash = "sha256:b0cdda8ffe8e5ba69c7c5ca33f153828edcace844f67aabd4542d7de38b159cf"}, {file = "eth_keys-0.7.0.tar.gz", hash = "sha256:79d24fd876201df67741de3e3fefb3f4dbcbb6ace66e47e6fe662851a4547814"}, @@ -1434,7 +1386,6 @@ version = "0.2.4" description = "Pydantic Types for Ethereum" optional = false python-versions = "<4,>=3.10" -groups = ["main"] files = [ {file = "eth_pydantic_types-0.2.4-py3-none-any.whl", hash = "sha256:0fa9c4157ee87641095f663184a16267e477d8a06e71db9db6b8189938411e82"}, {file = "eth_pydantic_types-0.2.4.tar.gz", hash = "sha256:ee1cfbf3e85f0e3bac8a8711858a019c0abcd786117ea02013d083ea855d9dd8"}, @@ -1454,7 +1405,6 @@ version = "2.2.0" description = "eth-rlp: RLP definitions for common Ethereum objects in Python" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_rlp-2.2.0-py3-none-any.whl", hash = "sha256:5692d595a741fbaef1203db6a2fedffbd2506d31455a6ad378c8449ee5985c47"}, {file = "eth_rlp-2.2.0.tar.gz", hash = "sha256:5e4b2eb1b8213e303d6a232dfe35ab8c29e2d3051b86e8d359def80cd21db83d"}, @@ -1477,7 +1427,6 @@ version = "5.2.1" description = "eth-typing: Common type annotations for ethereum python packages" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_typing-5.2.1-py3-none-any.whl", hash = "sha256:b0c2812ff978267563b80e9d701f487dd926f1d376d674f3b535cfe28b665d3d"}, {file = "eth_typing-5.2.1.tar.gz", hash = "sha256:7557300dbf02a93c70fa44af352b5c4a58f94e997a0fd6797fb7d1c29d9538ee"}, @@ -1497,7 +1446,6 @@ version = "5.3.1" description = "eth-utils: Common utility functions for python code that interacts with Ethereum" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "eth_utils-5.3.1-py3-none-any.whl", hash = "sha256:1f5476d8f29588d25b8ae4987e1ffdfae6d4c09026e476c4aad13b32dda3ead0"}, {file = "eth_utils-5.3.1.tar.gz", hash = "sha256:c94e2d2abd024a9a42023b4ddc1c645814ff3d6a737b33d5cfd890ebf159c2d1"}, @@ -1521,8 +1469,6 @@ version = "1.3.1" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" -groups = ["test"] -markers = "python_version == \"3.10\"" files = [ {file = "exceptiongroup-1.3.1-py3-none-any.whl", hash = "sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598"}, {file = "exceptiongroup-1.3.1.tar.gz", hash = "sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219"}, @@ -1540,59 +1486,17 @@ version = "3.20.1" description = "A platform independent file lock." optional = false python-versions = ">=3.10" -groups = ["dev"] files = [ {file = "filelock-3.20.1-py3-none-any.whl", hash = "sha256:15d9e9a67306188a44baa72f569d2bfd803076269365fdea0934385da4dc361a"}, {file = "filelock-3.20.1.tar.gz", hash = "sha256:b8360948b351b80f420878d8516519a2204b07aefcdcfd24912a5d33127f188c"}, ] -[[package]] -name = "flake8" -version = "4.0.1" -description = "the modular source code checker: pep8 pyflakes and co" -optional = false -python-versions = ">=3.6" -groups = ["dev"] -files = [ - {file = "flake8-4.0.1-py2.py3-none-any.whl", hash = "sha256:479b1304f72536a55948cb40a32dce8bb0ffe3501e26eaf292c7e60eb5e0428d"}, - {file = "flake8-4.0.1.tar.gz", hash = "sha256:806e034dda44114815e23c16ef92f95c91e4c71100ff52813adf7132a6ad870d"}, -] - -[package.dependencies] -mccabe = ">=0.6.0,<0.7.0" -pycodestyle = ">=2.8.0,<2.9.0" -pyflakes = ">=2.4.0,<2.5.0" - -[[package]] -name = "flakeheaven" -version = "3.3.0" -description = "FlakeHeaven is a [Flake8](https://gitlab.com/pycqa/flake8) wrapper to make it cool." -optional = false -python-versions = ">=3.7,<4.0" -groups = ["dev"] -files = [ - {file = "flakeheaven-3.3.0-py3-none-any.whl", hash = "sha256:ae246197a178845b30b63fc03023f7ba925cc84cc96314ec19807dafcd6b39a3"}, - {file = "flakeheaven-3.3.0.tar.gz", hash = "sha256:eb07860e028ff8dd56cce742c4766624a37a4ce397fd34300254ab623d13047b"}, -] - -[package.dependencies] -colorama = "*" -entrypoints = "*" -flake8 = ">=4.0.1,<5.0.0" -pygments = "*" -toml = "*" -urllib3 = "*" - -[package.extras] -docs = ["alabaster", "myst-parser (>=0.18.0,<0.19.0)", "pygments-github-lexers", "sphinx"] - [[package]] name = "frozenlist" version = "1.8.0" description = "A list-like structure which implements collections.abc.MutableSequence" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "frozenlist-1.8.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:b37f6d31b3dcea7deb5e9696e529a6aa4a898adc33db82da12e4c60a7c4d2011"}, {file = "frozenlist-1.8.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ef2b7b394f208233e471abc541cc6991f907ffd47dc72584acee3147899d6565"}, @@ -1732,7 +1636,6 @@ version = "1.76.0" description = "HTTP/2-based RPC framework" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "grpcio-1.76.0-cp310-cp310-linux_armv7l.whl", hash = "sha256:65a20de41e85648e00305c1bb09a3598f840422e522277641145a32d42dcefcc"}, {file = "grpcio-1.76.0-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:40ad3afe81676fd9ec6d9d406eda00933f218038433980aa19d401490e46ecde"}, @@ -1809,7 +1712,6 @@ version = "1.71.2" description = "Protobuf code generator for gRPC" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "grpcio_tools-1.71.2-cp310-cp310-linux_armv7l.whl", hash = "sha256:ab8a28c2e795520d6dc6ffd7efaef4565026dbf9b4f5270de2f3dd1ce61d2318"}, {file = "grpcio_tools-1.71.2-cp310-cp310-macosx_10_14_universal2.whl", hash = "sha256:654ecb284a592d39a85556098b8c5125163435472a20ead79b805cf91814b99e"}, @@ -1866,7 +1768,7 @@ files = [ [package.dependencies] grpcio = ">=1.71.2" -protobuf = ">=5.26.1,<6.0.dev0" +protobuf = ">=5.26.1,<6.0dev" setuptools = "*" [[package]] @@ -1875,7 +1777,6 @@ version = "0.1.2" description = "Python implementation of the BIP32 key derivation scheme" optional = false python-versions = ">=3.6" -groups = ["main"] files = [ {file = "hdwallets-0.1.2-py3-none-any.whl", hash = "sha256:455b55b061f2b356a93e305b0c2263a6007d2ed45e48749975f09308499a2fdb"}, {file = "hdwallets-0.1.2.tar.gz", hash = "sha256:c85d08b59c3fd3bc5b29398583d7d7dc46f95456f69ff15a3ab0353084ee7529"}, @@ -1890,7 +1791,6 @@ version = "1.3.1" description = "hexbytes: Python `bytes` subclass that decodes hex, with a readable console output" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "hexbytes-1.3.1-py3-none-any.whl", hash = "sha256:da01ff24a1a9a2b1881c4b85f0e9f9b0f51b526b379ffa23832ae7899d29c2c7"}, {file = "hexbytes-1.3.1.tar.gz", hash = "sha256:a657eebebdfe27254336f98d8af6e2236f3f83aed164b87466b6cf6c5f5a4765"}, @@ -1907,7 +1807,6 @@ version = "2.6.15" description = "File identification library for Python" optional = false python-versions = ">=3.9" -groups = ["dev"] files = [ {file = "identify-2.6.15-py2.py3-none-any.whl", hash = "sha256:1181ef7608e00704db228516541eb83a88a9f94433a8c80bb9b5bd54b1d81757"}, {file = "identify-2.6.15.tar.gz", hash = "sha256:e4f4864b96c6557ef2a1e1c951771838f4edc9df3a72ec7118b338801b11c7bf"}, @@ -1922,7 +1821,6 @@ version = "3.11" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.8" -groups = ["main", "test"] files = [ {file = "idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea"}, {file = "idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"}, @@ -1931,73 +1829,23 @@ files = [ [package.extras] all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] -[[package]] -name = "importlib-metadata" -version = "4.13.0" -description = "Read metadata from Python packages" -optional = false -python-versions = ">=3.7" -groups = ["dev"] -files = [ - {file = "importlib_metadata-4.13.0-py3-none-any.whl", hash = "sha256:8a8a81bcf996e74fee46f0d16bd3eaa382a7eb20fd82445c3ad11f4090334116"}, - {file = "importlib_metadata-4.13.0.tar.gz", hash = "sha256:dd0173e8f150d6815e098fd354f6414b0f079af4644ddfe90c71e2fc6174346d"}, -] - -[package.dependencies] -zipp = ">=0.5" - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)"] -perf = ["ipython"] -testing = ["flake8 (<5)", "flufl.flake8", "importlib-resources (>=1.3) ; python_version < \"3.9\"", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7) ; platform_python_implementation != \"PyPy\"", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1) ; platform_python_implementation != \"PyPy\"", "pytest-perf (>=0.9.2)"] - [[package]] name = "iniconfig" version = "2.3.0" description = "brain-dead simple config-ini parsing" optional = false python-versions = ">=3.10" -groups = ["test"] files = [ {file = "iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12"}, {file = "iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730"}, ] -[[package]] -name = "isort" -version = "7.0.0" -description = "A Python utility / library to sort Python imports." -optional = false -python-versions = ">=3.10.0" -groups = ["dev"] -files = [ - {file = "isort-7.0.0-py3-none-any.whl", hash = "sha256:1bcabac8bc3c36c7fb7b98a76c8abb18e0f841a3ba81decac7691008592499c1"}, - {file = "isort-7.0.0.tar.gz", hash = "sha256:5513527951aadb3ac4292a41a16cbc50dd1642432f5e8c20057d414bdafb4187"}, -] - -[package.extras] -colors = ["colorama"] -plugins = ["setuptools"] - -[[package]] -name = "mccabe" -version = "0.6.1" -description = "McCabe checker, plugin for flake8" -optional = false -python-versions = "*" -groups = ["dev"] -files = [ - {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"}, - {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"}, -] - [[package]] name = "mnemonic" version = "0.21" description = "Implementation of Bitcoin BIP-0039" optional = false python-versions = ">=3.8.1" -groups = ["main"] files = [ {file = "mnemonic-0.21-py3-none-any.whl", hash = "sha256:72dc9de16ec5ef47287237b9b6943da11647a03fe7cf1f139fc3d7c4a7439288"}, {file = "mnemonic-0.21.tar.gz", hash = "sha256:1fe496356820984f45559b1540c80ff10de448368929b9c60a2b55744cc88acf"}, @@ -2009,7 +1857,6 @@ version = "6.7.0" description = "multidict implementation" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "multidict-6.7.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:9f474ad5acda359c8758c8accc22032c6abe6dc87a8be2440d097785e27a9349"}, {file = "multidict-6.7.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:4b7a9db5a870f780220e931d0002bbfd88fb53aceb6293251e2c839415c1b20e"}, @@ -2168,7 +2015,6 @@ version = "1.1.0" description = "Type system extensions for programs checked with the mypy type checker." optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505"}, {file = "mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558"}, @@ -2180,7 +2026,6 @@ version = "1.10.0" description = "Node.js virtual environment builder" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" -groups = ["dev"] files = [ {file = "nodeenv-1.10.0-py2.py3-none-any.whl", hash = "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827"}, {file = "nodeenv-1.10.0.tar.gz", hash = "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb"}, @@ -2192,7 +2037,6 @@ version = "25.0" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" -groups = ["dev", "test"] files = [ {file = "packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484"}, {file = "packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"}, @@ -2204,7 +2048,6 @@ version = "0.10.0" description = "(Soon to be) the fastest pure-Python PEG parser I could muster" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "parsimonious-0.10.0-py3-none-any.whl", hash = "sha256:982ab435fabe86519b57f6b35610aa4e4e977e9f02a14353edf4bbc75369fc0f"}, {file = "parsimonious-0.10.0.tar.gz", hash = "sha256:8281600da180ec8ae35427a4ab4f7b82bfec1e3d1e52f80cb60ea82b9512501c"}, @@ -2219,7 +2062,6 @@ version = "0.12.1" description = "Utility library for gitignore style pattern matching of file paths." optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08"}, {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"}, @@ -2231,7 +2073,6 @@ version = "4.5.1" description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." optional = false python-versions = ">=3.10" -groups = ["dev"] files = [ {file = "platformdirs-4.5.1-py3-none-any.whl", hash = "sha256:d03afa3963c806a9bed9d5125c8f4cb2fdaf74a55ab60e5d59b3fde758104d31"}, {file = "platformdirs-4.5.1.tar.gz", hash = "sha256:61d5cdcc6065745cdd94f0f878977f8de9437be93de97c1c12f853c9c0cdcbda"}, @@ -2248,7 +2089,6 @@ version = "1.6.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.9" -groups = ["test"] files = [ {file = "pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746"}, {file = "pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3"}, @@ -2264,7 +2104,6 @@ version = "4.5.1" description = "A framework for managing and maintaining multi-language pre-commit hooks." optional = false python-versions = ">=3.10" -groups = ["dev"] files = [ {file = "pre_commit-4.5.1-py2.py3-none-any.whl", hash = "sha256:3b3afd891e97337708c1674210f8eba659b52a38ea5f822ff142d10786221f77"}, {file = "pre_commit-4.5.1.tar.gz", hash = "sha256:eb545fcff725875197837263e977ea257a402056661f09dae08e4b149b030a61"}, @@ -2283,7 +2122,6 @@ version = "0.4.1" description = "Accelerated property cache" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "propcache-0.4.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7c2d1fa3201efaf55d730400d945b5b3ab6e672e100ba0f9a409d950ab25d7db"}, {file = "propcache-0.4.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1eb2994229cc8ce7fe9b3db88f5465f5fd8651672840b2e426b88cdb1a30aac8"}, @@ -2415,7 +2253,6 @@ version = "5.29.5" description = "" optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "protobuf-5.29.5-cp310-abi3-win32.whl", hash = "sha256:3f1c6468a2cfd102ff4703976138844f78ebd1fb45f49011afc5139e9e283079"}, {file = "protobuf-5.29.5-cp310-abi3-win_amd64.whl", hash = "sha256:3f76e3a3675b4a4d867b52e4a5f5b78a2ef9565549d4037e06cf7b0942b1d3fc"}, @@ -2430,26 +2267,12 @@ files = [ {file = "protobuf-5.29.5.tar.gz", hash = "sha256:bc1463bafd4b0929216c35f437a8e28731a2b7fe3d98bb77a600efced5a15c84"}, ] -[[package]] -name = "pycodestyle" -version = "2.8.0" -description = "Python style guide checker" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -groups = ["dev"] -files = [ - {file = "pycodestyle-2.8.0-py2.py3-none-any.whl", hash = "sha256:720f8b39dde8b293825e7ff02c475f3077124006db4f440dcbc9a20b76548a20"}, - {file = "pycodestyle-2.8.0.tar.gz", hash = "sha256:eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f"}, -] - [[package]] name = "pycparser" version = "2.23" description = "C parser in Python" optional = false python-versions = ">=3.8" -groups = ["main"] -markers = "implementation_name != \"PyPy\"" files = [ {file = "pycparser-2.23-py3-none-any.whl", hash = "sha256:e5c6e8d3fbad53479cab09ac03729e0a9faf2bee3db8208a550daf5af81a5934"}, {file = "pycparser-2.23.tar.gz", hash = "sha256:78816d4f24add8f10a06d6f05b4d424ad9e96cfebf68a4ddc99c65c0720d00c2"}, @@ -2461,7 +2284,6 @@ version = "3.23.0" description = "Cryptographic library for Python" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" -groups = ["main"] files = [ {file = "pycryptodome-3.23.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a176b79c49af27d7f6c12e4b178b0824626f40a7b9fed08f712291b6d54bf566"}, {file = "pycryptodome-3.23.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:573a0b3017e06f2cffd27d92ef22e46aa3be87a2d317a5abf7cc0e84e321bd75"}, @@ -2512,7 +2334,6 @@ version = "2.12.5" description = "Data validation using Python type hints" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "pydantic-2.12.5-py3-none-any.whl", hash = "sha256:e561593fccf61e8a20fc46dfc2dfe075b8be7d0188df33f221ad1f0139180f9d"}, {file = "pydantic-2.12.5.tar.gz", hash = "sha256:4d351024c75c0f085a9febbb665ce8c0c6ec5d30e903bdb6394b7ede26aebb49"}, @@ -2526,7 +2347,7 @@ typing-inspection = ">=0.4.2" [package.extras] email = ["email-validator (>=2.0.0)"] -timezone = ["tzdata ; python_version >= \"3.9\" and platform_system == \"Windows\""] +timezone = ["tzdata"] [[package]] name = "pydantic-core" @@ -2534,7 +2355,6 @@ version = "2.41.5" description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "pydantic_core-2.41.5-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:77b63866ca88d804225eaa4af3e664c5faf3568cea95360d21f4725ab6e07146"}, {file = "pydantic_core-2.41.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:dfa8a0c812ac681395907e71e1274819dec685fec28273a28905df579ef137e2"}, @@ -2662,25 +2482,12 @@ files = [ [package.dependencies] typing-extensions = ">=4.14.1" -[[package]] -name = "pyflakes" -version = "2.4.0" -description = "passive checker of Python programs" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -groups = ["dev"] -files = [ - {file = "pyflakes-2.4.0-py2.py3-none-any.whl", hash = "sha256:3bb3a3f256f4b7968c9c788781e4ff07dce46bdf12339dcda61053375426ee2e"}, - {file = "pyflakes-2.4.0.tar.gz", hash = "sha256:05a85c2872edf37a4ed30b0cce2f6093e1d0581f8c19d7393122da7e25b2b24c"}, -] - [[package]] name = "pygments" version = "2.19.2" description = "Pygments is a syntax highlighting package written in Python." optional = false python-versions = ">=3.8" -groups = ["dev", "test"] files = [ {file = "pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b"}, {file = "pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887"}, @@ -2695,7 +2502,6 @@ version = "8.4.2" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.9" -groups = ["test"] files = [ {file = "pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79"}, {file = "pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01"}, @@ -2719,7 +2525,6 @@ version = "0.3.0" description = "py.test integration for aioresponses" optional = false python-versions = "<4.0,>=3.6" -groups = ["test"] files = [ {file = "pytest_aioresponses-0.3.0-py3-none-any.whl", hash = "sha256:60f3124ff05a0210a5f369dd95e4cf66090774ba76b322f7178858ce4e6c1647"}, {file = "pytest_aioresponses-0.3.0.tar.gz", hash = "sha256:5677b32dfa1a36908b347524b5867aab35ac1c5ce1d4970244d6f66009bca7b6"}, @@ -2735,7 +2540,6 @@ version = "1.3.0" description = "Pytest support for asyncio" optional = false python-versions = ">=3.10" -groups = ["test"] files = [ {file = "pytest_asyncio-1.3.0-py3-none-any.whl", hash = "sha256:611e26147c7f77640e6d0a92a38ed17c3e9848063698d5c93d5aa7aa11cebff5"}, {file = "pytest_asyncio-1.3.0.tar.gz", hash = "sha256:d7f52f36d231b80ee124cd216ffb19369aa168fc10095013c6b014a34d3ee9e5"}, @@ -2756,7 +2560,6 @@ version = "7.0.0" description = "Pytest plugin for measuring coverage." optional = false python-versions = ">=3.9" -groups = ["test"] files = [ {file = "pytest_cov-7.0.0-py3-none-any.whl", hash = "sha256:3b8e9558b16cc1479da72058bdecf8073661c7f57f7d3c5f22a1c23507f2d861"}, {file = "pytest_cov-7.0.0.tar.gz", hash = "sha256:33c97eda2e049a0c5298e91f519302a1334c26ac65c1a483d6206fd458361af1"}, @@ -2776,7 +2579,6 @@ version = "0.8.0" description = "pytest plugin for grpc" optional = false python-versions = "*" -groups = ["test"] files = [ {file = "pytest-grpc-0.8.0.tar.gz", hash = "sha256:0bd2683ffd34199444d707c0ab01970b22e0afbba6cb1ddb6d578c85ebfe09bd"}, {file = "pytest_grpc-0.8.0-py3-none-any.whl", hash = "sha256:5b062cf498e59995e84b3051da76f7bcff8cfe307927869f7bdc27ab967eee35"}, @@ -2791,7 +2593,6 @@ version = "1.2.1" description = "Read key-value pairs from a .env file and set them as environment variables" optional = false python-versions = ">=3.9" -groups = ["dev"] files = [ {file = "python_dotenv-1.2.1-py3-none-any.whl", hash = "sha256:b81ee9561e9ca4004139c6cbba3a238c32b03e4894671e181b671e8cb8425d61"}, {file = "python_dotenv-1.2.1.tar.gz", hash = "sha256:42667e897e16ab0d66954af0e60a9caa94f0fd4ecf3aaf6d2d260eec1aa36ad6"}, @@ -2806,7 +2607,6 @@ version = "0.3.0" description = "A Fast, spec compliant Python 3.14+ tokenizer that runs on older Pythons." optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "pytokens-0.3.0-py3-none-any.whl", hash = "sha256:95b2b5eaf832e469d141a378872480ede3f251a5a5041b8ec6e581d3ac71bbf3"}, {file = "pytokens-0.3.0.tar.gz", hash = "sha256:2f932b14ed08de5fcf0b391ace2642f858f1394c0857202959000b68ed7a458a"}, @@ -2821,7 +2621,6 @@ version = "17.0.0" description = "A library for Unicode normalization (NFC, NFD, NFKC, NFKD) independent of Python's core Unicode database." optional = false python-versions = ">=3.8" -groups = ["main"] files = [ {file = "pyunormalize-17.0.0-py3-none-any.whl", hash = "sha256:f0d93b076f938db2b26d319d04f2b58505d1cd7a80b5b72badbe7d1aa4d2a31c"}, {file = "pyunormalize-17.0.0.tar.gz", hash = "sha256:0949a3e56817e287febcaf1b0cc4b5adf0bb107628d379335938040947eec792"}, @@ -2833,8 +2632,6 @@ version = "311" description = "Python for Window Extensions" optional = false python-versions = "*" -groups = ["main"] -markers = "platform_system == \"Windows\"" files = [ {file = "pywin32-311-cp310-cp310-win32.whl", hash = "sha256:d03ff496d2a0cd4a5893504789d4a15399133fe82517455e78bad62efbb7f0a3"}, {file = "pywin32-311-cp310-cp310-win_amd64.whl", hash = "sha256:797c2772017851984b97180b0bebe4b620bb86328e8a884bb626156295a63b3b"}, @@ -2864,7 +2661,6 @@ version = "6.0.3" description = "YAML parser and emitter for Python" optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "PyYAML-6.0.3-cp38-cp38-macosx_10_13_x86_64.whl", hash = "sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f"}, {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4"}, @@ -2947,7 +2743,6 @@ version = "2025.11.3" description = "Alternative regular expression module, to replace re." optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "regex-2025.11.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:2b441a4ae2c8049106e8b39973bfbddfb25a179dda2bdb99b0eeb60c40a6a3af"}, {file = "regex-2025.11.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2fa2eed3f76677777345d2f81ee89f5de2f5745910e805f7af7386a920fa7313"}, @@ -3072,7 +2867,6 @@ version = "2.32.5" description = "Python HTTP for Humans." optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6"}, {file = "requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf"}, @@ -3094,7 +2888,6 @@ version = "1.12.1" description = "Mock out responses from the requests package" optional = false python-versions = ">=3.5" -groups = ["test"] files = [ {file = "requests-mock-1.12.1.tar.gz", hash = "sha256:e9e12e333b525156e82a3c852f22016b9158220d2f47454de9cae8a77d371401"}, {file = "requests_mock-1.12.1-py2.py3-none-any.whl", hash = "sha256:b1e37054004cdd5e56c84454cc7df12b25f90f382159087f4b6915aaeef39563"}, @@ -3112,7 +2905,6 @@ version = "4.1.0" description = "rlp: A package for Recursive Length Prefix encoding and decoding" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "rlp-4.1.0-py3-none-any.whl", hash = "sha256:8eca394c579bad34ee0b937aecb96a57052ff3716e19c7a578883e767bc5da6f"}, {file = "rlp-4.1.0.tar.gz", hash = "sha256:be07564270a96f3e225e2c107db263de96b5bc1f27722d2855bd3459a08e95a9"}, @@ -3127,13 +2919,39 @@ docs = ["sphinx (>=6.0.0)", "sphinx-autobuild (>=2021.3.14)", "sphinx_rtd_theme rust-backend = ["rusty-rlp (>=0.2.1)"] test = ["hypothesis (>=6.22.0,<6.108.7)", "pytest (>=7.0.0)", "pytest-xdist (>=2.4.0)"] +[[package]] +name = "ruff" +version = "0.15.10" +description = "An extremely fast Python linter and code formatter, written in Rust." +optional = false +python-versions = ">=3.7" +files = [ + {file = "ruff-0.15.10-py3-none-linux_armv6l.whl", hash = "sha256:0744e31482f8f7d0d10a11fcbf897af272fefdfcb10f5af907b18c2813ff4d5f"}, + {file = "ruff-0.15.10-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:b1e7c16ea0ff5a53b7c2df52d947e685973049be1cdfe2b59a9c43601897b22e"}, + {file = "ruff-0.15.10-py3-none-macosx_11_0_arm64.whl", hash = "sha256:93cc06a19e5155b4441dd72808fdf84290d84ad8a39ca3b0f994363ade4cebb1"}, + {file = "ruff-0.15.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:83e1dd04312997c99ea6965df66a14fb4f03ba978564574ffc68b0d61fd3989e"}, + {file = "ruff-0.15.10-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8154d43684e4333360fedd11aaa40b1b08a4e37d8ffa9d95fee6fa5b37b6fab1"}, + {file = "ruff-0.15.10-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8ab88715f3a6deb6bde6c227f3a123410bec7b855c3ae331b4c006189e895cef"}, + {file = "ruff-0.15.10-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a768ff5969b4f44c349d48edf4ab4f91eddb27fd9d77799598e130fb628aa158"}, + {file = "ruff-0.15.10-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ee3ef42dab7078bda5ff6a1bcba8539e9857deb447132ad5566a038674540d0"}, + {file = "ruff-0.15.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51cb8cc943e891ba99989dd92d61e29b1d231e14811db9be6440ecf25d5c1609"}, + {file = "ruff-0.15.10-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:e59c9bdc056a320fb9ea1700a8d591718b8faf78af065484e801258d3a76bc3f"}, + {file = "ruff-0.15.10-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:136c00ca2f47b0018b073f28cb5c1506642a830ea941a60354b0e8bc8076b151"}, + {file = "ruff-0.15.10-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:8b80a2f3c9c8a950d6237f2ca12b206bccff626139be9fa005f14feb881a1ae8"}, + {file = "ruff-0.15.10-py3-none-musllinux_1_2_i686.whl", hash = "sha256:e3e53c588164dc025b671c9df2462429d60357ea91af7e92e9d56c565a9f1b07"}, + {file = "ruff-0.15.10-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:b0c52744cf9f143a393e284125d2576140b68264a93c6716464e129a3e9adb48"}, + {file = "ruff-0.15.10-py3-none-win32.whl", hash = "sha256:d4272e87e801e9a27a2e8df7b21011c909d9ddd82f4f3281d269b6ba19789ca5"}, + {file = "ruff-0.15.10-py3-none-win_amd64.whl", hash = "sha256:28cb32d53203242d403d819fd6983152489b12e4a3ae44993543d6fe62ab42ed"}, + {file = "ruff-0.15.10-py3-none-win_arm64.whl", hash = "sha256:601d1610a9e1f1c2165a4f561eeaa2e2ea1e97f3287c5aa258d3dab8b57c6188"}, + {file = "ruff-0.15.10.tar.gz", hash = "sha256:d1f86e67ebfdef88e00faefa1552b5e510e1d35f3be7d423dc7e84e63788c94e"}, +] + [[package]] name = "safe-pysha3" version = "1.0.5" description = "SHA-3 (Keccak) for Python 3.9 - 3.13" optional = false python-versions = "*" -groups = ["main"] files = [ {file = "safe_pysha3-1.0.5-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3d15b9b8e25c47dcf68857660b48c7bfb540b8aaaa4158651402f19ef047dff7"}, {file = "safe_pysha3-1.0.5-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:dbdc2f048fa48b660d26eb6eb897eec4e250d01219ae20cf5b1f8f8682194a41"}, @@ -3154,20 +2972,19 @@ version = "80.9.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922"}, {file = "setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c"}, ] [package.extras] -check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\"", "ruff (>=0.8.0) ; sys_platform != \"cygwin\""] -core = ["importlib_metadata (>=6) ; python_version < \"3.10\"", "jaraco.functools (>=4)", "jaraco.text (>=3.7)", "more_itertools", "more_itertools (>=8.8)", "packaging (>=24.2)", "platformdirs (>=4.2.2)", "tomli (>=2.0.1) ; python_version < \"3.11\"", "wheel (>=0.43.0)"] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1)", "ruff (>=0.8.0)"] +core = ["importlib_metadata (>=6)", "jaraco.functools (>=4)", "jaraco.text (>=3.7)", "more_itertools", "more_itertools (>=8.8)", "packaging (>=24.2)", "platformdirs (>=4.2.2)", "tomli (>=2.0.1)", "wheel (>=0.43.0)"] cover = ["pytest-cov"] doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier", "towncrier (<24.7)"] enabler = ["pytest-enabler (>=2.2)"] -test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21) ; python_version >= \"3.9\" and sys_platform != \"cygwin\"", "jaraco.envs (>=2.2)", "jaraco.path (>=3.7.2)", "jaraco.test (>=5.5)", "packaging (>=24.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf ; sys_platform != \"cygwin\"", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"] -type = ["importlib_metadata (>=7.0.2) ; python_version < \"3.10\"", "jaraco.develop (>=7.21) ; sys_platform != \"cygwin\"", "mypy (==1.14.*)", "pytest-mypy"] +test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.7.2)", "jaraco.test (>=5.5)", "packaging (>=24.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"] +type = ["importlib_metadata (>=7.0.2)", "jaraco.develop (>=7.21)", "mypy (==1.14.*)", "pytest-mypy"] [[package]] name = "six" @@ -3175,31 +2992,17 @@ version = "1.17.0" description = "Python 2 and 3 compatibility utilities" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" -groups = ["main"] files = [ {file = "six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274"}, {file = "six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"}, ] -[[package]] -name = "toml" -version = "0.10.2" -description = "Python Library for Tom's Obvious, Minimal Language" -optional = false -python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" -groups = ["dev"] -files = [ - {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, - {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, -] - [[package]] name = "tomli" version = "2.3.0" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" -groups = ["dev", "test"] files = [ {file = "tomli-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:88bd15eb972f3664f5ed4b57c1634a97153b4bac4479dcb6a495f41921eb7f45"}, {file = "tomli-2.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:883b1c0d6398a6a9d29b508c331fa56adbcdff647f6ace4dfca0f50e90dfd0ba"}, @@ -3244,7 +3047,6 @@ files = [ {file = "tomli-2.3.0-py3-none-any.whl", hash = "sha256:e95b1af3c5b07d9e643909b5abbec77cd9f1217e6d0bca72b0234736b9fb1f1b"}, {file = "tomli-2.3.0.tar.gz", hash = "sha256:64be704a875d2a59753d80ee8a533c3fe183e3f06807ff7dc2232938ccb01549"}, ] -markers = {dev = "python_version == \"3.10\"", test = "python_full_version <= \"3.11.0a6\""} [[package]] name = "toolz" @@ -3252,8 +3054,6 @@ version = "1.1.0" description = "List processing tools and functional utilities" optional = false python-versions = ">=3.9" -groups = ["main"] -markers = "implementation_name == \"pypy\" or implementation_name == \"cpython\"" files = [ {file = "toolz-1.1.0-py3-none-any.whl", hash = "sha256:15ccc861ac51c53696de0a5d6d4607f99c210739caf987b5d2054f3efed429d8"}, {file = "toolz-1.1.0.tar.gz", hash = "sha256:27a5c770d068c110d9ed9323f24f1543e83b2f300a687b7891c1a6d56b697b5b"}, @@ -3265,7 +3065,6 @@ version = "2.32.4.20250913" description = "Typing stubs for requests" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "types_requests-2.32.4.20250913-py3-none-any.whl", hash = "sha256:78c9c1fffebbe0fa487a418e0fa5252017e9c60d1a2da394077f1780f655d7e1"}, {file = "types_requests-2.32.4.20250913.tar.gz", hash = "sha256:abd6d4f9ce3a9383f269775a9835a4c24e5cd6b9f647d64f88aa4613c33def5d"}, @@ -3280,12 +3079,10 @@ version = "4.15.0" description = "Backported and Experimental Type Hints for Python 3.9+" optional = false python-versions = ">=3.9" -groups = ["main", "dev", "test"] files = [ {file = "typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548"}, {file = "typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466"}, ] -markers = {dev = "python_version == \"3.10\""} [[package]] name = "typing-inspection" @@ -3293,7 +3090,6 @@ version = "0.4.2" description = "Runtime typing introspection tools" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "typing_inspection-0.4.2-py3-none-any.whl", hash = "sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7"}, {file = "typing_inspection-0.4.2.tar.gz", hash = "sha256:ba561c48a67c5958007083d386c3295464928b01faa735ab8547c5692e87f464"}, @@ -3308,17 +3104,16 @@ version = "2.6.2" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.9" -groups = ["main", "dev", "test"] files = [ {file = "urllib3-2.6.2-py3-none-any.whl", hash = "sha256:ec21cddfe7724fc7cb4ba4bea7aa8e2ef36f607a4bab81aa6ce42a13dc3f03dd"}, {file = "urllib3-2.6.2.tar.gz", hash = "sha256:016f9c98bb7e98085cb2b4b17b87d2c702975664e4f060c6532e64d1c1a5e797"}, ] [package.extras] -brotli = ["brotli (>=1.2.0) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=1.2.0.0) ; platform_python_implementation != \"CPython\""] +brotli = ["brotli (>=1.2.0)", "brotlicffi (>=1.2.0.0)"] h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] -zstd = ["backports-zstd (>=1.0.0) ; python_version < \"3.14\""] +zstd = ["backports-zstd (>=1.0.0)"] [[package]] name = "virtualenv" @@ -3326,7 +3121,6 @@ version = "20.35.4" description = "Virtual Python Environment builder" optional = false python-versions = ">=3.8" -groups = ["dev"] files = [ {file = "virtualenv-20.35.4-py3-none-any.whl", hash = "sha256:c21c9cede36c9753eeade68ba7d523529f228a403463376cf821eaae2b650f1b"}, {file = "virtualenv-20.35.4.tar.gz", hash = "sha256:643d3914d73d3eeb0c552cbb12d7e82adf0e504dbf86a3182f8771a153a1971c"}, @@ -3340,7 +3134,7 @@ typing-extensions = {version = ">=4.13.2", markers = "python_version < \"3.11\"" [package.extras] docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] -test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8) ; platform_python_implementation == \"PyPy\" or platform_python_implementation == \"GraalVM\" or platform_python_implementation == \"CPython\" and sys_platform == \"win32\" and python_version >= \"3.13\"", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10) ; platform_python_implementation == \"CPython\""] +test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] [[package]] name = "web3" @@ -3348,7 +3142,6 @@ version = "7.14.0" description = "web3: A Python library for interacting with Ethereum" optional = false python-versions = "<4,>=3.8" -groups = ["main"] files = [ {file = "web3-7.14.0-py3-none-any.whl", hash = "sha256:a78c0a979bf11c47795f564512131c01b7598a276976f7031c55140f733e210a"}, {file = "web3-7.14.0.tar.gz", hash = "sha256:d82c78007c280e478b3920cd56658df17f2f76af584ee3318df6b60d4944b8a2"}, @@ -3382,7 +3175,6 @@ version = "15.0.1" description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" optional = false python-versions = ">=3.9" -groups = ["main"] files = [ {file = "websockets-15.0.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d63efaa0cd96cf0c5fe4d581521d9fa87744540d4bc999ae6e08595a1014b45b"}, {file = "websockets-15.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:ac60e3b188ec7574cb761b08d50fcedf9d77f1530352db4eef1707fe9dee7205"}, @@ -3461,7 +3253,6 @@ version = "1.22.0" description = "Yet another URL library" optional = false python-versions = ">=3.9" -groups = ["main", "test"] files = [ {file = "yarl-1.22.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:c7bd6683587567e5a49ee6e336e0612bec8329be1b7d4c8af5687dcdeb67ee1e"}, {file = "yarl-1.22.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5cdac20da754f3a723cceea5b3448e1a2074866406adeb4ef35b469d089adb8f"}, @@ -3600,27 +3391,7 @@ idna = ">=2.0" multidict = ">=4.0" propcache = ">=0.2.1" -[[package]] -name = "zipp" -version = "3.23.0" -description = "Backport of pathlib-compatible object wrapper for zip files" -optional = false -python-versions = ">=3.9" -groups = ["dev"] -files = [ - {file = "zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e"}, - {file = "zipp-3.23.0.tar.gz", hash = "sha256:a07157588a12518c9d4034df3fbbee09c814741a33ff63c05fa29d26a2404166"}, -] - -[package.extras] -check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\""] -cover = ["pytest-cov"] -doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -enabler = ["pytest-enabler (>=2.2)"] -test = ["big-O", "jaraco.functools", "jaraco.itertools", "jaraco.test", "more_itertools", "pytest (>=6,!=8.1.*)", "pytest-ignore-flaky"] -type = ["pytest-mypy"] - [metadata] -lock-version = "2.1" +lock-version = "2.0" python-versions = ">=3.10,<3.13" -content-hash = "74c18c5735b905343e0dc9aec63fa8fe5e240e2220b500c02ddeb161b9325de0" +content-hash = "9280d3e955b913b3bd4888db44babc1023427a61e975b24c0cb696ea1b90f99b" diff --git a/pyinjective/__init__.py b/pyinjective/__init__.py index 140aa957..5d3fa6bf 100644 --- a/pyinjective/__init__.py +++ b/pyinjective/__init__.py @@ -2,6 +2,5 @@ # If this is not imported, importing later grpcio (required by AsyncClient) fails in Mac machines with M1 and M2 from google.protobuf.internal import api_implementation # noqa: F401 -from pyinjective.async_client import AsyncClient # noqa: F401 from pyinjective.transaction import Transaction # noqa: F401 from pyinjective.wallet import Address, PrivateKey, PublicKey # noqa: F401 diff --git a/pyinjective/async_client.py b/pyinjective/async_client.py deleted file mode 100644 index 992f0678..00000000 --- a/pyinjective/async_client.py +++ /dev/null @@ -1,2491 +0,0 @@ -import asyncio -from copy import deepcopy -from decimal import Decimal -from typing import Any, Callable, Dict, List, Optional, Tuple -from warnings import warn - -from google.protobuf import json_format - -from pyinjective.client.chain.grpc.chain_grpc_auth_api import ChainGrpcAuthApi -from pyinjective.client.chain.grpc.chain_grpc_authz_api import ChainGrpcAuthZApi -from pyinjective.client.chain.grpc.chain_grpc_bank_api import ChainGrpcBankApi -from pyinjective.client.chain.grpc.chain_grpc_distribution_api import ChainGrpcDistributionApi -from pyinjective.client.chain.grpc.chain_grpc_exchange_api import ChainGrpcExchangeApi -from pyinjective.client.chain.grpc.chain_grpc_permissions_api import ChainGrpcPermissionsApi -from pyinjective.client.chain.grpc.chain_grpc_token_factory_api import ChainGrpcTokenFactoryApi -from pyinjective.client.chain.grpc.chain_grpc_txfees_api import ChainGrpcTxfeesApi -from pyinjective.client.chain.grpc.chain_grpc_wasm_api import ChainGrpcWasmApi -from pyinjective.client.chain.grpc_stream.chain_grpc_chain_stream import ChainGrpcChainStream -from pyinjective.client.model.pagination import PaginationOption -from pyinjective.composer import Composer -from pyinjective.constant import GAS_PRICE -from pyinjective.core.ibc.channel.grpc.ibc_channel_grpc_api import IBCChannelGrpcApi -from pyinjective.core.ibc.client.grpc.ibc_client_grpc_api import IBCClientGrpcApi -from pyinjective.core.ibc.connection.grpc.ibc_connection_grpc_api import IBCConnectionGrpcApi -from pyinjective.core.ibc.transfer.grpc.ibc_transfer_grpc_api import IBCTransferGrpcApi -from pyinjective.core.market import BinaryOptionMarket, DerivativeMarket, SpotMarket -from pyinjective.core.network import Network -from pyinjective.core.tendermint.grpc.tendermint_grpc_api import TendermintGrpcApi -from pyinjective.core.token import Token -from pyinjective.core.tokens_file_loader import TokensFileLoader -from pyinjective.core.tx.grpc.tx_grpc_api import TxGrpcApi -from pyinjective.exceptions import NotFoundError -from pyinjective.indexer_client import IndexerClient -from pyinjective.proto.cosmos.auth.v1beta1 import query_pb2_grpc as auth_query_grpc -from pyinjective.proto.cosmos.authz.v1beta1 import query_pb2_grpc as authz_query_grpc -from pyinjective.proto.cosmos.bank.v1beta1 import query_pb2_grpc as bank_query_grpc -from pyinjective.proto.cosmos.base.tendermint.v1beta1 import query_pb2_grpc as tendermint_query_grpc -from pyinjective.proto.cosmos.crypto.ed25519 import keys_pb2 as ed25519_keys # noqa: F401 for validator set responses -from pyinjective.proto.cosmos.tx.v1beta1 import service_pb2 as tx_service, service_pb2_grpc as tx_service_grpc -from pyinjective.proto.ibc.lightclients.tendermint.v1 import ( # noqa: F401 for validator set responses - tendermint_pb2 as ibc_tendermint, -) -from pyinjective.proto.injective.stream.v1beta1 import ( - query_pb2 as chain_stream_query, - query_pb2_grpc as stream_rpc_grpc, -) -from pyinjective.proto.injective.types.v1beta1 import account_pb2 -from pyinjective.utils.logger import LoggerProvider - -DEFAULT_TIMEOUTHEIGHT_SYNC_INTERVAL = 20 # seconds -DEFAULT_TIMEOUTHEIGHT = 30 # blocks -DEFAULT_SESSION_RENEWAL_OFFSET = 120 # seconds -DEFAULT_BLOCK_TIME = 2 # seconds - - -class AsyncClient: - def __init__( - self, - network: Network, - ): - warn( - "AsyncClient from pyinjective.async_client is deprecated. " - "Please use AsyncClient from pyinjective.async_client_v2 instead.", - DeprecationWarning, - stacklevel=2, - ) - self.addr = "" - self.number = 0 - self.sequence = 0 - - self.network = network - self.indexer_client = IndexerClient(network=network) - - # chain stubs - self.chain_channel = self.network.create_chain_grpc_channel() - - self.stubCosmosTendermint = tendermint_query_grpc.ServiceStub(self.chain_channel) - self.stubAuth = auth_query_grpc.QueryStub(self.chain_channel) - self.stubAuthz = authz_query_grpc.QueryStub(self.chain_channel) - self.stubBank = bank_query_grpc.QueryStub(self.chain_channel) - self.stubTx = tx_service_grpc.ServiceStub(self.chain_channel) - - self.timeout_height = 1 - - self.chain_stream_channel = self.network.create_chain_stream_grpc_channel() - self.chain_stream_stub = stream_rpc_grpc.StreamStub(channel=self.chain_stream_channel) - - self._timeout_height_sync_task = None - self._initialize_timeout_height_sync_task() - - self._tokens_and_markets_initialization_lock = asyncio.Lock() - self._tokens_by_denom = dict() - self._tokens_by_symbol = dict() - self._spot_markets: Optional[Dict[str, SpotMarket]] = None - self._derivative_markets: Optional[Dict[str, DerivativeMarket]] = None - self._binary_option_markets: Optional[Dict[str, BinaryOptionMarket]] = None - - self.bank_api = ChainGrpcBankApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.auth_api = ChainGrpcAuthApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.authz_api = ChainGrpcAuthZApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.distribution_api = ChainGrpcDistributionApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.chain_exchange_api = ChainGrpcExchangeApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.ibc_channel_api = IBCChannelGrpcApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.ibc_client_api = IBCClientGrpcApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.ibc_connection_api = IBCConnectionGrpcApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.ibc_transfer_api = IBCTransferGrpcApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.permissions_api = ChainGrpcPermissionsApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.tendermint_api = TendermintGrpcApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.token_factory_api = ChainGrpcTokenFactoryApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.tx_api = TxGrpcApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.txfees_api = ChainGrpcTxfeesApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - self.wasm_api = ChainGrpcWasmApi( - channel=self.chain_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - - self.chain_stream_api = ChainGrpcChainStream( - channel=self.chain_stream_channel, - cookie_assistant=network.chain_cookie_assistant, - ) - - def __del__(self): - self._cancel_timeout_height_sync_task() - - async def close_chain_channel(self): - await self.chain_channel.close() - self._cancel_timeout_height_sync_task() - - async def close_chain_stream_channel(self): - await self.chain_stream_channel.close() - self._cancel_timeout_height_sync_task() - - async def all_tokens(self) -> Dict[str, Token]: - if self._tokens_by_symbol is None: - async with self._tokens_and_markets_initialization_lock: - if self._tokens_by_symbol is None: - await self._initialize_tokens_and_markets() - return deepcopy(self._tokens_by_symbol) - - async def all_spot_markets(self) -> Dict[str, SpotMarket]: - if self._spot_markets is None: - async with self._tokens_and_markets_initialization_lock: - if self._spot_markets is None: - await self._initialize_tokens_and_markets() - return deepcopy(self._spot_markets) - - async def all_derivative_markets(self) -> Dict[str, DerivativeMarket]: - if self._derivative_markets is None: - async with self._tokens_and_markets_initialization_lock: - if self._derivative_markets is None: - await self._initialize_tokens_and_markets() - return deepcopy(self._derivative_markets) - - async def all_binary_option_markets(self) -> Dict[str, BinaryOptionMarket]: - if self._binary_option_markets is None: - async with self._tokens_and_markets_initialization_lock: - if self._binary_option_markets is None: - await self._initialize_tokens_and_markets() - return deepcopy(self._binary_option_markets) - - def get_sequence(self): - current_seq = self.sequence - self.sequence += 1 - return current_seq - - def get_number(self): - return self.number - - async def fetch_tx(self, hash: str) -> Dict[str, Any]: - return await self.tx_api.fetch_tx(hash=hash) - - async def sync_timeout_height(self): - try: - block = await self.fetch_latest_block() - self.timeout_height = int(block["block"]["header"]["height"]) + DEFAULT_TIMEOUTHEIGHT - except Exception as e: - LoggerProvider().logger_for_class(logging_class=self.__class__).debug( - f"error while fetching latest block, setting timeout height to 0: {e}" - ) - self.timeout_height = 0 - - # default client methods - - async def fetch_account(self, address: str) -> Optional[account_pb2.EthAccount]: - result_account = None - try: - account = await self.auth_api.fetch_account(address=address) - parsed_account = account_pb2.EthAccount() - if parsed_account.DESCRIPTOR.full_name in account["account"]["@type"]: - json_format.ParseDict(js_dict=account["account"], message=parsed_account, ignore_unknown_fields=True) - self.number = parsed_account.base_account.account_number - self.sequence = parsed_account.base_account.sequence - result_account = parsed_account - except Exception as e: - LoggerProvider().logger_for_class(logging_class=self.__class__).debug( - f"error while fetching sequence and number {e}" - ) - - return result_account - - async def get_request_id_by_tx_hash(self, tx_hash: str) -> List[int]: - tx = await self.tx_api.fetch_tx(hash=tx_hash) - request_ids = [] - for log in tx["txResponse"].get("logs", []): - request_event = [ - event for event in log.get("events", []) if event["type"] == "request" or event["type"] == "report" - ] - if len(request_event) == 1: - attrs = request_event[0].get("attributes", []) - attr_id = [attr for attr in attrs if attr["key"] == "id"] - if len(attr_id) == 1: - request_id = attr_id[0]["value"] - request_ids.append(int(request_id)) - if len(request_ids) == 0: - raise NotFoundError("Request Id is not found") - return request_ids - - async def simulate(self, tx_bytes: bytes) -> Dict[str, Any]: - return await self.tx_api.simulate(tx_bytes=tx_bytes) - - async def broadcast_tx_sync_mode(self, tx_bytes: bytes) -> Dict[str, Any]: - return await self.tx_api.broadcast(tx_bytes=tx_bytes, mode=tx_service.BroadcastMode.BROADCAST_MODE_SYNC) - - async def broadcast_tx_async_mode(self, tx_bytes: bytes) -> Dict[str, Any]: - return await self.tx_api.broadcast(tx_bytes=tx_bytes, mode=tx_service.BroadcastMode.BROADCAST_MODE_ASYNC) - - async def get_chain_id(self) -> str: - latest_block = await self.fetch_latest_block() - return latest_block["block"]["header"]["chainId"] - - async def fetch_grants( - self, - granter: str, - grantee: str, - msg_type_url: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.authz_api.fetch_grants( - granter=granter, - grantee=grantee, - msg_type_url=msg_type_url, - pagination=pagination, - ) - - async def fetch_bank_balances(self, address: str) -> Dict[str, Any]: - return await self.bank_api.fetch_balances(account_address=address) - - async def fetch_bank_balance(self, address: str, denom: str) -> Dict[str, Any]: - return await self.bank_api.fetch_balance(account_address=address, denom=denom) - - async def fetch_spendable_balances( - self, - address: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.bank_api.fetch_spendable_balances(account_address=address, pagination=pagination) - - async def fetch_spendable_balances_by_denom( - self, - address: str, - denom: str, - ) -> Dict[str, Any]: - return await self.bank_api.fetch_spendable_balances_by_denom(account_address=address, denom=denom) - - async def fetch_total_supply(self, pagination: Optional[PaginationOption] = None) -> Dict[str, Any]: - return await self.bank_api.fetch_total_supply(pagination=pagination) - - async def fetch_supply_of(self, denom: str) -> Dict[str, Any]: - return await self.bank_api.fetch_supply_of(denom=denom) - - async def fetch_denom_metadata(self, denom: str) -> Dict[str, Any]: - return await self.bank_api.fetch_denom_metadata(denom=denom) - - async def fetch_denoms_metadata(self, pagination: Optional[PaginationOption] = None) -> Dict[str, Any]: - return await self.bank_api.fetch_denoms_metadata(pagination=pagination) - - async def fetch_denom_owners(self, denom: str, pagination: Optional[PaginationOption] = None) -> Dict[str, Any]: - return await self.bank_api.fetch_denom_owners(denom=denom, pagination=pagination) - - async def fetch_send_enabled( - self, - denoms: Optional[List[str]] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.bank_api.fetch_send_enabled(denoms=denoms, pagination=pagination) - - async def fetch_validator_distribution_info(self, validator_address: str) -> Dict[str, Any]: - return await self.distribution_api.fetch_validator_distribution_info(validator_address=validator_address) - - async def fetch_validator_outstanding_rewards(self, validator_address: str) -> Dict[str, Any]: - return await self.distribution_api.fetch_validator_outstanding_rewards(validator_address=validator_address) - - async def fetch_validator_commission(self, validator_address: str) -> Dict[str, Any]: - return await self.distribution_api.fetch_validator_commission(validator_address=validator_address) - - async def fetch_validator_slashes( - self, - validator_address: str, - starting_height: Optional[int] = None, - ending_height: Optional[int] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.distribution_api.fetch_validator_slashes( - validator_address=validator_address, - starting_height=starting_height, - ending_height=ending_height, - pagination=pagination, - ) - - async def fetch_delegation_rewards( - self, - delegator_address: str, - validator_address: str, - ) -> Dict[str, Any]: - return await self.distribution_api.fetch_delegation_rewards( - delegator_address=delegator_address, - validator_address=validator_address, - ) - - async def fetch_delegation_total_rewards( - self, - delegator_address: str, - ) -> Dict[str, Any]: - return await self.distribution_api.fetch_delegation_total_rewards( - delegator_address=delegator_address, - ) - - async def fetch_delegator_validators( - self, - delegator_address: str, - ) -> Dict[str, Any]: - return await self.distribution_api.fetch_delegator_validators( - delegator_address=delegator_address, - ) - - async def fetch_delegator_withdraw_address( - self, - delegator_address: str, - ) -> Dict[str, Any]: - return await self.distribution_api.fetch_delegator_withdraw_address( - delegator_address=delegator_address, - ) - - async def fetch_community_pool(self) -> Dict[str, Any]: - return await self.distribution_api.fetch_community_pool() - - # Exchange module - - async def fetch_subaccount_deposits( - self, - subaccount_id: Optional[str] = None, - subaccount_trader: Optional[str] = None, - subaccount_nonce: Optional[int] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_deposits( - subaccount_id=subaccount_id, - subaccount_trader=subaccount_trader, - subaccount_nonce=subaccount_nonce, - ) - - async def fetch_subaccount_deposit( - self, - subaccount_id: str, - denom: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_deposit( - subaccount_id=subaccount_id, - denom=denom, - ) - - async def fetch_exchange_balances(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_exchange_balances() - - async def fetch_aggregate_volume(self, account: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_aggregate_volume(account=account) - - async def fetch_aggregate_volumes( - self, - accounts: Optional[List[str]] = None, - market_ids: Optional[List[str]] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_aggregate_volumes( - accounts=accounts, - market_ids=market_ids, - ) - - async def fetch_aggregate_market_volume( - self, - market_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_aggregate_market_volume( - market_id=market_id, - ) - - async def fetch_aggregate_market_volumes( - self, - market_ids: Optional[List[str]] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_aggregate_market_volumes( - market_ids=market_ids, - ) - - async def fetch_denom_decimal(self, denom: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_denom_decimal(denom=denom) - - async def fetch_denom_decimals(self, denoms: Optional[List[str]] = None) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_denom_decimals(denoms=denoms) - - async def fetch_chain_spot_markets( - self, - status: Optional[str] = None, - market_ids: Optional[List[str]] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_spot_markets( - status=status, - market_ids=market_ids, - ) - - async def fetch_chain_spot_market( - self, - market_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_spot_market( - market_id=market_id, - ) - - async def fetch_chain_full_spot_markets( - self, - status: Optional[str] = None, - market_ids: Optional[List[str]] = None, - with_mid_price_and_tob: Optional[bool] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_full_spot_markets( - status=status, - market_ids=market_ids, - with_mid_price_and_tob=with_mid_price_and_tob, - ) - - async def fetch_chain_full_spot_market( - self, - market_id: str, - with_mid_price_and_tob: Optional[bool] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_full_spot_market( - market_id=market_id, - with_mid_price_and_tob=with_mid_price_and_tob, - ) - - async def fetch_chain_spot_orderbook( - self, - market_id: str, - order_side: Optional[str] = None, - limit_cumulative_notional: Optional[str] = None, - limit_cumulative_quantity: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - # Order side could be "Side_Unspecified", "Buy", "Sell" - return await self.chain_exchange_api.fetch_spot_orderbook( - market_id=market_id, - order_side=order_side, - limit_cumulative_notional=limit_cumulative_notional, - limit_cumulative_quantity=limit_cumulative_quantity, - pagination=pagination, - ) - - async def fetch_chain_trader_spot_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_trader_spot_orders( - market_id=market_id, - subaccount_id=subaccount_id, - ) - - async def fetch_chain_account_address_spot_orders( - self, - market_id: str, - account_address: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_account_address_spot_orders( - market_id=market_id, - account_address=account_address, - ) - - async def fetch_chain_spot_orders_by_hashes( - self, - market_id: str, - subaccount_id: str, - order_hashes: List[str], - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_spot_orders_by_hashes( - market_id=market_id, - subaccount_id=subaccount_id, - order_hashes=order_hashes, - ) - - async def fetch_chain_subaccount_orders( - self, - subaccount_id: str, - market_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_orders( - subaccount_id=subaccount_id, - market_id=market_id, - ) - - async def fetch_chain_trader_spot_transient_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_trader_spot_transient_orders( - market_id=market_id, - subaccount_id=subaccount_id, - ) - - async def fetch_spot_mid_price_and_tob( - self, - market_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_spot_mid_price_and_tob( - market_id=market_id, - ) - - async def fetch_derivative_mid_price_and_tob( - self, - market_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_derivative_mid_price_and_tob( - market_id=market_id, - ) - - async def fetch_chain_derivative_orderbook( - self, - market_id: str, - limit_cumulative_notional: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_derivative_orderbook( - market_id=market_id, - limit_cumulative_notional=limit_cumulative_notional, - pagination=pagination, - ) - - async def fetch_chain_trader_derivative_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_trader_derivative_orders( - market_id=market_id, - subaccount_id=subaccount_id, - ) - - async def fetch_chain_account_address_derivative_orders( - self, - market_id: str, - account_address: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_account_address_derivative_orders( - market_id=market_id, - account_address=account_address, - ) - - async def fetch_chain_derivative_orders_by_hashes( - self, - market_id: str, - subaccount_id: str, - order_hashes: List[str], - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_derivative_orders_by_hashes( - market_id=market_id, - subaccount_id=subaccount_id, - order_hashes=order_hashes, - ) - - async def fetch_chain_trader_derivative_transient_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_trader_derivative_transient_orders( - market_id=market_id, - subaccount_id=subaccount_id, - ) - - async def fetch_chain_derivative_markets( - self, - status: Optional[str] = None, - market_ids: Optional[List[str]] = None, - with_mid_price_and_tob: Optional[bool] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_derivative_markets( - status=status, - market_ids=market_ids, - with_mid_price_and_tob=with_mid_price_and_tob, - ) - - async def fetch_chain_derivative_market( - self, - market_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_derivative_market( - market_id=market_id, - ) - - async def fetch_derivative_market_address(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_derivative_market_address(market_id=market_id) - - async def fetch_subaccount_trade_nonce(self, subaccount_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_trade_nonce(subaccount_id=subaccount_id) - - async def fetch_chain_positions(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_positions() - - async def fetch_chain_subaccount_positions(self, subaccount_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_positions(subaccount_id=subaccount_id) - - async def fetch_chain_subaccount_position_in_market(self, subaccount_id: str, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_position_in_market( - subaccount_id=subaccount_id, - market_id=market_id, - ) - - async def fetch_chain_subaccount_effective_position_in_market( - self, subaccount_id: str, market_id: str - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_effective_position_in_market( - subaccount_id=subaccount_id, - market_id=market_id, - ) - - async def fetch_chain_perpetual_market_info(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_perpetual_market_info(market_id=market_id) - - async def fetch_chain_expiry_futures_market_info(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_expiry_futures_market_info(market_id=market_id) - - async def fetch_chain_perpetual_market_funding(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_perpetual_market_funding(market_id=market_id) - - async def fetch_subaccount_order_metadata(self, subaccount_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_subaccount_order_metadata(subaccount_id=subaccount_id) - - async def fetch_trade_reward_points( - self, - accounts: Optional[List[str]] = None, - pending_pool_timestamp: Optional[int] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_trade_reward_points( - accounts=accounts, - pending_pool_timestamp=pending_pool_timestamp, - ) - - async def fetch_pending_trade_reward_points( - self, - accounts: Optional[List[str]] = None, - pending_pool_timestamp: Optional[int] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_pending_trade_reward_points( - accounts=accounts, - pending_pool_timestamp=pending_pool_timestamp, - ) - - async def fetch_trade_reward_campaign(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_trade_reward_campaign() - - async def fetch_fee_discount_account_info(self, account: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_fee_discount_account_info(account=account) - - async def fetch_fee_discount_schedule(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_fee_discount_schedule() - - async def fetch_balance_mismatches(self, dust_factor: int) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_balance_mismatches(dust_factor=dust_factor) - - async def fetch_balance_with_balance_holds(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_balance_with_balance_holds() - - async def fetch_fee_discount_tier_statistics(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_fee_discount_tier_statistics() - - async def fetch_mito_vault_infos(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_mito_vault_infos() - - async def fetch_market_id_from_vault(self, vault_address: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_market_id_from_vault(vault_address=vault_address) - - async def fetch_historical_trade_records(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_historical_trade_records(market_id=market_id) - - async def fetch_is_opted_out_of_rewards(self, account: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_is_opted_out_of_rewards(account=account) - - async def fetch_opted_out_of_rewards_accounts(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_opted_out_of_rewards_accounts() - - async def fetch_market_volatility( - self, - market_id: str, - trade_grouping_sec: Optional[int] = None, - max_age: Optional[int] = None, - include_raw_history: Optional[bool] = None, - include_metadata: Optional[bool] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_market_volatility( - market_id=market_id, - trade_grouping_sec=trade_grouping_sec, - max_age=max_age, - include_raw_history=include_raw_history, - include_metadata=include_metadata, - ) - - async def fetch_chain_binary_options_markets(self, status: Optional[str] = None) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_binary_options_markets(status=status) - - async def fetch_trader_derivative_conditional_orders( - self, - subaccount_id: Optional[str] = None, - market_id: Optional[str] = None, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_trader_derivative_conditional_orders( - subaccount_id=subaccount_id, - market_id=market_id, - ) - - async def fetch_market_atomic_execution_fee_multiplier( - self, - market_id: str, - ) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_market_atomic_execution_fee_multiplier( - market_id=market_id, - ) - - async def fetch_l3_derivative_orderbook(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_l3_derivative_orderbook(market_id=market_id) - - async def fetch_l3_spot_orderbook(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_l3_spot_orderbook(market_id=market_id) - - async def fetch_market_balance(self, market_id: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_market_balance(market_id=market_id) - - async def fetch_market_balances(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_market_balances() - - async def fetch_denom_min_notional(self, denom: str) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_denom_min_notional(denom=denom) - - async def fetch_denom_min_notionals(self) -> Dict[str, Any]: - return await self.chain_exchange_api.fetch_denom_min_notionals() - - # Injective Exchange client methods - - # Auction RPC - - async def fetch_auction(self, round: int) -> Dict[str, Any]: - return await self.indexer_client.fetch_auction(round=round) - - async def fetch_auctions(self) -> Dict[str, Any]: - return await self.indexer_client.fetch_auctions() - - async def listen_bids_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_bids_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - async def fetch_inj_burnt(self) -> Dict[str, Any]: - return await self.indexer_client.fetch_inj_burnt() - - # Meta RPC - - async def fetch_ping(self) -> Dict[str, Any]: - return await self.indexer_client.fetch_ping() - - async def fetch_version(self) -> Dict[str, Any]: - return await self.indexer_client.fetch_version() - - async def fetch_info(self) -> Dict[str, Any]: - return await self.indexer_client.fetch_info() - - async def listen_keepalive( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_keepalive( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - # Wasm module - async def fetch_contract_info(self, address: str) -> Dict[str, Any]: - return await self.wasm_api.fetch_contract_info(address=address) - - async def fetch_contract_history( - self, - address: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.wasm_api.fetch_contract_history( - address=address, - pagination=pagination, - ) - - async def fetch_contracts_by_code( - self, - code_id: int, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.wasm_api.fetch_contracts_by_code( - code_id=code_id, - pagination=pagination, - ) - - async def fetch_all_contracts_state( - self, - address: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.wasm_api.fetch_all_contracts_state( - address=address, - pagination=pagination, - ) - - async def fetch_raw_contract_state(self, address: str, query_data: str) -> Dict[str, Any]: - return await self.wasm_api.fetch_raw_contract_state(address=address, query_data=query_data) - - async def fetch_smart_contract_state(self, address: str, query_data: str) -> Dict[str, Any]: - return await self.wasm_api.fetch_smart_contract_state(address=address, query_data=query_data) - - async def fetch_code(self, code_id: int) -> Dict[str, Any]: - return await self.wasm_api.fetch_code(code_id=code_id) - - async def fetch_codes( - self, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.wasm_api.fetch_codes( - pagination=pagination, - ) - - async def fetch_pinned_codes( - self, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.wasm_api.fetch_pinned_codes( - pagination=pagination, - ) - - async def fetch_contracts_by_creator( - self, - creator_address: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.wasm_api.fetch_contracts_by_creator( - creator_address=creator_address, - pagination=pagination, - ) - - # Token Factory module - - async def fetch_denom_authority_metadata( - self, - creator: str, - sub_denom: Optional[str] = None, - ) -> Dict[str, Any]: - return await self.token_factory_api.fetch_denom_authority_metadata(creator=creator, sub_denom=sub_denom) - - async def fetch_denoms_from_creator( - self, - creator: str, - ) -> Dict[str, Any]: - return await self.token_factory_api.fetch_denoms_from_creator(creator=creator) - - async def fetch_tokenfactory_module_state(self) -> Dict[str, Any]: - return await self.token_factory_api.fetch_tokenfactory_module_state() - - # ------------------------------ - # region Tendermint module - async def fetch_node_info(self) -> Dict[str, Any]: - return await self.tendermint_api.fetch_node_info() - - async def fetch_syncing(self) -> Dict[str, Any]: - return await self.tendermint_api.fetch_syncing() - - async def fetch_latest_block(self) -> Dict[str, Any]: - return await self.tendermint_api.fetch_latest_block() - - async def fetch_block_by_height(self, height: int) -> Dict[str, Any]: - return await self.tendermint_api.fetch_block_by_height(height=height) - - async def fetch_latest_validator_set(self) -> Dict[str, Any]: - return await self.tendermint_api.fetch_latest_validator_set() - - async def fetch_validator_set_by_height( - self, height: int, pagination: Optional[PaginationOption] = None - ) -> Dict[str, Any]: - return await self.tendermint_api.fetch_validator_set_by_height(height=height, pagination=pagination) - - async def abci_query( - self, path: str, data: Optional[bytes] = None, height: Optional[int] = None, prove: bool = False - ) -> Dict[str, Any]: - return await self.tendermint_api.abci_query(path=path, data=data, height=height, prove=prove) - - # endregion - - # ------------------------------ - # Explorer RPC - - async def fetch_tx_by_tx_hash(self, tx_hash: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_tx_by_tx_hash(tx_hash=tx_hash) - - async def fetch_account_txs( - self, - address: str, - before: Optional[int] = None, - after: Optional[int] = None, - message_type: Optional[str] = None, - module: Optional[str] = None, - from_number: Optional[int] = None, - to_number: Optional[int] = None, - status: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_account_txs( - address=address, - before=before, - after=after, - message_type=message_type, - module=module, - from_number=from_number, - to_number=to_number, - status=status, - pagination=pagination, - ) - - async def fetch_contract_txs_v2( - self, - address: str, - height: Optional[int] = None, - token: Optional[str] = None, - status: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_contract_txs_v2( - address=address, - height=height, - token=token, - status=status, - pagination=pagination, - ) - - async def fetch_blocks( - self, - before: Optional[int] = None, - after: Optional[int] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_blocks(before=before, after=after, pagination=pagination) - - async def fetch_block(self, block_id: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_block(block_id=block_id) - - async def fetch_validators(self) -> Dict[str, Any]: - return await self.indexer_client.fetch_validators() - - async def fetch_validator(self, address: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_validator(address=address) - - async def fetch_validator_uptime(self, address: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_validator_uptime(address=address) - - async def fetch_txs( - self, - before: Optional[int] = None, - after: Optional[int] = None, - message_type: Optional[str] = None, - module: Optional[str] = None, - from_number: Optional[int] = None, - to_number: Optional[int] = None, - status: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_txs( - before=before, - after=after, - message_type=message_type, - module=module, - from_number=from_number, - to_number=to_number, - status=status, - pagination=pagination, - ) - - async def listen_txs_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_txs_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - async def listen_blocks_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_blocks_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - async def fetch_peggy_deposit_txs( - self, - sender: Optional[str] = None, - receiver: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_peggy_deposit_txs( - sender=sender, - receiver=receiver, - pagination=pagination, - ) - - async def fetch_peggy_withdrawal_txs( - self, - sender: Optional[str] = None, - receiver: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_peggy_withdrawal_txs( - sender=sender, - receiver=receiver, - pagination=pagination, - ) - - async def fetch_ibc_transfer_txs( - self, - sender: Optional[str] = None, - receiver: Optional[str] = None, - src_channel: Optional[str] = None, - src_port: Optional[str] = None, - dest_channel: Optional[str] = None, - dest_port: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_ibc_transfer_txs( - sender=sender, - receiver=receiver, - src_channel=src_channel, - src_port=src_port, - dest_channel=dest_channel, - dest_port=dest_port, - pagination=pagination, - ) - - async def fetch_wasm_codes( - self, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_wasm_codes( - pagination=pagination, - ) - - async def fetch_wasm_code_by_id( - self, - code_id: int, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_wasm_code_by_id(code_id=code_id) - - async def fetch_wasm_contracts( - self, - code_id: Optional[int] = None, - assets_only: Optional[bool] = None, - label: Optional[str] = None, - token: Optional[str] = None, - lookup: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_wasm_contracts( - code_id=code_id, - assets_only=assets_only, - label=label, - token=token, - lookup=lookup, - pagination=pagination, - ) - - async def fetch_wasm_contract_by_address( - self, - address: str, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_wasm_contract_by_address(address=address) - - async def fetch_cw20_balance( - self, - address: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_cw20_balance( - address=address, - pagination=pagination, - ) - - async def fetch_relayers( - self, - market_ids: Optional[List[str]] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_relayers( - market_ids=market_ids, - ) - - async def fetch_bank_transfers( - self, - senders: Optional[List[str]] = None, - recipients: Optional[List[str]] = None, - is_community_pool_related: Optional[bool] = None, - address: Optional[List[str]] = None, - per_page: Optional[int] = None, - token: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_bank_transfers( - senders=senders, - recipients=recipients, - is_community_pool_related=is_community_pool_related, - address=address, - per_page=per_page, - token=token, - pagination=pagination, - ) - - # AccountsRPC - - async def listen_subaccount_balance_updates( - self, - subaccount_id: str, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - denoms: Optional[List[str]] = None, - ): - await self.indexer_client.listen_subaccount_balance_updates( - subaccount_id=subaccount_id, - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - denoms=denoms, - ) - - async def fetch_subaccount_balance(self, subaccount_id: str, denom: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_subaccount_balance(subaccount_id=subaccount_id, denom=denom) - - async def fetch_subaccounts_list(self, address: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_subaccounts_list(address=address) - - async def fetch_subaccount_balances_list( - self, subaccount_id: str, denoms: Optional[List[str]] = None - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_subaccount_balances_list(subaccount_id=subaccount_id, denoms=denoms) - - async def fetch_subaccount_history( - self, - subaccount_id: str, - denom: Optional[str] = None, - transfer_types: Optional[List[str]] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_subaccount_history( - subaccount_id=subaccount_id, - denom=denom, - transfer_types=transfer_types, - pagination=pagination, - ) - - async def fetch_subaccount_order_summary( - self, - subaccount_id: str, - market_id: Optional[str] = None, - order_direction: Optional[str] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_subaccount_order_summary( - subaccount_id=subaccount_id, - market_id=market_id, - order_direction=order_direction, - ) - - async def fetch_order_states( - self, - spot_order_hashes: Optional[List[str]] = None, - derivative_order_hashes: Optional[List[str]] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_order_states( - spot_order_hashes=spot_order_hashes, - derivative_order_hashes=derivative_order_hashes, - ) - - async def fetch_portfolio(self, account_address: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_portfolio(account_address=account_address) - - async def fetch_rewards(self, account_address: Optional[str] = None, epoch: Optional[int] = None) -> Dict[str, Any]: - return await self.indexer_client.fetch_rewards(account_address=account_address, epoch=epoch) - - # OracleRPC - - async def listen_oracle_prices_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - base_symbol: Optional[str] = None, - quote_symbol: Optional[str] = None, - oracle_type: Optional[str] = None, - ): - await self.indexer_client.listen_oracle_prices_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - base_symbol=base_symbol, - quote_symbol=quote_symbol, - oracle_type=oracle_type, - ) - - async def fetch_oracle_price( - self, - base_symbol: Optional[str] = None, - quote_symbol: Optional[str] = None, - oracle_type: Optional[str] = None, - oracle_scale_factor: Optional[int] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_oracle_price( - base_symbol=base_symbol, - quote_symbol=quote_symbol, - oracle_type=oracle_type, - oracle_scale_factor=oracle_scale_factor, - ) - - async def fetch_oracle_list( - self, - symbol: Optional[str] = None, - oracle_type: Optional[str] = None, - per_page: Optional[int] = None, - token: Optional[str] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_oracle_list( - symbol=symbol, oracle_type=oracle_type, per_page=per_page, token=token - ) - - # InsuranceRPC - - async def fetch_insurance_funds(self) -> Dict[str, Any]: - return await self.indexer_client.fetch_insurance_funds() - - async def fetch_redemptions( - self, - address: Optional[str] = None, - denom: Optional[str] = None, - status: Optional[str] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_redemptions( - address=address, - denom=denom, - status=status, - ) - - # SpotRPC - - async def fetch_spot_market(self, market_id: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_market(market_id=market_id) - - async def fetch_spot_markets( - self, - market_statuses: Optional[List[str]] = None, - base_denom: Optional[str] = None, - quote_denom: Optional[str] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_markets( - market_statuses=market_statuses, base_denom=base_denom, quote_denom=quote_denom - ) - - async def listen_spot_markets_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - ): - await self.indexer_client.listen_spot_markets_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - ) - - async def fetch_spot_orderbook_v2(self, market_id: str, depth: Optional[int] = None) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_orderbook_v2(market_id=market_id, depth=depth or 0) - - async def fetch_spot_orderbooks_v2(self, market_ids: List[str], depth: Optional[int] = None) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_orderbooks_v2(market_ids=market_ids, depth=depth or 0) - - async def fetch_spot_orders( - self, - market_ids: Optional[List[str]] = None, - order_side: Optional[str] = None, - subaccount_id: Optional[str] = None, - include_inactive: Optional[bool] = None, - subaccount_total_orders: Optional[bool] = None, - trade_id: Optional[str] = None, - cid: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_orders( - market_ids=market_ids, - order_side=order_side, - subaccount_id=subaccount_id, - include_inactive=include_inactive, - subaccount_total_orders=subaccount_total_orders, - trade_id=trade_id, - cid=cid, - pagination=pagination, - ) - - async def fetch_spot_orders_history( - self, - subaccount_id: Optional[str] = None, - market_ids: Optional[List[str]] = None, - order_types: Optional[List[str]] = None, - direction: Optional[str] = None, - state: Optional[str] = None, - execution_types: Optional[List[str]] = None, - trade_id: Optional[str] = None, - active_markets_only: Optional[bool] = None, - cid: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_orders_history( - subaccount_id=subaccount_id, - market_ids=market_ids, - order_types=order_types, - direction=direction, - state=state, - execution_types=execution_types, - trade_id=trade_id, - active_markets_only=active_markets_only, - cid=cid, - pagination=pagination, - ) - - async def fetch_spot_trades( - self, - market_ids: Optional[List[str]] = None, - subaccount_ids: Optional[List[str]] = None, - execution_side: Optional[str] = None, - direction: Optional[str] = None, - execution_types: Optional[List[str]] = None, - trade_id: Optional[str] = None, - account_address: Optional[str] = None, - cid: Optional[str] = None, - fee_recipient: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_trades( - market_ids=market_ids, - subaccount_ids=subaccount_ids, - execution_side=execution_side, - direction=direction, - execution_types=execution_types, - trade_id=trade_id, - account_address=account_address, - cid=cid, - fee_recipient=fee_recipient, - pagination=pagination, - ) - - async def listen_spot_orderbook_snapshots( - self, - market_ids: List[str], - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_spot_orderbook_snapshots( - market_ids=market_ids, - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - async def listen_spot_orderbook_updates( - self, - market_ids: List[str], - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_spot_orderbook_updates( - market_ids=market_ids, - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - async def listen_spot_orders_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - order_side: Optional[str] = None, - subaccount_id: Optional[PaginationOption] = None, - include_inactive: Optional[bool] = None, - subaccount_total_orders: Optional[bool] = None, - trade_id: Optional[str] = None, - cid: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ): - await self.indexer_client.listen_spot_orders_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - order_side=order_side, - subaccount_id=subaccount_id, - include_inactive=include_inactive, - subaccount_total_orders=subaccount_total_orders, - trade_id=trade_id, - cid=cid, - pagination=pagination, - ) - - async def listen_spot_orders_history_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - subaccount_id: Optional[str] = None, - market_id: Optional[str] = None, - order_types: Optional[List[str]] = None, - direction: Optional[str] = None, - state: Optional[str] = None, - execution_types: Optional[List[str]] = None, - ): - await self.indexer_client.listen_spot_orders_history_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - subaccount_id=subaccount_id, - market_id=market_id, - order_types=order_types, - direction=direction, - state=state, - execution_types=execution_types, - ) - - async def listen_derivative_orders_history_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - subaccount_id: Optional[str] = None, - market_id: Optional[str] = None, - order_types: Optional[List[str]] = None, - direction: Optional[str] = None, - state: Optional[str] = None, - execution_types: Optional[List[str]] = None, - ): - await self.indexer_client.listen_derivative_orders_history_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - subaccount_id=subaccount_id, - market_id=market_id, - order_types=order_types, - direction=direction, - state=state, - execution_types=execution_types, - ) - - async def listen_spot_trades_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - subaccount_ids: Optional[List[str]] = None, - execution_side: Optional[str] = None, - direction: Optional[str] = None, - execution_types: Optional[List[str]] = None, - trade_id: Optional[str] = None, - account_address: Optional[str] = None, - cid: Optional[str] = None, - fee_recipient: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ): - await self.indexer_client.listen_spot_trades_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - subaccount_ids=subaccount_ids, - execution_side=execution_side, - direction=direction, - execution_types=execution_types, - trade_id=trade_id, - account_address=account_address, - cid=cid, - fee_recipient=fee_recipient, - pagination=pagination, - ) - - async def fetch_spot_subaccount_orders_list( - self, - subaccount_id: str, - market_id: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_subaccount_orders_list( - subaccount_id=subaccount_id, market_id=market_id, pagination=pagination - ) - - async def fetch_spot_subaccount_trades_list( - self, - subaccount_id: str, - market_id: Optional[str] = None, - execution_type: Optional[str] = None, - direction: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_spot_subaccount_trades_list( - subaccount_id=subaccount_id, - market_id=market_id, - execution_type=execution_type, - direction=direction, - pagination=pagination, - ) - - # DerivativeRPC - - async def fetch_derivative_market(self, market_id: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_market(market_id=market_id) - - async def fetch_derivative_markets( - self, - market_statuses: Optional[List[str]] = None, - quote_denom: Optional[str] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_markets( - market_statuses=market_statuses, - quote_denom=quote_denom, - ) - - async def listen_derivative_market_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - ): - await self.indexer_client.listen_derivative_market_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - ) - - async def fetch_derivative_orderbook_v2(self, market_id: str, depth: Optional[int] = None) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_orderbook_v2(market_id=market_id, depth=depth or 0) - - async def fetch_derivative_orderbooks_v2( - self, market_ids: List[str], depth: Optional[int] = None - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_orderbooks_v2(market_ids=market_ids, depth=depth or 0) - - async def fetch_derivative_orders( - self, - market_ids: Optional[List[str]] = None, - order_side: Optional[str] = None, - subaccount_id: Optional[str] = None, - is_conditional: Optional[str] = None, - order_type: Optional[str] = None, - include_inactive: Optional[bool] = None, - subaccount_total_orders: Optional[bool] = None, - trade_id: Optional[str] = None, - cid: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_orders( - market_ids=market_ids, - order_side=order_side, - subaccount_id=subaccount_id, - is_conditional=is_conditional, - order_type=order_type, - include_inactive=include_inactive, - subaccount_total_orders=subaccount_total_orders, - trade_id=trade_id, - cid=cid, - pagination=pagination, - ) - - async def fetch_derivative_orders_history( - self, - subaccount_id: Optional[str] = None, - market_ids: Optional[List[str]] = None, - order_types: Optional[List[str]] = None, - direction: Optional[str] = None, - is_conditional: Optional[str] = None, - state: Optional[str] = None, - execution_types: Optional[List[str]] = None, - trade_id: Optional[str] = None, - active_markets_only: Optional[bool] = None, - cid: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_orders_history( - subaccount_id=subaccount_id, - market_ids=market_ids, - order_types=order_types, - direction=direction, - is_conditional=is_conditional, - state=state, - execution_types=execution_types, - trade_id=trade_id, - active_markets_only=active_markets_only, - cid=cid, - pagination=pagination, - ) - - async def fetch_derivative_trades( - self, - market_ids: Optional[List[str]] = None, - subaccount_ids: Optional[List[str]] = None, - execution_side: Optional[str] = None, - direction: Optional[str] = None, - execution_types: Optional[List[str]] = None, - trade_id: Optional[str] = None, - account_address: Optional[str] = None, - cid: Optional[str] = None, - fee_recipient: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_trades( - market_ids=market_ids, - subaccount_ids=subaccount_ids, - execution_side=execution_side, - direction=direction, - execution_types=execution_types, - trade_id=trade_id, - account_address=account_address, - cid=cid, - fee_recipient=fee_recipient, - pagination=pagination, - ) - - async def listen_derivative_orderbook_snapshots( - self, - market_ids: List[str], - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_derivative_orderbook_snapshots( - market_ids=market_ids, - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - async def listen_derivative_orderbook_updates( - self, - market_ids: List[str], - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - ): - await self.indexer_client.listen_derivative_orderbook_updates( - market_ids=market_ids, - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - ) - - async def listen_derivative_orders_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - order_side: Optional[str] = None, - subaccount_id: Optional[PaginationOption] = None, - is_conditional: Optional[str] = None, - order_type: Optional[str] = None, - include_inactive: Optional[bool] = None, - subaccount_total_orders: Optional[bool] = None, - trade_id: Optional[str] = None, - cid: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ): - await self.indexer_client.listen_derivative_orders_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - order_side=order_side, - subaccount_id=subaccount_id, - is_conditional=is_conditional, - order_type=order_type, - include_inactive=include_inactive, - subaccount_total_orders=subaccount_total_orders, - trade_id=trade_id, - cid=cid, - pagination=pagination, - ) - - async def listen_derivative_trades_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - execution_side: Optional[str] = None, - direction: Optional[str] = None, - subaccount_ids: Optional[List[str]] = None, - execution_types: Optional[List[str]] = None, - trade_id: Optional[str] = None, - account_address: Optional[str] = None, - cid: Optional[str] = None, - fee_recipient: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ): - return await self.indexer_client.listen_derivative_trades_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - subaccount_ids=subaccount_ids, - execution_side=execution_side, - direction=direction, - execution_types=execution_types, - trade_id=trade_id, - account_address=account_address, - cid=cid, - fee_recipient=fee_recipient, - pagination=pagination, - ) - - async def fetch_derivative_positions_v2( - self, - market_ids: Optional[List[str]] = None, - subaccount_id: Optional[str] = None, - direction: Optional[str] = None, - subaccount_total_positions: Optional[bool] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_positions_v2( - market_ids=market_ids, - subaccount_id=subaccount_id, - direction=direction, - subaccount_total_positions=subaccount_total_positions, - pagination=pagination, - ) - - async def listen_derivative_positions_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - subaccount_ids: Optional[List[str]] = None, - ): - """ - This method is deprecated and will be removed soon. Please use `listen_derivative_positions_v2_updates` instead. - """ - warn( - "This method is deprecated. Use listen_derivative_positions_v2_updates instead", - DeprecationWarning, - stacklevel=2, - ) - await self.indexer_client.listen_derivative_positions_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - subaccount_ids=subaccount_ids, - ) - - async def listen_derivative_positions_v2_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - subaccount_id: Optional[str] = None, - market_id: Optional[str] = None, - market_ids: Optional[List[str]] = None, - subaccount_ids: Optional[List[str]] = None, - account_address: Optional[str] = None, - ): - """ - Listen to derivative positions V2 updates. - - :param callback: Callback function to process each update - :param on_end_callback: Optional callback when the stream ends - :param on_status_callback: Optional callback for handling stream status - :param subaccount_id: Optional subaccount ID to filter positions - :param market_id: Optional market ID to filter positions - :param market_ids: Optional list of market IDs to filter positions - :param subaccount_ids: Optional list of subaccount IDs to filter positions - :param account_address: Optional account address to filter positions - """ - await self.indexer_client.listen_derivative_positions_v2_updates( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - subaccount_id=subaccount_id, - market_id=market_id, - market_ids=market_ids, - subaccount_ids=subaccount_ids, - account_address=account_address, - ) - - async def fetch_derivative_liquidable_positions( - self, - market_id: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_liquidable_positions( - market_id=market_id, - pagination=pagination, - ) - - async def fetch_derivative_subaccount_orders_list( - self, - subaccount_id: str, - market_id: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_subaccount_orders_list( - subaccount_id=subaccount_id, market_id=market_id, pagination=pagination - ) - - async def fetch_derivative_subaccount_trades_list( - self, - subaccount_id: str, - market_id: Optional[str] = None, - execution_type: Optional[str] = None, - direction: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_derivative_subaccount_trades_list( - subaccount_id=subaccount_id, - market_id=market_id, - execution_type=execution_type, - direction=direction, - pagination=pagination, - ) - - async def fetch_funding_payments( - self, - market_ids: Optional[List[str]] = None, - subaccount_id: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_funding_payments( - market_ids=market_ids, subaccount_id=subaccount_id, pagination=pagination - ) - - async def fetch_funding_rates( - self, - market_id: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_funding_rates(market_id=market_id, pagination=pagination) - - async def fetch_binary_options_markets( - self, - market_status: Optional[str] = None, - quote_denom: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_binary_options_markets( - market_status=market_status, - quote_denom=quote_denom, - pagination=pagination, - ) - - async def fetch_binary_options_market(self, market_id: str) -> Dict[str, Any]: - return await self.indexer_client.fetch_binary_options_market(market_id=market_id) - - # PortfolioRPC - async def fetch_account_portfolio_balances( - self, account_address: str, usd: Optional[bool] = None - ) -> Dict[str, Any]: - return await self.indexer_client.fetch_account_portfolio_balances(account_address=account_address, usd=usd) - - async def listen_account_portfolio_updates( - self, - account_address: str, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - subaccount_id: Optional[str] = None, - update_type: Optional[str] = None, - ): - await self.indexer_client.listen_account_portfolio_updates( - account_address=account_address, - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - subaccount_id=subaccount_id, - update_type=update_type, - ) - - async def listen_chain_stream_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - bank_balances_filter: Optional[chain_stream_query.BankBalancesFilter] = None, - subaccount_deposits_filter: Optional[chain_stream_query.SubaccountDepositsFilter] = None, - spot_trades_filter: Optional[chain_stream_query.TradesFilter] = None, - derivative_trades_filter: Optional[chain_stream_query.TradesFilter] = None, - spot_orders_filter: Optional[chain_stream_query.OrdersFilter] = None, - derivative_orders_filter: Optional[chain_stream_query.OrdersFilter] = None, - spot_orderbooks_filter: Optional[chain_stream_query.OrderbookFilter] = None, - derivative_orderbooks_filter: Optional[chain_stream_query.OrderbookFilter] = None, - positions_filter: Optional[chain_stream_query.PositionsFilter] = None, - oracle_price_filter: Optional[chain_stream_query.OraclePriceFilter] = None, - ): - return await self.chain_stream_api.stream( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - bank_balances_filter=bank_balances_filter, - subaccount_deposits_filter=subaccount_deposits_filter, - spot_trades_filter=spot_trades_filter, - derivative_trades_filter=derivative_trades_filter, - spot_orders_filter=spot_orders_filter, - derivative_orders_filter=derivative_orders_filter, - spot_orderbooks_filter=spot_orderbooks_filter, - derivative_orderbooks_filter=derivative_orderbooks_filter, - positions_filter=positions_filter, - oracle_price_filter=oracle_price_filter, - ) - - # region IBC Transfer module - async def fetch_denom_trace(self, hash: str) -> Dict[str, Any]: - return await self.ibc_transfer_api.fetch_denom_trace(hash=hash) - - async def fetch_denom_traces(self, pagination: Optional[PaginationOption] = None) -> Dict[str, Any]: - return await self.ibc_transfer_api.fetch_denom_traces(pagination=pagination) - - async def fetch_denom_hash(self, trace: str) -> Dict[str, Any]: - return await self.ibc_transfer_api.fetch_denom_hash(trace=trace) - - async def fetch_escrow_address(self, port_id: str, channel_id: str) -> Dict[str, Any]: - return await self.ibc_transfer_api.fetch_escrow_address(port_id=port_id, channel_id=channel_id) - - async def fetch_total_escrow_for_denom(self, denom: str) -> Dict[str, Any]: - return await self.ibc_transfer_api.fetch_total_escrow_for_denom(denom=denom) - - # endregion - - # region IBC Channel module - async def fetch_ibc_channel(self, port_id: str, channel_id: str) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_channel(port_id=port_id, channel_id=channel_id) - - async def fetch_ibc_channels(self, pagination: Optional[PaginationOption] = None) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_channels(pagination=pagination) - - async def fetch_ibc_connection_channels( - self, connection: str, pagination: Optional[PaginationOption] = None - ) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_connection_channels(connection=connection, pagination=pagination) - - async def fetch_ibc_channel_client_state(self, port_id: str, channel_id: str) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_channel_client_state(port_id=port_id, channel_id=channel_id) - - async def fetch_ibc_channel_consensus_state( - self, - port_id: str, - channel_id: str, - revision_number: int, - revision_height: int, - ) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_channel_consensus_state( - port_id=port_id, - channel_id=channel_id, - revision_number=revision_number, - revision_height=revision_height, - ) - - async def fetch_ibc_packet_commitment(self, port_id: str, channel_id: str, sequence: int) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_packet_commitment( - port_id=port_id, channel_id=channel_id, sequence=sequence - ) - - async def fetch_ibc_packet_commitments( - self, port_id: str, channel_id: str, pagination: Optional[PaginationOption] = None - ) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_packet_commitments( - port_id=port_id, channel_id=channel_id, pagination=pagination - ) - - async def fetch_ibc_packet_receipt(self, port_id: str, channel_id: str, sequence: int) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_packet_receipt( - port_id=port_id, channel_id=channel_id, sequence=sequence - ) - - async def fetch_ibc_packet_acknowledgement(self, port_id: str, channel_id: str, sequence: int) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_packet_acknowledgement( - port_id=port_id, channel_id=channel_id, sequence=sequence - ) - - async def fetch_ibc_packet_acknowledgements( - self, - port_id: str, - channel_id: str, - packet_commitment_sequences: Optional[List[int]] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_packet_acknowledgements( - port_id=port_id, - channel_id=channel_id, - packet_commitment_sequences=packet_commitment_sequences, - pagination=pagination, - ) - - async def fetch_ibc_unreceived_packets( - self, port_id: str, channel_id: str, packet_commitment_sequences: Optional[List[int]] = None - ) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_unreceived_packets( - port_id=port_id, channel_id=channel_id, packet_commitment_sequences=packet_commitment_sequences - ) - - async def fetch_ibc_unreceived_acks( - self, port_id: str, channel_id: str, packet_ack_sequences: Optional[List[int]] = None - ) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_unreceived_acks( - port_id=port_id, channel_id=channel_id, packet_ack_sequences=packet_ack_sequences - ) - - async def fetch_next_sequence_receive(self, port_id: str, channel_id: str) -> Dict[str, Any]: - return await self.ibc_channel_api.fetch_next_sequence_receive(port_id=port_id, channel_id=channel_id) - - # endregion - - # region IBC Client module - async def fetch_ibc_client_state(self, client_id: str) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_client_state(client_id=client_id) - - async def fetch_ibc_client_states(self, pagination: Optional[PaginationOption] = None) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_client_states(pagination=pagination) - - async def fetch_ibc_consensus_state( - self, - client_id: str, - revision_number: int, - revision_height: int, - latest_height: Optional[bool] = None, - ) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_consensus_state( - client_id=client_id, - revision_number=revision_number, - revision_height=revision_height, - latest_height=latest_height, - ) - - async def fetch_ibc_consensus_states( - self, - client_id: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_consensus_states(client_id=client_id, pagination=pagination) - - async def fetch_ibc_consensus_state_heights( - self, - client_id: str, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_consensus_state_heights(client_id=client_id, pagination=pagination) - - async def fetch_ibc_client_status(self, client_id: str) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_client_status(client_id=client_id) - - async def fetch_ibc_client_params(self) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_client_params() - - async def fetch_ibc_upgraded_client_state(self) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_upgraded_client_state() - - async def fetch_ibc_upgraded_consensus_state(self) -> Dict[str, Any]: - return await self.ibc_client_api.fetch_upgraded_consensus_state() - - # endregion - - # region IBC Connection module - async def fetch_ibc_connection(self, connection_id: str) -> Dict[str, Any]: - return await self.ibc_connection_api.fetch_connection(connection_id=connection_id) - - async def fetch_ibc_connections(self, pagination: Optional[PaginationOption] = None) -> Dict[str, Any]: - return await self.ibc_connection_api.fetch_connections(pagination=pagination) - - async def fetch_ibc_client_connections(self, client_id: str) -> Dict[str, Any]: - return await self.ibc_connection_api.fetch_client_connections(client_id=client_id) - - async def fetch_ibc_connection_client_state(self, connection_id: str) -> Dict[str, Any]: - return await self.ibc_connection_api.fetch_connection_client_state(connection_id=connection_id) - - async def fetch_ibc_connection_consensus_state( - self, - connection_id: str, - revision_number: int, - revision_height: int, - ) -> Dict[str, Any]: - return await self.ibc_connection_api.fetch_connection_consensus_state( - connection_id=connection_id, revision_number=revision_number, revision_height=revision_height - ) - - async def fetch_ibc_connection_params(self) -> Dict[str, Any]: - return await self.ibc_connection_api.fetch_connection_params() - - # endregion - - # ------------------------------ - # region Permissions module - - async def fetch_permissions_namespace_denoms(self) -> Dict[str, Any]: - return await self.permissions_api.fetch_namespace_denoms() - - async def fetch_permissions_namespaces(self) -> Dict[str, Any]: - return await self.permissions_api.fetch_namespaces() - - async def fetch_permissions_namespace(self, denom: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_namespace(denom=denom) - - async def fetch_permissions_roles_by_actor(self, denom: str, actor: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_roles_by_actor(denom=denom, actor=actor) - - async def fetch_permissions_actors_by_role(self, denom: str, role: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_actors_by_role(denom=denom, role=role) - - async def fetch_permissions_role_managers(self, denom: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_role_managers(denom=denom) - - async def fetch_permissions_role_manager(self, denom: str, manager: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_role_manager(denom=denom, manager=manager) - - async def fetch_permissions_policy_statuses(self, denom: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_policy_statuses(denom=denom) - - async def fetch_permissions_policy_manager_capabilities(self, denom: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_policy_manager_capabilities(denom=denom) - - async def fetch_permissions_vouchers(self, denom: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_vouchers(denom=denom) - - async def fetch_permissions_voucher(self, denom: str, address: str) -> Dict[str, Any]: - return await self.permissions_api.fetch_voucher(denom=denom, address=address) - - async def fetch_permissions_module_state(self) -> Dict[str, Any]: - return await self.permissions_api.fetch_permissions_module_state() - - # endregion - - # ------------------------- - # region IBC Channel module - async def fetch_eip_base_fee(self) -> Dict[str, Any]: - return await self.txfees_api.fetch_eip_base_fee() - - # endregion - - async def composer(self): - return Composer( - network=self.network.string(), - spot_markets=await self.all_spot_markets(), - derivative_markets=await self.all_derivative_markets(), - binary_option_markets=await self.all_binary_option_markets(), - tokens=await self.all_tokens(), - ) - - async def current_chain_gas_price(self) -> int: - gas_price = GAS_PRICE - try: - eip_base_fee_response = await self.fetch_eip_base_fee() - gas_price = int( - Token.convert_value_from_extended_decimal_format(Decimal(eip_base_fee_response["baseFee"]["baseFee"])) - ) - except Exception as e: - logger = LoggerProvider().logger_for_class(logging_class=self.__class__) - logger.error("an error occurred when querying the gas price from the chain, using the default gas price") - logger.debug(f"error querying the gas price from chain {e}") - - return gas_price - - async def initialize_tokens_from_chain_denoms(self): - # force initialization of markets and tokens - await self.all_tokens() - - all_denoms_metadata = [] - - query_result = await self.fetch_denoms_metadata() - - all_denoms_metadata.extend(query_result.get("metadatas", [])) - next_key = query_result.get("pagination", {}).get("nextKey", "") - - while next_key != "": - query_result = await self.fetch_denoms_metadata(pagination=PaginationOption(encoded_page_key=next_key)) - - all_denoms_metadata.extend(query_result.get("metadatas", [])) - next_key = query_result.get("pagination", {}).get("nextKey", "") - - for token_metadata in all_denoms_metadata: - symbol = token_metadata["symbol"] - denom = token_metadata["base"] - - if denom != "" and symbol != "" and denom not in self._tokens_by_denom: - name = token_metadata["name"] or symbol - decimals = max({denom_unit["exponent"] for denom_unit in token_metadata["denomUnits"]}) - - unique_symbol = denom - for symbol_candidate in [symbol, name]: - if symbol_candidate not in self._tokens_by_symbol: - unique_symbol = symbol_candidate - break - - token = Token( - name=name, - symbol=symbol, - denom=denom, - address="", - decimals=decimals, - logo=token_metadata["uri"], - updated=-1, - unique_symbol=unique_symbol, - ) - - self._tokens_by_denom[denom] = token - self._tokens_by_symbol[unique_symbol] = token - - async def _initialize_tokens_and_markets(self): - spot_markets = dict() - derivative_markets = dict() - binary_option_markets = dict() - tokens_by_symbol, tokens_by_denom = await self._tokens_from_official_lists(network=self.network) - self._tokens_by_denom.update(tokens_by_denom) - self._tokens_by_symbol.update(tokens_by_symbol) - - markets_info = (await self.fetch_chain_spot_markets(status="Active"))["markets"] - for market_info in markets_info: - base_token = self._tokens_by_denom.get(market_info["baseDenom"]) - quote_token = self._tokens_by_denom.get(market_info["quoteDenom"]) - - market = SpotMarket( - id=market_info["marketId"], - status=market_info["status"], - ticker=market_info["ticker"], - base_token=base_token, - quote_token=quote_token, - maker_fee_rate=Token.convert_value_from_extended_decimal_format(Decimal(market_info["makerFeeRate"])), - taker_fee_rate=Token.convert_value_from_extended_decimal_format(Decimal(market_info["takerFeeRate"])), - service_provider_fee=Token.convert_value_from_extended_decimal_format( - Decimal(market_info["relayerFeeShareRate"]) - ), - min_price_tick_size=Token.convert_value_from_extended_decimal_format( - Decimal(market_info["minPriceTickSize"]) - ), - min_quantity_tick_size=Token.convert_value_from_extended_decimal_format( - Decimal(market_info["minQuantityTickSize"]) - ), - min_notional=Token.convert_value_from_extended_decimal_format(Decimal(market_info["minNotional"])), - ) - - spot_markets[market.id] = market - - markets_info = (await self.fetch_chain_derivative_markets(status="Active", with_mid_price_and_tob=False))[ - "markets" - ] - for market_info in markets_info: - market = market_info["market"] - quote_token = self._tokens_by_denom.get(market["quoteDenom"]) - - derivative_market = DerivativeMarket( - id=market["marketId"], - status=market["status"], - ticker=market["ticker"], - oracle_base=market["oracleBase"], - oracle_quote=market["oracleQuote"], - oracle_type=market["oracleType"], - oracle_scale_factor=market["oracleScaleFactor"], - initial_margin_ratio=Token.convert_value_from_extended_decimal_format( - Decimal(market["initialMarginRatio"]) - ), - maintenance_margin_ratio=Token.convert_value_from_extended_decimal_format( - Decimal(market["maintenanceMarginRatio"]) - ), - quote_token=quote_token, - maker_fee_rate=Token.convert_value_from_extended_decimal_format(Decimal(market["makerFeeRate"])), - taker_fee_rate=Token.convert_value_from_extended_decimal_format(Decimal(market["takerFeeRate"])), - service_provider_fee=Token.convert_value_from_extended_decimal_format( - Decimal(market["relayerFeeShareRate"]) - ), - min_price_tick_size=Token.convert_value_from_extended_decimal_format( - Decimal(market["minPriceTickSize"]) - ), - min_quantity_tick_size=Token.convert_value_from_extended_decimal_format( - Decimal(market["minQuantityTickSize"]) - ), - min_notional=Token.convert_value_from_extended_decimal_format(Decimal(market["minNotional"])), - ) - - derivative_markets[derivative_market.id] = derivative_market - - markets_info = (await self.fetch_chain_binary_options_markets(status="Active"))["markets"] - for market_info in markets_info: - quote_token = self._tokens_by_denom.get(market_info["quoteDenom"]) - - market = BinaryOptionMarket( - id=market_info["marketId"], - status=market_info["status"], - ticker=market_info["ticker"], - oracle_symbol=market_info["oracleSymbol"], - oracle_provider=market_info["oracleProvider"], - oracle_type=market_info["oracleType"], - oracle_scale_factor=market_info["oracleScaleFactor"], - expiration_timestamp=market_info["expirationTimestamp"], - settlement_timestamp=market_info["settlementTimestamp"], - quote_token=quote_token, - maker_fee_rate=Token.convert_value_from_extended_decimal_format(Decimal(market_info["makerFeeRate"])), - taker_fee_rate=Token.convert_value_from_extended_decimal_format(Decimal(market_info["takerFeeRate"])), - service_provider_fee=Token.convert_value_from_extended_decimal_format( - Decimal(market_info["relayerFeeShareRate"]) - ), - min_price_tick_size=Token.convert_value_from_extended_decimal_format( - Decimal(market_info["minPriceTickSize"]) - ), - min_quantity_tick_size=Token.convert_value_from_extended_decimal_format( - Decimal(market_info["minQuantityTickSize"]) - ), - min_notional=Token.convert_value_from_extended_decimal_format(Decimal(market_info["minNotional"])), - settlement_price=None - if market_info["settlementPrice"] == "" - else Token.convert_value_from_extended_decimal_format(Decimal(market_info["settlementPrice"])), - ) - - binary_option_markets[market.id] = market - - self._spot_markets = spot_markets - self._derivative_markets = derivative_markets - self._binary_option_markets = binary_option_markets - - def _token_representation( - self, - token_meta: Dict[str, Any], - denom: str, - tokens_by_denom: Dict[str, Token], - tokens_by_symbol: Dict[str, Token], - ) -> Token: - if denom not in tokens_by_denom: - unique_symbol = denom - for symbol_candidate in [token_meta["symbol"], token_meta["name"]]: - if symbol_candidate not in tokens_by_symbol: - unique_symbol = symbol_candidate - break - - token = Token( - name=token_meta["name"], - symbol=token_meta["symbol"], - denom=denom, - address=token_meta["address"], - decimals=token_meta["decimals"], - logo=token_meta["logo"], - updated=int(token_meta["updatedAt"]), - unique_symbol=unique_symbol, - ) - - tokens_by_denom[denom] = token - tokens_by_symbol[unique_symbol] = token - - return tokens_by_denom[denom] - - async def _tokens_from_official_lists( - self, - network: Network, - ) -> Tuple[Dict[str, Token], Dict[str, Token]]: - tokens_by_symbol = dict() - tokens_by_denom = dict() - - loader = TokensFileLoader() - tokens = await loader.load_tokens(network.official_tokens_list_url) - - for token in tokens: - if token.denom is not None and token.denom != "" and token.denom not in tokens_by_denom: - unique_symbol = token.denom - for symbol_candidate in [token.symbol, token.name]: - if symbol_candidate not in tokens_by_symbol: - unique_symbol = symbol_candidate - break - - new_token = Token( - name=token.name, - symbol=token.symbol, - denom=token.denom, - address=token.address, - decimals=token.decimals, - logo=token.logo, - updated=token.updated, - unique_symbol=unique_symbol, - ) - - tokens_by_denom[new_token.denom] = new_token - tokens_by_symbol[unique_symbol] = new_token - - return tokens_by_symbol, tokens_by_denom - - def _initialize_timeout_height_sync_task(self): - self._cancel_timeout_height_sync_task() - self._timeout_height_sync_task = asyncio.get_event_loop().create_task(self._timeout_height_sync_process()) - - async def _timeout_height_sync_process(self): - while True: - await self.sync_timeout_height() - await asyncio.sleep(DEFAULT_TIMEOUTHEIGHT_SYNC_INTERVAL) - - def _cancel_timeout_height_sync_task(self): - if self._timeout_height_sync_task is not None: - try: - self._timeout_height_sync_task.cancel() - asyncio.get_event_loop().run_until_complete(asyncio.wait_for(self._timeout_height_sync_task, timeout=1)) - except Exception as e: - logger = LoggerProvider().logger_for_class(logging_class=self.__class__) - logger.warning("error canceling timeout height sync task") - logger.debug("error canceling timeout height sync task", exc_info=e) - self._timeout_height_sync_task = None diff --git a/pyinjective/async_client_v2.py b/pyinjective/async_client_v2.py index 97073cf6..34a4142b 100644 --- a/pyinjective/async_client_v2.py +++ b/pyinjective/async_client_v2.py @@ -2,10 +2,10 @@ from copy import deepcopy from decimal import Decimal from typing import Any, Callable, Dict, List, Optional, Tuple -from warnings import warn from google.protobuf import json_format +from pyinjective.client.chain.grpc.chain_grpc_auction_api import ChainGrpcAuctionApi from pyinjective.client.chain.grpc.chain_grpc_auth_api import ChainGrpcAuthApi from pyinjective.client.chain.grpc.chain_grpc_authz_api import ChainGrpcAuthZApi from pyinjective.client.chain.grpc.chain_grpc_bank_api import ChainGrpcBankApi @@ -13,6 +13,7 @@ from pyinjective.client.chain.grpc.chain_grpc_erc20_api import ChainGrpcERC20Api from pyinjective.client.chain.grpc.chain_grpc_evm_api import ChainGrpcEVMApi from pyinjective.client.chain.grpc.chain_grpc_exchange_v2_api import ChainGrpcExchangeV2Api +from pyinjective.client.chain.grpc.chain_grpc_insurance_api import ChainGrpcInsuranceApi from pyinjective.client.chain.grpc.chain_grpc_permissions_api import ChainGrpcPermissionsApi from pyinjective.client.chain.grpc.chain_grpc_token_factory_api import ChainGrpcTokenFactoryApi from pyinjective.client.chain.grpc.chain_grpc_txfees_api import ChainGrpcTxfeesApi @@ -157,6 +158,14 @@ def __init__( channel=self.chain_channel, cookie_assistant=network.chain_cookie_assistant, ) + self.auction_chain_api = ChainGrpcAuctionApi( + channel=self.chain_channel, + cookie_assistant=network.chain_cookie_assistant, + ) + self.insurance_chain_api = ChainGrpcInsuranceApi( + channel=self.chain_channel, + cookie_assistant=network.chain_cookie_assistant, + ) self.chain_stream_api = ChainGrpcChainStream( channel=self.chain_stream_channel, @@ -415,32 +424,6 @@ async def fetch_subaccount_deposit( async def fetch_exchange_balances(self) -> Dict[str, Any]: return await self.chain_exchange_v2_api.fetch_exchange_balances() - async def fetch_denom_decimal(self, denom: str) -> Dict[str, Any]: - """ - This method is deprecated and will be removed soon. Please use `fetch_auction_exchange_transfer_denom_decimal` - instead. - """ - warn( - "This method is deprecated. Use fetch_auction_exchange_transfer_denom_decimal instead", - DeprecationWarning, - stacklevel=2, - ) - - return await self.chain_exchange_v2_api.fetch_auction_exchange_transfer_denom_decimal(denom=denom) - - async def fetch_denom_decimals(self, denoms: Optional[List[str]] = None) -> Dict[str, Any]: - """ - This method is deprecated and will be removed soon. Please use `fetch_auction_exchange_transfer_denom_decimals` - instead. - """ - warn( - "This method is deprecated. Use fetch_auction_exchange_transfer_denom_decimals instead", - DeprecationWarning, - stacklevel=2, - ) - - return await self.chain_exchange_v2_api.fetch_auction_exchange_transfer_denom_decimals(denoms=denoms) - async def fetch_auction_exchange_transfer_denom_decimal(self, denom: str) -> Dict[str, Any]: return await self.chain_exchange_v2_api.fetch_auction_exchange_transfer_denom_decimal(denom=denom) @@ -1219,6 +1202,52 @@ async def fetch_permissions_module_state(self) -> Dict[str, Any]: # endregion + # ------------------------------ + # region Auction module (chain) + + async def fetch_auction_module_params(self) -> Dict[str, Any]: + return await self.auction_chain_api.fetch_module_params() + + async def fetch_current_auction_basket(self) -> Dict[str, Any]: + return await self.auction_chain_api.fetch_current_basket() + + async def fetch_auction_vouchers(self, denom: str) -> Dict[str, Any]: + return await self.auction_chain_api.fetch_vouchers(denom=denom) + + async def fetch_auction_voucher(self, denom: str, address: str) -> Dict[str, Any]: + return await self.auction_chain_api.fetch_voucher(denom=denom, address=address) + + # endregion + + # ------------------------------ + # region Insurance module (chain) + + async def fetch_insurance_module_params(self) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_module_params() + + async def fetch_insurance_fund(self, market_id: str) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_insurance_fund(market_id=market_id) + + async def fetch_insurance_funds(self) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_insurance_funds() + + async def fetch_estimated_redemptions(self, market_id: str, address: str) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_estimated_redemptions(market_id=market_id, address=address) + + async def fetch_pending_redemptions(self, market_id: str, address: str) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_pending_redemptions(market_id=market_id, address=address) + + async def fetch_failed_redemptions(self) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_failed_redemptions() + + async def fetch_insurance_vouchers(self, denom: str) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_vouchers(denom=denom) + + async def fetch_insurance_voucher(self, denom: str, address: str) -> Dict[str, Any]: + return await self.insurance_chain_api.fetch_voucher(denom=denom, address=address) + + # endregion + # ------------------------- # region IBC Channel module async def fetch_eip_base_fee(self) -> Dict[str, Any]: @@ -1514,11 +1543,5 @@ async def _timeout_height_sync_process(self): def _cancel_timeout_height_sync_task(self): if self._timeout_height_sync_task is not None: - try: - self._timeout_height_sync_task.cancel() - asyncio.get_event_loop().run_until_complete(asyncio.wait_for(self._timeout_height_sync_task, timeout=1)) - except Exception as e: - logger = LoggerProvider().logger_for_class(logging_class=self.__class__) - logger.warning("error canceling timeout height sync task") - logger.debug("error canceling timeout height sync task", exc_info=e) + self._timeout_height_sync_task.cancel() self._timeout_height_sync_task = None diff --git a/pyinjective/client/chain/grpc/chain_grpc_auction_api.py b/pyinjective/client/chain/grpc/chain_grpc_auction_api.py index d2d2a211..9163311e 100644 --- a/pyinjective/client/chain/grpc/chain_grpc_auction_api.py +++ b/pyinjective/client/chain/grpc/chain_grpc_auction_api.py @@ -33,5 +33,17 @@ async def fetch_current_basket(self) -> Dict[str, Any]: return response + async def fetch_vouchers(self, denom: str) -> Dict[str, Any]: + request = auction_query_pb.QueryVouchersRequest(denom=denom) + response = await self._execute_call(call=self._stub.Vouchers, request=request) + + return response + + async def fetch_voucher(self, denom: str, address: str) -> Dict[str, Any]: + request = auction_query_pb.QueryVoucherRequest(denom=denom, address=address) + response = await self._execute_call(call=self._stub.Voucher, request=request) + + return response + async def _execute_call(self, call: Callable, request) -> Dict[str, Any]: return await self._assistant.execute_call(call=call, request=request) diff --git a/pyinjective/client/chain/grpc/chain_grpc_exchange_api.py b/pyinjective/client/chain/grpc/chain_grpc_exchange_api.py deleted file mode 100644 index 0fcb99e2..00000000 --- a/pyinjective/client/chain/grpc/chain_grpc_exchange_api.py +++ /dev/null @@ -1,639 +0,0 @@ -from typing import Any, Callable, Dict, List, Optional - -from grpc.aio import Channel - -from pyinjective.client.model.pagination import PaginationOption -from pyinjective.core.network import CookieAssistant -from pyinjective.proto.injective.exchange.v1beta1 import ( - query_pb2 as exchange_query_pb, - query_pb2_grpc as exchange_query_grpc, -) -from pyinjective.utils.grpc_api_request_assistant import GrpcApiRequestAssistant - - -class ChainGrpcExchangeApi: - def __init__(self, channel: Channel, cookie_assistant: CookieAssistant): - self._stub = exchange_query_grpc.QueryStub(channel) - self._assistant = GrpcApiRequestAssistant(cookie_assistant=cookie_assistant) - - async def fetch_exchange_params(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryExchangeParamsRequest() - response = await self._execute_call(call=self._stub.QueryExchangeParams, request=request) - - return response - - async def fetch_subaccount_deposits( - self, - subaccount_id: Optional[str] = None, - subaccount_trader: Optional[str] = None, - subaccount_nonce: Optional[int] = None, - ) -> Dict[str, Any]: - subaccount = None - if subaccount_trader is not None or subaccount_nonce is not None: - subaccount = exchange_query_pb.Subaccount( - trader=subaccount_trader, - subaccount_nonce=subaccount_nonce, - ) - - request = exchange_query_pb.QuerySubaccountDepositsRequest(subaccount_id=subaccount_id, subaccount=subaccount) - response = await self._execute_call(call=self._stub.SubaccountDeposits, request=request) - - return response - - async def fetch_subaccount_deposit( - self, - subaccount_id: str, - denom: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QuerySubaccountDepositRequest( - subaccount_id=subaccount_id, - denom=denom, - ) - response = await self._execute_call(call=self._stub.SubaccountDeposit, request=request) - - return response - - async def fetch_exchange_balances(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryExchangeBalancesRequest() - response = await self._execute_call(call=self._stub.ExchangeBalances, request=request) - - return response - - async def fetch_aggregate_volume(self, account: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryAggregateVolumeRequest(account=account) - response = await self._execute_call(call=self._stub.AggregateVolume, request=request) - - return response - - async def fetch_aggregate_volumes( - self, - accounts: Optional[List[str]] = None, - market_ids: Optional[List[str]] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryAggregateVolumesRequest(accounts=accounts, market_ids=market_ids) - response = await self._execute_call(call=self._stub.AggregateVolumes, request=request) - - return response - - async def fetch_aggregate_market_volume(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryAggregateMarketVolumeRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.AggregateMarketVolume, request=request) - - return response - - async def fetch_aggregate_market_volumes(self, market_ids: Optional[List[str]] = None) -> Dict[str, Any]: - request = exchange_query_pb.QueryAggregateMarketVolumesRequest(market_ids=market_ids) - response = await self._execute_call(call=self._stub.AggregateMarketVolumes, request=request) - - return response - - async def fetch_denom_decimal(self, denom: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryDenomDecimalRequest(denom=denom) - response = await self._execute_call(call=self._stub.DenomDecimal, request=request) - - return response - - async def fetch_denom_decimals(self, denoms: Optional[List[str]] = None) -> Dict[str, Any]: - request = exchange_query_pb.QueryDenomDecimalsRequest(denoms=denoms) - response = await self._execute_call(call=self._stub.DenomDecimals, request=request) - - return response - - async def fetch_spot_markets( - self, - status: Optional[str] = None, - market_ids: Optional[List[str]] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QuerySpotMarketsRequest( - status=status, - market_ids=market_ids, - ) - response = await self._execute_call(call=self._stub.SpotMarkets, request=request) - - return response - - async def fetch_spot_market(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QuerySpotMarketRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.SpotMarket, request=request) - - return response - - async def fetch_full_spot_markets( - self, - status: Optional[str] = None, - market_ids: Optional[List[str]] = None, - with_mid_price_and_tob: Optional[bool] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryFullSpotMarketsRequest( - status=status, - market_ids=market_ids, - with_mid_price_and_tob=with_mid_price_and_tob, - ) - response = await self._execute_call(call=self._stub.FullSpotMarkets, request=request) - - return response - - async def fetch_full_spot_market( - self, - market_id: str, - with_mid_price_and_tob: Optional[bool] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryFullSpotMarketRequest( - market_id=market_id, - with_mid_price_and_tob=with_mid_price_and_tob, - ) - response = await self._execute_call(call=self._stub.FullSpotMarket, request=request) - - return response - - async def fetch_spot_orderbook( - self, - market_id: str, - order_side: Optional[str] = None, - limit_cumulative_notional: Optional[str] = None, - limit_cumulative_quantity: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - limit = None - if pagination is not None: - limit = pagination.limit - request = exchange_query_pb.QuerySpotOrderbookRequest( - market_id=market_id, - order_side=order_side, - limit=limit, - limit_cumulative_notional=limit_cumulative_notional, - limit_cumulative_quantity=limit_cumulative_quantity, - ) - response = await self._execute_call(call=self._stub.SpotOrderbook, request=request) - - return response - - async def fetch_trader_spot_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryTraderSpotOrdersRequest( - market_id=market_id, - subaccount_id=subaccount_id, - ) - response = await self._execute_call(call=self._stub.TraderSpotOrders, request=request) - - return response - - async def fetch_account_address_spot_orders( - self, - market_id: str, - account_address: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryAccountAddressSpotOrdersRequest( - market_id=market_id, - account_address=account_address, - ) - response = await self._execute_call(call=self._stub.AccountAddressSpotOrders, request=request) - - return response - - async def fetch_spot_orders_by_hashes( - self, - market_id: str, - subaccount_id: str, - order_hashes: List[str], - ) -> Dict[str, Any]: - request = exchange_query_pb.QuerySpotOrdersByHashesRequest( - market_id=market_id, - subaccount_id=subaccount_id, - order_hashes=order_hashes, - ) - response = await self._execute_call(call=self._stub.SpotOrdersByHashes, request=request) - - return response - - async def fetch_subaccount_orders( - self, - subaccount_id: str, - market_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QuerySubaccountOrdersRequest( - subaccount_id=subaccount_id, - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.SubaccountOrders, request=request) - - return response - - async def fetch_trader_spot_transient_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryTraderSpotOrdersRequest( - market_id=market_id, - subaccount_id=subaccount_id, - ) - response = await self._execute_call(call=self._stub.TraderSpotTransientOrders, request=request) - - return response - - async def fetch_spot_mid_price_and_tob( - self, - market_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QuerySpotMidPriceAndTOBRequest( - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.SpotMidPriceAndTOB, request=request) - - return response - - async def fetch_derivative_mid_price_and_tob( - self, - market_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryDerivativeMidPriceAndTOBRequest( - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.DerivativeMidPriceAndTOB, request=request) - - return response - - async def fetch_derivative_orderbook( - self, - market_id: str, - limit_cumulative_notional: Optional[str] = None, - pagination: Optional[PaginationOption] = None, - ) -> Dict[str, Any]: - limit = None - if pagination is not None: - limit = pagination.limit - request = exchange_query_pb.QueryDerivativeOrderbookRequest( - market_id=market_id, - limit=limit, - limit_cumulative_notional=limit_cumulative_notional, - ) - response = await self._execute_call(call=self._stub.DerivativeOrderbook, request=request) - - return response - - async def fetch_trader_derivative_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryTraderDerivativeOrdersRequest( - market_id=market_id, - subaccount_id=subaccount_id, - ) - response = await self._execute_call(call=self._stub.TraderDerivativeOrders, request=request) - - return response - - async def fetch_account_address_derivative_orders( - self, - market_id: str, - account_address: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryAccountAddressDerivativeOrdersRequest( - market_id=market_id, - account_address=account_address, - ) - response = await self._execute_call(call=self._stub.AccountAddressDerivativeOrders, request=request) - - return response - - async def fetch_derivative_orders_by_hashes( - self, - market_id: str, - subaccount_id: str, - order_hashes: List[str], - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryDerivativeOrdersByHashesRequest( - market_id=market_id, - subaccount_id=subaccount_id, - order_hashes=order_hashes, - ) - response = await self._execute_call(call=self._stub.DerivativeOrdersByHashes, request=request) - - return response - - async def fetch_trader_derivative_transient_orders( - self, - market_id: str, - subaccount_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryTraderDerivativeOrdersRequest( - market_id=market_id, - subaccount_id=subaccount_id, - ) - response = await self._execute_call(call=self._stub.TraderDerivativeTransientOrders, request=request) - - return response - - async def fetch_derivative_markets( - self, - status: Optional[str] = None, - market_ids: Optional[List[str]] = None, - with_mid_price_and_tob: Optional[bool] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryDerivativeMarketsRequest( - status=status, - market_ids=market_ids, - with_mid_price_and_tob=with_mid_price_and_tob, - ) - response = await self._execute_call(call=self._stub.DerivativeMarkets, request=request) - - return response - - async def fetch_derivative_market( - self, - market_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryDerivativeMarketRequest( - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.DerivativeMarket, request=request) - - return response - - async def fetch_derivative_market_address( - self, - market_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryDerivativeMarketAddressRequest( - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.DerivativeMarketAddress, request=request) - - return response - - async def fetch_subaccount_trade_nonce(self, subaccount_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QuerySubaccountTradeNonceRequest(subaccount_id=subaccount_id) - response = await self._execute_call(call=self._stub.SubaccountTradeNonce, request=request) - - return response - - async def fetch_positions(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryPositionsRequest() - response = await self._execute_call(call=self._stub.Positions, request=request) - - return response - - async def fetch_subaccount_positions(self, subaccount_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QuerySubaccountPositionsRequest(subaccount_id=subaccount_id) - response = await self._execute_call(call=self._stub.SubaccountPositions, request=request) - - return response - - async def fetch_subaccount_position_in_market(self, subaccount_id: str, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QuerySubaccountPositionInMarketRequest( - subaccount_id=subaccount_id, - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.SubaccountPositionInMarket, request=request) - - return response - - async def fetch_subaccount_effective_position_in_market(self, subaccount_id: str, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QuerySubaccountEffectivePositionInMarketRequest( - subaccount_id=subaccount_id, - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.SubaccountEffectivePositionInMarket, request=request) - - return response - - async def fetch_perpetual_market_info(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryPerpetualMarketInfoRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.PerpetualMarketInfo, request=request) - - return response - - async def fetch_expiry_futures_market_info(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryExpiryFuturesMarketInfoRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.ExpiryFuturesMarketInfo, request=request) - - return response - - async def fetch_perpetual_market_funding(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryPerpetualMarketFundingRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.PerpetualMarketFunding, request=request) - - return response - - async def fetch_subaccount_order_metadata(self, subaccount_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QuerySubaccountOrderMetadataRequest(subaccount_id=subaccount_id) - response = await self._execute_call(call=self._stub.SubaccountOrderMetadata, request=request) - - return response - - async def fetch_trade_reward_points( - self, - accounts: Optional[List[str]] = None, - pending_pool_timestamp: Optional[int] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryTradeRewardPointsRequest( - accounts=accounts, - pending_pool_timestamp=pending_pool_timestamp, - ) - response = await self._execute_call(call=self._stub.TradeRewardPoints, request=request) - - return response - - async def fetch_pending_trade_reward_points( - self, - accounts: Optional[List[str]] = None, - pending_pool_timestamp: Optional[int] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryTradeRewardPointsRequest( - accounts=accounts, - pending_pool_timestamp=pending_pool_timestamp, - ) - response = await self._execute_call(call=self._stub.PendingTradeRewardPoints, request=request) - - return response - - async def fetch_trade_reward_campaign(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryTradeRewardCampaignRequest() - response = await self._execute_call(call=self._stub.TradeRewardCampaign, request=request) - - return response - - async def fetch_fee_discount_account_info( - self, - account: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryFeeDiscountAccountInfoRequest(account=account) - response = await self._execute_call(call=self._stub.FeeDiscountAccountInfo, request=request) - - return response - - async def fetch_fee_discount_schedule(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryFeeDiscountScheduleRequest() - response = await self._execute_call(call=self._stub.FeeDiscountSchedule, request=request) - - return response - - async def fetch_balance_mismatches(self, dust_factor: int) -> Dict[str, Any]: - request = exchange_query_pb.QueryBalanceMismatchesRequest(dust_factor=dust_factor) - response = await self._execute_call(call=self._stub.BalanceMismatches, request=request) - - return response - - async def fetch_balance_with_balance_holds(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryBalanceWithBalanceHoldsRequest() - response = await self._execute_call(call=self._stub.BalanceWithBalanceHolds, request=request) - - return response - - async def fetch_fee_discount_tier_statistics(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryFeeDiscountTierStatisticsRequest() - response = await self._execute_call(call=self._stub.FeeDiscountTierStatistics, request=request) - - return response - - async def fetch_mito_vault_infos(self) -> Dict[str, Any]: - request = exchange_query_pb.MitoVaultInfosRequest() - response = await self._execute_call(call=self._stub.MitoVaultInfos, request=request) - - return response - - async def fetch_market_id_from_vault(self, vault_address: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryMarketIDFromVaultRequest(vault_address=vault_address) - response = await self._execute_call(call=self._stub.QueryMarketIDFromVault, request=request) - - return response - - async def fetch_historical_trade_records(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryHistoricalTradeRecordsRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.HistoricalTradeRecords, request=request) - - return response - - async def fetch_is_opted_out_of_rewards(self, account: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryIsOptedOutOfRewardsRequest(account=account) - response = await self._execute_call(call=self._stub.IsOptedOutOfRewards, request=request) - - return response - - async def fetch_opted_out_of_rewards_accounts(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryOptedOutOfRewardsAccountsRequest() - response = await self._execute_call(call=self._stub.OptedOutOfRewardsAccounts, request=request) - - return response - - async def fetch_market_volatility( - self, - market_id: str, - trade_grouping_sec: Optional[int] = None, - max_age: Optional[int] = None, - include_raw_history: Optional[bool] = None, - include_metadata: Optional[bool] = None, - ) -> Dict[str, Any]: - trade_history_options = exchange_query_pb.TradeHistoryOptions() - if trade_grouping_sec is not None: - trade_history_options.trade_grouping_sec = trade_grouping_sec - if max_age is not None: - trade_history_options.max_age = max_age - if include_raw_history is not None: - trade_history_options.include_raw_history = include_raw_history - if include_metadata is not None: - trade_history_options.include_metadata = include_metadata - request = exchange_query_pb.QueryMarketVolatilityRequest( - market_id=market_id, trade_history_options=trade_history_options - ) - response = await self._execute_call(call=self._stub.MarketVolatility, request=request) - - return response - - async def fetch_binary_options_markets(self, status: Optional[str] = None) -> Dict[str, Any]: - request = exchange_query_pb.QueryBinaryMarketsRequest(status=status) - response = await self._execute_call(call=self._stub.BinaryOptionsMarkets, request=request) - - return response - - async def fetch_trader_derivative_conditional_orders( - self, - subaccount_id: Optional[str] = None, - market_id: Optional[str] = None, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryTraderDerivativeConditionalOrdersRequest( - subaccount_id=subaccount_id, - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.TraderDerivativeConditionalOrders, request=request) - - return response - - async def fetch_market_atomic_execution_fee_multiplier( - self, - market_id: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryMarketAtomicExecutionFeeMultiplierRequest( - market_id=market_id, - ) - response = await self._execute_call(call=self._stub.MarketAtomicExecutionFeeMultiplier, request=request) - - return response - - async def fetch_l3_derivative_orderbook(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryFullDerivativeOrderbookRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.L3DerivativeOrderBook, request=request) - - return response - - async def fetch_l3_spot_orderbook(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryFullSpotOrderbookRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.L3SpotOrderBook, request=request) - - return response - - async def fetch_market_balance(self, market_id: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryMarketBalanceRequest(market_id=market_id) - response = await self._execute_call(call=self._stub.MarketBalance, request=request) - - return response - - async def fetch_market_balances(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryMarketBalancesRequest() - response = await self._execute_call(call=self._stub.MarketBalances, request=request) - - return response - - async def fetch_denom_min_notional(self, denom: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryDenomMinNotionalRequest(denom=denom) - response = await self._execute_call(call=self._stub.DenomMinNotional, request=request) - - return response - - async def fetch_denom_min_notionals(self) -> Dict[str, Any]: - request = exchange_query_pb.QueryDenomMinNotionalsRequest() - response = await self._execute_call(call=self._stub.DenomMinNotionals, request=request) - return response - - async def fetch_active_stake_grant(self, grantee: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryActiveStakeGrantRequest(grantee=grantee) - response = await self._execute_call(call=self._stub.ActiveStakeGrant, request=request) - - return response - - async def fetch_grant_authorization( - self, - granter: str, - grantee: str, - ) -> Dict[str, Any]: - request = exchange_query_pb.QueryGrantAuthorizationRequest( - granter=granter, - grantee=grantee, - ) - response = await self._execute_call(call=self._stub.GrantAuthorization, request=request) - - return response - - async def fetch_grant_authorizations(self, granter: str) -> Dict[str, Any]: - request = exchange_query_pb.QueryGrantAuthorizationsRequest(granter=granter) - response = await self._execute_call(call=self._stub.GrantAuthorizations, request=request) - - return response - - async def _execute_call(self, call: Callable, request) -> Dict[str, Any]: - return await self._assistant.execute_call(call=call, request=request) diff --git a/pyinjective/client/chain/grpc/chain_grpc_insurance_api.py b/pyinjective/client/chain/grpc/chain_grpc_insurance_api.py new file mode 100644 index 00000000..a70361d5 --- /dev/null +++ b/pyinjective/client/chain/grpc/chain_grpc_insurance_api.py @@ -0,0 +1,73 @@ +from typing import Any, Callable, Dict + +from grpc.aio import Channel + +from pyinjective.core.network import CookieAssistant +from pyinjective.proto.injective.insurance.v1beta1 import ( + query_pb2 as insurance_query_pb, + query_pb2_grpc as insurance_query_grpc, +) +from pyinjective.utils.grpc_api_request_assistant import GrpcApiRequestAssistant + + +class ChainGrpcInsuranceApi: + def __init__(self, channel: Channel, cookie_assistant: CookieAssistant): + self._stub = insurance_query_grpc.QueryStub(channel) + self._assistant = GrpcApiRequestAssistant(cookie_assistant=cookie_assistant) + + async def fetch_module_params(self) -> Dict[str, Any]: + request = insurance_query_pb.QueryInsuranceParamsRequest() + response = await self._execute_call(call=self._stub.InsuranceParams, request=request) + + return response + + async def fetch_insurance_fund(self, market_id: str) -> Dict[str, Any]: + request = insurance_query_pb.QueryInsuranceFundRequest(market_id=market_id) + response = await self._execute_call(call=self._stub.InsuranceFund, request=request) + + return response + + async def fetch_insurance_funds(self) -> Dict[str, Any]: + request = insurance_query_pb.QueryInsuranceFundsRequest() + response = await self._execute_call(call=self._stub.InsuranceFunds, request=request) + + return response + + async def fetch_estimated_redemptions(self, market_id: str, address: str) -> Dict[str, Any]: + request = insurance_query_pb.QueryEstimatedRedemptionsRequest(marketId=market_id, address=address) + response = await self._execute_call(call=self._stub.EstimatedRedemptions, request=request) + + return response + + async def fetch_pending_redemptions(self, market_id: str, address: str) -> Dict[str, Any]: + request = insurance_query_pb.QueryPendingRedemptionsRequest(marketId=market_id, address=address) + response = await self._execute_call(call=self._stub.PendingRedemptions, request=request) + + return response + + async def fetch_module_state(self) -> Dict[str, Any]: + request = insurance_query_pb.QueryModuleStateRequest() + response = await self._execute_call(call=self._stub.InsuranceModuleState, request=request) + + return response + + async def fetch_failed_redemptions(self) -> Dict[str, Any]: + request = insurance_query_pb.QueryFailedRedemptionsRequest() + response = await self._execute_call(call=self._stub.FailedRedemptions, request=request) + + return response + + async def fetch_vouchers(self, denom: str) -> Dict[str, Any]: + request = insurance_query_pb.QueryVouchersRequest(denom=denom) + response = await self._execute_call(call=self._stub.Vouchers, request=request) + + return response + + async def fetch_voucher(self, denom: str, address: str) -> Dict[str, Any]: + request = insurance_query_pb.QueryVoucherRequest(denom=denom, address=address) + response = await self._execute_call(call=self._stub.Voucher, request=request) + + return response + + async def _execute_call(self, call: Callable, request) -> Dict[str, Any]: + return await self._assistant.execute_call(call=call, request=request) diff --git a/pyinjective/client/chain/grpc_stream/chain_grpc_chain_stream.py b/pyinjective/client/chain/grpc_stream/chain_grpc_chain_stream.py index 2e8e9ed8..8f871309 100644 --- a/pyinjective/client/chain/grpc_stream/chain_grpc_chain_stream.py +++ b/pyinjective/client/chain/grpc_stream/chain_grpc_chain_stream.py @@ -1,3 +1,4 @@ +import warnings from typing import Callable, Optional from grpc.aio import Channel @@ -33,6 +34,11 @@ async def stream( positions_filter: Optional[chain_stream_pb.PositionsFilter] = None, oracle_price_filter: Optional[chain_stream_pb.OraclePriceFilter] = None, ): + warnings.warn( + "stream is deprecated. Use stream_v2 instead.", + DeprecationWarning, + stacklevel=2, + ) request = chain_stream_pb.StreamRequest( bank_balances_filter=bank_balances_filter, subaccount_deposits_filter=subaccount_deposits_filter, diff --git a/pyinjective/composer.py b/pyinjective/composer.py deleted file mode 100644 index 8b87e109..00000000 --- a/pyinjective/composer.py +++ /dev/null @@ -1,1887 +0,0 @@ -import json -from decimal import Decimal -from enum import IntFlag -from time import time -from typing import Any, Dict, List, Optional -from warnings import warn - -from google.protobuf import any_pb2, json_format, timestamp_pb2 - -from pyinjective.constant import ADDITIONAL_CHAIN_FORMAT_DECIMALS, INJ_DECIMALS, INJ_DENOM -from pyinjective.core.market import BinaryOptionMarket, DerivativeMarket, SpotMarket -from pyinjective.core.token import Token -from pyinjective.ofac import OfacChecker -from pyinjective.proto.cosmos.authz.v1beta1 import authz_pb2 as cosmos_authz_pb, tx_pb2 as cosmos_authz_tx_pb -from pyinjective.proto.cosmos.bank.v1beta1 import bank_pb2 as bank_pb, tx_pb2 as cosmos_bank_tx_pb -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as base_coin_pb -from pyinjective.proto.cosmos.distribution.v1beta1 import ( - distribution_pb2 as cosmos_distribution_pb2, - tx_pb2 as cosmos_distribution_tx_pb, -) -from pyinjective.proto.cosmos.gov.v1beta1 import tx_pb2 as cosmos_gov_tx_pb -from pyinjective.proto.cosmos.staking.v1beta1 import tx_pb2 as cosmos_staking_tx_pb -from pyinjective.proto.cosmwasm.wasm.v1 import tx_pb2 as wasm_tx_pb -from pyinjective.proto.exchange import injective_explorer_rpc_pb2 as explorer_pb2 -from pyinjective.proto.ibc.applications.transfer.v1 import tx_pb2 as ibc_transfer_tx_pb -from pyinjective.proto.ibc.core.client.v1 import client_pb2 as ibc_core_client_pb -from pyinjective.proto.injective.auction.v1beta1 import tx_pb2 as injective_auction_tx_pb -from pyinjective.proto.injective.exchange.v1beta1 import ( - authz_pb2 as injective_authz_pb, - exchange_pb2 as injective_exchange_pb, - tx_pb2 as injective_exchange_tx_pb, -) -from pyinjective.proto.injective.insurance.v1beta1 import tx_pb2 as injective_insurance_tx_pb -from pyinjective.proto.injective.oracle.v1beta1 import ( - oracle_pb2 as injective_oracle_pb, - tx_pb2 as injective_oracle_tx_pb, -) -from pyinjective.proto.injective.peggy.v1 import msgs_pb2 as injective_peggy_tx_pb -from pyinjective.proto.injective.permissions.v1beta1 import ( - permissions_pb2 as injective_permissions_pb, - tx_pb2 as injective_permissions_tx_pb, -) -from pyinjective.proto.injective.stream.v1beta1 import query_pb2 as chain_stream_query -from pyinjective.proto.injective.tokenfactory.v1beta1 import tx_pb2 as token_factory_tx_pb -from pyinjective.proto.injective.wasmx.v1 import tx_pb2 as wasmx_tx_pb -from pyinjective.utils.denom import Denom - -REQUEST_TO_RESPONSE_TYPE_MAP = { - "MsgCreateSpotLimitOrder": injective_exchange_tx_pb.MsgCreateSpotLimitOrderResponse, - "MsgCreateSpotMarketOrder": injective_exchange_tx_pb.MsgCreateSpotMarketOrderResponse, - "MsgCreateDerivativeLimitOrder": injective_exchange_tx_pb.MsgCreateDerivativeLimitOrderResponse, - "MsgCreateDerivativeMarketOrder": injective_exchange_tx_pb.MsgCreateDerivativeMarketOrderResponse, - "MsgCancelSpotOrder": injective_exchange_tx_pb.MsgCancelSpotOrderResponse, - "MsgCancelDerivativeOrder": injective_exchange_tx_pb.MsgCancelDerivativeOrderResponse, - "MsgBatchCancelSpotOrders": injective_exchange_tx_pb.MsgBatchCancelSpotOrdersResponse, - "MsgBatchCancelDerivativeOrders": injective_exchange_tx_pb.MsgBatchCancelDerivativeOrdersResponse, - "MsgBatchCreateSpotLimitOrders": injective_exchange_tx_pb.MsgBatchCreateSpotLimitOrdersResponse, - "MsgBatchCreateDerivativeLimitOrders": injective_exchange_tx_pb.MsgBatchCreateDerivativeLimitOrdersResponse, - "MsgBatchUpdateOrders": injective_exchange_tx_pb.MsgBatchUpdateOrdersResponse, - "MsgDeposit": injective_exchange_tx_pb.MsgDepositResponse, - "MsgWithdraw": injective_exchange_tx_pb.MsgWithdrawResponse, - "MsgSubaccountTransfer": injective_exchange_tx_pb.MsgSubaccountTransferResponse, - "MsgLiquidatePosition": injective_exchange_tx_pb.MsgLiquidatePositionResponse, - "MsgIncreasePositionMargin": injective_exchange_tx_pb.MsgIncreasePositionMarginResponse, - "MsgCreateBinaryOptionsLimitOrder": injective_exchange_tx_pb.MsgCreateBinaryOptionsLimitOrderResponse, - "MsgCreateBinaryOptionsMarketOrder": injective_exchange_tx_pb.MsgCreateBinaryOptionsMarketOrderResponse, - "MsgCancelBinaryOptionsOrder": injective_exchange_tx_pb.MsgCancelBinaryOptionsOrderResponse, - "MsgAdminUpdateBinaryOptionsMarket": injective_exchange_tx_pb.MsgAdminUpdateBinaryOptionsMarketResponse, - "MsgInstantBinaryOptionsMarketLaunch": injective_exchange_tx_pb.MsgInstantBinaryOptionsMarketLaunchResponse, -} - -GRPC_MESSAGE_TYPE_TO_CLASS_MAP = { - "/injective.exchange.v1beta1.MsgCreateSpotLimitOrder": injective_exchange_tx_pb.MsgCreateSpotLimitOrder, - "/injective.exchange.v1beta1.MsgCreateSpotMarketOrder": injective_exchange_tx_pb.MsgCreateSpotMarketOrder, - "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder": injective_exchange_tx_pb.MsgCreateDerivativeLimitOrder, - "/injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder": injective_exchange_tx_pb.MsgCreateDerivativeMarketOrder, # noqa: 121 - "/injective.exchange.v1beta1.MsgCancelSpotOrder": injective_exchange_tx_pb.MsgCancelSpotOrder, - "/injective.exchange.v1beta1.MsgCancelDerivativeOrder": injective_exchange_tx_pb.MsgCancelDerivativeOrder, - "/injective.exchange.v1beta1.MsgBatchCancelSpotOrders": injective_exchange_tx_pb.MsgBatchCancelSpotOrders, - "/injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders": injective_exchange_tx_pb.MsgBatchCancelDerivativeOrders, # noqa: 121 - "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders": injective_exchange_tx_pb.MsgBatchCreateSpotLimitOrders, - "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders": injective_exchange_tx_pb.MsgBatchCreateDerivativeLimitOrders, # noqa: 121 - "/injective.exchange.v1beta1.MsgBatchUpdateOrders": injective_exchange_tx_pb.MsgBatchUpdateOrders, - "/injective.exchange.v1beta1.MsgDeposit": injective_exchange_tx_pb.MsgDeposit, - "/injective.exchange.v1beta1.MsgWithdraw": injective_exchange_tx_pb.MsgWithdraw, - "/injective.exchange.v1beta1.MsgSubaccountTransfer": injective_exchange_tx_pb.MsgSubaccountTransfer, - "/injective.exchange.v1beta1.MsgLiquidatePosition": injective_exchange_tx_pb.MsgLiquidatePosition, - "/injective.exchange.v1beta1.MsgIncreasePositionMargin": injective_exchange_tx_pb.MsgIncreasePositionMargin, - "/injective.auction.v1beta1.MsgBid": injective_auction_tx_pb.MsgBid, - "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder": injective_exchange_tx_pb.MsgCreateBinaryOptionsLimitOrder, # noqa: 121 - "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder": injective_exchange_tx_pb.MsgCreateBinaryOptionsMarketOrder, # noqa: 121 - "/injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder": injective_exchange_tx_pb.MsgCancelBinaryOptionsOrder, - "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket": injective_exchange_tx_pb.MsgAdminUpdateBinaryOptionsMarket, # noqa: 121 - "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch": injective_exchange_tx_pb.MsgInstantBinaryOptionsMarketLaunch, # noqa: 121 - "/cosmos.bank.v1beta1.MsgSend": cosmos_bank_tx_pb.MsgSend, - "/cosmos.authz.v1beta1.MsgGrant": cosmos_authz_tx_pb.MsgGrant, - "/cosmos.authz.v1beta1.MsgExec": cosmos_authz_tx_pb.MsgExec, - "/cosmos.authz.v1beta1.MsgRevoke": cosmos_authz_tx_pb.MsgRevoke, - "/injective.oracle.v1beta1.MsgRelayPriceFeedPrice": injective_oracle_tx_pb.MsgRelayPriceFeedPrice, - "/injective.oracle.v1beta1.MsgRelayProviderPrices": injective_oracle_tx_pb.MsgRelayProviderPrices, -} - - -class Composer: - PERMISSIONS_ACTION = IntFlag( - "PERMISSIONS_ACTION", - [ - (permission_name, injective_permissions_pb.Action.Value(permission_name)) - for permission_name in injective_permissions_pb.Action.keys() - ], - ) - - def __init__( - self, - network: str, - spot_markets: Optional[Dict[str, SpotMarket]] = None, - derivative_markets: Optional[Dict[str, DerivativeMarket]] = None, - binary_option_markets: Optional[Dict[str, BinaryOptionMarket]] = None, - tokens: Optional[Dict[str, Token]] = None, - ): - """Composer is used to create the requests to send to the nodes using the Client - - :param network: the name of the network to use (mainnet, testnet, devnet) - :type network: str - - :param spot_markets: a dictionary containing all spot markets - :type spot_markets: Dictionary - - :param derivative_markets: a dictionary containing all derivative markets - :type derivative_markets: Dictionary - - :param binary_option_markets: a dictionary containing all derivative markets - :type binary_option_markets: Dictionary - - :param tokens: a dictionary with all the possible tokens - :type tokens: Dictionary - - - """ - - warn( - "Composer from pyinjective.composer is deprecated. " - "Please use Composer from pyinjective.composer_v2 instead.", - DeprecationWarning, - stacklevel=2, - ) - self.network = network - self.spot_markets = spot_markets or dict() - self.derivative_markets = derivative_markets or dict() - self.binary_option_markets = binary_option_markets or dict() - self.tokens = tokens or dict() - - self._ofac_checker = OfacChecker() - - def coin(self, amount: int, denom: str) -> base_coin_pb.Coin: - """ - This method create an instance of Coin gRPC type, considering the amount is already expressed in chain format - """ - formatted_amount_string = str(int(amount)) - return base_coin_pb.Coin(amount=formatted_amount_string, denom=denom) - - def create_coin_amount(self, amount: Decimal, token_name: str) -> base_coin_pb.Coin: - """ - This method create an instance of Coin gRPC type, considering the amount is already expressed in chain format - """ - token = self.tokens[token_name] - chain_amount = token.chain_formatted_value(human_readable_value=amount) - return self.coin(amount=int(chain_amount), denom=token.denom) - - def order_data( - self, - market_id: str, - subaccount_id: str, - order_hash: Optional[str] = None, - cid: Optional[str] = None, - is_conditional: Optional[bool] = False, - is_buy: Optional[bool] = False, - is_market_order: Optional[bool] = False, - ) -> injective_exchange_tx_pb.OrderData: - order_mask = self._order_mask(is_conditional=is_conditional, is_buy=is_buy, is_market_order=is_market_order) - - return injective_exchange_tx_pb.OrderData( - market_id=market_id, - subaccount_id=subaccount_id, - order_hash=order_hash, - order_mask=order_mask, - cid=cid, - ) - - def order_data_without_mask( - self, - market_id: str, - subaccount_id: str, - order_hash: Optional[str] = None, - cid: Optional[str] = None, - ) -> injective_exchange_tx_pb.OrderData: - return injective_exchange_tx_pb.OrderData( - market_id=market_id, - subaccount_id=subaccount_id, - order_hash=order_hash, - order_mask=1, - cid=cid, - ) - - def spot_order( - self, - market_id: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - ) -> injective_exchange_pb.SpotOrder: - market = self.spot_markets[market_id] - - chain_quantity = f"{market.quantity_to_chain_format(human_readable_value=quantity).normalize():f}" - chain_price = f"{market.price_to_chain_format(human_readable_value=price).normalize():f}" - - trigger_price = trigger_price or Decimal(0) - chain_trigger_price = f"{market.price_to_chain_format(human_readable_value=trigger_price).normalize():f}" - - chain_order_type = injective_exchange_pb.OrderType.Value(order_type) - - return injective_exchange_pb.SpotOrder( - market_id=market_id, - order_info=injective_exchange_pb.OrderInfo( - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=chain_price, - quantity=chain_quantity, - cid=cid, - ), - order_type=chain_order_type, - trigger_price=chain_trigger_price, - ) - - def calculate_margin( - self, quantity: Decimal, price: Decimal, leverage: Decimal, is_reduce_only: bool = False - ) -> Decimal: - if is_reduce_only: - margin = Decimal(0) - else: - margin = quantity * price / leverage - - return margin - - def derivative_order( - self, - market_id: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - margin: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - ) -> injective_exchange_pb.DerivativeOrder: - market = self.derivative_markets[market_id] - - chain_quantity = market.quantity_to_chain_format(human_readable_value=quantity) - chain_price = market.price_to_chain_format(human_readable_value=price) - chain_margin = market.margin_to_chain_format(human_readable_value=margin) - - trigger_price = trigger_price or Decimal(0) - chain_trigger_price = market.price_to_chain_format(human_readable_value=trigger_price) - - return self._basic_derivative_order( - market_id=market.id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - chain_price=chain_price, - chain_quantity=chain_quantity, - chain_margin=chain_margin, - order_type=order_type, - cid=cid, - chain_trigger_price=chain_trigger_price, - ) - - def binary_options_order( - self, - market_id: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - margin: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - denom: Optional[Denom] = None, - ) -> injective_exchange_pb.DerivativeOrder: - market = self.binary_option_markets[market_id] - - chain_quantity = market.quantity_to_chain_format(human_readable_value=quantity, special_denom=denom) - chain_price = market.price_to_chain_format(human_readable_value=price, special_denom=denom) - chain_margin = market.margin_to_chain_format(human_readable_value=margin, special_denom=denom) - - trigger_price = trigger_price or Decimal(0) - chain_trigger_price = market.price_to_chain_format(human_readable_value=trigger_price, special_denom=denom) - - return self._basic_derivative_order( - market_id=market.id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - chain_price=chain_price, - chain_quantity=chain_quantity, - chain_margin=chain_margin, - order_type=order_type, - cid=cid, - chain_trigger_price=chain_trigger_price, - ) - - def create_grant_authorization(self, grantee: str, amount: Decimal) -> injective_exchange_pb.GrantAuthorization: - chain_formatted_amount = int(amount * Decimal(f"1e{INJ_DECIMALS}")) - return injective_exchange_pb.GrantAuthorization(grantee=grantee, amount=str(chain_formatted_amount)) - - # region Auction module - def MsgBid(self, sender: str, bid_amount: float, round: float) -> injective_auction_tx_pb.MsgBid: - """ - This method is deprecated and will be removed soon. Please use `msg_bid` instead - """ - warn("This method is deprecated. Use msg_bid instead", DeprecationWarning, stacklevel=2) - - return self.msg_bid(sender=sender, bid_amount=bid_amount, round=round) - - def msg_bid(self, sender: str, bid_amount: float, round: float) -> injective_auction_tx_pb.MsgBid: - be_amount = Decimal(str(bid_amount)) * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return injective_auction_tx_pb.MsgBid( - sender=sender, - round=round, - bid_amount=self.coin(amount=int(be_amount), denom=INJ_DENOM), - ) - - # endregion - - # region Authz module - def MsgGrantGeneric(self, granter: str, grantee: str, msg_type: str, expire_in: int) -> cosmos_authz_tx_pb.MsgGrant: - """ - This method is deprecated and will be removed soon. Please use `msg_grant_generic` instead - """ - warn("This method is deprecated. Use msg_grant_generic instead", DeprecationWarning, stacklevel=2) - - return self.msg_grant_generic(granter=granter, grantee=grantee, msg_type=msg_type, expire_in=expire_in) - - def msg_grant_generic( - self, granter: str, grantee: str, msg_type: str, expire_in: int - ) -> cosmos_authz_tx_pb.MsgGrant: - if self._ofac_checker.is_blacklisted(granter): - raise Exception(f"Address {granter} is in the OFAC list") - auth = cosmos_authz_pb.GenericAuthorization(msg=msg_type) - any_auth = any_pb2.Any() - any_auth.Pack(auth, type_url_prefix="") - - grant = cosmos_authz_pb.Grant( - authorization=any_auth, - expiration=timestamp_pb2.Timestamp(seconds=(int(time()) + expire_in)), - ) - - return cosmos_authz_tx_pb.MsgGrant(granter=granter, grantee=grantee, grant=grant) - - def MsgExec(self, grantee: str, msgs: List): - """ - This method is deprecated and will be removed soon. Please use `msg_exec` instead - """ - warn("This method is deprecated. Use msg_exec instead", DeprecationWarning, stacklevel=2) - - return self.msg_exec(grantee=grantee, msgs=msgs) - - def msg_exec(self, grantee: str, msgs: List): - any_msgs: List[any_pb2.Any] = [] - for msg in msgs: - any_msg = any_pb2.Any() - any_msg.Pack(msg, type_url_prefix="") - any_msgs.append(any_msg) - - return cosmos_authz_tx_pb.MsgExec(grantee=grantee, msgs=any_msgs) - - def MsgRevoke(self, granter: str, grantee: str, msg_type: str) -> cosmos_authz_tx_pb.MsgRevoke: - """ - This method is deprecated and will be removed soon. Please use `msg_revoke` instead - """ - warn("This method is deprecated. Use msg_revoke instead", DeprecationWarning, stacklevel=2) - - return self.msg_revoke(granter=granter, grantee=grantee, msg_type=msg_type) - - def msg_revoke(self, granter: str, grantee: str, msg_type: str) -> cosmos_authz_tx_pb.MsgRevoke: - return cosmos_authz_tx_pb.MsgRevoke(granter=granter, grantee=grantee, msg_type_url=msg_type) - - def msg_execute_contract_compat(self, sender: str, contract: str, msg: str, funds: str): - return wasmx_tx_pb.MsgExecuteContractCompat( - sender=sender, - contract=contract, - msg=msg, - funds=funds, - ) - - # endregion - - # region Bank module - def MsgSend(self, from_address: str, to_address: str, amount: float, denom: str) -> cosmos_bank_tx_pb.MsgSend: - """ - This method is deprecated and will be removed soon. Please use `msg_send` instead - """ - warn("This method is deprecated. Use msg_send instead", DeprecationWarning, stacklevel=2) - - return self.msg_send(from_address=from_address, to_address=to_address, amount=amount, denom=denom) - - def msg_send(self, from_address: str, to_address: str, amount: float, denom: str) -> cosmos_bank_tx_pb.MsgSend: - coin = self.create_coin_amount(amount=Decimal(str(amount)), token_name=denom) - - return cosmos_bank_tx_pb.MsgSend( - from_address=from_address, - to_address=to_address, - amount=[coin], - ) - - # endregion - - # region Chain Exchange module - - def msg_deposit(self, sender: str, subaccount_id: str, amount: Decimal, denom: str): - coin = self.create_coin_amount(amount=amount, token_name=denom) - - return injective_exchange_tx_pb.MsgDeposit( - sender=sender, - subaccount_id=subaccount_id, - amount=coin, - ) - - def msg_withdraw(self, sender: str, subaccount_id: str, amount: Decimal, denom: str): - be_amount = self.create_coin_amount(amount=amount, token_name=denom) - - return injective_exchange_tx_pb.MsgWithdraw( - sender=sender, - subaccount_id=subaccount_id, - amount=be_amount, - ) - - def msg_instant_spot_market_launch( - self, - sender: str, - ticker: str, - base_denom: str, - quote_denom: str, - min_price_tick_size: Decimal, - min_quantity_tick_size: Decimal, - min_notional: Decimal, - base_decimals: int, - quote_decimals: int, - ) -> injective_exchange_tx_pb.MsgInstantSpotMarketLaunch: - base_token = self.tokens[base_denom] - quote_token = self.tokens[quote_denom] - - chain_min_price_tick_size = ( - quote_token.chain_formatted_value(min_price_tick_size) / base_token.chain_formatted_value(Decimal("1")) - ) * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - chain_min_quantity_tick_size = base_token.chain_formatted_value(min_quantity_tick_size) * Decimal( - f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - chain_min_notional = quote_token.chain_formatted_value(min_notional) * Decimal( - f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - - return injective_exchange_tx_pb.MsgInstantSpotMarketLaunch( - sender=sender, - ticker=ticker, - base_denom=base_token.denom, - quote_denom=quote_token.denom, - min_price_tick_size=f"{chain_min_price_tick_size.normalize():f}", - min_quantity_tick_size=f"{chain_min_quantity_tick_size.normalize():f}", - min_notional=f"{chain_min_notional.normalize():f}", - base_decimals=base_decimals, - quote_decimals=quote_decimals, - ) - - def msg_create_spot_limit_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - ) -> injective_exchange_tx_pb.MsgCreateSpotLimitOrder: - return injective_exchange_tx_pb.MsgCreateSpotLimitOrder( - sender=sender, - order=self.spot_order( - market_id=market_id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ), - ) - - def msg_batch_create_spot_limit_orders( - self, sender: str, orders: List[injective_exchange_pb.SpotOrder] - ) -> injective_exchange_tx_pb.MsgBatchCreateSpotLimitOrders: - return injective_exchange_tx_pb.MsgBatchCreateSpotLimitOrders(sender=sender, orders=orders) - - def msg_create_spot_market_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - ) -> injective_exchange_tx_pb.MsgCreateSpotMarketOrder: - return injective_exchange_tx_pb.MsgCreateSpotMarketOrder( - sender=sender, - order=self.spot_order( - market_id=market_id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ), - ) - - def msg_cancel_spot_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - order_hash: Optional[str] = None, - cid: Optional[str] = None, - ) -> injective_exchange_tx_pb.MsgCancelSpotOrder: - return injective_exchange_tx_pb.MsgCancelSpotOrder( - sender=sender, - market_id=market_id, - subaccount_id=subaccount_id, - order_hash=order_hash, - cid=cid, - ) - - def msg_batch_cancel_spot_orders( - self, sender: str, orders_data: List[injective_exchange_tx_pb.OrderData] - ) -> injective_exchange_tx_pb.MsgBatchCancelSpotOrders: - return injective_exchange_tx_pb.MsgBatchCancelSpotOrders(sender=sender, data=orders_data) - - def msg_batch_update_orders( - self, - sender: str, - subaccount_id: Optional[str] = None, - spot_market_ids_to_cancel_all: Optional[List[str]] = None, - derivative_market_ids_to_cancel_all: Optional[List[str]] = None, - spot_orders_to_cancel: Optional[List[injective_exchange_tx_pb.OrderData]] = None, - derivative_orders_to_cancel: Optional[List[injective_exchange_tx_pb.OrderData]] = None, - spot_orders_to_create: Optional[List[injective_exchange_pb.SpotOrder]] = None, - derivative_orders_to_create: Optional[List[injective_exchange_pb.DerivativeOrder]] = None, - binary_options_orders_to_cancel: Optional[List[injective_exchange_tx_pb.OrderData]] = None, - binary_options_market_ids_to_cancel_all: Optional[List[str]] = None, - binary_options_orders_to_create: Optional[List[injective_exchange_pb.DerivativeOrder]] = None, - ) -> injective_exchange_tx_pb.MsgBatchUpdateOrders: - return injective_exchange_tx_pb.MsgBatchUpdateOrders( - sender=sender, - subaccount_id=subaccount_id, - spot_market_ids_to_cancel_all=spot_market_ids_to_cancel_all, - derivative_market_ids_to_cancel_all=derivative_market_ids_to_cancel_all, - spot_orders_to_cancel=spot_orders_to_cancel, - derivative_orders_to_cancel=derivative_orders_to_cancel, - spot_orders_to_create=spot_orders_to_create, - derivative_orders_to_create=derivative_orders_to_create, - binary_options_orders_to_cancel=binary_options_orders_to_cancel, - binary_options_market_ids_to_cancel_all=binary_options_market_ids_to_cancel_all, - binary_options_orders_to_create=binary_options_orders_to_create, - ) - - def msg_privileged_execute_contract( - self, - sender: str, - contract_address: str, - data: str, - funds: Optional[str] = None, - ) -> injective_exchange_tx_pb.MsgPrivilegedExecuteContract: - # funds is a string of Coin strings, comma separated, e.g. 100000inj,20000000000usdt - return injective_exchange_tx_pb.MsgPrivilegedExecuteContract( - sender=sender, - contract_address=contract_address, - data=data, - funds=funds, - ) - - def msg_create_derivative_limit_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - margin: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - ) -> injective_exchange_tx_pb.MsgCreateDerivativeLimitOrder: - return injective_exchange_tx_pb.MsgCreateDerivativeLimitOrder( - sender=sender, - order=self.derivative_order( - market_id=market_id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ), - ) - - def msg_batch_create_derivative_limit_orders( - self, - sender: str, - orders: List[injective_exchange_pb.DerivativeOrder], - ) -> injective_exchange_tx_pb.MsgBatchCreateDerivativeLimitOrders: - return injective_exchange_tx_pb.MsgBatchCreateDerivativeLimitOrders(sender=sender, orders=orders) - - def msg_create_derivative_market_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - margin: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - ) -> injective_exchange_tx_pb.MsgCreateDerivativeMarketOrder: - return injective_exchange_tx_pb.MsgCreateDerivativeMarketOrder( - sender=sender, - order=self.derivative_order( - market_id=market_id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ), - ) - - def msg_cancel_derivative_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - order_hash: Optional[str] = None, - cid: Optional[str] = None, - is_conditional: Optional[bool] = False, - is_buy: Optional[bool] = False, - is_market_order: Optional[bool] = False, - ) -> injective_exchange_tx_pb.MsgCancelDerivativeOrder: - order_mask = self._order_mask(is_conditional=is_conditional, is_buy=is_buy, is_market_order=is_market_order) - - return injective_exchange_tx_pb.MsgCancelDerivativeOrder( - sender=sender, - market_id=market_id, - subaccount_id=subaccount_id, - order_hash=order_hash, - order_mask=order_mask, - cid=cid, - ) - - def msg_batch_cancel_derivative_orders( - self, sender: str, orders_data: List[injective_exchange_tx_pb.OrderData] - ) -> injective_exchange_tx_pb.MsgBatchCancelDerivativeOrders: - return injective_exchange_tx_pb.MsgBatchCancelDerivativeOrders(sender=sender, data=orders_data) - - def msg_instant_binary_options_market_launch( - self, - sender: str, - ticker: str, - oracle_symbol: str, - oracle_provider: str, - oracle_type: str, - oracle_scale_factor: int, - maker_fee_rate: Decimal, - taker_fee_rate: Decimal, - expiration_timestamp: int, - settlement_timestamp: int, - admin: str, - quote_denom: str, - min_price_tick_size: Decimal, - min_quantity_tick_size: Decimal, - min_notional: Decimal, - ) -> injective_exchange_tx_pb.MsgInstantBinaryOptionsMarketLaunch: - quote_token = self.tokens[quote_denom] - - chain_min_price_tick_size = min_price_tick_size * Decimal( - f"1e{quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - chain_min_quantity_tick_size = min_quantity_tick_size * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - chain_maker_fee_rate = maker_fee_rate * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - chain_taker_fee_rate = taker_fee_rate * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - chain_min_notional = quote_token.chain_formatted_value(min_notional) * Decimal( - f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - - return injective_exchange_tx_pb.MsgInstantBinaryOptionsMarketLaunch( - sender=sender, - ticker=ticker, - oracle_symbol=oracle_symbol, - oracle_provider=oracle_provider, - oracle_type=injective_oracle_pb.OracleType.Value(oracle_type), - oracle_scale_factor=oracle_scale_factor, - maker_fee_rate=f"{chain_maker_fee_rate.normalize():f}", - taker_fee_rate=f"{chain_taker_fee_rate.normalize():f}", - expiration_timestamp=expiration_timestamp, - settlement_timestamp=settlement_timestamp, - admin=admin, - quote_denom=quote_token.denom, - min_price_tick_size=f"{chain_min_price_tick_size.normalize():f}", - min_quantity_tick_size=f"{chain_min_quantity_tick_size.normalize():f}", - min_notional=f"{chain_min_notional.normalize():f}", - ) - - def msg_create_binary_options_limit_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - margin: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - denom: Optional[Denom] = None, - ) -> injective_exchange_tx_pb.MsgCreateDerivativeLimitOrder: - return injective_exchange_tx_pb.MsgCreateDerivativeLimitOrder( - sender=sender, - order=self.binary_options_order( - market_id=market_id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - denom=denom, - ), - ) - - def msg_create_binary_options_market_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - fee_recipient: str, - price: Decimal, - quantity: Decimal, - margin: Decimal, - order_type: str, - cid: Optional[str] = None, - trigger_price: Optional[Decimal] = None, - denom: Optional[Denom] = None, - ): - return injective_exchange_tx_pb.MsgCreateBinaryOptionsMarketOrder( - sender=sender, - order=self.binary_options_order( - market_id=market_id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - denom=denom, - ), - ) - - def msg_cancel_binary_options_order( - self, - market_id: str, - sender: str, - subaccount_id: str, - order_hash: Optional[str] = None, - cid: Optional[str] = None, - is_conditional: Optional[bool] = False, - is_buy: Optional[bool] = False, - is_market_order: Optional[bool] = False, - ) -> injective_exchange_tx_pb.MsgCancelBinaryOptionsOrder: - order_mask = self._order_mask(is_conditional=is_conditional, is_buy=is_buy, is_market_order=is_market_order) - - return injective_exchange_tx_pb.MsgCancelBinaryOptionsOrder( - sender=sender, - market_id=market_id, - subaccount_id=subaccount_id, - order_hash=order_hash, - order_mask=order_mask, - cid=cid, - ) - - def msg_subaccount_transfer( - self, - sender: str, - source_subaccount_id: str, - destination_subaccount_id: str, - amount: Decimal, - denom: str, - ) -> injective_exchange_tx_pb.MsgSubaccountTransfer: - be_amount = self.create_coin_amount(amount=amount, token_name=denom) - - return injective_exchange_tx_pb.MsgSubaccountTransfer( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - amount=be_amount, - ) - - def msg_external_transfer( - self, - sender: str, - source_subaccount_id: str, - destination_subaccount_id: str, - amount: Decimal, - denom: str, - ) -> injective_exchange_tx_pb.MsgExternalTransfer: - coin = self.create_coin_amount(amount=amount, token_name=denom) - - return injective_exchange_tx_pb.MsgExternalTransfer( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - amount=coin, - ) - - def msg_liquidate_position( - self, - sender: str, - subaccount_id: str, - market_id: str, - order: Optional[injective_exchange_pb.DerivativeOrder] = None, - ) -> injective_exchange_tx_pb.MsgLiquidatePosition: - return injective_exchange_tx_pb.MsgLiquidatePosition( - sender=sender, subaccount_id=subaccount_id, market_id=market_id, order=order - ) - - def msg_emergency_settle_market( - self, - sender: str, - subaccount_id: str, - market_id: str, - ) -> injective_exchange_tx_pb.MsgEmergencySettleMarket: - return injective_exchange_tx_pb.MsgEmergencySettleMarket( - sender=sender, subaccount_id=subaccount_id, market_id=market_id - ) - - def msg_increase_position_margin( - self, - sender: str, - source_subaccount_id: str, - destination_subaccount_id: str, - market_id: str, - amount: Decimal, - ): - market = self.derivative_markets[market_id] - - additional_margin = market.margin_to_chain_format(human_readable_value=amount) - return injective_exchange_tx_pb.MsgIncreasePositionMargin( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - market_id=market_id, - amount=str(int(additional_margin)), - ) - - def msg_rewards_opt_out(self, sender: str) -> injective_exchange_tx_pb.MsgRewardsOptOut: - return injective_exchange_tx_pb.MsgRewardsOptOut(sender=sender) - - def msg_admin_update_binary_options_market( - self, - sender: str, - market_id: str, - status: str, - settlement_price: Optional[Decimal] = None, - expiration_timestamp: Optional[int] = None, - settlement_timestamp: Optional[int] = None, - ) -> injective_exchange_tx_pb.MsgAdminUpdateBinaryOptionsMarket: - market = self.binary_option_markets[market_id] - - if settlement_price is not None: - chain_settlement_price = market.price_to_chain_format(human_readable_value=settlement_price) - price_parameter = f"{chain_settlement_price.normalize():f}" - else: - price_parameter = None - - return injective_exchange_tx_pb.MsgAdminUpdateBinaryOptionsMarket( - sender=sender, - market_id=market_id, - settlement_price=price_parameter, - expiration_timestamp=expiration_timestamp, - settlement_timestamp=settlement_timestamp, - status=status, - ) - - def msg_decrease_position_margin( - self, - sender: str, - source_subaccount_id: str, - destination_subaccount_id: str, - market_id: str, - amount: Decimal, - ) -> injective_exchange_tx_pb.MsgDecreasePositionMargin: - market = self.derivative_markets[market_id] - - additional_margin = market.margin_to_chain_format(human_readable_value=amount) - return injective_exchange_tx_pb.MsgDecreasePositionMargin( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - market_id=market_id, - amount=str(int(additional_margin)), - ) - - def msg_update_spot_market( - self, - admin: str, - market_id: str, - new_ticker: str, - new_min_price_tick_size: Decimal, - new_min_quantity_tick_size: Decimal, - new_min_notional: Decimal, - ) -> injective_exchange_tx_pb.MsgUpdateSpotMarket: - market = self.spot_markets[market_id] - - chain_min_price_tick_size = new_min_price_tick_size * Decimal( - f"1e{market.quote_token.decimals - market.base_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - chain_min_quantity_tick_size = new_min_quantity_tick_size * Decimal( - f"1e{market.base_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - chain_min_notional = new_min_notional * Decimal( - f"1e{market.quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - - return injective_exchange_tx_pb.MsgUpdateSpotMarket( - admin=admin, - market_id=market_id, - new_ticker=new_ticker, - new_min_price_tick_size=f"{chain_min_price_tick_size.normalize():f}", - new_min_quantity_tick_size=f"{chain_min_quantity_tick_size.normalize():f}", - new_min_notional=f"{chain_min_notional.normalize():f}", - ) - - def msg_update_derivative_market( - self, - admin: str, - market_id: str, - new_ticker: str, - new_min_price_tick_size: Decimal, - new_min_quantity_tick_size: Decimal, - new_min_notional: Decimal, - new_initial_margin_ratio: Decimal, - new_maintenance_margin_ratio: Decimal, - ) -> injective_exchange_tx_pb.MsgUpdateDerivativeMarket: - market = self.derivative_markets[market_id] - - chain_min_price_tick_size = new_min_price_tick_size * Decimal( - f"1e{market.quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - chain_min_quantity_tick_size = new_min_quantity_tick_size * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - chain_min_notional = new_min_notional * Decimal( - f"1e{market.quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - chain_initial_margin_ratio = new_initial_margin_ratio * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - chain_maintenance_margin_ratio = new_maintenance_margin_ratio * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return injective_exchange_tx_pb.MsgUpdateDerivativeMarket( - admin=admin, - market_id=market_id, - new_ticker=new_ticker, - new_min_price_tick_size=f"{chain_min_price_tick_size.normalize():f}", - new_min_quantity_tick_size=f"{chain_min_quantity_tick_size.normalize():f}", - new_min_notional=f"{chain_min_notional.normalize():f}", - new_initial_margin_ratio=f"{chain_initial_margin_ratio.normalize():f}", - new_maintenance_margin_ratio=f"{chain_maintenance_margin_ratio.normalize():f}", - ) - - def msg_authorize_stake_grants( - self, sender: str, grants: List[injective_exchange_pb.GrantAuthorization] - ) -> injective_exchange_tx_pb.MsgAuthorizeStakeGrants: - return injective_exchange_tx_pb.MsgAuthorizeStakeGrants( - sender=sender, - grants=grants, - ) - - def msg_activate_stake_grant(self, sender: str, granter: str) -> injective_exchange_tx_pb.MsgActivateStakeGrant: - return injective_exchange_tx_pb.MsgActivateStakeGrant( - sender=sender, - granter=granter, - ) - - # endregion - - # region Insurance module - def MsgCreateInsuranceFund( - self, - sender: str, - ticker: str, - quote_denom: str, - oracle_base: str, - oracle_quote: str, - oracle_type: int, - expiry: int, - initial_deposit: int, - ) -> injective_insurance_tx_pb.MsgCreateInsuranceFund: - """ - This method is deprecated and will be removed soon. Please use `msg_create_insurance_fund` instead - """ - warn("This method is deprecated. Use msg_create_insurance_fund instead", DeprecationWarning, stacklevel=2) - - return self.msg_create_insurance_fund( - sender=sender, - ticker=ticker, - quote_denom=quote_denom, - oracle_base=oracle_base, - oracle_quote=oracle_quote, - oracle_type=oracle_type, - expiry=expiry, - initial_deposit=initial_deposit, - ) - - def msg_create_insurance_fund( - self, - sender: str, - ticker: str, - quote_denom: str, - oracle_base: str, - oracle_quote: str, - oracle_type: int, - expiry: int, - initial_deposit: int, - ) -> injective_insurance_tx_pb.MsgCreateInsuranceFund: - token = self.tokens[quote_denom] - deposit = self.create_coin_amount(Decimal(str(initial_deposit)), quote_denom) - - return injective_insurance_tx_pb.MsgCreateInsuranceFund( - sender=sender, - ticker=ticker, - quote_denom=token.denom, - oracle_base=oracle_base, - oracle_quote=oracle_quote, - oracle_type=oracle_type, - expiry=expiry, - initial_deposit=deposit, - ) - - def MsgUnderwrite( - self, - sender: str, - market_id: str, - quote_denom: str, - amount: int, - ) -> injective_insurance_tx_pb.MsgUnderwrite: - """ - This method is deprecated and will be removed soon. Please use `msg_underwrite` instead - """ - warn("This method is deprecated. Use msg_underwrite instead", DeprecationWarning, stacklevel=2) - - return self.msg_underwrite( - sender=sender, - market_id=market_id, - quote_denom=quote_denom, - amount=amount, - ) - - def msg_underwrite( - self, - sender: str, - market_id: str, - quote_denom: str, - amount: int, - ) -> injective_insurance_tx_pb.MsgUnderwrite: - be_amount = self.create_coin_amount(amount=Decimal(str(amount)), token_name=quote_denom) - - return injective_insurance_tx_pb.MsgUnderwrite( - sender=sender, - market_id=market_id, - deposit=be_amount, - ) - - def MsgRequestRedemption( - self, - sender: str, - market_id: str, - share_denom: str, - amount: int, - ) -> injective_insurance_tx_pb.MsgRequestRedemption: - """ - This method is deprecated and will be removed soon. Please use `msg_request_redemption` instead - """ - warn("This method is deprecated. Use msg_request_redemption instead", DeprecationWarning, stacklevel=2) - - return self.msg_request_redemption( - sender=sender, - market_id=market_id, - share_denom=share_denom, - amount=amount, - ) - - def msg_request_redemption( - self, - sender: str, - market_id: str, - share_denom: str, - amount: int, - ) -> injective_insurance_tx_pb.MsgRequestRedemption: - return injective_insurance_tx_pb.MsgRequestRedemption( - sender=sender, - market_id=market_id, - amount=self.coin(amount=amount, denom=share_denom), - ) - - # endregion - - # region Oracle module - def MsgRelayProviderPrices(self, sender: str, provider: str, symbols: list, prices: list): - """ - This method is deprecated and will be removed soon. Please use `msg_relay_provider_prices` instead - """ - warn("This method is deprecated. Use msg_relay_provider_prices instead", DeprecationWarning, stacklevel=2) - - return self.msg_relay_provider_prices(sender=sender, provider=provider, symbols=symbols, prices=prices) - - def msg_relay_provider_prices(self, sender: str, provider: str, symbols: list, prices: list): - oracle_prices = [] - - for price in prices: - scale_price = Decimal((price) * pow(10, 18)) - price_to_bytes = bytes(str(scale_price), "utf-8") - oracle_prices.append(price_to_bytes) - - return injective_oracle_tx_pb.MsgRelayProviderPrices( - sender=sender, provider=provider, symbols=symbols, prices=oracle_prices - ) - - def MsgRelayPriceFeedPrice( - self, sender: list, base: list, quote: list, price: list - ) -> injective_oracle_tx_pb.MsgRelayPriceFeedPrice: - """ - This method is deprecated and will be removed soon. Please use `msg_relay_price_feed_price` instead - """ - warn("This method is deprecated. Use msg_relay_price_feed_price instead", DeprecationWarning, stacklevel=2) - - return self.msg_relay_price_feed_price(sender=sender, base=base, quote=quote, price=price) - - def msg_relay_price_feed_price( - self, sender: list, base: list, quote: list, price: list - ) -> injective_oracle_tx_pb.MsgRelayPriceFeedPrice: - return injective_oracle_tx_pb.MsgRelayPriceFeedPrice(sender=sender, base=base, quote=quote, price=price) - - # endregion - - # region Peggy module - def MsgSendToEth( - self, denom: str, sender: str, eth_dest: str, amount: float, bridge_fee: float - ) -> injective_peggy_tx_pb.MsgSendToEth: - """ - This method is deprecated and will be removed soon. Please use `msg_send_to_eth` instead - """ - warn("This method is deprecated. Use msg_send_to_eth instead", DeprecationWarning, stacklevel=2) - - return self.msg_send_to_eth(denom=denom, sender=sender, eth_dest=eth_dest, amount=amount, bridge_fee=bridge_fee) - - def msg_send_to_eth( - self, denom: str, sender: str, eth_dest: str, amount: float, bridge_fee: float - ) -> injective_peggy_tx_pb.MsgSendToEth: - be_amount = self.create_coin_amount(amount=Decimal(str(amount)), token_name=denom) - be_bridge_fee = self.create_coin_amount(amount=Decimal(str(bridge_fee)), token_name=denom) - - return injective_peggy_tx_pb.MsgSendToEth( - sender=sender, - eth_dest=eth_dest, - amount=be_amount, - bridge_fee=be_bridge_fee, - ) - - # endregion - - # region Staking module - def MsgDelegate( - self, delegator_address: str, validator_address: str, amount: float - ) -> cosmos_staking_tx_pb.MsgDelegate: - """ - This method is deprecated and will be removed soon. Please use `msg_delegate` instead - """ - warn("This method is deprecated. Use msg_delegate instead", DeprecationWarning, stacklevel=2) - - return self.msg_delegate( - delegator_address=delegator_address, validator_address=validator_address, amount=amount - ) - - def msg_delegate( - self, delegator_address: str, validator_address: str, amount: float - ) -> cosmos_staking_tx_pb.MsgDelegate: - be_amount = Decimal(str(amount)) * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return cosmos_staking_tx_pb.MsgDelegate( - delegator_address=delegator_address, - validator_address=validator_address, - amount=self.coin(amount=int(be_amount), denom=INJ_DENOM), - ) - - # endregion - - # region Tokenfactory module - def msg_create_denom( - self, - sender: str, - subdenom: str, - name: str, - symbol: str, - decimals: int, - allow_admin_burn: bool, - ) -> token_factory_tx_pb.MsgCreateDenom: - return token_factory_tx_pb.MsgCreateDenom( - sender=sender, - subdenom=subdenom, - name=name, - symbol=symbol, - decimals=decimals, - allow_admin_burn=allow_admin_burn, - ) - - def msg_mint( - self, - sender: str, - amount: base_coin_pb.Coin, - receiver: str, - ) -> token_factory_tx_pb.MsgMint: - return token_factory_tx_pb.MsgMint(sender=sender, amount=amount, receiver=receiver) - - def msg_burn( - self, - sender: str, - amount: base_coin_pb.Coin, - burn_from_address: str, - ) -> token_factory_tx_pb.MsgBurn: - return token_factory_tx_pb.MsgBurn(sender=sender, amount=amount, burnFromAddress=burn_from_address) - - def msg_set_denom_metadata( - self, - sender: str, - description: str, - denom: str, - subdenom: str, - token_decimals: int, - name: str, - symbol: str, - uri: str, - uri_hash: str, - ) -> token_factory_tx_pb.MsgSetDenomMetadata: - micro_denom_unit = bank_pb.DenomUnit( - denom=denom, - exponent=0, - aliases=[f"micro{subdenom}"], - ) - denom_unit = bank_pb.DenomUnit( - denom=subdenom, - exponent=token_decimals, - aliases=[subdenom], - ) - metadata = bank_pb.Metadata( - description=description, - denom_units=[micro_denom_unit, denom_unit], - base=denom, - display=subdenom, - name=name, - symbol=symbol, - uri=uri, - uri_hash=uri_hash, - decimals=token_decimals, - ) - return token_factory_tx_pb.MsgSetDenomMetadata(sender=sender, metadata=metadata) - - def msg_change_admin( - self, - sender: str, - denom: str, - new_admin: str, - ) -> token_factory_tx_pb.MsgChangeAdmin: - return token_factory_tx_pb.MsgChangeAdmin( - sender=sender, - denom=denom, - new_admin=new_admin, - ) - - # endregion - - # region Wasm module - def MsgInstantiateContract( - self, sender: str, admin: str, code_id: int, label: str, message: bytes, **kwargs - ) -> wasm_tx_pb.MsgInstantiateContract: - """ - This method is deprecated and will be removed soon. Please use `msg_instantiate_contract` instead - """ - warn("This method is deprecated. Use msg_instantiate_contract instead", DeprecationWarning, stacklevel=2) - - return self.msg_instantiate_contract( - sender=sender, admin=admin, code_id=code_id, label=label, message=message, funds=kwargs.get("funds") - ) - - def msg_instantiate_contract( - self, - sender: str, - admin: str, - code_id: int, - label: str, - message: bytes, - funds: Optional[List[base_coin_pb.Coin]] = None, - ) -> wasm_tx_pb.MsgInstantiateContract: - return wasm_tx_pb.MsgInstantiateContract( - sender=sender, - admin=admin, - code_id=code_id, - label=label, - msg=message, - funds=funds, # The coins in the list must be sorted in alphabetical order by denoms. - ) - - def MsgExecuteContract(self, sender: str, contract: str, msg: str, **kwargs): - """ - This method is deprecated and will be removed soon. Please use `msg_execute_contract` instead - """ - warn("This method is deprecated. Use msg_execute_contract instead", DeprecationWarning, stacklevel=2) - - return self.msg_execute_contract(sender=sender, contract=contract, msg=msg, funds=kwargs.get("funds")) - - def msg_execute_contract( - self, - sender: str, - contract: str, - msg: str, - funds: Optional[List[base_coin_pb.Coin]] = None, - ) -> wasm_tx_pb.MsgExecuteContract: - return wasm_tx_pb.MsgExecuteContract( - sender=sender, - contract=contract, - msg=bytes(msg, "utf-8"), - funds=funds, # The coins in the list must be sorted in alphabetical order by denoms. - ) - - # endregion - - def MsgGrantTyped( - self, - granter: str, - grantee: str, - msg_type: str, - expire_in: int, - subaccount_id: str, - **kwargs, - ) -> cosmos_authz_tx_pb.MsgGrant: - """ - This method is deprecated and will be removed soon. Please use `msg_grant_typed` instead - """ - warn("This method is deprecated. Use msg_grant_typed instead", DeprecationWarning, stacklevel=2) - - return self.msg_grant_typed( - granter=granter, - grantee=grantee, - msg_type=msg_type, - expiration_time_seconds=expire_in, - subaccount_id=subaccount_id, - market_ids=kwargs.get("market_ids"), - spot_markets=kwargs.get("spot_markets"), - derivative_markets=kwargs.get("derivative_markets"), - ) - - def msg_grant_typed( - self, - granter: str, - grantee: str, - msg_type: str, - expiration_time_seconds: int, - subaccount_id: str, - market_ids: Optional[List[str]] = None, - spot_markets: Optional[List[str]] = None, - derivative_markets: Optional[List[str]] = None, - ) -> cosmos_authz_tx_pb.MsgGrant: - if self._ofac_checker.is_blacklisted(granter): - raise Exception(f"Address {granter} is in the OFAC list") - - market_ids = market_ids or [] - auth = None - if msg_type == "CreateSpotLimitOrderAuthz": - auth = injective_authz_pb.CreateSpotLimitOrderAuthz(subaccount_id=subaccount_id, market_ids=market_ids) - elif msg_type == "CreateSpotMarketOrderAuthz": - auth = injective_authz_pb.CreateSpotMarketOrderAuthz(subaccount_id=subaccount_id, market_ids=market_ids) - elif msg_type == "BatchCreateSpotLimitOrdersAuthz": - auth = injective_authz_pb.BatchCreateSpotLimitOrdersAuthz( - subaccount_id=subaccount_id, market_ids=market_ids - ) - elif msg_type == "CancelSpotOrderAuthz": - auth = injective_authz_pb.CancelSpotOrderAuthz(subaccount_id=subaccount_id, market_ids=market_ids) - elif msg_type == "BatchCancelSpotOrdersAuthz": - auth = injective_authz_pb.BatchCancelSpotOrdersAuthz(subaccount_id=subaccount_id, market_ids=market_ids) - elif msg_type == "CreateDerivativeLimitOrderAuthz": - auth = injective_authz_pb.CreateDerivativeLimitOrderAuthz( - subaccount_id=subaccount_id, market_ids=market_ids - ) - elif msg_type == "CreateDerivativeMarketOrderAuthz": - auth = injective_authz_pb.CreateDerivativeMarketOrderAuthz( - subaccount_id=subaccount_id, market_ids=market_ids - ) - elif msg_type == "BatchCreateDerivativeLimitOrdersAuthz": - auth = injective_authz_pb.BatchCreateDerivativeLimitOrdersAuthz( - subaccount_id=subaccount_id, market_ids=market_ids - ) - elif msg_type == "CancelDerivativeOrderAuthz": - auth = injective_authz_pb.CancelDerivativeOrderAuthz(subaccount_id=subaccount_id, market_ids=market_ids) - elif msg_type == "BatchCancelDerivativeOrdersAuthz": - auth = injective_authz_pb.BatchCancelDerivativeOrdersAuthz( - subaccount_id=subaccount_id, market_ids=market_ids - ) - elif msg_type == "BatchUpdateOrdersAuthz": - spot_markets_ids = spot_markets or [] - derivative_markets_ids = derivative_markets or [] - - auth = injective_authz_pb.BatchUpdateOrdersAuthz( - subaccount_id=subaccount_id, - spot_markets=spot_markets_ids, - derivative_markets=derivative_markets_ids, - ) - - any_auth = any_pb2.Any() - any_auth.Pack(auth, type_url_prefix="") - - grant = cosmos_authz_pb.Grant( - authorization=any_auth, - expiration=timestamp_pb2.Timestamp(seconds=(int(time()) + expiration_time_seconds)), - ) - - return cosmos_authz_tx_pb.MsgGrant(granter=granter, grantee=grantee, grant=grant) - - def MsgVote( - self, - proposal_id: int, - voter: str, - option: int, - ) -> cosmos_gov_tx_pb.MsgVote: - """ - This method is deprecated and will be removed soon. Please use `msg_vote` instead - """ - warn("This method is deprecated. Use msg_vote instead", DeprecationWarning, stacklevel=2) - - return self.msg_vote(proposal_id=proposal_id, voter=voter, option=option) - - def msg_vote( - self, - proposal_id: int, - voter: str, - option: int, - ) -> cosmos_gov_tx_pb.MsgVote: - return cosmos_gov_tx_pb.MsgVote(proposal_id=proposal_id, voter=voter, option=option) - - def chain_stream_bank_balances_filter( - self, accounts: Optional[List[str]] = None - ) -> chain_stream_query.BankBalancesFilter: - accounts = accounts or ["*"] - return chain_stream_query.BankBalancesFilter(accounts=accounts) - - def chain_stream_subaccount_deposits_filter( - self, - subaccount_ids: Optional[List[str]] = None, - ) -> chain_stream_query.SubaccountDepositsFilter: - subaccount_ids = subaccount_ids or ["*"] - return chain_stream_query.SubaccountDepositsFilter(subaccount_ids=subaccount_ids) - - def chain_stream_trades_filter( - self, - subaccount_ids: Optional[List[str]] = None, - market_ids: Optional[List[str]] = None, - ) -> chain_stream_query.TradesFilter: - subaccount_ids = subaccount_ids or ["*"] - market_ids = market_ids or ["*"] - return chain_stream_query.TradesFilter(subaccount_ids=subaccount_ids, market_ids=market_ids) - - def chain_stream_orders_filter( - self, - subaccount_ids: Optional[List[str]] = None, - market_ids: Optional[List[str]] = None, - ) -> chain_stream_query.OrdersFilter: - subaccount_ids = subaccount_ids or ["*"] - market_ids = market_ids or ["*"] - return chain_stream_query.OrdersFilter(subaccount_ids=subaccount_ids, market_ids=market_ids) - - def chain_stream_orderbooks_filter( - self, - market_ids: Optional[List[str]] = None, - ) -> chain_stream_query.OrderbookFilter: - market_ids = market_ids or ["*"] - return chain_stream_query.OrderbookFilter(market_ids=market_ids) - - def chain_stream_positions_filter( - self, - subaccount_ids: Optional[List[str]] = None, - market_ids: Optional[List[str]] = None, - ) -> chain_stream_query.PositionsFilter: - subaccount_ids = subaccount_ids or ["*"] - market_ids = market_ids or ["*"] - return chain_stream_query.PositionsFilter(subaccount_ids=subaccount_ids, market_ids=market_ids) - - def chain_stream_oracle_price_filter( - self, - symbols: Optional[List[str]] = None, - ) -> chain_stream_query.PositionsFilter: - symbols = symbols or ["*"] - return chain_stream_query.OraclePriceFilter(symbol=symbols) - - # ------------------------------------------------ - # region Distribution module's messages - - def msg_set_withdraw_address(self, delegator_address: str, withdraw_address: str): - return cosmos_distribution_tx_pb.MsgSetWithdrawAddress( - delegator_address=delegator_address, withdraw_address=withdraw_address - ) - - def msg_withdraw_delegator_reward(self, delegator_address: str, validator_address: str): - return cosmos_distribution_tx_pb.MsgWithdrawDelegatorReward( - delegator_address=delegator_address, validator_address=validator_address - ) - - def msg_withdraw_validator_commission(self, validator_address: str): - return cosmos_distribution_tx_pb.MsgWithdrawValidatorCommission(validator_address=validator_address) - - def msg_fund_community_pool(self, amounts: List[base_coin_pb.Coin], depositor: str): - return cosmos_distribution_tx_pb.MsgFundCommunityPool(amount=amounts, depositor=depositor) - - def msg_update_distribution_params(self, authority: str, community_tax: str, withdraw_address_enabled: bool): - params = cosmos_distribution_pb2.Params( - community_tax=community_tax, - withdraw_addr_enabled=withdraw_address_enabled, - ) - return cosmos_distribution_tx_pb.MsgUpdateParams(authority=authority, params=params) - - def msg_community_pool_spend(self, authority: str, recipient: str, amount: List[base_coin_pb.Coin]): - return cosmos_distribution_tx_pb.MsgCommunityPoolSpend(authority=authority, recipient=recipient, amount=amount) - - # region IBC Transfer module - def msg_ibc_transfer( - self, - source_port: str, - source_channel: str, - token_amount: base_coin_pb.Coin, - sender: str, - receiver: str, - timeout_height: Optional[int] = None, - timeout_timestamp: Optional[int] = None, - memo: Optional[str] = None, - ) -> ibc_transfer_tx_pb.MsgTransfer: - if timeout_height is None and timeout_timestamp is None: - raise ValueError("IBC Transfer error: Either timeout_height or timeout_timestamp must be provided") - parsed_timeout_height = None - if timeout_height: - parsed_timeout_height = ibc_core_client_pb.Height( - revision_number=timeout_height, revision_height=timeout_height - ) - return ibc_transfer_tx_pb.MsgTransfer( - source_port=source_port, - source_channel=source_channel, - token=token_amount, - sender=sender, - receiver=receiver, - timeout_height=parsed_timeout_height, - timeout_timestamp=timeout_timestamp, - memo=memo, - ) - - # endregion - - # region Permissions module - def permissions_role(self, name: str, role_id: int, permissions: int) -> injective_permissions_pb.Role: - return injective_permissions_pb.Role(name=name, role_id=role_id, permissions=permissions) - - def permissions_actor_roles(self, actor: str, roles: List[str]) -> injective_permissions_pb.ActorRoles: - return injective_permissions_pb.ActorRoles(actor=actor, roles=roles) - - def permissions_role_manager(self, manager: str, roles: List[str]) -> injective_permissions_pb.RoleManager: - return injective_permissions_pb.RoleManager(manager=manager, roles=roles) - - def permissions_policy_status( - self, action: int, is_disabled: bool, is_sealed: bool - ) -> injective_permissions_pb.PolicyStatus: - return injective_permissions_pb.PolicyStatus(action=action, is_disabled=is_disabled, is_sealed=is_sealed) - - def permissions_policy_manager_capability( - self, manager: str, action: int, can_disable: bool, can_seal: bool - ) -> injective_permissions_pb.PolicyManagerCapability: - return injective_permissions_pb.PolicyManagerCapability( - manager=manager, action=action, can_disable=can_disable, can_seal=can_seal - ) - - def permissions_role_actors(self, role: str, actors: List[str]) -> injective_permissions_pb.RoleActors: - return injective_permissions_pb.RoleActors(role=role, actors=actors) - - def msg_create_namespace( - self, - sender: str, - denom: str, - wasm_hook: str, - role_permissions: List[injective_permissions_pb.Role], - actor_roles: List[injective_permissions_pb.ActorRoles], - role_managers: List[injective_permissions_pb.RoleManager], - policy_statuses: List[injective_permissions_pb.PolicyStatus], - policy_manager_capabilities: List[injective_permissions_pb.PolicyManagerCapability], - evm_hook: str, - ) -> injective_permissions_tx_pb.MsgCreateNamespace: - namespace = injective_permissions_pb.Namespace( - denom=denom, - wasm_hook=wasm_hook, - role_permissions=role_permissions, - actor_roles=actor_roles, - role_managers=role_managers, - policy_statuses=policy_statuses, - policy_manager_capabilities=policy_manager_capabilities, - evm_hook=evm_hook, - ) - return injective_permissions_tx_pb.MsgCreateNamespace( - sender=sender, - namespace=namespace, - ) - - def msg_update_namespace( - self, - sender: str, - denom: str, - wasm_hook: str, - role_permissions: List[injective_permissions_pb.Role], - role_managers: List[injective_permissions_pb.RoleManager], - policy_statuses: List[injective_permissions_pb.PolicyStatus], - policy_manager_capabilities: List[injective_permissions_pb.PolicyManagerCapability], - evm_hook: str, - ) -> injective_permissions_tx_pb.MsgUpdateNamespace: - wasm_hook_update = injective_permissions_tx_pb.MsgUpdateNamespace.SetContractHook(new_value=wasm_hook) - evm_hook_update = injective_permissions_tx_pb.MsgUpdateNamespace.SetContractHook(new_value=evm_hook) - - return injective_permissions_tx_pb.MsgUpdateNamespace( - sender=sender, - denom=denom, - wasm_hook=wasm_hook_update, - role_permissions=role_permissions, - role_managers=role_managers, - policy_statuses=policy_statuses, - policy_manager_capabilities=policy_manager_capabilities, - evm_hook=evm_hook_update, - ) - - def msg_update_actor_roles( - self, - sender: str, - denom: str, - role_actors_to_add: List[injective_permissions_pb.RoleActors], - role_actors_to_revoke: List[injective_permissions_pb.RoleActors], - ) -> injective_permissions_tx_pb.MsgUpdateActorRoles: - return injective_permissions_tx_pb.MsgUpdateActorRoles( - sender=sender, - denom=denom, - role_actors_to_add=role_actors_to_add, - role_actors_to_revoke=role_actors_to_revoke, - ) - - def msg_claim_voucher( - self, - sender: str, - denom: str, - ) -> injective_permissions_tx_pb.MsgClaimVoucher: - return injective_permissions_tx_pb.MsgClaimVoucher( - sender=sender, - denom=denom, - ) - - # endregion - - # data field format: [request-msg-header][raw-byte-msg-response] - # you need to figure out this magic prefix number to trim request-msg-header off the data - # this method handles only exchange responses - @staticmethod - def MsgResponses(response, simulation=False): - data = response.result - if not simulation: - data = bytes.fromhex(data) - # fmt: off - header_map = { - "/injective.exchange.v1beta1.MsgCreateSpotLimitOrderResponse": - injective_exchange_tx_pb.MsgCreateSpotLimitOrderResponse, - "/injective.exchange.v1beta1.MsgCreateSpotMarketOrderResponse": - injective_exchange_tx_pb.MsgCreateSpotMarketOrderResponse, - "/injective.exchange.v1beta1.MsgCreateDerivativeLimitOrderResponse": - injective_exchange_tx_pb.MsgCreateDerivativeLimitOrderResponse, - "/injective.exchange.v1beta1.MsgCreateDerivativeMarketOrderResponse": - injective_exchange_tx_pb.MsgCreateDerivativeMarketOrderResponse, - "/injective.exchange.v1beta1.MsgCancelSpotOrderResponse": - injective_exchange_tx_pb.MsgCancelSpotOrderResponse, - "/injective.exchange.v1beta1.MsgCancelDerivativeOrderResponse": - injective_exchange_tx_pb.MsgCancelDerivativeOrderResponse, - "/injective.exchange.v1beta1.MsgBatchCancelSpotOrdersResponse": - injective_exchange_tx_pb.MsgBatchCancelSpotOrdersResponse, - "/injective.exchange.v1beta1.MsgBatchCancelDerivativeOrdersResponse": - injective_exchange_tx_pb.MsgBatchCancelDerivativeOrdersResponse, - "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrdersResponse": - injective_exchange_tx_pb.MsgBatchCreateSpotLimitOrdersResponse, - "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrdersResponse": - injective_exchange_tx_pb.MsgBatchCreateDerivativeLimitOrdersResponse, - "/injective.exchange.v1beta1.MsgBatchUpdateOrdersResponse": - injective_exchange_tx_pb.MsgBatchUpdateOrdersResponse, - "/injective.exchange.v1beta1.MsgDepositResponse": - injective_exchange_tx_pb.MsgDepositResponse, - "/injective.exchange.v1beta1.MsgWithdrawResponse": - injective_exchange_tx_pb.MsgWithdrawResponse, - "/injective.exchange.v1beta1.MsgSubaccountTransferResponse": - injective_exchange_tx_pb.MsgSubaccountTransferResponse, - "/injective.exchange.v1beta1.MsgLiquidatePositionResponse": - injective_exchange_tx_pb.MsgLiquidatePositionResponse, - "/injective.exchange.v1beta1.MsgIncreasePositionMarginResponse": - injective_exchange_tx_pb.MsgIncreasePositionMarginResponse, - "/injective.auction.v1beta1.MsgBidResponse": - injective_auction_tx_pb.MsgBidResponse, - "/injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrderResponse": - injective_exchange_tx_pb.MsgCreateBinaryOptionsLimitOrderResponse, - "/injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrderResponse": - injective_exchange_tx_pb.MsgCreateBinaryOptionsMarketOrderResponse, - "/injective.exchange.v1beta1.MsgCancelBinaryOptionsOrderResponse": - injective_exchange_tx_pb.MsgCancelBinaryOptionsOrderResponse, - "/injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarketResponse": - injective_exchange_tx_pb.MsgAdminUpdateBinaryOptionsMarketResponse, - "/injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunchResponse": - injective_exchange_tx_pb.MsgInstantBinaryOptionsMarketLaunchResponse, - "/cosmos.bank.v1beta1.MsgSendResponse": - cosmos_bank_tx_pb.MsgSendResponse, - "/cosmos.authz.v1beta1.MsgGrantResponse": - cosmos_authz_tx_pb.MsgGrantResponse, - "/cosmos.authz.v1beta1.MsgExecResponse": - cosmos_authz_tx_pb.MsgExecResponse, - "/cosmos.authz.v1beta1.MsgRevokeResponse": - cosmos_authz_tx_pb.MsgRevokeResponse, - "/injective.oracle.v1beta1.MsgRelayPriceFeedPriceResponse": - injective_oracle_tx_pb.MsgRelayPriceFeedPriceResponse, - "/injective.oracle.v1beta1.MsgRelayProviderPricesResponse": - injective_oracle_tx_pb.MsgRelayProviderPrices, - } - # fmt: on - msgs = [] - for msg in data.msg_responses: - msgs.append(header_map[msg.type_url].FromString(msg.value)) - - return msgs - - @staticmethod - def UnpackMsgExecResponse(msg_type, data): - responses = [] - dict_message = json_format.MessageToDict(message=data, always_print_fields_with_no_presence=True) - json_responses = Composer.unpack_msg_exec_response(underlying_msg_type=msg_type, msg_exec_response=dict_message) - for json_response in json_responses: - response = REQUEST_TO_RESPONSE_TYPE_MAP[msg_type]() - json_format.ParseDict(js_dict=json_response, message=response, ignore_unknown_fields=True) - responses.append(response) - return responses - - @staticmethod - def unpack_msg_exec_response(underlying_msg_type: str, msg_exec_response: Dict[str, Any]) -> List[Dict[str, Any]]: - grpc_response = cosmos_authz_tx_pb.MsgExecResponse() - json_format.ParseDict(js_dict=msg_exec_response, message=grpc_response, ignore_unknown_fields=True) - responses = [ - json_format.MessageToDict( - message=REQUEST_TO_RESPONSE_TYPE_MAP[underlying_msg_type].FromString(result), - always_print_fields_with_no_presence=True, - ) - for result in grpc_response.results - ] - - return responses - - @staticmethod - def UnpackTransactionMessages(transaction): - meta_messages = json.loads(transaction.messages.decode()) - header_map = GRPC_MESSAGE_TYPE_TO_CLASS_MAP - msgs = [] - for msg in meta_messages: - msg_as_string_dict = json.dumps(msg["value"]) - msgs.append(json_format.Parse(msg_as_string_dict, header_map[msg["type"]]())) - - return msgs - - @staticmethod - def unpack_transaction_messages(transaction_data: Dict[str, Any]) -> List[Dict[str, Any]]: - grpc_tx = explorer_pb2.TxDetailData() - json_format.ParseDict(js_dict=transaction_data, message=grpc_tx, ignore_unknown_fields=True) - meta_messages = json.loads(grpc_tx.messages.decode()) - msgs = [] - for msg in meta_messages: - msg_as_string_dict = json.dumps(msg["value"]) - grpc_message = json_format.Parse(msg_as_string_dict, GRPC_MESSAGE_TYPE_TO_CLASS_MAP[msg["type"]]()) - msgs.append( - { - "type": msg["type"], - "value": json_format.MessageToDict(message=grpc_message, always_print_fields_with_no_presence=True), - } - ) - - return msgs - - def _order_mask(self, is_conditional: bool, is_buy: bool, is_market_order: bool) -> int: - order_mask = 0 - - if is_conditional: - order_mask += injective_exchange_pb.OrderMask.CONDITIONAL - else: - order_mask += injective_exchange_pb.OrderMask.REGULAR - - if is_buy: - order_mask += injective_exchange_pb.OrderMask.DIRECTION_BUY_OR_HIGHER - else: - order_mask += injective_exchange_pb.OrderMask.DIRECTION_SELL_OR_LOWER - - if is_market_order: - order_mask += injective_exchange_pb.OrderMask.TYPE_MARKET - else: - order_mask += injective_exchange_pb.OrderMask.TYPE_LIMIT - - if order_mask == 0: - order_mask = 1 - - return order_mask - - def _basic_derivative_order( - self, - market_id: str, - subaccount_id: str, - fee_recipient: str, - chain_price: Decimal, - chain_quantity: Decimal, - chain_margin: Decimal, - order_type: str, - cid: Optional[str] = None, - chain_trigger_price: Optional[Decimal] = None, - ) -> injective_exchange_pb.DerivativeOrder: - formatted_quantity = f"{chain_quantity.normalize():f}" - formatted_price = f"{chain_price.normalize():f}" - formatted_margin = f"{chain_margin.normalize():f}" - - trigger_price = chain_trigger_price or Decimal(0) - formatted_trigger_price = f"{trigger_price.normalize():f}" - - chain_order_type = injective_exchange_pb.OrderType.Value(order_type) - - return injective_exchange_pb.DerivativeOrder( - market_id=market_id, - order_info=injective_exchange_pb.OrderInfo( - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=formatted_price, - quantity=formatted_quantity, - cid=cid, - ), - order_type=chain_order_type, - margin=formatted_margin, - trigger_price=formatted_trigger_price, - ) diff --git a/pyinjective/composer_v2.py b/pyinjective/composer_v2.py index da2f4cac..d04fea8f 100644 --- a/pyinjective/composer_v2.py +++ b/pyinjective/composer_v2.py @@ -112,7 +112,7 @@ "/injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders": injective_exchange_tx_pb.MsgBatchCreateSpotLimitOrders, "/injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders": - injective_exchange_tx_pb.MsgBatchCreateDerivativeLimitOrders, # noqa: 121 + injective_exchange_tx_pb.MsgBatchCreateDerivativeLimitOrders, "/injective.exchange.v1beta1.MsgBatchUpdateOrders": injective_exchange_tx_pb.MsgBatchUpdateOrders, "/injective.exchange.v1beta1.MsgDeposit": @@ -466,6 +466,12 @@ def msg_bid(self, sender: str, bid_amount: float, round: float) -> injective_auc bid_amount=self.coin(amount=int(be_amount), denom=INJ_DENOM), ) + def msg_auction_claim_voucher(self, sender: str, denom: str) -> injective_auction_tx_pb.MsgClaimVoucher: + return injective_auction_tx_pb.MsgClaimVoucher( + sender=sender, + denom=denom, + ) + # endregion # region Authz module @@ -1285,6 +1291,12 @@ def msg_request_redemption( amount=self.coin(amount=int(chain_amount), denom=share_denom), ) + def msg_insurance_claim_voucher(self, sender: str, denom: str) -> injective_insurance_tx_pb.MsgClaimVoucher: + return injective_insurance_tx_pb.MsgClaimVoucher( + sender=sender, + denom=denom, + ) + # endregion # region Oracle module diff --git a/pyinjective/core/broadcaster.py b/pyinjective/core/broadcaster.py index 3911f921..5bdd61bb 100644 --- a/pyinjective/core/broadcaster.py +++ b/pyinjective/core/broadcaster.py @@ -1,16 +1,14 @@ import math from abc import ABC, abstractmethod from decimal import Decimal -from typing import List, Optional, Type, Union +from typing import List, Optional, Type from google.protobuf import any_pb2 from grpc import RpcError from pyinjective import PrivateKey, PublicKey, Transaction -from pyinjective.async_client import AsyncClient -from pyinjective.async_client_v2 import AsyncClient as AsyncClientV2 -from pyinjective.composer import Composer -from pyinjective.composer_v2 import Composer as ComposerV2 +from pyinjective.async_client_v2 import AsyncClient +from pyinjective.composer_v2 import Composer from pyinjective.constant import GAS_PRICE from pyinjective.core.gas_heuristics_gas_limit_estimator import GasHeuristicsGasLimitEstimator from pyinjective.core.gas_limit_estimator import GasLimitEstimator @@ -66,7 +64,7 @@ def __init__( self, network: Network, account_config: BroadcasterAccountConfig, - client: Union[AsyncClient, AsyncClientV2], + client: AsyncClient, fee_calculator: TransactionFeeCalculator, ): self._network = network @@ -84,8 +82,8 @@ def new_using_simulation( network: Network, private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, - composer: Optional[Union[Composer, ComposerV2]] = None, + client: Optional[AsyncClient] = None, + composer: Optional[Composer] = None, ): """Creates a new broadcaster instance that uses transaction simulation for gas estimation. @@ -94,14 +92,14 @@ def new_using_simulation( private_key (str): The private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None - composer (Optional[Union[Composer, ComposerV2]]): Custom Composer instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None + composer (Optional[Composer]): Custom Composer instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using simulation-based fee calculation """ - client = client or AsyncClientV2(network=network) - composer = composer or ComposerV2(network=client.network.string()) + client = client or AsyncClient(network=network) + composer = composer or Composer(network=client.network.string()) account_config = StandardAccountBroadcasterConfig(private_key=private_key) fee_calculator = SimulatedTransactionFeeCalculator(client=client, composer=composer, gas_price=gas_price) instance = cls( @@ -118,7 +116,7 @@ def new_without_simulation( network: Network, private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, + client: Optional[AsyncClient] = None, ): """Creates a new broadcaster instance that uses message-based gas estimation without simulation. @@ -127,7 +125,7 @@ def new_without_simulation( private_key (str): The private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using message-based fee calculation @@ -145,8 +143,8 @@ def new_using_gas_heuristics( network: Network, private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, - composer: Optional[Union[Composer, ComposerV2]] = None, + client: Optional[AsyncClient] = None, + composer: Optional[Composer] = None, ): """Creates a new broadcaster instance that uses gas heuristics for gas calculation @@ -155,14 +153,14 @@ def new_using_gas_heuristics( private_key (str): The private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None - composer (Optional[Union[Composer, ComposerV2]]): Custom Composer instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None + composer (Optional[Composer]): Custom Composer instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using message-based fee calculation """ - client = client or AsyncClientV2(network=network) - composer = composer or ComposerV2(network=client.network.string()) + client = client or AsyncClient(network=network) + composer = composer or Composer(network=client.network.string()) account_config = StandardAccountBroadcasterConfig(private_key=private_key) fee_calculator = MessageBasedTransactionFeeCalculator.new_using_gas_heuristics( client=client, @@ -183,8 +181,8 @@ def new_using_estimate_gas( network: Network, private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, - composer: Optional[Union[Composer, ComposerV2]] = None, + client: Optional[AsyncClient] = None, + composer: Optional[Composer] = None, ): """Creates a new broadcaster instance that uses message-based gas estimation without simulation. @@ -193,14 +191,14 @@ def new_using_estimate_gas( private_key (str): The private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None - composer (Optional[Union[Composer, ComposerV2]]): Custom Composer instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None + composer (Optional[Composer]): Custom Composer instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using message-based fee calculation """ - client = client or AsyncClientV2(network=network) - composer = composer or ComposerV2(network=client.network.string()) + client = client or AsyncClient(network=network) + composer = composer or Composer(network=client.network.string()) account_config = StandardAccountBroadcasterConfig(private_key=private_key) fee_calculator = MessageBasedTransactionFeeCalculator.new_using_gas_estimation( client=client, @@ -221,8 +219,8 @@ def new_for_grantee_account_using_simulation( network: Network, grantee_private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, - composer: Optional[Union[Composer, ComposerV2]] = None, + client: Optional[AsyncClient] = None, + composer: Optional[Composer] = None, ): """Creates a new broadcaster instance for a grantee account that uses transaction simulation for gas estimation. @@ -231,15 +229,15 @@ def new_for_grantee_account_using_simulation( grantee_private_key (str): The grantee's private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None - composer (Optional[Union[Composer, ComposerV2]]): Custom Composer instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None + composer (Optional[Composer]): Custom Composer instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using simulation-based fee calculation for a grantee account """ - client = client or AsyncClientV2(network=network) - composer = composer or ComposerV2(network=client.network.string()) + client = client or AsyncClient(network=network) + composer = composer or Composer(network=client.network.string()) account_config = GranteeAccountBroadcasterConfig(grantee_private_key=grantee_private_key, composer=composer) fee_calculator = SimulatedTransactionFeeCalculator(client=client, composer=composer, gas_price=gas_price) instance = cls( @@ -256,8 +254,8 @@ def new_for_grantee_account_without_simulation( network: Network, grantee_private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, - composer: Optional[Union[Composer, ComposerV2]] = None, + client: Optional[AsyncClient] = None, + composer: Optional[Composer] = None, ): """Creates a new broadcaster instance for a grantee account that uses gas estimator using gas heuristics. @@ -266,8 +264,8 @@ def new_for_grantee_account_without_simulation( grantee_private_key (str): The grantee's private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None - composer (Optional[Union[Composer, ComposerV2]]): Custom Composer instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None + composer (Optional[Composer]): Custom Composer instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using message-based fee calculation for a grantee @@ -287,8 +285,8 @@ def new_for_grantee_account_using_gas_heuristics( network: Network, grantee_private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, - composer: Optional[Union[Composer, ComposerV2]] = None, + client: Optional[AsyncClient] = None, + composer: Optional[Composer] = None, ): """Creates a new broadcaster instance for a grantee account that uses gas heuristics. @@ -297,15 +295,15 @@ def new_for_grantee_account_using_gas_heuristics( grantee_private_key (str): The grantee's private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None - composer (Optional[Union[Composer, ComposerV2]]): Custom Composer instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None + composer (Optional[Composer]): Custom Composer instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using message-based fee calculation for a grantee account """ - client = client or AsyncClientV2(network=network) - composer = composer or ComposerV2(network=client.network.string()) + client = client or AsyncClient(network=network) + composer = composer or Composer(network=client.network.string()) account_config = GranteeAccountBroadcasterConfig(grantee_private_key=grantee_private_key, composer=composer) fee_calculator = MessageBasedTransactionFeeCalculator.new_using_gas_heuristics( client=client, @@ -326,8 +324,8 @@ def new_for_grantee_account_using_estimated_gas( network: Network, grantee_private_key: str, gas_price: Optional[int] = None, - client: Optional[Union[AsyncClient, AsyncClientV2]] = None, - composer: Optional[Union[Composer, ComposerV2]] = None, + client: Optional[AsyncClient] = None, + composer: Optional[Composer] = None, ): """Creates a new broadcaster instance for a grantee account that uses message-based gas estimation without simulation. @@ -337,15 +335,15 @@ def new_for_grantee_account_using_estimated_gas( grantee_private_key (str): The grantee's private key in hex format for signing transactions gas_price (Optional[int]): Custom gas price in chain format (e.g. 500000000000000000 for 0.5 INJ). Defaults to None - client (Optional[Union[AsyncClient, AsyncClientV2]]): Custom AsyncClient instance. Defaults to None - composer (Optional[Union[Composer, ComposerV2]]): Custom Composer instance. Defaults to None + client (Optional[AsyncClient]): Custom AsyncClient instance. Defaults to None + composer (Optional[Composer]): Custom Composer instance. Defaults to None Returns: MsgBroadcasterWithPk: A configured broadcaster instance using message-based fee calculation for a grantee account """ - client = client or AsyncClientV2(network=network) - composer = composer or ComposerV2(network=client.network.string()) + client = client or AsyncClient(network=network) + composer = composer or Composer(network=client.network.string()) account_config = GranteeAccountBroadcasterConfig(grantee_private_key=grantee_private_key, composer=composer) fee_calculator = MessageBasedTransactionFeeCalculator.new_using_gas_estimation( client=client, @@ -426,7 +424,7 @@ def messages_prepared_for_transaction(self, messages: List[any_pb2.Any]) -> List class GranteeAccountBroadcasterConfig(BroadcasterAccountConfig): - def __init__(self, grantee_private_key: str, composer: Union[Composer, ComposerV2]): + def __init__(self, grantee_private_key: str, composer: Composer): self._grantee_private_key = PrivateKey.from_hex(grantee_private_key) self._grantee_public_key = self._grantee_private_key.to_public_key() self._grantee_address = self._grantee_public_key.to_address() @@ -456,8 +454,8 @@ def messages_prepared_for_transaction(self, messages: List[any_pb2.Any]) -> List class SimulatedTransactionFeeCalculator(TransactionFeeCalculator): def __init__( self, - client: Union[AsyncClient, AsyncClientV2], - composer: Union[Composer, ComposerV2], + client: AsyncClient, + composer: Composer, gas_price: Optional[int] = None, gas_limit_adjustment_multiplier: Optional[Decimal] = None, ): @@ -508,8 +506,8 @@ class MessageBasedTransactionFeeCalculator(TransactionFeeCalculator): def __init__( self, - client: Union[AsyncClient, AsyncClientV2], - composer: Union[Composer, ComposerV2], + client: AsyncClient, + composer: Composer, gas_price: Optional[int] = None, estimator_class: Optional[Type] = None, ): diff --git a/pyinjective/core/gas_limit_estimator.py b/pyinjective/core/gas_limit_estimator.py index 335af501..f22822a8 100644 --- a/pyinjective/core/gas_limit_estimator.py +++ b/pyinjective/core/gas_limit_estimator.py @@ -7,8 +7,8 @@ from pyinjective.proto.cosmos.authz.v1beta1 import tx_pb2 as cosmos_authz_tx_pb from pyinjective.proto.cosmos.gov.v1beta1 import tx_pb2 as gov_tx_pb from pyinjective.proto.cosmwasm.wasm.v1 import tx_pb2 as wasm_tx_pb -from pyinjective.proto.injective.exchange.v1beta1 import ( - exchange_pb2 as injective_exchange_pb, +from pyinjective.proto.injective.exchange.v2 import ( + order_pb2 as injective_order_v2_pb, tx_pb2 as injective_exchange_tx_pb, ) @@ -72,12 +72,12 @@ def _parsed_message(self, message: any_pb2.Any) -> any_pb2.Any: def _select_post_only_orders( self, - orders: List[Union[injective_exchange_pb.SpotOrder, injective_exchange_pb.DerivativeOrder]], - ) -> List[Union[injective_exchange_pb.SpotOrder, injective_exchange_pb.DerivativeOrder]]: + orders: List[Union[injective_order_v2_pb.SpotOrder, injective_order_v2_pb.DerivativeOrder]], + ) -> List[Union[injective_order_v2_pb.SpotOrder, injective_order_v2_pb.DerivativeOrder]]: return [ order for order in orders - if order.order_type in [injective_exchange_pb.OrderType.BUY_PO, injective_exchange_pb.OrderType.SELL_PO] + if order.order_type in [injective_order_v2_pb.OrderType.BUY_PO, injective_order_v2_pb.OrderType.SELL_PO] ] diff --git a/pyinjective/core/market.py b/pyinjective/core/market.py deleted file mode 100644 index 01973dc8..00000000 --- a/pyinjective/core/market.py +++ /dev/null @@ -1,274 +0,0 @@ -from dataclasses import dataclass -from decimal import ROUND_UP, Decimal -from typing import Optional - -from pyinjective.constant import ADDITIONAL_CHAIN_FORMAT_DECIMALS -from pyinjective.core.token import Token -from pyinjective.utils.denom import Denom - - -@dataclass(eq=True, frozen=True) -class SpotMarket: - id: str - status: str - ticker: str - base_token: Token - quote_token: Token - maker_fee_rate: Decimal - taker_fee_rate: Decimal - service_provider_fee: Decimal - min_price_tick_size: Decimal - min_quantity_tick_size: Decimal - min_notional: Decimal - - def quantity_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - chain_formatted_value = human_readable_value * Decimal(f"1e{self.base_token.decimals}") - quantized_value = chain_formatted_value // self.min_quantity_tick_size * self.min_quantity_tick_size - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def price_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - decimals = self.quote_token.decimals - self.base_token.decimals - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_value = (chain_formatted_value // self.min_price_tick_size) * self.min_price_tick_size - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def notional_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - decimals = self.quote_token.decimals - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_balue = chain_formatted_value.quantize(Decimal("1"), rounding=ROUND_UP) - extended_chain_formatted_value = quantized_balue * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def quantity_from_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value / Decimal(f"1e{self.base_token.decimals}") - - def price_from_chain_format(self, chain_value: Decimal) -> Decimal: - decimals = self.base_token.decimals - self.quote_token.decimals - return chain_value * Decimal(f"1e{decimals}") - - def notional_from_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value / Decimal(f"1e{self.quote_token.decimals}") - - def quantity_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self._from_extended_chain_format(chain_value=self.quantity_from_chain_format(chain_value=chain_value)) - - def price_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self._from_extended_chain_format(chain_value=self.price_from_chain_format(chain_value=chain_value)) - - def notional_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self._from_extended_chain_format(chain_value=self.notional_from_chain_format(chain_value=chain_value)) - - def _from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value / Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - -@dataclass(eq=True, frozen=True) -class DerivativeMarket: - id: str - status: str - ticker: str - oracle_base: str - oracle_quote: str - oracle_type: str - oracle_scale_factor: int - initial_margin_ratio: Decimal - maintenance_margin_ratio: Decimal - quote_token: Token - maker_fee_rate: Decimal - taker_fee_rate: Decimal - service_provider_fee: Decimal - min_price_tick_size: Decimal - min_quantity_tick_size: Decimal - min_notional: Decimal - - def quantity_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - # Derivative markets do not have a base market to provide the number of decimals - chain_formatted_value = human_readable_value - quantized_value = chain_formatted_value // self.min_quantity_tick_size * self.min_quantity_tick_size - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def price_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - decimals = self.quote_token.decimals - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_value = (chain_formatted_value // self.min_price_tick_size) * self.min_price_tick_size - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def margin_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - return self.notional_to_chain_format(human_readable_value=human_readable_value) - - def calculate_margin_in_chain_format( - self, human_readable_quantity: Decimal, human_readable_price: Decimal, leverage: Decimal - ) -> Decimal: - chain_formatted_quantity = human_readable_quantity - chain_formatted_price = human_readable_price * Decimal(f"1e{self.quote_token.decimals}") - margin = (chain_formatted_price * chain_formatted_quantity) / leverage - # We are using the min_quantity_tick_size to quantize the margin because that is the way margin is validated - # in the chain (it might be changed to a min_notional in the future) - quantized_margin = (margin // self.min_quantity_tick_size) * self.min_quantity_tick_size - extended_chain_formatted_margin = quantized_margin * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_margin - - def notional_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - decimals = self.quote_token.decimals - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_notional = chain_formatted_value.quantize(Decimal("1"), rounding=ROUND_UP) - extended_chain_formatted_value = quantized_notional * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def quantity_from_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value - - def price_from_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value * Decimal(f"1e-{self.quote_token.decimals}") - - def margin_from_chain_format(self, chain_value: Decimal) -> Decimal: - return self.notional_from_chain_format(chain_value=chain_value) - - def notional_from_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value / Decimal(f"1e{self.quote_token.decimals}") - - def quantity_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self._from_extended_chain_format(chain_value=self.quantity_from_chain_format(chain_value=chain_value)) - - def price_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self._from_extended_chain_format(chain_value=self.price_from_chain_format(chain_value=chain_value)) - - def margin_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self.notional_from_extended_chain_format(chain_value=chain_value) - - def notional_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self._from_extended_chain_format(chain_value=self.notional_from_chain_format(chain_value=chain_value)) - - def _from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value / Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - -@dataclass(eq=True, frozen=True) -class BinaryOptionMarket: - id: str - status: str - ticker: str - oracle_symbol: str - oracle_provider: str - oracle_type: str - oracle_scale_factor: int - expiration_timestamp: int - settlement_timestamp: int - quote_token: Token - maker_fee_rate: Decimal - taker_fee_rate: Decimal - service_provider_fee: Decimal - min_price_tick_size: Decimal - min_quantity_tick_size: Decimal - min_notional: Decimal - settlement_price: Optional[Decimal] = None - - def quantity_to_chain_format(self, human_readable_value: Decimal, special_denom: Optional[Denom] = None) -> Decimal: - # Binary option markets do not have a base market to provide the number of decimals - decimals = 0 if special_denom is None else special_denom.base - min_quantity_tick_size = ( - self.min_quantity_tick_size if special_denom is None else special_denom.min_quantity_tick_size - ) - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_value = chain_formatted_value // min_quantity_tick_size * min_quantity_tick_size - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def price_to_chain_format(self, human_readable_value: Decimal, special_denom: Optional[Denom] = None) -> Decimal: - decimals = self.quote_token.decimals if special_denom is None else special_denom.quote - min_price_tick_size = self.min_price_tick_size if special_denom is None else special_denom.min_price_tick_size - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_value = (chain_formatted_value // min_price_tick_size) * min_price_tick_size - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def margin_to_chain_format(self, human_readable_value: Decimal, special_denom: Optional[Denom] = None) -> Decimal: - decimals = self.quote_token.decimals if special_denom is None else special_denom.quote - min_quantity_tick_size = ( - self.min_quantity_tick_size if special_denom is None else special_denom.min_quantity_tick_size - ) - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_value = (chain_formatted_value // min_quantity_tick_size) * min_quantity_tick_size - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def calculate_margin_in_chain_format( - self, - human_readable_quantity: Decimal, - human_readable_price: Decimal, - is_buy: bool, - special_denom: Optional[Denom] = None, - ) -> Decimal: - quantity_decimals = 0 if special_denom is None else special_denom.base - price_decimals = self.quote_token.decimals if special_denom is None else special_denom.quote - min_quantity_tick_size = ( - self.min_quantity_tick_size if special_denom is None else special_denom.min_quantity_tick_size - ) - price = human_readable_price if is_buy else 1 - human_readable_price - chain_formatted_quantity = human_readable_quantity * Decimal(f"1e{quantity_decimals}") - chain_formatted_price = price * Decimal(f"1e{price_decimals}") - margin = chain_formatted_price * chain_formatted_quantity - # We are using the min_quantity_tick_size to quantize the margin because that is the way margin is validated - # in the chain (it might be changed to a min_notional in the future) - quantized_margin = (margin // min_quantity_tick_size) * min_quantity_tick_size - extended_chain_formatted_margin = quantized_margin * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_margin - - def notional_to_chain_format(self, human_readable_value: Decimal) -> Decimal: - decimals = self.quote_token.decimals - chain_formatted_value = human_readable_value * Decimal(f"1e{decimals}") - quantized_value = chain_formatted_value.quantize(Decimal("1"), rounding=ROUND_UP) - extended_chain_formatted_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - return extended_chain_formatted_value - - def quantity_from_chain_format(self, chain_value: Decimal, special_denom: Optional[Denom] = None) -> Decimal: - # Binary option markets do not have a base market to provide the number of decimals - decimals = 0 if special_denom is None else special_denom.base - return chain_value * Decimal(f"1e-{decimals}") - - def price_from_chain_format(self, chain_value: Decimal, special_denom: Optional[Denom] = None) -> Decimal: - decimals = self.quote_token.decimals if special_denom is None else special_denom.quote - return chain_value * Decimal(f"1e-{decimals}") - - def margin_from_chain_format(self, chain_value: Decimal) -> Decimal: - return self.notional_from_chain_format(chain_value=chain_value) - - def notional_from_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value / Decimal(f"1e{self.quote_token.decimals}") - - def quantity_from_extended_chain_format( - self, chain_value: Decimal, special_denom: Optional[Denom] = None - ) -> Decimal: - return self._from_extended_chain_format( - chain_value=self.quantity_from_chain_format(chain_value=chain_value, special_denom=special_denom) - ) - - def price_from_extended_chain_format(self, chain_value: Decimal, special_denom: Optional[Denom] = None) -> Decimal: - return self._from_extended_chain_format( - chain_value=self.price_from_chain_format(chain_value=chain_value, special_denom=special_denom) - ) - - def margin_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self.notional_from_extended_chain_format(chain_value=chain_value) - - def notional_from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return self._from_extended_chain_format(chain_value=self.notional_from_chain_format(chain_value=chain_value)) - - def _from_extended_chain_format(self, chain_value: Decimal) -> Decimal: - return chain_value / Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") diff --git a/pyinjective/indexer_client.py b/pyinjective/indexer_client.py index f73c44c9..c6cf8efc 100644 --- a/pyinjective/indexer_client.py +++ b/pyinjective/indexer_client.py @@ -1,5 +1,4 @@ from typing import Any, Callable, Dict, List, Optional -from warnings import warn from pyinjective.client.indexer.grpc.indexer_grpc_account_api import IndexerGrpcAccountApi from pyinjective.client.indexer.grpc.indexer_grpc_auction_api import IndexerGrpcAuctionApi @@ -525,30 +524,6 @@ async def listen_derivative_trades_updates( pagination=pagination, ) - async def listen_derivative_positions_updates( - self, - callback: Callable, - on_end_callback: Optional[Callable] = None, - on_status_callback: Optional[Callable] = None, - market_ids: Optional[List[str]] = None, - subaccount_ids: Optional[List[str]] = None, - ): - """ - This method is deprecated and will be removed soon. Please use `listen_derivative_positions_v2_updates` instead. - """ - warn( - "This method is deprecated. Use listen_derivative_positions_v2_updates instead", - DeprecationWarning, - stacklevel=2, - ) - await self.derivative_stream_api.stream_positions( - callback=callback, - on_end_callback=on_end_callback, - on_status_callback=on_status_callback, - market_ids=market_ids, - subaccount_ids=subaccount_ids, - ) - async def listen_derivative_positions_v2_updates( self, callback: Callable, diff --git a/pyinjective/ofac.json b/pyinjective/ofac.json index cc19ac90..17a09d3f 100644 --- a/pyinjective/ofac.json +++ b/pyinjective/ofac.json @@ -1,4 +1,5 @@ [ + "0x0330070fd38ec3bb94f58fa55d40368271e9e54a", "0x04dba1194ee10112fe6c3207c0687def0e78bacf", "0x08723392ed15743cc38513c4925f5e6be5c17243", "0x08b2efdcdb8822efe5ad0eae55517cf5dc544251", @@ -39,6 +40,8 @@ "0x6be0ae71e6c41f2f9d0d1a3b8d0f75e6f6a0b46e", "0x6f1ca141a28907f78ebaa64fb83a9088b02a8352", "0x72a5843cc08275c8171e582972aa4fda8c397b2a", + "0x747afb5c7a7fc34b547cd0fdebf9b91759c5a52b", + "0x76ea76ca4eb727f18956ab93445a94c5280412b9", "0x797d7ae72ebddcdea2a346c1834e04d1f8df102b", "0x7ced75026204ac29c34bea98905d4c949f27361e", "0x7db418b5d567a4e0e8c59ad71be1fce48f3e6107", @@ -50,18 +53,23 @@ "0x8dce2aac0de82bdcaf6b4373b79f94331b8e4995", "0x901bb9583b24d97e995513c6778dc6888ab6870e", "0x931546d9e66836abf687d2bc64b30407bac8c568", + "0x95584c303fcd48af5c6b9873015f2ad0ca84eae3", "0x961c5be54a2ffc17cf4cb021d863c42dacd47fc1", "0x97b1043abd9e6fc31681635166d430a458d14f9c", "0x983a81ca6fb1e441266d2fbcb7d8e530ac2e05a2", + "0x9be599d7867f5e1a2d7ec6db9710df2b98a15573", "0x9c2bc757b66f24d60f016b6237f8cdd414a879fa", "0x9f4cda013e354b8fc285bf4b9a60460cee7f7ea9", "0xa0e1c89ef1a489c9c7de96311ed5ce5d32c20e4b", "0xa7e5d5a720f06526557c513402f2e6b5fa20b008", "0xb338962b92cd818d6aef0a32a9ecd01212a71f33", + "0xb637f84b66876ebf609c2a4208905f9ddac9d075", "0xb6f5ec1a0a9cd1526536d3f0426c429529471f40", "0xc103b7dc095c904b92081eef0c1640081ec01c10", "0xc2a3829f459b3edd87791c74cd45402ba0a20be3", "0xc455f7fd3e0e12afd51fba5c106909934d8a0e4a", + "0xcb74874f1e06fcf80a306e06e5379a44b488ba2d", + "0xd04e33461fea8302c5e1e13895b60cee8aefda7f", "0xd0975b32cea532eadddfc9c60481976e39db3472", "0xd5ed34b52ac4ab84d8fa8a231a3218bbf01ed510", "0xd8500c631dc32fa18645b7436344a99e4825e10e", @@ -79,6 +87,8 @@ "0xf4377eda661e04b6dda78969796ed31658d602d4", "0xf7b31119c2682c88d88d455dbb9d5932c65cf1be", "0xfac583c0cf07ea434052c49115a4682172ab6b4f", + "0xfb3eff152ea55d1bfa04dbdd509a80fd7b72cdeb", + "0xfda1ec4a6178d4916b001a065422d31ebe5f62ff", "0xfec8a60023265364d066a1212fde3930f6ae8da7", "0xc5801cd781d168e2d3899ad9c39d8a2541871298", "0x0992E2D17e0082Df8a31Bf36Bd8Cc662551de68B", diff --git a/pyinjective/proto/cosmos/orm/module/v1alpha1/module_pb2.py b/pyinjective/proto/cosmos/orm/module/v1alpha1/module_pb2.py deleted file mode 100644 index 54f1b29a..00000000 --- a/pyinjective/proto/cosmos/orm/module/v1alpha1/module_pb2.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: cosmos/orm/module/v1alpha1/module.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'cosmos/orm/module/v1alpha1/module.proto\x12\x1a\x63osmos.orm.module.v1alpha1\x1a cosmos/app/v1alpha1/module.proto\"\"\n\x06Module:\x18\xba\xc0\x96\xda\x01\x12\n\x10\x63osmossdk.io/ormB\xb8\x01\n\x1e\x63om.cosmos.orm.module.v1alpha1B\x0bModuleProtoP\x01\xa2\x02\x03\x43OM\xaa\x02\x1a\x43osmos.Orm.Module.V1alpha1\xca\x02\x1a\x43osmos\\Orm\\Module\\V1alpha1\xe2\x02&Cosmos\\Orm\\Module\\V1alpha1\\GPBMetadata\xea\x02\x1d\x43osmos::Orm::Module::V1alpha1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.module.v1alpha1.module_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\036com.cosmos.orm.module.v1alpha1B\013ModuleProtoP\001\242\002\003COM\252\002\032Cosmos.Orm.Module.V1alpha1\312\002\032Cosmos\\Orm\\Module\\V1alpha1\342\002&Cosmos\\Orm\\Module\\V1alpha1\\GPBMetadata\352\002\035Cosmos::Orm::Module::V1alpha1' - _globals['_MODULE']._loaded_options = None - _globals['_MODULE']._serialized_options = b'\272\300\226\332\001\022\n\020cosmossdk.io/orm' - _globals['_MODULE']._serialized_start=105 - _globals['_MODULE']._serialized_end=139 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/cosmos/orm/query/v1alpha1/query_pb2.py b/pyinjective/proto/cosmos/orm/query/v1alpha1/query_pb2.py deleted file mode 100644 index 7765a8a1..00000000 --- a/pyinjective/proto/cosmos/orm/query/v1alpha1/query_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: cosmos/orm/query/v1alpha1/query.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from pyinjective.proto.cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%cosmos/orm/query/v1alpha1/query.proto\x12\x19\x63osmos.orm.query.v1alpha1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x19google/protobuf/any.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\"\x84\x01\n\nGetRequest\x12!\n\x0cmessage_name\x18\x01 \x01(\tR\x0bmessageName\x12\x14\n\x05index\x18\x02 \x01(\tR\x05index\x12=\n\x06values\x18\x03 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x06values\";\n\x0bGetResponse\x12,\n\x06result\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyR\x06result\"\xee\x03\n\x0bListRequest\x12!\n\x0cmessage_name\x18\x01 \x01(\tR\x0bmessageName\x12\x14\n\x05index\x18\x02 \x01(\tR\x05index\x12G\n\x06prefix\x18\x03 \x01(\x0b\x32-.cosmos.orm.query.v1alpha1.ListRequest.PrefixH\x00R\x06prefix\x12\x44\n\x05range\x18\x04 \x01(\x0b\x32,.cosmos.orm.query.v1alpha1.ListRequest.RangeH\x00R\x05range\x12\x46\n\npagination\x18\x05 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\x1aG\n\x06Prefix\x12=\n\x06values\x18\x01 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x06values\x1a}\n\x05Range\x12;\n\x05start\x18\x01 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x05start\x12\x37\n\x03\x65nd\x18\x02 \x03(\x0b\x32%.cosmos.orm.query.v1alpha1.IndexValueR\x03\x65ndB\x07\n\x05query\"\x87\x01\n\x0cListResponse\x12.\n\x07results\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x07results\x12G\n\npagination\x18\x05 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x8c\x02\n\nIndexValue\x12\x14\n\x04uint\x18\x01 \x01(\x04H\x00R\x04uint\x12\x12\n\x03int\x18\x02 \x01(\x03H\x00R\x03int\x12\x12\n\x03str\x18\x03 \x01(\tH\x00R\x03str\x12\x16\n\x05\x62ytes\x18\x04 \x01(\x0cH\x00R\x05\x62ytes\x12\x14\n\x04\x65num\x18\x05 \x01(\tH\x00R\x04\x65num\x12\x14\n\x04\x62ool\x18\x06 \x01(\x08H\x00R\x04\x62ool\x12:\n\ttimestamp\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\ttimestamp\x12\x37\n\x08\x64uration\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00R\x08\x64urationB\x07\n\x05value2\xb6\x01\n\x05Query\x12T\n\x03Get\x12%.cosmos.orm.query.v1alpha1.GetRequest\x1a&.cosmos.orm.query.v1alpha1.GetResponse\x12W\n\x04List\x12&.cosmos.orm.query.v1alpha1.ListRequest\x1a\'.cosmos.orm.query.v1alpha1.ListResponseB\xb2\x01\n\x1d\x63om.cosmos.orm.query.v1alpha1B\nQueryProtoP\x01\xa2\x02\x03\x43OQ\xaa\x02\x19\x43osmos.Orm.Query.V1alpha1\xca\x02\x19\x43osmos\\Orm\\Query\\V1alpha1\xe2\x02%Cosmos\\Orm\\Query\\V1alpha1\\GPBMetadata\xea\x02\x1c\x43osmos::Orm::Query::V1alpha1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.query.v1alpha1.query_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\035com.cosmos.orm.query.v1alpha1B\nQueryProtoP\001\242\002\003COQ\252\002\031Cosmos.Orm.Query.V1alpha1\312\002\031Cosmos\\Orm\\Query\\V1alpha1\342\002%Cosmos\\Orm\\Query\\V1alpha1\\GPBMetadata\352\002\034Cosmos::Orm::Query::V1alpha1' - _globals['_GETREQUEST']._serialized_start=205 - _globals['_GETREQUEST']._serialized_end=337 - _globals['_GETRESPONSE']._serialized_start=339 - _globals['_GETRESPONSE']._serialized_end=398 - _globals['_LISTREQUEST']._serialized_start=401 - _globals['_LISTREQUEST']._serialized_end=895 - _globals['_LISTREQUEST_PREFIX']._serialized_start=688 - _globals['_LISTREQUEST_PREFIX']._serialized_end=759 - _globals['_LISTREQUEST_RANGE']._serialized_start=761 - _globals['_LISTREQUEST_RANGE']._serialized_end=886 - _globals['_LISTRESPONSE']._serialized_start=898 - _globals['_LISTRESPONSE']._serialized_end=1033 - _globals['_INDEXVALUE']._serialized_start=1036 - _globals['_INDEXVALUE']._serialized_end=1304 - _globals['_QUERY']._serialized_start=1307 - _globals['_QUERY']._serialized_end=1489 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/cosmos/orm/query/v1alpha1/query_pb2_grpc.py b/pyinjective/proto/cosmos/orm/query/v1alpha1/query_pb2_grpc.py deleted file mode 100644 index fdcaaba1..00000000 --- a/pyinjective/proto/cosmos/orm/query/v1alpha1/query_pb2_grpc.py +++ /dev/null @@ -1,125 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from pyinjective.proto.cosmos.orm.query.v1alpha1 import query_pb2 as cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2 - - -class QueryStub(object): - """Query is a generic gRPC service for querying ORM data. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Get = channel.unary_unary( - '/cosmos.orm.query.v1alpha1.Query/Get', - request_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetRequest.SerializeToString, - response_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetResponse.FromString, - _registered_method=True) - self.List = channel.unary_unary( - '/cosmos.orm.query.v1alpha1.Query/List', - request_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListRequest.SerializeToString, - response_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListResponse.FromString, - _registered_method=True) - - -class QueryServicer(object): - """Query is a generic gRPC service for querying ORM data. - """ - - def Get(self, request, context): - """Get queries an ORM table against an unique index. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def List(self, request, context): - """List queries an ORM table against an index. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_QueryServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Get': grpc.unary_unary_rpc_method_handler( - servicer.Get, - request_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetRequest.FromString, - response_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetResponse.SerializeToString, - ), - 'List': grpc.unary_unary_rpc_method_handler( - servicer.List, - request_deserializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListRequest.FromString, - response_serializer=cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'cosmos.orm.query.v1alpha1.Query', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('cosmos.orm.query.v1alpha1.Query', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Query(object): - """Query is a generic gRPC service for querying ORM data. - """ - - @staticmethod - def Get(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/cosmos.orm.query.v1alpha1.Query/Get', - cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetRequest.SerializeToString, - cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.GetResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def List(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/cosmos.orm.query.v1alpha1.Query/List', - cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListRequest.SerializeToString, - cosmos_dot_orm_dot_query_dot_v1alpha1_dot_query__pb2.ListResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/cosmos/orm/v1/orm_pb2.py b/pyinjective/proto/cosmos/orm/v1/orm_pb2.py deleted file mode 100644 index cae563a1..00000000 --- a/pyinjective/proto/cosmos/orm/v1/orm_pb2.py +++ /dev/null @@ -1,34 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: cosmos/orm/v1/orm.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x63osmos/orm/v1/orm.proto\x12\rcosmos.orm.v1\x1a google/protobuf/descriptor.proto\"\xa6\x01\n\x0fTableDescriptor\x12\x44\n\x0bprimary_key\x18\x01 \x01(\x0b\x32#.cosmos.orm.v1.PrimaryKeyDescriptorR\nprimaryKey\x12=\n\x05index\x18\x02 \x03(\x0b\x32\'.cosmos.orm.v1.SecondaryIndexDescriptorR\x05index\x12\x0e\n\x02id\x18\x03 \x01(\rR\x02id\"U\n\x14PrimaryKeyDescriptor\x12\x16\n\x06\x66ields\x18\x01 \x01(\tR\x06\x66ields\x12%\n\x0e\x61uto_increment\x18\x02 \x01(\x08R\rautoIncrement\"Z\n\x18SecondaryIndexDescriptor\x12\x16\n\x06\x66ields\x18\x01 \x01(\tR\x06\x66ields\x12\x0e\n\x02id\x18\x02 \x01(\rR\x02id\x12\x16\n\x06unique\x18\x03 \x01(\x08R\x06unique\"%\n\x13SingletonDescriptor\x12\x0e\n\x02id\x18\x01 \x01(\rR\x02id:X\n\x05table\x12\x1f.google.protobuf.MessageOptions\x18\xee\xb3\xea\x31 \x01(\x0b\x32\x1e.cosmos.orm.v1.TableDescriptorR\x05table:d\n\tsingleton\x12\x1f.google.protobuf.MessageOptions\x18\xef\xb3\xea\x31 \x01(\x0b\x32\".cosmos.orm.v1.SingletonDescriptorR\tsingletonBs\n\x11\x63om.cosmos.orm.v1B\x08OrmProtoP\x01\xa2\x02\x03\x43OX\xaa\x02\rCosmos.Orm.V1\xca\x02\rCosmos\\Orm\\V1\xe2\x02\x19\x43osmos\\Orm\\V1\\GPBMetadata\xea\x02\x0f\x43osmos::Orm::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.v1.orm_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\021com.cosmos.orm.v1B\010OrmProtoP\001\242\002\003COX\252\002\rCosmos.Orm.V1\312\002\rCosmos\\Orm\\V1\342\002\031Cosmos\\Orm\\V1\\GPBMetadata\352\002\017Cosmos::Orm::V1' - _globals['_TABLEDESCRIPTOR']._serialized_start=77 - _globals['_TABLEDESCRIPTOR']._serialized_end=243 - _globals['_PRIMARYKEYDESCRIPTOR']._serialized_start=245 - _globals['_PRIMARYKEYDESCRIPTOR']._serialized_end=330 - _globals['_SECONDARYINDEXDESCRIPTOR']._serialized_start=332 - _globals['_SECONDARYINDEXDESCRIPTOR']._serialized_end=422 - _globals['_SINGLETONDESCRIPTOR']._serialized_start=424 - _globals['_SINGLETONDESCRIPTOR']._serialized_end=461 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/cosmos/orm/v1/orm_pb2_grpc.py b/pyinjective/proto/cosmos/orm/v1/orm_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/cosmos/orm/v1/orm_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/cosmos/orm/v1alpha1/schema_pb2.py b/pyinjective/proto/cosmos/orm/v1alpha1/schema_pb2.py deleted file mode 100644 index 4f6e6666..00000000 --- a/pyinjective/proto/cosmos/orm/v1alpha1/schema_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: cosmos/orm/v1alpha1/schema.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n cosmos/orm/v1alpha1/schema.proto\x12\x13\x63osmos.orm.v1alpha1\x1a google/protobuf/descriptor.proto\"\x93\x02\n\x16ModuleSchemaDescriptor\x12V\n\x0bschema_file\x18\x01 \x03(\x0b\x32\x35.cosmos.orm.v1alpha1.ModuleSchemaDescriptor.FileEntryR\nschemaFile\x12\x16\n\x06prefix\x18\x02 \x01(\x0cR\x06prefix\x1a\x88\x01\n\tFileEntry\x12\x0e\n\x02id\x18\x01 \x01(\rR\x02id\x12&\n\x0fproto_file_name\x18\x02 \x01(\tR\rprotoFileName\x12\x43\n\x0cstorage_type\x18\x03 \x01(\x0e\x32 .cosmos.orm.v1alpha1.StorageTypeR\x0bstorageType*h\n\x0bStorageType\x12$\n STORAGE_TYPE_DEFAULT_UNSPECIFIED\x10\x00\x12\x17\n\x13STORAGE_TYPE_MEMORY\x10\x01\x12\x1a\n\x16STORAGE_TYPE_TRANSIENT\x10\x02:t\n\rmodule_schema\x12\x1f.google.protobuf.MessageOptions\x18\xf0\xb3\xea\x31 \x01(\x0b\x32+.cosmos.orm.v1alpha1.ModuleSchemaDescriptorR\x0cmoduleSchemaB\x94\x01\n\x17\x63om.cosmos.orm.v1alpha1B\x0bSchemaProtoP\x01\xa2\x02\x03\x43OX\xaa\x02\x13\x43osmos.Orm.V1alpha1\xca\x02\x13\x43osmos\\Orm\\V1alpha1\xe2\x02\x1f\x43osmos\\Orm\\V1alpha1\\GPBMetadata\xea\x02\x15\x43osmos::Orm::V1alpha1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cosmos.orm.v1alpha1.schema_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\027com.cosmos.orm.v1alpha1B\013SchemaProtoP\001\242\002\003COX\252\002\023Cosmos.Orm.V1alpha1\312\002\023Cosmos\\Orm\\V1alpha1\342\002\037Cosmos\\Orm\\V1alpha1\\GPBMetadata\352\002\025Cosmos::Orm::V1alpha1' - _globals['_STORAGETYPE']._serialized_start=369 - _globals['_STORAGETYPE']._serialized_end=473 - _globals['_MODULESCHEMADESCRIPTOR']._serialized_start=92 - _globals['_MODULESCHEMADESCRIPTOR']._serialized_end=367 - _globals['_MODULESCHEMADESCRIPTOR_FILEENTRY']._serialized_start=231 - _globals['_MODULESCHEMADESCRIPTOR_FILEENTRY']._serialized_end=367 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/cosmos/orm/v1alpha1/schema_pb2_grpc.py b/pyinjective/proto/cosmos/orm/v1alpha1/schema_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/cosmos/orm/v1alpha1/schema_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/exchange/event_provider_api_pb2.py b/pyinjective/proto/exchange/event_provider_api_pb2.py index 847312b9..8b1bfe21 100644 --- a/pyinjective/proto/exchange/event_provider_api_pb2.py +++ b/pyinjective/proto/exchange/event_provider_api_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!exchange/event_provider_api.proto\x12\x12\x65vent_provider_api\"\x18\n\x16GetLatestHeightRequest\"~\n\x17GetLatestHeightResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x39\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32%.event_provider_api.LatestBlockHeightR\x04\x64\x61ta\"?\n\x11LatestBlockHeight\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x12\n\x04time\x18\x02 \x01(\x12R\x04time\"\x1b\n\x19StreamLatestHeightRequest\"H\n\x1aStreamLatestHeightResponse\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x12\n\x04time\x18\x02 \x01(\x12R\x04time\"L\n\x18StreamBlockEventsRequest\x12\x18\n\x07\x62\x61\x63kend\x18\x01 \x01(\tR\x07\x62\x61\x63kend\x12\x16\n\x06height\x18\x02 \x01(\x11R\x06height\"N\n\x19StreamBlockEventsResponse\x12\x31\n\x06\x62locks\x18\x01 \x03(\x0b\x32\x19.event_provider_api.BlockR\x06\x62locks\"\x9e\x01\n\x05\x42lock\x12\x16\n\x06height\x18\x01 \x01(\x12R\x06height\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x36\n\x06\x65vents\x18\x03 \x03(\x0b\x32\x1e.event_provider_api.BlockEventR\x06\x65vents\x12\x17\n\x07in_sync\x18\x04 \x01(\x08R\x06inSync\x12\x12\n\x04time\x18\x05 \x01(\x12R\x04time\"j\n\nBlockEvent\x12\x19\n\x08type_url\x18\x01 \x01(\tR\x07typeUrl\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05value\x12\x17\n\x07tx_hash\x18\x03 \x01(\x0cR\x06txHash\x12\x12\n\x04mode\x18\x04 \x01(\tR\x04mode\"s\n\x18GetBlockEventsRPCRequest\x12\x18\n\x07\x62\x61\x63kend\x18\x01 \x01(\tR\x07\x62\x61\x63kend\x12\x16\n\x06height\x18\x02 \x01(\x11R\x06height\x12%\n\x0ehuman_readable\x18\x03 \x01(\x08R\rhumanReadable\"\xb7\x01\n\x19GetBlockEventsRPCResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x36\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\".event_provider_api.BlockEventsRPCR\x04\x64\x61ta\x12\x38\n\x05\x62lock\x18\x05 \x01(\x0b\x32\".event_provider_api.BasicBlockInfoR\x05\x62lock\"\xca\x01\n\x0e\x42lockEventsRPC\x12\x14\n\x05types\x18\x01 \x03(\tR\x05types\x12\x16\n\x06\x65vents\x18\x02 \x03(\x0cR\x06\x65vents\x12M\n\ttx_hashes\x18\x03 \x03(\x0b\x32\x30.event_provider_api.BlockEventsRPC.TxHashesEntryR\x08txHashes\x1a;\n\rTxHashesEntry\x12\x10\n\x03key\x18\x01 \x01(\x11R\x03key\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05value:\x02\x38\x01\"Z\n\x0e\x42\x61sicBlockInfo\x12\x16\n\x06height\x18\x01 \x01(\x12R\x06height\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\x12\x12\n\x04time\x18\x03 \x01(\tR\x04time\"e\n\x19GetCustomEventsRPCRequest\x12\x18\n\x07\x62\x61\x63kend\x18\x01 \x01(\tR\x07\x62\x61\x63kend\x12\x16\n\x06height\x18\x02 \x01(\x11R\x06height\x12\x16\n\x06\x65vents\x18\x03 \x01(\tR\x06\x65vents\"\xb8\x01\n\x1aGetCustomEventsRPCResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x36\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\".event_provider_api.BlockEventsRPCR\x04\x64\x61ta\x12\x38\n\x05\x62lock\x18\x05 \x01(\x0b\x32\".event_provider_api.BasicBlockInfoR\x05\x62lock\"T\n\x19GetABCIBlockEventsRequest\x12\x16\n\x06height\x18\x01 \x01(\x11R\x06height\x12\x1f\n\x0b\x65vent_types\x18\x02 \x03(\tR\neventTypes\"\x81\x01\n\x1aGetABCIBlockEventsResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x39\n\traw_block\x18\x04 \x01(\x0b\x32\x1c.event_provider_api.RawBlockR\x08rawBlock\"\xcc\x02\n\x08RawBlock\x12\x16\n\x06height\x18\x01 \x01(\x12R\x06height\x12\x1d\n\nblock_time\x18\x05 \x01(\tR\tblockTime\x12\'\n\x0f\x62lock_timestamp\x18\x06 \x01(\x12R\x0e\x62lockTimestamp\x12J\n\x0btxs_results\x18\x02 \x03(\x0b\x32).event_provider_api.ABCIResponseDeliverTxR\ntxsResults\x12K\n\x12\x62\x65gin_block_events\x18\x03 \x03(\x0b\x32\x1d.event_provider_api.ABCIEventR\x10\x62\x65ginBlockEvents\x12G\n\x10\x65nd_block_events\x18\x04 \x03(\x0b\x32\x1d.event_provider_api.ABCIEventR\x0e\x65ndBlockEvents\"\xf9\x01\n\x15\x41\x42\x43IResponseDeliverTx\x12\x12\n\x04\x63ode\x18\x01 \x01(\x11R\x04\x63ode\x12\x10\n\x03log\x18\x02 \x01(\tR\x03log\x12\x12\n\x04info\x18\x03 \x01(\tR\x04info\x12\x1d\n\ngas_wanted\x18\x04 \x01(\x12R\tgasWanted\x12\x19\n\x08gas_used\x18\x05 \x01(\x12R\x07gasUsed\x12\x35\n\x06\x65vents\x18\x06 \x03(\x0b\x32\x1d.event_provider_api.ABCIEventR\x06\x65vents\x12\x1c\n\tcodespace\x18\x07 \x01(\tR\tcodespace\x12\x17\n\x07tx_hash\x18\x08 \x01(\x0cR\x06txHash\"b\n\tABCIEvent\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x41\n\nattributes\x18\x02 \x03(\x0b\x32!.event_provider_api.ABCIAttributeR\nattributes\"7\n\rABCIAttribute\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\";\n!GetABCIBlockEventsAtHeightRequest\x12\x16\n\x06height\x18\x01 \x01(\x11R\x06height\"\x89\x01\n\"GetABCIBlockEventsAtHeightResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x39\n\traw_block\x18\x04 \x01(\x0b\x32\x1c.event_provider_api.RawBlockR\x08rawBlock2\xd3\x06\n\x10\x45ventProviderAPI\x12j\n\x0fGetLatestHeight\x12*.event_provider_api.GetLatestHeightRequest\x1a+.event_provider_api.GetLatestHeightResponse\x12u\n\x12StreamLatestHeight\x12-.event_provider_api.StreamLatestHeightRequest\x1a..event_provider_api.StreamLatestHeightResponse0\x01\x12r\n\x11StreamBlockEvents\x12,.event_provider_api.StreamBlockEventsRequest\x1a-.event_provider_api.StreamBlockEventsResponse0\x01\x12p\n\x11GetBlockEventsRPC\x12,.event_provider_api.GetBlockEventsRPCRequest\x1a-.event_provider_api.GetBlockEventsRPCResponse\x12s\n\x12GetCustomEventsRPC\x12-.event_provider_api.GetCustomEventsRPCRequest\x1a..event_provider_api.GetCustomEventsRPCResponse\x12s\n\x12GetABCIBlockEvents\x12-.event_provider_api.GetABCIBlockEventsRequest\x1a..event_provider_api.GetABCIBlockEventsResponse\x12\x8b\x01\n\x1aGetABCIBlockEventsAtHeight\x12\x35.event_provider_api.GetABCIBlockEventsAtHeightRequest\x1a\x36.event_provider_api.GetABCIBlockEventsAtHeightResponseB\xa6\x01\n\x16\x63om.event_provider_apiB\x15\x45ventProviderApiProtoP\x01Z\x15/event_provider_apipb\xa2\x02\x03\x45XX\xaa\x02\x10\x45ventProviderApi\xca\x02\x10\x45ventProviderApi\xe2\x02\x1c\x45ventProviderApi\\GPBMetadata\xea\x02\x10\x45ventProviderApib\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!exchange/event_provider_api.proto\x12\x12\x65vent_provider_api\"\x18\n\x16GetLatestHeightRequest\"~\n\x17GetLatestHeightResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x39\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32%.event_provider_api.LatestBlockHeightR\x04\x64\x61ta\"?\n\x11LatestBlockHeight\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x12\n\x04time\x18\x02 \x01(\x12R\x04time\"\x1b\n\x19StreamLatestHeightRequest\"H\n\x1aStreamLatestHeightResponse\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x12\n\x04time\x18\x02 \x01(\x12R\x04time\"d\n\x18StreamBlockEventsRequest\x12\x18\n\x07\x62\x61\x63kend\x18\x01 \x01(\tR\x07\x62\x61\x63kend\x12\x16\n\x06height\x18\x02 \x01(\x11R\x06height\x12\x16\n\x06\x65vents\x18\x03 \x01(\tR\x06\x65vents\"N\n\x19StreamBlockEventsResponse\x12\x31\n\x06\x62locks\x18\x01 \x03(\x0b\x32\x19.event_provider_api.BlockR\x06\x62locks\"\x9e\x01\n\x05\x42lock\x12\x16\n\x06height\x18\x01 \x01(\x12R\x06height\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x36\n\x06\x65vents\x18\x03 \x03(\x0b\x32\x1e.event_provider_api.BlockEventR\x06\x65vents\x12\x17\n\x07in_sync\x18\x04 \x01(\x08R\x06inSync\x12\x12\n\x04time\x18\x05 \x01(\x12R\x04time\"j\n\nBlockEvent\x12\x19\n\x08type_url\x18\x01 \x01(\tR\x07typeUrl\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05value\x12\x17\n\x07tx_hash\x18\x03 \x01(\x0cR\x06txHash\x12\x12\n\x04mode\x18\x04 \x01(\tR\x04mode\"s\n\x18GetBlockEventsRPCRequest\x12\x18\n\x07\x62\x61\x63kend\x18\x01 \x01(\tR\x07\x62\x61\x63kend\x12\x16\n\x06height\x18\x02 \x01(\x11R\x06height\x12%\n\x0ehuman_readable\x18\x03 \x01(\x08R\rhumanReadable\"\xb7\x01\n\x19GetBlockEventsRPCResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x36\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\".event_provider_api.BlockEventsRPCR\x04\x64\x61ta\x12\x38\n\x05\x62lock\x18\x05 \x01(\x0b\x32\".event_provider_api.BasicBlockInfoR\x05\x62lock\"\xca\x01\n\x0e\x42lockEventsRPC\x12\x14\n\x05types\x18\x01 \x03(\tR\x05types\x12\x16\n\x06\x65vents\x18\x02 \x03(\x0cR\x06\x65vents\x12M\n\ttx_hashes\x18\x03 \x03(\x0b\x32\x30.event_provider_api.BlockEventsRPC.TxHashesEntryR\x08txHashes\x1a;\n\rTxHashesEntry\x12\x10\n\x03key\x18\x01 \x01(\x11R\x03key\x12\x14\n\x05value\x18\x02 \x01(\x0cR\x05value:\x02\x38\x01\"Z\n\x0e\x42\x61sicBlockInfo\x12\x16\n\x06height\x18\x01 \x01(\x12R\x06height\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\x12\x12\n\x04time\x18\x03 \x01(\tR\x04time\"e\n\x19GetCustomEventsRPCRequest\x12\x18\n\x07\x62\x61\x63kend\x18\x01 \x01(\tR\x07\x62\x61\x63kend\x12\x16\n\x06height\x18\x02 \x01(\x11R\x06height\x12\x16\n\x06\x65vents\x18\x03 \x01(\tR\x06\x65vents\"\xb8\x01\n\x1aGetCustomEventsRPCResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x36\n\x04\x64\x61ta\x18\x04 \x01(\x0b\x32\".event_provider_api.BlockEventsRPCR\x04\x64\x61ta\x12\x38\n\x05\x62lock\x18\x05 \x01(\x0b\x32\".event_provider_api.BasicBlockInfoR\x05\x62lock\"T\n\x19GetABCIBlockEventsRequest\x12\x16\n\x06height\x18\x01 \x01(\x11R\x06height\x12\x1f\n\x0b\x65vent_types\x18\x02 \x03(\tR\neventTypes\"\x81\x01\n\x1aGetABCIBlockEventsResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x39\n\traw_block\x18\x04 \x01(\x0b\x32\x1c.event_provider_api.RawBlockR\x08rawBlock\"\xcc\x02\n\x08RawBlock\x12\x16\n\x06height\x18\x01 \x01(\x12R\x06height\x12\x1d\n\nblock_time\x18\x05 \x01(\tR\tblockTime\x12\'\n\x0f\x62lock_timestamp\x18\x06 \x01(\x12R\x0e\x62lockTimestamp\x12J\n\x0btxs_results\x18\x02 \x03(\x0b\x32).event_provider_api.ABCIResponseDeliverTxR\ntxsResults\x12K\n\x12\x62\x65gin_block_events\x18\x03 \x03(\x0b\x32\x1d.event_provider_api.ABCIEventR\x10\x62\x65ginBlockEvents\x12G\n\x10\x65nd_block_events\x18\x04 \x03(\x0b\x32\x1d.event_provider_api.ABCIEventR\x0e\x65ndBlockEvents\"\xf9\x01\n\x15\x41\x42\x43IResponseDeliverTx\x12\x12\n\x04\x63ode\x18\x01 \x01(\x11R\x04\x63ode\x12\x10\n\x03log\x18\x02 \x01(\tR\x03log\x12\x12\n\x04info\x18\x03 \x01(\tR\x04info\x12\x1d\n\ngas_wanted\x18\x04 \x01(\x12R\tgasWanted\x12\x19\n\x08gas_used\x18\x05 \x01(\x12R\x07gasUsed\x12\x35\n\x06\x65vents\x18\x06 \x03(\x0b\x32\x1d.event_provider_api.ABCIEventR\x06\x65vents\x12\x1c\n\tcodespace\x18\x07 \x01(\tR\tcodespace\x12\x17\n\x07tx_hash\x18\x08 \x01(\x0cR\x06txHash\"b\n\tABCIEvent\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x41\n\nattributes\x18\x02 \x03(\x0b\x32!.event_provider_api.ABCIAttributeR\nattributes\"7\n\rABCIAttribute\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\";\n!GetABCIBlockEventsAtHeightRequest\x12\x16\n\x06height\x18\x01 \x01(\x11R\x06height\"\x89\x01\n\"GetABCIBlockEventsAtHeightResponse\x12\x0c\n\x01v\x18\x01 \x01(\tR\x01v\x12\x0c\n\x01s\x18\x02 \x01(\tR\x01s\x12\x0c\n\x01\x65\x18\x03 \x01(\tR\x01\x65\x12\x39\n\traw_block\x18\x04 \x01(\x0b\x32\x1c.event_provider_api.RawBlockR\x08rawBlock2\xd3\x06\n\x10\x45ventProviderAPI\x12j\n\x0fGetLatestHeight\x12*.event_provider_api.GetLatestHeightRequest\x1a+.event_provider_api.GetLatestHeightResponse\x12u\n\x12StreamLatestHeight\x12-.event_provider_api.StreamLatestHeightRequest\x1a..event_provider_api.StreamLatestHeightResponse0\x01\x12r\n\x11StreamBlockEvents\x12,.event_provider_api.StreamBlockEventsRequest\x1a-.event_provider_api.StreamBlockEventsResponse0\x01\x12p\n\x11GetBlockEventsRPC\x12,.event_provider_api.GetBlockEventsRPCRequest\x1a-.event_provider_api.GetBlockEventsRPCResponse\x12s\n\x12GetCustomEventsRPC\x12-.event_provider_api.GetCustomEventsRPCRequest\x1a..event_provider_api.GetCustomEventsRPCResponse\x12s\n\x12GetABCIBlockEvents\x12-.event_provider_api.GetABCIBlockEventsRequest\x1a..event_provider_api.GetABCIBlockEventsResponse\x12\x8b\x01\n\x1aGetABCIBlockEventsAtHeight\x12\x35.event_provider_api.GetABCIBlockEventsAtHeightRequest\x1a\x36.event_provider_api.GetABCIBlockEventsAtHeightResponseB\xa6\x01\n\x16\x63om.event_provider_apiB\x15\x45ventProviderApiProtoP\x01Z\x15/event_provider_apipb\xa2\x02\x03\x45XX\xaa\x02\x10\x45ventProviderApi\xca\x02\x10\x45ventProviderApi\xe2\x02\x1c\x45ventProviderApi\\GPBMetadata\xea\x02\x10\x45ventProviderApib\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -35,43 +35,43 @@ _globals['_STREAMLATESTHEIGHTRESPONSE']._serialized_start=305 _globals['_STREAMLATESTHEIGHTRESPONSE']._serialized_end=377 _globals['_STREAMBLOCKEVENTSREQUEST']._serialized_start=379 - _globals['_STREAMBLOCKEVENTSREQUEST']._serialized_end=455 - _globals['_STREAMBLOCKEVENTSRESPONSE']._serialized_start=457 - _globals['_STREAMBLOCKEVENTSRESPONSE']._serialized_end=535 - _globals['_BLOCK']._serialized_start=538 - _globals['_BLOCK']._serialized_end=696 - _globals['_BLOCKEVENT']._serialized_start=698 - _globals['_BLOCKEVENT']._serialized_end=804 - _globals['_GETBLOCKEVENTSRPCREQUEST']._serialized_start=806 - _globals['_GETBLOCKEVENTSRPCREQUEST']._serialized_end=921 - _globals['_GETBLOCKEVENTSRPCRESPONSE']._serialized_start=924 - _globals['_GETBLOCKEVENTSRPCRESPONSE']._serialized_end=1107 - _globals['_BLOCKEVENTSRPC']._serialized_start=1110 - _globals['_BLOCKEVENTSRPC']._serialized_end=1312 - _globals['_BLOCKEVENTSRPC_TXHASHESENTRY']._serialized_start=1253 - _globals['_BLOCKEVENTSRPC_TXHASHESENTRY']._serialized_end=1312 - _globals['_BASICBLOCKINFO']._serialized_start=1314 - _globals['_BASICBLOCKINFO']._serialized_end=1404 - _globals['_GETCUSTOMEVENTSRPCREQUEST']._serialized_start=1406 - _globals['_GETCUSTOMEVENTSRPCREQUEST']._serialized_end=1507 - _globals['_GETCUSTOMEVENTSRPCRESPONSE']._serialized_start=1510 - _globals['_GETCUSTOMEVENTSRPCRESPONSE']._serialized_end=1694 - _globals['_GETABCIBLOCKEVENTSREQUEST']._serialized_start=1696 - _globals['_GETABCIBLOCKEVENTSREQUEST']._serialized_end=1780 - _globals['_GETABCIBLOCKEVENTSRESPONSE']._serialized_start=1783 - _globals['_GETABCIBLOCKEVENTSRESPONSE']._serialized_end=1912 - _globals['_RAWBLOCK']._serialized_start=1915 - _globals['_RAWBLOCK']._serialized_end=2247 - _globals['_ABCIRESPONSEDELIVERTX']._serialized_start=2250 - _globals['_ABCIRESPONSEDELIVERTX']._serialized_end=2499 - _globals['_ABCIEVENT']._serialized_start=2501 - _globals['_ABCIEVENT']._serialized_end=2599 - _globals['_ABCIATTRIBUTE']._serialized_start=2601 - _globals['_ABCIATTRIBUTE']._serialized_end=2656 - _globals['_GETABCIBLOCKEVENTSATHEIGHTREQUEST']._serialized_start=2658 - _globals['_GETABCIBLOCKEVENTSATHEIGHTREQUEST']._serialized_end=2717 - _globals['_GETABCIBLOCKEVENTSATHEIGHTRESPONSE']._serialized_start=2720 - _globals['_GETABCIBLOCKEVENTSATHEIGHTRESPONSE']._serialized_end=2857 - _globals['_EVENTPROVIDERAPI']._serialized_start=2860 - _globals['_EVENTPROVIDERAPI']._serialized_end=3711 + _globals['_STREAMBLOCKEVENTSREQUEST']._serialized_end=479 + _globals['_STREAMBLOCKEVENTSRESPONSE']._serialized_start=481 + _globals['_STREAMBLOCKEVENTSRESPONSE']._serialized_end=559 + _globals['_BLOCK']._serialized_start=562 + _globals['_BLOCK']._serialized_end=720 + _globals['_BLOCKEVENT']._serialized_start=722 + _globals['_BLOCKEVENT']._serialized_end=828 + _globals['_GETBLOCKEVENTSRPCREQUEST']._serialized_start=830 + _globals['_GETBLOCKEVENTSRPCREQUEST']._serialized_end=945 + _globals['_GETBLOCKEVENTSRPCRESPONSE']._serialized_start=948 + _globals['_GETBLOCKEVENTSRPCRESPONSE']._serialized_end=1131 + _globals['_BLOCKEVENTSRPC']._serialized_start=1134 + _globals['_BLOCKEVENTSRPC']._serialized_end=1336 + _globals['_BLOCKEVENTSRPC_TXHASHESENTRY']._serialized_start=1277 + _globals['_BLOCKEVENTSRPC_TXHASHESENTRY']._serialized_end=1336 + _globals['_BASICBLOCKINFO']._serialized_start=1338 + _globals['_BASICBLOCKINFO']._serialized_end=1428 + _globals['_GETCUSTOMEVENTSRPCREQUEST']._serialized_start=1430 + _globals['_GETCUSTOMEVENTSRPCREQUEST']._serialized_end=1531 + _globals['_GETCUSTOMEVENTSRPCRESPONSE']._serialized_start=1534 + _globals['_GETCUSTOMEVENTSRPCRESPONSE']._serialized_end=1718 + _globals['_GETABCIBLOCKEVENTSREQUEST']._serialized_start=1720 + _globals['_GETABCIBLOCKEVENTSREQUEST']._serialized_end=1804 + _globals['_GETABCIBLOCKEVENTSRESPONSE']._serialized_start=1807 + _globals['_GETABCIBLOCKEVENTSRESPONSE']._serialized_end=1936 + _globals['_RAWBLOCK']._serialized_start=1939 + _globals['_RAWBLOCK']._serialized_end=2271 + _globals['_ABCIRESPONSEDELIVERTX']._serialized_start=2274 + _globals['_ABCIRESPONSEDELIVERTX']._serialized_end=2523 + _globals['_ABCIEVENT']._serialized_start=2525 + _globals['_ABCIEVENT']._serialized_end=2623 + _globals['_ABCIATTRIBUTE']._serialized_start=2625 + _globals['_ABCIATTRIBUTE']._serialized_end=2680 + _globals['_GETABCIBLOCKEVENTSATHEIGHTREQUEST']._serialized_start=2682 + _globals['_GETABCIBLOCKEVENTSATHEIGHTREQUEST']._serialized_end=2741 + _globals['_GETABCIBLOCKEVENTSATHEIGHTRESPONSE']._serialized_start=2744 + _globals['_GETABCIBLOCKEVENTSATHEIGHTRESPONSE']._serialized_end=2881 + _globals['_EVENTPROVIDERAPI']._serialized_start=2884 + _globals['_EVENTPROVIDERAPI']._serialized_end=3735 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_archiver_rpc_pb2.py b/pyinjective/proto/exchange/injective_archiver_rpc_pb2.py index d257faa5..a384c74c 100644 --- a/pyinjective/proto/exchange/injective_archiver_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_archiver_rpc_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_archiver_rpc.proto\x12\x16injective_archiver_rpc\"J\n\x0e\x42\x61lanceRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"k\n\x0f\x42\x61lanceResponse\x12X\n\x12historical_balance\x18\x01 \x01(\x0b\x32).injective_archiver_rpc.HistoricalBalanceR\x11historicalBalance\"r\n\x11HistoricalBalance\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01v\x18\x02 \x03(\x01R\x01v\x12\x41\n\x02\x64v\x18\x03 \x03(\x0b\x32\x31.injective_archiver_rpc.HistoricalDetailedBalanceR\x02\x64v\"]\n\x19HistoricalDetailedBalance\x12\x12\n\x04spot\x18\x01 \x01(\x01R\x04spot\x12\x12\n\x04perp\x18\x02 \x01(\x01R\x04perp\x12\x18\n\x07staking\x18\x03 \x01(\x01R\x07staking\"G\n\x13\x41\x63\x63ountStatsRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x16\n\x06period\x18\x02 \x01(\tR\x06period\"p\n\x14\x41\x63\x63ountStatsResponse\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x10\n\x03pnl\x18\x02 \x01(\x01R\x03pnl\x12\x16\n\x06volume\x18\x03 \x01(\x01R\x06volume\x12\x14\n\x05stake\x18\x04 \x01(\tR\x05stake\"G\n\x0bRpnlRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"_\n\x0cRpnlResponse\x12O\n\x0fhistorical_rpnl\x18\x01 \x01(\x0b\x32&.injective_archiver_rpc.HistoricalRPNLR\x0ehistoricalRpnl\"k\n\x0eHistoricalRPNL\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01v\x18\x02 \x03(\x01R\x01v\x12=\n\x02\x64v\x18\x03 \x03(\x0b\x32-.injective_archiver_rpc.HistoricalDetailedPNLR\x02\x64v\"?\n\x15HistoricalDetailedPNL\x12\x12\n\x04rpnl\x18\x01 \x01(\x01R\x04rpnl\x12\x12\n\x04upnl\x18\x02 \x01(\x01R\x04upnl\"J\n\x0eVolumesRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"k\n\x0fVolumesResponse\x12X\n\x12historical_volumes\x18\x01 \x01(\x0b\x32).injective_archiver_rpc.HistoricalVolumesR\x11historicalVolumes\"/\n\x11HistoricalVolumes\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01v\x18\x02 \x03(\x01R\x01v\"\x81\x01\n\x15PnlLeaderboardRequest\x12\x1d\n\nstart_date\x18\x01 \x01(\x12R\tstartDate\x12\x19\n\x08\x65nd_date\x18\x02 \x01(\x12R\x07\x65ndDate\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x04 \x01(\tR\x07\x61\x63\x63ount\"\xdf\x01\n\x16PnlLeaderboardResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"h\n\x0eLeaderboardRow\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x10\n\x03pnl\x18\x02 \x01(\x01R\x03pnl\x12\x16\n\x06volume\x18\x03 \x01(\x01R\x06volume\x12\x12\n\x04rank\x18\x04 \x01(\x11R\x04rank\"\x81\x01\n\x15VolLeaderboardRequest\x12\x1d\n\nstart_date\x18\x01 \x01(\x12R\tstartDate\x12\x19\n\x08\x65nd_date\x18\x02 \x01(\x12R\x07\x65ndDate\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x04 \x01(\tR\x07\x61\x63\x63ount\"\xdf\x01\n\x16VolLeaderboardResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"v\n$PnlLeaderboardFixedResolutionRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x03 \x01(\tR\x07\x61\x63\x63ount\"\xee\x01\n%PnlLeaderboardFixedResolutionResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"v\n$VolLeaderboardFixedResolutionRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x03 \x01(\tR\x07\x61\x63\x63ount\"\xee\x01\n%VolLeaderboardFixedResolutionResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"W\n\x13\x44\x65nomHoldersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\"z\n\x14\x44\x65nomHoldersResponse\x12\x38\n\x07holders\x18\x01 \x03(\x0b\x32\x1e.injective_archiver_rpc.HolderR\x07holders\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\x12\x14\n\x05total\x18\x03 \x01(\x11R\x05total\"K\n\x06Holder\x12\'\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\tR\x07\x62\x61lance\"\xd8\x01\n\x17HistoricalTradesRequest\x12\x1d\n\nfrom_block\x18\x01 \x01(\x04R\tfromBlock\x12\x1b\n\tend_block\x18\x02 \x01(\x04R\x08\x65ndBlock\x12\x1b\n\tfrom_time\x18\x03 \x01(\x12R\x08\x66romTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x12R\x07\x65ndTime\x12\x19\n\x08per_page\x18\x05 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x18\n\x07\x61\x63\x63ount\x18\x07 \x01(\tR\x07\x61\x63\x63ount\"\xad\x01\n\x18HistoricalTradesResponse\x12?\n\x06trades\x18\x01 \x03(\x0b\x32\'.injective_archiver_rpc.HistoricalTradeR\x06trades\x12\x1f\n\x0blast_height\x18\x02 \x01(\x04R\nlastHeight\x12\x1b\n\tlast_time\x18\x03 \x01(\x12R\x08lastTime\x12\x12\n\x04next\x18\x04 \x03(\tR\x04next\"\xe7\x03\n\x0fHistoricalTrade\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12#\n\rsubaccount_id\x18\x02 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\'\n\x0ftrade_direction\x18\x04 \x01(\tR\x0etradeDirection\x12\x38\n\x05price\x18\x05 \x01(\x0b\x32\".injective_archiver_rpc.PriceLevelR\x05price\x12\x10\n\x03\x66\x65\x65\x18\x06 \x01(\tR\x03\x66\x65\x65\x12\x1f\n\x0b\x65xecuted_at\x18\x07 \x01(\x12R\nexecutedAt\x12\'\n\x0f\x65xecuted_height\x18\x08 \x01(\x04R\x0e\x65xecutedHeight\x12#\n\rfee_recipient\x18\t \x01(\tR\x0c\x66\x65\x65Recipient\x12%\n\x0e\x65xecution_side\x18\n \x01(\tR\rexecutionSide\x12\x1b\n\tusd_value\x18\x0b \x01(\tR\x08usdValue\x12\x14\n\x05\x66lags\x18\x0c \x03(\tR\x05\x66lags\x12\x1f\n\x0bmarket_type\x18\r \x01(\tR\nmarketType\x12\x19\n\x08trade_id\x18\x0e \x01(\tR\x07tradeId\"\\\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x02 \x01(\tR\x08quantity\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\";\n\x1fStreamSpotAverageEntriesRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\"\x8f\x01\n StreamSpotAverageEntriesResponse\x12M\n\raverage_entry\x18\x01 \x01(\x0b\x32(.injective_archiver_rpc.SpotAverageEntryR\x0c\x61verageEntry\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\"\x98\x01\n\x10SpotAverageEntry\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12.\n\x13\x61verage_entry_price\x18\x02 \x01(\tR\x11\x61verageEntryPrice\x12\x1a\n\x08quantity\x18\x03 \x01(\tR\x08quantity\x12\x1b\n\tusd_value\x18\x04 \x01(\tR\x08usdValue2\xa0\n\n\x14InjectiveArchiverRPC\x12Z\n\x07\x42\x61lance\x12&.injective_archiver_rpc.BalanceRequest\x1a\'.injective_archiver_rpc.BalanceResponse\x12i\n\x0c\x41\x63\x63ountStats\x12+.injective_archiver_rpc.AccountStatsRequest\x1a,.injective_archiver_rpc.AccountStatsResponse\x12Q\n\x04Rpnl\x12#.injective_archiver_rpc.RpnlRequest\x1a$.injective_archiver_rpc.RpnlResponse\x12Z\n\x07Volumes\x12&.injective_archiver_rpc.VolumesRequest\x1a\'.injective_archiver_rpc.VolumesResponse\x12o\n\x0ePnlLeaderboard\x12-.injective_archiver_rpc.PnlLeaderboardRequest\x1a..injective_archiver_rpc.PnlLeaderboardResponse\x12o\n\x0eVolLeaderboard\x12-.injective_archiver_rpc.VolLeaderboardRequest\x1a..injective_archiver_rpc.VolLeaderboardResponse\x12\x9c\x01\n\x1dPnlLeaderboardFixedResolution\x12<.injective_archiver_rpc.PnlLeaderboardFixedResolutionRequest\x1a=.injective_archiver_rpc.PnlLeaderboardFixedResolutionResponse\x12\x9c\x01\n\x1dVolLeaderboardFixedResolution\x12<.injective_archiver_rpc.VolLeaderboardFixedResolutionRequest\x1a=.injective_archiver_rpc.VolLeaderboardFixedResolutionResponse\x12i\n\x0c\x44\x65nomHolders\x12+.injective_archiver_rpc.DenomHoldersRequest\x1a,.injective_archiver_rpc.DenomHoldersResponse\x12u\n\x10HistoricalTrades\x12/.injective_archiver_rpc.HistoricalTradesRequest\x1a\x30.injective_archiver_rpc.HistoricalTradesResponse\x12\x8f\x01\n\x18StreamSpotAverageEntries\x12\x37.injective_archiver_rpc.StreamSpotAverageEntriesRequest\x1a\x38.injective_archiver_rpc.StreamSpotAverageEntriesResponse0\x01\x42\xc2\x01\n\x1a\x63om.injective_archiver_rpcB\x19InjectiveArchiverRpcProtoP\x01Z\x19/injective_archiver_rpcpb\xa2\x02\x03IXX\xaa\x02\x14InjectiveArchiverRpc\xca\x02\x14InjectiveArchiverRpc\xe2\x02 InjectiveArchiverRpc\\GPBMetadata\xea\x02\x14InjectiveArchiverRpcb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_archiver_rpc.proto\x12\x16injective_archiver_rpc\"J\n\x0e\x42\x61lanceRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"k\n\x0f\x42\x61lanceResponse\x12X\n\x12historical_balance\x18\x01 \x01(\x0b\x32).injective_archiver_rpc.HistoricalBalanceR\x11historicalBalance\"r\n\x11HistoricalBalance\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01v\x18\x02 \x03(\x01R\x01v\x12\x41\n\x02\x64v\x18\x03 \x03(\x0b\x32\x31.injective_archiver_rpc.HistoricalDetailedBalanceR\x02\x64v\"]\n\x19HistoricalDetailedBalance\x12\x12\n\x04spot\x18\x01 \x01(\x01R\x04spot\x12\x12\n\x04perp\x18\x02 \x01(\x01R\x04perp\x12\x18\n\x07staking\x18\x03 \x01(\x01R\x07staking\"G\n\x13\x41\x63\x63ountStatsRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x16\n\x06period\x18\x02 \x01(\tR\x06period\"p\n\x14\x41\x63\x63ountStatsResponse\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x10\n\x03pnl\x18\x02 \x01(\x01R\x03pnl\x12\x16\n\x06volume\x18\x03 \x01(\x01R\x06volume\x12\x14\n\x05stake\x18\x04 \x01(\tR\x05stake\"G\n\x0bRpnlRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"_\n\x0cRpnlResponse\x12O\n\x0fhistorical_rpnl\x18\x01 \x01(\x0b\x32&.injective_archiver_rpc.HistoricalRPNLR\x0ehistoricalRpnl\"k\n\x0eHistoricalRPNL\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01v\x18\x02 \x03(\x01R\x01v\x12=\n\x02\x64v\x18\x03 \x03(\x0b\x32-.injective_archiver_rpc.HistoricalDetailedPNLR\x02\x64v\"?\n\x15HistoricalDetailedPNL\x12\x12\n\x04rpnl\x18\x01 \x01(\x01R\x04rpnl\x12\x12\n\x04upnl\x18\x02 \x01(\x01R\x04upnl\"J\n\x0eVolumesRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"k\n\x0fVolumesResponse\x12X\n\x12historical_volumes\x18\x01 \x01(\x0b\x32).injective_archiver_rpc.HistoricalVolumesR\x11historicalVolumes\"/\n\x11HistoricalVolumes\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01v\x18\x02 \x03(\x01R\x01v\"\x81\x01\n\x15PnlLeaderboardRequest\x12\x1d\n\nstart_date\x18\x01 \x01(\x12R\tstartDate\x12\x19\n\x08\x65nd_date\x18\x02 \x01(\x12R\x07\x65ndDate\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x04 \x01(\tR\x07\x61\x63\x63ount\"\xdf\x01\n\x16PnlLeaderboardResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"h\n\x0eLeaderboardRow\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x10\n\x03pnl\x18\x02 \x01(\x01R\x03pnl\x12\x16\n\x06volume\x18\x03 \x01(\x01R\x06volume\x12\x12\n\x04rank\x18\x04 \x01(\x11R\x04rank\"\x81\x01\n\x15VolLeaderboardRequest\x12\x1d\n\nstart_date\x18\x01 \x01(\x12R\tstartDate\x12\x19\n\x08\x65nd_date\x18\x02 \x01(\x12R\x07\x65ndDate\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x04 \x01(\tR\x07\x61\x63\x63ount\"\xdf\x01\n\x16VolLeaderboardResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"v\n$PnlLeaderboardFixedResolutionRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x03 \x01(\tR\x07\x61\x63\x63ount\"\xee\x01\n%PnlLeaderboardFixedResolutionResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"v\n$VolLeaderboardFixedResolutionRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\x12\x18\n\x07\x61\x63\x63ount\x18\x03 \x01(\tR\x07\x61\x63\x63ount\"\xee\x01\n%VolLeaderboardFixedResolutionResponse\x12\x1d\n\nfirst_date\x18\x01 \x01(\tR\tfirstDate\x12\x1b\n\tlast_date\x18\x02 \x01(\tR\x08lastDate\x12@\n\x07leaders\x18\x03 \x03(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\x07leaders\x12G\n\x0b\x61\x63\x63ount_row\x18\x04 \x01(\x0b\x32&.injective_archiver_rpc.LeaderboardRowR\naccountRow\"W\n\x13\x44\x65nomHoldersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\"z\n\x14\x44\x65nomHoldersResponse\x12\x38\n\x07holders\x18\x01 \x03(\x0b\x32\x1e.injective_archiver_rpc.HolderR\x07holders\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\x12\x14\n\x05total\x18\x03 \x01(\x11R\x05total\"K\n\x06Holder\x12\'\n\x0f\x61\x63\x63ount_address\x18\x01 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x18\n\x07\x62\x61lance\x18\x02 \x01(\tR\x07\x62\x61lance\"\x81\x02\n\x17HistoricalTradesRequest\x12\x1d\n\nfrom_block\x18\x01 \x01(\x04R\tfromBlock\x12\x1b\n\tend_block\x18\x02 \x01(\x04R\x08\x65ndBlock\x12\x1b\n\tfrom_time\x18\x03 \x01(\x12R\x08\x66romTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x12R\x07\x65ndTime\x12\x19\n\x08per_page\x18\x05 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x18\n\x07\x61\x63\x63ount\x18\x07 \x01(\tR\x07\x61\x63\x63ount\x12\'\n\x0f\x65xecution_types\x18\x08 \x03(\tR\x0e\x65xecutionTypes\"\xad\x01\n\x18HistoricalTradesResponse\x12?\n\x06trades\x18\x01 \x03(\x0b\x32\'.injective_archiver_rpc.HistoricalTradeR\x06trades\x12\x1f\n\x0blast_height\x18\x02 \x01(\x04R\nlastHeight\x12\x1b\n\tlast_time\x18\x03 \x01(\x12R\x08lastTime\x12\x12\n\x04next\x18\x04 \x03(\tR\x04next\"\xc3\x04\n\x0fHistoricalTrade\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12#\n\rsubaccount_id\x18\x02 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\'\n\x0ftrade_direction\x18\x04 \x01(\tR\x0etradeDirection\x12\x38\n\x05price\x18\x05 \x01(\x0b\x32\".injective_archiver_rpc.PriceLevelR\x05price\x12\x10\n\x03\x66\x65\x65\x18\x06 \x01(\tR\x03\x66\x65\x65\x12\x1f\n\x0b\x65xecuted_at\x18\x07 \x01(\x12R\nexecutedAt\x12\'\n\x0f\x65xecuted_height\x18\x08 \x01(\x04R\x0e\x65xecutedHeight\x12#\n\rfee_recipient\x18\t \x01(\tR\x0c\x66\x65\x65Recipient\x12%\n\x0e\x65xecution_side\x18\n \x01(\tR\rexecutionSide\x12\x1b\n\tusd_value\x18\x0b \x01(\tR\x08usdValue\x12\x14\n\x05\x66lags\x18\x0c \x03(\tR\x05\x66lags\x12\x1f\n\x0bmarket_type\x18\r \x01(\tR\nmarketType\x12\x19\n\x08trade_id\x18\x0e \x01(\tR\x07tradeId\x12%\n\x0e\x65xecution_type\x18\x0f \x01(\tR\rexecutionType\x12\x10\n\x03\x63id\x18\x10 \x01(\tR\x03\x63id\x12!\n\x0c\x66unding_rate\x18\x11 \x01(\tR\x0b\x66undingRate\"\\\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x02 \x01(\tR\x08quantity\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\";\n\x1fStreamSpotAverageEntriesRequest\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\"\x8f\x01\n StreamSpotAverageEntriesResponse\x12M\n\raverage_entry\x18\x01 \x01(\x0b\x32(.injective_archiver_rpc.SpotAverageEntryR\x0c\x61verageEntry\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\"\x98\x01\n\x10SpotAverageEntry\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12.\n\x13\x61verage_entry_price\x18\x02 \x01(\tR\x11\x61verageEntryPrice\x12\x1a\n\x08quantity\x18\x03 \x01(\tR\x08quantity\x12\x1b\n\tusd_value\x18\x04 \x01(\tR\x08usdValue2\xa0\n\n\x14InjectiveArchiverRPC\x12Z\n\x07\x42\x61lance\x12&.injective_archiver_rpc.BalanceRequest\x1a\'.injective_archiver_rpc.BalanceResponse\x12i\n\x0c\x41\x63\x63ountStats\x12+.injective_archiver_rpc.AccountStatsRequest\x1a,.injective_archiver_rpc.AccountStatsResponse\x12Q\n\x04Rpnl\x12#.injective_archiver_rpc.RpnlRequest\x1a$.injective_archiver_rpc.RpnlResponse\x12Z\n\x07Volumes\x12&.injective_archiver_rpc.VolumesRequest\x1a\'.injective_archiver_rpc.VolumesResponse\x12o\n\x0ePnlLeaderboard\x12-.injective_archiver_rpc.PnlLeaderboardRequest\x1a..injective_archiver_rpc.PnlLeaderboardResponse\x12o\n\x0eVolLeaderboard\x12-.injective_archiver_rpc.VolLeaderboardRequest\x1a..injective_archiver_rpc.VolLeaderboardResponse\x12\x9c\x01\n\x1dPnlLeaderboardFixedResolution\x12<.injective_archiver_rpc.PnlLeaderboardFixedResolutionRequest\x1a=.injective_archiver_rpc.PnlLeaderboardFixedResolutionResponse\x12\x9c\x01\n\x1dVolLeaderboardFixedResolution\x12<.injective_archiver_rpc.VolLeaderboardFixedResolutionRequest\x1a=.injective_archiver_rpc.VolLeaderboardFixedResolutionResponse\x12i\n\x0c\x44\x65nomHolders\x12+.injective_archiver_rpc.DenomHoldersRequest\x1a,.injective_archiver_rpc.DenomHoldersResponse\x12u\n\x10HistoricalTrades\x12/.injective_archiver_rpc.HistoricalTradesRequest\x1a\x30.injective_archiver_rpc.HistoricalTradesResponse\x12\x8f\x01\n\x18StreamSpotAverageEntries\x12\x37.injective_archiver_rpc.StreamSpotAverageEntriesRequest\x1a\x38.injective_archiver_rpc.StreamSpotAverageEntriesResponse0\x01\x42\xc2\x01\n\x1a\x63om.injective_archiver_rpcB\x19InjectiveArchiverRpcProtoP\x01Z\x19/injective_archiver_rpcpb\xa2\x02\x03IXX\xaa\x02\x14InjectiveArchiverRpc\xca\x02\x14InjectiveArchiverRpc\xe2\x02 InjectiveArchiverRpc\\GPBMetadata\xea\x02\x14InjectiveArchiverRpcb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -73,19 +73,19 @@ _globals['_HOLDER']._serialized_start=2983 _globals['_HOLDER']._serialized_end=3058 _globals['_HISTORICALTRADESREQUEST']._serialized_start=3061 - _globals['_HISTORICALTRADESREQUEST']._serialized_end=3277 - _globals['_HISTORICALTRADESRESPONSE']._serialized_start=3280 - _globals['_HISTORICALTRADESRESPONSE']._serialized_end=3453 - _globals['_HISTORICALTRADE']._serialized_start=3456 - _globals['_HISTORICALTRADE']._serialized_end=3943 - _globals['_PRICELEVEL']._serialized_start=3945 - _globals['_PRICELEVEL']._serialized_end=4037 - _globals['_STREAMSPOTAVERAGEENTRIESREQUEST']._serialized_start=4039 - _globals['_STREAMSPOTAVERAGEENTRIESREQUEST']._serialized_end=4098 - _globals['_STREAMSPOTAVERAGEENTRIESRESPONSE']._serialized_start=4101 - _globals['_STREAMSPOTAVERAGEENTRIESRESPONSE']._serialized_end=4244 - _globals['_SPOTAVERAGEENTRY']._serialized_start=4247 - _globals['_SPOTAVERAGEENTRY']._serialized_end=4399 - _globals['_INJECTIVEARCHIVERRPC']._serialized_start=4402 - _globals['_INJECTIVEARCHIVERRPC']._serialized_end=5714 + _globals['_HISTORICALTRADESREQUEST']._serialized_end=3318 + _globals['_HISTORICALTRADESRESPONSE']._serialized_start=3321 + _globals['_HISTORICALTRADESRESPONSE']._serialized_end=3494 + _globals['_HISTORICALTRADE']._serialized_start=3497 + _globals['_HISTORICALTRADE']._serialized_end=4076 + _globals['_PRICELEVEL']._serialized_start=4078 + _globals['_PRICELEVEL']._serialized_end=4170 + _globals['_STREAMSPOTAVERAGEENTRIESREQUEST']._serialized_start=4172 + _globals['_STREAMSPOTAVERAGEENTRIESREQUEST']._serialized_end=4231 + _globals['_STREAMSPOTAVERAGEENTRIESRESPONSE']._serialized_start=4234 + _globals['_STREAMSPOTAVERAGEENTRIESRESPONSE']._serialized_end=4377 + _globals['_SPOTAVERAGEENTRY']._serialized_start=4380 + _globals['_SPOTAVERAGEENTRY']._serialized_end=4532 + _globals['_INJECTIVEARCHIVERRPC']._serialized_start=4535 + _globals['_INJECTIVEARCHIVERRPC']._serialized_end=5847 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_chart_rpc_pb2.py b/pyinjective/proto/exchange/injective_chart_rpc_pb2.py index b1e48deb..a6122258 100644 --- a/pyinjective/proto/exchange/injective_chart_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_chart_rpc_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"exchange/injective_chart_rpc.proto\x12\x13injective_chart_rpc\"\xb1\x01\n\x18SpotMarketHistoryRequest\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x03 \x01(\tR\nresolution\x12\x12\n\x04\x66rom\x18\x04 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x05 \x01(\x11R\x02to\x12\x1c\n\tcountback\x18\x06 \x01(\x11R\tcountback\"}\n\x19SpotMarketHistoryResponse\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01o\x18\x02 \x03(\x01R\x01o\x12\x0c\n\x01h\x18\x03 \x03(\x01R\x01h\x12\x0c\n\x01l\x18\x04 \x03(\x01R\x01l\x12\x0c\n\x01\x63\x18\x05 \x03(\x01R\x01\x63\x12\x0c\n\x01v\x18\x06 \x03(\x01R\x01v\x12\x0c\n\x01s\x18\x07 \x01(\tR\x01s\"\xb7\x01\n\x1e\x44\x65rivativeMarketHistoryRequest\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x03 \x01(\tR\nresolution\x12\x12\n\x04\x66rom\x18\x04 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x05 \x01(\x11R\x02to\x12\x1c\n\tcountback\x18\x06 \x01(\x11R\tcountback\"\x83\x01\n\x1f\x44\x65rivativeMarketHistoryResponse\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01o\x18\x02 \x03(\x01R\x01o\x12\x0c\n\x01h\x18\x03 \x03(\x01R\x01h\x12\x0c\n\x01l\x18\x04 \x03(\x01R\x01l\x12\x0c\n\x01\x63\x18\x05 \x03(\x01R\x01\x63\x12\x0c\n\x01v\x18\x06 \x03(\x01R\x01v\x12\x0c\n\x01s\x18\x07 \x01(\tR\x01s\"W\n\x18SpotMarketSummaryRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"\xb8\x01\n\x19SpotMarketSummaryResponse\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04open\x18\x02 \x01(\x01R\x04open\x12\x12\n\x04high\x18\x03 \x01(\x01R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x01R\x03low\x12\x16\n\x06volume\x18\x05 \x01(\x01R\x06volume\x12\x14\n\x05price\x18\x06 \x01(\x01R\x05price\x12\x16\n\x06\x63hange\x18\x07 \x01(\x01R\x06\x63hange\"=\n\x1b\x41llSpotMarketSummaryRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\"\\\n\x1c\x41llSpotMarketSummaryResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_chart_rpc.MarketSummaryRespR\x05\x66ield\"\xb0\x01\n\x11MarketSummaryResp\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04open\x18\x02 \x01(\x01R\x04open\x12\x12\n\x04high\x18\x03 \x01(\x01R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x01R\x03low\x12\x16\n\x06volume\x18\x05 \x01(\x01R\x06volume\x12\x14\n\x05price\x18\x06 \x01(\x01R\x05price\x12\x16\n\x06\x63hange\x18\x07 \x01(\x01R\x06\x63hange\"~\n\x1e\x44\x65rivativeMarketSummaryRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1f\n\x0bindex_price\x18\x02 \x01(\x08R\nindexPrice\x12\x1e\n\nresolution\x18\x03 \x01(\tR\nresolution\"\xbe\x01\n\x1f\x44\x65rivativeMarketSummaryResponse\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04open\x18\x02 \x01(\x01R\x04open\x12\x12\n\x04high\x18\x03 \x01(\x01R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x01R\x03low\x12\x16\n\x06volume\x18\x05 \x01(\x01R\x06volume\x12\x14\n\x05price\x18\x06 \x01(\x01R\x05price\x12\x16\n\x06\x63hange\x18\x07 \x01(\x01R\x06\x63hange\"C\n!AllDerivativeMarketSummaryRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\"b\n\"AllDerivativeMarketSummaryResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_chart_rpc.MarketSummaryRespR\x05\x66ield\"u\n\x15MarketSnapshotRequest\x12\x1e\n\x0bmarket_i_ds\x18\x01 \x03(\tR\tmarketIDs\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\x12\x1c\n\tcountback\x18\x03 \x01(\x11R\tcountback\"b\n\x16MarketSnapshotResponse\x12H\n\x05\x66ield\x18\x01 \x03(\x0b\x32\x32.injective_chart_rpc.MarketSnapshotHistoryResponseR\x05\x66ield\"\xb0\x01\n\x1dMarketSnapshotHistoryResponse\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\x12\x0c\n\x01t\x18\x03 \x03(\x11R\x01t\x12\x0c\n\x01o\x18\x04 \x03(\x01R\x01o\x12\x0c\n\x01h\x18\x05 \x03(\x01R\x01h\x12\x0c\n\x01l\x18\x06 \x03(\x01R\x01l\x12\x0c\n\x01\x63\x18\x07 \x03(\x01R\x01\x63\x12\x0c\n\x01v\x18\x08 \x03(\x01R\x01v2\x81\x07\n\x11InjectiveChartRPC\x12r\n\x11SpotMarketHistory\x12-.injective_chart_rpc.SpotMarketHistoryRequest\x1a..injective_chart_rpc.SpotMarketHistoryResponse\x12\x84\x01\n\x17\x44\x65rivativeMarketHistory\x12\x33.injective_chart_rpc.DerivativeMarketHistoryRequest\x1a\x34.injective_chart_rpc.DerivativeMarketHistoryResponse\x12r\n\x11SpotMarketSummary\x12-.injective_chart_rpc.SpotMarketSummaryRequest\x1a..injective_chart_rpc.SpotMarketSummaryResponse\x12{\n\x14\x41llSpotMarketSummary\x12\x30.injective_chart_rpc.AllSpotMarketSummaryRequest\x1a\x31.injective_chart_rpc.AllSpotMarketSummaryResponse\x12\x84\x01\n\x17\x44\x65rivativeMarketSummary\x12\x33.injective_chart_rpc.DerivativeMarketSummaryRequest\x1a\x34.injective_chart_rpc.DerivativeMarketSummaryResponse\x12\x8d\x01\n\x1a\x41llDerivativeMarketSummary\x12\x36.injective_chart_rpc.AllDerivativeMarketSummaryRequest\x1a\x37.injective_chart_rpc.AllDerivativeMarketSummaryResponse\x12i\n\x0eMarketSnapshot\x12*.injective_chart_rpc.MarketSnapshotRequest\x1a+.injective_chart_rpc.MarketSnapshotResponseB\xad\x01\n\x17\x63om.injective_chart_rpcB\x16InjectiveChartRpcProtoP\x01Z\x16/injective_chart_rpcpb\xa2\x02\x03IXX\xaa\x02\x11InjectiveChartRpc\xca\x02\x11InjectiveChartRpc\xe2\x02\x1dInjectiveChartRpc\\GPBMetadata\xea\x02\x11InjectiveChartRpcb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"exchange/injective_chart_rpc.proto\x12\x13injective_chart_rpc\"\xb1\x01\n\x18SpotMarketHistoryRequest\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x03 \x01(\tR\nresolution\x12\x12\n\x04\x66rom\x18\x04 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x05 \x01(\x11R\x02to\x12\x1c\n\tcountback\x18\x06 \x01(\x11R\tcountback\"}\n\x19SpotMarketHistoryResponse\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01o\x18\x02 \x03(\x01R\x01o\x12\x0c\n\x01h\x18\x03 \x03(\x01R\x01h\x12\x0c\n\x01l\x18\x04 \x03(\x01R\x01l\x12\x0c\n\x01\x63\x18\x05 \x03(\x01R\x01\x63\x12\x0c\n\x01v\x18\x06 \x03(\x01R\x01v\x12\x0c\n\x01s\x18\x07 \x01(\tR\x01s\"\xe3\x01\n\x1e\x44\x65rivativeMarketHistoryRequest\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x03 \x01(\tR\nresolution\x12\x12\n\x04\x66rom\x18\x04 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x05 \x01(\x11R\x02to\x12\x1c\n\tcountback\x18\x06 \x01(\x11R\tcountback\x12*\n\x11use_oracle_prices\x18\x07 \x01(\x08R\x0fuseOraclePrices\"\x83\x01\n\x1f\x44\x65rivativeMarketHistoryResponse\x12\x0c\n\x01t\x18\x01 \x03(\x11R\x01t\x12\x0c\n\x01o\x18\x02 \x03(\x01R\x01o\x12\x0c\n\x01h\x18\x03 \x03(\x01R\x01h\x12\x0c\n\x01l\x18\x04 \x03(\x01R\x01l\x12\x0c\n\x01\x63\x18\x05 \x03(\x01R\x01\x63\x12\x0c\n\x01v\x18\x06 \x03(\x01R\x01v\x12\x0c\n\x01s\x18\x07 \x01(\tR\x01s\"W\n\x18SpotMarketSummaryRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\"\xb8\x01\n\x19SpotMarketSummaryResponse\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04open\x18\x02 \x01(\x01R\x04open\x12\x12\n\x04high\x18\x03 \x01(\x01R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x01R\x03low\x12\x16\n\x06volume\x18\x05 \x01(\x01R\x06volume\x12\x14\n\x05price\x18\x06 \x01(\x01R\x05price\x12\x16\n\x06\x63hange\x18\x07 \x01(\x01R\x06\x63hange\"=\n\x1b\x41llSpotMarketSummaryRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\"\\\n\x1c\x41llSpotMarketSummaryResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_chart_rpc.MarketSummaryRespR\x05\x66ield\"\xb0\x01\n\x11MarketSummaryResp\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04open\x18\x02 \x01(\x01R\x04open\x12\x12\n\x04high\x18\x03 \x01(\x01R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x01R\x03low\x12\x16\n\x06volume\x18\x05 \x01(\x01R\x06volume\x12\x14\n\x05price\x18\x06 \x01(\x01R\x05price\x12\x16\n\x06\x63hange\x18\x07 \x01(\x01R\x06\x63hange\"~\n\x1e\x44\x65rivativeMarketSummaryRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1f\n\x0bindex_price\x18\x02 \x01(\x08R\nindexPrice\x12\x1e\n\nresolution\x18\x03 \x01(\tR\nresolution\"\xbe\x01\n\x1f\x44\x65rivativeMarketSummaryResponse\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04open\x18\x02 \x01(\x01R\x04open\x12\x12\n\x04high\x18\x03 \x01(\x01R\x04high\x12\x10\n\x03low\x18\x04 \x01(\x01R\x03low\x12\x16\n\x06volume\x18\x05 \x01(\x01R\x06volume\x12\x14\n\x05price\x18\x06 \x01(\x01R\x05price\x12\x16\n\x06\x63hange\x18\x07 \x01(\x01R\x06\x63hange\"C\n!AllDerivativeMarketSummaryRequest\x12\x1e\n\nresolution\x18\x01 \x01(\tR\nresolution\"b\n\"AllDerivativeMarketSummaryResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_chart_rpc.MarketSummaryRespR\x05\x66ield\"u\n\x15MarketSnapshotRequest\x12\x1e\n\x0bmarket_i_ds\x18\x01 \x03(\tR\tmarketIDs\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\x12\x1c\n\tcountback\x18\x03 \x01(\x11R\tcountback\"b\n\x16MarketSnapshotResponse\x12H\n\x05\x66ield\x18\x01 \x03(\x0b\x32\x32.injective_chart_rpc.MarketSnapshotHistoryResponseR\x05\x66ield\"\xb0\x01\n\x1dMarketSnapshotHistoryResponse\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1e\n\nresolution\x18\x02 \x01(\tR\nresolution\x12\x0c\n\x01t\x18\x03 \x03(\x11R\x01t\x12\x0c\n\x01o\x18\x04 \x03(\x01R\x01o\x12\x0c\n\x01h\x18\x05 \x03(\x01R\x01h\x12\x0c\n\x01l\x18\x06 \x03(\x01R\x01l\x12\x0c\n\x01\x63\x18\x07 \x03(\x01R\x01\x63\x12\x0c\n\x01v\x18\x08 \x03(\x01R\x01v2\x81\x07\n\x11InjectiveChartRPC\x12r\n\x11SpotMarketHistory\x12-.injective_chart_rpc.SpotMarketHistoryRequest\x1a..injective_chart_rpc.SpotMarketHistoryResponse\x12\x84\x01\n\x17\x44\x65rivativeMarketHistory\x12\x33.injective_chart_rpc.DerivativeMarketHistoryRequest\x1a\x34.injective_chart_rpc.DerivativeMarketHistoryResponse\x12r\n\x11SpotMarketSummary\x12-.injective_chart_rpc.SpotMarketSummaryRequest\x1a..injective_chart_rpc.SpotMarketSummaryResponse\x12{\n\x14\x41llSpotMarketSummary\x12\x30.injective_chart_rpc.AllSpotMarketSummaryRequest\x1a\x31.injective_chart_rpc.AllSpotMarketSummaryResponse\x12\x84\x01\n\x17\x44\x65rivativeMarketSummary\x12\x33.injective_chart_rpc.DerivativeMarketSummaryRequest\x1a\x34.injective_chart_rpc.DerivativeMarketSummaryResponse\x12\x8d\x01\n\x1a\x41llDerivativeMarketSummary\x12\x36.injective_chart_rpc.AllDerivativeMarketSummaryRequest\x1a\x37.injective_chart_rpc.AllDerivativeMarketSummaryResponse\x12i\n\x0eMarketSnapshot\x12*.injective_chart_rpc.MarketSnapshotRequest\x1a+.injective_chart_rpc.MarketSnapshotResponseB\xad\x01\n\x17\x63om.injective_chart_rpcB\x16InjectiveChartRpcProtoP\x01Z\x16/injective_chart_rpcpb\xa2\x02\x03IXX\xaa\x02\x11InjectiveChartRpc\xca\x02\x11InjectiveChartRpc\xe2\x02\x1dInjectiveChartRpc\\GPBMetadata\xea\x02\x11InjectiveChartRpcb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -27,33 +27,33 @@ _globals['_SPOTMARKETHISTORYRESPONSE']._serialized_start=239 _globals['_SPOTMARKETHISTORYRESPONSE']._serialized_end=364 _globals['_DERIVATIVEMARKETHISTORYREQUEST']._serialized_start=367 - _globals['_DERIVATIVEMARKETHISTORYREQUEST']._serialized_end=550 - _globals['_DERIVATIVEMARKETHISTORYRESPONSE']._serialized_start=553 - _globals['_DERIVATIVEMARKETHISTORYRESPONSE']._serialized_end=684 - _globals['_SPOTMARKETSUMMARYREQUEST']._serialized_start=686 - _globals['_SPOTMARKETSUMMARYREQUEST']._serialized_end=773 - _globals['_SPOTMARKETSUMMARYRESPONSE']._serialized_start=776 - _globals['_SPOTMARKETSUMMARYRESPONSE']._serialized_end=960 - _globals['_ALLSPOTMARKETSUMMARYREQUEST']._serialized_start=962 - _globals['_ALLSPOTMARKETSUMMARYREQUEST']._serialized_end=1023 - _globals['_ALLSPOTMARKETSUMMARYRESPONSE']._serialized_start=1025 - _globals['_ALLSPOTMARKETSUMMARYRESPONSE']._serialized_end=1117 - _globals['_MARKETSUMMARYRESP']._serialized_start=1120 - _globals['_MARKETSUMMARYRESP']._serialized_end=1296 - _globals['_DERIVATIVEMARKETSUMMARYREQUEST']._serialized_start=1298 - _globals['_DERIVATIVEMARKETSUMMARYREQUEST']._serialized_end=1424 - _globals['_DERIVATIVEMARKETSUMMARYRESPONSE']._serialized_start=1427 - _globals['_DERIVATIVEMARKETSUMMARYRESPONSE']._serialized_end=1617 - _globals['_ALLDERIVATIVEMARKETSUMMARYREQUEST']._serialized_start=1619 - _globals['_ALLDERIVATIVEMARKETSUMMARYREQUEST']._serialized_end=1686 - _globals['_ALLDERIVATIVEMARKETSUMMARYRESPONSE']._serialized_start=1688 - _globals['_ALLDERIVATIVEMARKETSUMMARYRESPONSE']._serialized_end=1786 - _globals['_MARKETSNAPSHOTREQUEST']._serialized_start=1788 - _globals['_MARKETSNAPSHOTREQUEST']._serialized_end=1905 - _globals['_MARKETSNAPSHOTRESPONSE']._serialized_start=1907 - _globals['_MARKETSNAPSHOTRESPONSE']._serialized_end=2005 - _globals['_MARKETSNAPSHOTHISTORYRESPONSE']._serialized_start=2008 - _globals['_MARKETSNAPSHOTHISTORYRESPONSE']._serialized_end=2184 - _globals['_INJECTIVECHARTRPC']._serialized_start=2187 - _globals['_INJECTIVECHARTRPC']._serialized_end=3084 + _globals['_DERIVATIVEMARKETHISTORYREQUEST']._serialized_end=594 + _globals['_DERIVATIVEMARKETHISTORYRESPONSE']._serialized_start=597 + _globals['_DERIVATIVEMARKETHISTORYRESPONSE']._serialized_end=728 + _globals['_SPOTMARKETSUMMARYREQUEST']._serialized_start=730 + _globals['_SPOTMARKETSUMMARYREQUEST']._serialized_end=817 + _globals['_SPOTMARKETSUMMARYRESPONSE']._serialized_start=820 + _globals['_SPOTMARKETSUMMARYRESPONSE']._serialized_end=1004 + _globals['_ALLSPOTMARKETSUMMARYREQUEST']._serialized_start=1006 + _globals['_ALLSPOTMARKETSUMMARYREQUEST']._serialized_end=1067 + _globals['_ALLSPOTMARKETSUMMARYRESPONSE']._serialized_start=1069 + _globals['_ALLSPOTMARKETSUMMARYRESPONSE']._serialized_end=1161 + _globals['_MARKETSUMMARYRESP']._serialized_start=1164 + _globals['_MARKETSUMMARYRESP']._serialized_end=1340 + _globals['_DERIVATIVEMARKETSUMMARYREQUEST']._serialized_start=1342 + _globals['_DERIVATIVEMARKETSUMMARYREQUEST']._serialized_end=1468 + _globals['_DERIVATIVEMARKETSUMMARYRESPONSE']._serialized_start=1471 + _globals['_DERIVATIVEMARKETSUMMARYRESPONSE']._serialized_end=1661 + _globals['_ALLDERIVATIVEMARKETSUMMARYREQUEST']._serialized_start=1663 + _globals['_ALLDERIVATIVEMARKETSUMMARYREQUEST']._serialized_end=1730 + _globals['_ALLDERIVATIVEMARKETSUMMARYRESPONSE']._serialized_start=1732 + _globals['_ALLDERIVATIVEMARKETSUMMARYRESPONSE']._serialized_end=1830 + _globals['_MARKETSNAPSHOTREQUEST']._serialized_start=1832 + _globals['_MARKETSNAPSHOTREQUEST']._serialized_end=1949 + _globals['_MARKETSNAPSHOTRESPONSE']._serialized_start=1951 + _globals['_MARKETSNAPSHOTRESPONSE']._serialized_end=2049 + _globals['_MARKETSNAPSHOTHISTORYRESPONSE']._serialized_start=2052 + _globals['_MARKETSNAPSHOTHISTORYRESPONSE']._serialized_end=2228 + _globals['_INJECTIVECHARTRPC']._serialized_start=2231 + _globals['_INJECTIVECHARTRPC']._serialized_end=3128 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py b/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py index 3a6fd53c..fe79f761 100644 --- a/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0exchange/injective_derivative_exchange_rpc.proto\x12!injective_derivative_exchange_rpc\"\x7f\n\x0eMarketsRequest\x12#\n\rmarket_status\x18\x01 \x01(\tR\x0cmarketStatus\x12\x1f\n\x0bquote_denom\x18\x02 \x01(\tR\nquoteDenom\x12\'\n\x0fmarket_statuses\x18\x03 \x03(\tR\x0emarketStatuses\"d\n\x0fMarketsResponse\x12Q\n\x07markets\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfoR\x07markets\"\xfc\t\n\x14\x44\x65rivativeMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rmarket_status\x18\x02 \x01(\tR\x0cmarketStatus\x12\x16\n\x06ticker\x18\x03 \x01(\tR\x06ticker\x12\x1f\n\x0boracle_base\x18\x04 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\x05 \x01(\tR\x0boracleQuote\x12\x1f\n\x0boracle_type\x18\x06 \x01(\tR\noracleType\x12.\n\x13oracle_scale_factor\x18\x07 \x01(\rR\x11oracleScaleFactor\x12\x30\n\x14initial_margin_ratio\x18\x08 \x01(\tR\x12initialMarginRatio\x12\x38\n\x18maintenance_margin_ratio\x18\t \x01(\tR\x16maintenanceMarginRatio\x12\x1f\n\x0bquote_denom\x18\n \x01(\tR\nquoteDenom\x12V\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMetaR\x0equoteTokenMeta\x12$\n\x0emaker_fee_rate\x18\x0c \x01(\tR\x0cmakerFeeRate\x12$\n\x0etaker_fee_rate\x18\r \x01(\tR\x0ctakerFeeRate\x12\x30\n\x14service_provider_fee\x18\x0e \x01(\tR\x12serviceProviderFee\x12!\n\x0cis_perpetual\x18\x0f \x01(\x08R\x0bisPerpetual\x12-\n\x13min_price_tick_size\x18\x10 \x01(\tR\x10minPriceTickSize\x12\x33\n\x16min_quantity_tick_size\x18\x11 \x01(\tR\x13minQuantityTickSize\x12j\n\x15perpetual_market_info\x18\x12 \x01(\x0b\x32\x36.injective_derivative_exchange_rpc.PerpetualMarketInfoR\x13perpetualMarketInfo\x12s\n\x18perpetual_market_funding\x18\x13 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.PerpetualMarketFundingR\x16perpetualMarketFunding\x12w\n\x1a\x65xpiry_futures_market_info\x18\x14 \x01(\x0b\x32:.injective_derivative_exchange_rpc.ExpiryFuturesMarketInfoR\x17\x65xpiryFuturesMarketInfo\x12!\n\x0cmin_notional\x18\x15 \x01(\tR\x0bminNotional\x12.\n\x13reduce_margin_ratio\x18\x16 \x01(\tR\x11reduceMarginRatio\x12^\n\x11open_notional_cap\x18\x17 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.OpenNotionalCapR\x0fopenNotionalCap\"\xa0\x01\n\tTokenMeta\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06symbol\x18\x03 \x01(\tR\x06symbol\x12\x12\n\x04logo\x18\x04 \x01(\tR\x04logo\x12\x1a\n\x08\x64\x65\x63imals\x18\x05 \x01(\x11R\x08\x64\x65\x63imals\x12\x1d\n\nupdated_at\x18\x06 \x01(\x12R\tupdatedAt\"\xdf\x01\n\x13PerpetualMarketInfo\x12\x35\n\x17hourly_funding_rate_cap\x18\x01 \x01(\tR\x14hourlyFundingRateCap\x12\x30\n\x14hourly_interest_rate\x18\x02 \x01(\tR\x12hourlyInterestRate\x12\x34\n\x16next_funding_timestamp\x18\x03 \x01(\x12R\x14nextFundingTimestamp\x12)\n\x10\x66unding_interval\x18\x04 \x01(\x12R\x0f\x66undingInterval\"\xc5\x01\n\x16PerpetualMarketFunding\x12-\n\x12\x63umulative_funding\x18\x01 \x01(\tR\x11\x63umulativeFunding\x12)\n\x10\x63umulative_price\x18\x02 \x01(\tR\x0f\x63umulativePrice\x12%\n\x0elast_timestamp\x18\x03 \x01(\x12R\rlastTimestamp\x12*\n\x11last_funding_rate\x18\x04 \x01(\tR\x0flastFundingRate\"w\n\x17\x45xpiryFuturesMarketInfo\x12\x31\n\x14\x65xpiration_timestamp\x18\x01 \x01(\x12R\x13\x65xpirationTimestamp\x12)\n\x10settlement_price\x18\x02 \x01(\tR\x0fsettlementPrice\"#\n\x0fOpenNotionalCap\x12\x10\n\x03\x63\x61p\x18\x01 \x01(\tR\x03\x63\x61p\",\n\rMarketRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\"a\n\x0eMarketResponse\x12O\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfoR\x06market\"4\n\x13StreamMarketRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"\xac\x01\n\x14StreamMarketResponse\x12O\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfoR\x06market\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\x8d\x01\n\x1b\x42inaryOptionsMarketsRequest\x12#\n\rmarket_status\x18\x01 \x01(\tR\x0cmarketStatus\x12\x1f\n\x0bquote_denom\x18\x02 \x01(\tR\nquoteDenom\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\"\xb7\x01\n\x1c\x42inaryOptionsMarketsResponse\x12T\n\x07markets\x18\x01 \x03(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfoR\x07markets\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xa1\x06\n\x17\x42inaryOptionsMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rmarket_status\x18\x02 \x01(\tR\x0cmarketStatus\x12\x16\n\x06ticker\x18\x03 \x01(\tR\x06ticker\x12#\n\roracle_symbol\x18\x04 \x01(\tR\x0coracleSymbol\x12\'\n\x0foracle_provider\x18\x05 \x01(\tR\x0eoracleProvider\x12\x1f\n\x0boracle_type\x18\x06 \x01(\tR\noracleType\x12.\n\x13oracle_scale_factor\x18\x07 \x01(\rR\x11oracleScaleFactor\x12\x31\n\x14\x65xpiration_timestamp\x18\x08 \x01(\x12R\x13\x65xpirationTimestamp\x12\x31\n\x14settlement_timestamp\x18\t \x01(\x12R\x13settlementTimestamp\x12\x1f\n\x0bquote_denom\x18\n \x01(\tR\nquoteDenom\x12V\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMetaR\x0equoteTokenMeta\x12$\n\x0emaker_fee_rate\x18\x0c \x01(\tR\x0cmakerFeeRate\x12$\n\x0etaker_fee_rate\x18\r \x01(\tR\x0ctakerFeeRate\x12\x30\n\x14service_provider_fee\x18\x0e \x01(\tR\x12serviceProviderFee\x12-\n\x13min_price_tick_size\x18\x0f \x01(\tR\x10minPriceTickSize\x12\x33\n\x16min_quantity_tick_size\x18\x10 \x01(\tR\x13minQuantityTickSize\x12)\n\x10settlement_price\x18\x11 \x01(\tR\x0fsettlementPrice\x12!\n\x0cmin_notional\x18\x12 \x01(\tR\x0bminNotional\"\x86\x01\n\x06Paging\x12\x14\n\x05total\x18\x01 \x01(\x12R\x05total\x12\x12\n\x04\x66rom\x18\x02 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x03 \x01(\x11R\x02to\x12.\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12R\x11\x63ountBySubaccount\x12\x12\n\x04next\x18\x05 \x03(\tR\x04next\"9\n\x1a\x42inaryOptionsMarketRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\"q\n\x1b\x42inaryOptionsMarketResponse\x12R\n\x06market\x18\x01 \x01(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfoR\x06market\"G\n\x12OrderbookV2Request\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x11R\x05\x64\x65pth\"r\n\x13OrderbookV2Response\x12[\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2R\torderbook\"\xf6\x01\n\x1a\x44\x65rivativeLimitOrderbookV2\x12\x41\n\x04\x62uys\x18\x01 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevelR\x04\x62uys\x12\x43\n\x05sells\x18\x02 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevelR\x05sells\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\x12\x1c\n\ttimestamp\x18\x04 \x01(\x12R\ttimestamp\x12\x16\n\x06height\x18\x05 \x01(\x12R\x06height\"\\\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x02 \x01(\tR\x08quantity\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"J\n\x13OrderbooksV2Request\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x11R\x05\x64\x65pth\"{\n\x14OrderbooksV2Response\x12\x63\n\norderbooks\x18\x01 \x03(\x0b\x32\x43.injective_derivative_exchange_rpc.SingleDerivativeLimitOrderbookV2R\norderbooks\"\x9c\x01\n SingleDerivativeLimitOrderbookV2\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12[\n\torderbook\x18\x02 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2R\torderbook\"9\n\x18StreamOrderbookV2Request\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"\xda\x01\n\x19StreamOrderbookV2Response\x12[\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2R\torderbook\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\x12\x1b\n\tmarket_id\x18\x04 \x01(\tR\x08marketId\"=\n\x1cStreamOrderbookUpdateRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"\xf3\x01\n\x1dStreamOrderbookUpdateResponse\x12p\n\x17orderbook_level_updates\x18\x01 \x01(\x0b\x32\x38.injective_derivative_exchange_rpc.OrderbookLevelUpdatesR\x15orderbookLevelUpdates\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\x12\x1b\n\tmarket_id\x18\x04 \x01(\tR\x08marketId\"\x83\x02\n\x15OrderbookLevelUpdates\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1a\n\x08sequence\x18\x02 \x01(\x04R\x08sequence\x12G\n\x04\x62uys\x18\x03 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdateR\x04\x62uys\x12I\n\x05sells\x18\x04 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdateR\x05sells\x12\x1d\n\nupdated_at\x18\x05 \x01(\x12R\tupdatedAt\"\x7f\n\x10PriceLevelUpdate\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x02 \x01(\tR\x08quantity\x12\x1b\n\tis_active\x18\x03 \x01(\x08R\x08isActive\x12\x1c\n\ttimestamp\x18\x04 \x01(\x12R\ttimestamp\"\xc9\x03\n\rOrdersRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1d\n\norder_side\x18\x02 \x01(\tR\torderSide\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x05 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x06 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x07 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x08 \x03(\tR\tmarketIds\x12%\n\x0eis_conditional\x18\t \x01(\tR\risConditional\x12\x1d\n\norder_type\x18\n \x01(\tR\torderType\x12)\n\x10include_inactive\x18\x0b \x01(\x08R\x0fincludeInactive\x12\x36\n\x17subaccount_total_orders\x18\x0c \x01(\x08R\x15subaccountTotalOrders\x12\x19\n\x08trade_id\x18\r \x01(\tR\x07tradeId\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\"\xa4\x01\n\x0eOrdersResponse\x12O\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrderR\x06orders\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xd7\x05\n\x14\x44\x65rivativeLimitOrder\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12\x1d\n\norder_side\x18\x02 \x01(\tR\torderSide\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12$\n\x0eis_reduce_only\x18\x05 \x01(\x08R\x0cisReduceOnly\x12\x16\n\x06margin\x18\x06 \x01(\tR\x06margin\x12\x14\n\x05price\x18\x07 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x08 \x01(\tR\x08quantity\x12+\n\x11unfilled_quantity\x18\t \x01(\tR\x10unfilledQuantity\x12#\n\rtrigger_price\x18\n \x01(\tR\x0ctriggerPrice\x12#\n\rfee_recipient\x18\x0b \x01(\tR\x0c\x66\x65\x65Recipient\x12\x14\n\x05state\x18\x0c \x01(\tR\x05state\x12\x1d\n\ncreated_at\x18\r \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0e \x01(\x12R\tupdatedAt\x12!\n\x0corder_number\x18\x0f \x01(\x12R\x0borderNumber\x12\x1d\n\norder_type\x18\x10 \x01(\tR\torderType\x12%\n\x0eis_conditional\x18\x11 \x01(\x08R\risConditional\x12\x1d\n\ntrigger_at\x18\x12 \x01(\x04R\ttriggerAt\x12*\n\x11placed_order_hash\x18\x13 \x01(\tR\x0fplacedOrderHash\x12%\n\x0e\x65xecution_type\x18\x14 \x01(\tR\rexecutionType\x12\x17\n\x07tx_hash\x18\x15 \x01(\tR\x06txHash\x12\x10\n\x03\x63id\x18\x16 \x01(\tR\x03\x63id\"\xdc\x02\n\x10PositionsRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x05 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x06 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x07 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x08 \x01(\tR\tdirection\x12<\n\x1asubaccount_total_positions\x18\t \x01(\x08R\x18subaccountTotalPositions\x12\'\n\x0f\x61\x63\x63ount_address\x18\n \x01(\tR\x0e\x61\x63\x63ountAddress\"\xab\x01\n\x11PositionsResponse\x12S\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePositionR\tpositions\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xfb\x04\n\x12\x44\x65rivativePosition\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0b\x65ntry_price\x18\x06 \x01(\tR\nentryPrice\x12\x16\n\x06margin\x18\x07 \x01(\tR\x06margin\x12+\n\x11liquidation_price\x18\x08 \x01(\tR\x10liquidationPrice\x12\x1d\n\nmark_price\x18\t \x01(\tR\tmarkPrice\x12\x43\n\x1e\x61ggregate_reduce_only_quantity\x18\x0b \x01(\tR\x1b\x61ggregateReduceOnlyQuantity\x12\x1d\n\nupdated_at\x18\x0c \x01(\x12R\tupdatedAt\x12\x1d\n\ncreated_at\x18\r \x01(\x12R\tcreatedAt\x12!\n\x0c\x66unding_last\x18\x0e \x01(\tR\x0b\x66undingLast\x12\x1f\n\x0b\x66unding_sum\x18\x0f \x01(\tR\nfundingSum\x12\x38\n\x18\x63umulative_funding_entry\x18\x10 \x01(\tR\x16\x63umulativeFundingEntry\x12K\n\"effective_cumulative_funding_entry\x18\x11 \x01(\tR\x1f\x65\x66\x66\x65\x63tiveCumulativeFundingEntry\"\xde\x02\n\x12PositionsV2Request\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x05 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x06 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x07 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x08 \x01(\tR\tdirection\x12<\n\x1asubaccount_total_positions\x18\t \x01(\x08R\x18subaccountTotalPositions\x12\'\n\x0f\x61\x63\x63ount_address\x18\n \x01(\tR\x0e\x61\x63\x63ountAddress\"\xaf\x01\n\x13PositionsV2Response\x12U\n\tpositions\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativePositionV2R\tpositions\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xaf\x04\n\x14\x44\x65rivativePositionV2\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0b\x65ntry_price\x18\x06 \x01(\tR\nentryPrice\x12\x16\n\x06margin\x18\x07 \x01(\tR\x06margin\x12+\n\x11liquidation_price\x18\x08 \x01(\tR\x10liquidationPrice\x12\x1d\n\nmark_price\x18\t \x01(\tR\tmarkPrice\x12\x1d\n\nupdated_at\x18\x0b \x01(\x12R\tupdatedAt\x12\x14\n\x05\x64\x65nom\x18\x0c \x01(\tR\x05\x64\x65nom\x12!\n\x0c\x66unding_last\x18\r \x01(\tR\x0b\x66undingLast\x12\x1f\n\x0b\x66unding_sum\x18\x0e \x01(\tR\nfundingSum\x12\x38\n\x18\x63umulative_funding_entry\x18\x0f \x01(\tR\x16\x63umulativeFundingEntry\x12K\n\"effective_cumulative_funding_entry\x18\x10 \x01(\tR\x1f\x65\x66\x66\x65\x63tiveCumulativeFundingEntry\"c\n\x1aLiquidablePositionsRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x02 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\"r\n\x1bLiquidablePositionsResponse\x12S\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePositionR\tpositions\"\xbe\x01\n\x16\x46undingPaymentsRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x19\n\x08\x65nd_time\x18\x05 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x06 \x03(\tR\tmarketIds\"\xab\x01\n\x17\x46undingPaymentsResponse\x12M\n\x08payments\x18\x01 \x03(\x0b\x32\x31.injective_derivative_exchange_rpc.FundingPaymentR\x08payments\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\x88\x01\n\x0e\x46undingPayment\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x02 \x01(\tR\x0csubaccountId\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1c\n\ttimestamp\x18\x04 \x01(\x12R\ttimestamp\"w\n\x13\x46undingRatesRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x02 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x12R\x07\x65ndTime\"\xae\x01\n\x14\x46undingRatesResponse\x12S\n\rfunding_rates\x18\x01 \x03(\x0b\x32..injective_derivative_exchange_rpc.FundingRateR\x0c\x66undingRates\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\\\n\x0b\x46undingRate\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04rate\x18\x02 \x01(\tR\x04rate\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xc9\x01\n\x16StreamPositionsRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1d\n\nmarket_ids\x18\x03 \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\x04 \x03(\tR\rsubaccountIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x05 \x01(\tR\x0e\x61\x63\x63ountAddress\"\x8a\x01\n\x17StreamPositionsResponse\x12Q\n\x08position\x18\x01 \x01(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePositionR\x08position\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\"\xcb\x01\n\x18StreamPositionsV2Request\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1d\n\nmarket_ids\x18\x03 \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\x04 \x03(\tR\rsubaccountIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x05 \x01(\tR\x0e\x61\x63\x63ountAddress\"\x8e\x01\n\x19StreamPositionsV2Response\x12S\n\x08position\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativePositionV2R\x08position\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\"\xcf\x03\n\x13StreamOrdersRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1d\n\norder_side\x18\x02 \x01(\tR\torderSide\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x05 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x06 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x07 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x08 \x03(\tR\tmarketIds\x12%\n\x0eis_conditional\x18\t \x01(\tR\risConditional\x12\x1d\n\norder_type\x18\n \x01(\tR\torderType\x12)\n\x10include_inactive\x18\x0b \x01(\x08R\x0fincludeInactive\x12\x36\n\x17subaccount_total_orders\x18\x0c \x01(\x08R\x15subaccountTotalOrders\x12\x19\n\x08trade_id\x18\r \x01(\tR\x07tradeId\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\"\xaa\x01\n\x14StreamOrdersResponse\x12M\n\x05order\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrderR\x05order\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xe4\x03\n\rTradesRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\x9f\x01\n\x0eTradesResponse\x12J\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x06trades\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xfa\x03\n\x0f\x44\x65rivativeTrade\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12#\n\rsubaccount_id\x18\x02 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x30\n\x14trade_execution_type\x18\x04 \x01(\tR\x12tradeExecutionType\x12%\n\x0eis_liquidation\x18\x05 \x01(\x08R\risLiquidation\x12W\n\x0eposition_delta\x18\x06 \x01(\x0b\x32\x30.injective_derivative_exchange_rpc.PositionDeltaR\rpositionDelta\x12\x16\n\x06payout\x18\x07 \x01(\tR\x06payout\x12\x10\n\x03\x66\x65\x65\x18\x08 \x01(\tR\x03\x66\x65\x65\x12\x1f\n\x0b\x65xecuted_at\x18\t \x01(\x12R\nexecutedAt\x12#\n\rfee_recipient\x18\n \x01(\tR\x0c\x66\x65\x65Recipient\x12\x19\n\x08trade_id\x18\x0b \x01(\tR\x07tradeId\x12%\n\x0e\x65xecution_side\x18\x0c \x01(\tR\rexecutionSide\x12\x10\n\x03\x63id\x18\r \x01(\tR\x03\x63id\x12\x10\n\x03pnl\x18\x0e \x01(\tR\x03pnl\"\xbb\x01\n\rPositionDelta\x12\'\n\x0ftrade_direction\x18\x01 \x01(\tR\x0etradeDirection\x12\'\n\x0f\x65xecution_price\x18\x02 \x01(\tR\x0e\x65xecutionPrice\x12-\n\x12\x65xecution_quantity\x18\x03 \x01(\tR\x11\x65xecutionQuantity\x12)\n\x10\x65xecution_margin\x18\x04 \x01(\tR\x0f\x65xecutionMargin\"\xe6\x03\n\x0fTradesV2Request\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\xa1\x01\n\x10TradesV2Response\x12J\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x06trades\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xea\x03\n\x13StreamTradesRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\xa5\x01\n\x14StreamTradesResponse\x12H\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x05trade\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xec\x03\n\x15StreamTradesV2Request\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\xa7\x01\n\x16StreamTradesV2Response\x12H\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x05trade\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\x89\x01\n\x1bSubaccountOrdersListRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\"\xb2\x01\n\x1cSubaccountOrdersListResponse\x12O\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrderR\x06orders\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xce\x01\n\x1bSubaccountTradesListRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_type\x18\x03 \x01(\tR\rexecutionType\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\"j\n\x1cSubaccountTradesListResponse\x12J\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x06trades\"\xfc\x03\n\x14OrdersHistoryRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x1f\n\x0border_types\x18\x05 \x03(\tR\norderTypes\x12\x1c\n\tdirection\x18\x06 \x01(\tR\tdirection\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12%\n\x0eis_conditional\x18\t \x01(\tR\risConditional\x12\x1d\n\norder_type\x18\n \x01(\tR\torderType\x12\x14\n\x05state\x18\x0b \x01(\tR\x05state\x12\'\n\x0f\x65xecution_types\x18\x0c \x03(\tR\x0e\x65xecutionTypes\x12\x1d\n\nmarket_ids\x18\r \x03(\tR\tmarketIds\x12\x19\n\x08trade_id\x18\x0e \x01(\tR\x07tradeId\x12.\n\x13\x61\x63tive_markets_only\x18\x0f \x01(\x08R\x11\x61\x63tiveMarketsOnly\x12\x10\n\x03\x63id\x18\x10 \x01(\tR\x03\x63id\"\xad\x01\n\x15OrdersHistoryResponse\x12Q\n\x06orders\x18\x01 \x03(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistoryR\x06orders\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xa9\x05\n\x16\x44\x65rivativeOrderHistory\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1b\n\tis_active\x18\x03 \x01(\x08R\x08isActive\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12%\n\x0e\x65xecution_type\x18\x05 \x01(\tR\rexecutionType\x12\x1d\n\norder_type\x18\x06 \x01(\tR\torderType\x12\x14\n\x05price\x18\x07 \x01(\tR\x05price\x12#\n\rtrigger_price\x18\x08 \x01(\tR\x0ctriggerPrice\x12\x1a\n\x08quantity\x18\t \x01(\tR\x08quantity\x12\'\n\x0f\x66illed_quantity\x18\n \x01(\tR\x0e\x66illedQuantity\x12\x14\n\x05state\x18\x0b \x01(\tR\x05state\x12\x1d\n\ncreated_at\x18\x0c \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\r \x01(\x12R\tupdatedAt\x12$\n\x0eis_reduce_only\x18\x0e \x01(\x08R\x0cisReduceOnly\x12\x1c\n\tdirection\x18\x0f \x01(\tR\tdirection\x12%\n\x0eis_conditional\x18\x10 \x01(\x08R\risConditional\x12\x1d\n\ntrigger_at\x18\x11 \x01(\x04R\ttriggerAt\x12*\n\x11placed_order_hash\x18\x12 \x01(\tR\x0fplacedOrderHash\x12\x16\n\x06margin\x18\x13 \x01(\tR\x06margin\x12\x17\n\x07tx_hash\x18\x14 \x01(\tR\x06txHash\x12\x10\n\x03\x63id\x18\x15 \x01(\tR\x03\x63id\"\xdc\x01\n\x1aStreamOrdersHistoryRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1f\n\x0border_types\x18\x03 \x03(\tR\norderTypes\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x14\n\x05state\x18\x05 \x01(\tR\x05state\x12\'\n\x0f\x65xecution_types\x18\x06 \x03(\tR\x0e\x65xecutionTypes\"\xb3\x01\n\x1bStreamOrdersHistoryResponse\x12O\n\x05order\x18\x01 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistoryR\x05order\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"5\n\x13OpenInterestRequest\x12\x1e\n\x0bmarket_i_ds\x18\x01 \x03(\tR\tmarketIDs\"t\n\x14OpenInterestResponse\x12\\\n\x0eopen_interests\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.MarketOpenInterestR\ropenInterests\"V\n\x12MarketOpenInterest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\ropen_interest\x18\x02 \x01(\tR\x0copenInterest2\xd8\x1c\n\x1eInjectiveDerivativeExchangeRPC\x12p\n\x07Markets\x12\x31.injective_derivative_exchange_rpc.MarketsRequest\x1a\x32.injective_derivative_exchange_rpc.MarketsResponse\x12m\n\x06Market\x12\x30.injective_derivative_exchange_rpc.MarketRequest\x1a\x31.injective_derivative_exchange_rpc.MarketResponse\x12\x81\x01\n\x0cStreamMarket\x12\x36.injective_derivative_exchange_rpc.StreamMarketRequest\x1a\x37.injective_derivative_exchange_rpc.StreamMarketResponse0\x01\x12\x97\x01\n\x14\x42inaryOptionsMarkets\x12>.injective_derivative_exchange_rpc.BinaryOptionsMarketsRequest\x1a?.injective_derivative_exchange_rpc.BinaryOptionsMarketsResponse\x12\x94\x01\n\x13\x42inaryOptionsMarket\x12=.injective_derivative_exchange_rpc.BinaryOptionsMarketRequest\x1a>.injective_derivative_exchange_rpc.BinaryOptionsMarketResponse\x12|\n\x0bOrderbookV2\x12\x35.injective_derivative_exchange_rpc.OrderbookV2Request\x1a\x36.injective_derivative_exchange_rpc.OrderbookV2Response\x12\x7f\n\x0cOrderbooksV2\x12\x36.injective_derivative_exchange_rpc.OrderbooksV2Request\x1a\x37.injective_derivative_exchange_rpc.OrderbooksV2Response\x12\x90\x01\n\x11StreamOrderbookV2\x12;.injective_derivative_exchange_rpc.StreamOrderbookV2Request\x1a<.injective_derivative_exchange_rpc.StreamOrderbookV2Response0\x01\x12\x9c\x01\n\x15StreamOrderbookUpdate\x12?.injective_derivative_exchange_rpc.StreamOrderbookUpdateRequest\x1a@.injective_derivative_exchange_rpc.StreamOrderbookUpdateResponse0\x01\x12m\n\x06Orders\x12\x30.injective_derivative_exchange_rpc.OrdersRequest\x1a\x31.injective_derivative_exchange_rpc.OrdersResponse\x12v\n\tPositions\x12\x33.injective_derivative_exchange_rpc.PositionsRequest\x1a\x34.injective_derivative_exchange_rpc.PositionsResponse\x12|\n\x0bPositionsV2\x12\x35.injective_derivative_exchange_rpc.PositionsV2Request\x1a\x36.injective_derivative_exchange_rpc.PositionsV2Response\x12\x94\x01\n\x13LiquidablePositions\x12=.injective_derivative_exchange_rpc.LiquidablePositionsRequest\x1a>.injective_derivative_exchange_rpc.LiquidablePositionsResponse\x12\x88\x01\n\x0f\x46undingPayments\x12\x39.injective_derivative_exchange_rpc.FundingPaymentsRequest\x1a:.injective_derivative_exchange_rpc.FundingPaymentsResponse\x12\x7f\n\x0c\x46undingRates\x12\x36.injective_derivative_exchange_rpc.FundingRatesRequest\x1a\x37.injective_derivative_exchange_rpc.FundingRatesResponse\x12\x8a\x01\n\x0fStreamPositions\x12\x39.injective_derivative_exchange_rpc.StreamPositionsRequest\x1a:.injective_derivative_exchange_rpc.StreamPositionsResponse0\x01\x12\x90\x01\n\x11StreamPositionsV2\x12;.injective_derivative_exchange_rpc.StreamPositionsV2Request\x1a<.injective_derivative_exchange_rpc.StreamPositionsV2Response0\x01\x12\x81\x01\n\x0cStreamOrders\x12\x36.injective_derivative_exchange_rpc.StreamOrdersRequest\x1a\x37.injective_derivative_exchange_rpc.StreamOrdersResponse0\x01\x12m\n\x06Trades\x12\x30.injective_derivative_exchange_rpc.TradesRequest\x1a\x31.injective_derivative_exchange_rpc.TradesResponse\x12s\n\x08TradesV2\x12\x32.injective_derivative_exchange_rpc.TradesV2Request\x1a\x33.injective_derivative_exchange_rpc.TradesV2Response\x12\x81\x01\n\x0cStreamTrades\x12\x36.injective_derivative_exchange_rpc.StreamTradesRequest\x1a\x37.injective_derivative_exchange_rpc.StreamTradesResponse0\x01\x12\x87\x01\n\x0eStreamTradesV2\x12\x38.injective_derivative_exchange_rpc.StreamTradesV2Request\x1a\x39.injective_derivative_exchange_rpc.StreamTradesV2Response0\x01\x12\x97\x01\n\x14SubaccountOrdersList\x12>.injective_derivative_exchange_rpc.SubaccountOrdersListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountOrdersListResponse\x12\x97\x01\n\x14SubaccountTradesList\x12>.injective_derivative_exchange_rpc.SubaccountTradesListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountTradesListResponse\x12\x82\x01\n\rOrdersHistory\x12\x37.injective_derivative_exchange_rpc.OrdersHistoryRequest\x1a\x38.injective_derivative_exchange_rpc.OrdersHistoryResponse\x12\x96\x01\n\x13StreamOrdersHistory\x12=.injective_derivative_exchange_rpc.StreamOrdersHistoryRequest\x1a>.injective_derivative_exchange_rpc.StreamOrdersHistoryResponse0\x01\x12\x7f\n\x0cOpenInterest\x12\x36.injective_derivative_exchange_rpc.OpenInterestRequest\x1a\x37.injective_derivative_exchange_rpc.OpenInterestResponseB\x8a\x02\n%com.injective_derivative_exchange_rpcB#InjectiveDerivativeExchangeRpcProtoP\x01Z$/injective_derivative_exchange_rpcpb\xa2\x02\x03IXX\xaa\x02\x1eInjectiveDerivativeExchangeRpc\xca\x02\x1eInjectiveDerivativeExchangeRpc\xe2\x02*InjectiveDerivativeExchangeRpc\\GPBMetadata\xea\x02\x1eInjectiveDerivativeExchangeRpcb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0exchange/injective_derivative_exchange_rpc.proto\x12!injective_derivative_exchange_rpc\"\x7f\n\x0eMarketsRequest\x12#\n\rmarket_status\x18\x01 \x01(\tR\x0cmarketStatus\x12\x1f\n\x0bquote_denom\x18\x02 \x01(\tR\nquoteDenom\x12\'\n\x0fmarket_statuses\x18\x03 \x03(\tR\x0emarketStatuses\"d\n\x0fMarketsResponse\x12Q\n\x07markets\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfoR\x07markets\"\xfc\t\n\x14\x44\x65rivativeMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rmarket_status\x18\x02 \x01(\tR\x0cmarketStatus\x12\x16\n\x06ticker\x18\x03 \x01(\tR\x06ticker\x12\x1f\n\x0boracle_base\x18\x04 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\x05 \x01(\tR\x0boracleQuote\x12\x1f\n\x0boracle_type\x18\x06 \x01(\tR\noracleType\x12.\n\x13oracle_scale_factor\x18\x07 \x01(\rR\x11oracleScaleFactor\x12\x30\n\x14initial_margin_ratio\x18\x08 \x01(\tR\x12initialMarginRatio\x12\x38\n\x18maintenance_margin_ratio\x18\t \x01(\tR\x16maintenanceMarginRatio\x12\x1f\n\x0bquote_denom\x18\n \x01(\tR\nquoteDenom\x12V\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMetaR\x0equoteTokenMeta\x12$\n\x0emaker_fee_rate\x18\x0c \x01(\tR\x0cmakerFeeRate\x12$\n\x0etaker_fee_rate\x18\r \x01(\tR\x0ctakerFeeRate\x12\x30\n\x14service_provider_fee\x18\x0e \x01(\tR\x12serviceProviderFee\x12!\n\x0cis_perpetual\x18\x0f \x01(\x08R\x0bisPerpetual\x12-\n\x13min_price_tick_size\x18\x10 \x01(\tR\x10minPriceTickSize\x12\x33\n\x16min_quantity_tick_size\x18\x11 \x01(\tR\x13minQuantityTickSize\x12j\n\x15perpetual_market_info\x18\x12 \x01(\x0b\x32\x36.injective_derivative_exchange_rpc.PerpetualMarketInfoR\x13perpetualMarketInfo\x12s\n\x18perpetual_market_funding\x18\x13 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.PerpetualMarketFundingR\x16perpetualMarketFunding\x12w\n\x1a\x65xpiry_futures_market_info\x18\x14 \x01(\x0b\x32:.injective_derivative_exchange_rpc.ExpiryFuturesMarketInfoR\x17\x65xpiryFuturesMarketInfo\x12!\n\x0cmin_notional\x18\x15 \x01(\tR\x0bminNotional\x12.\n\x13reduce_margin_ratio\x18\x16 \x01(\tR\x11reduceMarginRatio\x12^\n\x11open_notional_cap\x18\x17 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.OpenNotionalCapR\x0fopenNotionalCap\"\xa0\x01\n\tTokenMeta\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06symbol\x18\x03 \x01(\tR\x06symbol\x12\x12\n\x04logo\x18\x04 \x01(\tR\x04logo\x12\x1a\n\x08\x64\x65\x63imals\x18\x05 \x01(\x11R\x08\x64\x65\x63imals\x12\x1d\n\nupdated_at\x18\x06 \x01(\x12R\tupdatedAt\"\xdf\x01\n\x13PerpetualMarketInfo\x12\x35\n\x17hourly_funding_rate_cap\x18\x01 \x01(\tR\x14hourlyFundingRateCap\x12\x30\n\x14hourly_interest_rate\x18\x02 \x01(\tR\x12hourlyInterestRate\x12\x34\n\x16next_funding_timestamp\x18\x03 \x01(\x12R\x14nextFundingTimestamp\x12)\n\x10\x66unding_interval\x18\x04 \x01(\x12R\x0f\x66undingInterval\"\xc5\x01\n\x16PerpetualMarketFunding\x12-\n\x12\x63umulative_funding\x18\x01 \x01(\tR\x11\x63umulativeFunding\x12)\n\x10\x63umulative_price\x18\x02 \x01(\tR\x0f\x63umulativePrice\x12%\n\x0elast_timestamp\x18\x03 \x01(\x12R\rlastTimestamp\x12*\n\x11last_funding_rate\x18\x04 \x01(\tR\x0flastFundingRate\"w\n\x17\x45xpiryFuturesMarketInfo\x12\x31\n\x14\x65xpiration_timestamp\x18\x01 \x01(\x12R\x13\x65xpirationTimestamp\x12)\n\x10settlement_price\x18\x02 \x01(\tR\x0fsettlementPrice\"#\n\x0fOpenNotionalCap\x12\x10\n\x03\x63\x61p\x18\x01 \x01(\tR\x03\x63\x61p\",\n\rMarketRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\"a\n\x0eMarketResponse\x12O\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfoR\x06market\"4\n\x13StreamMarketRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"\xac\x01\n\x14StreamMarketResponse\x12O\n\x06market\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeMarketInfoR\x06market\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\x8d\x01\n\x1b\x42inaryOptionsMarketsRequest\x12#\n\rmarket_status\x18\x01 \x01(\tR\x0cmarketStatus\x12\x1f\n\x0bquote_denom\x18\x02 \x01(\tR\nquoteDenom\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\"\xb7\x01\n\x1c\x42inaryOptionsMarketsResponse\x12T\n\x07markets\x18\x01 \x03(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfoR\x07markets\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xa1\x06\n\x17\x42inaryOptionsMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rmarket_status\x18\x02 \x01(\tR\x0cmarketStatus\x12\x16\n\x06ticker\x18\x03 \x01(\tR\x06ticker\x12#\n\roracle_symbol\x18\x04 \x01(\tR\x0coracleSymbol\x12\'\n\x0foracle_provider\x18\x05 \x01(\tR\x0eoracleProvider\x12\x1f\n\x0boracle_type\x18\x06 \x01(\tR\noracleType\x12.\n\x13oracle_scale_factor\x18\x07 \x01(\rR\x11oracleScaleFactor\x12\x31\n\x14\x65xpiration_timestamp\x18\x08 \x01(\x12R\x13\x65xpirationTimestamp\x12\x31\n\x14settlement_timestamp\x18\t \x01(\x12R\x13settlementTimestamp\x12\x1f\n\x0bquote_denom\x18\n \x01(\tR\nquoteDenom\x12V\n\x10quote_token_meta\x18\x0b \x01(\x0b\x32,.injective_derivative_exchange_rpc.TokenMetaR\x0equoteTokenMeta\x12$\n\x0emaker_fee_rate\x18\x0c \x01(\tR\x0cmakerFeeRate\x12$\n\x0etaker_fee_rate\x18\r \x01(\tR\x0ctakerFeeRate\x12\x30\n\x14service_provider_fee\x18\x0e \x01(\tR\x12serviceProviderFee\x12-\n\x13min_price_tick_size\x18\x0f \x01(\tR\x10minPriceTickSize\x12\x33\n\x16min_quantity_tick_size\x18\x10 \x01(\tR\x13minQuantityTickSize\x12)\n\x10settlement_price\x18\x11 \x01(\tR\x0fsettlementPrice\x12!\n\x0cmin_notional\x18\x12 \x01(\tR\x0bminNotional\"\x86\x01\n\x06Paging\x12\x14\n\x05total\x18\x01 \x01(\x12R\x05total\x12\x12\n\x04\x66rom\x18\x02 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x03 \x01(\x11R\x02to\x12.\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12R\x11\x63ountBySubaccount\x12\x12\n\x04next\x18\x05 \x03(\tR\x04next\"9\n\x1a\x42inaryOptionsMarketRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\"q\n\x1b\x42inaryOptionsMarketResponse\x12R\n\x06market\x18\x01 \x01(\x0b\x32:.injective_derivative_exchange_rpc.BinaryOptionsMarketInfoR\x06market\"G\n\x12OrderbookV2Request\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x11R\x05\x64\x65pth\"r\n\x13OrderbookV2Response\x12[\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2R\torderbook\"\xf6\x01\n\x1a\x44\x65rivativeLimitOrderbookV2\x12\x41\n\x04\x62uys\x18\x01 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevelR\x04\x62uys\x12\x43\n\x05sells\x18\x02 \x03(\x0b\x32-.injective_derivative_exchange_rpc.PriceLevelR\x05sells\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\x12\x1c\n\ttimestamp\x18\x04 \x01(\x12R\ttimestamp\x12\x16\n\x06height\x18\x05 \x01(\x12R\x06height\"\\\n\nPriceLevel\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x02 \x01(\tR\x08quantity\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"J\n\x13OrderbooksV2Request\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x11R\x05\x64\x65pth\"{\n\x14OrderbooksV2Response\x12\x63\n\norderbooks\x18\x01 \x03(\x0b\x32\x43.injective_derivative_exchange_rpc.SingleDerivativeLimitOrderbookV2R\norderbooks\"\x9c\x01\n SingleDerivativeLimitOrderbookV2\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12[\n\torderbook\x18\x02 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2R\torderbook\"9\n\x18StreamOrderbookV2Request\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"\xda\x01\n\x19StreamOrderbookV2Response\x12[\n\torderbook\x18\x01 \x01(\x0b\x32=.injective_derivative_exchange_rpc.DerivativeLimitOrderbookV2R\torderbook\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\x12\x1b\n\tmarket_id\x18\x04 \x01(\tR\x08marketId\"=\n\x1cStreamOrderbookUpdateRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"\xf3\x01\n\x1dStreamOrderbookUpdateResponse\x12p\n\x17orderbook_level_updates\x18\x01 \x01(\x0b\x32\x38.injective_derivative_exchange_rpc.OrderbookLevelUpdatesR\x15orderbookLevelUpdates\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\x12\x1b\n\tmarket_id\x18\x04 \x01(\tR\x08marketId\"\x83\x02\n\x15OrderbookLevelUpdates\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1a\n\x08sequence\x18\x02 \x01(\x04R\x08sequence\x12G\n\x04\x62uys\x18\x03 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdateR\x04\x62uys\x12I\n\x05sells\x18\x04 \x03(\x0b\x32\x33.injective_derivative_exchange_rpc.PriceLevelUpdateR\x05sells\x12\x1d\n\nupdated_at\x18\x05 \x01(\x12R\tupdatedAt\"\x7f\n\x10PriceLevelUpdate\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x02 \x01(\tR\x08quantity\x12\x1b\n\tis_active\x18\x03 \x01(\x08R\x08isActive\x12\x1c\n\ttimestamp\x18\x04 \x01(\x12R\ttimestamp\"\xc9\x03\n\rOrdersRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1d\n\norder_side\x18\x02 \x01(\tR\torderSide\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x05 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x06 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x07 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x08 \x03(\tR\tmarketIds\x12%\n\x0eis_conditional\x18\t \x01(\tR\risConditional\x12\x1d\n\norder_type\x18\n \x01(\tR\torderType\x12)\n\x10include_inactive\x18\x0b \x01(\x08R\x0fincludeInactive\x12\x36\n\x17subaccount_total_orders\x18\x0c \x01(\x08R\x15subaccountTotalOrders\x12\x19\n\x08trade_id\x18\r \x01(\tR\x07tradeId\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\"\xa4\x01\n\x0eOrdersResponse\x12O\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrderR\x06orders\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xd7\x05\n\x14\x44\x65rivativeLimitOrder\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12\x1d\n\norder_side\x18\x02 \x01(\tR\torderSide\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12$\n\x0eis_reduce_only\x18\x05 \x01(\x08R\x0cisReduceOnly\x12\x16\n\x06margin\x18\x06 \x01(\tR\x06margin\x12\x14\n\x05price\x18\x07 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x08 \x01(\tR\x08quantity\x12+\n\x11unfilled_quantity\x18\t \x01(\tR\x10unfilledQuantity\x12#\n\rtrigger_price\x18\n \x01(\tR\x0ctriggerPrice\x12#\n\rfee_recipient\x18\x0b \x01(\tR\x0c\x66\x65\x65Recipient\x12\x14\n\x05state\x18\x0c \x01(\tR\x05state\x12\x1d\n\ncreated_at\x18\r \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0e \x01(\x12R\tupdatedAt\x12!\n\x0corder_number\x18\x0f \x01(\x12R\x0borderNumber\x12\x1d\n\norder_type\x18\x10 \x01(\tR\torderType\x12%\n\x0eis_conditional\x18\x11 \x01(\x08R\risConditional\x12\x1d\n\ntrigger_at\x18\x12 \x01(\x04R\ttriggerAt\x12*\n\x11placed_order_hash\x18\x13 \x01(\tR\x0fplacedOrderHash\x12%\n\x0e\x65xecution_type\x18\x14 \x01(\tR\rexecutionType\x12\x17\n\x07tx_hash\x18\x15 \x01(\tR\x06txHash\x12\x10\n\x03\x63id\x18\x16 \x01(\tR\x03\x63id\"\xdc\x02\n\x10PositionsRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x05 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x06 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x07 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x08 \x01(\tR\tdirection\x12<\n\x1asubaccount_total_positions\x18\t \x01(\x08R\x18subaccountTotalPositions\x12\'\n\x0f\x61\x63\x63ount_address\x18\n \x01(\tR\x0e\x61\x63\x63ountAddress\"\xab\x01\n\x11PositionsResponse\x12S\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePositionR\tpositions\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xfb\x04\n\x12\x44\x65rivativePosition\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0b\x65ntry_price\x18\x06 \x01(\tR\nentryPrice\x12\x16\n\x06margin\x18\x07 \x01(\tR\x06margin\x12+\n\x11liquidation_price\x18\x08 \x01(\tR\x10liquidationPrice\x12\x1d\n\nmark_price\x18\t \x01(\tR\tmarkPrice\x12\x43\n\x1e\x61ggregate_reduce_only_quantity\x18\x0b \x01(\tR\x1b\x61ggregateReduceOnlyQuantity\x12\x1d\n\nupdated_at\x18\x0c \x01(\x12R\tupdatedAt\x12\x1d\n\ncreated_at\x18\r \x01(\x12R\tcreatedAt\x12!\n\x0c\x66unding_last\x18\x0e \x01(\tR\x0b\x66undingLast\x12\x1f\n\x0b\x66unding_sum\x18\x0f \x01(\tR\nfundingSum\x12\x38\n\x18\x63umulative_funding_entry\x18\x10 \x01(\tR\x16\x63umulativeFundingEntry\x12K\n\"effective_cumulative_funding_entry\x18\x11 \x01(\tR\x1f\x65\x66\x66\x65\x63tiveCumulativeFundingEntry\"\xde\x02\n\x12PositionsV2Request\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x05 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x06 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x07 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x08 \x01(\tR\tdirection\x12<\n\x1asubaccount_total_positions\x18\t \x01(\x08R\x18subaccountTotalPositions\x12\'\n\x0f\x61\x63\x63ount_address\x18\n \x01(\tR\x0e\x61\x63\x63ountAddress\"\xaf\x01\n\x13PositionsV2Response\x12U\n\tpositions\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativePositionV2R\tpositions\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xc3\x04\n\x14\x44\x65rivativePositionV2\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0b\x65ntry_price\x18\x06 \x01(\tR\nentryPrice\x12\x16\n\x06margin\x18\x07 \x01(\tR\x06margin\x12+\n\x11liquidation_price\x18\x08 \x01(\tR\x10liquidationPrice\x12\x1d\n\nmark_price\x18\t \x01(\tR\tmarkPrice\x12\x1d\n\nupdated_at\x18\x0b \x01(\x12R\tupdatedAt\x12\x14\n\x05\x64\x65nom\x18\x0c \x01(\tR\x05\x64\x65nom\x12!\n\x0c\x66unding_last\x18\r \x01(\tR\x0b\x66undingLast\x12\x1f\n\x0b\x66unding_sum\x18\x0e \x01(\tR\nfundingSum\x12\x38\n\x18\x63umulative_funding_entry\x18\x0f \x01(\tR\x16\x63umulativeFundingEntry\x12K\n\"effective_cumulative_funding_entry\x18\x10 \x01(\tR\x1f\x65\x66\x66\x65\x63tiveCumulativeFundingEntry\x12\x12\n\x04upnl\x18\x11 \x01(\tR\x04upnl\"c\n\x1aLiquidablePositionsRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x02 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\"r\n\x1bLiquidablePositionsResponse\x12S\n\tpositions\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePositionR\tpositions\"\xbe\x01\n\x16\x46undingPaymentsRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x19\n\x08\x65nd_time\x18\x05 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x06 \x03(\tR\tmarketIds\"\xab\x01\n\x17\x46undingPaymentsResponse\x12M\n\x08payments\x18\x01 \x03(\x0b\x32\x31.injective_derivative_exchange_rpc.FundingPaymentR\x08payments\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\x88\x01\n\x0e\x46undingPayment\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x02 \x01(\tR\x0csubaccountId\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x1c\n\ttimestamp\x18\x04 \x01(\x12R\ttimestamp\"w\n\x13\x46undingRatesRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x02 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x12R\x07\x65ndTime\"\xae\x01\n\x14\x46undingRatesResponse\x12S\n\rfunding_rates\x18\x01 \x03(\x0b\x32..injective_derivative_exchange_rpc.FundingRateR\x0c\x66undingRates\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\\\n\x0b\x46undingRate\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x12\n\x04rate\x18\x02 \x01(\tR\x04rate\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xc9\x01\n\x16StreamPositionsRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1d\n\nmarket_ids\x18\x03 \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\x04 \x03(\tR\rsubaccountIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x05 \x01(\tR\x0e\x61\x63\x63ountAddress\"\x8a\x01\n\x17StreamPositionsResponse\x12Q\n\x08position\x18\x01 \x01(\x0b\x32\x35.injective_derivative_exchange_rpc.DerivativePositionR\x08position\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\"\xcb\x01\n\x18StreamPositionsV2Request\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1d\n\nmarket_ids\x18\x03 \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\x04 \x03(\tR\rsubaccountIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x05 \x01(\tR\x0e\x61\x63\x63ountAddress\"\x8e\x01\n\x19StreamPositionsV2Response\x12S\n\x08position\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativePositionV2R\x08position\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp\"\xcf\x03\n\x13StreamOrdersRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x1d\n\norder_side\x18\x02 \x01(\tR\torderSide\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x05 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x06 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x07 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\x08 \x03(\tR\tmarketIds\x12%\n\x0eis_conditional\x18\t \x01(\tR\risConditional\x12\x1d\n\norder_type\x18\n \x01(\tR\torderType\x12)\n\x10include_inactive\x18\x0b \x01(\x08R\x0fincludeInactive\x12\x36\n\x17subaccount_total_orders\x18\x0c \x01(\x08R\x15subaccountTotalOrders\x12\x19\n\x08trade_id\x18\r \x01(\tR\x07tradeId\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\"\xaa\x01\n\x14StreamOrdersResponse\x12M\n\x05order\x18\x01 \x01(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrderR\x05order\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xe4\x03\n\rTradesRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\x9f\x01\n\x0eTradesResponse\x12J\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x06trades\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xfa\x03\n\x0f\x44\x65rivativeTrade\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12#\n\rsubaccount_id\x18\x02 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x30\n\x14trade_execution_type\x18\x04 \x01(\tR\x12tradeExecutionType\x12%\n\x0eis_liquidation\x18\x05 \x01(\x08R\risLiquidation\x12W\n\x0eposition_delta\x18\x06 \x01(\x0b\x32\x30.injective_derivative_exchange_rpc.PositionDeltaR\rpositionDelta\x12\x16\n\x06payout\x18\x07 \x01(\tR\x06payout\x12\x10\n\x03\x66\x65\x65\x18\x08 \x01(\tR\x03\x66\x65\x65\x12\x1f\n\x0b\x65xecuted_at\x18\t \x01(\x12R\nexecutedAt\x12#\n\rfee_recipient\x18\n \x01(\tR\x0c\x66\x65\x65Recipient\x12\x19\n\x08trade_id\x18\x0b \x01(\tR\x07tradeId\x12%\n\x0e\x65xecution_side\x18\x0c \x01(\tR\rexecutionSide\x12\x10\n\x03\x63id\x18\r \x01(\tR\x03\x63id\x12\x10\n\x03pnl\x18\x0e \x01(\tR\x03pnl\"\xbb\x01\n\rPositionDelta\x12\'\n\x0ftrade_direction\x18\x01 \x01(\tR\x0etradeDirection\x12\'\n\x0f\x65xecution_price\x18\x02 \x01(\tR\x0e\x65xecutionPrice\x12-\n\x12\x65xecution_quantity\x18\x03 \x01(\tR\x11\x65xecutionQuantity\x12)\n\x10\x65xecution_margin\x18\x04 \x01(\tR\x0f\x65xecutionMargin\"\xe6\x03\n\x0fTradesV2Request\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\xa1\x01\n\x10TradesV2Response\x12J\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x06trades\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xea\x03\n\x13StreamTradesRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\xa5\x01\n\x14StreamTradesResponse\x12H\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x05trade\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xec\x03\n\x15StreamTradesV2Request\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_side\x18\x02 \x01(\tR\rexecutionSide\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12\x1d\n\nmarket_ids\x18\t \x03(\tR\tmarketIds\x12%\n\x0esubaccount_ids\x18\n \x03(\tR\rsubaccountIds\x12\'\n\x0f\x65xecution_types\x18\x0b \x03(\tR\x0e\x65xecutionTypes\x12\x19\n\x08trade_id\x18\x0c \x01(\tR\x07tradeId\x12\'\n\x0f\x61\x63\x63ount_address\x18\r \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x10\n\x03\x63id\x18\x0e \x01(\tR\x03\x63id\x12#\n\rfee_recipient\x18\x0f \x01(\tR\x0c\x66\x65\x65Recipient\"\xa7\x01\n\x16StreamTradesV2Response\x12H\n\x05trade\x18\x01 \x01(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x05trade\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\x89\x01\n\x1bSubaccountOrdersListRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\"\xb2\x01\n\x1cSubaccountOrdersListResponse\x12O\n\x06orders\x18\x01 \x03(\x0b\x32\x37.injective_derivative_exchange_rpc.DerivativeLimitOrderR\x06orders\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xce\x01\n\x1bSubaccountTradesListRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12%\n\x0e\x65xecution_type\x18\x03 \x01(\tR\rexecutionType\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x06 \x01(\x11R\x05limit\"j\n\x1cSubaccountTradesListResponse\x12J\n\x06trades\x18\x01 \x03(\x0b\x32\x32.injective_derivative_exchange_rpc.DerivativeTradeR\x06trades\"\xfc\x03\n\x14OrdersHistoryRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x1f\n\x0border_types\x18\x05 \x03(\tR\norderTypes\x12\x1c\n\tdirection\x18\x06 \x01(\tR\tdirection\x12\x1d\n\nstart_time\x18\x07 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x08 \x01(\x12R\x07\x65ndTime\x12%\n\x0eis_conditional\x18\t \x01(\tR\risConditional\x12\x1d\n\norder_type\x18\n \x01(\tR\torderType\x12\x14\n\x05state\x18\x0b \x01(\tR\x05state\x12\'\n\x0f\x65xecution_types\x18\x0c \x03(\tR\x0e\x65xecutionTypes\x12\x1d\n\nmarket_ids\x18\r \x03(\tR\tmarketIds\x12\x19\n\x08trade_id\x18\x0e \x01(\tR\x07tradeId\x12.\n\x13\x61\x63tive_markets_only\x18\x0f \x01(\x08R\x11\x61\x63tiveMarketsOnly\x12\x10\n\x03\x63id\x18\x10 \x01(\tR\x03\x63id\"\xad\x01\n\x15OrdersHistoryResponse\x12Q\n\x06orders\x18\x01 \x03(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistoryR\x06orders\x12\x41\n\x06paging\x18\x02 \x01(\x0b\x32).injective_derivative_exchange_rpc.PagingR\x06paging\"\xa9\x05\n\x16\x44\x65rivativeOrderHistory\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1b\n\tis_active\x18\x03 \x01(\x08R\x08isActive\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12%\n\x0e\x65xecution_type\x18\x05 \x01(\tR\rexecutionType\x12\x1d\n\norder_type\x18\x06 \x01(\tR\torderType\x12\x14\n\x05price\x18\x07 \x01(\tR\x05price\x12#\n\rtrigger_price\x18\x08 \x01(\tR\x0ctriggerPrice\x12\x1a\n\x08quantity\x18\t \x01(\tR\x08quantity\x12\'\n\x0f\x66illed_quantity\x18\n \x01(\tR\x0e\x66illedQuantity\x12\x14\n\x05state\x18\x0b \x01(\tR\x05state\x12\x1d\n\ncreated_at\x18\x0c \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\r \x01(\x12R\tupdatedAt\x12$\n\x0eis_reduce_only\x18\x0e \x01(\x08R\x0cisReduceOnly\x12\x1c\n\tdirection\x18\x0f \x01(\tR\tdirection\x12%\n\x0eis_conditional\x18\x10 \x01(\x08R\risConditional\x12\x1d\n\ntrigger_at\x18\x11 \x01(\x04R\ttriggerAt\x12*\n\x11placed_order_hash\x18\x12 \x01(\tR\x0fplacedOrderHash\x12\x16\n\x06margin\x18\x13 \x01(\tR\x06margin\x12\x17\n\x07tx_hash\x18\x14 \x01(\tR\x06txHash\x12\x10\n\x03\x63id\x18\x15 \x01(\tR\x03\x63id\"\xdc\x01\n\x1aStreamOrdersHistoryRequest\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1f\n\x0border_types\x18\x03 \x03(\tR\norderTypes\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x14\n\x05state\x18\x05 \x01(\tR\x05state\x12\'\n\x0f\x65xecution_types\x18\x06 \x03(\tR\x0e\x65xecutionTypes\"\xb3\x01\n\x1bStreamOrdersHistoryResponse\x12O\n\x05order\x18\x01 \x01(\x0b\x32\x39.injective_derivative_exchange_rpc.DerivativeOrderHistoryR\x05order\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"5\n\x13OpenInterestRequest\x12\x1e\n\x0bmarket_i_ds\x18\x01 \x03(\tR\tmarketIDs\"t\n\x14OpenInterestResponse\x12\\\n\x0eopen_interests\x18\x01 \x03(\x0b\x32\x35.injective_derivative_exchange_rpc.MarketOpenInterestR\ropenInterests\"V\n\x12MarketOpenInterest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\ropen_interest\x18\x02 \x01(\tR\x0copenInterest2\xd8\x1c\n\x1eInjectiveDerivativeExchangeRPC\x12p\n\x07Markets\x12\x31.injective_derivative_exchange_rpc.MarketsRequest\x1a\x32.injective_derivative_exchange_rpc.MarketsResponse\x12m\n\x06Market\x12\x30.injective_derivative_exchange_rpc.MarketRequest\x1a\x31.injective_derivative_exchange_rpc.MarketResponse\x12\x81\x01\n\x0cStreamMarket\x12\x36.injective_derivative_exchange_rpc.StreamMarketRequest\x1a\x37.injective_derivative_exchange_rpc.StreamMarketResponse0\x01\x12\x97\x01\n\x14\x42inaryOptionsMarkets\x12>.injective_derivative_exchange_rpc.BinaryOptionsMarketsRequest\x1a?.injective_derivative_exchange_rpc.BinaryOptionsMarketsResponse\x12\x94\x01\n\x13\x42inaryOptionsMarket\x12=.injective_derivative_exchange_rpc.BinaryOptionsMarketRequest\x1a>.injective_derivative_exchange_rpc.BinaryOptionsMarketResponse\x12|\n\x0bOrderbookV2\x12\x35.injective_derivative_exchange_rpc.OrderbookV2Request\x1a\x36.injective_derivative_exchange_rpc.OrderbookV2Response\x12\x7f\n\x0cOrderbooksV2\x12\x36.injective_derivative_exchange_rpc.OrderbooksV2Request\x1a\x37.injective_derivative_exchange_rpc.OrderbooksV2Response\x12\x90\x01\n\x11StreamOrderbookV2\x12;.injective_derivative_exchange_rpc.StreamOrderbookV2Request\x1a<.injective_derivative_exchange_rpc.StreamOrderbookV2Response0\x01\x12\x9c\x01\n\x15StreamOrderbookUpdate\x12?.injective_derivative_exchange_rpc.StreamOrderbookUpdateRequest\x1a@.injective_derivative_exchange_rpc.StreamOrderbookUpdateResponse0\x01\x12m\n\x06Orders\x12\x30.injective_derivative_exchange_rpc.OrdersRequest\x1a\x31.injective_derivative_exchange_rpc.OrdersResponse\x12v\n\tPositions\x12\x33.injective_derivative_exchange_rpc.PositionsRequest\x1a\x34.injective_derivative_exchange_rpc.PositionsResponse\x12|\n\x0bPositionsV2\x12\x35.injective_derivative_exchange_rpc.PositionsV2Request\x1a\x36.injective_derivative_exchange_rpc.PositionsV2Response\x12\x94\x01\n\x13LiquidablePositions\x12=.injective_derivative_exchange_rpc.LiquidablePositionsRequest\x1a>.injective_derivative_exchange_rpc.LiquidablePositionsResponse\x12\x88\x01\n\x0f\x46undingPayments\x12\x39.injective_derivative_exchange_rpc.FundingPaymentsRequest\x1a:.injective_derivative_exchange_rpc.FundingPaymentsResponse\x12\x7f\n\x0c\x46undingRates\x12\x36.injective_derivative_exchange_rpc.FundingRatesRequest\x1a\x37.injective_derivative_exchange_rpc.FundingRatesResponse\x12\x8a\x01\n\x0fStreamPositions\x12\x39.injective_derivative_exchange_rpc.StreamPositionsRequest\x1a:.injective_derivative_exchange_rpc.StreamPositionsResponse0\x01\x12\x90\x01\n\x11StreamPositionsV2\x12;.injective_derivative_exchange_rpc.StreamPositionsV2Request\x1a<.injective_derivative_exchange_rpc.StreamPositionsV2Response0\x01\x12\x81\x01\n\x0cStreamOrders\x12\x36.injective_derivative_exchange_rpc.StreamOrdersRequest\x1a\x37.injective_derivative_exchange_rpc.StreamOrdersResponse0\x01\x12m\n\x06Trades\x12\x30.injective_derivative_exchange_rpc.TradesRequest\x1a\x31.injective_derivative_exchange_rpc.TradesResponse\x12s\n\x08TradesV2\x12\x32.injective_derivative_exchange_rpc.TradesV2Request\x1a\x33.injective_derivative_exchange_rpc.TradesV2Response\x12\x81\x01\n\x0cStreamTrades\x12\x36.injective_derivative_exchange_rpc.StreamTradesRequest\x1a\x37.injective_derivative_exchange_rpc.StreamTradesResponse0\x01\x12\x87\x01\n\x0eStreamTradesV2\x12\x38.injective_derivative_exchange_rpc.StreamTradesV2Request\x1a\x39.injective_derivative_exchange_rpc.StreamTradesV2Response0\x01\x12\x97\x01\n\x14SubaccountOrdersList\x12>.injective_derivative_exchange_rpc.SubaccountOrdersListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountOrdersListResponse\x12\x97\x01\n\x14SubaccountTradesList\x12>.injective_derivative_exchange_rpc.SubaccountTradesListRequest\x1a?.injective_derivative_exchange_rpc.SubaccountTradesListResponse\x12\x82\x01\n\rOrdersHistory\x12\x37.injective_derivative_exchange_rpc.OrdersHistoryRequest\x1a\x38.injective_derivative_exchange_rpc.OrdersHistoryResponse\x12\x96\x01\n\x13StreamOrdersHistory\x12=.injective_derivative_exchange_rpc.StreamOrdersHistoryRequest\x1a>.injective_derivative_exchange_rpc.StreamOrdersHistoryResponse0\x01\x12\x7f\n\x0cOpenInterest\x12\x36.injective_derivative_exchange_rpc.OpenInterestRequest\x1a\x37.injective_derivative_exchange_rpc.OpenInterestResponseB\x8a\x02\n%com.injective_derivative_exchange_rpcB#InjectiveDerivativeExchangeRpcProtoP\x01Z$/injective_derivative_exchange_rpcpb\xa2\x02\x03IXX\xaa\x02\x1eInjectiveDerivativeExchangeRpc\xca\x02\x1eInjectiveDerivativeExchangeRpc\xe2\x02*InjectiveDerivativeExchangeRpc\\GPBMetadata\xea\x02\x1eInjectiveDerivativeExchangeRpcb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -101,79 +101,79 @@ _globals['_POSITIONSV2RESPONSE']._serialized_start=8909 _globals['_POSITIONSV2RESPONSE']._serialized_end=9084 _globals['_DERIVATIVEPOSITIONV2']._serialized_start=9087 - _globals['_DERIVATIVEPOSITIONV2']._serialized_end=9646 - _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_start=9648 - _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_end=9747 - _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_start=9749 - _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_end=9863 - _globals['_FUNDINGPAYMENTSREQUEST']._serialized_start=9866 - _globals['_FUNDINGPAYMENTSREQUEST']._serialized_end=10056 - _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_start=10059 - _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_end=10230 - _globals['_FUNDINGPAYMENT']._serialized_start=10233 - _globals['_FUNDINGPAYMENT']._serialized_end=10369 - _globals['_FUNDINGRATESREQUEST']._serialized_start=10371 - _globals['_FUNDINGRATESREQUEST']._serialized_end=10490 - _globals['_FUNDINGRATESRESPONSE']._serialized_start=10493 - _globals['_FUNDINGRATESRESPONSE']._serialized_end=10667 - _globals['_FUNDINGRATE']._serialized_start=10669 - _globals['_FUNDINGRATE']._serialized_end=10761 - _globals['_STREAMPOSITIONSREQUEST']._serialized_start=10764 - _globals['_STREAMPOSITIONSREQUEST']._serialized_end=10965 - _globals['_STREAMPOSITIONSRESPONSE']._serialized_start=10968 - _globals['_STREAMPOSITIONSRESPONSE']._serialized_end=11106 - _globals['_STREAMPOSITIONSV2REQUEST']._serialized_start=11109 - _globals['_STREAMPOSITIONSV2REQUEST']._serialized_end=11312 - _globals['_STREAMPOSITIONSV2RESPONSE']._serialized_start=11315 - _globals['_STREAMPOSITIONSV2RESPONSE']._serialized_end=11457 - _globals['_STREAMORDERSREQUEST']._serialized_start=11460 - _globals['_STREAMORDERSREQUEST']._serialized_end=11923 - _globals['_STREAMORDERSRESPONSE']._serialized_start=11926 - _globals['_STREAMORDERSRESPONSE']._serialized_end=12096 - _globals['_TRADESREQUEST']._serialized_start=12099 - _globals['_TRADESREQUEST']._serialized_end=12583 - _globals['_TRADESRESPONSE']._serialized_start=12586 - _globals['_TRADESRESPONSE']._serialized_end=12745 - _globals['_DERIVATIVETRADE']._serialized_start=12748 - _globals['_DERIVATIVETRADE']._serialized_end=13254 - _globals['_POSITIONDELTA']._serialized_start=13257 - _globals['_POSITIONDELTA']._serialized_end=13444 - _globals['_TRADESV2REQUEST']._serialized_start=13447 - _globals['_TRADESV2REQUEST']._serialized_end=13933 - _globals['_TRADESV2RESPONSE']._serialized_start=13936 - _globals['_TRADESV2RESPONSE']._serialized_end=14097 - _globals['_STREAMTRADESREQUEST']._serialized_start=14100 - _globals['_STREAMTRADESREQUEST']._serialized_end=14590 - _globals['_STREAMTRADESRESPONSE']._serialized_start=14593 - _globals['_STREAMTRADESRESPONSE']._serialized_end=14758 - _globals['_STREAMTRADESV2REQUEST']._serialized_start=14761 - _globals['_STREAMTRADESV2REQUEST']._serialized_end=15253 - _globals['_STREAMTRADESV2RESPONSE']._serialized_start=15256 - _globals['_STREAMTRADESV2RESPONSE']._serialized_end=15423 - _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_start=15426 - _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_end=15563 - _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_start=15566 - _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_end=15744 - _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_start=15747 - _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_end=15953 - _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_start=15955 - _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_end=16061 - _globals['_ORDERSHISTORYREQUEST']._serialized_start=16064 - _globals['_ORDERSHISTORYREQUEST']._serialized_end=16572 - _globals['_ORDERSHISTORYRESPONSE']._serialized_start=16575 - _globals['_ORDERSHISTORYRESPONSE']._serialized_end=16748 - _globals['_DERIVATIVEORDERHISTORY']._serialized_start=16751 - _globals['_DERIVATIVEORDERHISTORY']._serialized_end=17432 - _globals['_STREAMORDERSHISTORYREQUEST']._serialized_start=17435 - _globals['_STREAMORDERSHISTORYREQUEST']._serialized_end=17655 - _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_start=17658 - _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_end=17837 - _globals['_OPENINTERESTREQUEST']._serialized_start=17839 - _globals['_OPENINTERESTREQUEST']._serialized_end=17892 - _globals['_OPENINTERESTRESPONSE']._serialized_start=17894 - _globals['_OPENINTERESTRESPONSE']._serialized_end=18010 - _globals['_MARKETOPENINTEREST']._serialized_start=18012 - _globals['_MARKETOPENINTEREST']._serialized_end=18098 - _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_start=18101 - _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_end=21773 + _globals['_DERIVATIVEPOSITIONV2']._serialized_end=9666 + _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_start=9668 + _globals['_LIQUIDABLEPOSITIONSREQUEST']._serialized_end=9767 + _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_start=9769 + _globals['_LIQUIDABLEPOSITIONSRESPONSE']._serialized_end=9883 + _globals['_FUNDINGPAYMENTSREQUEST']._serialized_start=9886 + _globals['_FUNDINGPAYMENTSREQUEST']._serialized_end=10076 + _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_start=10079 + _globals['_FUNDINGPAYMENTSRESPONSE']._serialized_end=10250 + _globals['_FUNDINGPAYMENT']._serialized_start=10253 + _globals['_FUNDINGPAYMENT']._serialized_end=10389 + _globals['_FUNDINGRATESREQUEST']._serialized_start=10391 + _globals['_FUNDINGRATESREQUEST']._serialized_end=10510 + _globals['_FUNDINGRATESRESPONSE']._serialized_start=10513 + _globals['_FUNDINGRATESRESPONSE']._serialized_end=10687 + _globals['_FUNDINGRATE']._serialized_start=10689 + _globals['_FUNDINGRATE']._serialized_end=10781 + _globals['_STREAMPOSITIONSREQUEST']._serialized_start=10784 + _globals['_STREAMPOSITIONSREQUEST']._serialized_end=10985 + _globals['_STREAMPOSITIONSRESPONSE']._serialized_start=10988 + _globals['_STREAMPOSITIONSRESPONSE']._serialized_end=11126 + _globals['_STREAMPOSITIONSV2REQUEST']._serialized_start=11129 + _globals['_STREAMPOSITIONSV2REQUEST']._serialized_end=11332 + _globals['_STREAMPOSITIONSV2RESPONSE']._serialized_start=11335 + _globals['_STREAMPOSITIONSV2RESPONSE']._serialized_end=11477 + _globals['_STREAMORDERSREQUEST']._serialized_start=11480 + _globals['_STREAMORDERSREQUEST']._serialized_end=11943 + _globals['_STREAMORDERSRESPONSE']._serialized_start=11946 + _globals['_STREAMORDERSRESPONSE']._serialized_end=12116 + _globals['_TRADESREQUEST']._serialized_start=12119 + _globals['_TRADESREQUEST']._serialized_end=12603 + _globals['_TRADESRESPONSE']._serialized_start=12606 + _globals['_TRADESRESPONSE']._serialized_end=12765 + _globals['_DERIVATIVETRADE']._serialized_start=12768 + _globals['_DERIVATIVETRADE']._serialized_end=13274 + _globals['_POSITIONDELTA']._serialized_start=13277 + _globals['_POSITIONDELTA']._serialized_end=13464 + _globals['_TRADESV2REQUEST']._serialized_start=13467 + _globals['_TRADESV2REQUEST']._serialized_end=13953 + _globals['_TRADESV2RESPONSE']._serialized_start=13956 + _globals['_TRADESV2RESPONSE']._serialized_end=14117 + _globals['_STREAMTRADESREQUEST']._serialized_start=14120 + _globals['_STREAMTRADESREQUEST']._serialized_end=14610 + _globals['_STREAMTRADESRESPONSE']._serialized_start=14613 + _globals['_STREAMTRADESRESPONSE']._serialized_end=14778 + _globals['_STREAMTRADESV2REQUEST']._serialized_start=14781 + _globals['_STREAMTRADESV2REQUEST']._serialized_end=15273 + _globals['_STREAMTRADESV2RESPONSE']._serialized_start=15276 + _globals['_STREAMTRADESV2RESPONSE']._serialized_end=15443 + _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_start=15446 + _globals['_SUBACCOUNTORDERSLISTREQUEST']._serialized_end=15583 + _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_start=15586 + _globals['_SUBACCOUNTORDERSLISTRESPONSE']._serialized_end=15764 + _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_start=15767 + _globals['_SUBACCOUNTTRADESLISTREQUEST']._serialized_end=15973 + _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_start=15975 + _globals['_SUBACCOUNTTRADESLISTRESPONSE']._serialized_end=16081 + _globals['_ORDERSHISTORYREQUEST']._serialized_start=16084 + _globals['_ORDERSHISTORYREQUEST']._serialized_end=16592 + _globals['_ORDERSHISTORYRESPONSE']._serialized_start=16595 + _globals['_ORDERSHISTORYRESPONSE']._serialized_end=16768 + _globals['_DERIVATIVEORDERHISTORY']._serialized_start=16771 + _globals['_DERIVATIVEORDERHISTORY']._serialized_end=17452 + _globals['_STREAMORDERSHISTORYREQUEST']._serialized_start=17455 + _globals['_STREAMORDERSHISTORYREQUEST']._serialized_end=17675 + _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_start=17678 + _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_end=17857 + _globals['_OPENINTERESTREQUEST']._serialized_start=17859 + _globals['_OPENINTERESTREQUEST']._serialized_end=17912 + _globals['_OPENINTERESTRESPONSE']._serialized_start=17914 + _globals['_OPENINTERESTRESPONSE']._serialized_end=18030 + _globals['_MARKETOPENINTEREST']._serialized_start=18032 + _globals['_MARKETOPENINTEREST']._serialized_end=18118 + _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_start=18121 + _globals['_INJECTIVEDERIVATIVEEXCHANGERPC']._serialized_end=21793 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_explorer_rpc_pb2.py b/pyinjective/proto/exchange/injective_explorer_rpc_pb2.py index 066f23a0..0aac7632 100644 --- a/pyinjective/proto/exchange/injective_explorer_rpc_pb2.py +++ b/pyinjective/proto/exchange/injective_explorer_rpc_pb2.py @@ -14,7 +14,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_explorer_rpc.proto\x12\x16injective_explorer_rpc\"\xc4\x02\n\x14GetAccountTxsRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06\x62\x65\x66ore\x18\x02 \x01(\x04R\x06\x62\x65\x66ore\x12\x14\n\x05\x61\x66ter\x18\x03 \x01(\x04R\x05\x61\x66ter\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x12\n\x04type\x18\x06 \x01(\tR\x04type\x12\x16\n\x06module\x18\x07 \x01(\tR\x06module\x12\x1f\n\x0b\x66rom_number\x18\x08 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\t \x01(\x12R\x08toNumber\x12\x1d\n\nstart_time\x18\n \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x0b \x01(\x12R\x07\x65ndTime\x12\x16\n\x06status\x18\x0c \x01(\tR\x06status\"\x89\x01\n\x15GetAccountTxsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"\x86\x01\n\x06Paging\x12\x14\n\x05total\x18\x01 \x01(\x12R\x05total\x12\x12\n\x04\x66rom\x18\x02 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x03 \x01(\x11R\x02to\x12.\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12R\x11\x63ountBySubaccount\x12\x12\n\x04next\x18\x05 \x03(\tR\x04next\"\xab\x05\n\x0cTxDetailData\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x12\n\x04\x63ode\x18\x05 \x01(\rR\x04\x63ode\x12\x12\n\x04\x64\x61ta\x18\x06 \x01(\x0cR\x04\x64\x61ta\x12\x12\n\x04info\x18\x08 \x01(\tR\x04info\x12\x1d\n\ngas_wanted\x18\t \x01(\x12R\tgasWanted\x12\x19\n\x08gas_used\x18\n \x01(\x12R\x07gasUsed\x12\x37\n\x07gas_fee\x18\x0b \x01(\x0b\x32\x1e.injective_explorer_rpc.GasFeeR\x06gasFee\x12\x1c\n\tcodespace\x18\x0c \x01(\tR\tcodespace\x12\x35\n\x06\x65vents\x18\r \x03(\x0b\x32\x1d.injective_explorer_rpc.EventR\x06\x65vents\x12\x17\n\x07tx_type\x18\x0e \x01(\tR\x06txType\x12\x1a\n\x08messages\x18\x0f \x01(\x0cR\x08messages\x12\x41\n\nsignatures\x18\x10 \x03(\x0b\x32!.injective_explorer_rpc.SignatureR\nsignatures\x12\x12\n\x04memo\x18\x11 \x01(\tR\x04memo\x12\x1b\n\ttx_number\x18\x12 \x01(\x04R\x08txNumber\x12\x30\n\x14\x62lock_unix_timestamp\x18\x13 \x01(\x04R\x12\x62lockUnixTimestamp\x12\x1b\n\terror_log\x18\x14 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04logs\x18\x15 \x01(\x0cR\x04logs\x12\x1b\n\tclaim_ids\x18\x16 \x03(\x12R\x08\x63laimIds\"\x91\x01\n\x06GasFee\x12:\n\x06\x61mount\x18\x01 \x03(\x0b\x32\".injective_explorer_rpc.CosmosCoinR\x06\x61mount\x12\x1b\n\tgas_limit\x18\x02 \x01(\x04R\x08gasLimit\x12\x14\n\x05payer\x18\x03 \x01(\tR\x05payer\x12\x18\n\x07granter\x18\x04 \x01(\tR\x07granter\":\n\nCosmosCoin\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\"\xa9\x01\n\x05\x45vent\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12M\n\nattributes\x18\x02 \x03(\x0b\x32-.injective_explorer_rpc.Event.AttributesEntryR\nattributes\x1a=\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"w\n\tSignature\x12\x16\n\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\x12\x1c\n\tsignature\x18\x04 \x01(\tR\tsignature\"\xb1\x01\n\x16GetAccountTxsV2Request\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x1d\n\nstart_time\x18\x03 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x12R\x07\x65ndTime\x12\x19\n\x08per_page\x18\x05 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\"\x8b\x01\n\x17GetAccountTxsV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"\x1c\n\x06\x43ursor\x12\x12\n\x04next\x18\x01 \x03(\tR\x04next\"\x99\x01\n\x15GetContractTxsRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x1f\n\x0b\x66rom_number\x18\x04 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x05 \x01(\x12R\x08toNumber\"\x8a\x01\n\x16GetContractTxsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"\xb8\x01\n\x17GetContractTxsV2Request\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06height\x18\x02 \x01(\x04R\x06height\x12\x12\n\x04\x66rom\x18\x03 \x01(\x12R\x04\x66rom\x12\x0e\n\x02to\x18\x04 \x01(\x12R\x02to\x12\x19\n\x08per_page\x18\x05 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x16\n\x06status\x18\x07 \x01(\tR\x06status\"\x8c\x01\n\x18GetContractTxsV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"z\n\x10GetBlocksRequest\x12\x16\n\x06\x62\x65\x66ore\x18\x01 \x01(\x04R\x06\x62\x65\x66ore\x12\x14\n\x05\x61\x66ter\x18\x02 \x01(\x04R\x05\x61\x66ter\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04\x66rom\x18\x04 \x01(\x04R\x04\x66rom\x12\x0e\n\x02to\x18\x05 \x01(\x04R\x02to\"\x82\x01\n\x11GetBlocksResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x35\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.injective_explorer_rpc.BlockInfoR\x04\x64\x61ta\"\xdf\x02\n\tBlockInfo\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\x12\x18\n\x07moniker\x18\x03 \x01(\tR\x07moniker\x12\x1d\n\nblock_hash\x18\x04 \x01(\tR\tblockHash\x12\x1f\n\x0bparent_hash\x18\x05 \x01(\tR\nparentHash\x12&\n\x0fnum_pre_commits\x18\x06 \x01(\x12R\rnumPreCommits\x12\x17\n\x07num_txs\x18\x07 \x01(\x12R\x06numTxs\x12\x33\n\x03txs\x18\x08 \x03(\x0b\x32!.injective_explorer_rpc.TxDataRPCR\x03txs\x12\x1c\n\ttimestamp\x18\t \x01(\tR\ttimestamp\x12\x30\n\x14\x62lock_unix_timestamp\x18\n \x01(\x04R\x12\x62lockUnixTimestamp\"\xa0\x02\n\tTxDataRPC\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x1c\n\tcodespace\x18\x05 \x01(\tR\tcodespace\x12\x1a\n\x08messages\x18\x06 \x01(\tR\x08messages\x12\x1b\n\ttx_number\x18\x07 \x01(\x04R\x08txNumber\x12\x1b\n\terror_log\x18\x08 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04\x63ode\x18\t \x01(\rR\x04\x63ode\x12\x1b\n\tclaim_ids\x18\n \x03(\x12R\x08\x63laimIds\"E\n\x12GetBlocksV2Request\x12\x19\n\x08per_page\x18\x01 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x84\x01\n\x13GetBlocksV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x35\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.injective_explorer_rpc.BlockInfoR\x04\x64\x61ta\"!\n\x0fGetBlockRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"u\n\x10GetBlockResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12;\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\'.injective_explorer_rpc.BlockDetailInfoR\x04\x64\x61ta\"\xff\x02\n\x0f\x42lockDetailInfo\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\x12\x18\n\x07moniker\x18\x03 \x01(\tR\x07moniker\x12\x1d\n\nblock_hash\x18\x04 \x01(\tR\tblockHash\x12\x1f\n\x0bparent_hash\x18\x05 \x01(\tR\nparentHash\x12&\n\x0fnum_pre_commits\x18\x06 \x01(\x12R\rnumPreCommits\x12\x17\n\x07num_txs\x18\x07 \x01(\x12R\x06numTxs\x12\x1b\n\ttotal_txs\x18\x08 \x01(\x12R\x08totalTxs\x12\x30\n\x03txs\x18\t \x03(\x0b\x32\x1e.injective_explorer_rpc.TxDataR\x03txs\x12\x1c\n\ttimestamp\x18\n \x01(\tR\ttimestamp\x12\x30\n\x14\x62lock_unix_timestamp\x18\x0b \x01(\x04R\x12\x62lockUnixTimestamp\"\xf9\x03\n\x06TxData\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x1c\n\tcodespace\x18\x05 \x01(\tR\tcodespace\x12\x1a\n\x08messages\x18\x06 \x01(\x0cR\x08messages\x12\x1b\n\ttx_number\x18\x07 \x01(\x04R\x08txNumber\x12\x1b\n\terror_log\x18\x08 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04\x63ode\x18\t \x01(\rR\x04\x63ode\x12 \n\x0ctx_msg_types\x18\n \x01(\x0cR\ntxMsgTypes\x12\x12\n\x04logs\x18\x0b \x01(\x0cR\x04logs\x12\x1b\n\tclaim_ids\x18\x0c \x03(\x12R\x08\x63laimIds\x12\x41\n\nsignatures\x18\r \x03(\x0b\x32!.injective_explorer_rpc.SignatureR\nsignatures\x12\x30\n\x14\x62lock_unix_timestamp\x18\x0e \x01(\x04R\x12\x62lockUnixTimestamp\x12/\n\x14\x65thereum_tx_hash_hex\x18\x0f \x01(\tR\x11\x65thereumTxHashHex\"\x16\n\x14GetValidatorsRequest\"t\n\x15GetValidatorsResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12\x35\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32!.injective_explorer_rpc.ValidatorR\x04\x64\x61ta\"\xb5\x07\n\tValidator\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07moniker\x18\x02 \x01(\tR\x07moniker\x12)\n\x10operator_address\x18\x03 \x01(\tR\x0foperatorAddress\x12+\n\x11\x63onsensus_address\x18\x04 \x01(\tR\x10\x63onsensusAddress\x12\x16\n\x06jailed\x18\x05 \x01(\x08R\x06jailed\x12\x16\n\x06status\x18\x06 \x01(\x11R\x06status\x12\x16\n\x06tokens\x18\x07 \x01(\tR\x06tokens\x12)\n\x10\x64\x65legator_shares\x18\x08 \x01(\tR\x0f\x64\x65legatorShares\x12N\n\x0b\x64\x65scription\x18\t \x01(\x0b\x32,.injective_explorer_rpc.ValidatorDescriptionR\x0b\x64\x65scription\x12)\n\x10unbonding_height\x18\n \x01(\x12R\x0funbondingHeight\x12%\n\x0eunbonding_time\x18\x0b \x01(\tR\runbondingTime\x12\'\n\x0f\x63ommission_rate\x18\x0c \x01(\tR\x0e\x63ommissionRate\x12.\n\x13\x63ommission_max_rate\x18\r \x01(\tR\x11\x63ommissionMaxRate\x12;\n\x1a\x63ommission_max_change_rate\x18\x0e \x01(\tR\x17\x63ommissionMaxChangeRate\x12\x34\n\x16\x63ommission_update_time\x18\x0f \x01(\tR\x14\x63ommissionUpdateTime\x12\x1a\n\x08proposed\x18\x10 \x01(\x04R\x08proposed\x12\x16\n\x06signed\x18\x11 \x01(\x04R\x06signed\x12\x16\n\x06missed\x18\x12 \x01(\x04R\x06missed\x12\x1c\n\ttimestamp\x18\x13 \x01(\tR\ttimestamp\x12\x41\n\x07uptimes\x18\x14 \x03(\x0b\x32\'.injective_explorer_rpc.ValidatorUptimeR\x07uptimes\x12N\n\x0fslashing_events\x18\x15 \x03(\x0b\x32%.injective_explorer_rpc.SlashingEventR\x0eslashingEvents\x12+\n\x11uptime_percentage\x18\x16 \x01(\x01R\x10uptimePercentage\x12\x1b\n\timage_url\x18\x17 \x01(\tR\x08imageUrl\"\xc8\x01\n\x14ValidatorDescription\x12\x18\n\x07moniker\x18\x01 \x01(\tR\x07moniker\x12\x1a\n\x08identity\x18\x02 \x01(\tR\x08identity\x12\x18\n\x07website\x18\x03 \x01(\tR\x07website\x12)\n\x10security_contact\x18\x04 \x01(\tR\x0fsecurityContact\x12\x18\n\x07\x64\x65tails\x18\x05 \x01(\tR\x07\x64\x65tails\x12\x1b\n\timage_url\x18\x06 \x01(\tR\x08imageUrl\"L\n\x0fValidatorUptime\x12!\n\x0c\x62lock_number\x18\x01 \x01(\x04R\x0b\x62lockNumber\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\"\xe0\x01\n\rSlashingEvent\x12!\n\x0c\x62lock_number\x18\x01 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x02 \x01(\tR\x0e\x62lockTimestamp\x12\x18\n\x07\x61\x64\x64ress\x18\x03 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05power\x18\x04 \x01(\x04R\x05power\x12\x16\n\x06reason\x18\x05 \x01(\tR\x06reason\x12\x16\n\x06jailed\x18\x06 \x01(\tR\x06jailed\x12#\n\rmissed_blocks\x18\x07 \x01(\x04R\x0cmissedBlocks\"/\n\x13GetValidatorRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"s\n\x14GetValidatorResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12\x35\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32!.injective_explorer_rpc.ValidatorR\x04\x64\x61ta\"5\n\x19GetValidatorUptimeRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"\x7f\n\x1aGetValidatorUptimeResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12;\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\'.injective_explorer_rpc.ValidatorUptimeR\x04\x64\x61ta\"\xa3\x02\n\rGetTxsRequest\x12\x16\n\x06\x62\x65\x66ore\x18\x01 \x01(\x04R\x06\x62\x65\x66ore\x12\x14\n\x05\x61\x66ter\x18\x02 \x01(\x04R\x05\x61\x66ter\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\x12\x12\n\x04type\x18\x05 \x01(\tR\x04type\x12\x16\n\x06module\x18\x06 \x01(\tR\x06module\x12\x1f\n\x0b\x66rom_number\x18\x07 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x08 \x01(\x12R\x08toNumber\x12\x1d\n\nstart_time\x18\t \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\n \x01(\x12R\x07\x65ndTime\x12\x16\n\x06status\x18\x0b \x01(\tR\x06status\"|\n\x0eGetTxsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x32\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.injective_explorer_rpc.TxDataR\x04\x64\x61ta\"\xcb\x01\n\x0fGetTxsV2Request\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x1d\n\nstart_time\x18\x02 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x03 \x01(\x12R\x07\x65ndTime\x12\x19\n\x08per_page\x18\x04 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\x12\x16\n\x06status\x18\x06 \x01(\tR\x06status\x12!\n\x0c\x62lock_number\x18\x07 \x01(\x04R\x0b\x62lockNumber\"~\n\x10GetTxsV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x32\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.injective_explorer_rpc.TxDataR\x04\x64\x61ta\"J\n\x14GetTxByTxHashRequest\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x1e\n\x0bis_evm_hash\x18\x02 \x01(\x08R\tisEvmHash\"w\n\x15GetTxByTxHashResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12\x38\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"y\n\x19GetPeggyDepositTxsRequest\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\"Z\n\x1aGetPeggyDepositTxsResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_explorer_rpc.PeggyDepositTxR\x05\x66ield\"\xf9\x02\n\x0ePeggyDepositTx\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x1f\n\x0b\x65vent_nonce\x18\x03 \x01(\x04R\neventNonce\x12!\n\x0c\x65vent_height\x18\x04 \x01(\x04R\x0b\x65ventHeight\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12\x14\n\x05\x64\x65nom\x18\x06 \x01(\tR\x05\x64\x65nom\x12\x31\n\x14orchestrator_address\x18\x07 \x01(\tR\x13orchestratorAddress\x12\x14\n\x05state\x18\x08 \x01(\tR\x05state\x12\x1d\n\nclaim_type\x18\t \x01(\x11R\tclaimType\x12\x1b\n\ttx_hashes\x18\n \x03(\tR\x08txHashes\x12\x1d\n\ncreated_at\x18\x0b \x01(\tR\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0c \x01(\tR\tupdatedAt\"|\n\x1cGetPeggyWithdrawalTxsRequest\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\"`\n\x1dGetPeggyWithdrawalTxsResponse\x12?\n\x05\x66ield\x18\x01 \x03(\x0b\x32).injective_explorer_rpc.PeggyWithdrawalTxR\x05\x66ield\"\x87\x04\n\x11PeggyWithdrawalTx\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x14\n\x05\x64\x65nom\x18\x04 \x01(\tR\x05\x64\x65nom\x12\x1d\n\nbridge_fee\x18\x05 \x01(\tR\tbridgeFee\x12$\n\x0eoutgoing_tx_id\x18\x06 \x01(\x04R\x0coutgoingTxId\x12#\n\rbatch_timeout\x18\x07 \x01(\x04R\x0c\x62\x61tchTimeout\x12\x1f\n\x0b\x62\x61tch_nonce\x18\x08 \x01(\x04R\nbatchNonce\x12\x31\n\x14orchestrator_address\x18\t \x01(\tR\x13orchestratorAddress\x12\x1f\n\x0b\x65vent_nonce\x18\n \x01(\x04R\neventNonce\x12!\n\x0c\x65vent_height\x18\x0b \x01(\x04R\x0b\x65ventHeight\x12\x14\n\x05state\x18\x0c \x01(\tR\x05state\x12\x1d\n\nclaim_type\x18\r \x01(\x11R\tclaimType\x12\x1b\n\ttx_hashes\x18\x0e \x03(\tR\x08txHashes\x12\x1d\n\ncreated_at\x18\x0f \x01(\tR\tcreatedAt\x12\x1d\n\nupdated_at\x18\x10 \x01(\tR\tupdatedAt\"\xf4\x01\n\x18GetIBCTransferTxsRequest\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x1f\n\x0bsrc_channel\x18\x03 \x01(\tR\nsrcChannel\x12\x19\n\x08src_port\x18\x04 \x01(\tR\x07srcPort\x12!\n\x0c\x64\x65st_channel\x18\x05 \x01(\tR\x0b\x64\x65stChannel\x12\x1b\n\tdest_port\x18\x06 \x01(\tR\x08\x64\x65stPort\x12\x14\n\x05limit\x18\x07 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x08 \x01(\x04R\x04skip\"X\n\x19GetIBCTransferTxsResponse\x12;\n\x05\x66ield\x18\x01 \x03(\x0b\x32%.injective_explorer_rpc.IBCTransferTxR\x05\x66ield\"\x9e\x04\n\rIBCTransferTx\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x1f\n\x0bsource_port\x18\x03 \x01(\tR\nsourcePort\x12%\n\x0esource_channel\x18\x04 \x01(\tR\rsourceChannel\x12)\n\x10\x64\x65stination_port\x18\x05 \x01(\tR\x0f\x64\x65stinationPort\x12/\n\x13\x64\x65stination_channel\x18\x06 \x01(\tR\x12\x64\x65stinationChannel\x12\x16\n\x06\x61mount\x18\x07 \x01(\tR\x06\x61mount\x12\x14\n\x05\x64\x65nom\x18\x08 \x01(\tR\x05\x64\x65nom\x12%\n\x0etimeout_height\x18\t \x01(\tR\rtimeoutHeight\x12+\n\x11timeout_timestamp\x18\n \x01(\x04R\x10timeoutTimestamp\x12\'\n\x0fpacket_sequence\x18\x0b \x01(\x04R\x0epacketSequence\x12\x19\n\x08\x64\x61ta_hex\x18\x0c \x01(\x0cR\x07\x64\x61taHex\x12\x14\n\x05state\x18\r \x01(\tR\x05state\x12\x1b\n\ttx_hashes\x18\x0e \x03(\tR\x08txHashes\x12\x1d\n\ncreated_at\x18\x0f \x01(\tR\tcreatedAt\x12\x1d\n\nupdated_at\x18\x10 \x01(\tR\tupdatedAt\"i\n\x13GetWasmCodesRequest\x12\x14\n\x05limit\x18\x01 \x01(\x11R\x05limit\x12\x1f\n\x0b\x66rom_number\x18\x02 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x03 \x01(\x12R\x08toNumber\"\x84\x01\n\x14GetWasmCodesResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x34\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32 .injective_explorer_rpc.WasmCodeR\x04\x64\x61ta\"\xe2\x03\n\x08WasmCode\x12\x17\n\x07\x63ode_id\x18\x01 \x01(\x04R\x06\x63odeId\x12\x17\n\x07tx_hash\x18\x02 \x01(\tR\x06txHash\x12<\n\x08\x63hecksum\x18\x03 \x01(\x0b\x32 .injective_explorer_rpc.ChecksumR\x08\x63hecksum\x12\x1d\n\ncreated_at\x18\x04 \x01(\x04R\tcreatedAt\x12#\n\rcontract_type\x18\x05 \x01(\tR\x0c\x63ontractType\x12\x18\n\x07version\x18\x06 \x01(\tR\x07version\x12J\n\npermission\x18\x07 \x01(\x0b\x32*.injective_explorer_rpc.ContractPermissionR\npermission\x12\x1f\n\x0b\x63ode_schema\x18\x08 \x01(\tR\ncodeSchema\x12\x1b\n\tcode_view\x18\t \x01(\tR\x08\x63odeView\x12\"\n\x0cinstantiates\x18\n \x01(\x04R\x0cinstantiates\x12\x18\n\x07\x63reator\x18\x0b \x01(\tR\x07\x63reator\x12\x1f\n\x0b\x63ode_number\x18\x0c \x01(\x12R\ncodeNumber\x12\x1f\n\x0bproposal_id\x18\r \x01(\x12R\nproposalId\"<\n\x08\x43hecksum\x12\x1c\n\talgorithm\x18\x01 \x01(\tR\talgorithm\x12\x12\n\x04hash\x18\x02 \x01(\tR\x04hash\"O\n\x12\x43ontractPermission\x12\x1f\n\x0b\x61\x63\x63\x65ss_type\x18\x01 \x01(\x11R\naccessType\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"1\n\x16GetWasmCodeByIDRequest\x12\x17\n\x07\x63ode_id\x18\x01 \x01(\x12R\x06\x63odeId\"\xf1\x03\n\x17GetWasmCodeByIDResponse\x12\x17\n\x07\x63ode_id\x18\x01 \x01(\x04R\x06\x63odeId\x12\x17\n\x07tx_hash\x18\x02 \x01(\tR\x06txHash\x12<\n\x08\x63hecksum\x18\x03 \x01(\x0b\x32 .injective_explorer_rpc.ChecksumR\x08\x63hecksum\x12\x1d\n\ncreated_at\x18\x04 \x01(\x04R\tcreatedAt\x12#\n\rcontract_type\x18\x05 \x01(\tR\x0c\x63ontractType\x12\x18\n\x07version\x18\x06 \x01(\tR\x07version\x12J\n\npermission\x18\x07 \x01(\x0b\x32*.injective_explorer_rpc.ContractPermissionR\npermission\x12\x1f\n\x0b\x63ode_schema\x18\x08 \x01(\tR\ncodeSchema\x12\x1b\n\tcode_view\x18\t \x01(\tR\x08\x63odeView\x12\"\n\x0cinstantiates\x18\n \x01(\x04R\x0cinstantiates\x12\x18\n\x07\x63reator\x18\x0b \x01(\tR\x07\x63reator\x12\x1f\n\x0b\x63ode_number\x18\x0c \x01(\x12R\ncodeNumber\x12\x1f\n\x0bproposal_id\x18\r \x01(\x12R\nproposalId\"\xff\x01\n\x17GetWasmContractsRequest\x12\x14\n\x05limit\x18\x01 \x01(\x11R\x05limit\x12\x17\n\x07\x63ode_id\x18\x02 \x01(\x12R\x06\x63odeId\x12\x1f\n\x0b\x66rom_number\x18\x03 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x04 \x01(\x12R\x08toNumber\x12\x1f\n\x0b\x61ssets_only\x18\x05 \x01(\x08R\nassetsOnly\x12\x12\n\x04skip\x18\x06 \x01(\x12R\x04skip\x12\x14\n\x05label\x18\x07 \x01(\tR\x05label\x12\x14\n\x05token\x18\x08 \x01(\tR\x05token\x12\x16\n\x06lookup\x18\t \x01(\tR\x06lookup\"\x8c\x01\n\x18GetWasmContractsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.WasmContractR\x04\x64\x61ta\"\xe9\x04\n\x0cWasmContract\x12\x14\n\x05label\x18\x01 \x01(\tR\x05label\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x17\n\x07tx_hash\x18\x03 \x01(\tR\x06txHash\x12\x18\n\x07\x63reator\x18\x04 \x01(\tR\x07\x63reator\x12\x1a\n\x08\x65xecutes\x18\x05 \x01(\x04R\x08\x65xecutes\x12\'\n\x0finstantiated_at\x18\x06 \x01(\x04R\x0einstantiatedAt\x12!\n\x0cinit_message\x18\x07 \x01(\tR\x0binitMessage\x12(\n\x10last_executed_at\x18\x08 \x01(\x04R\x0elastExecutedAt\x12:\n\x05\x66unds\x18\t \x03(\x0b\x32$.injective_explorer_rpc.ContractFundR\x05\x66unds\x12\x17\n\x07\x63ode_id\x18\n \x01(\x04R\x06\x63odeId\x12\x14\n\x05\x61\x64min\x18\x0b \x01(\tR\x05\x61\x64min\x12\x36\n\x17\x63urrent_migrate_message\x18\x0c \x01(\tR\x15\x63urrentMigrateMessage\x12\'\n\x0f\x63ontract_number\x18\r \x01(\x12R\x0e\x63ontractNumber\x12\x18\n\x07version\x18\x0e \x01(\tR\x07version\x12\x12\n\x04type\x18\x0f \x01(\tR\x04type\x12I\n\rcw20_metadata\x18\x10 \x01(\x0b\x32$.injective_explorer_rpc.Cw20MetadataR\x0c\x63w20Metadata\x12\x1f\n\x0bproposal_id\x18\x11 \x01(\x12R\nproposalId\"<\n\x0c\x43ontractFund\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\"\xa6\x01\n\x0c\x43w20Metadata\x12\x44\n\ntoken_info\x18\x01 \x01(\x0b\x32%.injective_explorer_rpc.Cw20TokenInfoR\ttokenInfo\x12P\n\x0emarketing_info\x18\x02 \x01(\x0b\x32).injective_explorer_rpc.Cw20MarketingInfoR\rmarketingInfo\"z\n\rCw20TokenInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06symbol\x18\x02 \x01(\tR\x06symbol\x12\x1a\n\x08\x64\x65\x63imals\x18\x03 \x01(\x12R\x08\x64\x65\x63imals\x12!\n\x0ctotal_supply\x18\x04 \x01(\tR\x0btotalSupply\"\x81\x01\n\x11\x43w20MarketingInfo\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04logo\x18\x03 \x01(\tR\x04logo\x12\x1c\n\tmarketing\x18\x04 \x01(\x0cR\tmarketing\"L\n\x1fGetWasmContractByAddressRequest\x12)\n\x10\x63ontract_address\x18\x01 \x01(\tR\x0f\x63ontractAddress\"\xfd\x04\n GetWasmContractByAddressResponse\x12\x14\n\x05label\x18\x01 \x01(\tR\x05label\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x17\n\x07tx_hash\x18\x03 \x01(\tR\x06txHash\x12\x18\n\x07\x63reator\x18\x04 \x01(\tR\x07\x63reator\x12\x1a\n\x08\x65xecutes\x18\x05 \x01(\x04R\x08\x65xecutes\x12\'\n\x0finstantiated_at\x18\x06 \x01(\x04R\x0einstantiatedAt\x12!\n\x0cinit_message\x18\x07 \x01(\tR\x0binitMessage\x12(\n\x10last_executed_at\x18\x08 \x01(\x04R\x0elastExecutedAt\x12:\n\x05\x66unds\x18\t \x03(\x0b\x32$.injective_explorer_rpc.ContractFundR\x05\x66unds\x12\x17\n\x07\x63ode_id\x18\n \x01(\x04R\x06\x63odeId\x12\x14\n\x05\x61\x64min\x18\x0b \x01(\tR\x05\x61\x64min\x12\x36\n\x17\x63urrent_migrate_message\x18\x0c \x01(\tR\x15\x63urrentMigrateMessage\x12\'\n\x0f\x63ontract_number\x18\r \x01(\x12R\x0e\x63ontractNumber\x12\x18\n\x07version\x18\x0e \x01(\tR\x07version\x12\x12\n\x04type\x18\x0f \x01(\tR\x04type\x12I\n\rcw20_metadata\x18\x10 \x01(\x0b\x32$.injective_explorer_rpc.Cw20MetadataR\x0c\x63w20Metadata\x12\x1f\n\x0bproposal_id\x18\x11 \x01(\x12R\nproposalId\"G\n\x15GetCw20BalanceRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\"W\n\x16GetCw20BalanceResponse\x12=\n\x05\x66ield\x18\x01 \x03(\x0b\x32\'.injective_explorer_rpc.WasmCw20BalanceR\x05\x66ield\"\xda\x01\n\x0fWasmCw20Balance\x12)\n\x10\x63ontract_address\x18\x01 \x01(\tR\x0f\x63ontractAddress\x12\x18\n\x07\x61\x63\x63ount\x18\x02 \x01(\tR\x07\x61\x63\x63ount\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\tR\x07\x62\x61lance\x12\x1d\n\nupdated_at\x18\x04 \x01(\x12R\tupdatedAt\x12I\n\rcw20_metadata\x18\x05 \x01(\x0b\x32$.injective_explorer_rpc.Cw20MetadataR\x0c\x63w20Metadata\"1\n\x0fRelayersRequest\x12\x1e\n\x0bmarket_i_ds\x18\x01 \x03(\tR\tmarketIDs\"P\n\x10RelayersResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_explorer_rpc.RelayerMarketsR\x05\x66ield\"j\n\x0eRelayerMarkets\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12;\n\x08relayers\x18\x02 \x03(\x0b\x32\x1f.injective_explorer_rpc.RelayerR\x08relayers\"/\n\x07Relayer\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03\x63ta\x18\x02 \x01(\tR\x03\x63ta\"\xbd\x02\n\x17GetBankTransfersRequest\x12\x18\n\x07senders\x18\x01 \x03(\tR\x07senders\x12\x1e\n\nrecipients\x18\x02 \x03(\tR\nrecipients\x12\x39\n\x19is_community_pool_related\x18\x03 \x01(\x08R\x16isCommunityPoolRelated\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x1d\n\nstart_time\x18\x06 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x07 \x01(\x12R\x07\x65ndTime\x12\x18\n\x07\x61\x64\x64ress\x18\x08 \x03(\tR\x07\x61\x64\x64ress\x12\x19\n\x08per_page\x18\t \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\n \x01(\tR\x05token\"\x8c\x01\n\x18GetBankTransfersResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.BankTransferR\x04\x64\x61ta\"\xc8\x01\n\x0c\x42\x61nkTransfer\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1c\n\trecipient\x18\x02 \x01(\tR\trecipient\x12\x36\n\x07\x61mounts\x18\x03 \x03(\x0b\x32\x1c.injective_explorer_rpc.CoinR\x07\x61mounts\x12!\n\x0c\x62lock_number\x18\x04 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x05 \x01(\tR\x0e\x62lockTimestamp\"Q\n\x04\x43oin\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\x12\x1b\n\tusd_value\x18\x03 \x01(\tR\x08usdValue\"\x12\n\x10StreamTxsRequest\"\xa8\x02\n\x11StreamTxsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x1c\n\tcodespace\x18\x05 \x01(\tR\tcodespace\x12\x1a\n\x08messages\x18\x06 \x01(\tR\x08messages\x12\x1b\n\ttx_number\x18\x07 \x01(\x04R\x08txNumber\x12\x1b\n\terror_log\x18\x08 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04\x63ode\x18\t \x01(\rR\x04\x63ode\x12\x1b\n\tclaim_ids\x18\n \x03(\x12R\x08\x63laimIds\"\x15\n\x13StreamBlocksRequest\"\xea\x02\n\x14StreamBlocksResponse\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\x12\x18\n\x07moniker\x18\x03 \x01(\tR\x07moniker\x12\x1d\n\nblock_hash\x18\x04 \x01(\tR\tblockHash\x12\x1f\n\x0bparent_hash\x18\x05 \x01(\tR\nparentHash\x12&\n\x0fnum_pre_commits\x18\x06 \x01(\x12R\rnumPreCommits\x12\x17\n\x07num_txs\x18\x07 \x01(\x12R\x06numTxs\x12\x33\n\x03txs\x18\x08 \x03(\x0b\x32!.injective_explorer_rpc.TxDataRPCR\x03txs\x12\x1c\n\ttimestamp\x18\t \x01(\tR\ttimestamp\x12\x30\n\x14\x62lock_unix_timestamp\x18\n \x01(\x04R\x12\x62lockUnixTimestamp\"\x11\n\x0fGetStatsRequest\"\x9c\x02\n\x10GetStatsResponse\x12\x1c\n\taddresses\x18\x01 \x01(\x04R\taddresses\x12\x16\n\x06\x61ssets\x18\x02 \x01(\x04R\x06\x61ssets\x12\x1d\n\ninj_supply\x18\x03 \x01(\x04R\tinjSupply\x12\x1c\n\ntxs_ps24_h\x18\x04 \x01(\x04R\x08txsPs24H\x12\x1e\n\x0btxs_ps100_b\x18\x05 \x01(\x04R\ttxsPs100B\x12\x1b\n\ttxs_total\x18\x06 \x01(\x04R\x08txsTotal\x12\x17\n\x07txs24_h\x18\x07 \x01(\x04R\x06txs24H\x12\x17\n\x07txs30_d\x18\x08 \x01(\x04R\x06txs30D\x12&\n\x0f\x62lock_count24_h\x18\t \x01(\x04R\rblockCount24H2\xe0\x16\n\x14InjectiveExplorerRPC\x12l\n\rGetAccountTxs\x12,.injective_explorer_rpc.GetAccountTxsRequest\x1a-.injective_explorer_rpc.GetAccountTxsResponse\x12r\n\x0fGetAccountTxsV2\x12..injective_explorer_rpc.GetAccountTxsV2Request\x1a/.injective_explorer_rpc.GetAccountTxsV2Response\x12o\n\x0eGetContractTxs\x12-.injective_explorer_rpc.GetContractTxsRequest\x1a..injective_explorer_rpc.GetContractTxsResponse\x12u\n\x10GetContractTxsV2\x12/.injective_explorer_rpc.GetContractTxsV2Request\x1a\x30.injective_explorer_rpc.GetContractTxsV2Response\x12`\n\tGetBlocks\x12(.injective_explorer_rpc.GetBlocksRequest\x1a).injective_explorer_rpc.GetBlocksResponse\x12\x66\n\x0bGetBlocksV2\x12*.injective_explorer_rpc.GetBlocksV2Request\x1a+.injective_explorer_rpc.GetBlocksV2Response\x12]\n\x08GetBlock\x12\'.injective_explorer_rpc.GetBlockRequest\x1a(.injective_explorer_rpc.GetBlockResponse\x12l\n\rGetValidators\x12,.injective_explorer_rpc.GetValidatorsRequest\x1a-.injective_explorer_rpc.GetValidatorsResponse\x12i\n\x0cGetValidator\x12+.injective_explorer_rpc.GetValidatorRequest\x1a,.injective_explorer_rpc.GetValidatorResponse\x12{\n\x12GetValidatorUptime\x12\x31.injective_explorer_rpc.GetValidatorUptimeRequest\x1a\x32.injective_explorer_rpc.GetValidatorUptimeResponse\x12W\n\x06GetTxs\x12%.injective_explorer_rpc.GetTxsRequest\x1a&.injective_explorer_rpc.GetTxsResponse\x12]\n\x08GetTxsV2\x12\'.injective_explorer_rpc.GetTxsV2Request\x1a(.injective_explorer_rpc.GetTxsV2Response\x12l\n\rGetTxByTxHash\x12,.injective_explorer_rpc.GetTxByTxHashRequest\x1a-.injective_explorer_rpc.GetTxByTxHashResponse\x12{\n\x12GetPeggyDepositTxs\x12\x31.injective_explorer_rpc.GetPeggyDepositTxsRequest\x1a\x32.injective_explorer_rpc.GetPeggyDepositTxsResponse\x12\x84\x01\n\x15GetPeggyWithdrawalTxs\x12\x34.injective_explorer_rpc.GetPeggyWithdrawalTxsRequest\x1a\x35.injective_explorer_rpc.GetPeggyWithdrawalTxsResponse\x12x\n\x11GetIBCTransferTxs\x12\x30.injective_explorer_rpc.GetIBCTransferTxsRequest\x1a\x31.injective_explorer_rpc.GetIBCTransferTxsResponse\x12i\n\x0cGetWasmCodes\x12+.injective_explorer_rpc.GetWasmCodesRequest\x1a,.injective_explorer_rpc.GetWasmCodesResponse\x12r\n\x0fGetWasmCodeByID\x12..injective_explorer_rpc.GetWasmCodeByIDRequest\x1a/.injective_explorer_rpc.GetWasmCodeByIDResponse\x12u\n\x10GetWasmContracts\x12/.injective_explorer_rpc.GetWasmContractsRequest\x1a\x30.injective_explorer_rpc.GetWasmContractsResponse\x12\x8d\x01\n\x18GetWasmContractByAddress\x12\x37.injective_explorer_rpc.GetWasmContractByAddressRequest\x1a\x38.injective_explorer_rpc.GetWasmContractByAddressResponse\x12o\n\x0eGetCw20Balance\x12-.injective_explorer_rpc.GetCw20BalanceRequest\x1a..injective_explorer_rpc.GetCw20BalanceResponse\x12]\n\x08Relayers\x12\'.injective_explorer_rpc.RelayersRequest\x1a(.injective_explorer_rpc.RelayersResponse\x12u\n\x10GetBankTransfers\x12/.injective_explorer_rpc.GetBankTransfersRequest\x1a\x30.injective_explorer_rpc.GetBankTransfersResponse\x12\x62\n\tStreamTxs\x12(.injective_explorer_rpc.StreamTxsRequest\x1a).injective_explorer_rpc.StreamTxsResponse0\x01\x12k\n\x0cStreamBlocks\x12+.injective_explorer_rpc.StreamBlocksRequest\x1a,.injective_explorer_rpc.StreamBlocksResponse0\x01\x12]\n\x08GetStats\x12\'.injective_explorer_rpc.GetStatsRequest\x1a(.injective_explorer_rpc.GetStatsResponseB\xc2\x01\n\x1a\x63om.injective_explorer_rpcB\x19InjectiveExplorerRpcProtoP\x01Z\x19/injective_explorer_rpcpb\xa2\x02\x03IXX\xaa\x02\x14InjectiveExplorerRpc\xca\x02\x14InjectiveExplorerRpc\xe2\x02 InjectiveExplorerRpc\\GPBMetadata\xea\x02\x14InjectiveExplorerRpcb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%exchange/injective_explorer_rpc.proto\x12\x16injective_explorer_rpc\"\xc4\x02\n\x14GetAccountTxsRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06\x62\x65\x66ore\x18\x02 \x01(\x04R\x06\x62\x65\x66ore\x12\x14\n\x05\x61\x66ter\x18\x03 \x01(\x04R\x05\x61\x66ter\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x12\n\x04type\x18\x06 \x01(\tR\x04type\x12\x16\n\x06module\x18\x07 \x01(\tR\x06module\x12\x1f\n\x0b\x66rom_number\x18\x08 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\t \x01(\x12R\x08toNumber\x12\x1d\n\nstart_time\x18\n \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x0b \x01(\x12R\x07\x65ndTime\x12\x16\n\x06status\x18\x0c \x01(\tR\x06status\"\x89\x01\n\x15GetAccountTxsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"\x86\x01\n\x06Paging\x12\x14\n\x05total\x18\x01 \x01(\x12R\x05total\x12\x12\n\x04\x66rom\x18\x02 \x01(\x11R\x04\x66rom\x12\x0e\n\x02to\x18\x03 \x01(\x11R\x02to\x12.\n\x13\x63ount_by_subaccount\x18\x04 \x01(\x12R\x11\x63ountBySubaccount\x12\x12\n\x04next\x18\x05 \x03(\tR\x04next\"\xab\x05\n\x0cTxDetailData\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x12\n\x04\x63ode\x18\x05 \x01(\rR\x04\x63ode\x12\x12\n\x04\x64\x61ta\x18\x06 \x01(\x0cR\x04\x64\x61ta\x12\x12\n\x04info\x18\x08 \x01(\tR\x04info\x12\x1d\n\ngas_wanted\x18\t \x01(\x12R\tgasWanted\x12\x19\n\x08gas_used\x18\n \x01(\x12R\x07gasUsed\x12\x37\n\x07gas_fee\x18\x0b \x01(\x0b\x32\x1e.injective_explorer_rpc.GasFeeR\x06gasFee\x12\x1c\n\tcodespace\x18\x0c \x01(\tR\tcodespace\x12\x35\n\x06\x65vents\x18\r \x03(\x0b\x32\x1d.injective_explorer_rpc.EventR\x06\x65vents\x12\x17\n\x07tx_type\x18\x0e \x01(\tR\x06txType\x12\x1a\n\x08messages\x18\x0f \x01(\x0cR\x08messages\x12\x41\n\nsignatures\x18\x10 \x03(\x0b\x32!.injective_explorer_rpc.SignatureR\nsignatures\x12\x12\n\x04memo\x18\x11 \x01(\tR\x04memo\x12\x1b\n\ttx_number\x18\x12 \x01(\x04R\x08txNumber\x12\x30\n\x14\x62lock_unix_timestamp\x18\x13 \x01(\x04R\x12\x62lockUnixTimestamp\x12\x1b\n\terror_log\x18\x14 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04logs\x18\x15 \x01(\x0cR\x04logs\x12\x1b\n\tclaim_ids\x18\x16 \x03(\x12R\x08\x63laimIds\"\x91\x01\n\x06GasFee\x12:\n\x06\x61mount\x18\x01 \x03(\x0b\x32\".injective_explorer_rpc.CosmosCoinR\x06\x61mount\x12\x1b\n\tgas_limit\x18\x02 \x01(\x04R\x08gasLimit\x12\x14\n\x05payer\x18\x03 \x01(\tR\x05payer\x12\x18\n\x07granter\x18\x04 \x01(\tR\x07granter\":\n\nCosmosCoin\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\"\xa9\x01\n\x05\x45vent\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12M\n\nattributes\x18\x02 \x03(\x0b\x32-.injective_explorer_rpc.Event.AttributesEntryR\nattributes\x1a=\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"w\n\tSignature\x12\x16\n\x06pubkey\x18\x01 \x01(\tR\x06pubkey\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x1a\n\x08sequence\x18\x03 \x01(\x04R\x08sequence\x12\x1c\n\tsignature\x18\x04 \x01(\tR\tsignature\"\xb1\x01\n\x16GetAccountTxsV2Request\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x1d\n\nstart_time\x18\x03 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x04 \x01(\x12R\x07\x65ndTime\x12\x19\n\x08per_page\x18\x05 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\"\x8b\x01\n\x17GetAccountTxsV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"\x1c\n\x06\x43ursor\x12\x12\n\x04next\x18\x01 \x03(\tR\x04next\"\x99\x01\n\x15GetContractTxsRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x03 \x01(\x04R\x04skip\x12\x1f\n\x0b\x66rom_number\x18\x04 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x05 \x01(\x12R\x08toNumber\"\x8a\x01\n\x16GetContractTxsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"\xb8\x01\n\x17GetContractTxsV2Request\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x16\n\x06height\x18\x02 \x01(\x04R\x06height\x12\x12\n\x04\x66rom\x18\x03 \x01(\x12R\x04\x66rom\x12\x0e\n\x02to\x18\x04 \x01(\x12R\x02to\x12\x19\n\x08per_page\x18\x05 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x16\n\x06status\x18\x07 \x01(\tR\x06status\"\x8c\x01\n\x18GetContractTxsV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"z\n\x10GetBlocksRequest\x12\x16\n\x06\x62\x65\x66ore\x18\x01 \x01(\x04R\x06\x62\x65\x66ore\x12\x14\n\x05\x61\x66ter\x18\x02 \x01(\x04R\x05\x61\x66ter\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04\x66rom\x18\x04 \x01(\x04R\x04\x66rom\x12\x0e\n\x02to\x18\x05 \x01(\x04R\x02to\"\x82\x01\n\x11GetBlocksResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x35\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.injective_explorer_rpc.BlockInfoR\x04\x64\x61ta\"\xdf\x02\n\tBlockInfo\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\x12\x18\n\x07moniker\x18\x03 \x01(\tR\x07moniker\x12\x1d\n\nblock_hash\x18\x04 \x01(\tR\tblockHash\x12\x1f\n\x0bparent_hash\x18\x05 \x01(\tR\nparentHash\x12&\n\x0fnum_pre_commits\x18\x06 \x01(\x12R\rnumPreCommits\x12\x17\n\x07num_txs\x18\x07 \x01(\x12R\x06numTxs\x12\x33\n\x03txs\x18\x08 \x03(\x0b\x32!.injective_explorer_rpc.TxDataRPCR\x03txs\x12\x1c\n\ttimestamp\x18\t \x01(\tR\ttimestamp\x12\x30\n\x14\x62lock_unix_timestamp\x18\n \x01(\x04R\x12\x62lockUnixTimestamp\"\xa0\x02\n\tTxDataRPC\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x1c\n\tcodespace\x18\x05 \x01(\tR\tcodespace\x12\x1a\n\x08messages\x18\x06 \x01(\tR\x08messages\x12\x1b\n\ttx_number\x18\x07 \x01(\x04R\x08txNumber\x12\x1b\n\terror_log\x18\x08 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04\x63ode\x18\t \x01(\rR\x04\x63ode\x12\x1b\n\tclaim_ids\x18\n \x03(\x12R\x08\x63laimIds\"E\n\x12GetBlocksV2Request\x12\x19\n\x08per_page\x18\x01 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x84\x01\n\x13GetBlocksV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x35\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.injective_explorer_rpc.BlockInfoR\x04\x64\x61ta\"!\n\x0fGetBlockRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"u\n\x10GetBlockResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12;\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32\'.injective_explorer_rpc.BlockDetailInfoR\x04\x64\x61ta\"\xff\x02\n\x0f\x42lockDetailInfo\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\x12\x18\n\x07moniker\x18\x03 \x01(\tR\x07moniker\x12\x1d\n\nblock_hash\x18\x04 \x01(\tR\tblockHash\x12\x1f\n\x0bparent_hash\x18\x05 \x01(\tR\nparentHash\x12&\n\x0fnum_pre_commits\x18\x06 \x01(\x12R\rnumPreCommits\x12\x17\n\x07num_txs\x18\x07 \x01(\x12R\x06numTxs\x12\x1b\n\ttotal_txs\x18\x08 \x01(\x12R\x08totalTxs\x12\x30\n\x03txs\x18\t \x03(\x0b\x32\x1e.injective_explorer_rpc.TxDataR\x03txs\x12\x1c\n\ttimestamp\x18\n \x01(\tR\ttimestamp\x12\x30\n\x14\x62lock_unix_timestamp\x18\x0b \x01(\x04R\x12\x62lockUnixTimestamp\"\x8d\x04\n\x06TxData\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x1c\n\tcodespace\x18\x05 \x01(\tR\tcodespace\x12\x1a\n\x08messages\x18\x06 \x01(\x0cR\x08messages\x12\x1b\n\ttx_number\x18\x07 \x01(\x04R\x08txNumber\x12\x1b\n\terror_log\x18\x08 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04\x63ode\x18\t \x01(\rR\x04\x63ode\x12 \n\x0ctx_msg_types\x18\n \x01(\x0cR\ntxMsgTypes\x12\x12\n\x04logs\x18\x0b \x01(\x0cR\x04logs\x12\x1b\n\tclaim_ids\x18\x0c \x03(\x12R\x08\x63laimIds\x12\x41\n\nsignatures\x18\r \x03(\x0b\x32!.injective_explorer_rpc.SignatureR\nsignatures\x12\x30\n\x14\x62lock_unix_timestamp\x18\x0e \x01(\x04R\x12\x62lockUnixTimestamp\x12/\n\x14\x65thereum_tx_hash_hex\x18\x0f \x01(\tR\x11\x65thereumTxHashHex\x12\x12\n\x04memo\x18\x10 \x01(\tR\x04memo\"\x16\n\x14GetValidatorsRequest\"t\n\x15GetValidatorsResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12\x35\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32!.injective_explorer_rpc.ValidatorR\x04\x64\x61ta\"\xb5\x07\n\tValidator\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n\x07moniker\x18\x02 \x01(\tR\x07moniker\x12)\n\x10operator_address\x18\x03 \x01(\tR\x0foperatorAddress\x12+\n\x11\x63onsensus_address\x18\x04 \x01(\tR\x10\x63onsensusAddress\x12\x16\n\x06jailed\x18\x05 \x01(\x08R\x06jailed\x12\x16\n\x06status\x18\x06 \x01(\x11R\x06status\x12\x16\n\x06tokens\x18\x07 \x01(\tR\x06tokens\x12)\n\x10\x64\x65legator_shares\x18\x08 \x01(\tR\x0f\x64\x65legatorShares\x12N\n\x0b\x64\x65scription\x18\t \x01(\x0b\x32,.injective_explorer_rpc.ValidatorDescriptionR\x0b\x64\x65scription\x12)\n\x10unbonding_height\x18\n \x01(\x12R\x0funbondingHeight\x12%\n\x0eunbonding_time\x18\x0b \x01(\tR\runbondingTime\x12\'\n\x0f\x63ommission_rate\x18\x0c \x01(\tR\x0e\x63ommissionRate\x12.\n\x13\x63ommission_max_rate\x18\r \x01(\tR\x11\x63ommissionMaxRate\x12;\n\x1a\x63ommission_max_change_rate\x18\x0e \x01(\tR\x17\x63ommissionMaxChangeRate\x12\x34\n\x16\x63ommission_update_time\x18\x0f \x01(\tR\x14\x63ommissionUpdateTime\x12\x1a\n\x08proposed\x18\x10 \x01(\x04R\x08proposed\x12\x16\n\x06signed\x18\x11 \x01(\x04R\x06signed\x12\x16\n\x06missed\x18\x12 \x01(\x04R\x06missed\x12\x1c\n\ttimestamp\x18\x13 \x01(\tR\ttimestamp\x12\x41\n\x07uptimes\x18\x14 \x03(\x0b\x32\'.injective_explorer_rpc.ValidatorUptimeR\x07uptimes\x12N\n\x0fslashing_events\x18\x15 \x03(\x0b\x32%.injective_explorer_rpc.SlashingEventR\x0eslashingEvents\x12+\n\x11uptime_percentage\x18\x16 \x01(\x01R\x10uptimePercentage\x12\x1b\n\timage_url\x18\x17 \x01(\tR\x08imageUrl\"\xc8\x01\n\x14ValidatorDescription\x12\x18\n\x07moniker\x18\x01 \x01(\tR\x07moniker\x12\x1a\n\x08identity\x18\x02 \x01(\tR\x08identity\x12\x18\n\x07website\x18\x03 \x01(\tR\x07website\x12)\n\x10security_contact\x18\x04 \x01(\tR\x0fsecurityContact\x12\x18\n\x07\x64\x65tails\x18\x05 \x01(\tR\x07\x64\x65tails\x12\x1b\n\timage_url\x18\x06 \x01(\tR\x08imageUrl\"L\n\x0fValidatorUptime\x12!\n\x0c\x62lock_number\x18\x01 \x01(\x04R\x0b\x62lockNumber\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\"\xe0\x01\n\rSlashingEvent\x12!\n\x0c\x62lock_number\x18\x01 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x02 \x01(\tR\x0e\x62lockTimestamp\x12\x18\n\x07\x61\x64\x64ress\x18\x03 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05power\x18\x04 \x01(\x04R\x05power\x12\x16\n\x06reason\x18\x05 \x01(\tR\x06reason\x12\x16\n\x06jailed\x18\x06 \x01(\tR\x06jailed\x12#\n\rmissed_blocks\x18\x07 \x01(\x04R\x0cmissedBlocks\"/\n\x13GetValidatorRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"s\n\x14GetValidatorResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12\x35\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32!.injective_explorer_rpc.ValidatorR\x04\x64\x61ta\"5\n\x19GetValidatorUptimeRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\"\x7f\n\x1aGetValidatorUptimeResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12;\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\'.injective_explorer_rpc.ValidatorUptimeR\x04\x64\x61ta\"\xa3\x02\n\rGetTxsRequest\x12\x16\n\x06\x62\x65\x66ore\x18\x01 \x01(\x04R\x06\x62\x65\x66ore\x12\x14\n\x05\x61\x66ter\x18\x02 \x01(\x04R\x05\x61\x66ter\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\x12\x12\n\x04type\x18\x05 \x01(\tR\x04type\x12\x16\n\x06module\x18\x06 \x01(\tR\x06module\x12\x1f\n\x0b\x66rom_number\x18\x07 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x08 \x01(\x12R\x08toNumber\x12\x1d\n\nstart_time\x18\t \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\n \x01(\x12R\x07\x65ndTime\x12\x16\n\x06status\x18\x0b \x01(\tR\x06status\"|\n\x0eGetTxsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x32\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.injective_explorer_rpc.TxDataR\x04\x64\x61ta\"\xcb\x01\n\x0fGetTxsV2Request\x12\x12\n\x04type\x18\x01 \x01(\tR\x04type\x12\x1d\n\nstart_time\x18\x02 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x03 \x01(\x12R\x07\x65ndTime\x12\x19\n\x08per_page\x18\x04 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\x12\x16\n\x06status\x18\x06 \x01(\tR\x06status\x12!\n\x0c\x62lock_number\x18\x07 \x01(\x04R\x0b\x62lockNumber\"~\n\x10GetTxsV2Response\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.CursorR\x06paging\x12\x32\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32\x1e.injective_explorer_rpc.TxDataR\x04\x64\x61ta\"J\n\x14GetTxByTxHashRequest\x12\x12\n\x04hash\x18\x01 \x01(\tR\x04hash\x12\x1e\n\x0bis_evm_hash\x18\x02 \x01(\x08R\tisEvmHash\"w\n\x15GetTxByTxHashResponse\x12\x0c\n\x01s\x18\x01 \x01(\tR\x01s\x12\x16\n\x06\x65rrmsg\x18\x02 \x01(\tR\x06\x65rrmsg\x12\x38\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32$.injective_explorer_rpc.TxDetailDataR\x04\x64\x61ta\"y\n\x19GetPeggyDepositTxsRequest\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\"Z\n\x1aGetPeggyDepositTxsResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_explorer_rpc.PeggyDepositTxR\x05\x66ield\"\xf9\x02\n\x0ePeggyDepositTx\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x1f\n\x0b\x65vent_nonce\x18\x03 \x01(\x04R\neventNonce\x12!\n\x0c\x65vent_height\x18\x04 \x01(\x04R\x0b\x65ventHeight\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\x12\x14\n\x05\x64\x65nom\x18\x06 \x01(\tR\x05\x64\x65nom\x12\x31\n\x14orchestrator_address\x18\x07 \x01(\tR\x13orchestratorAddress\x12\x14\n\x05state\x18\x08 \x01(\tR\x05state\x12\x1d\n\nclaim_type\x18\t \x01(\x11R\tclaimType\x12\x1b\n\ttx_hashes\x18\n \x03(\tR\x08txHashes\x12\x1d\n\ncreated_at\x18\x0b \x01(\tR\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0c \x01(\tR\tupdatedAt\"|\n\x1cGetPeggyWithdrawalTxsRequest\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x14\n\x05limit\x18\x03 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x04 \x01(\x04R\x04skip\"`\n\x1dGetPeggyWithdrawalTxsResponse\x12?\n\x05\x66ield\x18\x01 \x03(\x0b\x32).injective_explorer_rpc.PeggyWithdrawalTxR\x05\x66ield\"\x87\x04\n\x11PeggyWithdrawalTx\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mount\x12\x14\n\x05\x64\x65nom\x18\x04 \x01(\tR\x05\x64\x65nom\x12\x1d\n\nbridge_fee\x18\x05 \x01(\tR\tbridgeFee\x12$\n\x0eoutgoing_tx_id\x18\x06 \x01(\x04R\x0coutgoingTxId\x12#\n\rbatch_timeout\x18\x07 \x01(\x04R\x0c\x62\x61tchTimeout\x12\x1f\n\x0b\x62\x61tch_nonce\x18\x08 \x01(\x04R\nbatchNonce\x12\x31\n\x14orchestrator_address\x18\t \x01(\tR\x13orchestratorAddress\x12\x1f\n\x0b\x65vent_nonce\x18\n \x01(\x04R\neventNonce\x12!\n\x0c\x65vent_height\x18\x0b \x01(\x04R\x0b\x65ventHeight\x12\x14\n\x05state\x18\x0c \x01(\tR\x05state\x12\x1d\n\nclaim_type\x18\r \x01(\x11R\tclaimType\x12\x1b\n\ttx_hashes\x18\x0e \x03(\tR\x08txHashes\x12\x1d\n\ncreated_at\x18\x0f \x01(\tR\tcreatedAt\x12\x1d\n\nupdated_at\x18\x10 \x01(\tR\tupdatedAt\"\xf4\x01\n\x18GetIBCTransferTxsRequest\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x1f\n\x0bsrc_channel\x18\x03 \x01(\tR\nsrcChannel\x12\x19\n\x08src_port\x18\x04 \x01(\tR\x07srcPort\x12!\n\x0c\x64\x65st_channel\x18\x05 \x01(\tR\x0b\x64\x65stChannel\x12\x1b\n\tdest_port\x18\x06 \x01(\tR\x08\x64\x65stPort\x12\x14\n\x05limit\x18\x07 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x08 \x01(\x04R\x04skip\"X\n\x19GetIBCTransferTxsResponse\x12;\n\x05\x66ield\x18\x01 \x03(\x0b\x32%.injective_explorer_rpc.IBCTransferTxR\x05\x66ield\"\x9e\x04\n\rIBCTransferTx\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08receiver\x18\x02 \x01(\tR\x08receiver\x12\x1f\n\x0bsource_port\x18\x03 \x01(\tR\nsourcePort\x12%\n\x0esource_channel\x18\x04 \x01(\tR\rsourceChannel\x12)\n\x10\x64\x65stination_port\x18\x05 \x01(\tR\x0f\x64\x65stinationPort\x12/\n\x13\x64\x65stination_channel\x18\x06 \x01(\tR\x12\x64\x65stinationChannel\x12\x16\n\x06\x61mount\x18\x07 \x01(\tR\x06\x61mount\x12\x14\n\x05\x64\x65nom\x18\x08 \x01(\tR\x05\x64\x65nom\x12%\n\x0etimeout_height\x18\t \x01(\tR\rtimeoutHeight\x12+\n\x11timeout_timestamp\x18\n \x01(\x04R\x10timeoutTimestamp\x12\'\n\x0fpacket_sequence\x18\x0b \x01(\x04R\x0epacketSequence\x12\x19\n\x08\x64\x61ta_hex\x18\x0c \x01(\x0cR\x07\x64\x61taHex\x12\x14\n\x05state\x18\r \x01(\tR\x05state\x12\x1b\n\ttx_hashes\x18\x0e \x03(\tR\x08txHashes\x12\x1d\n\ncreated_at\x18\x0f \x01(\tR\tcreatedAt\x12\x1d\n\nupdated_at\x18\x10 \x01(\tR\tupdatedAt\"i\n\x13GetWasmCodesRequest\x12\x14\n\x05limit\x18\x01 \x01(\x11R\x05limit\x12\x1f\n\x0b\x66rom_number\x18\x02 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x03 \x01(\x12R\x08toNumber\"\x84\x01\n\x14GetWasmCodesResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x34\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32 .injective_explorer_rpc.WasmCodeR\x04\x64\x61ta\"\xe2\x03\n\x08WasmCode\x12\x17\n\x07\x63ode_id\x18\x01 \x01(\x04R\x06\x63odeId\x12\x17\n\x07tx_hash\x18\x02 \x01(\tR\x06txHash\x12<\n\x08\x63hecksum\x18\x03 \x01(\x0b\x32 .injective_explorer_rpc.ChecksumR\x08\x63hecksum\x12\x1d\n\ncreated_at\x18\x04 \x01(\x04R\tcreatedAt\x12#\n\rcontract_type\x18\x05 \x01(\tR\x0c\x63ontractType\x12\x18\n\x07version\x18\x06 \x01(\tR\x07version\x12J\n\npermission\x18\x07 \x01(\x0b\x32*.injective_explorer_rpc.ContractPermissionR\npermission\x12\x1f\n\x0b\x63ode_schema\x18\x08 \x01(\tR\ncodeSchema\x12\x1b\n\tcode_view\x18\t \x01(\tR\x08\x63odeView\x12\"\n\x0cinstantiates\x18\n \x01(\x04R\x0cinstantiates\x12\x18\n\x07\x63reator\x18\x0b \x01(\tR\x07\x63reator\x12\x1f\n\x0b\x63ode_number\x18\x0c \x01(\x12R\ncodeNumber\x12\x1f\n\x0bproposal_id\x18\r \x01(\x12R\nproposalId\"<\n\x08\x43hecksum\x12\x1c\n\talgorithm\x18\x01 \x01(\tR\talgorithm\x12\x12\n\x04hash\x18\x02 \x01(\tR\x04hash\"O\n\x12\x43ontractPermission\x12\x1f\n\x0b\x61\x63\x63\x65ss_type\x18\x01 \x01(\x11R\naccessType\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"1\n\x16GetWasmCodeByIDRequest\x12\x17\n\x07\x63ode_id\x18\x01 \x01(\x12R\x06\x63odeId\"\xf1\x03\n\x17GetWasmCodeByIDResponse\x12\x17\n\x07\x63ode_id\x18\x01 \x01(\x04R\x06\x63odeId\x12\x17\n\x07tx_hash\x18\x02 \x01(\tR\x06txHash\x12<\n\x08\x63hecksum\x18\x03 \x01(\x0b\x32 .injective_explorer_rpc.ChecksumR\x08\x63hecksum\x12\x1d\n\ncreated_at\x18\x04 \x01(\x04R\tcreatedAt\x12#\n\rcontract_type\x18\x05 \x01(\tR\x0c\x63ontractType\x12\x18\n\x07version\x18\x06 \x01(\tR\x07version\x12J\n\npermission\x18\x07 \x01(\x0b\x32*.injective_explorer_rpc.ContractPermissionR\npermission\x12\x1f\n\x0b\x63ode_schema\x18\x08 \x01(\tR\ncodeSchema\x12\x1b\n\tcode_view\x18\t \x01(\tR\x08\x63odeView\x12\"\n\x0cinstantiates\x18\n \x01(\x04R\x0cinstantiates\x12\x18\n\x07\x63reator\x18\x0b \x01(\tR\x07\x63reator\x12\x1f\n\x0b\x63ode_number\x18\x0c \x01(\x12R\ncodeNumber\x12\x1f\n\x0bproposal_id\x18\r \x01(\x12R\nproposalId\"\xff\x01\n\x17GetWasmContractsRequest\x12\x14\n\x05limit\x18\x01 \x01(\x11R\x05limit\x12\x17\n\x07\x63ode_id\x18\x02 \x01(\x12R\x06\x63odeId\x12\x1f\n\x0b\x66rom_number\x18\x03 \x01(\x12R\nfromNumber\x12\x1b\n\tto_number\x18\x04 \x01(\x12R\x08toNumber\x12\x1f\n\x0b\x61ssets_only\x18\x05 \x01(\x08R\nassetsOnly\x12\x12\n\x04skip\x18\x06 \x01(\x12R\x04skip\x12\x14\n\x05label\x18\x07 \x01(\tR\x05label\x12\x14\n\x05token\x18\x08 \x01(\tR\x05token\x12\x16\n\x06lookup\x18\t \x01(\tR\x06lookup\"\x8c\x01\n\x18GetWasmContractsResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.WasmContractR\x04\x64\x61ta\"\xe9\x04\n\x0cWasmContract\x12\x14\n\x05label\x18\x01 \x01(\tR\x05label\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x17\n\x07tx_hash\x18\x03 \x01(\tR\x06txHash\x12\x18\n\x07\x63reator\x18\x04 \x01(\tR\x07\x63reator\x12\x1a\n\x08\x65xecutes\x18\x05 \x01(\x04R\x08\x65xecutes\x12\'\n\x0finstantiated_at\x18\x06 \x01(\x04R\x0einstantiatedAt\x12!\n\x0cinit_message\x18\x07 \x01(\tR\x0binitMessage\x12(\n\x10last_executed_at\x18\x08 \x01(\x04R\x0elastExecutedAt\x12:\n\x05\x66unds\x18\t \x03(\x0b\x32$.injective_explorer_rpc.ContractFundR\x05\x66unds\x12\x17\n\x07\x63ode_id\x18\n \x01(\x04R\x06\x63odeId\x12\x14\n\x05\x61\x64min\x18\x0b \x01(\tR\x05\x61\x64min\x12\x36\n\x17\x63urrent_migrate_message\x18\x0c \x01(\tR\x15\x63urrentMigrateMessage\x12\'\n\x0f\x63ontract_number\x18\r \x01(\x12R\x0e\x63ontractNumber\x12\x18\n\x07version\x18\x0e \x01(\tR\x07version\x12\x12\n\x04type\x18\x0f \x01(\tR\x04type\x12I\n\rcw20_metadata\x18\x10 \x01(\x0b\x32$.injective_explorer_rpc.Cw20MetadataR\x0c\x63w20Metadata\x12\x1f\n\x0bproposal_id\x18\x11 \x01(\x12R\nproposalId\"<\n\x0c\x43ontractFund\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\"\xa6\x01\n\x0c\x43w20Metadata\x12\x44\n\ntoken_info\x18\x01 \x01(\x0b\x32%.injective_explorer_rpc.Cw20TokenInfoR\ttokenInfo\x12P\n\x0emarketing_info\x18\x02 \x01(\x0b\x32).injective_explorer_rpc.Cw20MarketingInfoR\rmarketingInfo\"z\n\rCw20TokenInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n\x06symbol\x18\x02 \x01(\tR\x06symbol\x12\x1a\n\x08\x64\x65\x63imals\x18\x03 \x01(\x12R\x08\x64\x65\x63imals\x12!\n\x0ctotal_supply\x18\x04 \x01(\tR\x0btotalSupply\"\x81\x01\n\x11\x43w20MarketingInfo\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x12\n\x04logo\x18\x03 \x01(\tR\x04logo\x12\x1c\n\tmarketing\x18\x04 \x01(\x0cR\tmarketing\"L\n\x1fGetWasmContractByAddressRequest\x12)\n\x10\x63ontract_address\x18\x01 \x01(\tR\x0f\x63ontractAddress\"\xfd\x04\n GetWasmContractByAddressResponse\x12\x14\n\x05label\x18\x01 \x01(\tR\x05label\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\x12\x17\n\x07tx_hash\x18\x03 \x01(\tR\x06txHash\x12\x18\n\x07\x63reator\x18\x04 \x01(\tR\x07\x63reator\x12\x1a\n\x08\x65xecutes\x18\x05 \x01(\x04R\x08\x65xecutes\x12\'\n\x0finstantiated_at\x18\x06 \x01(\x04R\x0einstantiatedAt\x12!\n\x0cinit_message\x18\x07 \x01(\tR\x0binitMessage\x12(\n\x10last_executed_at\x18\x08 \x01(\x04R\x0elastExecutedAt\x12:\n\x05\x66unds\x18\t \x03(\x0b\x32$.injective_explorer_rpc.ContractFundR\x05\x66unds\x12\x17\n\x07\x63ode_id\x18\n \x01(\x04R\x06\x63odeId\x12\x14\n\x05\x61\x64min\x18\x0b \x01(\tR\x05\x61\x64min\x12\x36\n\x17\x63urrent_migrate_message\x18\x0c \x01(\tR\x15\x63urrentMigrateMessage\x12\'\n\x0f\x63ontract_number\x18\r \x01(\x12R\x0e\x63ontractNumber\x12\x18\n\x07version\x18\x0e \x01(\tR\x07version\x12\x12\n\x04type\x18\x0f \x01(\tR\x04type\x12I\n\rcw20_metadata\x18\x10 \x01(\x0b\x32$.injective_explorer_rpc.Cw20MetadataR\x0c\x63w20Metadata\x12\x1f\n\x0bproposal_id\x18\x11 \x01(\x12R\nproposalId\"G\n\x15GetCw20BalanceRequest\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05limit\x18\x02 \x01(\x11R\x05limit\"W\n\x16GetCw20BalanceResponse\x12=\n\x05\x66ield\x18\x01 \x03(\x0b\x32\'.injective_explorer_rpc.WasmCw20BalanceR\x05\x66ield\"\xda\x01\n\x0fWasmCw20Balance\x12)\n\x10\x63ontract_address\x18\x01 \x01(\tR\x0f\x63ontractAddress\x12\x18\n\x07\x61\x63\x63ount\x18\x02 \x01(\tR\x07\x61\x63\x63ount\x12\x18\n\x07\x62\x61lance\x18\x03 \x01(\tR\x07\x62\x61lance\x12\x1d\n\nupdated_at\x18\x04 \x01(\x12R\tupdatedAt\x12I\n\rcw20_metadata\x18\x05 \x01(\x0b\x32$.injective_explorer_rpc.Cw20MetadataR\x0c\x63w20Metadata\"1\n\x0fRelayersRequest\x12\x1e\n\x0bmarket_i_ds\x18\x01 \x03(\tR\tmarketIDs\"P\n\x10RelayersResponse\x12<\n\x05\x66ield\x18\x01 \x03(\x0b\x32&.injective_explorer_rpc.RelayerMarketsR\x05\x66ield\"j\n\x0eRelayerMarkets\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12;\n\x08relayers\x18\x02 \x03(\x0b\x32\x1f.injective_explorer_rpc.RelayerR\x08relayers\"/\n\x07Relayer\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x10\n\x03\x63ta\x18\x02 \x01(\tR\x03\x63ta\"\xbd\x02\n\x17GetBankTransfersRequest\x12\x18\n\x07senders\x18\x01 \x03(\tR\x07senders\x12\x1e\n\nrecipients\x18\x02 \x03(\tR\nrecipients\x12\x39\n\x19is_community_pool_related\x18\x03 \x01(\x08R\x16isCommunityPoolRelated\x12\x14\n\x05limit\x18\x04 \x01(\x11R\x05limit\x12\x12\n\x04skip\x18\x05 \x01(\x04R\x04skip\x12\x1d\n\nstart_time\x18\x06 \x01(\x12R\tstartTime\x12\x19\n\x08\x65nd_time\x18\x07 \x01(\x12R\x07\x65ndTime\x12\x18\n\x07\x61\x64\x64ress\x18\x08 \x03(\tR\x07\x61\x64\x64ress\x12\x19\n\x08per_page\x18\t \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\n \x01(\tR\x05token\"\x8c\x01\n\x18GetBankTransfersResponse\x12\x36\n\x06paging\x18\x01 \x01(\x0b\x32\x1e.injective_explorer_rpc.PagingR\x06paging\x12\x38\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32$.injective_explorer_rpc.BankTransferR\x04\x64\x61ta\"\xc8\x01\n\x0c\x42\x61nkTransfer\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1c\n\trecipient\x18\x02 \x01(\tR\trecipient\x12\x36\n\x07\x61mounts\x18\x03 \x03(\x0b\x32\x1c.injective_explorer_rpc.CoinR\x07\x61mounts\x12!\n\x0c\x62lock_number\x18\x04 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x05 \x01(\tR\x0e\x62lockTimestamp\"Q\n\x04\x43oin\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x16\n\x06\x61mount\x18\x02 \x01(\tR\x06\x61mount\x12\x1b\n\tusd_value\x18\x03 \x01(\tR\x08usdValue\"\x12\n\x10StreamTxsRequest\"\xa8\x02\n\x11StreamTxsResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\'\n\x0f\x62lock_timestamp\x18\x03 \x01(\tR\x0e\x62lockTimestamp\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12\x1c\n\tcodespace\x18\x05 \x01(\tR\tcodespace\x12\x1a\n\x08messages\x18\x06 \x01(\tR\x08messages\x12\x1b\n\ttx_number\x18\x07 \x01(\x04R\x08txNumber\x12\x1b\n\terror_log\x18\x08 \x01(\tR\x08\x65rrorLog\x12\x12\n\x04\x63ode\x18\t \x01(\rR\x04\x63ode\x12\x1b\n\tclaim_ids\x18\n \x03(\x12R\x08\x63laimIds\"\x15\n\x13StreamBlocksRequest\"\xea\x02\n\x14StreamBlocksResponse\x12\x16\n\x06height\x18\x01 \x01(\x04R\x06height\x12\x1a\n\x08proposer\x18\x02 \x01(\tR\x08proposer\x12\x18\n\x07moniker\x18\x03 \x01(\tR\x07moniker\x12\x1d\n\nblock_hash\x18\x04 \x01(\tR\tblockHash\x12\x1f\n\x0bparent_hash\x18\x05 \x01(\tR\nparentHash\x12&\n\x0fnum_pre_commits\x18\x06 \x01(\x12R\rnumPreCommits\x12\x17\n\x07num_txs\x18\x07 \x01(\x12R\x06numTxs\x12\x33\n\x03txs\x18\x08 \x03(\x0b\x32!.injective_explorer_rpc.TxDataRPCR\x03txs\x12\x1c\n\ttimestamp\x18\t \x01(\tR\ttimestamp\x12\x30\n\x14\x62lock_unix_timestamp\x18\n \x01(\x04R\x12\x62lockUnixTimestamp\"\x11\n\x0fGetStatsRequest\"\x9c\x02\n\x10GetStatsResponse\x12\x1c\n\taddresses\x18\x01 \x01(\x04R\taddresses\x12\x16\n\x06\x61ssets\x18\x02 \x01(\x04R\x06\x61ssets\x12\x1d\n\ninj_supply\x18\x03 \x01(\x04R\tinjSupply\x12\x1c\n\ntxs_ps24_h\x18\x04 \x01(\x04R\x08txsPs24H\x12\x1e\n\x0btxs_ps100_b\x18\x05 \x01(\x04R\ttxsPs100B\x12\x1b\n\ttxs_total\x18\x06 \x01(\x04R\x08txsTotal\x12\x17\n\x07txs24_h\x18\x07 \x01(\x04R\x06txs24H\x12\x17\n\x07txs30_d\x18\x08 \x01(\x04R\x06txs30D\x12&\n\x0f\x62lock_count24_h\x18\t \x01(\x04R\rblockCount24H2\xe0\x16\n\x14InjectiveExplorerRPC\x12l\n\rGetAccountTxs\x12,.injective_explorer_rpc.GetAccountTxsRequest\x1a-.injective_explorer_rpc.GetAccountTxsResponse\x12r\n\x0fGetAccountTxsV2\x12..injective_explorer_rpc.GetAccountTxsV2Request\x1a/.injective_explorer_rpc.GetAccountTxsV2Response\x12o\n\x0eGetContractTxs\x12-.injective_explorer_rpc.GetContractTxsRequest\x1a..injective_explorer_rpc.GetContractTxsResponse\x12u\n\x10GetContractTxsV2\x12/.injective_explorer_rpc.GetContractTxsV2Request\x1a\x30.injective_explorer_rpc.GetContractTxsV2Response\x12`\n\tGetBlocks\x12(.injective_explorer_rpc.GetBlocksRequest\x1a).injective_explorer_rpc.GetBlocksResponse\x12\x66\n\x0bGetBlocksV2\x12*.injective_explorer_rpc.GetBlocksV2Request\x1a+.injective_explorer_rpc.GetBlocksV2Response\x12]\n\x08GetBlock\x12\'.injective_explorer_rpc.GetBlockRequest\x1a(.injective_explorer_rpc.GetBlockResponse\x12l\n\rGetValidators\x12,.injective_explorer_rpc.GetValidatorsRequest\x1a-.injective_explorer_rpc.GetValidatorsResponse\x12i\n\x0cGetValidator\x12+.injective_explorer_rpc.GetValidatorRequest\x1a,.injective_explorer_rpc.GetValidatorResponse\x12{\n\x12GetValidatorUptime\x12\x31.injective_explorer_rpc.GetValidatorUptimeRequest\x1a\x32.injective_explorer_rpc.GetValidatorUptimeResponse\x12W\n\x06GetTxs\x12%.injective_explorer_rpc.GetTxsRequest\x1a&.injective_explorer_rpc.GetTxsResponse\x12]\n\x08GetTxsV2\x12\'.injective_explorer_rpc.GetTxsV2Request\x1a(.injective_explorer_rpc.GetTxsV2Response\x12l\n\rGetTxByTxHash\x12,.injective_explorer_rpc.GetTxByTxHashRequest\x1a-.injective_explorer_rpc.GetTxByTxHashResponse\x12{\n\x12GetPeggyDepositTxs\x12\x31.injective_explorer_rpc.GetPeggyDepositTxsRequest\x1a\x32.injective_explorer_rpc.GetPeggyDepositTxsResponse\x12\x84\x01\n\x15GetPeggyWithdrawalTxs\x12\x34.injective_explorer_rpc.GetPeggyWithdrawalTxsRequest\x1a\x35.injective_explorer_rpc.GetPeggyWithdrawalTxsResponse\x12x\n\x11GetIBCTransferTxs\x12\x30.injective_explorer_rpc.GetIBCTransferTxsRequest\x1a\x31.injective_explorer_rpc.GetIBCTransferTxsResponse\x12i\n\x0cGetWasmCodes\x12+.injective_explorer_rpc.GetWasmCodesRequest\x1a,.injective_explorer_rpc.GetWasmCodesResponse\x12r\n\x0fGetWasmCodeByID\x12..injective_explorer_rpc.GetWasmCodeByIDRequest\x1a/.injective_explorer_rpc.GetWasmCodeByIDResponse\x12u\n\x10GetWasmContracts\x12/.injective_explorer_rpc.GetWasmContractsRequest\x1a\x30.injective_explorer_rpc.GetWasmContractsResponse\x12\x8d\x01\n\x18GetWasmContractByAddress\x12\x37.injective_explorer_rpc.GetWasmContractByAddressRequest\x1a\x38.injective_explorer_rpc.GetWasmContractByAddressResponse\x12o\n\x0eGetCw20Balance\x12-.injective_explorer_rpc.GetCw20BalanceRequest\x1a..injective_explorer_rpc.GetCw20BalanceResponse\x12]\n\x08Relayers\x12\'.injective_explorer_rpc.RelayersRequest\x1a(.injective_explorer_rpc.RelayersResponse\x12u\n\x10GetBankTransfers\x12/.injective_explorer_rpc.GetBankTransfersRequest\x1a\x30.injective_explorer_rpc.GetBankTransfersResponse\x12\x62\n\tStreamTxs\x12(.injective_explorer_rpc.StreamTxsRequest\x1a).injective_explorer_rpc.StreamTxsResponse0\x01\x12k\n\x0cStreamBlocks\x12+.injective_explorer_rpc.StreamBlocksRequest\x1a,.injective_explorer_rpc.StreamBlocksResponse0\x01\x12]\n\x08GetStats\x12\'.injective_explorer_rpc.GetStatsRequest\x1a(.injective_explorer_rpc.GetStatsResponseB\xc2\x01\n\x1a\x63om.injective_explorer_rpcB\x19InjectiveExplorerRpcProtoP\x01Z\x19/injective_explorer_rpcpb\xa2\x02\x03IXX\xaa\x02\x14InjectiveExplorerRpc\xca\x02\x14InjectiveExplorerRpc\xe2\x02 InjectiveExplorerRpc\\GPBMetadata\xea\x02\x14InjectiveExplorerRpcb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -75,123 +75,123 @@ _globals['_BLOCKDETAILINFO']._serialized_start=4098 _globals['_BLOCKDETAILINFO']._serialized_end=4481 _globals['_TXDATA']._serialized_start=4484 - _globals['_TXDATA']._serialized_end=4989 - _globals['_GETVALIDATORSREQUEST']._serialized_start=4991 - _globals['_GETVALIDATORSREQUEST']._serialized_end=5013 - _globals['_GETVALIDATORSRESPONSE']._serialized_start=5015 - _globals['_GETVALIDATORSRESPONSE']._serialized_end=5131 - _globals['_VALIDATOR']._serialized_start=5134 - _globals['_VALIDATOR']._serialized_end=6083 - _globals['_VALIDATORDESCRIPTION']._serialized_start=6086 - _globals['_VALIDATORDESCRIPTION']._serialized_end=6286 - _globals['_VALIDATORUPTIME']._serialized_start=6288 - _globals['_VALIDATORUPTIME']._serialized_end=6364 - _globals['_SLASHINGEVENT']._serialized_start=6367 - _globals['_SLASHINGEVENT']._serialized_end=6591 - _globals['_GETVALIDATORREQUEST']._serialized_start=6593 - _globals['_GETVALIDATORREQUEST']._serialized_end=6640 - _globals['_GETVALIDATORRESPONSE']._serialized_start=6642 - _globals['_GETVALIDATORRESPONSE']._serialized_end=6757 - _globals['_GETVALIDATORUPTIMEREQUEST']._serialized_start=6759 - _globals['_GETVALIDATORUPTIMEREQUEST']._serialized_end=6812 - _globals['_GETVALIDATORUPTIMERESPONSE']._serialized_start=6814 - _globals['_GETVALIDATORUPTIMERESPONSE']._serialized_end=6941 - _globals['_GETTXSREQUEST']._serialized_start=6944 - _globals['_GETTXSREQUEST']._serialized_end=7235 - _globals['_GETTXSRESPONSE']._serialized_start=7237 - _globals['_GETTXSRESPONSE']._serialized_end=7361 - _globals['_GETTXSV2REQUEST']._serialized_start=7364 - _globals['_GETTXSV2REQUEST']._serialized_end=7567 - _globals['_GETTXSV2RESPONSE']._serialized_start=7569 - _globals['_GETTXSV2RESPONSE']._serialized_end=7695 - _globals['_GETTXBYTXHASHREQUEST']._serialized_start=7697 - _globals['_GETTXBYTXHASHREQUEST']._serialized_end=7771 - _globals['_GETTXBYTXHASHRESPONSE']._serialized_start=7773 - _globals['_GETTXBYTXHASHRESPONSE']._serialized_end=7892 - _globals['_GETPEGGYDEPOSITTXSREQUEST']._serialized_start=7894 - _globals['_GETPEGGYDEPOSITTXSREQUEST']._serialized_end=8015 - _globals['_GETPEGGYDEPOSITTXSRESPONSE']._serialized_start=8017 - _globals['_GETPEGGYDEPOSITTXSRESPONSE']._serialized_end=8107 - _globals['_PEGGYDEPOSITTX']._serialized_start=8110 - _globals['_PEGGYDEPOSITTX']._serialized_end=8487 - _globals['_GETPEGGYWITHDRAWALTXSREQUEST']._serialized_start=8489 - _globals['_GETPEGGYWITHDRAWALTXSREQUEST']._serialized_end=8613 - _globals['_GETPEGGYWITHDRAWALTXSRESPONSE']._serialized_start=8615 - _globals['_GETPEGGYWITHDRAWALTXSRESPONSE']._serialized_end=8711 - _globals['_PEGGYWITHDRAWALTX']._serialized_start=8714 - _globals['_PEGGYWITHDRAWALTX']._serialized_end=9233 - _globals['_GETIBCTRANSFERTXSREQUEST']._serialized_start=9236 - _globals['_GETIBCTRANSFERTXSREQUEST']._serialized_end=9480 - _globals['_GETIBCTRANSFERTXSRESPONSE']._serialized_start=9482 - _globals['_GETIBCTRANSFERTXSRESPONSE']._serialized_end=9570 - _globals['_IBCTRANSFERTX']._serialized_start=9573 - _globals['_IBCTRANSFERTX']._serialized_end=10115 - _globals['_GETWASMCODESREQUEST']._serialized_start=10117 - _globals['_GETWASMCODESREQUEST']._serialized_end=10222 - _globals['_GETWASMCODESRESPONSE']._serialized_start=10225 - _globals['_GETWASMCODESRESPONSE']._serialized_end=10357 - _globals['_WASMCODE']._serialized_start=10360 - _globals['_WASMCODE']._serialized_end=10842 - _globals['_CHECKSUM']._serialized_start=10844 - _globals['_CHECKSUM']._serialized_end=10904 - _globals['_CONTRACTPERMISSION']._serialized_start=10906 - _globals['_CONTRACTPERMISSION']._serialized_end=10985 - _globals['_GETWASMCODEBYIDREQUEST']._serialized_start=10987 - _globals['_GETWASMCODEBYIDREQUEST']._serialized_end=11036 - _globals['_GETWASMCODEBYIDRESPONSE']._serialized_start=11039 - _globals['_GETWASMCODEBYIDRESPONSE']._serialized_end=11536 - _globals['_GETWASMCONTRACTSREQUEST']._serialized_start=11539 - _globals['_GETWASMCONTRACTSREQUEST']._serialized_end=11794 - _globals['_GETWASMCONTRACTSRESPONSE']._serialized_start=11797 - _globals['_GETWASMCONTRACTSRESPONSE']._serialized_end=11937 - _globals['_WASMCONTRACT']._serialized_start=11940 - _globals['_WASMCONTRACT']._serialized_end=12557 - _globals['_CONTRACTFUND']._serialized_start=12559 - _globals['_CONTRACTFUND']._serialized_end=12619 - _globals['_CW20METADATA']._serialized_start=12622 - _globals['_CW20METADATA']._serialized_end=12788 - _globals['_CW20TOKENINFO']._serialized_start=12790 - _globals['_CW20TOKENINFO']._serialized_end=12912 - _globals['_CW20MARKETINGINFO']._serialized_start=12915 - _globals['_CW20MARKETINGINFO']._serialized_end=13044 - _globals['_GETWASMCONTRACTBYADDRESSREQUEST']._serialized_start=13046 - _globals['_GETWASMCONTRACTBYADDRESSREQUEST']._serialized_end=13122 - _globals['_GETWASMCONTRACTBYADDRESSRESPONSE']._serialized_start=13125 - _globals['_GETWASMCONTRACTBYADDRESSRESPONSE']._serialized_end=13762 - _globals['_GETCW20BALANCEREQUEST']._serialized_start=13764 - _globals['_GETCW20BALANCEREQUEST']._serialized_end=13835 - _globals['_GETCW20BALANCERESPONSE']._serialized_start=13837 - _globals['_GETCW20BALANCERESPONSE']._serialized_end=13924 - _globals['_WASMCW20BALANCE']._serialized_start=13927 - _globals['_WASMCW20BALANCE']._serialized_end=14145 - _globals['_RELAYERSREQUEST']._serialized_start=14147 - _globals['_RELAYERSREQUEST']._serialized_end=14196 - _globals['_RELAYERSRESPONSE']._serialized_start=14198 - _globals['_RELAYERSRESPONSE']._serialized_end=14278 - _globals['_RELAYERMARKETS']._serialized_start=14280 - _globals['_RELAYERMARKETS']._serialized_end=14386 - _globals['_RELAYER']._serialized_start=14388 - _globals['_RELAYER']._serialized_end=14435 - _globals['_GETBANKTRANSFERSREQUEST']._serialized_start=14438 - _globals['_GETBANKTRANSFERSREQUEST']._serialized_end=14755 - _globals['_GETBANKTRANSFERSRESPONSE']._serialized_start=14758 - _globals['_GETBANKTRANSFERSRESPONSE']._serialized_end=14898 - _globals['_BANKTRANSFER']._serialized_start=14901 - _globals['_BANKTRANSFER']._serialized_end=15101 - _globals['_COIN']._serialized_start=15103 - _globals['_COIN']._serialized_end=15184 - _globals['_STREAMTXSREQUEST']._serialized_start=15186 - _globals['_STREAMTXSREQUEST']._serialized_end=15204 - _globals['_STREAMTXSRESPONSE']._serialized_start=15207 - _globals['_STREAMTXSRESPONSE']._serialized_end=15503 - _globals['_STREAMBLOCKSREQUEST']._serialized_start=15505 - _globals['_STREAMBLOCKSREQUEST']._serialized_end=15526 - _globals['_STREAMBLOCKSRESPONSE']._serialized_start=15529 - _globals['_STREAMBLOCKSRESPONSE']._serialized_end=15891 - _globals['_GETSTATSREQUEST']._serialized_start=15893 - _globals['_GETSTATSREQUEST']._serialized_end=15910 - _globals['_GETSTATSRESPONSE']._serialized_start=15913 - _globals['_GETSTATSRESPONSE']._serialized_end=16197 - _globals['_INJECTIVEEXPLORERRPC']._serialized_start=16200 - _globals['_INJECTIVEEXPLORERRPC']._serialized_end=19112 + _globals['_TXDATA']._serialized_end=5009 + _globals['_GETVALIDATORSREQUEST']._serialized_start=5011 + _globals['_GETVALIDATORSREQUEST']._serialized_end=5033 + _globals['_GETVALIDATORSRESPONSE']._serialized_start=5035 + _globals['_GETVALIDATORSRESPONSE']._serialized_end=5151 + _globals['_VALIDATOR']._serialized_start=5154 + _globals['_VALIDATOR']._serialized_end=6103 + _globals['_VALIDATORDESCRIPTION']._serialized_start=6106 + _globals['_VALIDATORDESCRIPTION']._serialized_end=6306 + _globals['_VALIDATORUPTIME']._serialized_start=6308 + _globals['_VALIDATORUPTIME']._serialized_end=6384 + _globals['_SLASHINGEVENT']._serialized_start=6387 + _globals['_SLASHINGEVENT']._serialized_end=6611 + _globals['_GETVALIDATORREQUEST']._serialized_start=6613 + _globals['_GETVALIDATORREQUEST']._serialized_end=6660 + _globals['_GETVALIDATORRESPONSE']._serialized_start=6662 + _globals['_GETVALIDATORRESPONSE']._serialized_end=6777 + _globals['_GETVALIDATORUPTIMEREQUEST']._serialized_start=6779 + _globals['_GETVALIDATORUPTIMEREQUEST']._serialized_end=6832 + _globals['_GETVALIDATORUPTIMERESPONSE']._serialized_start=6834 + _globals['_GETVALIDATORUPTIMERESPONSE']._serialized_end=6961 + _globals['_GETTXSREQUEST']._serialized_start=6964 + _globals['_GETTXSREQUEST']._serialized_end=7255 + _globals['_GETTXSRESPONSE']._serialized_start=7257 + _globals['_GETTXSRESPONSE']._serialized_end=7381 + _globals['_GETTXSV2REQUEST']._serialized_start=7384 + _globals['_GETTXSV2REQUEST']._serialized_end=7587 + _globals['_GETTXSV2RESPONSE']._serialized_start=7589 + _globals['_GETTXSV2RESPONSE']._serialized_end=7715 + _globals['_GETTXBYTXHASHREQUEST']._serialized_start=7717 + _globals['_GETTXBYTXHASHREQUEST']._serialized_end=7791 + _globals['_GETTXBYTXHASHRESPONSE']._serialized_start=7793 + _globals['_GETTXBYTXHASHRESPONSE']._serialized_end=7912 + _globals['_GETPEGGYDEPOSITTXSREQUEST']._serialized_start=7914 + _globals['_GETPEGGYDEPOSITTXSREQUEST']._serialized_end=8035 + _globals['_GETPEGGYDEPOSITTXSRESPONSE']._serialized_start=8037 + _globals['_GETPEGGYDEPOSITTXSRESPONSE']._serialized_end=8127 + _globals['_PEGGYDEPOSITTX']._serialized_start=8130 + _globals['_PEGGYDEPOSITTX']._serialized_end=8507 + _globals['_GETPEGGYWITHDRAWALTXSREQUEST']._serialized_start=8509 + _globals['_GETPEGGYWITHDRAWALTXSREQUEST']._serialized_end=8633 + _globals['_GETPEGGYWITHDRAWALTXSRESPONSE']._serialized_start=8635 + _globals['_GETPEGGYWITHDRAWALTXSRESPONSE']._serialized_end=8731 + _globals['_PEGGYWITHDRAWALTX']._serialized_start=8734 + _globals['_PEGGYWITHDRAWALTX']._serialized_end=9253 + _globals['_GETIBCTRANSFERTXSREQUEST']._serialized_start=9256 + _globals['_GETIBCTRANSFERTXSREQUEST']._serialized_end=9500 + _globals['_GETIBCTRANSFERTXSRESPONSE']._serialized_start=9502 + _globals['_GETIBCTRANSFERTXSRESPONSE']._serialized_end=9590 + _globals['_IBCTRANSFERTX']._serialized_start=9593 + _globals['_IBCTRANSFERTX']._serialized_end=10135 + _globals['_GETWASMCODESREQUEST']._serialized_start=10137 + _globals['_GETWASMCODESREQUEST']._serialized_end=10242 + _globals['_GETWASMCODESRESPONSE']._serialized_start=10245 + _globals['_GETWASMCODESRESPONSE']._serialized_end=10377 + _globals['_WASMCODE']._serialized_start=10380 + _globals['_WASMCODE']._serialized_end=10862 + _globals['_CHECKSUM']._serialized_start=10864 + _globals['_CHECKSUM']._serialized_end=10924 + _globals['_CONTRACTPERMISSION']._serialized_start=10926 + _globals['_CONTRACTPERMISSION']._serialized_end=11005 + _globals['_GETWASMCODEBYIDREQUEST']._serialized_start=11007 + _globals['_GETWASMCODEBYIDREQUEST']._serialized_end=11056 + _globals['_GETWASMCODEBYIDRESPONSE']._serialized_start=11059 + _globals['_GETWASMCODEBYIDRESPONSE']._serialized_end=11556 + _globals['_GETWASMCONTRACTSREQUEST']._serialized_start=11559 + _globals['_GETWASMCONTRACTSREQUEST']._serialized_end=11814 + _globals['_GETWASMCONTRACTSRESPONSE']._serialized_start=11817 + _globals['_GETWASMCONTRACTSRESPONSE']._serialized_end=11957 + _globals['_WASMCONTRACT']._serialized_start=11960 + _globals['_WASMCONTRACT']._serialized_end=12577 + _globals['_CONTRACTFUND']._serialized_start=12579 + _globals['_CONTRACTFUND']._serialized_end=12639 + _globals['_CW20METADATA']._serialized_start=12642 + _globals['_CW20METADATA']._serialized_end=12808 + _globals['_CW20TOKENINFO']._serialized_start=12810 + _globals['_CW20TOKENINFO']._serialized_end=12932 + _globals['_CW20MARKETINGINFO']._serialized_start=12935 + _globals['_CW20MARKETINGINFO']._serialized_end=13064 + _globals['_GETWASMCONTRACTBYADDRESSREQUEST']._serialized_start=13066 + _globals['_GETWASMCONTRACTBYADDRESSREQUEST']._serialized_end=13142 + _globals['_GETWASMCONTRACTBYADDRESSRESPONSE']._serialized_start=13145 + _globals['_GETWASMCONTRACTBYADDRESSRESPONSE']._serialized_end=13782 + _globals['_GETCW20BALANCEREQUEST']._serialized_start=13784 + _globals['_GETCW20BALANCEREQUEST']._serialized_end=13855 + _globals['_GETCW20BALANCERESPONSE']._serialized_start=13857 + _globals['_GETCW20BALANCERESPONSE']._serialized_end=13944 + _globals['_WASMCW20BALANCE']._serialized_start=13947 + _globals['_WASMCW20BALANCE']._serialized_end=14165 + _globals['_RELAYERSREQUEST']._serialized_start=14167 + _globals['_RELAYERSREQUEST']._serialized_end=14216 + _globals['_RELAYERSRESPONSE']._serialized_start=14218 + _globals['_RELAYERSRESPONSE']._serialized_end=14298 + _globals['_RELAYERMARKETS']._serialized_start=14300 + _globals['_RELAYERMARKETS']._serialized_end=14406 + _globals['_RELAYER']._serialized_start=14408 + _globals['_RELAYER']._serialized_end=14455 + _globals['_GETBANKTRANSFERSREQUEST']._serialized_start=14458 + _globals['_GETBANKTRANSFERSREQUEST']._serialized_end=14775 + _globals['_GETBANKTRANSFERSRESPONSE']._serialized_start=14778 + _globals['_GETBANKTRANSFERSRESPONSE']._serialized_end=14918 + _globals['_BANKTRANSFER']._serialized_start=14921 + _globals['_BANKTRANSFER']._serialized_end=15121 + _globals['_COIN']._serialized_start=15123 + _globals['_COIN']._serialized_end=15204 + _globals['_STREAMTXSREQUEST']._serialized_start=15206 + _globals['_STREAMTXSREQUEST']._serialized_end=15224 + _globals['_STREAMTXSRESPONSE']._serialized_start=15227 + _globals['_STREAMTXSRESPONSE']._serialized_end=15523 + _globals['_STREAMBLOCKSREQUEST']._serialized_start=15525 + _globals['_STREAMBLOCKSREQUEST']._serialized_end=15546 + _globals['_STREAMBLOCKSRESPONSE']._serialized_start=15549 + _globals['_STREAMBLOCKSRESPONSE']._serialized_end=15911 + _globals['_GETSTATSREQUEST']._serialized_start=15913 + _globals['_GETSTATSREQUEST']._serialized_end=15930 + _globals['_GETSTATSRESPONSE']._serialized_start=15933 + _globals['_GETSTATSRESPONSE']._serialized_end=16217 + _globals['_INJECTIVEEXPLORERRPC']._serialized_start=16220 + _globals['_INJECTIVEEXPLORERRPC']._serialized_end=19132 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_rfq_rpc_pb2.py b/pyinjective/proto/exchange/injective_rfq_rpc_pb2.py new file mode 100644 index 00000000..3b198cbc --- /dev/null +++ b/pyinjective/proto/exchange/injective_rfq_rpc_pb2.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: exchange/injective_rfq_rpc.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n exchange/injective_rfq_rpc.proto\x12\x11injective_rfq_rpc\"R\n\x0eRequestRequest\x12@\n\x07request\x18\x01 \x01(\x0b\x32&.injective_rfq_rpc.RFQRequestInputTypeR\x07request\"\xcf\x02\n\x13RFQRequestInputType\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x04 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x06 \x01(\tR\nworstPrice\x12\'\n\x0frequest_address\x18\x07 \x01(\tR\x0erequestAddress\x12\x16\n\x06\x65xpiry\x18\x08 \x01(\x04R\x06\x65xpiry\x12)\n\x10transaction_time\x18\t \x01(\x04R\x0ftransactionTime\x12\x1f\n\x0bprice_check\x18\n \x01(\x08R\npriceCheck\"]\n\x0fRequestResponse\x12\x16\n\x06status\x18\x01 \x01(\tR\x06status\x12\x1b\n\tclient_id\x18\x02 \x01(\tR\x08\x63lientId\x12\x15\n\x06rfq_id\x18\x03 \x01(\x04R\x05rfqId\"5\n\x14StreamRequestRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"\x7f\n\x15StreamRequestResponse\x12;\n\x07request\x18\x01 \x01(\x0b\x32!.injective_rfq_rpc.RFQRequestTypeR\x07request\x12)\n\x10stream_operation\x18\x02 \x01(\tR\x0fstreamOperation\"\xae\x03\n\x0eRFQRequestType\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12\x15\n\x06rfq_id\x18\x02 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x05 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x06 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x07 \x01(\tR\nworstPrice\x12\'\n\x0frequest_address\x18\x08 \x01(\tR\x0erequestAddress\x12\x16\n\x06\x65xpiry\x18\t \x01(\x04R\x06\x65xpiry\x12\x16\n\x06status\x18\n \x01(\tR\x06status\x12\x1d\n\ncreated_at\x18\x0b \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0c \x01(\x12R\tupdatedAt\x12)\n\x10transaction_time\x18\r \x01(\x04R\x0ftransactionTime\x12\x16\n\x06height\x18\x0e \x01(\x04R\x06height\"E\n\x0cQuoteRequest\x12\x35\n\x05quote\x18\x01 \x01(\x0b\x32\x1f.injective_rfq_rpc.RFQQuoteTypeR\x05quote\"\xd7\x05\n\x0cRFQQuoteType\x12\x19\n\x08\x63hain_id\x18\x01 \x01(\tR\x07\x63hainId\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x15\n\x06rfq_id\x18\x04 \x01(\x04R\x05rfqId\x12\'\n\x0ftaker_direction\x18\x05 \x01(\tR\x0etakerDirection\x12\x16\n\x06margin\x18\x06 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x07 \x01(\tR\x08quantity\x12\x14\n\x05price\x18\x08 \x01(\tR\x05price\x12\x38\n\x06\x65xpiry\x18\t \x01(\x0b\x32 .injective_rfq_rpc.RFQExpiryTypeR\x06\x65xpiry\x12\x14\n\x05maker\x18\n \x01(\tR\x05maker\x12\x14\n\x05taker\x18\x0b \x01(\tR\x05taker\x12\x1c\n\tsignature\x18\x0c \x01(\tR\tsignature\x12\x16\n\x06status\x18\r \x01(\tR\x06status\x12\x1d\n\ncreated_at\x18\x0e \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0f \x01(\x12R\tupdatedAt\x12\x16\n\x06height\x18\x10 \x01(\x04R\x06height\x12\x1d\n\nevent_time\x18\x11 \x01(\x04R\teventTime\x12)\n\x10transaction_time\x18\x12 \x01(\x04R\x0ftransactionTime\x12\x34\n\x16maker_subaccount_nonce\x18\x13 \x01(\x04R\x14makerSubaccountNonce\x12*\n\x11min_fill_quantity\x18\x14 \x01(\tR\x0fminFillQuantity\x12\x1f\n\x0bprice_check\x18\x15 \x01(\x08R\npriceCheck\x12\x1b\n\tclient_id\x18\x16 \x01(\tR\x08\x63lientId\"E\n\rRFQExpiryType\x12\x1c\n\ttimestamp\x18\x01 \x01(\x04R\ttimestamp\x12\x16\n\x06height\x18\x02 \x01(\x04R\x06height\"\'\n\rQuoteResponse\x12\x16\n\x06status\x18\x01 \x01(\tR\x06status\"Q\n\x12StreamQuoteRequest\x12\x1c\n\taddresses\x18\x01 \x03(\tR\taddresses\x12\x1d\n\nmarket_ids\x18\x02 \x03(\tR\tmarketIds\"\x80\x01\n\x13StreamQuoteResponse\x12>\n\x05quote\x18\x01 \x01(\x0b\x32(.injective_rfq_rpc.RFQProcessedQuoteTypeR\x05quote\x12)\n\x10stream_operation\x18\x02 \x01(\tR\x0fstreamOperation\"\xcc\x06\n\x15RFQProcessedQuoteType\x12\x14\n\x05\x65rror\x18\x32 \x01(\tR\x05\x65rror\x12+\n\x11\x65xecuted_quantity\x18\x33 \x01(\tR\x10\x65xecutedQuantity\x12\'\n\x0f\x65xecuted_margin\x18\x34 \x01(\tR\x0e\x65xecutedMargin\x12\x19\n\x08\x63hain_id\x18\x01 \x01(\tR\x07\x63hainId\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x15\n\x06rfq_id\x18\x04 \x01(\x04R\x05rfqId\x12\'\n\x0ftaker_direction\x18\x05 \x01(\tR\x0etakerDirection\x12\x16\n\x06margin\x18\x06 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x07 \x01(\tR\x08quantity\x12\x14\n\x05price\x18\x08 \x01(\tR\x05price\x12\x38\n\x06\x65xpiry\x18\t \x01(\x0b\x32 .injective_rfq_rpc.RFQExpiryTypeR\x06\x65xpiry\x12\x14\n\x05maker\x18\n \x01(\tR\x05maker\x12\x14\n\x05taker\x18\x0b \x01(\tR\x05taker\x12\x1c\n\tsignature\x18\x0c \x01(\tR\tsignature\x12\x16\n\x06status\x18\r \x01(\tR\x06status\x12\x1d\n\ncreated_at\x18\x0e \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0f \x01(\x12R\tupdatedAt\x12\x16\n\x06height\x18\x10 \x01(\x04R\x06height\x12\x1d\n\nevent_time\x18\x11 \x01(\x04R\teventTime\x12)\n\x10transaction_time\x18\x12 \x01(\x04R\x0ftransactionTime\x12\x34\n\x16maker_subaccount_nonce\x18\x13 \x01(\x04R\x14makerSubaccountNonce\x12*\n\x11min_fill_quantity\x18\x14 \x01(\tR\x0fminFillQuantity\x12\x1f\n\x0bprice_check\x18\x15 \x01(\x08R\npriceCheck\x12\x1b\n\tclient_id\x18\x16 \x01(\tR\x08\x63lientId\"f\n\x15ListSettlementRequest\x12\x1c\n\taddresses\x18\x01 \x03(\tR\taddresses\x12\x19\n\x08per_page\x18\x02 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\"t\n\x16ListSettlementResponse\x12\x46\n\x0bsettlements\x18\x01 \x03(\x0b\x32$.injective_rfq_rpc.RFQSettlementTypeR\x0bsettlements\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\"\xb5\x04\n\x11RFQSettlementType\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x14\n\x05taker\x18\x03 \x01(\tR\x05taker\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x05 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x06 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x07 \x01(\tR\nworstPrice\x12[\n\x0funfilled_action\x18\x08 \x01(\x0b\x32\x32.injective_rfq_rpc.RFQSettlementUnfilledActionTypeR\x0eunfilledAction\x12+\n\x11\x66\x61llback_quantity\x18\t \x01(\tR\x10\x66\x61llbackQuantity\x12\'\n\x0f\x66\x61llback_margin\x18\n \x01(\tR\x0e\x66\x61llbackMargin\x12)\n\x10transaction_time\x18\x0b \x01(\x04R\x0ftransactionTime\x12\x1d\n\ncreated_at\x18\x0c \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\r \x01(\x12R\tupdatedAt\x12\x1d\n\nevent_time\x18\x0e \x01(\x04R\teventTime\x12\x16\n\x06height\x18\x0f \x01(\x04R\x06height\x12\x10\n\x03\x63id\x18\x10 \x01(\tR\x03\x63id\"\xb2\x01\n\x1fRFQSettlementUnfilledActionType\x12\x45\n\x05limit\x18\x01 \x01(\x0b\x32/.injective_rfq_rpc.RFQSettlementLimitActionTypeR\x05limit\x12H\n\x06market\x18\x02 \x01(\x0b\x32\x30.injective_rfq_rpc.RFQSettlementMarketActionTypeR\x06market\"4\n\x1cRFQSettlementLimitActionType\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\"\x1f\n\x1dRFQSettlementMarketActionType\"7\n\x17StreamSettlementRequest\x12\x1c\n\taddresses\x18\x01 \x03(\tR\taddresses\"\x8b\x01\n\x18StreamSettlementResponse\x12\x44\n\nsettlement\x18\x01 \x01(\x0b\x32$.injective_rfq_rpc.RFQSettlementTypeR\nsettlement\x12)\n\x10stream_operation\x18\x02 \x01(\tR\x0fstreamOperation\"}\n\x1d\x43reateConditionalOrderRequest\x12>\n\x05order\x18\x01 \x01(\x0b\x32(.injective_rfq_rpc.ConditionalOrderInputR\x05order\x12\x1c\n\tsignature\x18\x02 \x01(\tR\tsignature\"\x9c\x05\n\x15\x43onditionalOrderInput\x12\x18\n\x07version\x18\x01 \x01(\rR\x07version\x12\x19\n\x08\x63hain_id\x18\x02 \x01(\tR\x07\x63hainId\x12)\n\x10\x63ontract_address\x18\x03 \x01(\tR\x0f\x63ontractAddress\x12\x14\n\x05taker\x18\x04 \x01(\tR\x05taker\x12\x14\n\x05\x65poch\x18\x05 \x01(\x04R\x05\x65poch\x12\x15\n\x06rfq_id\x18\x06 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x07 \x01(\tR\x08marketId\x12)\n\x10subaccount_nonce\x18\x08 \x01(\rR\x0fsubaccountNonce\x12!\n\x0clane_version\x18\t \x01(\x04R\x0blaneVersion\x12\x1f\n\x0b\x64\x65\x61\x64line_ms\x18\n \x01(\x04R\ndeadlineMs\x12\x1c\n\tdirection\x18\x0b \x01(\tR\tdirection\x12\x1a\n\x08quantity\x18\x0c \x01(\tR\x08quantity\x12\x16\n\x06margin\x18\r \x01(\tR\x06margin\x12\x1f\n\x0bworst_price\x18\x0e \x01(\tR\nworstPrice\x12\x35\n\x17min_total_fill_quantity\x18\x0f \x01(\tR\x14minTotalFillQuantity\x12!\n\x0ctrigger_type\x18\x10 \x01(\tR\x0btriggerType\x12#\n\rtrigger_price\x18\x11 \x01(\tR\x0ctriggerPrice\x12\'\n\x0funfilled_action\x18\x12 \x01(\tR\x0eunfilledAction\x12\x10\n\x03\x63id\x18\x13 \x01(\tR\x03\x63id\x12\'\n\x0f\x61llowed_relayer\x18\x14 \x01(\tR\x0e\x61llowedRelayer\"g\n\x1e\x43reateConditionalOrderResponse\x12\x45\n\x05order\x18\x01 \x01(\x0b\x32/.injective_rfq_rpc.ConditionalOrderResponseTypeR\x05order\"\x88\x03\n\x1c\x43onditionalOrderResponseType\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x04 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x06 \x01(\tR\nworstPrice\x12\'\n\x0frequest_address\x18\x07 \x01(\tR\x0erequestAddress\x12#\n\rtrigger_price\x18\x08 \x01(\tR\x0ctriggerPrice\x12\x16\n\x06status\x18\t \x01(\tR\x06status\x12\x1d\n\ncreated_at\x18\n \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0b \x01(\x12R\tupdatedAt\x12\x1d\n\nexpires_at\x18\x0c \x01(\x12R\texpiresAt\"\xad\x01\n\x1cListConditionalOrdersRequest\x12\'\n\x0frequest_address\x18\x01 \x01(\tR\x0erequestAddress\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x19\n\x08per_page\x18\x04 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\"|\n\x1dListConditionalOrdersResponse\x12G\n\x06orders\x18\x01 \x03(\x0b\x32/.injective_rfq_rpc.ConditionalOrderResponseTypeR\x06orders\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\"\x9a\x02\n\x1bTakerStreamStreamingRequest\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12\x41\n\x07request\x18\x02 \x01(\x0b\x32\'.injective_rfq_rpc.CreateRFQRequestTypeR\x07request\x12U\n\x11\x63onditional_order\x18\x03 \x01(\x0b\x32(.injective_rfq_rpc.ConditionalOrderInputR\x10\x63onditionalOrder\x12>\n\x1b\x63onditional_order_signature\x18\x04 \x01(\tR\x19\x63onditionalOrderSignature\"\xfc\x01\n\x14\x43reateRFQRequestType\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x04 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x06 \x01(\tR\nworstPrice\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x04R\x06\x65xpiry\x12\x1f\n\x0bprice_check\x18\x08 \x01(\x08R\npriceCheck\"\xc7\x02\n\x13TakerStreamResponse\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12\x35\n\x05quote\x18\x02 \x01(\x0b\x32\x1f.injective_rfq_rpc.RFQQuoteTypeR\x05quote\x12\x44\n\x0brequest_ack\x18\x03 \x01(\x0b\x32#.injective_rfq_rpc.RequestStreamAckR\nrequestAck\x12\x34\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1e.injective_rfq_rpc.StreamErrorR\x05\x65rror\x12Z\n\x15\x63onditional_order_ack\x18\x05 \x01(\x0b\x32&.injective_rfq_rpc.ConditionalOrderAckR\x13\x63onditionalOrderAck\"^\n\x10RequestStreamAck\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x1b\n\tclient_id\x18\x02 \x01(\tR\x08\x63lientId\x12\x16\n\x06status\x18\x03 \x01(\tR\x06status\"<\n\x0bStreamError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x19\n\x08message_\x18\x02 \x01(\tR\x07message\"\\\n\x13\x43onditionalOrderAck\x12\x45\n\x05order\x18\x01 \x01(\x0b\x32/.injective_rfq_rpc.ConditionalOrderResponseTypeR\x05order\"w\n\x1bMakerStreamStreamingRequest\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12\x35\n\x05quote\x18\x02 \x01(\x0b\x32\x1f.injective_rfq_rpc.RFQQuoteTypeR\x05quote\"\x8b\x03\n\x13MakerStreamResponse\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12;\n\x07request\x18\x02 \x01(\x0b\x32!.injective_rfq_rpc.RFQRequestTypeR\x07request\x12>\n\tquote_ack\x18\x03 \x01(\x0b\x32!.injective_rfq_rpc.QuoteStreamAckR\x08quoteAck\x12\x34\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1e.injective_rfq_rpc.StreamErrorR\x05\x65rror\x12Q\n\x0fprocessed_quote\x18\x05 \x01(\x0b\x32(.injective_rfq_rpc.RFQProcessedQuoteTypeR\x0eprocessedQuote\x12K\n\nsettlement\x18\x06 \x01(\x0b\x32+.injective_rfq_rpc.RFQSettlementMakerUpdateR\nsettlement\"?\n\x0eQuoteStreamAck\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\"\xfb\x04\n\x18RFQSettlementMakerUpdate\x12=\n\x06quotes\x18\x32 \x03(\x0b\x32%.injective_rfq_rpc.RFQSettlementQuoteR\x06quotes\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x14\n\x05taker\x18\x03 \x01(\tR\x05taker\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x05 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x06 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x07 \x01(\tR\nworstPrice\x12[\n\x0funfilled_action\x18\x08 \x01(\x0b\x32\x32.injective_rfq_rpc.RFQSettlementUnfilledActionTypeR\x0eunfilledAction\x12+\n\x11\x66\x61llback_quantity\x18\t \x01(\tR\x10\x66\x61llbackQuantity\x12\'\n\x0f\x66\x61llback_margin\x18\n \x01(\tR\x0e\x66\x61llbackMargin\x12)\n\x10transaction_time\x18\x0b \x01(\x04R\x0ftransactionTime\x12\x1d\n\ncreated_at\x18\x0c \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\r \x01(\x12R\tupdatedAt\x12\x1d\n\nevent_time\x18\x0e \x01(\x04R\teventTime\x12\x16\n\x06height\x18\x0f \x01(\x04R\x06height\x12\x10\n\x03\x63id\x18\x10 \x01(\tR\x03\x63id\"\xea\x02\n\x12RFQSettlementQuote\x12\x14\n\x05maker\x18\x01 \x01(\tR\x05maker\x12\x14\n\x05price\x18\x02 \x01(\tR\x05price\x12#\n\rquoted_margin\x18\x03 \x01(\tR\x0cquotedMargin\x12\'\n\x0fquoted_quantity\x18\x04 \x01(\tR\x0equotedQuantity\x12\'\n\x0f\x65xecuted_margin\x18\x05 \x01(\tR\x0e\x65xecutedMargin\x12+\n\x11\x65xecuted_quantity\x18\x06 \x01(\tR\x10\x65xecutedQuantity\x12\x38\n\x06\x65xpiry\x18\x07 \x01(\x0b\x32 .injective_rfq_rpc.RFQExpiryTypeR\x06\x65xpiry\x12\x1c\n\tsignature\x18\x08 \x01(\tR\tsignature\x12\x14\n\x05nonce\x18\t \x01(\x04R\x05nonce\x12\x16\n\x06status\x18\n \x01(\tR\x06status2\x9c\x08\n\x0fInjectiveRfqRPC\x12P\n\x07Request\x12!.injective_rfq_rpc.RequestRequest\x1a\".injective_rfq_rpc.RequestResponse\x12\x64\n\rStreamRequest\x12\'.injective_rfq_rpc.StreamRequestRequest\x1a(.injective_rfq_rpc.StreamRequestResponse0\x01\x12J\n\x05Quote\x12\x1f.injective_rfq_rpc.QuoteRequest\x1a .injective_rfq_rpc.QuoteResponse\x12^\n\x0bStreamQuote\x12%.injective_rfq_rpc.StreamQuoteRequest\x1a&.injective_rfq_rpc.StreamQuoteResponse0\x01\x12\x65\n\x0eListSettlement\x12(.injective_rfq_rpc.ListSettlementRequest\x1a).injective_rfq_rpc.ListSettlementResponse\x12m\n\x10StreamSettlement\x12*.injective_rfq_rpc.StreamSettlementRequest\x1a+.injective_rfq_rpc.StreamSettlementResponse0\x01\x12}\n\x16\x43reateConditionalOrder\x12\x30.injective_rfq_rpc.CreateConditionalOrderRequest\x1a\x31.injective_rfq_rpc.CreateConditionalOrderResponse\x12z\n\x15ListConditionalOrders\x12/.injective_rfq_rpc.ListConditionalOrdersRequest\x1a\x30.injective_rfq_rpc.ListConditionalOrdersResponse\x12i\n\x0bTakerStream\x12..injective_rfq_rpc.TakerStreamStreamingRequest\x1a&.injective_rfq_rpc.TakerStreamResponse(\x01\x30\x01\x12i\n\x0bMakerStream\x12..injective_rfq_rpc.MakerStreamStreamingRequest\x1a&.injective_rfq_rpc.MakerStreamResponse(\x01\x30\x01\x42\x9f\x01\n\x15\x63om.injective_rfq_rpcB\x14InjectiveRfqRpcProtoP\x01Z\x14/injective_rfq_rpcpb\xa2\x02\x03IXX\xaa\x02\x0fInjectiveRfqRpc\xca\x02\x0fInjectiveRfqRpc\xe2\x02\x1bInjectiveRfqRpc\\GPBMetadata\xea\x02\x0fInjectiveRfqRpcb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'exchange.injective_rfq_rpc_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\025com.injective_rfq_rpcB\024InjectiveRfqRpcProtoP\001Z\024/injective_rfq_rpcpb\242\002\003IXX\252\002\017InjectiveRfqRpc\312\002\017InjectiveRfqRpc\342\002\033InjectiveRfqRpc\\GPBMetadata\352\002\017InjectiveRfqRpc' + _globals['_REQUESTREQUEST']._serialized_start=55 + _globals['_REQUESTREQUEST']._serialized_end=137 + _globals['_RFQREQUESTINPUTTYPE']._serialized_start=140 + _globals['_RFQREQUESTINPUTTYPE']._serialized_end=475 + _globals['_REQUESTRESPONSE']._serialized_start=477 + _globals['_REQUESTRESPONSE']._serialized_end=570 + _globals['_STREAMREQUESTREQUEST']._serialized_start=572 + _globals['_STREAMREQUESTREQUEST']._serialized_end=625 + _globals['_STREAMREQUESTRESPONSE']._serialized_start=627 + _globals['_STREAMREQUESTRESPONSE']._serialized_end=754 + _globals['_RFQREQUESTTYPE']._serialized_start=757 + _globals['_RFQREQUESTTYPE']._serialized_end=1187 + _globals['_QUOTEREQUEST']._serialized_start=1189 + _globals['_QUOTEREQUEST']._serialized_end=1258 + _globals['_RFQQUOTETYPE']._serialized_start=1261 + _globals['_RFQQUOTETYPE']._serialized_end=1988 + _globals['_RFQEXPIRYTYPE']._serialized_start=1990 + _globals['_RFQEXPIRYTYPE']._serialized_end=2059 + _globals['_QUOTERESPONSE']._serialized_start=2061 + _globals['_QUOTERESPONSE']._serialized_end=2100 + _globals['_STREAMQUOTEREQUEST']._serialized_start=2102 + _globals['_STREAMQUOTEREQUEST']._serialized_end=2183 + _globals['_STREAMQUOTERESPONSE']._serialized_start=2186 + _globals['_STREAMQUOTERESPONSE']._serialized_end=2314 + _globals['_RFQPROCESSEDQUOTETYPE']._serialized_start=2317 + _globals['_RFQPROCESSEDQUOTETYPE']._serialized_end=3161 + _globals['_LISTSETTLEMENTREQUEST']._serialized_start=3163 + _globals['_LISTSETTLEMENTREQUEST']._serialized_end=3265 + _globals['_LISTSETTLEMENTRESPONSE']._serialized_start=3267 + _globals['_LISTSETTLEMENTRESPONSE']._serialized_end=3383 + _globals['_RFQSETTLEMENTTYPE']._serialized_start=3386 + _globals['_RFQSETTLEMENTTYPE']._serialized_end=3951 + _globals['_RFQSETTLEMENTUNFILLEDACTIONTYPE']._serialized_start=3954 + _globals['_RFQSETTLEMENTUNFILLEDACTIONTYPE']._serialized_end=4132 + _globals['_RFQSETTLEMENTLIMITACTIONTYPE']._serialized_start=4134 + _globals['_RFQSETTLEMENTLIMITACTIONTYPE']._serialized_end=4186 + _globals['_RFQSETTLEMENTMARKETACTIONTYPE']._serialized_start=4188 + _globals['_RFQSETTLEMENTMARKETACTIONTYPE']._serialized_end=4219 + _globals['_STREAMSETTLEMENTREQUEST']._serialized_start=4221 + _globals['_STREAMSETTLEMENTREQUEST']._serialized_end=4276 + _globals['_STREAMSETTLEMENTRESPONSE']._serialized_start=4279 + _globals['_STREAMSETTLEMENTRESPONSE']._serialized_end=4418 + _globals['_CREATECONDITIONALORDERREQUEST']._serialized_start=4420 + _globals['_CREATECONDITIONALORDERREQUEST']._serialized_end=4545 + _globals['_CONDITIONALORDERINPUT']._serialized_start=4548 + _globals['_CONDITIONALORDERINPUT']._serialized_end=5216 + _globals['_CREATECONDITIONALORDERRESPONSE']._serialized_start=5218 + _globals['_CREATECONDITIONALORDERRESPONSE']._serialized_end=5321 + _globals['_CONDITIONALORDERRESPONSETYPE']._serialized_start=5324 + _globals['_CONDITIONALORDERRESPONSETYPE']._serialized_end=5716 + _globals['_LISTCONDITIONALORDERSREQUEST']._serialized_start=5719 + _globals['_LISTCONDITIONALORDERSREQUEST']._serialized_end=5892 + _globals['_LISTCONDITIONALORDERSRESPONSE']._serialized_start=5894 + _globals['_LISTCONDITIONALORDERSRESPONSE']._serialized_end=6018 + _globals['_TAKERSTREAMSTREAMINGREQUEST']._serialized_start=6021 + _globals['_TAKERSTREAMSTREAMINGREQUEST']._serialized_end=6303 + _globals['_CREATERFQREQUESTTYPE']._serialized_start=6306 + _globals['_CREATERFQREQUESTTYPE']._serialized_end=6558 + _globals['_TAKERSTREAMRESPONSE']._serialized_start=6561 + _globals['_TAKERSTREAMRESPONSE']._serialized_end=6888 + _globals['_REQUESTSTREAMACK']._serialized_start=6890 + _globals['_REQUESTSTREAMACK']._serialized_end=6984 + _globals['_STREAMERROR']._serialized_start=6986 + _globals['_STREAMERROR']._serialized_end=7046 + _globals['_CONDITIONALORDERACK']._serialized_start=7048 + _globals['_CONDITIONALORDERACK']._serialized_end=7140 + _globals['_MAKERSTREAMSTREAMINGREQUEST']._serialized_start=7142 + _globals['_MAKERSTREAMSTREAMINGREQUEST']._serialized_end=7261 + _globals['_MAKERSTREAMRESPONSE']._serialized_start=7264 + _globals['_MAKERSTREAMRESPONSE']._serialized_end=7659 + _globals['_QUOTESTREAMACK']._serialized_start=7661 + _globals['_QUOTESTREAMACK']._serialized_end=7724 + _globals['_RFQSETTLEMENTMAKERUPDATE']._serialized_start=7727 + _globals['_RFQSETTLEMENTMAKERUPDATE']._serialized_end=8362 + _globals['_RFQSETTLEMENTQUOTE']._serialized_start=8365 + _globals['_RFQSETTLEMENTQUOTE']._serialized_end=8727 + _globals['_INJECTIVERFQRPC']._serialized_start=8730 + _globals['_INJECTIVERFQRPC']._serialized_end=9782 +# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_rfqrpc_pb2_grpc.py b/pyinjective/proto/exchange/injective_rfq_rpc_pb2_grpc.py similarity index 66% rename from pyinjective/proto/exchange/injective_rfqrpc_pb2_grpc.py rename to pyinjective/proto/exchange/injective_rfq_rpc_pb2_grpc.py index 1c75c3a6..42157fe8 100644 --- a/pyinjective/proto/exchange/injective_rfqrpc_pb2_grpc.py +++ b/pyinjective/proto/exchange/injective_rfq_rpc_pb2_grpc.py @@ -2,11 +2,11 @@ """Client and server classes corresponding to protobuf-defined services.""" import grpc -from pyinjective.proto.exchange import injective_rfqrpc_pb2 as exchange_dot_injective__rfqrpc__pb2 +from pyinjective.proto.exchange import injective_rfq_rpc_pb2 as exchange_dot_injective__rfq__rpc__pb2 -class InjectiveRFQRPCStub(object): - """InjectiveRFQRPC defines gRPC API of the RFQ (Request for Quote) API. +class InjectiveRfqRPCStub(object): + """InjectiveRfqRPC defines gRPC API of the RFQ (Request for Quote) API. """ def __init__(self, channel): @@ -16,59 +16,59 @@ def __init__(self, channel): channel: A grpc.Channel. """ self.Request = channel.unary_unary( - '/injective_rfqrpc.InjectiveRFQRPC/Request', - request_serializer=exchange_dot_injective__rfqrpc__pb2.RequestRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.RequestResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/Request', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.RequestRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.RequestResponse.FromString, _registered_method=True) self.StreamRequest = channel.unary_stream( - '/injective_rfqrpc.InjectiveRFQRPC/StreamRequest', - request_serializer=exchange_dot_injective__rfqrpc__pb2.StreamRequestRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.StreamRequestResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/StreamRequest', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.StreamRequestRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.StreamRequestResponse.FromString, _registered_method=True) self.Quote = channel.unary_unary( - '/injective_rfqrpc.InjectiveRFQRPC/Quote', - request_serializer=exchange_dot_injective__rfqrpc__pb2.QuoteRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.QuoteResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/Quote', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.QuoteRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.QuoteResponse.FromString, _registered_method=True) self.StreamQuote = channel.unary_stream( - '/injective_rfqrpc.InjectiveRFQRPC/StreamQuote', - request_serializer=exchange_dot_injective__rfqrpc__pb2.StreamQuoteRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.StreamQuoteResponse.FromString, - _registered_method=True) - self.GetOpenRequests = channel.unary_unary( - '/injective_rfqrpc.InjectiveRFQRPC/GetOpenRequests', - request_serializer=exchange_dot_injective__rfqrpc__pb2.GetOpenRequestsRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.GetOpenRequestsResponse.FromString, - _registered_method=True) - self.GetPendingQuotes = channel.unary_unary( - '/injective_rfqrpc.InjectiveRFQRPC/GetPendingQuotes', - request_serializer=exchange_dot_injective__rfqrpc__pb2.GetPendingQuotesRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.GetPendingQuotesResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/StreamQuote', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.StreamQuoteRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.StreamQuoteResponse.FromString, _registered_method=True) self.ListSettlement = channel.unary_unary( - '/injective_rfqrpc.InjectiveRFQRPC/ListSettlement', - request_serializer=exchange_dot_injective__rfqrpc__pb2.ListSettlementRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.ListSettlementResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/ListSettlement', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.ListSettlementRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.ListSettlementResponse.FromString, _registered_method=True) self.StreamSettlement = channel.unary_stream( - '/injective_rfqrpc.InjectiveRFQRPC/StreamSettlement', - request_serializer=exchange_dot_injective__rfqrpc__pb2.StreamSettlementRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.StreamSettlementResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/StreamSettlement', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.StreamSettlementRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.StreamSettlementResponse.FromString, + _registered_method=True) + self.CreateConditionalOrder = channel.unary_unary( + '/injective_rfq_rpc.InjectiveRfqRPC/CreateConditionalOrder', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.CreateConditionalOrderRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.CreateConditionalOrderResponse.FromString, + _registered_method=True) + self.ListConditionalOrders = channel.unary_unary( + '/injective_rfq_rpc.InjectiveRfqRPC/ListConditionalOrders', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.ListConditionalOrdersRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.ListConditionalOrdersResponse.FromString, _registered_method=True) self.TakerStream = channel.stream_stream( - '/injective_rfqrpc.InjectiveRFQRPC/TakerStream', - request_serializer=exchange_dot_injective__rfqrpc__pb2.TakerStreamStreamingRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.TakerStreamResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/TakerStream', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.TakerStreamStreamingRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.TakerStreamResponse.FromString, _registered_method=True) self.MakerStream = channel.stream_stream( - '/injective_rfqrpc.InjectiveRFQRPC/MakerStream', - request_serializer=exchange_dot_injective__rfqrpc__pb2.MakerStreamStreamingRequest.SerializeToString, - response_deserializer=exchange_dot_injective__rfqrpc__pb2.MakerStreamResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/MakerStream', + request_serializer=exchange_dot_injective__rfq__rpc__pb2.MakerStreamStreamingRequest.SerializeToString, + response_deserializer=exchange_dot_injective__rfq__rpc__pb2.MakerStreamResponse.FromString, _registered_method=True) -class InjectiveRFQRPCServicer(object): - """InjectiveRFQRPC defines gRPC API of the RFQ (Request for Quote) API. +class InjectiveRfqRPCServicer(object): + """InjectiveRfqRPC defines gRPC API of the RFQ (Request for Quote) API. """ def Request(self, request, context): @@ -99,29 +99,29 @@ def StreamQuote(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def GetOpenRequests(self, request, context): - """Get open RFQ requests + def ListSettlement(self, request, context): + """List RFQ settlements """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def GetPendingQuotes(self, request, context): - """Get pending RFQ quotes + def StreamSettlement(self, request, context): + """Stream RFQ settlements """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def ListSettlement(self, request, context): - """List RFQ settlements + def CreateConditionalOrder(self, request, context): + """Create a conditional TP/SL order """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def StreamSettlement(self, request, context): - """Stream RFQ settlements + def ListConditionalOrders(self, request, context): + """List conditional TP/SL orders """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') @@ -142,68 +142,68 @@ def MakerStream(self, request_iterator, context): raise NotImplementedError('Method not implemented!') -def add_InjectiveRFQRPCServicer_to_server(servicer, server): +def add_InjectiveRfqRPCServicer_to_server(servicer, server): rpc_method_handlers = { 'Request': grpc.unary_unary_rpc_method_handler( servicer.Request, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.RequestRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.RequestResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.RequestRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.RequestResponse.SerializeToString, ), 'StreamRequest': grpc.unary_stream_rpc_method_handler( servicer.StreamRequest, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.StreamRequestRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.StreamRequestResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.StreamRequestRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.StreamRequestResponse.SerializeToString, ), 'Quote': grpc.unary_unary_rpc_method_handler( servicer.Quote, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.QuoteRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.QuoteResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.QuoteRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.QuoteResponse.SerializeToString, ), 'StreamQuote': grpc.unary_stream_rpc_method_handler( servicer.StreamQuote, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.StreamQuoteRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.StreamQuoteResponse.SerializeToString, - ), - 'GetOpenRequests': grpc.unary_unary_rpc_method_handler( - servicer.GetOpenRequests, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.GetOpenRequestsRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.GetOpenRequestsResponse.SerializeToString, - ), - 'GetPendingQuotes': grpc.unary_unary_rpc_method_handler( - servicer.GetPendingQuotes, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.GetPendingQuotesRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.GetPendingQuotesResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.StreamQuoteRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.StreamQuoteResponse.SerializeToString, ), 'ListSettlement': grpc.unary_unary_rpc_method_handler( servicer.ListSettlement, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.ListSettlementRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.ListSettlementResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.ListSettlementRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.ListSettlementResponse.SerializeToString, ), 'StreamSettlement': grpc.unary_stream_rpc_method_handler( servicer.StreamSettlement, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.StreamSettlementRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.StreamSettlementResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.StreamSettlementRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.StreamSettlementResponse.SerializeToString, + ), + 'CreateConditionalOrder': grpc.unary_unary_rpc_method_handler( + servicer.CreateConditionalOrder, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.CreateConditionalOrderRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.CreateConditionalOrderResponse.SerializeToString, + ), + 'ListConditionalOrders': grpc.unary_unary_rpc_method_handler( + servicer.ListConditionalOrders, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.ListConditionalOrdersRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.ListConditionalOrdersResponse.SerializeToString, ), 'TakerStream': grpc.stream_stream_rpc_method_handler( servicer.TakerStream, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.TakerStreamStreamingRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.TakerStreamResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.TakerStreamStreamingRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.TakerStreamResponse.SerializeToString, ), 'MakerStream': grpc.stream_stream_rpc_method_handler( servicer.MakerStream, - request_deserializer=exchange_dot_injective__rfqrpc__pb2.MakerStreamStreamingRequest.FromString, - response_serializer=exchange_dot_injective__rfqrpc__pb2.MakerStreamResponse.SerializeToString, + request_deserializer=exchange_dot_injective__rfq__rpc__pb2.MakerStreamStreamingRequest.FromString, + response_serializer=exchange_dot_injective__rfq__rpc__pb2.MakerStreamResponse.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( - 'injective_rfqrpc.InjectiveRFQRPC', rpc_method_handlers) + 'injective_rfq_rpc.InjectiveRfqRPC', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('injective_rfqrpc.InjectiveRFQRPC', rpc_method_handlers) + server.add_registered_method_handlers('injective_rfq_rpc.InjectiveRfqRPC', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. -class InjectiveRFQRPC(object): - """InjectiveRFQRPC defines gRPC API of the RFQ (Request for Quote) API. +class InjectiveRfqRPC(object): + """InjectiveRfqRPC defines gRPC API of the RFQ (Request for Quote) API. """ @staticmethod @@ -220,9 +220,9 @@ def Request(request, return grpc.experimental.unary_unary( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/Request', - exchange_dot_injective__rfqrpc__pb2.RequestRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.RequestResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/Request', + exchange_dot_injective__rfq__rpc__pb2.RequestRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.RequestResponse.FromString, options, channel_credentials, insecure, @@ -247,9 +247,9 @@ def StreamRequest(request, return grpc.experimental.unary_stream( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/StreamRequest', - exchange_dot_injective__rfqrpc__pb2.StreamRequestRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.StreamRequestResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/StreamRequest', + exchange_dot_injective__rfq__rpc__pb2.StreamRequestRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.StreamRequestResponse.FromString, options, channel_credentials, insecure, @@ -274,9 +274,9 @@ def Quote(request, return grpc.experimental.unary_unary( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/Quote', - exchange_dot_injective__rfqrpc__pb2.QuoteRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.QuoteResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/Quote', + exchange_dot_injective__rfq__rpc__pb2.QuoteRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.QuoteResponse.FromString, options, channel_credentials, insecure, @@ -301,9 +301,9 @@ def StreamQuote(request, return grpc.experimental.unary_stream( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/StreamQuote', - exchange_dot_injective__rfqrpc__pb2.StreamQuoteRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.StreamQuoteResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/StreamQuote', + exchange_dot_injective__rfq__rpc__pb2.StreamQuoteRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.StreamQuoteResponse.FromString, options, channel_credentials, insecure, @@ -315,7 +315,7 @@ def StreamQuote(request, _registered_method=True) @staticmethod - def GetOpenRequests(request, + def ListSettlement(request, target, options=(), channel_credentials=None, @@ -328,9 +328,9 @@ def GetOpenRequests(request, return grpc.experimental.unary_unary( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/GetOpenRequests', - exchange_dot_injective__rfqrpc__pb2.GetOpenRequestsRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.GetOpenRequestsResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/ListSettlement', + exchange_dot_injective__rfq__rpc__pb2.ListSettlementRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.ListSettlementResponse.FromString, options, channel_credentials, insecure, @@ -342,7 +342,7 @@ def GetOpenRequests(request, _registered_method=True) @staticmethod - def GetPendingQuotes(request, + def StreamSettlement(request, target, options=(), channel_credentials=None, @@ -352,12 +352,12 @@ def GetPendingQuotes(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary( + return grpc.experimental.unary_stream( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/GetPendingQuotes', - exchange_dot_injective__rfqrpc__pb2.GetPendingQuotesRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.GetPendingQuotesResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/StreamSettlement', + exchange_dot_injective__rfq__rpc__pb2.StreamSettlementRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.StreamSettlementResponse.FromString, options, channel_credentials, insecure, @@ -369,7 +369,7 @@ def GetPendingQuotes(request, _registered_method=True) @staticmethod - def ListSettlement(request, + def CreateConditionalOrder(request, target, options=(), channel_credentials=None, @@ -382,9 +382,9 @@ def ListSettlement(request, return grpc.experimental.unary_unary( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/ListSettlement', - exchange_dot_injective__rfqrpc__pb2.ListSettlementRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.ListSettlementResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/CreateConditionalOrder', + exchange_dot_injective__rfq__rpc__pb2.CreateConditionalOrderRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.CreateConditionalOrderResponse.FromString, options, channel_credentials, insecure, @@ -396,7 +396,7 @@ def ListSettlement(request, _registered_method=True) @staticmethod - def StreamSettlement(request, + def ListConditionalOrders(request, target, options=(), channel_credentials=None, @@ -406,12 +406,12 @@ def StreamSettlement(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream( + return grpc.experimental.unary_unary( request, target, - '/injective_rfqrpc.InjectiveRFQRPC/StreamSettlement', - exchange_dot_injective__rfqrpc__pb2.StreamSettlementRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.StreamSettlementResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/ListConditionalOrders', + exchange_dot_injective__rfq__rpc__pb2.ListConditionalOrdersRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.ListConditionalOrdersResponse.FromString, options, channel_credentials, insecure, @@ -436,9 +436,9 @@ def TakerStream(request_iterator, return grpc.experimental.stream_stream( request_iterator, target, - '/injective_rfqrpc.InjectiveRFQRPC/TakerStream', - exchange_dot_injective__rfqrpc__pb2.TakerStreamStreamingRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.TakerStreamResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/TakerStream', + exchange_dot_injective__rfq__rpc__pb2.TakerStreamStreamingRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.TakerStreamResponse.FromString, options, channel_credentials, insecure, @@ -463,9 +463,9 @@ def MakerStream(request_iterator, return grpc.experimental.stream_stream( request_iterator, target, - '/injective_rfqrpc.InjectiveRFQRPC/MakerStream', - exchange_dot_injective__rfqrpc__pb2.MakerStreamStreamingRequest.SerializeToString, - exchange_dot_injective__rfqrpc__pb2.MakerStreamResponse.FromString, + '/injective_rfq_rpc.InjectiveRfqRPC/MakerStream', + exchange_dot_injective__rfq__rpc__pb2.MakerStreamStreamingRequest.SerializeToString, + exchange_dot_injective__rfq__rpc__pb2.MakerStreamResponse.FromString, options, channel_credentials, insecure, diff --git a/pyinjective/proto/exchange/injective_rfqrpc_pb2.py b/pyinjective/proto/exchange/injective_rfqrpc_pb2.py deleted file mode 100644 index 0aafda5e..00000000 --- a/pyinjective/proto/exchange/injective_rfqrpc_pb2.py +++ /dev/null @@ -1,85 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: exchange/injective_rfqrpc.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x65xchange/injective_rfqrpc.proto\x12\x10injective_rfqrpc\"L\n\x0eRequestRequest\x12:\n\x07request\x18\x01 \x01(\x0b\x32 .injective_rfqrpc.RFQRequestTypeR\x07request\"\x91\x03\n\x0eRFQRequestType\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x04 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x06 \x01(\tR\nworstPrice\x12\'\n\x0frequest_address\x18\x07 \x01(\tR\x0erequestAddress\x12\x16\n\x06\x65xpiry\x18\x08 \x01(\x04R\x06\x65xpiry\x12\x16\n\x06status\x18\t \x01(\tR\x06status\x12\x1d\n\ncreated_at\x18\n \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0b \x01(\x12R\tupdatedAt\x12)\n\x10transaction_time\x18\x0c \x01(\x04R\x0ftransactionTime\x12\x16\n\x06height\x18\r \x01(\x04R\x06height\")\n\x0fRequestResponse\x12\x16\n\x06status\x18\x01 \x01(\tR\x06status\"5\n\x14StreamRequestRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\"~\n\x15StreamRequestResponse\x12:\n\x07request\x18\x01 \x01(\x0b\x32 .injective_rfqrpc.RFQRequestTypeR\x07request\x12)\n\x10stream_operation\x18\x02 \x01(\tR\x0fstreamOperation\"D\n\x0cQuoteRequest\x12\x34\n\x05quote\x18\x01 \x01(\x0b\x32\x1e.injective_rfqrpc.RFQQuoteTypeR\x05quote\"\x95\x04\n\x0cRFQQuoteType\x12\x19\n\x08\x63hain_id\x18\x01 \x01(\tR\x07\x63hainId\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x15\n\x06rfq_id\x18\x04 \x01(\x04R\x05rfqId\x12\'\n\x0ftaker_direction\x18\x05 \x01(\tR\x0etakerDirection\x12\x16\n\x06margin\x18\x06 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x07 \x01(\tR\x08quantity\x12\x14\n\x05price\x18\x08 \x01(\tR\x05price\x12\x16\n\x06\x65xpiry\x18\t \x01(\x04R\x06\x65xpiry\x12\x14\n\x05maker\x18\n \x01(\tR\x05maker\x12\x14\n\x05taker\x18\x0b \x01(\tR\x05taker\x12\x1c\n\tsignature\x18\x0c \x01(\tR\tsignature\x12\x16\n\x06status\x18\r \x01(\tR\x06status\x12\x1d\n\ncreated_at\x18\x0e \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0f \x01(\x12R\tupdatedAt\x12\x16\n\x06height\x18\x10 \x01(\x04R\x06height\x12\x1d\n\nevent_time\x18\x11 \x01(\x04R\teventTime\x12)\n\x10transaction_time\x18\x12 \x01(\x04R\x0ftransactionTime\"\'\n\rQuoteResponse\x12\x16\n\x06status\x18\x01 \x01(\tR\x06status\"2\n\x12StreamQuoteRequest\x12\x1c\n\taddresses\x18\x01 \x03(\tR\taddresses\"v\n\x13StreamQuoteResponse\x12\x34\n\x05quote\x18\x01 \x01(\x0b\x32\x1e.injective_rfqrpc.RFQQuoteTypeR\x05quote\x12)\n\x10stream_operation\x18\x02 \x01(\tR\x0fstreamOperation\"\x18\n\x16GetOpenRequestsRequest\"W\n\x17GetOpenRequestsResponse\x12<\n\x08requests\x18\x01 \x03(\x0b\x32 .injective_rfqrpc.RFQRequestTypeR\x08requests\"\x19\n\x17GetPendingQuotesRequest\"R\n\x18GetPendingQuotesResponse\x12\x36\n\x06quotes\x18\x01 \x03(\x0b\x32\x1e.injective_rfqrpc.RFQQuoteTypeR\x06quotes\"_\n\x15ListSettlementRequest\x12\x1c\n\taddresses\x18\x01 \x03(\tR\taddresses\x12\x12\n\x04skip\x18\x02 \x01(\x12R\x04skip\x12\x14\n\x05limit\x18\x03 \x01(\x12R\x05limit\"u\n\x16ListSettlementResponse\x12\x45\n\x0bsettlements\x18\x01 \x03(\x0b\x32#.injective_rfqrpc.RFQSettlementTypeR\x0bsettlements\x12\x14\n\x05total\x18\x02 \x01(\x12R\x05total\"\xa2\x04\n\x11RFQSettlementType\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x14\n\x05taker\x18\x03 \x01(\tR\x05taker\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x05 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x06 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x07 \x01(\tR\nworstPrice\x12Z\n\x0funfilled_action\x18\x08 \x01(\x0b\x32\x31.injective_rfqrpc.RFQSettlementUnfilledActionTypeR\x0eunfilledAction\x12+\n\x11\x66\x61llback_quantity\x18\t \x01(\tR\x10\x66\x61llbackQuantity\x12\'\n\x0f\x66\x61llback_margin\x18\n \x01(\tR\x0e\x66\x61llbackMargin\x12)\n\x10transaction_time\x18\x0b \x01(\x04R\x0ftransactionTime\x12\x1d\n\ncreated_at\x18\x0c \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\r \x01(\x12R\tupdatedAt\x12\x1d\n\nevent_time\x18\x0e \x01(\x04R\teventTime\x12\x16\n\x06height\x18\x0f \x01(\x04R\x06height\"\xb0\x01\n\x1fRFQSettlementUnfilledActionType\x12\x44\n\x05limit\x18\x01 \x01(\x0b\x32..injective_rfqrpc.RFQSettlementLimitActionTypeR\x05limit\x12G\n\x06market\x18\x02 \x01(\x0b\x32/.injective_rfqrpc.RFQSettlementMarketActionTypeR\x06market\"4\n\x1cRFQSettlementLimitActionType\x12\x14\n\x05price\x18\x01 \x01(\tR\x05price\"\x1f\n\x1dRFQSettlementMarketActionType\"7\n\x17StreamSettlementRequest\x12\x1c\n\taddresses\x18\x01 \x03(\tR\taddresses\"\x8a\x01\n\x18StreamSettlementResponse\x12\x43\n\nsettlement\x18\x01 \x01(\x0b\x32#.injective_rfqrpc.RFQSettlementTypeR\nsettlement\x12)\n\x10stream_operation\x18\x02 \x01(\tR\x0fstreamOperation\"\x82\x01\n\x1bTakerStreamStreamingRequest\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12@\n\x07request\x18\x02 \x01(\x0b\x32&.injective_rfqrpc.CreateRFQRequestTypeR\x07request\"\xee\x02\n\x14\x43reateRFQRequestType\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1c\n\tdirection\x18\x03 \x01(\tR\tdirection\x12\x16\n\x06margin\x18\x04 \x01(\tR\x06margin\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0bworst_price\x18\x06 \x01(\tR\nworstPrice\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x04R\x06\x65xpiry\x12\x16\n\x06status\x18\x08 \x01(\tR\x06status\x12\x1d\n\ncreated_at\x18\t \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\n \x01(\x12R\tupdatedAt\x12)\n\x10transaction_time\x18\x0b \x01(\x04R\x0ftransactionTime\x12\x16\n\x06height\x18\x0c \x01(\x04R\x06height\"\xe1\x01\n\x13TakerStreamResponse\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12\x34\n\x05quote\x18\x02 \x01(\x0b\x32\x1e.injective_rfqrpc.RFQQuoteTypeR\x05quote\x12<\n\x0brequest_ack\x18\x03 \x01(\x0b\x32\x1b.injective_rfqrpc.StreamAckR\nrequestAck\x12\x33\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1d.injective_rfqrpc.StreamErrorR\x05\x65rror\":\n\tStreamAck\x12\x15\n\x06rfq_id\x18\x01 \x01(\x04R\x05rfqId\x12\x16\n\x06status\x18\x02 \x01(\tR\x06status\"<\n\x0bStreamError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x19\n\x08message_\x18\x02 \x01(\tR\x07message\"v\n\x1bMakerStreamStreamingRequest\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12\x34\n\x05quote\x18\x02 \x01(\x0b\x32\x1e.injective_rfqrpc.RFQQuoteTypeR\x05quote\"\xe3\x01\n\x13MakerStreamResponse\x12!\n\x0cmessage_type\x18\x01 \x01(\tR\x0bmessageType\x12:\n\x07request\x18\x02 \x01(\x0b\x32 .injective_rfqrpc.RFQRequestTypeR\x07request\x12\x38\n\tquote_ack\x18\x03 \x01(\x0b\x32\x1b.injective_rfqrpc.StreamAckR\x08quoteAck\x12\x33\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x1d.injective_rfqrpc.StreamErrorR\x05\x65rror2\xe4\x07\n\x0fInjectiveRFQRPC\x12N\n\x07Request\x12 .injective_rfqrpc.RequestRequest\x1a!.injective_rfqrpc.RequestResponse\x12\x62\n\rStreamRequest\x12&.injective_rfqrpc.StreamRequestRequest\x1a\'.injective_rfqrpc.StreamRequestResponse0\x01\x12H\n\x05Quote\x12\x1e.injective_rfqrpc.QuoteRequest\x1a\x1f.injective_rfqrpc.QuoteResponse\x12\\\n\x0bStreamQuote\x12$.injective_rfqrpc.StreamQuoteRequest\x1a%.injective_rfqrpc.StreamQuoteResponse0\x01\x12\x66\n\x0fGetOpenRequests\x12(.injective_rfqrpc.GetOpenRequestsRequest\x1a).injective_rfqrpc.GetOpenRequestsResponse\x12i\n\x10GetPendingQuotes\x12).injective_rfqrpc.GetPendingQuotesRequest\x1a*.injective_rfqrpc.GetPendingQuotesResponse\x12\x63\n\x0eListSettlement\x12\'.injective_rfqrpc.ListSettlementRequest\x1a(.injective_rfqrpc.ListSettlementResponse\x12k\n\x10StreamSettlement\x12).injective_rfqrpc.StreamSettlementRequest\x1a*.injective_rfqrpc.StreamSettlementResponse0\x01\x12g\n\x0bTakerStream\x12-.injective_rfqrpc.TakerStreamStreamingRequest\x1a%.injective_rfqrpc.TakerStreamResponse(\x01\x30\x01\x12g\n\x0bMakerStream\x12-.injective_rfqrpc.MakerStreamStreamingRequest\x1a%.injective_rfqrpc.MakerStreamResponse(\x01\x30\x01\x42\x9d\x01\n\x14\x63om.injective_rfqrpcB\x14InjectiveRfqrpcProtoP\x01Z\x13/injective_rfqrpcpb\xa2\x02\x03IXX\xaa\x02\x0fInjectiveRfqrpc\xca\x02\x0fInjectiveRfqrpc\xe2\x02\x1bInjectiveRfqrpc\\GPBMetadata\xea\x02\x0fInjectiveRfqrpcb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'exchange.injective_rfqrpc_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\024com.injective_rfqrpcB\024InjectiveRfqrpcProtoP\001Z\023/injective_rfqrpcpb\242\002\003IXX\252\002\017InjectiveRfqrpc\312\002\017InjectiveRfqrpc\342\002\033InjectiveRfqrpc\\GPBMetadata\352\002\017InjectiveRfqrpc' - _globals['_REQUESTREQUEST']._serialized_start=53 - _globals['_REQUESTREQUEST']._serialized_end=129 - _globals['_RFQREQUESTTYPE']._serialized_start=132 - _globals['_RFQREQUESTTYPE']._serialized_end=533 - _globals['_REQUESTRESPONSE']._serialized_start=535 - _globals['_REQUESTRESPONSE']._serialized_end=576 - _globals['_STREAMREQUESTREQUEST']._serialized_start=578 - _globals['_STREAMREQUESTREQUEST']._serialized_end=631 - _globals['_STREAMREQUESTRESPONSE']._serialized_start=633 - _globals['_STREAMREQUESTRESPONSE']._serialized_end=759 - _globals['_QUOTEREQUEST']._serialized_start=761 - _globals['_QUOTEREQUEST']._serialized_end=829 - _globals['_RFQQUOTETYPE']._serialized_start=832 - _globals['_RFQQUOTETYPE']._serialized_end=1365 - _globals['_QUOTERESPONSE']._serialized_start=1367 - _globals['_QUOTERESPONSE']._serialized_end=1406 - _globals['_STREAMQUOTEREQUEST']._serialized_start=1408 - _globals['_STREAMQUOTEREQUEST']._serialized_end=1458 - _globals['_STREAMQUOTERESPONSE']._serialized_start=1460 - _globals['_STREAMQUOTERESPONSE']._serialized_end=1578 - _globals['_GETOPENREQUESTSREQUEST']._serialized_start=1580 - _globals['_GETOPENREQUESTSREQUEST']._serialized_end=1604 - _globals['_GETOPENREQUESTSRESPONSE']._serialized_start=1606 - _globals['_GETOPENREQUESTSRESPONSE']._serialized_end=1693 - _globals['_GETPENDINGQUOTESREQUEST']._serialized_start=1695 - _globals['_GETPENDINGQUOTESREQUEST']._serialized_end=1720 - _globals['_GETPENDINGQUOTESRESPONSE']._serialized_start=1722 - _globals['_GETPENDINGQUOTESRESPONSE']._serialized_end=1804 - _globals['_LISTSETTLEMENTREQUEST']._serialized_start=1806 - _globals['_LISTSETTLEMENTREQUEST']._serialized_end=1901 - _globals['_LISTSETTLEMENTRESPONSE']._serialized_start=1903 - _globals['_LISTSETTLEMENTRESPONSE']._serialized_end=2020 - _globals['_RFQSETTLEMENTTYPE']._serialized_start=2023 - _globals['_RFQSETTLEMENTTYPE']._serialized_end=2569 - _globals['_RFQSETTLEMENTUNFILLEDACTIONTYPE']._serialized_start=2572 - _globals['_RFQSETTLEMENTUNFILLEDACTIONTYPE']._serialized_end=2748 - _globals['_RFQSETTLEMENTLIMITACTIONTYPE']._serialized_start=2750 - _globals['_RFQSETTLEMENTLIMITACTIONTYPE']._serialized_end=2802 - _globals['_RFQSETTLEMENTMARKETACTIONTYPE']._serialized_start=2804 - _globals['_RFQSETTLEMENTMARKETACTIONTYPE']._serialized_end=2835 - _globals['_STREAMSETTLEMENTREQUEST']._serialized_start=2837 - _globals['_STREAMSETTLEMENTREQUEST']._serialized_end=2892 - _globals['_STREAMSETTLEMENTRESPONSE']._serialized_start=2895 - _globals['_STREAMSETTLEMENTRESPONSE']._serialized_end=3033 - _globals['_TAKERSTREAMSTREAMINGREQUEST']._serialized_start=3036 - _globals['_TAKERSTREAMSTREAMINGREQUEST']._serialized_end=3166 - _globals['_CREATERFQREQUESTTYPE']._serialized_start=3169 - _globals['_CREATERFQREQUESTTYPE']._serialized_end=3535 - _globals['_TAKERSTREAMRESPONSE']._serialized_start=3538 - _globals['_TAKERSTREAMRESPONSE']._serialized_end=3763 - _globals['_STREAMACK']._serialized_start=3765 - _globals['_STREAMACK']._serialized_end=3823 - _globals['_STREAMERROR']._serialized_start=3825 - _globals['_STREAMERROR']._serialized_end=3885 - _globals['_MAKERSTREAMSTREAMINGREQUEST']._serialized_start=3887 - _globals['_MAKERSTREAMSTREAMINGREQUEST']._serialized_end=4005 - _globals['_MAKERSTREAMRESPONSE']._serialized_start=4008 - _globals['_MAKERSTREAMRESPONSE']._serialized_end=4235 - _globals['_INJECTIVERFQRPC']._serialized_start=4238 - _globals['_INJECTIVERFQRPC']._serialized_end=5234 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_tc_derivatives_rpc_pb2.py b/pyinjective/proto/exchange/injective_tc_derivatives_rpc_pb2.py new file mode 100644 index 00000000..c3383818 --- /dev/null +++ b/pyinjective/proto/exchange/injective_tc_derivatives_rpc_pb2.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: exchange/injective_tc_derivatives_rpc.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+exchange/injective_tc_derivatives_rpc.proto\x12\x1cinjective_tc_derivatives_rpc\"\xad\x01\n\x14OrdersHistoryRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x02 \x01(\tR\tdirection\x12\'\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x19\n\x08per_page\x18\x04 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\"\x7f\n\x15OrdersHistoryResponse\x12R\n\x06orders\x18\x01 \x03(\x0b\x32:.injective_tc_derivatives_rpc.TCDerivativeOrderHistoryTypeR\x06orders\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\"\xaf\x05\n\x1cTCDerivativeOrderHistoryType\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x1b\n\tis_active\x18\x03 \x01(\x08R\x08isActive\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12%\n\x0e\x65xecution_type\x18\x05 \x01(\tR\rexecutionType\x12\x1d\n\norder_type\x18\x06 \x01(\tR\torderType\x12\x14\n\x05price\x18\x07 \x01(\tR\x05price\x12#\n\rtrigger_price\x18\x08 \x01(\tR\x0ctriggerPrice\x12\x1a\n\x08quantity\x18\t \x01(\tR\x08quantity\x12\'\n\x0f\x66illed_quantity\x18\n \x01(\tR\x0e\x66illedQuantity\x12\x14\n\x05state\x18\x0b \x01(\tR\x05state\x12\x1d\n\ncreated_at\x18\x0c \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\r \x01(\x12R\tupdatedAt\x12$\n\x0eis_reduce_only\x18\x0e \x01(\x08R\x0cisReduceOnly\x12\x1c\n\tdirection\x18\x0f \x01(\tR\tdirection\x12%\n\x0eis_conditional\x18\x10 \x01(\x08R\risConditional\x12\x1d\n\ntrigger_at\x18\x11 \x01(\x04R\ttriggerAt\x12*\n\x11placed_order_hash\x18\x12 \x01(\tR\x0fplacedOrderHash\x12\x16\n\x06margin\x18\x13 \x01(\tR\x06margin\x12\x17\n\x07tx_hash\x18\x14 \x01(\tR\x06txHash\x12\x10\n\x03\x63id\x18\x15 \x01(\tR\x03\x63id\"d\n\x1aStreamOrdersHistoryRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\tR\x0e\x61\x63\x63ountAddress\"\xb4\x01\n\x1bStreamOrdersHistoryResponse\x12P\n\x05order\x18\x01 \x01(\x0b\x32:.injective_tc_derivatives_rpc.TCDerivativeOrderHistoryTypeR\x05order\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xa6\x01\n\rOrdersRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x02 \x01(\tR\tdirection\x12\'\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x19\n\x08per_page\x18\x04 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\"p\n\x0eOrdersResponse\x12J\n\x06orders\x18\x01 \x03(\x0b\x32\x32.injective_tc_derivatives_rpc.DerivativeLimitOrderR\x06orders\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\"\xd7\x05\n\x14\x44\x65rivativeLimitOrder\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12\x1d\n\norder_side\x18\x02 \x01(\tR\torderSide\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x04 \x01(\tR\x0csubaccountId\x12$\n\x0eis_reduce_only\x18\x05 \x01(\x08R\x0cisReduceOnly\x12\x16\n\x06margin\x18\x06 \x01(\tR\x06margin\x12\x14\n\x05price\x18\x07 \x01(\tR\x05price\x12\x1a\n\x08quantity\x18\x08 \x01(\tR\x08quantity\x12+\n\x11unfilled_quantity\x18\t \x01(\tR\x10unfilledQuantity\x12#\n\rtrigger_price\x18\n \x01(\tR\x0ctriggerPrice\x12#\n\rfee_recipient\x18\x0b \x01(\tR\x0c\x66\x65\x65Recipient\x12\x14\n\x05state\x18\x0c \x01(\tR\x05state\x12\x1d\n\ncreated_at\x18\r \x01(\x12R\tcreatedAt\x12\x1d\n\nupdated_at\x18\x0e \x01(\x12R\tupdatedAt\x12!\n\x0corder_number\x18\x0f \x01(\x12R\x0borderNumber\x12\x1d\n\norder_type\x18\x10 \x01(\tR\torderType\x12%\n\x0eis_conditional\x18\x11 \x01(\x08R\risConditional\x12\x1d\n\ntrigger_at\x18\x12 \x01(\x04R\ttriggerAt\x12*\n\x11placed_order_hash\x18\x13 \x01(\tR\x0fplacedOrderHash\x12%\n\x0e\x65xecution_type\x18\x14 \x01(\tR\rexecutionType\x12\x17\n\x07tx_hash\x18\x15 \x01(\tR\x06txHash\x12\x10\n\x03\x63id\x18\x16 \x01(\tR\x03\x63id\"]\n\x13StreamOrdersRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\tR\x0e\x61\x63\x63ountAddress\"\xa5\x01\n\x14StreamOrdersResponse\x12H\n\x05order\x18\x01 \x01(\x0b\x32\x32.injective_tc_derivatives_rpc.DerivativeLimitOrderR\x05order\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xa6\x01\n\rTradesRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x02 \x01(\tR\tdirection\x12\'\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x19\n\x08per_page\x18\x04 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\"k\n\x0eTradesResponse\x12\x45\n\x06trades\x18\x01 \x03(\x0b\x32-.injective_tc_derivatives_rpc.DerivativeTradeR\x06trades\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\"\xf5\x03\n\x0f\x44\x65rivativeTrade\x12\x1d\n\norder_hash\x18\x01 \x01(\tR\torderHash\x12#\n\rsubaccount_id\x18\x02 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x03 \x01(\tR\x08marketId\x12\x30\n\x14trade_execution_type\x18\x04 \x01(\tR\x12tradeExecutionType\x12%\n\x0eis_liquidation\x18\x05 \x01(\x08R\risLiquidation\x12R\n\x0eposition_delta\x18\x06 \x01(\x0b\x32+.injective_tc_derivatives_rpc.PositionDeltaR\rpositionDelta\x12\x16\n\x06payout\x18\x07 \x01(\tR\x06payout\x12\x10\n\x03\x66\x65\x65\x18\x08 \x01(\tR\x03\x66\x65\x65\x12\x1f\n\x0b\x65xecuted_at\x18\t \x01(\x12R\nexecutedAt\x12#\n\rfee_recipient\x18\n \x01(\tR\x0c\x66\x65\x65Recipient\x12\x19\n\x08trade_id\x18\x0b \x01(\tR\x07tradeId\x12%\n\x0e\x65xecution_side\x18\x0c \x01(\tR\rexecutionSide\x12\x10\n\x03\x63id\x18\r \x01(\tR\x03\x63id\x12\x10\n\x03pnl\x18\x0e \x01(\tR\x03pnl\"\xbb\x01\n\rPositionDelta\x12\'\n\x0ftrade_direction\x18\x01 \x01(\tR\x0etradeDirection\x12\'\n\x0f\x65xecution_price\x18\x02 \x01(\tR\x0e\x65xecutionPrice\x12-\n\x12\x65xecution_quantity\x18\x03 \x01(\tR\x11\x65xecutionQuantity\x12)\n\x10\x65xecution_margin\x18\x04 \x01(\tR\x0f\x65xecutionMargin\"]\n\x13StreamTradesRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\tR\x0e\x61\x63\x63ountAddress\"\xa0\x01\n\x14StreamTradesResponse\x12\x43\n\x05trade\x18\x01 \x01(\x0b\x32-.injective_tc_derivatives_rpc.DerivativeTradeR\x05trade\x12%\n\x0eoperation_type\x18\x02 \x01(\tR\roperationType\x12\x1c\n\ttimestamp\x18\x03 \x01(\x12R\ttimestamp\"\xe5\x01\n\x10PositionsRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\x1c\n\tdirection\x18\x02 \x01(\tR\tdirection\x12\'\n\x0f\x61\x63\x63ount_address\x18\x03 \x01(\tR\x0e\x61\x63\x63ountAddress\x12\x1d\n\nwith_count\x18\x04 \x01(\x08R\twithCount\x12\x19\n\x08per_page\x18\x05 \x01(\x11R\x07perPage\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x1b\n\twith_upnl\x18\x07 \x01(\x08R\x08withUpnl\"\x8f\x01\n\x11PositionsResponse\x12P\n\tpositions\x18\x01 \x03(\x0b\x32\x32.injective_tc_derivatives_rpc.DerivativePositionV2R\tpositions\x12\x12\n\x04next\x18\x02 \x03(\tR\x04next\x12\x14\n\x05total\x18\x03 \x01(\x04R\x05total\"\xc3\x04\n\x14\x44\x65rivativePositionV2\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12#\n\rsubaccount_id\x18\x03 \x01(\tR\x0csubaccountId\x12\x1c\n\tdirection\x18\x04 \x01(\tR\tdirection\x12\x1a\n\x08quantity\x18\x05 \x01(\tR\x08quantity\x12\x1f\n\x0b\x65ntry_price\x18\x06 \x01(\tR\nentryPrice\x12\x16\n\x06margin\x18\x07 \x01(\tR\x06margin\x12+\n\x11liquidation_price\x18\x08 \x01(\tR\x10liquidationPrice\x12\x1d\n\nmark_price\x18\t \x01(\tR\tmarkPrice\x12\x1d\n\nupdated_at\x18\x0b \x01(\x12R\tupdatedAt\x12\x14\n\x05\x64\x65nom\x18\x0c \x01(\tR\x05\x64\x65nom\x12!\n\x0c\x66unding_last\x18\r \x01(\tR\x0b\x66undingLast\x12\x1f\n\x0b\x66unding_sum\x18\x0e \x01(\tR\nfundingSum\x12\x38\n\x18\x63umulative_funding_entry\x18\x0f \x01(\tR\x16\x63umulativeFundingEntry\x12K\n\"effective_cumulative_funding_entry\x18\x10 \x01(\tR\x1f\x65\x66\x66\x65\x63tiveCumulativeFundingEntry\x12\x12\n\x04upnl\x18\x11 \x01(\tR\x04upnl\"`\n\x16StreamPositionsRequest\x12\x1d\n\nmarket_ids\x18\x01 \x03(\tR\tmarketIds\x12\'\n\x0f\x61\x63\x63ount_address\x18\x02 \x01(\tR\x0e\x61\x63\x63ountAddress\"\x87\x01\n\x17StreamPositionsResponse\x12N\n\x08position\x18\x01 \x01(\x0b\x32\x32.injective_tc_derivatives_rpc.DerivativePositionV2R\x08position\x12\x1c\n\ttimestamp\x18\x02 \x01(\x12R\ttimestamp2\xd1\x07\n\x19InjectiveTCDerivativesRPC\x12x\n\rOrdersHistory\x12\x32.injective_tc_derivatives_rpc.OrdersHistoryRequest\x1a\x33.injective_tc_derivatives_rpc.OrdersHistoryResponse\x12\x8c\x01\n\x13StreamOrdersHistory\x12\x38.injective_tc_derivatives_rpc.StreamOrdersHistoryRequest\x1a\x39.injective_tc_derivatives_rpc.StreamOrdersHistoryResponse0\x01\x12\x63\n\x06Orders\x12+.injective_tc_derivatives_rpc.OrdersRequest\x1a,.injective_tc_derivatives_rpc.OrdersResponse\x12w\n\x0cStreamOrders\x12\x31.injective_tc_derivatives_rpc.StreamOrdersRequest\x1a\x32.injective_tc_derivatives_rpc.StreamOrdersResponse0\x01\x12\x63\n\x06Trades\x12+.injective_tc_derivatives_rpc.TradesRequest\x1a,.injective_tc_derivatives_rpc.TradesResponse\x12w\n\x0cStreamTrades\x12\x31.injective_tc_derivatives_rpc.StreamTradesRequest\x1a\x32.injective_tc_derivatives_rpc.StreamTradesResponse0\x01\x12l\n\tPositions\x12..injective_tc_derivatives_rpc.PositionsRequest\x1a/.injective_tc_derivatives_rpc.PositionsResponse\x12\x80\x01\n\x0fStreamPositions\x12\x34.injective_tc_derivatives_rpc.StreamPositionsRequest\x1a\x35.injective_tc_derivatives_rpc.StreamPositionsResponse0\x01\x42\xe7\x01\n com.injective_tc_derivatives_rpcB\x1eInjectiveTcDerivativesRpcProtoP\x01Z\x1f/injective_tc_derivatives_rpcpb\xa2\x02\x03IXX\xaa\x02\x19InjectiveTcDerivativesRpc\xca\x02\x19InjectiveTcDerivativesRpc\xe2\x02%InjectiveTcDerivativesRpc\\GPBMetadata\xea\x02\x19InjectiveTcDerivativesRpcb\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'exchange.injective_tc_derivatives_rpc_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n com.injective_tc_derivatives_rpcB\036InjectiveTcDerivativesRpcProtoP\001Z\037/injective_tc_derivatives_rpcpb\242\002\003IXX\252\002\031InjectiveTcDerivativesRpc\312\002\031InjectiveTcDerivativesRpc\342\002%InjectiveTcDerivativesRpc\\GPBMetadata\352\002\031InjectiveTcDerivativesRpc' + _globals['_ORDERSHISTORYREQUEST']._serialized_start=78 + _globals['_ORDERSHISTORYREQUEST']._serialized_end=251 + _globals['_ORDERSHISTORYRESPONSE']._serialized_start=253 + _globals['_ORDERSHISTORYRESPONSE']._serialized_end=380 + _globals['_TCDERIVATIVEORDERHISTORYTYPE']._serialized_start=383 + _globals['_TCDERIVATIVEORDERHISTORYTYPE']._serialized_end=1070 + _globals['_STREAMORDERSHISTORYREQUEST']._serialized_start=1072 + _globals['_STREAMORDERSHISTORYREQUEST']._serialized_end=1172 + _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_start=1175 + _globals['_STREAMORDERSHISTORYRESPONSE']._serialized_end=1355 + _globals['_ORDERSREQUEST']._serialized_start=1358 + _globals['_ORDERSREQUEST']._serialized_end=1524 + _globals['_ORDERSRESPONSE']._serialized_start=1526 + _globals['_ORDERSRESPONSE']._serialized_end=1638 + _globals['_DERIVATIVELIMITORDER']._serialized_start=1641 + _globals['_DERIVATIVELIMITORDER']._serialized_end=2368 + _globals['_STREAMORDERSREQUEST']._serialized_start=2370 + _globals['_STREAMORDERSREQUEST']._serialized_end=2463 + _globals['_STREAMORDERSRESPONSE']._serialized_start=2466 + _globals['_STREAMORDERSRESPONSE']._serialized_end=2631 + _globals['_TRADESREQUEST']._serialized_start=2634 + _globals['_TRADESREQUEST']._serialized_end=2800 + _globals['_TRADESRESPONSE']._serialized_start=2802 + _globals['_TRADESRESPONSE']._serialized_end=2909 + _globals['_DERIVATIVETRADE']._serialized_start=2912 + _globals['_DERIVATIVETRADE']._serialized_end=3413 + _globals['_POSITIONDELTA']._serialized_start=3416 + _globals['_POSITIONDELTA']._serialized_end=3603 + _globals['_STREAMTRADESREQUEST']._serialized_start=3605 + _globals['_STREAMTRADESREQUEST']._serialized_end=3698 + _globals['_STREAMTRADESRESPONSE']._serialized_start=3701 + _globals['_STREAMTRADESRESPONSE']._serialized_end=3861 + _globals['_POSITIONSREQUEST']._serialized_start=3864 + _globals['_POSITIONSREQUEST']._serialized_end=4093 + _globals['_POSITIONSRESPONSE']._serialized_start=4096 + _globals['_POSITIONSRESPONSE']._serialized_end=4239 + _globals['_DERIVATIVEPOSITIONV2']._serialized_start=4242 + _globals['_DERIVATIVEPOSITIONV2']._serialized_end=4821 + _globals['_STREAMPOSITIONSREQUEST']._serialized_start=4823 + _globals['_STREAMPOSITIONSREQUEST']._serialized_end=4919 + _globals['_STREAMPOSITIONSRESPONSE']._serialized_start=4922 + _globals['_STREAMPOSITIONSRESPONSE']._serialized_end=5057 + _globals['_INJECTIVETCDERIVATIVESRPC']._serialized_start=5060 + _globals['_INJECTIVETCDERIVATIVESRPC']._serialized_end=6037 +# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/exchange/injective_tc_derivatives_rpc_pb2_grpc.py b/pyinjective/proto/exchange/injective_tc_derivatives_rpc_pb2_grpc.py new file mode 100644 index 00000000..143f4d96 --- /dev/null +++ b/pyinjective/proto/exchange/injective_tc_derivatives_rpc_pb2_grpc.py @@ -0,0 +1,390 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from pyinjective.proto.exchange import injective_tc_derivatives_rpc_pb2 as exchange_dot_injective__tc__derivatives__rpc__pb2 + + +class InjectiveTCDerivativesRPCStub(object): + """InjectiveTCDerivativesRPC defines gRPC API of the TC Derivatives API. + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.OrdersHistory = channel.unary_unary( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/OrdersHistory', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersHistoryRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersHistoryResponse.FromString, + _registered_method=True) + self.StreamOrdersHistory = channel.unary_stream( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamOrdersHistory', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersHistoryRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersHistoryResponse.FromString, + _registered_method=True) + self.Orders = channel.unary_unary( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/Orders', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersResponse.FromString, + _registered_method=True) + self.StreamOrders = channel.unary_stream( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamOrders', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersResponse.FromString, + _registered_method=True) + self.Trades = channel.unary_unary( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/Trades', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.TradesRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.TradesResponse.FromString, + _registered_method=True) + self.StreamTrades = channel.unary_stream( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamTrades', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamTradesRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamTradesResponse.FromString, + _registered_method=True) + self.Positions = channel.unary_unary( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/Positions', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.PositionsRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.PositionsResponse.FromString, + _registered_method=True) + self.StreamPositions = channel.unary_stream( + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamPositions', + request_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamPositionsRequest.SerializeToString, + response_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamPositionsResponse.FromString, + _registered_method=True) + + +class InjectiveTCDerivativesRPCServicer(object): + """InjectiveTCDerivativesRPC defines gRPC API of the TC Derivatives API. + """ + + def OrdersHistory(self, request, context): + """Get TC order history combining settlement requests with on-chain order data + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamOrdersHistory(self, request, context): + """Stream updates to TC order history entries + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Orders(self, request, context): + """Get TC derivative limit orders + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamOrders(self, request, context): + """Stream updates to TC derivative limit orders + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Trades(self, request, context): + """Get TC derivative trades + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamTrades(self, request, context): + """Stream newly executed trades from TC Derivative Markets + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Positions(self, request, context): + """Positions gets the positions for a trader. V2 removed some redundant fields + and had performance improvements + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def StreamPositions(self, request, context): + """StreamPositions streams TC derivatives position updates + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_InjectiveTCDerivativesRPCServicer_to_server(servicer, server): + rpc_method_handlers = { + 'OrdersHistory': grpc.unary_unary_rpc_method_handler( + servicer.OrdersHistory, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersHistoryRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersHistoryResponse.SerializeToString, + ), + 'StreamOrdersHistory': grpc.unary_stream_rpc_method_handler( + servicer.StreamOrdersHistory, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersHistoryRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersHistoryResponse.SerializeToString, + ), + 'Orders': grpc.unary_unary_rpc_method_handler( + servicer.Orders, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersResponse.SerializeToString, + ), + 'StreamOrders': grpc.unary_stream_rpc_method_handler( + servicer.StreamOrders, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersResponse.SerializeToString, + ), + 'Trades': grpc.unary_unary_rpc_method_handler( + servicer.Trades, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.TradesRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.TradesResponse.SerializeToString, + ), + 'StreamTrades': grpc.unary_stream_rpc_method_handler( + servicer.StreamTrades, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamTradesRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamTradesResponse.SerializeToString, + ), + 'Positions': grpc.unary_unary_rpc_method_handler( + servicer.Positions, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.PositionsRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.PositionsResponse.SerializeToString, + ), + 'StreamPositions': grpc.unary_stream_rpc_method_handler( + servicer.StreamPositions, + request_deserializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamPositionsRequest.FromString, + response_serializer=exchange_dot_injective__tc__derivatives__rpc__pb2.StreamPositionsResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC', rpc_method_handlers) + + + # This class is part of an EXPERIMENTAL API. +class InjectiveTCDerivativesRPC(object): + """InjectiveTCDerivativesRPC defines gRPC API of the TC Derivatives API. + """ + + @staticmethod + def OrdersHistory(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/OrdersHistory', + exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersHistoryRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersHistoryResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def StreamOrdersHistory(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamOrdersHistory', + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersHistoryRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersHistoryResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Orders(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/Orders', + exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.OrdersResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def StreamOrders(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamOrders', + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamOrdersResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Trades(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/Trades', + exchange_dot_injective__tc__derivatives__rpc__pb2.TradesRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.TradesResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def StreamTrades(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamTrades', + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamTradesRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamTradesResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Positions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/Positions', + exchange_dot_injective__tc__derivatives__rpc__pb2.PositionsRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.PositionsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def StreamPositions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream( + request, + target, + '/injective_tc_derivatives_rpc.InjectiveTCDerivativesRPC/StreamPositions', + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamPositionsRequest.SerializeToString, + exchange_dot_injective__tc__derivatives__rpc__pb2.StreamPositionsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/pyinjective/proto/google/api/client_pb2.py b/pyinjective/proto/google/api/client_pb2.py index aab7d140..f749a2ce 100644 --- a/pyinjective/proto/google/api/client_pb2.py +++ b/pyinjective/proto/google/api/client_pb2.py @@ -17,7 +17,7 @@ from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_stage.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\"\xf8\x01\n\x16\x43ommonLanguageSettings\x12\x30\n\x12reference_docs_uri\x18\x01 \x01(\tB\x02\x18\x01R\x10referenceDocsUri\x12H\n\x0c\x64\x65stinations\x18\x02 \x03(\x0e\x32$.google.api.ClientLibraryDestinationR\x0c\x64\x65stinations\x12\x62\n\x1aselective_gapic_generation\x18\x03 \x01(\x0b\x32$.google.api.SelectiveGapicGenerationR\x18selectiveGapicGeneration\"\x93\x05\n\x15\x43lientLibrarySettings\x12\x18\n\x07version\x18\x01 \x01(\tR\x07version\x12:\n\x0claunch_stage\x18\x02 \x01(\x0e\x32\x17.google.api.LaunchStageR\x0blaunchStage\x12,\n\x12rest_numeric_enums\x18\x03 \x01(\x08R\x10restNumericEnums\x12=\n\rjava_settings\x18\x15 \x01(\x0b\x32\x18.google.api.JavaSettingsR\x0cjavaSettings\x12:\n\x0c\x63pp_settings\x18\x16 \x01(\x0b\x32\x17.google.api.CppSettingsR\x0b\x63ppSettings\x12:\n\x0cphp_settings\x18\x17 \x01(\x0b\x32\x17.google.api.PhpSettingsR\x0bphpSettings\x12\x43\n\x0fpython_settings\x18\x18 \x01(\x0b\x32\x1a.google.api.PythonSettingsR\x0epythonSettings\x12=\n\rnode_settings\x18\x19 \x01(\x0b\x32\x18.google.api.NodeSettingsR\x0cnodeSettings\x12\x43\n\x0f\x64otnet_settings\x18\x1a \x01(\x0b\x32\x1a.google.api.DotnetSettingsR\x0e\x64otnetSettings\x12=\n\rruby_settings\x18\x1b \x01(\x0b\x32\x18.google.api.RubySettingsR\x0crubySettings\x12\x37\n\x0bgo_settings\x18\x1c \x01(\x0b\x32\x16.google.api.GoSettingsR\ngoSettings\"\xf4\x04\n\nPublishing\x12\x43\n\x0fmethod_settings\x18\x02 \x03(\x0b\x32\x1a.google.api.MethodSettingsR\x0emethodSettings\x12\"\n\rnew_issue_uri\x18\x65 \x01(\tR\x0bnewIssueUri\x12+\n\x11\x64ocumentation_uri\x18\x66 \x01(\tR\x10\x64ocumentationUri\x12$\n\x0e\x61pi_short_name\x18g \x01(\tR\x0c\x61piShortName\x12!\n\x0cgithub_label\x18h \x01(\tR\x0bgithubLabel\x12\x34\n\x16\x63odeowner_github_teams\x18i \x03(\tR\x14\x63odeownerGithubTeams\x12$\n\x0e\x64oc_tag_prefix\x18j \x01(\tR\x0c\x64ocTagPrefix\x12I\n\x0corganization\x18k \x01(\x0e\x32%.google.api.ClientLibraryOrganizationR\x0corganization\x12L\n\x10library_settings\x18m \x03(\x0b\x32!.google.api.ClientLibrarySettingsR\x0flibrarySettings\x12I\n!proto_reference_documentation_uri\x18n \x01(\tR\x1eprotoReferenceDocumentationUri\x12G\n rest_reference_documentation_uri\x18o \x01(\tR\x1drestReferenceDocumentationUri\"\x9a\x02\n\x0cJavaSettings\x12\'\n\x0flibrary_package\x18\x01 \x01(\tR\x0elibraryPackage\x12_\n\x13service_class_names\x18\x02 \x03(\x0b\x32/.google.api.JavaSettings.ServiceClassNamesEntryR\x11serviceClassNames\x12:\n\x06\x63ommon\x18\x03 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x1a\x44\n\x16ServiceClassNamesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"I\n\x0b\x43ppSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\"I\n\x0bPhpSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\"\x87\x03\n\x0ePythonSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x12\x64\n\x15\x65xperimental_features\x18\x02 \x01(\x0b\x32/.google.api.PythonSettings.ExperimentalFeaturesR\x14\x65xperimentalFeatures\x1a\xd2\x01\n\x14\x45xperimentalFeatures\x12\x31\n\x15rest_async_io_enabled\x18\x01 \x01(\x08R\x12restAsyncIoEnabled\x12\x45\n\x1fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08R\x1cprotobufPythonicTypesEnabled\x12@\n\x1cunversioned_package_disabled\x18\x03 \x01(\x08R\x1aunversionedPackageDisabled\"J\n\x0cNodeSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\"\xae\x04\n\x0e\x44otnetSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x12Z\n\x10renamed_services\x18\x02 \x03(\x0b\x32/.google.api.DotnetSettings.RenamedServicesEntryR\x0frenamedServices\x12]\n\x11renamed_resources\x18\x03 \x03(\x0b\x32\x30.google.api.DotnetSettings.RenamedResourcesEntryR\x10renamedResources\x12+\n\x11ignored_resources\x18\x04 \x03(\tR\x10ignoredResources\x12\x38\n\x18\x66orced_namespace_aliases\x18\x05 \x03(\tR\x16\x66orcedNamespaceAliases\x12\x35\n\x16handwritten_signatures\x18\x06 \x03(\tR\x15handwrittenSignatures\x1a\x42\n\x14RenamedServicesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a\x43\n\x15RenamedResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"J\n\x0cRubySettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\"\xe4\x01\n\nGoSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x12V\n\x10renamed_services\x18\x02 \x03(\x0b\x32+.google.api.GoSettings.RenamedServicesEntryR\x0frenamedServices\x1a\x42\n\x14RenamedServicesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xc2\x03\n\x0eMethodSettings\x12\x1a\n\x08selector\x18\x01 \x01(\tR\x08selector\x12I\n\x0clong_running\x18\x02 \x01(\x0b\x32&.google.api.MethodSettings.LongRunningR\x0blongRunning\x12\x32\n\x15\x61uto_populated_fields\x18\x03 \x03(\tR\x13\x61utoPopulatedFields\x1a\x94\x02\n\x0bLongRunning\x12G\n\x12initial_poll_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x10initialPollDelay\x12\x32\n\x15poll_delay_multiplier\x18\x02 \x01(\x02R\x13pollDelayMultiplier\x12?\n\x0emax_poll_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0cmaxPollDelay\x12G\n\x12total_poll_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x10totalPollTimeout\"u\n\x18SelectiveGapicGeneration\x12\x18\n\x07methods\x18\x01 \x03(\tR\x07methods\x12?\n\x1cgenerate_omitted_as_internal\x18\x02 \x01(\x08R\x19generateOmittedAsInternal*\xa3\x01\n\x19\x43lientLibraryOrganization\x12+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x43LOUD\x10\x01\x12\x07\n\x03\x41\x44S\x10\x02\x12\n\n\x06PHOTOS\x10\x03\x12\x0f\n\x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\x07\n\x03GEO\x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18\x43lientLibraryDestination\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14:J\n\x10method_signature\x12\x1e.google.protobuf.MethodOptions\x18\x9b\x08 \x03(\tR\x0fmethodSignature:C\n\x0c\x64\x65\x66\x61ult_host\x12\x1f.google.protobuf.ServiceOptions\x18\x99\x08 \x01(\tR\x0b\x64\x65\x66\x61ultHost:C\n\x0coauth_scopes\x12\x1f.google.protobuf.ServiceOptions\x18\x9a\x08 \x01(\tR\x0boauthScopes:D\n\x0b\x61pi_version\x12\x1f.google.protobuf.ServiceOptions\x18\xc1\xba\xab\xfa\x01 \x01(\tR\napiVersionB\xa9\x01\n\x0e\x63om.google.apiB\x0b\x43lientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x03GAX\xaa\x02\nGoogle.Api\xca\x02\nGoogle\\Api\xe2\x02\x16Google\\Api\\GPBMetadata\xea\x02\x0bGoogle::Apib\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_stage.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\"\xf8\x01\n\x16\x43ommonLanguageSettings\x12\x30\n\x12reference_docs_uri\x18\x01 \x01(\tB\x02\x18\x01R\x10referenceDocsUri\x12H\n\x0c\x64\x65stinations\x18\x02 \x03(\x0e\x32$.google.api.ClientLibraryDestinationR\x0c\x64\x65stinations\x12\x62\n\x1aselective_gapic_generation\x18\x03 \x01(\x0b\x32$.google.api.SelectiveGapicGenerationR\x18selectiveGapicGeneration\"\x93\x05\n\x15\x43lientLibrarySettings\x12\x18\n\x07version\x18\x01 \x01(\tR\x07version\x12:\n\x0claunch_stage\x18\x02 \x01(\x0e\x32\x17.google.api.LaunchStageR\x0blaunchStage\x12,\n\x12rest_numeric_enums\x18\x03 \x01(\x08R\x10restNumericEnums\x12=\n\rjava_settings\x18\x15 \x01(\x0b\x32\x18.google.api.JavaSettingsR\x0cjavaSettings\x12:\n\x0c\x63pp_settings\x18\x16 \x01(\x0b\x32\x17.google.api.CppSettingsR\x0b\x63ppSettings\x12:\n\x0cphp_settings\x18\x17 \x01(\x0b\x32\x17.google.api.PhpSettingsR\x0bphpSettings\x12\x43\n\x0fpython_settings\x18\x18 \x01(\x0b\x32\x1a.google.api.PythonSettingsR\x0epythonSettings\x12=\n\rnode_settings\x18\x19 \x01(\x0b\x32\x18.google.api.NodeSettingsR\x0cnodeSettings\x12\x43\n\x0f\x64otnet_settings\x18\x1a \x01(\x0b\x32\x1a.google.api.DotnetSettingsR\x0e\x64otnetSettings\x12=\n\rruby_settings\x18\x1b \x01(\x0b\x32\x18.google.api.RubySettingsR\x0crubySettings\x12\x37\n\x0bgo_settings\x18\x1c \x01(\x0b\x32\x16.google.api.GoSettingsR\ngoSettings\"\xf4\x04\n\nPublishing\x12\x43\n\x0fmethod_settings\x18\x02 \x03(\x0b\x32\x1a.google.api.MethodSettingsR\x0emethodSettings\x12\"\n\rnew_issue_uri\x18\x65 \x01(\tR\x0bnewIssueUri\x12+\n\x11\x64ocumentation_uri\x18\x66 \x01(\tR\x10\x64ocumentationUri\x12$\n\x0e\x61pi_short_name\x18g \x01(\tR\x0c\x61piShortName\x12!\n\x0cgithub_label\x18h \x01(\tR\x0bgithubLabel\x12\x34\n\x16\x63odeowner_github_teams\x18i \x03(\tR\x14\x63odeownerGithubTeams\x12$\n\x0e\x64oc_tag_prefix\x18j \x01(\tR\x0c\x64ocTagPrefix\x12I\n\x0corganization\x18k \x01(\x0e\x32%.google.api.ClientLibraryOrganizationR\x0corganization\x12L\n\x10library_settings\x18m \x03(\x0b\x32!.google.api.ClientLibrarySettingsR\x0flibrarySettings\x12I\n!proto_reference_documentation_uri\x18n \x01(\tR\x1eprotoReferenceDocumentationUri\x12G\n rest_reference_documentation_uri\x18o \x01(\tR\x1drestReferenceDocumentationUri\"\x9a\x02\n\x0cJavaSettings\x12\'\n\x0flibrary_package\x18\x01 \x01(\tR\x0elibraryPackage\x12_\n\x13service_class_names\x18\x02 \x03(\x0b\x32/.google.api.JavaSettings.ServiceClassNamesEntryR\x11serviceClassNames\x12:\n\x06\x63ommon\x18\x03 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x1a\x44\n\x16ServiceClassNamesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"I\n\x0b\x43ppSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\"r\n\x0bPhpSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x12\'\n\x0flibrary_package\x18\x02 \x01(\tR\x0elibraryPackage\"\x87\x03\n\x0ePythonSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x12\x64\n\x15\x65xperimental_features\x18\x02 \x01(\x0b\x32/.google.api.PythonSettings.ExperimentalFeaturesR\x14\x65xperimentalFeatures\x1a\xd2\x01\n\x14\x45xperimentalFeatures\x12\x31\n\x15rest_async_io_enabled\x18\x01 \x01(\x08R\x12restAsyncIoEnabled\x12\x45\n\x1fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08R\x1cprotobufPythonicTypesEnabled\x12@\n\x1cunversioned_package_disabled\x18\x03 \x01(\x08R\x1aunversionedPackageDisabled\"J\n\x0cNodeSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\"\xae\x04\n\x0e\x44otnetSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x12Z\n\x10renamed_services\x18\x02 \x03(\x0b\x32/.google.api.DotnetSettings.RenamedServicesEntryR\x0frenamedServices\x12]\n\x11renamed_resources\x18\x03 \x03(\x0b\x32\x30.google.api.DotnetSettings.RenamedResourcesEntryR\x10renamedResources\x12+\n\x11ignored_resources\x18\x04 \x03(\tR\x10ignoredResources\x12\x38\n\x18\x66orced_namespace_aliases\x18\x05 \x03(\tR\x16\x66orcedNamespaceAliases\x12\x35\n\x16handwritten_signatures\x18\x06 \x03(\tR\x15handwrittenSignatures\x1a\x42\n\x14RenamedServicesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a\x43\n\x15RenamedResourcesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"J\n\x0cRubySettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\"\xe4\x01\n\nGoSettings\x12:\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettingsR\x06\x63ommon\x12V\n\x10renamed_services\x18\x02 \x03(\x0b\x32+.google.api.GoSettings.RenamedServicesEntryR\x0frenamedServices\x1a\x42\n\x14RenamedServicesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xff\x03\n\x0eMethodSettings\x12\x1a\n\x08selector\x18\x01 \x01(\tR\x08selector\x12I\n\x0clong_running\x18\x02 \x01(\x0b\x32&.google.api.MethodSettings.LongRunningR\x0blongRunning\x12\x32\n\x15\x61uto_populated_fields\x18\x03 \x03(\tR\x13\x61utoPopulatedFields\x12;\n\x08\x62\x61tching\x18\x04 \x01(\x0b\x32\x1f.google.api.BatchingConfigProtoR\x08\x62\x61tching\x1a\x94\x02\n\x0bLongRunning\x12G\n\x12initial_poll_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x10initialPollDelay\x12\x32\n\x15poll_delay_multiplier\x18\x02 \x01(\x02R\x13pollDelayMultiplier\x12?\n\x0emax_poll_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0cmaxPollDelay\x12G\n\x12total_poll_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x10totalPollTimeout\"u\n\x18SelectiveGapicGeneration\x12\x18\n\x07methods\x18\x01 \x03(\tR\x07methods\x12?\n\x1cgenerate_omitted_as_internal\x18\x02 \x01(\x08R\x19generateOmittedAsInternal\"\xa8\x01\n\x13\x42\x61tchingConfigProto\x12\x41\n\nthresholds\x18\x01 \x01(\x0b\x32!.google.api.BatchingSettingsProtoR\nthresholds\x12N\n\x10\x62\x61tch_descriptor\x18\x02 \x01(\x0b\x32#.google.api.BatchingDescriptorProtoR\x0f\x62\x61tchDescriptor\"\x9f\x04\n\x15\x42\x61tchingSettingsProto\x12\x36\n\x17\x65lement_count_threshold\x18\x01 \x01(\x05R\x15\x65lementCountThreshold\x12\x34\n\x16request_byte_threshold\x18\x02 \x01(\x03R\x14requestByteThreshold\x12\x42\n\x0f\x64\x65lay_threshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0e\x64\x65layThreshold\x12.\n\x13\x65lement_count_limit\x18\x04 \x01(\x05R\x11\x65lementCountLimit\x12,\n\x12request_byte_limit\x18\x05 \x01(\x05R\x10requestByteLimit\x12;\n\x1a\x66low_control_element_limit\x18\x06 \x01(\x05R\x17\x66lowControlElementLimit\x12\x35\n\x17\x66low_control_byte_limit\x18\x07 \x01(\x05R\x14\x66lowControlByteLimit\x12\x81\x01\n$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0e\x32\x31.google.api.FlowControlLimitExceededBehaviorProtoR flowControlLimitExceededBehavior\"\x9e\x01\n\x17\x42\x61tchingDescriptorProto\x12#\n\rbatched_field\x18\x01 \x01(\tR\x0c\x62\x61tchedField\x12\x31\n\x14\x64iscriminator_fields\x18\x02 \x03(\tR\x13\x64iscriminatorFields\x12+\n\x11subresponse_field\x18\x03 \x01(\tR\x10subresponseField*\xa3\x01\n\x19\x43lientLibraryOrganization\x12+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x43LOUD\x10\x01\x12\x07\n\x03\x41\x44S\x10\x02\x12\n\n\x06PHOTOS\x10\x03\x12\x0f\n\x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\x07\n\x03GEO\x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18\x43lientLibraryDestination\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14*g\n%FlowControlLimitExceededBehaviorProto\x12\x12\n\x0eUNSET_BEHAVIOR\x10\x00\x12\x13\n\x0fTHROW_EXCEPTION\x10\x01\x12\t\n\x05\x42LOCK\x10\x02\x12\n\n\x06IGNORE\x10\x03:J\n\x10method_signature\x12\x1e.google.protobuf.MethodOptions\x18\x9b\x08 \x03(\tR\x0fmethodSignature:C\n\x0c\x64\x65\x66\x61ult_host\x12\x1f.google.protobuf.ServiceOptions\x18\x99\x08 \x01(\tR\x0b\x64\x65\x66\x61ultHost:C\n\x0coauth_scopes\x12\x1f.google.protobuf.ServiceOptions\x18\x9a\x08 \x01(\tR\x0boauthScopes:D\n\x0b\x61pi_version\x12\x1f.google.protobuf.ServiceOptions\x18\xc1\xba\xab\xfa\x01 \x01(\tR\napiVersionB\xa9\x01\n\x0e\x63om.google.apiB\x0b\x43lientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x03GAX\xaa\x02\nGoogle.Api\xca\x02\nGoogle\\Api\xe2\x02\x16Google\\Api\\GPBMetadata\xea\x02\x0bGoogle::Apib\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -35,10 +35,12 @@ _globals['_DOTNETSETTINGS_RENAMEDRESOURCESENTRY']._serialized_options = b'8\001' _globals['_GOSETTINGS_RENAMEDSERVICESENTRY']._loaded_options = None _globals['_GOSETTINGS_RENAMEDSERVICESENTRY']._serialized_options = b'8\001' - _globals['_CLIENTLIBRARYORGANIZATION']._serialized_start=4026 - _globals['_CLIENTLIBRARYORGANIZATION']._serialized_end=4189 - _globals['_CLIENTLIBRARYDESTINATION']._serialized_start=4191 - _globals['_CLIENTLIBRARYDESTINATION']._serialized_end=4294 + _globals['_CLIENTLIBRARYORGANIZATION']._serialized_start=5006 + _globals['_CLIENTLIBRARYORGANIZATION']._serialized_end=5169 + _globals['_CLIENTLIBRARYDESTINATION']._serialized_start=5171 + _globals['_CLIENTLIBRARYDESTINATION']._serialized_end=5274 + _globals['_FLOWCONTROLLIMITEXCEEDEDBEHAVIORPROTO']._serialized_start=5276 + _globals['_FLOWCONTROLLIMITEXCEEDEDBEHAVIORPROTO']._serialized_end=5379 _globals['_COMMONLANGUAGESETTINGS']._serialized_start=137 _globals['_COMMONLANGUAGESETTINGS']._serialized_end=385 _globals['_CLIENTLIBRARYSETTINGS']._serialized_start=388 @@ -52,29 +54,35 @@ _globals['_CPPSETTINGS']._serialized_start=1965 _globals['_CPPSETTINGS']._serialized_end=2038 _globals['_PHPSETTINGS']._serialized_start=2040 - _globals['_PHPSETTINGS']._serialized_end=2113 - _globals['_PYTHONSETTINGS']._serialized_start=2116 - _globals['_PYTHONSETTINGS']._serialized_end=2507 - _globals['_PYTHONSETTINGS_EXPERIMENTALFEATURES']._serialized_start=2297 - _globals['_PYTHONSETTINGS_EXPERIMENTALFEATURES']._serialized_end=2507 - _globals['_NODESETTINGS']._serialized_start=2509 - _globals['_NODESETTINGS']._serialized_end=2583 - _globals['_DOTNETSETTINGS']._serialized_start=2586 - _globals['_DOTNETSETTINGS']._serialized_end=3144 - _globals['_DOTNETSETTINGS_RENAMEDSERVICESENTRY']._serialized_start=3009 - _globals['_DOTNETSETTINGS_RENAMEDSERVICESENTRY']._serialized_end=3075 - _globals['_DOTNETSETTINGS_RENAMEDRESOURCESENTRY']._serialized_start=3077 - _globals['_DOTNETSETTINGS_RENAMEDRESOURCESENTRY']._serialized_end=3144 - _globals['_RUBYSETTINGS']._serialized_start=3146 - _globals['_RUBYSETTINGS']._serialized_end=3220 - _globals['_GOSETTINGS']._serialized_start=3223 - _globals['_GOSETTINGS']._serialized_end=3451 - _globals['_GOSETTINGS_RENAMEDSERVICESENTRY']._serialized_start=3009 - _globals['_GOSETTINGS_RENAMEDSERVICESENTRY']._serialized_end=3075 - _globals['_METHODSETTINGS']._serialized_start=3454 - _globals['_METHODSETTINGS']._serialized_end=3904 - _globals['_METHODSETTINGS_LONGRUNNING']._serialized_start=3628 - _globals['_METHODSETTINGS_LONGRUNNING']._serialized_end=3904 - _globals['_SELECTIVEGAPICGENERATION']._serialized_start=3906 - _globals['_SELECTIVEGAPICGENERATION']._serialized_end=4023 + _globals['_PHPSETTINGS']._serialized_end=2154 + _globals['_PYTHONSETTINGS']._serialized_start=2157 + _globals['_PYTHONSETTINGS']._serialized_end=2548 + _globals['_PYTHONSETTINGS_EXPERIMENTALFEATURES']._serialized_start=2338 + _globals['_PYTHONSETTINGS_EXPERIMENTALFEATURES']._serialized_end=2548 + _globals['_NODESETTINGS']._serialized_start=2550 + _globals['_NODESETTINGS']._serialized_end=2624 + _globals['_DOTNETSETTINGS']._serialized_start=2627 + _globals['_DOTNETSETTINGS']._serialized_end=3185 + _globals['_DOTNETSETTINGS_RENAMEDSERVICESENTRY']._serialized_start=3050 + _globals['_DOTNETSETTINGS_RENAMEDSERVICESENTRY']._serialized_end=3116 + _globals['_DOTNETSETTINGS_RENAMEDRESOURCESENTRY']._serialized_start=3118 + _globals['_DOTNETSETTINGS_RENAMEDRESOURCESENTRY']._serialized_end=3185 + _globals['_RUBYSETTINGS']._serialized_start=3187 + _globals['_RUBYSETTINGS']._serialized_end=3261 + _globals['_GOSETTINGS']._serialized_start=3264 + _globals['_GOSETTINGS']._serialized_end=3492 + _globals['_GOSETTINGS_RENAMEDSERVICESENTRY']._serialized_start=3050 + _globals['_GOSETTINGS_RENAMEDSERVICESENTRY']._serialized_end=3116 + _globals['_METHODSETTINGS']._serialized_start=3495 + _globals['_METHODSETTINGS']._serialized_end=4006 + _globals['_METHODSETTINGS_LONGRUNNING']._serialized_start=3730 + _globals['_METHODSETTINGS_LONGRUNNING']._serialized_end=4006 + _globals['_SELECTIVEGAPICGENERATION']._serialized_start=4008 + _globals['_SELECTIVEGAPICGENERATION']._serialized_end=4125 + _globals['_BATCHINGCONFIGPROTO']._serialized_start=4128 + _globals['_BATCHINGCONFIGPROTO']._serialized_end=4296 + _globals['_BATCHINGSETTINGSPROTO']._serialized_start=4299 + _globals['_BATCHINGSETTINGSPROTO']._serialized_end=4842 + _globals['_BATCHINGDESCRIPTORPROTO']._serialized_start=4845 + _globals['_BATCHINGDESCRIPTORPROTO']._serialized_end=5003 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/events_pb2.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/events_pb2.py deleted file mode 100644 index 22df2f26..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/events_pb2.py +++ /dev/null @@ -1,77 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/interchain_security/v1/events.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n2hyperlane/core/interchain_security/v1/events.proto\x12%hyperlane.core.interchain_security.v1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\xa0\x01\n\x12\x45ventCreateNoopIsm\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\"\xec\x01\n EventCreateMerkleRootMultisigIsm\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x1e\n\nvalidators\x18\x03 \x03(\tR\nvalidators\x12\x1c\n\tthreshold\x18\x04 \x01(\rR\tthreshold\"\xeb\x01\n\x1f\x45ventCreateMessageIdMultisigIsm\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x1e\n\nvalidators\x18\x03 \x03(\tR\nvalidators\x12\x1c\n\tthreshold\x18\x04 \x01(\rR\tthreshold\"\xfd\x01\n\x1c\x45ventAnnounceStorageLocation\x12\x62\n\nmailbox_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12\x30\n\x06sender\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06sender\x12\x1c\n\tvalidator\x18\x03 \x01(\tR\tvalidator\x12)\n\x10storage_location\x18\x04 \x01(\tR\x0fstorageLocation\"\xb0\x02\n\x18\x45ventSetRoutingIsmDomain\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x65\n\x0croute_ism_id\x18\x03 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\nrouteIsmId\x12!\n\x0croute_domain\x18\x04 \x01(\rR\x0brouteDomain\"\xcc\x01\n\x1b\x45ventRemoveRoutingIsmDomain\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12!\n\x0croute_domain\x18\x03 \x01(\rR\x0brouteDomain\"\xec\x01\n\x12\x45ventSetRoutingIsm\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x1b\n\tnew_owner\x18\x03 \x01(\tR\x08newOwner\x12-\n\x12renounce_ownership\x18\x04 \x01(\x08R\x11renounceOwnership\"\xa3\x01\n\x15\x45ventCreateRoutingIsm\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05ownerB\xbc\x02\n)com.hyperlane.core.interchain_security.v1B\x0b\x45ventsProtoP\x01ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\xa2\x02\x03HCI\xaa\x02$Hyperlane.Core.InterchainSecurity.V1\xca\x02$Hyperlane\\Core\\InterchainSecurity\\V1\xe2\x02\x30Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\xea\x02\'Hyperlane::Core::InterchainSecurity::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.interchain_security.v1.events_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n)com.hyperlane.core.interchain_security.v1B\013EventsProtoP\001ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\242\002\003HCI\252\002$Hyperlane.Core.InterchainSecurity.V1\312\002$Hyperlane\\Core\\InterchainSecurity\\V1\342\0020Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\352\002\'Hyperlane::Core::InterchainSecurity::V1' - _globals['_EVENTCREATENOOPISM'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTCREATENOOPISM'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATENOOPISM'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTCREATENOOPISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTCREATEMERKLEROOTMULTISIGISM'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTCREATEMERKLEROOTMULTISIGISM'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEMERKLEROOTMULTISIGISM'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTCREATEMERKLEROOTMULTISIGISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTCREATEMESSAGEIDMULTISIGISM'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTCREATEMESSAGEIDMULTISIGISM'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEMESSAGEIDMULTISIGISM'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTCREATEMESSAGEIDMULTISIGISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTANNOUNCESTORAGELOCATION'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_EVENTANNOUNCESTORAGELOCATION'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTANNOUNCESTORAGELOCATION'].fields_by_name['sender']._loaded_options = None - _globals['_EVENTANNOUNCESTORAGELOCATION'].fields_by_name['sender']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTSETROUTINGISMDOMAIN'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTSETROUTINGISMDOMAIN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETROUTINGISMDOMAIN'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTSETROUTINGISMDOMAIN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTSETROUTINGISMDOMAIN'].fields_by_name['route_ism_id']._loaded_options = None - _globals['_EVENTSETROUTINGISMDOMAIN'].fields_by_name['route_ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTREMOVEROUTINGISMDOMAIN'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTREMOVEROUTINGISMDOMAIN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTREMOVEROUTINGISMDOMAIN'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTREMOVEROUTINGISMDOMAIN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTSETROUTINGISM'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTSETROUTINGISM'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETROUTINGISM'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTSETROUTINGISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTCREATEROUTINGISM'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTCREATEROUTINGISM'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEROUTINGISM'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTCREATEROUTINGISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTCREATENOOPISM']._serialized_start=143 - _globals['_EVENTCREATENOOPISM']._serialized_end=303 - _globals['_EVENTCREATEMERKLEROOTMULTISIGISM']._serialized_start=306 - _globals['_EVENTCREATEMERKLEROOTMULTISIGISM']._serialized_end=542 - _globals['_EVENTCREATEMESSAGEIDMULTISIGISM']._serialized_start=545 - _globals['_EVENTCREATEMESSAGEIDMULTISIGISM']._serialized_end=780 - _globals['_EVENTANNOUNCESTORAGELOCATION']._serialized_start=783 - _globals['_EVENTANNOUNCESTORAGELOCATION']._serialized_end=1036 - _globals['_EVENTSETROUTINGISMDOMAIN']._serialized_start=1039 - _globals['_EVENTSETROUTINGISMDOMAIN']._serialized_end=1343 - _globals['_EVENTREMOVEROUTINGISMDOMAIN']._serialized_start=1346 - _globals['_EVENTREMOVEROUTINGISMDOMAIN']._serialized_end=1550 - _globals['_EVENTSETROUTINGISM']._serialized_start=1553 - _globals['_EVENTSETROUTINGISM']._serialized_end=1789 - _globals['_EVENTCREATEROUTINGISM']._serialized_start=1792 - _globals['_EVENTCREATEROUTINGISM']._serialized_end=1955 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/events_pb2_grpc.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/events_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/events_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/genesis_pb2.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/genesis_pb2.py deleted file mode 100644 index dba3e3e8..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/genesis_pb2.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/interchain_security/v1/genesis.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3hyperlane/core/interchain_security/v1/genesis.proto\x12%hyperlane.core.interchain_security.v1\x1a\x19google/protobuf/any.proto\x1a\x14gogoproto/gogo.proto\"\xce\x01\n\x0cGenesisState\x12(\n\x04isms\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyR\x04isms\x12\x93\x01\n\x1bvalidator_storage_locations\x18\x02 \x03(\x0b\x32M.hyperlane.core.interchain_security.v1.GenesisValidatorStorageLocationWrapperB\x04\xc8\xde\x1f\x00R\x19validatorStorageLocations\"\xb5\x01\n&GenesisValidatorStorageLocationWrapper\x12\x1d\n\nmailbox_id\x18\x01 \x01(\x04R\tmailboxId\x12+\n\x11validator_address\x18\x02 \x01(\tR\x10validatorAddress\x12\x14\n\x05index\x18\x03 \x01(\x04R\x05index\x12)\n\x10storage_location\x18\x04 \x01(\tR\x0fstorageLocationB\xbd\x02\n)com.hyperlane.core.interchain_security.v1B\x0cGenesisProtoP\x01ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\xa2\x02\x03HCI\xaa\x02$Hyperlane.Core.InterchainSecurity.V1\xca\x02$Hyperlane\\Core\\InterchainSecurity\\V1\xe2\x02\x30Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\xea\x02\'Hyperlane::Core::InterchainSecurity::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.interchain_security.v1.genesis_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n)com.hyperlane.core.interchain_security.v1B\014GenesisProtoP\001ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\242\002\003HCI\252\002$Hyperlane.Core.InterchainSecurity.V1\312\002$Hyperlane\\Core\\InterchainSecurity\\V1\342\0020Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\352\002\'Hyperlane::Core::InterchainSecurity::V1' - _globals['_GENESISSTATE'].fields_by_name['validator_storage_locations']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['validator_storage_locations']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE']._serialized_start=144 - _globals['_GENESISSTATE']._serialized_end=350 - _globals['_GENESISVALIDATORSTORAGELOCATIONWRAPPER']._serialized_start=353 - _globals['_GENESISVALIDATORSTORAGELOCATIONWRAPPER']._serialized_end=534 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/genesis_pb2_grpc.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/genesis_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/genesis_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/query_pb2.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/query_pb2.py deleted file mode 100644 index b6d27cca..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/query_pb2.py +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/interchain_security/v1/query.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 -from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1hyperlane/core/interchain_security/v1/query.proto\x12%hyperlane.core.interchain_security.v1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\"Z\n\x10QueryIsmsRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xdd\x01\n\x11QueryIsmsResponse\x12\x7f\n\x04isms\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyBU\xca\xb4-Qhyperlane.core.v1.01_interchain_security_module.HyperlaneInterchainSecurityModuleR\x04isms\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"!\n\x0fQueryIsmRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"E\n\x10QueryIsmResponse\x12\x31\n\x03ism\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x03ism\"s\n%QueryAnnouncedStorageLocationsRequest\x12\x1d\n\nmailbox_id\x18\x01 \x01(\tR\tmailboxId\x12+\n\x11validator_address\x18\x02 \x01(\tR\x10validatorAddress\"U\n&QueryAnnouncedStorageLocationsResponse\x12+\n\x11storage_locations\x18\x01 \x03(\tR\x10storageLocations\"x\n*QueryLatestAnnouncedStorageLocationRequest\x12\x1d\n\nmailbox_id\x18\x01 \x01(\tR\tmailboxId\x12+\n\x11validator_address\x18\x02 \x01(\tR\x10validatorAddress\"X\n+QueryLatestAnnouncedStorageLocationResponse\x12)\n\x10storage_location\x18\x01 \x01(\tR\x0fstorageLocation2\x81\x07\n\x05Query\x12\x95\x01\n\x04Isms\x12\x37.hyperlane.core.interchain_security.v1.QueryIsmsRequest\x1a\x38.hyperlane.core.interchain_security.v1.QueryIsmsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/hyperlane/v1/isms\x12\x97\x01\n\x03Ism\x12\x36.hyperlane.core.interchain_security.v1.QueryIsmRequest\x1a\x37.hyperlane.core.interchain_security.v1.QueryIsmResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/hyperlane/v1/isms/{id}\x12\x96\x02\n\x19\x41nnouncedStorageLocations\x12L.hyperlane.core.interchain_security.v1.QueryAnnouncedStorageLocationsRequest\x1aM.hyperlane.core.interchain_security.v1.QueryAnnouncedStorageLocationsResponse\"\\\x82\xd3\xe4\x93\x02V\x12T/hyperlane/v1/mailboxes/{mailbox_id}/announced_storage_locations/{validator_address}\x12\xac\x02\n\x1eLatestAnnouncedStorageLocation\x12Q.hyperlane.core.interchain_security.v1.QueryLatestAnnouncedStorageLocationRequest\x1aR.hyperlane.core.interchain_security.v1.QueryLatestAnnouncedStorageLocationResponse\"c\x82\xd3\xe4\x93\x02]\x12[/hyperlane/v1/mailboxes/{mailbox_id}/announced_storage_locations/{validator_address}/latestB\xbb\x02\n)com.hyperlane.core.interchain_security.v1B\nQueryProtoP\x01ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\xa2\x02\x03HCI\xaa\x02$Hyperlane.Core.InterchainSecurity.V1\xca\x02$Hyperlane\\Core\\InterchainSecurity\\V1\xe2\x02\x30Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\xea\x02\'Hyperlane::Core::InterchainSecurity::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.interchain_security.v1.query_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n)com.hyperlane.core.interchain_security.v1B\nQueryProtoP\001ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\242\002\003HCI\252\002$Hyperlane.Core.InterchainSecurity.V1\312\002$Hyperlane\\Core\\InterchainSecurity\\V1\342\0020Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\352\002\'Hyperlane::Core::InterchainSecurity::V1' - _globals['_QUERYISMSRESPONSE'].fields_by_name['isms']._loaded_options = None - _globals['_QUERYISMSRESPONSE'].fields_by_name['isms']._serialized_options = b'\312\264-Qhyperlane.core.v1.01_interchain_security_module.HyperlaneInterchainSecurityModule' - _globals['_QUERYISMRESPONSE'].fields_by_name['ism']._loaded_options = None - _globals['_QUERYISMRESPONSE'].fields_by_name['ism']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERY'].methods_by_name['Isms']._loaded_options = None - _globals['_QUERY'].methods_by_name['Isms']._serialized_options = b'\202\323\344\223\002\024\022\022/hyperlane/v1/isms' - _globals['_QUERY'].methods_by_name['Ism']._loaded_options = None - _globals['_QUERY'].methods_by_name['Ism']._serialized_options = b'\202\323\344\223\002\031\022\027/hyperlane/v1/isms/{id}' - _globals['_QUERY'].methods_by_name['AnnouncedStorageLocations']._loaded_options = None - _globals['_QUERY'].methods_by_name['AnnouncedStorageLocations']._serialized_options = b'\202\323\344\223\002V\022T/hyperlane/v1/mailboxes/{mailbox_id}/announced_storage_locations/{validator_address}' - _globals['_QUERY'].methods_by_name['LatestAnnouncedStorageLocation']._loaded_options = None - _globals['_QUERY'].methods_by_name['LatestAnnouncedStorageLocation']._serialized_options = b'\202\323\344\223\002]\022[/hyperlane/v1/mailboxes/{mailbox_id}/announced_storage_locations/{validator_address}/latest' - _globals['_QUERYISMSREQUEST']._serialized_start=261 - _globals['_QUERYISMSREQUEST']._serialized_end=351 - _globals['_QUERYISMSRESPONSE']._serialized_start=354 - _globals['_QUERYISMSRESPONSE']._serialized_end=575 - _globals['_QUERYISMREQUEST']._serialized_start=577 - _globals['_QUERYISMREQUEST']._serialized_end=610 - _globals['_QUERYISMRESPONSE']._serialized_start=612 - _globals['_QUERYISMRESPONSE']._serialized_end=681 - _globals['_QUERYANNOUNCEDSTORAGELOCATIONSREQUEST']._serialized_start=683 - _globals['_QUERYANNOUNCEDSTORAGELOCATIONSREQUEST']._serialized_end=798 - _globals['_QUERYANNOUNCEDSTORAGELOCATIONSRESPONSE']._serialized_start=800 - _globals['_QUERYANNOUNCEDSTORAGELOCATIONSRESPONSE']._serialized_end=885 - _globals['_QUERYLATESTANNOUNCEDSTORAGELOCATIONREQUEST']._serialized_start=887 - _globals['_QUERYLATESTANNOUNCEDSTORAGELOCATIONREQUEST']._serialized_end=1007 - _globals['_QUERYLATESTANNOUNCEDSTORAGELOCATIONRESPONSE']._serialized_start=1009 - _globals['_QUERYLATESTANNOUNCEDSTORAGELOCATIONRESPONSE']._serialized_end=1097 - _globals['_QUERY']._serialized_start=1100 - _globals['_QUERY']._serialized_end=1997 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/query_pb2_grpc.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/query_pb2_grpc.py deleted file mode 100644 index 4910e9c7..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/query_pb2_grpc.py +++ /dev/null @@ -1,213 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.core.interchain_security.v1 import query_pb2 as hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2 - - -class QueryStub(object): - """Query defines the module Query service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Isms = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Query/Isms', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmsRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmsResponse.FromString, - _registered_method=True) - self.Ism = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Query/Ism', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmResponse.FromString, - _registered_method=True) - self.AnnouncedStorageLocations = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Query/AnnouncedStorageLocations', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryAnnouncedStorageLocationsRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryAnnouncedStorageLocationsResponse.FromString, - _registered_method=True) - self.LatestAnnouncedStorageLocation = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Query/LatestAnnouncedStorageLocation', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryLatestAnnouncedStorageLocationRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryLatestAnnouncedStorageLocationResponse.FromString, - _registered_method=True) - - -class QueryServicer(object): - """Query defines the module Query service. - """ - - def Isms(self, request, context): - """Isms ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Ism(self, request, context): - """Ism ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AnnouncedStorageLocations(self, request, context): - """AnnouncedStorageLocations ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def LatestAnnouncedStorageLocation(self, request, context): - """LatestAnnouncedStorageLocation ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_QueryServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Isms': grpc.unary_unary_rpc_method_handler( - servicer.Isms, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmsRequest.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmsResponse.SerializeToString, - ), - 'Ism': grpc.unary_unary_rpc_method_handler( - servicer.Ism, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmRequest.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmResponse.SerializeToString, - ), - 'AnnouncedStorageLocations': grpc.unary_unary_rpc_method_handler( - servicer.AnnouncedStorageLocations, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryAnnouncedStorageLocationsRequest.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryAnnouncedStorageLocationsResponse.SerializeToString, - ), - 'LatestAnnouncedStorageLocation': grpc.unary_unary_rpc_method_handler( - servicer.LatestAnnouncedStorageLocation, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryLatestAnnouncedStorageLocationRequest.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryLatestAnnouncedStorageLocationResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.core.interchain_security.v1.Query', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.core.interchain_security.v1.Query', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Query(object): - """Query defines the module Query service. - """ - - @staticmethod - def Isms(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Query/Isms', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmsRequest.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Ism(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Query/Ism', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmRequest.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryIsmResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def AnnouncedStorageLocations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Query/AnnouncedStorageLocations', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryAnnouncedStorageLocationsRequest.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryAnnouncedStorageLocationsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def LatestAnnouncedStorageLocation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Query/LatestAnnouncedStorageLocation', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryLatestAnnouncedStorageLocationRequest.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_query__pb2.QueryLatestAnnouncedStorageLocationResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/tx_pb2.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/tx_pb2.py deleted file mode 100644 index 50aeeb60..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/tx_pb2.py +++ /dev/null @@ -1,104 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/interchain_security/v1/tx.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from hyperlane.core.interchain_security.v1 import types_pb2 as hyperlane_dot_core_dot_interchain__security_dot_v1_dot_types__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.hyperlane/core/interchain_security/v1/tx.proto\x12%hyperlane.core.interchain_security.v1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\x1a\x31hyperlane/core/interchain_security/v1/types.proto\x1a\x14gogoproto/gogo.proto\"\xb4\x01\n\x1dMsgCreateMessageIdMultisigIsm\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12\x1e\n\nvalidators\x18\x02 \x03(\tR\nvalidators\x12\x1c\n\tthreshold\x18\x03 \x01(\rR\tthreshold:;\x82\xe7\xb0*\x07\x63reator\x8a\xe7\xb0**hyperlane/v1/MsgCreateMessageIdMultisigIsm\"|\n%MsgCreateMessageIdMultisigIsmResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\xb6\x01\n\x1eMsgCreateMerkleRootMultisigIsm\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12\x1e\n\nvalidators\x18\x02 \x03(\tR\nvalidators\x12\x1c\n\tthreshold\x18\x03 \x01(\rR\tthreshold:<\x82\xe7\xb0*\x07\x63reator\x8a\xe7\xb0*+hyperlane/v1/MsgCreateMerkleRootMultisigIsm\"}\n&MsgCreateMerkleRootMultisigIsmResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\\\n\x10MsgCreateNoopIsm\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator:.\x82\xe7\xb0*\x07\x63reator\x8a\xe7\xb0*\x1dhyperlane/v1/MsgCreateNoopIsm\"o\n\x18MsgCreateNoopIsmResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\xaf\x02\n\x14MsgAnnounceValidator\x12\x1c\n\tvalidator\x18\x01 \x01(\tR\tvalidator\x12)\n\x10storage_location\x18\x02 \x01(\tR\x0fstorageLocation\x12\x1c\n\tsignature\x18\x03 \x01(\tR\tsignature\x12\x62\n\nmailbox_id\x18\x04 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12\x18\n\x07\x63reator\x18\x05 \x01(\tR\x07\x63reator:2\x82\xe7\xb0*\x07\x63reator\x8a\xe7\xb0*!hyperlane/v1/MsgAnnounceValidator\"\x1e\n\x1cMsgAnnounceValidatorResponse\"\xae\x01\n\x13MsgCreateRoutingIsm\x12\x18\n\x07\x63reator\x18\x01 \x01(\tR\x07\x63reator\x12J\n\x06routes\x18\x02 \x03(\x0b\x32,.hyperlane.core.interchain_security.v1.RouteB\x04\xc8\xde\x1f\x00R\x06routes:1\x82\xe7\xb0*\x07\x63reator\x8a\xe7\xb0* hyperlane/v1/MsgCreateRoutingIsm\"r\n\x1bMsgCreateRoutingIsmResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\x9b\x02\n\x16MsgSetRoutingIsmDomain\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12H\n\x05route\x18\x02 \x01(\x0b\x32,.hyperlane.core.interchain_security.v1.RouteB\x04\xc8\xde\x1f\x00R\x05route\x12\x14\n\x05owner\x18\x03 \x01(\tR\x05owner:E\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*6hyperlane/v1/MsgCreateRoMsgSetRoutingIsmDomainutingIsm\" \n\x1eMsgSetRoutingIsmDomainResponse\"\xdc\x01\n\x19MsgRemoveRoutingIsmDomain\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12\x16\n\x06\x64omain\x18\x02 \x01(\rR\x06\x64omain\x12\x14\n\x05owner\x18\x03 \x01(\tR\x05owner:5\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*&hyperlane/v1/MsgRemoveRoutingIsmDomain\"#\n!MsgRemoveRoutingIsmDomainResponse\"\xa8\x02\n\x18MsgUpdateRoutingIsmOwner\x12Z\n\x06ism_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x35\n\tnew_owner\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08newOwner\x12-\n\x12renounce_ownership\x18\x04 \x01(\x08R\x11renounceOwnership:4\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*%hyperlane/v1/MsgUpdateRoutingIsmOwner\"\"\n MsgUpdateRoutingIsmOwnerResponse2\x97\n\n\x03Msg\x12\xb0\x01\n\x1a\x43reateMessageIdMultisigIsm\x12\x44.hyperlane.core.interchain_security.v1.MsgCreateMessageIdMultisigIsm\x1aL.hyperlane.core.interchain_security.v1.MsgCreateMessageIdMultisigIsmResponse\x12\xb3\x01\n\x1b\x43reateMerkleRootMultisigIsm\x12\x45.hyperlane.core.interchain_security.v1.MsgCreateMerkleRootMultisigIsm\x1aM.hyperlane.core.interchain_security.v1.MsgCreateMerkleRootMultisigIsmResponse\x12\x89\x01\n\rCreateNoopIsm\x12\x37.hyperlane.core.interchain_security.v1.MsgCreateNoopIsm\x1a?.hyperlane.core.interchain_security.v1.MsgCreateNoopIsmResponse\x12\x92\x01\n\x10\x43reateRoutingIsm\x12:.hyperlane.core.interchain_security.v1.MsgCreateRoutingIsm\x1a\x42.hyperlane.core.interchain_security.v1.MsgCreateRoutingIsmResponse\x12\x9b\x01\n\x13SetRoutingIsmDomain\x12=.hyperlane.core.interchain_security.v1.MsgSetRoutingIsmDomain\x1a\x45.hyperlane.core.interchain_security.v1.MsgSetRoutingIsmDomainResponse\x12\xa4\x01\n\x16RemoveRoutingIsmDomain\x12@.hyperlane.core.interchain_security.v1.MsgRemoveRoutingIsmDomain\x1aH.hyperlane.core.interchain_security.v1.MsgRemoveRoutingIsmDomainResponse\x12\xa1\x01\n\x15UpdateRoutingIsmOwner\x12?.hyperlane.core.interchain_security.v1.MsgUpdateRoutingIsmOwner\x1aG.hyperlane.core.interchain_security.v1.MsgUpdateRoutingIsmOwnerResponse\x12\x95\x01\n\x11\x41nnounceValidator\x12;.hyperlane.core.interchain_security.v1.MsgAnnounceValidator\x1a\x43.hyperlane.core.interchain_security.v1.MsgAnnounceValidatorResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xb8\x02\n)com.hyperlane.core.interchain_security.v1B\x07TxProtoP\x01ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\xa2\x02\x03HCI\xaa\x02$Hyperlane.Core.InterchainSecurity.V1\xca\x02$Hyperlane\\Core\\InterchainSecurity\\V1\xe2\x02\x30Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\xea\x02\'Hyperlane::Core::InterchainSecurity::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.interchain_security.v1.tx_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n)com.hyperlane.core.interchain_security.v1B\007TxProtoP\001ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\242\002\003HCI\252\002$Hyperlane.Core.InterchainSecurity.V1\312\002$Hyperlane\\Core\\InterchainSecurity\\V1\342\0020Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\352\002\'Hyperlane::Core::InterchainSecurity::V1' - _globals['_MSGCREATEMESSAGEIDMULTISIGISM']._loaded_options = None - _globals['_MSGCREATEMESSAGEIDMULTISIGISM']._serialized_options = b'\202\347\260*\007creator\212\347\260**hyperlane/v1/MsgCreateMessageIdMultisigIsm' - _globals['_MSGCREATEMESSAGEIDMULTISIGISMRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATEMESSAGEIDMULTISIGISMRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATEMERKLEROOTMULTISIGISM']._loaded_options = None - _globals['_MSGCREATEMERKLEROOTMULTISIGISM']._serialized_options = b'\202\347\260*\007creator\212\347\260*+hyperlane/v1/MsgCreateMerkleRootMultisigIsm' - _globals['_MSGCREATEMERKLEROOTMULTISIGISMRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATEMERKLEROOTMULTISIGISMRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATENOOPISM']._loaded_options = None - _globals['_MSGCREATENOOPISM']._serialized_options = b'\202\347\260*\007creator\212\347\260*\035hyperlane/v1/MsgCreateNoopIsm' - _globals['_MSGCREATENOOPISMRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATENOOPISMRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGANNOUNCEVALIDATOR'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_MSGANNOUNCEVALIDATOR'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGANNOUNCEVALIDATOR']._loaded_options = None - _globals['_MSGANNOUNCEVALIDATOR']._serialized_options = b'\202\347\260*\007creator\212\347\260*!hyperlane/v1/MsgAnnounceValidator' - _globals['_MSGCREATEROUTINGISM'].fields_by_name['routes']._loaded_options = None - _globals['_MSGCREATEROUTINGISM'].fields_by_name['routes']._serialized_options = b'\310\336\037\000' - _globals['_MSGCREATEROUTINGISM']._loaded_options = None - _globals['_MSGCREATEROUTINGISM']._serialized_options = b'\202\347\260*\007creator\212\347\260* hyperlane/v1/MsgCreateRoutingIsm' - _globals['_MSGCREATEROUTINGISMRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATEROUTINGISMRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETROUTINGISMDOMAIN'].fields_by_name['ism_id']._loaded_options = None - _globals['_MSGSETROUTINGISMDOMAIN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETROUTINGISMDOMAIN'].fields_by_name['route']._loaded_options = None - _globals['_MSGSETROUTINGISMDOMAIN'].fields_by_name['route']._serialized_options = b'\310\336\037\000' - _globals['_MSGSETROUTINGISMDOMAIN']._loaded_options = None - _globals['_MSGSETROUTINGISMDOMAIN']._serialized_options = b'\202\347\260*\005owner\212\347\260*6hyperlane/v1/MsgCreateRoMsgSetRoutingIsmDomainutingIsm' - _globals['_MSGREMOVEROUTINGISMDOMAIN'].fields_by_name['ism_id']._loaded_options = None - _globals['_MSGREMOVEROUTINGISMDOMAIN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGREMOVEROUTINGISMDOMAIN']._loaded_options = None - _globals['_MSGREMOVEROUTINGISMDOMAIN']._serialized_options = b'\202\347\260*\005owner\212\347\260*&hyperlane/v1/MsgRemoveRoutingIsmDomain' - _globals['_MSGUPDATEROUTINGISMOWNER'].fields_by_name['ism_id']._loaded_options = None - _globals['_MSGUPDATEROUTINGISMOWNER'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGUPDATEROUTINGISMOWNER'].fields_by_name['new_owner']._loaded_options = None - _globals['_MSGUPDATEROUTINGISMOWNER'].fields_by_name['new_owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGUPDATEROUTINGISMOWNER']._loaded_options = None - _globals['_MSGUPDATEROUTINGISMOWNER']._serialized_options = b'\202\347\260*\005owner\212\347\260*%hyperlane/v1/MsgUpdateRoutingIsmOwner' - _globals['_MSG']._loaded_options = None - _globals['_MSG']._serialized_options = b'\200\347\260*\001' - _globals['_MSGCREATEMESSAGEIDMULTISIGISM']._serialized_start=234 - _globals['_MSGCREATEMESSAGEIDMULTISIGISM']._serialized_end=414 - _globals['_MSGCREATEMESSAGEIDMULTISIGISMRESPONSE']._serialized_start=416 - _globals['_MSGCREATEMESSAGEIDMULTISIGISMRESPONSE']._serialized_end=540 - _globals['_MSGCREATEMERKLEROOTMULTISIGISM']._serialized_start=543 - _globals['_MSGCREATEMERKLEROOTMULTISIGISM']._serialized_end=725 - _globals['_MSGCREATEMERKLEROOTMULTISIGISMRESPONSE']._serialized_start=727 - _globals['_MSGCREATEMERKLEROOTMULTISIGISMRESPONSE']._serialized_end=852 - _globals['_MSGCREATENOOPISM']._serialized_start=854 - _globals['_MSGCREATENOOPISM']._serialized_end=946 - _globals['_MSGCREATENOOPISMRESPONSE']._serialized_start=948 - _globals['_MSGCREATENOOPISMRESPONSE']._serialized_end=1059 - _globals['_MSGANNOUNCEVALIDATOR']._serialized_start=1062 - _globals['_MSGANNOUNCEVALIDATOR']._serialized_end=1365 - _globals['_MSGANNOUNCEVALIDATORRESPONSE']._serialized_start=1367 - _globals['_MSGANNOUNCEVALIDATORRESPONSE']._serialized_end=1397 - _globals['_MSGCREATEROUTINGISM']._serialized_start=1400 - _globals['_MSGCREATEROUTINGISM']._serialized_end=1574 - _globals['_MSGCREATEROUTINGISMRESPONSE']._serialized_start=1576 - _globals['_MSGCREATEROUTINGISMRESPONSE']._serialized_end=1690 - _globals['_MSGSETROUTINGISMDOMAIN']._serialized_start=1693 - _globals['_MSGSETROUTINGISMDOMAIN']._serialized_end=1976 - _globals['_MSGSETROUTINGISMDOMAINRESPONSE']._serialized_start=1978 - _globals['_MSGSETROUTINGISMDOMAINRESPONSE']._serialized_end=2010 - _globals['_MSGREMOVEROUTINGISMDOMAIN']._serialized_start=2013 - _globals['_MSGREMOVEROUTINGISMDOMAIN']._serialized_end=2233 - _globals['_MSGREMOVEROUTINGISMDOMAINRESPONSE']._serialized_start=2235 - _globals['_MSGREMOVEROUTINGISMDOMAINRESPONSE']._serialized_end=2270 - _globals['_MSGUPDATEROUTINGISMOWNER']._serialized_start=2273 - _globals['_MSGUPDATEROUTINGISMOWNER']._serialized_end=2569 - _globals['_MSGUPDATEROUTINGISMOWNERRESPONSE']._serialized_start=2571 - _globals['_MSGUPDATEROUTINGISMOWNERRESPONSE']._serialized_end=2605 - _globals['_MSG']._serialized_start=2608 - _globals['_MSG']._serialized_end=3911 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/tx_pb2_grpc.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/tx_pb2_grpc.py deleted file mode 100644 index fa0179d3..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/tx_pb2_grpc.py +++ /dev/null @@ -1,389 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.core.interchain_security.v1 import tx_pb2 as hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2 - - -class MsgStub(object): - """Msg defines the module Msg service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateMessageIdMultisigIsm = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/CreateMessageIdMultisigIsm', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMessageIdMultisigIsm.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMessageIdMultisigIsmResponse.FromString, - _registered_method=True) - self.CreateMerkleRootMultisigIsm = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/CreateMerkleRootMultisigIsm', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMerkleRootMultisigIsm.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMerkleRootMultisigIsmResponse.FromString, - _registered_method=True) - self.CreateNoopIsm = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/CreateNoopIsm', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateNoopIsm.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateNoopIsmResponse.FromString, - _registered_method=True) - self.CreateRoutingIsm = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/CreateRoutingIsm', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateRoutingIsm.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateRoutingIsmResponse.FromString, - _registered_method=True) - self.SetRoutingIsmDomain = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/SetRoutingIsmDomain', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgSetRoutingIsmDomain.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgSetRoutingIsmDomainResponse.FromString, - _registered_method=True) - self.RemoveRoutingIsmDomain = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/RemoveRoutingIsmDomain', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgRemoveRoutingIsmDomain.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgRemoveRoutingIsmDomainResponse.FromString, - _registered_method=True) - self.UpdateRoutingIsmOwner = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/UpdateRoutingIsmOwner', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgUpdateRoutingIsmOwner.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgUpdateRoutingIsmOwnerResponse.FromString, - _registered_method=True) - self.AnnounceValidator = channel.unary_unary( - '/hyperlane.core.interchain_security.v1.Msg/AnnounceValidator', - request_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgAnnounceValidator.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgAnnounceValidatorResponse.FromString, - _registered_method=True) - - -class MsgServicer(object): - """Msg defines the module Msg service. - """ - - def CreateMessageIdMultisigIsm(self, request, context): - """CreateMessageIdMultisigIsm ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateMerkleRootMultisigIsm(self, request, context): - """CreateMerkleRootMultisigIsm ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateNoopIsm(self, request, context): - """CreateNoopIsm ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateRoutingIsm(self, request, context): - """CreateRoutingIsm ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetRoutingIsmDomain(self, request, context): - """SetRoutingIsmDomain ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoveRoutingIsmDomain(self, request, context): - """RemoveRoutingIsmDomain ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateRoutingIsmOwner(self, request, context): - """UpdateRoutingIsmOwner ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AnnounceValidator(self, request, context): - """AnnounceValidator ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MsgServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateMessageIdMultisigIsm': grpc.unary_unary_rpc_method_handler( - servicer.CreateMessageIdMultisigIsm, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMessageIdMultisigIsm.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMessageIdMultisigIsmResponse.SerializeToString, - ), - 'CreateMerkleRootMultisigIsm': grpc.unary_unary_rpc_method_handler( - servicer.CreateMerkleRootMultisigIsm, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMerkleRootMultisigIsm.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMerkleRootMultisigIsmResponse.SerializeToString, - ), - 'CreateNoopIsm': grpc.unary_unary_rpc_method_handler( - servicer.CreateNoopIsm, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateNoopIsm.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateNoopIsmResponse.SerializeToString, - ), - 'CreateRoutingIsm': grpc.unary_unary_rpc_method_handler( - servicer.CreateRoutingIsm, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateRoutingIsm.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateRoutingIsmResponse.SerializeToString, - ), - 'SetRoutingIsmDomain': grpc.unary_unary_rpc_method_handler( - servicer.SetRoutingIsmDomain, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgSetRoutingIsmDomain.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgSetRoutingIsmDomainResponse.SerializeToString, - ), - 'RemoveRoutingIsmDomain': grpc.unary_unary_rpc_method_handler( - servicer.RemoveRoutingIsmDomain, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgRemoveRoutingIsmDomain.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgRemoveRoutingIsmDomainResponse.SerializeToString, - ), - 'UpdateRoutingIsmOwner': grpc.unary_unary_rpc_method_handler( - servicer.UpdateRoutingIsmOwner, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgUpdateRoutingIsmOwner.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgUpdateRoutingIsmOwnerResponse.SerializeToString, - ), - 'AnnounceValidator': grpc.unary_unary_rpc_method_handler( - servicer.AnnounceValidator, - request_deserializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgAnnounceValidator.FromString, - response_serializer=hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgAnnounceValidatorResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.core.interchain_security.v1.Msg', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.core.interchain_security.v1.Msg', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Msg(object): - """Msg defines the module Msg service. - """ - - @staticmethod - def CreateMessageIdMultisigIsm(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/CreateMessageIdMultisigIsm', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMessageIdMultisigIsm.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMessageIdMultisigIsmResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def CreateMerkleRootMultisigIsm(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/CreateMerkleRootMultisigIsm', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMerkleRootMultisigIsm.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateMerkleRootMultisigIsmResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def CreateNoopIsm(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/CreateNoopIsm', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateNoopIsm.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateNoopIsmResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def CreateRoutingIsm(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/CreateRoutingIsm', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateRoutingIsm.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgCreateRoutingIsmResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def SetRoutingIsmDomain(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/SetRoutingIsmDomain', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgSetRoutingIsmDomain.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgSetRoutingIsmDomainResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RemoveRoutingIsmDomain(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/RemoveRoutingIsmDomain', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgRemoveRoutingIsmDomain.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgRemoveRoutingIsmDomainResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def UpdateRoutingIsmOwner(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/UpdateRoutingIsmOwner', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgUpdateRoutingIsmOwner.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgUpdateRoutingIsmOwnerResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def AnnounceValidator(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.interchain_security.v1.Msg/AnnounceValidator', - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgAnnounceValidator.SerializeToString, - hyperlane_dot_core_dot_interchain__security_dot_v1_dot_tx__pb2.MsgAnnounceValidatorResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/types_pb2.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/types_pb2.py deleted file mode 100644 index c7b2d478..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/types_pb2.py +++ /dev/null @@ -1,67 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/interchain_security/v1/types.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1hyperlane/core/interchain_security/v1/types.proto\x12%hyperlane.core.interchain_security.v1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\"|\n\x05Route\x12U\n\x03ism\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x03ism\x12\x16\n\x06\x64omain\x18\x02 \x01(\rR\x06\x64omain:\x04\x88\xa0\x1f\x00\"\xae\x02\n\nRoutingISM\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12J\n\x06routes\x18\x03 \x03(\x0b\x32,.hyperlane.core.interchain_security.v1.RouteB\x04\xc8\xde\x1f\x00R\x06routes:O\x88\xa0\x1f\x00\xca\xb4-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModule\"\xaa\x02\n\x14MessageIdMultisigISM\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x1e\n\nvalidators\x18\x03 \x03(\tR\nvalidators\x12\x1c\n\tthreshold\x18\x04 \x01(\rR\tthreshold:O\x88\xa0\x1f\x00\xca\xb4-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModule\"\xab\x02\n\x15MerkleRootMultisigISM\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x1e\n\nvalidators\x18\x03 \x03(\tR\nvalidators\x12\x1c\n\tthreshold\x18\x04 \x01(\rR\tthreshold:O\x88\xa0\x1f\x00\xca\xb4-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModule\"\xdf\x01\n\x07NoopISM\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner:O\x88\xa0\x1f\x00\xca\xb4-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModuleB\xbb\x02\n)com.hyperlane.core.interchain_security.v1B\nTypesProtoP\x01ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\xa2\x02\x03HCI\xaa\x02$Hyperlane.Core.InterchainSecurity.V1\xca\x02$Hyperlane\\Core\\InterchainSecurity\\V1\xe2\x02\x30Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\xea\x02\'Hyperlane::Core::InterchainSecurity::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.interchain_security.v1.types_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n)com.hyperlane.core.interchain_security.v1B\nTypesProtoP\001ZOgithub.com/bcp-innovations/hyperlane-cosmos/x/core/01_interchain_security/types\242\002\003HCI\252\002$Hyperlane.Core.InterchainSecurity.V1\312\002$Hyperlane\\Core\\InterchainSecurity\\V1\342\0020Hyperlane\\Core\\InterchainSecurity\\V1\\GPBMetadata\352\002\'Hyperlane::Core::InterchainSecurity::V1' - _globals['_ROUTE'].fields_by_name['ism']._loaded_options = None - _globals['_ROUTE'].fields_by_name['ism']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_ROUTE']._loaded_options = None - _globals['_ROUTE']._serialized_options = b'\210\240\037\000' - _globals['_ROUTINGISM'].fields_by_name['id']._loaded_options = None - _globals['_ROUTINGISM'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_ROUTINGISM'].fields_by_name['owner']._loaded_options = None - _globals['_ROUTINGISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_ROUTINGISM'].fields_by_name['routes']._loaded_options = None - _globals['_ROUTINGISM'].fields_by_name['routes']._serialized_options = b'\310\336\037\000' - _globals['_ROUTINGISM']._loaded_options = None - _globals['_ROUTINGISM']._serialized_options = b'\210\240\037\000\312\264-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModule' - _globals['_MESSAGEIDMULTISIGISM'].fields_by_name['id']._loaded_options = None - _globals['_MESSAGEIDMULTISIGISM'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MESSAGEIDMULTISIGISM'].fields_by_name['owner']._loaded_options = None - _globals['_MESSAGEIDMULTISIGISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MESSAGEIDMULTISIGISM']._loaded_options = None - _globals['_MESSAGEIDMULTISIGISM']._serialized_options = b'\210\240\037\000\312\264-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModule' - _globals['_MERKLEROOTMULTISIGISM'].fields_by_name['id']._loaded_options = None - _globals['_MERKLEROOTMULTISIGISM'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MERKLEROOTMULTISIGISM'].fields_by_name['owner']._loaded_options = None - _globals['_MERKLEROOTMULTISIGISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MERKLEROOTMULTISIGISM']._loaded_options = None - _globals['_MERKLEROOTMULTISIGISM']._serialized_options = b'\210\240\037\000\312\264-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModule' - _globals['_NOOPISM'].fields_by_name['id']._loaded_options = None - _globals['_NOOPISM'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_NOOPISM'].fields_by_name['owner']._loaded_options = None - _globals['_NOOPISM'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_NOOPISM']._loaded_options = None - _globals['_NOOPISM']._serialized_options = b'\210\240\037\000\312\264-Ghyperlane.core.interchain_security.v1.HyperlaneInterchainSecurityModule' - _globals['_ROUTE']._serialized_start=141 - _globals['_ROUTE']._serialized_end=265 - _globals['_ROUTINGISM']._serialized_start=268 - _globals['_ROUTINGISM']._serialized_end=570 - _globals['_MESSAGEIDMULTISIGISM']._serialized_start=573 - _globals['_MESSAGEIDMULTISIGISM']._serialized_end=871 - _globals['_MERKLEROOTMULTISIGISM']._serialized_start=874 - _globals['_MERKLEROOTMULTISIGISM']._serialized_end=1173 - _globals['_NOOPISM']._serialized_start=1176 - _globals['_NOOPISM']._serialized_end=1399 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/interchain_security/v1/types_pb2_grpc.py b/pyinjective/proto/hyperlane/core/interchain_security/v1/types_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/interchain_security/v1/types_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/module/v1/module_pb2.py b/pyinjective/proto/hyperlane/core/module/v1/module_pb2.py deleted file mode 100644 index 51f72a89..00000000 --- a/pyinjective/proto/hyperlane/core/module/v1/module_pb2.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/module/v1/module.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%hyperlane/core/module/v1/module.proto\x12\x18hyperlane.core.module.v1\x1a cosmos/app/v1alpha1/module.proto\"b\n\x06Module\x12\x1c\n\tauthority\x18\x01 \x01(\tR\tauthority::\xba\xc0\x96\xda\x01\x34\n2github.com/bcp-innovations/hyperlane-cosmos/x/coreB\xae\x01\n\x1c\x63om.hyperlane.core.module.v1B\x0bModuleProtoP\x01\xa2\x02\x03HCM\xaa\x02\x18Hyperlane.Core.Module.V1\xca\x02\x18Hyperlane\\Core\\Module\\V1\xe2\x02$Hyperlane\\Core\\Module\\V1\\GPBMetadata\xea\x02\x1bHyperlane::Core::Module::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.module.v1.module_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\034com.hyperlane.core.module.v1B\013ModuleProtoP\001\242\002\003HCM\252\002\030Hyperlane.Core.Module.V1\312\002\030Hyperlane\\Core\\Module\\V1\342\002$Hyperlane\\Core\\Module\\V1\\GPBMetadata\352\002\033Hyperlane::Core::Module::V1' - _globals['_MODULE']._loaded_options = None - _globals['_MODULE']._serialized_options = b'\272\300\226\332\0014\n2github.com/bcp-innovations/hyperlane-cosmos/x/core' - _globals['_MODULE']._serialized_start=101 - _globals['_MODULE']._serialized_end=199 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/module/v1/module_pb2_grpc.py b/pyinjective/proto/hyperlane/core/module/v1/module_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/module/v1/module_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/events_pb2.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/events_pb2.py deleted file mode 100644 index a121418d..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/events_pb2.py +++ /dev/null @@ -1,70 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/post_dispatch/v1/events.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,hyperlane/core/post_dispatch/v1/events.proto\x12\x1fhyperlane.core.post_dispatch.v1\x1a\x14gogoproto/gogo.proto\"\x89\x02\n\x19\x45ventCreateMerkleTreeHook\x12r\n\x13merkle_tree_hook_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x10merkleTreeHookId\x12\x62\n\nmailbox_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12\x14\n\x05owner\x18\x03 \x01(\tR\x05owner\"\x85\x02\n\x15\x45ventInsertedIntoTree\x12\x62\n\nmessage_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmessageId\x12\x14\n\x05index\x18\x02 \x01(\rR\x05index\x12r\n\x13merkle_tree_hook_id\x18\x03 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x10merkleTreeHookId\"\xac\x02\n\x0f\x45ventGasPayment\x12\x62\n\nmessage_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmessageId\x12 \n\x0b\x64\x65stination\x18\x02 \x01(\rR\x0b\x64\x65stination\x12\x1d\n\ngas_amount\x18\x03 \x01(\tR\tgasAmount\x12\x18\n\x07payment\x18\x04 \x01(\tR\x07payment\x12Z\n\x06igp_id\x18\x05 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\"\x92\x01\n\x13\x45ventCreateNoopHook\x12\x65\n\x0cnoop_hook_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\nnoopHookId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\"\x98\x01\n\x0e\x45ventCreateIgp\x12Z\n\x06igp_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x14\n\x05\x64\x65nom\x18\x03 \x01(\tR\x05\x64\x65nom\"\xcb\x01\n\x0b\x45ventSetIgp\x12Z\n\x06igp_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x1b\n\tnew_owner\x18\x03 \x01(\tR\x08newOwner\x12-\n\x12renounce_ownership\x18\x04 \x01(\x08R\x11renounceOwnership\"\x82\x03\n\x1c\x45ventSetDestinationGasConfig\x12Z\n\x06igp_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12#\n\rremote_domain\x18\x04 \x01(\rR\x0cremoteDomain\x12@\n\x0cgas_overhead\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0bgasOverhead\x12:\n\tgas_price\x18\x06 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x08gasPrice\x12M\n\x13token_exchange_rate\x18\x07 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x11tokenExchangeRate\"\x99\x01\n\rEventClaimIgp\x12Z\n\x06igp_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x16\n\x06\x61mount\x18\x03 \x01(\tR\x06\x61mountB\x98\x02\n#com.hyperlane.core.post_dispatch.v1B\x0b\x45ventsProtoP\x01ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\xa2\x02\x03HCP\xaa\x02\x1eHyperlane.Core.PostDispatch.V1\xca\x02\x1eHyperlane\\Core\\PostDispatch\\V1\xe2\x02*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\xea\x02!Hyperlane::Core::PostDispatch::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.post_dispatch.v1.events_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#com.hyperlane.core.post_dispatch.v1B\013EventsProtoP\001ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\242\002\003HCP\252\002\036Hyperlane.Core.PostDispatch.V1\312\002\036Hyperlane\\Core\\PostDispatch\\V1\342\002*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\352\002!Hyperlane::Core::PostDispatch::V1' - _globals['_EVENTCREATEMERKLETREEHOOK'].fields_by_name['merkle_tree_hook_id']._loaded_options = None - _globals['_EVENTCREATEMERKLETREEHOOK'].fields_by_name['merkle_tree_hook_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEMERKLETREEHOOK'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_EVENTCREATEMERKLETREEHOOK'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTINSERTEDINTOTREE'].fields_by_name['message_id']._loaded_options = None - _globals['_EVENTINSERTEDINTOTREE'].fields_by_name['message_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTINSERTEDINTOTREE'].fields_by_name['merkle_tree_hook_id']._loaded_options = None - _globals['_EVENTINSERTEDINTOTREE'].fields_by_name['merkle_tree_hook_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTGASPAYMENT'].fields_by_name['message_id']._loaded_options = None - _globals['_EVENTGASPAYMENT'].fields_by_name['message_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTGASPAYMENT'].fields_by_name['igp_id']._loaded_options = None - _globals['_EVENTGASPAYMENT'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATENOOPHOOK'].fields_by_name['noop_hook_id']._loaded_options = None - _globals['_EVENTCREATENOOPHOOK'].fields_by_name['noop_hook_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEIGP'].fields_by_name['igp_id']._loaded_options = None - _globals['_EVENTCREATEIGP'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETIGP'].fields_by_name['igp_id']._loaded_options = None - _globals['_EVENTSETIGP'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['igp_id']._loaded_options = None - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['gas_overhead']._loaded_options = None - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['gas_overhead']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['gas_price']._loaded_options = None - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['gas_price']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['token_exchange_rate']._loaded_options = None - _globals['_EVENTSETDESTINATIONGASCONFIG'].fields_by_name['token_exchange_rate']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_EVENTCLAIMIGP'].fields_by_name['igp_id']._loaded_options = None - _globals['_EVENTCLAIMIGP'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEMERKLETREEHOOK']._serialized_start=104 - _globals['_EVENTCREATEMERKLETREEHOOK']._serialized_end=369 - _globals['_EVENTINSERTEDINTOTREE']._serialized_start=372 - _globals['_EVENTINSERTEDINTOTREE']._serialized_end=633 - _globals['_EVENTGASPAYMENT']._serialized_start=636 - _globals['_EVENTGASPAYMENT']._serialized_end=936 - _globals['_EVENTCREATENOOPHOOK']._serialized_start=939 - _globals['_EVENTCREATENOOPHOOK']._serialized_end=1085 - _globals['_EVENTCREATEIGP']._serialized_start=1088 - _globals['_EVENTCREATEIGP']._serialized_end=1240 - _globals['_EVENTSETIGP']._serialized_start=1243 - _globals['_EVENTSETIGP']._serialized_end=1446 - _globals['_EVENTSETDESTINATIONGASCONFIG']._serialized_start=1449 - _globals['_EVENTSETDESTINATIONGASCONFIG']._serialized_end=1835 - _globals['_EVENTCLAIMIGP']._serialized_start=1838 - _globals['_EVENTCLAIMIGP']._serialized_end=1991 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/events_pb2_grpc.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/events_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/events_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/genesis_pb2.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/genesis_pb2.py deleted file mode 100644 index 407c3e49..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/genesis_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/post_dispatch/v1/genesis.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from hyperlane.core.post_dispatch.v1 import types_pb2 as hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_types__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-hyperlane/core/post_dispatch/v1/genesis.proto\x12\x1fhyperlane.core.post_dispatch.v1\x1a+hyperlane/core/post_dispatch/v1/types.proto\x1a\x14gogoproto/gogo.proto\"\x87\x03\n\x0cGenesisState\x12Q\n\x04igps\x18\x01 \x03(\x0b\x32\x37.hyperlane.core.post_dispatch.v1.InterchainGasPaymasterB\x04\xc8\xde\x1f\x00R\x04igps\x12q\n\x0figp_gas_configs\x18\x02 \x03(\x0b\x32\x43.hyperlane.core.post_dispatch.v1.GenesisDestinationGasConfigWrapperB\x04\xc8\xde\x1f\x00R\rigpGasConfigs\x12\x61\n\x11merkle_tree_hooks\x18\x03 \x03(\x0b\x32/.hyperlane.core.post_dispatch.v1.MerkleTreeHookB\x04\xc8\xde\x1f\x00R\x0fmerkleTreeHooks\x12N\n\nnoop_hooks\x18\x04 \x03(\x0b\x32).hyperlane.core.post_dispatch.v1.NoopHookB\x04\xc8\xde\x1f\x00R\tnoopHooks\"\xed\x01\n\"GenesisDestinationGasConfigWrapper\x12#\n\rremote_domain\x18\x01 \x01(\rR\x0cremoteDomain\x12I\n\ngas_oracle\x18\x02 \x01(\x0b\x32*.hyperlane.core.post_dispatch.v1.GasOracleR\tgasOracle\x12@\n\x0cgas_overhead\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0bgasOverhead\x12\x15\n\x06igp_id\x18\x04 \x01(\x04R\x05igpIdB\x99\x02\n#com.hyperlane.core.post_dispatch.v1B\x0cGenesisProtoP\x01ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\xa2\x02\x03HCP\xaa\x02\x1eHyperlane.Core.PostDispatch.V1\xca\x02\x1eHyperlane\\Core\\PostDispatch\\V1\xe2\x02*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\xea\x02!Hyperlane::Core::PostDispatch::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.post_dispatch.v1.genesis_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#com.hyperlane.core.post_dispatch.v1B\014GenesisProtoP\001ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\242\002\003HCP\252\002\036Hyperlane.Core.PostDispatch.V1\312\002\036Hyperlane\\Core\\PostDispatch\\V1\342\002*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\352\002!Hyperlane::Core::PostDispatch::V1' - _globals['_GENESISSTATE'].fields_by_name['igps']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['igps']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE'].fields_by_name['igp_gas_configs']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['igp_gas_configs']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE'].fields_by_name['merkle_tree_hooks']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['merkle_tree_hooks']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE'].fields_by_name['noop_hooks']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['noop_hooks']._serialized_options = b'\310\336\037\000' - _globals['_GENESISDESTINATIONGASCONFIGWRAPPER'].fields_by_name['gas_overhead']._loaded_options = None - _globals['_GENESISDESTINATIONGASCONFIGWRAPPER'].fields_by_name['gas_overhead']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_GENESISSTATE']._serialized_start=150 - _globals['_GENESISSTATE']._serialized_end=541 - _globals['_GENESISDESTINATIONGASCONFIGWRAPPER']._serialized_start=544 - _globals['_GENESISDESTINATIONGASCONFIGWRAPPER']._serialized_end=781 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/genesis_pb2_grpc.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/genesis_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/genesis_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/query_pb2.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/query_pb2.py deleted file mode 100644 index d0b33288..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/query_pb2.py +++ /dev/null @@ -1,97 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/post_dispatch/v1/query.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 -from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from hyperlane.core.post_dispatch.v1 import types_pb2 as hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_types__pb2 -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+hyperlane/core/post_dispatch/v1/query.proto\x12\x1fhyperlane.core.post_dispatch.v1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\x1a+hyperlane/core/post_dispatch/v1/types.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"Z\n\x10QueryIgpsRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xb4\x01\n\x11QueryIgpsResponse\x12V\n\x04igps\x18\x01 \x03(\x0b\x32\x37.hyperlane.core.post_dispatch.v1.InterchainGasPaymasterB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x04igps\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"!\n\x0fQueryIgpRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"h\n\x10QueryIgpResponse\x12T\n\x03igp\x18\x01 \x01(\x0b\x32\x37.hyperlane.core.post_dispatch.v1.InterchainGasPaymasterB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x03igp\"{\n!QueryDestinationGasConfigsRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xdc\x01\n\"QueryDestinationGasConfigsResponse\x12m\n\x17\x64\x65stination_gas_configs\x18\x01 \x03(\x0b\x32\x35.hyperlane.core.post_dispatch.v1.DestinationGasConfigR\x15\x64\x65stinationGasConfigs\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\x80\x01\n\x1bQueryQuoteGasPaymentRequest\x12\x15\n\x06igp_id\x18\x01 \x01(\tR\x05igpId\x12-\n\x12\x64\x65stination_domain\x18\x02 \x01(\tR\x11\x64\x65stinationDomain\x12\x1b\n\tgas_limit\x18\x03 \x01(\tR\x08gasLimit\"\x91\x01\n\x1cQueryQuoteGasPaymentResponse\x12q\n\x0bgas_payment\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\ngasPayment\"e\n\x1bQueryMerkleTreeHooksRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xde\x01\n\x1cQueryMerkleTreeHooksResponse\x12u\n\x11merkle_tree_hooks\x18\x01 \x03(\x0b\x32>.hyperlane.core.post_dispatch.v1.WrappedMerkleTreeHookResponseB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0fmerkleTreeHooks\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\",\n\x1aQueryMerkleTreeHookRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"\x92\x01\n\x1bQueryMerkleTreeHookResponse\x12s\n\x10merkle_tree_hook\x18\x01 \x01(\x0b\x32>.hyperlane.core.post_dispatch.v1.WrappedMerkleTreeHookResponseB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x0emerkleTreeHook\"\xb4\x01\n\x1dWrappedMerkleTreeHookResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\x1d\n\nmailbox_id\x18\x03 \x01(\tR\tmailboxId\x12N\n\x0bmerkle_tree\x18\x04 \x01(\x0b\x32-.hyperlane.core.post_dispatch.v1.TreeResponseR\nmerkleTree\"N\n\x0cTreeResponse\x12\x14\n\x05leafs\x18\x01 \x03(\x0cR\x05leafs\x12\x14\n\x05\x63ount\x18\x02 \x01(\rR\x05\x63ount\x12\x12\n\x04root\x18\x03 \x01(\x0cR\x04root\"&\n\x14QueryNoopHookRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"_\n\x15QueryNoopHookResponse\x12\x46\n\tnoop_hook\x18\x01 \x01(\x0b\x32).hyperlane.core.post_dispatch.v1.NoopHookR\x08noopHook\"_\n\x15QueryNoopHooksRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xb6\x01\n\x16QueryNoopHooksResponse\x12S\n\nnoop_hooks\x18\x01 \x03(\x0b\x32).hyperlane.core.post_dispatch.v1.NoopHookB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\tnoopHooks\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination2\xff\n\n\x05Query\x12\x89\x01\n\x04Igps\x12\x31.hyperlane.core.post_dispatch.v1.QueryIgpsRequest\x1a\x32.hyperlane.core.post_dispatch.v1.QueryIgpsResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/hyperlane/v1/igps\x12\x8b\x01\n\x03Igp\x12\x30.hyperlane.core.post_dispatch.v1.QueryIgpRequest\x1a\x31.hyperlane.core.post_dispatch.v1.QueryIgpResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/hyperlane/v1/igps/{id}\x12\xd9\x01\n\x15\x44\x65stinationGasConfigs\x12\x42.hyperlane.core.post_dispatch.v1.QueryDestinationGasConfigsRequest\x1a\x43.hyperlane.core.post_dispatch.v1.QueryDestinationGasConfigsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//hyperlane/v1/igps/{id}/destination_gas_configs\x12\xc5\x01\n\x0fQuoteGasPayment\x12<.hyperlane.core.post_dispatch.v1.QueryQuoteGasPaymentRequest\x1a=.hyperlane.core.post_dispatch.v1.QueryQuoteGasPaymentResponse\"5\x82\xd3\xe4\x93\x02/\x12-/hyperlane/v1/igps/{igp_id}/quote_gas_payment\x12\xb7\x01\n\x0fMerkleTreeHooks\x12<.hyperlane.core.post_dispatch.v1.QueryMerkleTreeHooksRequest\x1a=.hyperlane.core.post_dispatch.v1.QueryMerkleTreeHooksResponse\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/hyperlane/v1/merkle_tree_hooks\x12\xb9\x01\n\x0eMerkleTreeHook\x12;.hyperlane.core.post_dispatch.v1.QueryMerkleTreeHookRequest\x1a<.hyperlane.core.post_dispatch.v1.QueryMerkleTreeHookResponse\",\x82\xd3\xe4\x93\x02&\x12$/hyperlane/v1/merkle_tree_hooks/{id}\x12\x9e\x01\n\tNoopHooks\x12\x36.hyperlane.core.post_dispatch.v1.QueryNoopHooksRequest\x1a\x37.hyperlane.core.post_dispatch.v1.QueryNoopHooksResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/hyperlane/v1/noop_hooks\x12\xa0\x01\n\x08NoopHook\x12\x35.hyperlane.core.post_dispatch.v1.QueryNoopHookRequest\x1a\x36.hyperlane.core.post_dispatch.v1.QueryNoopHookResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/hyperlane/v1/noop_hooks/{id}B\x97\x02\n#com.hyperlane.core.post_dispatch.v1B\nQueryProtoP\x01ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\xa2\x02\x03HCP\xaa\x02\x1eHyperlane.Core.PostDispatch.V1\xca\x02\x1eHyperlane\\Core\\PostDispatch\\V1\xe2\x02*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\xea\x02!Hyperlane::Core::PostDispatch::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.post_dispatch.v1.query_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#com.hyperlane.core.post_dispatch.v1B\nQueryProtoP\001ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\242\002\003HCP\252\002\036Hyperlane.Core.PostDispatch.V1\312\002\036Hyperlane\\Core\\PostDispatch\\V1\342\002*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\352\002!Hyperlane::Core::PostDispatch::V1' - _globals['_QUERYIGPSRESPONSE'].fields_by_name['igps']._loaded_options = None - _globals['_QUERYIGPSRESPONSE'].fields_by_name['igps']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERYIGPRESPONSE'].fields_by_name['igp']._loaded_options = None - _globals['_QUERYIGPRESPONSE'].fields_by_name['igp']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERYQUOTEGASPAYMENTRESPONSE'].fields_by_name['gas_payment']._loaded_options = None - _globals['_QUERYQUOTEGASPAYMENTRESPONSE'].fields_by_name['gas_payment']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' - _globals['_QUERYMERKLETREEHOOKSRESPONSE'].fields_by_name['merkle_tree_hooks']._loaded_options = None - _globals['_QUERYMERKLETREEHOOKSRESPONSE'].fields_by_name['merkle_tree_hooks']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERYMERKLETREEHOOKRESPONSE'].fields_by_name['merkle_tree_hook']._loaded_options = None - _globals['_QUERYMERKLETREEHOOKRESPONSE'].fields_by_name['merkle_tree_hook']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERYNOOPHOOKSRESPONSE'].fields_by_name['noop_hooks']._loaded_options = None - _globals['_QUERYNOOPHOOKSRESPONSE'].fields_by_name['noop_hooks']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERY'].methods_by_name['Igps']._loaded_options = None - _globals['_QUERY'].methods_by_name['Igps']._serialized_options = b'\202\323\344\223\002\024\022\022/hyperlane/v1/igps' - _globals['_QUERY'].methods_by_name['Igp']._loaded_options = None - _globals['_QUERY'].methods_by_name['Igp']._serialized_options = b'\202\323\344\223\002\031\022\027/hyperlane/v1/igps/{id}' - _globals['_QUERY'].methods_by_name['DestinationGasConfigs']._loaded_options = None - _globals['_QUERY'].methods_by_name['DestinationGasConfigs']._serialized_options = b'\202\323\344\223\0021\022//hyperlane/v1/igps/{id}/destination_gas_configs' - _globals['_QUERY'].methods_by_name['QuoteGasPayment']._loaded_options = None - _globals['_QUERY'].methods_by_name['QuoteGasPayment']._serialized_options = b'\202\323\344\223\002/\022-/hyperlane/v1/igps/{igp_id}/quote_gas_payment' - _globals['_QUERY'].methods_by_name['MerkleTreeHooks']._loaded_options = None - _globals['_QUERY'].methods_by_name['MerkleTreeHooks']._serialized_options = b'\202\323\344\223\002!\022\037/hyperlane/v1/merkle_tree_hooks' - _globals['_QUERY'].methods_by_name['MerkleTreeHook']._loaded_options = None - _globals['_QUERY'].methods_by_name['MerkleTreeHook']._serialized_options = b'\202\323\344\223\002&\022$/hyperlane/v1/merkle_tree_hooks/{id}' - _globals['_QUERY'].methods_by_name['NoopHooks']._loaded_options = None - _globals['_QUERY'].methods_by_name['NoopHooks']._serialized_options = b'\202\323\344\223\002\032\022\030/hyperlane/v1/noop_hooks' - _globals['_QUERY'].methods_by_name['NoopHook']._loaded_options = None - _globals['_QUERY'].methods_by_name['NoopHook']._serialized_options = b'\202\323\344\223\002\037\022\035/hyperlane/v1/noop_hooks/{id}' - _globals['_QUERYIGPSREQUEST']._serialized_start=272 - _globals['_QUERYIGPSREQUEST']._serialized_end=362 - _globals['_QUERYIGPSRESPONSE']._serialized_start=365 - _globals['_QUERYIGPSRESPONSE']._serialized_end=545 - _globals['_QUERYIGPREQUEST']._serialized_start=547 - _globals['_QUERYIGPREQUEST']._serialized_end=580 - _globals['_QUERYIGPRESPONSE']._serialized_start=582 - _globals['_QUERYIGPRESPONSE']._serialized_end=686 - _globals['_QUERYDESTINATIONGASCONFIGSREQUEST']._serialized_start=688 - _globals['_QUERYDESTINATIONGASCONFIGSREQUEST']._serialized_end=811 - _globals['_QUERYDESTINATIONGASCONFIGSRESPONSE']._serialized_start=814 - _globals['_QUERYDESTINATIONGASCONFIGSRESPONSE']._serialized_end=1034 - _globals['_QUERYQUOTEGASPAYMENTREQUEST']._serialized_start=1037 - _globals['_QUERYQUOTEGASPAYMENTREQUEST']._serialized_end=1165 - _globals['_QUERYQUOTEGASPAYMENTRESPONSE']._serialized_start=1168 - _globals['_QUERYQUOTEGASPAYMENTRESPONSE']._serialized_end=1313 - _globals['_QUERYMERKLETREEHOOKSREQUEST']._serialized_start=1315 - _globals['_QUERYMERKLETREEHOOKSREQUEST']._serialized_end=1416 - _globals['_QUERYMERKLETREEHOOKSRESPONSE']._serialized_start=1419 - _globals['_QUERYMERKLETREEHOOKSRESPONSE']._serialized_end=1641 - _globals['_QUERYMERKLETREEHOOKREQUEST']._serialized_start=1643 - _globals['_QUERYMERKLETREEHOOKREQUEST']._serialized_end=1687 - _globals['_QUERYMERKLETREEHOOKRESPONSE']._serialized_start=1690 - _globals['_QUERYMERKLETREEHOOKRESPONSE']._serialized_end=1836 - _globals['_WRAPPEDMERKLETREEHOOKRESPONSE']._serialized_start=1839 - _globals['_WRAPPEDMERKLETREEHOOKRESPONSE']._serialized_end=2019 - _globals['_TREERESPONSE']._serialized_start=2021 - _globals['_TREERESPONSE']._serialized_end=2099 - _globals['_QUERYNOOPHOOKREQUEST']._serialized_start=2101 - _globals['_QUERYNOOPHOOKREQUEST']._serialized_end=2139 - _globals['_QUERYNOOPHOOKRESPONSE']._serialized_start=2141 - _globals['_QUERYNOOPHOOKRESPONSE']._serialized_end=2236 - _globals['_QUERYNOOPHOOKSREQUEST']._serialized_start=2238 - _globals['_QUERYNOOPHOOKSREQUEST']._serialized_end=2333 - _globals['_QUERYNOOPHOOKSRESPONSE']._serialized_start=2336 - _globals['_QUERYNOOPHOOKSRESPONSE']._serialized_end=2518 - _globals['_QUERY']._serialized_start=2521 - _globals['_QUERY']._serialized_end=3928 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/query_pb2_grpc.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/query_pb2_grpc.py deleted file mode 100644 index 8b89700e..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/query_pb2_grpc.py +++ /dev/null @@ -1,389 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.core.post_dispatch.v1 import query_pb2 as hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2 - - -class QueryStub(object): - """Msg defines the module Msg service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Igps = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/Igps', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpsRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpsResponse.FromString, - _registered_method=True) - self.Igp = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/Igp', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpResponse.FromString, - _registered_method=True) - self.DestinationGasConfigs = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/DestinationGasConfigs', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryDestinationGasConfigsRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryDestinationGasConfigsResponse.FromString, - _registered_method=True) - self.QuoteGasPayment = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/QuoteGasPayment', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryQuoteGasPaymentRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryQuoteGasPaymentResponse.FromString, - _registered_method=True) - self.MerkleTreeHooks = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/MerkleTreeHooks', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHooksRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHooksResponse.FromString, - _registered_method=True) - self.MerkleTreeHook = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/MerkleTreeHook', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHookRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHookResponse.FromString, - _registered_method=True) - self.NoopHooks = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/NoopHooks', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHooksRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHooksResponse.FromString, - _registered_method=True) - self.NoopHook = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Query/NoopHook', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHookRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHookResponse.FromString, - _registered_method=True) - - -class QueryServicer(object): - """Msg defines the module Msg service. - """ - - def Igps(self, request, context): - """Igps ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Igp(self, request, context): - """Igp ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DestinationGasConfigs(self, request, context): - """DestinationGasConfigs ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QuoteGasPayment(self, request, context): - """QuoteGasPayment ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MerkleTreeHooks(self, request, context): - """MerkleTreeHooks ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def MerkleTreeHook(self, request, context): - """MerkleTreeHook ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def NoopHooks(self, request, context): - """NoopHooks ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def NoopHook(self, request, context): - """NoopHook ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_QueryServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Igps': grpc.unary_unary_rpc_method_handler( - servicer.Igps, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpsRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpsResponse.SerializeToString, - ), - 'Igp': grpc.unary_unary_rpc_method_handler( - servicer.Igp, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpResponse.SerializeToString, - ), - 'DestinationGasConfigs': grpc.unary_unary_rpc_method_handler( - servicer.DestinationGasConfigs, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryDestinationGasConfigsRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryDestinationGasConfigsResponse.SerializeToString, - ), - 'QuoteGasPayment': grpc.unary_unary_rpc_method_handler( - servicer.QuoteGasPayment, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryQuoteGasPaymentRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryQuoteGasPaymentResponse.SerializeToString, - ), - 'MerkleTreeHooks': grpc.unary_unary_rpc_method_handler( - servicer.MerkleTreeHooks, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHooksRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHooksResponse.SerializeToString, - ), - 'MerkleTreeHook': grpc.unary_unary_rpc_method_handler( - servicer.MerkleTreeHook, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHookRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHookResponse.SerializeToString, - ), - 'NoopHooks': grpc.unary_unary_rpc_method_handler( - servicer.NoopHooks, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHooksRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHooksResponse.SerializeToString, - ), - 'NoopHook': grpc.unary_unary_rpc_method_handler( - servicer.NoopHook, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHookRequest.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHookResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.core.post_dispatch.v1.Query', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.core.post_dispatch.v1.Query', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Query(object): - """Msg defines the module Msg service. - """ - - @staticmethod - def Igps(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/Igps', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpsRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Igp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/Igp', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryIgpResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def DestinationGasConfigs(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/DestinationGasConfigs', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryDestinationGasConfigsRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryDestinationGasConfigsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def QuoteGasPayment(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/QuoteGasPayment', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryQuoteGasPaymentRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryQuoteGasPaymentResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def MerkleTreeHooks(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/MerkleTreeHooks', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHooksRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHooksResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def MerkleTreeHook(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/MerkleTreeHook', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHookRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryMerkleTreeHookResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def NoopHooks(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/NoopHooks', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHooksRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHooksResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def NoopHook(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Query/NoopHook', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHookRequest.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_query__pb2.QueryNoopHookResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/tx_pb2.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/tx_pb2.py deleted file mode 100644 index 761bb700..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/tx_pb2.py +++ /dev/null @@ -1,113 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/post_dispatch/v1/tx.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from hyperlane.core.post_dispatch.v1 import types_pb2 as hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_types__pb2 -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(hyperlane/core/post_dispatch/v1/tx.proto\x12\x1fhyperlane.core.post_dispatch.v1\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x11\x61mino/amino.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a+hyperlane/core/post_dispatch/v1/types.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x91\x01\n\x0cMsgCreateIgp\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom:;\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*,hyperlane/v1/MsgCreateInterchainGasPaymaster\"k\n\x14MsgCreateIgpResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\x94\x02\n\x0eMsgSetIgpOwner\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12Z\n\x06igp_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\x12\x1b\n\tnew_owner\x18\x03 \x01(\tR\x08newOwner\x12-\n\x12renounce_ownership\x18\x04 \x01(\x08R\x11renounceOwnership:*\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*\x1bhyperlane/v1/MsgSetIgpOwner\"\x18\n\x16MsgSetIgpOwnerResponse\"\xcd\x02\n\x1aMsgSetDestinationGasConfig\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12Z\n\x06igp_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\x12k\n\x16\x64\x65stination_gas_config\x18\x03 \x01(\x0b\x32\x35.hyperlane.core.post_dispatch.v1.DestinationGasConfigR\x14\x64\x65stinationGasConfig:6\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*\'hyperlane/v1/MsgSetDestinationGasConfig\"$\n\"MsgSetDestinationGasConfigResponse\"\xd4\x03\n\x0cMsgPayForGas\x12\x30\n\x06sender\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06sender\x12Z\n\x06igp_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId\x12\x62\n\nmessage_id\x18\x03 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmessageId\x12-\n\x12\x64\x65stination_domain\x18\x04 \x01(\rR\x11\x64\x65stinationDomain\x12:\n\tgas_limit\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x08gasLimit\x12<\n\x06\x61mount\x18\x06 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06\x61mount:)\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x19hyperlane/v1/MsgPayForGas\"\x16\n\x14MsgPayForGasResponse\"\xbf\x01\n\x08MsgClaim\x12\x30\n\x06sender\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06sender\x12Z\n\x06igp_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05igpId:%\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x15hyperlane/v1/MsgClaim\"\x12\n\x10MsgClaimResponse\"\xe2\x01\n\x17MsgCreateMerkleTreeHook\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x62\n\nmailbox_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId:3\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*$hyperlane/v1/MsgCreateMerkleTreeHook\"v\n\x1fMsgCreateMerkleTreeHookResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"x\n\x11MsgCreateNoopHook\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner:3\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*$hyperlane/v1/MsgCreateMerkleTreeHook\"p\n\x19MsgCreateNoopHookResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id2\x88\x07\n\x03Msg\x12q\n\tCreateIgp\x12-.hyperlane.core.post_dispatch.v1.MsgCreateIgp\x1a\x35.hyperlane.core.post_dispatch.v1.MsgCreateIgpResponse\x12w\n\x0bSetIgpOwner\x12/.hyperlane.core.post_dispatch.v1.MsgSetIgpOwner\x1a\x37.hyperlane.core.post_dispatch.v1.MsgSetIgpOwnerResponse\x12\x9b\x01\n\x17SetDestinationGasConfig\x12;.hyperlane.core.post_dispatch.v1.MsgSetDestinationGasConfig\x1a\x43.hyperlane.core.post_dispatch.v1.MsgSetDestinationGasConfigResponse\x12q\n\tPayForGas\x12-.hyperlane.core.post_dispatch.v1.MsgPayForGas\x1a\x35.hyperlane.core.post_dispatch.v1.MsgPayForGasResponse\x12\x65\n\x05\x43laim\x12).hyperlane.core.post_dispatch.v1.MsgClaim\x1a\x31.hyperlane.core.post_dispatch.v1.MsgClaimResponse\x12\x92\x01\n\x14\x43reateMerkleTreeHook\x12\x38.hyperlane.core.post_dispatch.v1.MsgCreateMerkleTreeHook\x1a@.hyperlane.core.post_dispatch.v1.MsgCreateMerkleTreeHookResponse\x12\x80\x01\n\x0e\x43reateNoopHook\x12\x32.hyperlane.core.post_dispatch.v1.MsgCreateNoopHook\x1a:.hyperlane.core.post_dispatch.v1.MsgCreateNoopHookResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x94\x02\n#com.hyperlane.core.post_dispatch.v1B\x07TxProtoP\x01ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\xa2\x02\x03HCP\xaa\x02\x1eHyperlane.Core.PostDispatch.V1\xca\x02\x1eHyperlane\\Core\\PostDispatch\\V1\xe2\x02*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\xea\x02!Hyperlane::Core::PostDispatch::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.post_dispatch.v1.tx_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#com.hyperlane.core.post_dispatch.v1B\007TxProtoP\001ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\242\002\003HCP\252\002\036Hyperlane.Core.PostDispatch.V1\312\002\036Hyperlane\\Core\\PostDispatch\\V1\342\002*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\352\002!Hyperlane::Core::PostDispatch::V1' - _globals['_MSGCREATEIGP'].fields_by_name['owner']._loaded_options = None - _globals['_MSGCREATEIGP'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCREATEIGP']._loaded_options = None - _globals['_MSGCREATEIGP']._serialized_options = b'\202\347\260*\005owner\212\347\260*,hyperlane/v1/MsgCreateInterchainGasPaymaster' - _globals['_MSGCREATEIGPRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATEIGPRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETIGPOWNER'].fields_by_name['owner']._loaded_options = None - _globals['_MSGSETIGPOWNER'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGSETIGPOWNER'].fields_by_name['igp_id']._loaded_options = None - _globals['_MSGSETIGPOWNER'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETIGPOWNER']._loaded_options = None - _globals['_MSGSETIGPOWNER']._serialized_options = b'\202\347\260*\005owner\212\347\260*\033hyperlane/v1/MsgSetIgpOwner' - _globals['_MSGSETDESTINATIONGASCONFIG'].fields_by_name['owner']._loaded_options = None - _globals['_MSGSETDESTINATIONGASCONFIG'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGSETDESTINATIONGASCONFIG'].fields_by_name['igp_id']._loaded_options = None - _globals['_MSGSETDESTINATIONGASCONFIG'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETDESTINATIONGASCONFIG']._loaded_options = None - _globals['_MSGSETDESTINATIONGASCONFIG']._serialized_options = b'\202\347\260*\005owner\212\347\260*\'hyperlane/v1/MsgSetDestinationGasConfig' - _globals['_MSGPAYFORGAS'].fields_by_name['sender']._loaded_options = None - _globals['_MSGPAYFORGAS'].fields_by_name['sender']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGPAYFORGAS'].fields_by_name['igp_id']._loaded_options = None - _globals['_MSGPAYFORGAS'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGPAYFORGAS'].fields_by_name['message_id']._loaded_options = None - _globals['_MSGPAYFORGAS'].fields_by_name['message_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGPAYFORGAS'].fields_by_name['gas_limit']._loaded_options = None - _globals['_MSGPAYFORGAS'].fields_by_name['gas_limit']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_MSGPAYFORGAS'].fields_by_name['amount']._loaded_options = None - _globals['_MSGPAYFORGAS'].fields_by_name['amount']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_MSGPAYFORGAS']._loaded_options = None - _globals['_MSGPAYFORGAS']._serialized_options = b'\202\347\260*\006sender\212\347\260*\031hyperlane/v1/MsgPayForGas' - _globals['_MSGCLAIM'].fields_by_name['sender']._loaded_options = None - _globals['_MSGCLAIM'].fields_by_name['sender']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCLAIM'].fields_by_name['igp_id']._loaded_options = None - _globals['_MSGCLAIM'].fields_by_name['igp_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCLAIM']._loaded_options = None - _globals['_MSGCLAIM']._serialized_options = b'\202\347\260*\006sender\212\347\260*\025hyperlane/v1/MsgClaim' - _globals['_MSGCREATEMERKLETREEHOOK'].fields_by_name['owner']._loaded_options = None - _globals['_MSGCREATEMERKLETREEHOOK'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCREATEMERKLETREEHOOK'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_MSGCREATEMERKLETREEHOOK'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATEMERKLETREEHOOK']._loaded_options = None - _globals['_MSGCREATEMERKLETREEHOOK']._serialized_options = b'\202\347\260*\005owner\212\347\260*$hyperlane/v1/MsgCreateMerkleTreeHook' - _globals['_MSGCREATEMERKLETREEHOOKRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATEMERKLETREEHOOKRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATENOOPHOOK'].fields_by_name['owner']._loaded_options = None - _globals['_MSGCREATENOOPHOOK'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCREATENOOPHOOK']._loaded_options = None - _globals['_MSGCREATENOOPHOOK']._serialized_options = b'\202\347\260*\005owner\212\347\260*$hyperlane/v1/MsgCreateMerkleTreeHook' - _globals['_MSGCREATENOOPHOOKRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATENOOPHOOKRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSG']._loaded_options = None - _globals['_MSG']._serialized_options = b'\200\347\260*\001' - _globals['_MSGCREATEIGP']._serialized_start=248 - _globals['_MSGCREATEIGP']._serialized_end=393 - _globals['_MSGCREATEIGPRESPONSE']._serialized_start=395 - _globals['_MSGCREATEIGPRESPONSE']._serialized_end=502 - _globals['_MSGSETIGPOWNER']._serialized_start=505 - _globals['_MSGSETIGPOWNER']._serialized_end=781 - _globals['_MSGSETIGPOWNERRESPONSE']._serialized_start=783 - _globals['_MSGSETIGPOWNERRESPONSE']._serialized_end=807 - _globals['_MSGSETDESTINATIONGASCONFIG']._serialized_start=810 - _globals['_MSGSETDESTINATIONGASCONFIG']._serialized_end=1143 - _globals['_MSGSETDESTINATIONGASCONFIGRESPONSE']._serialized_start=1145 - _globals['_MSGSETDESTINATIONGASCONFIGRESPONSE']._serialized_end=1181 - _globals['_MSGPAYFORGAS']._serialized_start=1184 - _globals['_MSGPAYFORGAS']._serialized_end=1652 - _globals['_MSGPAYFORGASRESPONSE']._serialized_start=1654 - _globals['_MSGPAYFORGASRESPONSE']._serialized_end=1676 - _globals['_MSGCLAIM']._serialized_start=1679 - _globals['_MSGCLAIM']._serialized_end=1870 - _globals['_MSGCLAIMRESPONSE']._serialized_start=1872 - _globals['_MSGCLAIMRESPONSE']._serialized_end=1890 - _globals['_MSGCREATEMERKLETREEHOOK']._serialized_start=1893 - _globals['_MSGCREATEMERKLETREEHOOK']._serialized_end=2119 - _globals['_MSGCREATEMERKLETREEHOOKRESPONSE']._serialized_start=2121 - _globals['_MSGCREATEMERKLETREEHOOKRESPONSE']._serialized_end=2239 - _globals['_MSGCREATENOOPHOOK']._serialized_start=2241 - _globals['_MSGCREATENOOPHOOK']._serialized_end=2361 - _globals['_MSGCREATENOOPHOOKRESPONSE']._serialized_start=2363 - _globals['_MSGCREATENOOPHOOKRESPONSE']._serialized_end=2475 - _globals['_MSG']._serialized_start=2478 - _globals['_MSG']._serialized_end=3382 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/tx_pb2_grpc.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/tx_pb2_grpc.py deleted file mode 100644 index ad4c88bf..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/tx_pb2_grpc.py +++ /dev/null @@ -1,345 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.core.post_dispatch.v1 import tx_pb2 as hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2 - - -class MsgStub(object): - """Msg defines the module Msg service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateIgp = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Msg/CreateIgp', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateIgp.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateIgpResponse.FromString, - _registered_method=True) - self.SetIgpOwner = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Msg/SetIgpOwner', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetIgpOwner.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetIgpOwnerResponse.FromString, - _registered_method=True) - self.SetDestinationGasConfig = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Msg/SetDestinationGasConfig', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetDestinationGasConfig.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetDestinationGasConfigResponse.FromString, - _registered_method=True) - self.PayForGas = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Msg/PayForGas', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgPayForGas.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgPayForGasResponse.FromString, - _registered_method=True) - self.Claim = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Msg/Claim', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgClaim.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgClaimResponse.FromString, - _registered_method=True) - self.CreateMerkleTreeHook = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Msg/CreateMerkleTreeHook', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateMerkleTreeHook.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateMerkleTreeHookResponse.FromString, - _registered_method=True) - self.CreateNoopHook = channel.unary_unary( - '/hyperlane.core.post_dispatch.v1.Msg/CreateNoopHook', - request_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateNoopHook.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateNoopHookResponse.FromString, - _registered_method=True) - - -class MsgServicer(object): - """Msg defines the module Msg service. - """ - - def CreateIgp(self, request, context): - """CreateIgp ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetIgpOwner(self, request, context): - """SetIgpOwner ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetDestinationGasConfig(self, request, context): - """SetDestinationGasConfig ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PayForGas(self, request, context): - """PayForGas ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Claim(self, request, context): - """Claim ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateMerkleTreeHook(self, request, context): - """CreateMerkleTreeHook ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateNoopHook(self, request, context): - """CreateNoopHook ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MsgServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateIgp': grpc.unary_unary_rpc_method_handler( - servicer.CreateIgp, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateIgp.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateIgpResponse.SerializeToString, - ), - 'SetIgpOwner': grpc.unary_unary_rpc_method_handler( - servicer.SetIgpOwner, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetIgpOwner.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetIgpOwnerResponse.SerializeToString, - ), - 'SetDestinationGasConfig': grpc.unary_unary_rpc_method_handler( - servicer.SetDestinationGasConfig, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetDestinationGasConfig.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetDestinationGasConfigResponse.SerializeToString, - ), - 'PayForGas': grpc.unary_unary_rpc_method_handler( - servicer.PayForGas, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgPayForGas.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgPayForGasResponse.SerializeToString, - ), - 'Claim': grpc.unary_unary_rpc_method_handler( - servicer.Claim, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgClaim.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgClaimResponse.SerializeToString, - ), - 'CreateMerkleTreeHook': grpc.unary_unary_rpc_method_handler( - servicer.CreateMerkleTreeHook, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateMerkleTreeHook.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateMerkleTreeHookResponse.SerializeToString, - ), - 'CreateNoopHook': grpc.unary_unary_rpc_method_handler( - servicer.CreateNoopHook, - request_deserializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateNoopHook.FromString, - response_serializer=hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateNoopHookResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.core.post_dispatch.v1.Msg', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.core.post_dispatch.v1.Msg', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Msg(object): - """Msg defines the module Msg service. - """ - - @staticmethod - def CreateIgp(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Msg/CreateIgp', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateIgp.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateIgpResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def SetIgpOwner(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Msg/SetIgpOwner', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetIgpOwner.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetIgpOwnerResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def SetDestinationGasConfig(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Msg/SetDestinationGasConfig', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetDestinationGasConfig.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgSetDestinationGasConfigResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def PayForGas(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Msg/PayForGas', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgPayForGas.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgPayForGasResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Claim(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Msg/Claim', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgClaim.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgClaimResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def CreateMerkleTreeHook(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Msg/CreateMerkleTreeHook', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateMerkleTreeHook.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateMerkleTreeHookResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def CreateNoopHook(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.post_dispatch.v1.Msg/CreateNoopHook', - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateNoopHook.SerializeToString, - hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_tx__pb2.MsgCreateNoopHookResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/types_pb2.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/types_pb2.py deleted file mode 100644 index 646b8b65..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/types_pb2.py +++ /dev/null @@ -1,63 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/post_dispatch/v1/types.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+hyperlane/core/post_dispatch/v1/types.proto\x12\x1fhyperlane.core.post_dispatch.v1\x1a\x11\x61mino/amino.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xac\x02\n\x16InterchainGasPaymaster\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x14\n\x05\x64\x65nom\x18\x03 \x01(\tR\x05\x64\x65nom\x12w\n\x0e\x63laimable_fees\x18\x04 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\rclaimableFees\"\xc8\x01\n\x14\x44\x65stinationGasConfig\x12#\n\rremote_domain\x18\x01 \x01(\rR\x0cremoteDomain\x12I\n\ngas_oracle\x18\x02 \x01(\x0b\x32*.hyperlane.core.post_dispatch.v1.GasOracleR\tgasOracle\x12@\n\x0cgas_overhead\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0bgasOverhead\"\x96\x01\n\tGasOracle\x12M\n\x13token_exchange_rate\x18\x01 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x11tokenExchangeRate\x12:\n\tgas_price\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x08gasPrice\"\xb4\x02\n\x0eMerkleTreeHook\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12\x62\n\nmailbox_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12.\n\x05owner\x18\x03 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x39\n\x04tree\x18\x04 \x01(\x0b\x32%.hyperlane.core.post_dispatch.v1.TreeR\x04tree\"4\n\x04Tree\x12\x16\n\x06\x62ranch\x18\x01 \x03(\x0cR\x06\x62ranch\x12\x14\n\x05\x63ount\x18\x02 \x01(\rR\x05\x63ount\"\x8f\x01\n\x08NoopHook\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05ownerB\x97\x02\n#com.hyperlane.core.post_dispatch.v1B\nTypesProtoP\x01ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\xa2\x02\x03HCP\xaa\x02\x1eHyperlane.Core.PostDispatch.V1\xca\x02\x1eHyperlane\\Core\\PostDispatch\\V1\xe2\x02*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\xea\x02!Hyperlane::Core::PostDispatch::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.post_dispatch.v1.types_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#com.hyperlane.core.post_dispatch.v1B\nTypesProtoP\001ZIgithub.com/bcp-innovations/hyperlane-cosmos/x/core/02_post_dispatch/types\242\002\003HCP\252\002\036Hyperlane.Core.PostDispatch.V1\312\002\036Hyperlane\\Core\\PostDispatch\\V1\342\002*Hyperlane\\Core\\PostDispatch\\V1\\GPBMetadata\352\002!Hyperlane::Core::PostDispatch::V1' - _globals['_INTERCHAINGASPAYMASTER'].fields_by_name['id']._loaded_options = None - _globals['_INTERCHAINGASPAYMASTER'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_INTERCHAINGASPAYMASTER'].fields_by_name['owner']._loaded_options = None - _globals['_INTERCHAINGASPAYMASTER'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_INTERCHAINGASPAYMASTER'].fields_by_name['claimable_fees']._loaded_options = None - _globals['_INTERCHAINGASPAYMASTER'].fields_by_name['claimable_fees']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' - _globals['_DESTINATIONGASCONFIG'].fields_by_name['gas_overhead']._loaded_options = None - _globals['_DESTINATIONGASCONFIG'].fields_by_name['gas_overhead']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_GASORACLE'].fields_by_name['token_exchange_rate']._loaded_options = None - _globals['_GASORACLE'].fields_by_name['token_exchange_rate']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_GASORACLE'].fields_by_name['gas_price']._loaded_options = None - _globals['_GASORACLE'].fields_by_name['gas_price']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_MERKLETREEHOOK'].fields_by_name['id']._loaded_options = None - _globals['_MERKLETREEHOOK'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MERKLETREEHOOK'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_MERKLETREEHOOK'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MERKLETREEHOOK'].fields_by_name['owner']._loaded_options = None - _globals['_MERKLETREEHOOK'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_NOOPHOOK'].fields_by_name['id']._loaded_options = None - _globals['_NOOPHOOK'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_NOOPHOOK'].fields_by_name['owner']._loaded_options = None - _globals['_NOOPHOOK'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_INTERCHAINGASPAYMASTER']._serialized_start=181 - _globals['_INTERCHAINGASPAYMASTER']._serialized_end=481 - _globals['_DESTINATIONGASCONFIG']._serialized_start=484 - _globals['_DESTINATIONGASCONFIG']._serialized_end=684 - _globals['_GASORACLE']._serialized_start=687 - _globals['_GASORACLE']._serialized_end=837 - _globals['_MERKLETREEHOOK']._serialized_start=840 - _globals['_MERKLETREEHOOK']._serialized_end=1148 - _globals['_TREE']._serialized_start=1150 - _globals['_TREE']._serialized_end=1202 - _globals['_NOOPHOOK']._serialized_start=1205 - _globals['_NOOPHOOK']._serialized_end=1348 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/post_dispatch/v1/types_pb2_grpc.py b/pyinjective/proto/hyperlane/core/post_dispatch/v1/types_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/post_dispatch/v1/types_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/v1/events_pb2.py b/pyinjective/proto/hyperlane/core/v1/events_pb2.py deleted file mode 100644 index c9e9e8b3..00000000 --- a/pyinjective/proto/hyperlane/core/v1/events_pb2.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/v1/events.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ehyperlane/core/v1/events.proto\x12\x11hyperlane.core.v1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\xc7\x01\n\rEventDispatch\x12*\n\x11origin_mailbox_id\x18\x01 \x01(\tR\x0foriginMailboxId\x12\x30\n\x06sender\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06sender\x12 \n\x0b\x64\x65stination\x18\x03 \x01(\rR\x0b\x64\x65stination\x12\x1c\n\trecipient\x18\x04 \x01(\tR\trecipient\x12\x18\n\x07message\x18\x05 \x01(\tR\x07message\"\xc1\x01\n\x0c\x45ventProcess\x12*\n\x11origin_mailbox_id\x18\x01 \x01(\tR\x0foriginMailboxId\x12\x16\n\x06origin\x18\x02 \x01(\rR\x06origin\x12\x16\n\x06sender\x18\x03 \x01(\tR\x06sender\x12\x1c\n\trecipient\x18\x04 \x01(\tR\trecipient\x12\x1d\n\nmessage_id\x18\x05 \x01(\tR\tmessageId\x12\x18\n\x07message\x18\x06 \x01(\tR\x07message\"\x83\x04\n\x12\x45ventCreateMailbox\x12\x62\n\nmailbox_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x64\n\x0b\x64\x65\x66\x61ult_ism\x18\x03 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\ndefaultIsm\x12\x66\n\x0c\x64\x65\x66\x61ult_hook\x18\x04 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0b\x64\x65\x66\x61ultHook\x12h\n\rrequired_hook\x18\x05 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0crequiredHook\x12!\n\x0clocal_domain\x18\x06 \x01(\rR\x0blocalDomain\"\xbf\x03\n\x0f\x45ventSetMailbox\x12\x62\n\nmailbox_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x64\n\x0b\x64\x65\x66\x61ult_ism\x18\x03 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\ndefaultIsm\x12\x66\n\x0c\x64\x65\x66\x61ult_hook\x18\x04 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0b\x64\x65\x66\x61ultHook\x12\x1b\n\tnew_owner\x18\x05 \x01(\tR\x08newOwner\x12-\n\x12renounce_ownership\x18\x06 \x01(\x08R\x11renounceOwnershipB\xc4\x01\n\x15\x63om.hyperlane.core.v1B\x0b\x45ventsProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\xa2\x02\x03HCX\xaa\x02\x11Hyperlane.Core.V1\xca\x02\x11Hyperlane\\Core\\V1\xe2\x02\x1dHyperlane\\Core\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Core::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.v1.events_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.core.v1B\013EventsProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\242\002\003HCX\252\002\021Hyperlane.Core.V1\312\002\021Hyperlane\\Core\\V1\342\002\035Hyperlane\\Core\\V1\\GPBMetadata\352\002\023Hyperlane::Core::V1' - _globals['_EVENTDISPATCH'].fields_by_name['sender']._loaded_options = None - _globals['_EVENTDISPATCH'].fields_by_name['sender']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTCREATEMAILBOX'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_EVENTCREATEMAILBOX'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEMAILBOX'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTCREATEMAILBOX'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTCREATEMAILBOX'].fields_by_name['default_ism']._loaded_options = None - _globals['_EVENTCREATEMAILBOX'].fields_by_name['default_ism']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEMAILBOX'].fields_by_name['default_hook']._loaded_options = None - _globals['_EVENTCREATEMAILBOX'].fields_by_name['default_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATEMAILBOX'].fields_by_name['required_hook']._loaded_options = None - _globals['_EVENTCREATEMAILBOX'].fields_by_name['required_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETMAILBOX'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_EVENTSETMAILBOX'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETMAILBOX'].fields_by_name['owner']._loaded_options = None - _globals['_EVENTSETMAILBOX'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_EVENTSETMAILBOX'].fields_by_name['default_ism']._loaded_options = None - _globals['_EVENTSETMAILBOX'].fields_by_name['default_ism']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETMAILBOX'].fields_by_name['default_hook']._loaded_options = None - _globals['_EVENTSETMAILBOX'].fields_by_name['default_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTDISPATCH']._serialized_start=103 - _globals['_EVENTDISPATCH']._serialized_end=302 - _globals['_EVENTPROCESS']._serialized_start=305 - _globals['_EVENTPROCESS']._serialized_end=498 - _globals['_EVENTCREATEMAILBOX']._serialized_start=501 - _globals['_EVENTCREATEMAILBOX']._serialized_end=1016 - _globals['_EVENTSETMAILBOX']._serialized_start=1019 - _globals['_EVENTSETMAILBOX']._serialized_end=1466 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/v1/events_pb2_grpc.py b/pyinjective/proto/hyperlane/core/v1/events_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/v1/events_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/v1/genesis_pb2.py b/pyinjective/proto/hyperlane/core/v1/genesis_pb2.py deleted file mode 100644 index e53eec54..00000000 --- a/pyinjective/proto/hyperlane/core/v1/genesis_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/v1/genesis.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from hyperlane.core.v1 import types_pb2 as hyperlane_dot_core_dot_v1_dot_types__pb2 -from hyperlane.core.interchain_security.v1 import genesis_pb2 as hyperlane_dot_core_dot_interchain__security_dot_v1_dot_genesis__pb2 -from hyperlane.core.post_dispatch.v1 import genesis_pb2 as hyperlane_dot_core_dot_post__dispatch_dot_v1_dot_genesis__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fhyperlane/core/v1/genesis.proto\x12\x11hyperlane.core.v1\x1a\x1dhyperlane/core/v1/types.proto\x1a\x33hyperlane/core/interchain_security/v1/genesis.proto\x1a-hyperlane/core/post_dispatch/v1/genesis.proto\x1a\x14gogoproto/gogo.proto\"\xd6\x03\n\x0cGenesisState\x12T\n\x0bism_genesis\x18\x01 \x01(\x0b\x32\x33.hyperlane.core.interchain_security.v1.GenesisStateR\nismGenesis\x12\x61\n\x15post_dispatch_genesis\x18\x02 \x01(\x0b\x32-.hyperlane.core.post_dispatch.v1.GenesisStateR\x13postDispatchGenesis\x12>\n\tmailboxes\x18\x03 \x03(\x0b\x32\x1a.hyperlane.core.v1.MailboxB\x04\xc8\xde\x1f\x00R\tmailboxes\x12Q\n\x08messages\x18\x04 \x03(\x0b\x32/.hyperlane.core.v1.GenesisMailboxMessageWrapperB\x04\xc8\xde\x1f\x00R\x08messages\x12!\n\x0cism_sequence\x18\x05 \x01(\x04R\x0bismSequence\x12\x34\n\x16post_dispatch_sequence\x18\x06 \x01(\x04R\x14postDispatchSequence\x12!\n\x0c\x61pp_sequence\x18\x07 \x01(\x04R\x0b\x61ppSequence\"\xa1\x01\n\x1cGenesisMailboxMessageWrapper\x12\x1d\n\nmailbox_id\x18\x01 \x01(\x04R\tmailboxId\x12\x62\n\nmessage_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmessageIdB\xc5\x01\n\x15\x63om.hyperlane.core.v1B\x0cGenesisProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\xa2\x02\x03HCX\xaa\x02\x11Hyperlane.Core.V1\xca\x02\x11Hyperlane\\Core\\V1\xe2\x02\x1dHyperlane\\Core\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Core::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.v1.genesis_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.core.v1B\014GenesisProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\242\002\003HCX\252\002\021Hyperlane.Core.V1\312\002\021Hyperlane\\Core\\V1\342\002\035Hyperlane\\Core\\V1\\GPBMetadata\352\002\023Hyperlane::Core::V1' - _globals['_GENESISSTATE'].fields_by_name['mailboxes']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['mailboxes']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE'].fields_by_name['messages']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['messages']._serialized_options = b'\310\336\037\000' - _globals['_GENESISMAILBOXMESSAGEWRAPPER'].fields_by_name['message_id']._loaded_options = None - _globals['_GENESISMAILBOXMESSAGEWRAPPER'].fields_by_name['message_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_GENESISSTATE']._serialized_start=208 - _globals['_GENESISSTATE']._serialized_end=678 - _globals['_GENESISMAILBOXMESSAGEWRAPPER']._serialized_start=681 - _globals['_GENESISMAILBOXMESSAGEWRAPPER']._serialized_end=842 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/v1/genesis_pb2_grpc.py b/pyinjective/proto/hyperlane/core/v1/genesis_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/v1/genesis_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/core/v1/query_pb2.py b/pyinjective/proto/hyperlane/core/v1/query_pb2.py deleted file mode 100644 index 73059d61..00000000 --- a/pyinjective/proto/hyperlane/core/v1/query_pb2.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/v1/query.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 -from hyperlane.core.v1 import types_pb2 as hyperlane_dot_core_dot_v1_dot_types__pb2 -from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dhyperlane/core/v1/query.proto\x12\x11hyperlane.core.v1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1dhyperlane/core/v1/types.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\"_\n\x15QueryMailboxesRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa6\x01\n\x16QueryMailboxesResponse\x12\x43\n\tmailboxes\x18\x01 \x03(\x0b\x32\x1a.hyperlane.core.v1.MailboxB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\tmailboxes\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"%\n\x13QueryMailboxRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"W\n\x14QueryMailboxResponse\x12?\n\x07mailbox\x18\x01 \x01(\x0b\x32\x1a.hyperlane.core.v1.MailboxB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x07mailbox\"F\n\x15QueryDeliveredRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n\nmessage_id\x18\x02 \x01(\tR\tmessageId\"6\n\x16QueryDeliveredResponse\x12\x1c\n\tdelivered\x18\x01 \x01(\x08R\tdelivered\"8\n\x18QueryRecipientIsmRequest\x12\x1c\n\trecipient\x18\x01 \x01(\tR\trecipient\"2\n\x19QueryRecipientIsmResponse\x12\x15\n\x06ism_id\x18\x01 \x01(\tR\x05ismId\"\x84\x01\n\x18QueryVerifyDryRunRequest\x12\x15\n\x06ism_id\x18\x01 \x01(\tR\x05ismId\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\x12\x1b\n\tgas_limit\x18\x04 \x01(\tR\x08gasLimit\"7\n\x19QueryVerifyDryRunResponse\x12\x1a\n\x08verified\x18\x01 \x01(\x08R\x08verified\"\x15\n\x13QueryRegisteredISMs\"/\n\x1bQueryRegisteredISMsResponse\x12\x10\n\x03ids\x18\x01 \x03(\rR\x03ids\"\x16\n\x14QueryRegisteredHooks\"0\n\x1cQueryRegisteredHooksResponse\x12\x10\n\x03ids\x18\x01 \x03(\rR\x03ids\"\x15\n\x13QueryRegisteredApps\"/\n\x1bQueryRegisteredAppsResponse\x12\x10\n\x03ids\x18\x01 \x03(\rR\x03ids2\x97\t\n\x05Query\x12\x81\x01\n\tMailboxes\x12(.hyperlane.core.v1.QueryMailboxesRequest\x1a).hyperlane.core.v1.QueryMailboxesResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/hyperlane/v1/mailboxes\x12\x80\x01\n\x07Mailbox\x12&.hyperlane.core.v1.QueryMailboxRequest\x1a\'.hyperlane.core.v1.QueryMailboxResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/hyperlane/v1/mailboxes/{id}\x12\x9d\x01\n\tDelivered\x12(.hyperlane.core.v1.QueryDeliveredRequest\x1a).hyperlane.core.v1.QueryDeliveredResponse\";\x82\xd3\xe4\x93\x02\x35\x12\x33/hyperlane/v1/mailboxes/{id}/delivered/{message_id}\x12\x9a\x01\n\x0cRecipientIsm\x12+.hyperlane.core.v1.QueryRecipientIsmRequest\x1a,.hyperlane.core.v1.QueryRecipientIsmResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/hyperlane/v1/recipient_ism/{recipient}\x12\x8f\x01\n\x0cVerifyDryRun\x12+.hyperlane.core.v1.QueryVerifyDryRunRequest\x1a,.hyperlane.core.v1.QueryVerifyDryRunResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/hyperlane/v1/verify_dry_run\x12\x8f\x01\n\x0eRegisteredISMs\x12&.hyperlane.core.v1.QueryRegisteredISMs\x1a..hyperlane.core.v1.QueryRegisteredISMsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/hyperlane/v1/registered_isms\x12\x93\x01\n\x0fRegisteredHooks\x12\'.hyperlane.core.v1.QueryRegisteredHooks\x1a/.hyperlane.core.v1.QueryRegisteredHooksResponse\"&\x82\xd3\xe4\x93\x02 \x12\x1e/hyperlane/v1/registered_hooks\x12\x8f\x01\n\x0eRegisteredApps\x12&.hyperlane.core.v1.QueryRegisteredApps\x1a..hyperlane.core.v1.QueryRegisteredAppsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/hyperlane/v1/registered_appsB\xc3\x01\n\x15\x63om.hyperlane.core.v1B\nQueryProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\xa2\x02\x03HCX\xaa\x02\x11Hyperlane.Core.V1\xca\x02\x11Hyperlane\\Core\\V1\xe2\x02\x1dHyperlane\\Core\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Core::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.v1.query_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.core.v1B\nQueryProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\242\002\003HCX\252\002\021Hyperlane.Core.V1\312\002\021Hyperlane\\Core\\V1\342\002\035Hyperlane\\Core\\V1\\GPBMetadata\352\002\023Hyperlane::Core::V1' - _globals['_QUERYMAILBOXESRESPONSE'].fields_by_name['mailboxes']._loaded_options = None - _globals['_QUERYMAILBOXESRESPONSE'].fields_by_name['mailboxes']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERYMAILBOXRESPONSE'].fields_by_name['mailbox']._loaded_options = None - _globals['_QUERYMAILBOXRESPONSE'].fields_by_name['mailbox']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERY'].methods_by_name['Mailboxes']._loaded_options = None - _globals['_QUERY'].methods_by_name['Mailboxes']._serialized_options = b'\202\323\344\223\002\031\022\027/hyperlane/v1/mailboxes' - _globals['_QUERY'].methods_by_name['Mailbox']._loaded_options = None - _globals['_QUERY'].methods_by_name['Mailbox']._serialized_options = b'\202\323\344\223\002\036\022\034/hyperlane/v1/mailboxes/{id}' - _globals['_QUERY'].methods_by_name['Delivered']._loaded_options = None - _globals['_QUERY'].methods_by_name['Delivered']._serialized_options = b'\202\323\344\223\0025\0223/hyperlane/v1/mailboxes/{id}/delivered/{message_id}' - _globals['_QUERY'].methods_by_name['RecipientIsm']._loaded_options = None - _globals['_QUERY'].methods_by_name['RecipientIsm']._serialized_options = b'\202\323\344\223\002)\022\'/hyperlane/v1/recipient_ism/{recipient}' - _globals['_QUERY'].methods_by_name['VerifyDryRun']._loaded_options = None - _globals['_QUERY'].methods_by_name['VerifyDryRun']._serialized_options = b'\202\323\344\223\002\036\022\034/hyperlane/v1/verify_dry_run' - _globals['_QUERY'].methods_by_name['RegisteredISMs']._loaded_options = None - _globals['_QUERY'].methods_by_name['RegisteredISMs']._serialized_options = b'\202\323\344\223\002\037\022\035/hyperlane/v1/registered_isms' - _globals['_QUERY'].methods_by_name['RegisteredHooks']._loaded_options = None - _globals['_QUERY'].methods_by_name['RegisteredHooks']._serialized_options = b'\202\323\344\223\002 \022\036/hyperlane/v1/registered_hooks' - _globals['_QUERY'].methods_by_name['RegisteredApps']._loaded_options = None - _globals['_QUERY'].methods_by_name['RegisteredApps']._serialized_options = b'\202\323\344\223\002\037\022\035/hyperlane/v1/registered_apps' - _globals['_QUERYMAILBOXESREQUEST']._serialized_start=198 - _globals['_QUERYMAILBOXESREQUEST']._serialized_end=293 - _globals['_QUERYMAILBOXESRESPONSE']._serialized_start=296 - _globals['_QUERYMAILBOXESRESPONSE']._serialized_end=462 - _globals['_QUERYMAILBOXREQUEST']._serialized_start=464 - _globals['_QUERYMAILBOXREQUEST']._serialized_end=501 - _globals['_QUERYMAILBOXRESPONSE']._serialized_start=503 - _globals['_QUERYMAILBOXRESPONSE']._serialized_end=590 - _globals['_QUERYDELIVEREDREQUEST']._serialized_start=592 - _globals['_QUERYDELIVEREDREQUEST']._serialized_end=662 - _globals['_QUERYDELIVEREDRESPONSE']._serialized_start=664 - _globals['_QUERYDELIVEREDRESPONSE']._serialized_end=718 - _globals['_QUERYRECIPIENTISMREQUEST']._serialized_start=720 - _globals['_QUERYRECIPIENTISMREQUEST']._serialized_end=776 - _globals['_QUERYRECIPIENTISMRESPONSE']._serialized_start=778 - _globals['_QUERYRECIPIENTISMRESPONSE']._serialized_end=828 - _globals['_QUERYVERIFYDRYRUNREQUEST']._serialized_start=831 - _globals['_QUERYVERIFYDRYRUNREQUEST']._serialized_end=963 - _globals['_QUERYVERIFYDRYRUNRESPONSE']._serialized_start=965 - _globals['_QUERYVERIFYDRYRUNRESPONSE']._serialized_end=1020 - _globals['_QUERYREGISTEREDISMS']._serialized_start=1022 - _globals['_QUERYREGISTEREDISMS']._serialized_end=1043 - _globals['_QUERYREGISTEREDISMSRESPONSE']._serialized_start=1045 - _globals['_QUERYREGISTEREDISMSRESPONSE']._serialized_end=1092 - _globals['_QUERYREGISTEREDHOOKS']._serialized_start=1094 - _globals['_QUERYREGISTEREDHOOKS']._serialized_end=1116 - _globals['_QUERYREGISTEREDHOOKSRESPONSE']._serialized_start=1118 - _globals['_QUERYREGISTEREDHOOKSRESPONSE']._serialized_end=1166 - _globals['_QUERYREGISTEREDAPPS']._serialized_start=1168 - _globals['_QUERYREGISTEREDAPPS']._serialized_end=1189 - _globals['_QUERYREGISTEREDAPPSRESPONSE']._serialized_start=1191 - _globals['_QUERYREGISTEREDAPPSRESPONSE']._serialized_end=1238 - _globals['_QUERY']._serialized_start=1241 - _globals['_QUERY']._serialized_end=2416 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/v1/query_pb2_grpc.py b/pyinjective/proto/hyperlane/core/v1/query_pb2_grpc.py deleted file mode 100644 index 013e0513..00000000 --- a/pyinjective/proto/hyperlane/core/v1/query_pb2_grpc.py +++ /dev/null @@ -1,393 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.core.v1 import query_pb2 as hyperlane_dot_core_dot_v1_dot_query__pb2 - - -class QueryStub(object): - """Query defines the module Query service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Mailboxes = channel.unary_unary( - '/hyperlane.core.v1.Query/Mailboxes', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxesRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxesResponse.FromString, - _registered_method=True) - self.Mailbox = channel.unary_unary( - '/hyperlane.core.v1.Query/Mailbox', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxResponse.FromString, - _registered_method=True) - self.Delivered = channel.unary_unary( - '/hyperlane.core.v1.Query/Delivered', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryDeliveredRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryDeliveredResponse.FromString, - _registered_method=True) - self.RecipientIsm = channel.unary_unary( - '/hyperlane.core.v1.Query/RecipientIsm', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRecipientIsmRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRecipientIsmResponse.FromString, - _registered_method=True) - self.VerifyDryRun = channel.unary_unary( - '/hyperlane.core.v1.Query/VerifyDryRun', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryVerifyDryRunRequest.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryVerifyDryRunResponse.FromString, - _registered_method=True) - self.RegisteredISMs = channel.unary_unary( - '/hyperlane.core.v1.Query/RegisteredISMs', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredISMs.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredISMsResponse.FromString, - _registered_method=True) - self.RegisteredHooks = channel.unary_unary( - '/hyperlane.core.v1.Query/RegisteredHooks', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredHooks.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredHooksResponse.FromString, - _registered_method=True) - self.RegisteredApps = channel.unary_unary( - '/hyperlane.core.v1.Query/RegisteredApps', - request_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredApps.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredAppsResponse.FromString, - _registered_method=True) - - -class QueryServicer(object): - """Query defines the module Query service. - """ - - def Mailboxes(self, request, context): - """Mailboxes ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Mailbox(self, request, context): - """Mailbox ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Delivered(self, request, context): - """Delivered ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RecipientIsm(self, request, context): - """RecipientIsm returns the recipient ISM ID for a registered application. - - The recipient is globally unique as every application ID registered on the - core module is unique. This means that one application cannot be registered - to two mailboxes, resulting in a mailbox-independent lookup. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def VerifyDryRun(self, request, context): - """VerifyDryRun ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RegisteredISMs(self, request, context): - """RegisteredISMs ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RegisteredHooks(self, request, context): - """RegisteredHooks ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RegisteredApps(self, request, context): - """RegisteredApps ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_QueryServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Mailboxes': grpc.unary_unary_rpc_method_handler( - servicer.Mailboxes, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxesRequest.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxesResponse.SerializeToString, - ), - 'Mailbox': grpc.unary_unary_rpc_method_handler( - servicer.Mailbox, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxRequest.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxResponse.SerializeToString, - ), - 'Delivered': grpc.unary_unary_rpc_method_handler( - servicer.Delivered, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryDeliveredRequest.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryDeliveredResponse.SerializeToString, - ), - 'RecipientIsm': grpc.unary_unary_rpc_method_handler( - servicer.RecipientIsm, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRecipientIsmRequest.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRecipientIsmResponse.SerializeToString, - ), - 'VerifyDryRun': grpc.unary_unary_rpc_method_handler( - servicer.VerifyDryRun, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryVerifyDryRunRequest.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryVerifyDryRunResponse.SerializeToString, - ), - 'RegisteredISMs': grpc.unary_unary_rpc_method_handler( - servicer.RegisteredISMs, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredISMs.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredISMsResponse.SerializeToString, - ), - 'RegisteredHooks': grpc.unary_unary_rpc_method_handler( - servicer.RegisteredHooks, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredHooks.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredHooksResponse.SerializeToString, - ), - 'RegisteredApps': grpc.unary_unary_rpc_method_handler( - servicer.RegisteredApps, - request_deserializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredApps.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredAppsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.core.v1.Query', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.core.v1.Query', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Query(object): - """Query defines the module Query service. - """ - - @staticmethod - def Mailboxes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/Mailboxes', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxesRequest.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxesResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Mailbox(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/Mailbox', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxRequest.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryMailboxResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Delivered(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/Delivered', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryDeliveredRequest.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryDeliveredResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RecipientIsm(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/RecipientIsm', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRecipientIsmRequest.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRecipientIsmResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def VerifyDryRun(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/VerifyDryRun', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryVerifyDryRunRequest.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryVerifyDryRunResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RegisteredISMs(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/RegisteredISMs', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredISMs.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredISMsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RegisteredHooks(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/RegisteredHooks', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredHooks.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredHooksResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RegisteredApps(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Query/RegisteredApps', - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredApps.SerializeToString, - hyperlane_dot_core_dot_v1_dot_query__pb2.QueryRegisteredAppsResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/core/v1/tx_pb2.py b/pyinjective/proto/hyperlane/core/v1/tx_pb2.py deleted file mode 100644 index a9e7213b..00000000 --- a/pyinjective/proto/hyperlane/core/v1/tx_pb2.py +++ /dev/null @@ -1,77 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/v1/tx.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ahyperlane/core/v1/tx.proto\x12\x11hyperlane.core.v1\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\xcb\x03\n\x10MsgCreateMailbox\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12!\n\x0clocal_domain\x18\x02 \x01(\rR\x0blocalDomain\x12\x64\n\x0b\x64\x65\x66\x61ult_ism\x18\x03 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\ndefaultIsm\x12\x66\n\x0c\x64\x65\x66\x61ult_hook\x18\x04 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0b\x64\x65\x66\x61ultHook\x12h\n\rrequired_hook\x18\x05 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0crequiredHook:,\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*\x1dhyperlane/v1/MsgCreateMailbox\"o\n\x18MsgCreateMailboxResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\xec\x04\n\rMsgSetMailbox\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12\x62\n\nmailbox_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12\x64\n\x0b\x64\x65\x66\x61ult_ism\x18\x03 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\ndefaultIsm\x12\x66\n\x0c\x64\x65\x66\x61ult_hook\x18\x04 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0b\x64\x65\x66\x61ultHook\x12h\n\rrequired_hook\x18\x05 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0crequiredHook\x12\x35\n\tnew_owner\x18\x06 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x08newOwner\x12-\n\x12renounce_ownership\x18\x07 \x01(\x08R\x11renounceOwnership:)\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*\x1ahyperlane/v1/MsgSetMailbox\"\x17\n\x15MsgSetMailboxResponse\"\x92\x02\n\x11MsgProcessMessage\x12\x62\n\nmailbox_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmailboxId\x12\x32\n\x07relayer\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x07relayer\x12\x1a\n\x08metadata\x18\x03 \x01(\tR\x08metadata\x12\x18\n\x07message\x18\x04 \x01(\tR\x07message:/\x82\xe7\xb0*\x07relayer\x8a\xe7\xb0*\x1ehyperlane/v1/MsgProcessMessage\"\x1b\n\x19MsgProcessMessageResponse2\xaf\x02\n\x03Msg\x12\x61\n\rCreateMailbox\x12#.hyperlane.core.v1.MsgCreateMailbox\x1a+.hyperlane.core.v1.MsgCreateMailboxResponse\x12X\n\nSetMailbox\x12 .hyperlane.core.v1.MsgSetMailbox\x1a(.hyperlane.core.v1.MsgSetMailboxResponse\x12\x64\n\x0eProcessMessage\x12$.hyperlane.core.v1.MsgProcessMessage\x1a,.hyperlane.core.v1.MsgProcessMessageResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xc0\x01\n\x15\x63om.hyperlane.core.v1B\x07TxProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\xa2\x02\x03HCX\xaa\x02\x11Hyperlane.Core.V1\xca\x02\x11Hyperlane\\Core\\V1\xe2\x02\x1dHyperlane\\Core\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Core::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.v1.tx_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.core.v1B\007TxProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\242\002\003HCX\252\002\021Hyperlane.Core.V1\312\002\021Hyperlane\\Core\\V1\342\002\035Hyperlane\\Core\\V1\\GPBMetadata\352\002\023Hyperlane::Core::V1' - _globals['_MSGCREATEMAILBOX'].fields_by_name['owner']._loaded_options = None - _globals['_MSGCREATEMAILBOX'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCREATEMAILBOX'].fields_by_name['default_ism']._loaded_options = None - _globals['_MSGCREATEMAILBOX'].fields_by_name['default_ism']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATEMAILBOX'].fields_by_name['default_hook']._loaded_options = None - _globals['_MSGCREATEMAILBOX'].fields_by_name['default_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATEMAILBOX'].fields_by_name['required_hook']._loaded_options = None - _globals['_MSGCREATEMAILBOX'].fields_by_name['required_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATEMAILBOX']._loaded_options = None - _globals['_MSGCREATEMAILBOX']._serialized_options = b'\202\347\260*\005owner\212\347\260*\035hyperlane/v1/MsgCreateMailbox' - _globals['_MSGCREATEMAILBOXRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATEMAILBOXRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETMAILBOX'].fields_by_name['owner']._loaded_options = None - _globals['_MSGSETMAILBOX'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGSETMAILBOX'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_MSGSETMAILBOX'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETMAILBOX'].fields_by_name['default_ism']._loaded_options = None - _globals['_MSGSETMAILBOX'].fields_by_name['default_ism']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETMAILBOX'].fields_by_name['default_hook']._loaded_options = None - _globals['_MSGSETMAILBOX'].fields_by_name['default_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETMAILBOX'].fields_by_name['required_hook']._loaded_options = None - _globals['_MSGSETMAILBOX'].fields_by_name['required_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETMAILBOX'].fields_by_name['new_owner']._loaded_options = None - _globals['_MSGSETMAILBOX'].fields_by_name['new_owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGSETMAILBOX']._loaded_options = None - _globals['_MSGSETMAILBOX']._serialized_options = b'\202\347\260*\005owner\212\347\260*\032hyperlane/v1/MsgSetMailbox' - _globals['_MSGPROCESSMESSAGE'].fields_by_name['mailbox_id']._loaded_options = None - _globals['_MSGPROCESSMESSAGE'].fields_by_name['mailbox_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGPROCESSMESSAGE'].fields_by_name['relayer']._loaded_options = None - _globals['_MSGPROCESSMESSAGE'].fields_by_name['relayer']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGPROCESSMESSAGE']._loaded_options = None - _globals['_MSGPROCESSMESSAGE']._serialized_options = b'\202\347\260*\007relayer\212\347\260*\036hyperlane/v1/MsgProcessMessage' - _globals['_MSG']._loaded_options = None - _globals['_MSG']._serialized_options = b'\200\347\260*\001' - _globals['_MSGCREATEMAILBOX']._serialized_start=143 - _globals['_MSGCREATEMAILBOX']._serialized_end=602 - _globals['_MSGCREATEMAILBOXRESPONSE']._serialized_start=604 - _globals['_MSGCREATEMAILBOXRESPONSE']._serialized_end=715 - _globals['_MSGSETMAILBOX']._serialized_start=718 - _globals['_MSGSETMAILBOX']._serialized_end=1338 - _globals['_MSGSETMAILBOXRESPONSE']._serialized_start=1340 - _globals['_MSGSETMAILBOXRESPONSE']._serialized_end=1363 - _globals['_MSGPROCESSMESSAGE']._serialized_start=1366 - _globals['_MSGPROCESSMESSAGE']._serialized_end=1640 - _globals['_MSGPROCESSMESSAGERESPONSE']._serialized_start=1642 - _globals['_MSGPROCESSMESSAGERESPONSE']._serialized_end=1669 - _globals['_MSG']._serialized_start=1672 - _globals['_MSG']._serialized_end=1975 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/v1/tx_pb2_grpc.py b/pyinjective/proto/hyperlane/core/v1/tx_pb2_grpc.py deleted file mode 100644 index da09ef8c..00000000 --- a/pyinjective/proto/hyperlane/core/v1/tx_pb2_grpc.py +++ /dev/null @@ -1,169 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.core.v1 import tx_pb2 as hyperlane_dot_core_dot_v1_dot_tx__pb2 - - -class MsgStub(object): - """Msg defines the module Msg service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateMailbox = channel.unary_unary( - '/hyperlane.core.v1.Msg/CreateMailbox', - request_serializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgCreateMailbox.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgCreateMailboxResponse.FromString, - _registered_method=True) - self.SetMailbox = channel.unary_unary( - '/hyperlane.core.v1.Msg/SetMailbox', - request_serializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgSetMailbox.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgSetMailboxResponse.FromString, - _registered_method=True) - self.ProcessMessage = channel.unary_unary( - '/hyperlane.core.v1.Msg/ProcessMessage', - request_serializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgProcessMessage.SerializeToString, - response_deserializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgProcessMessageResponse.FromString, - _registered_method=True) - - -class MsgServicer(object): - """Msg defines the module Msg service. - """ - - def CreateMailbox(self, request, context): - """CreateMailbox ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetMailbox(self, request, context): - """SetMailbox ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ProcessMessage(self, request, context): - """ProcessMessage ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MsgServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateMailbox': grpc.unary_unary_rpc_method_handler( - servicer.CreateMailbox, - request_deserializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgCreateMailbox.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgCreateMailboxResponse.SerializeToString, - ), - 'SetMailbox': grpc.unary_unary_rpc_method_handler( - servicer.SetMailbox, - request_deserializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgSetMailbox.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgSetMailboxResponse.SerializeToString, - ), - 'ProcessMessage': grpc.unary_unary_rpc_method_handler( - servicer.ProcessMessage, - request_deserializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgProcessMessage.FromString, - response_serializer=hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgProcessMessageResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.core.v1.Msg', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.core.v1.Msg', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Msg(object): - """Msg defines the module Msg service. - """ - - @staticmethod - def CreateMailbox(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Msg/CreateMailbox', - hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgCreateMailbox.SerializeToString, - hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgCreateMailboxResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def SetMailbox(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Msg/SetMailbox', - hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgSetMailbox.SerializeToString, - hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgSetMailboxResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def ProcessMessage(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.core.v1.Msg/ProcessMessage', - hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgProcessMessage.SerializeToString, - hyperlane_dot_core_dot_v1_dot_tx__pb2.MsgProcessMessageResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/core/v1/types_pb2.py b/pyinjective/proto/hyperlane/core/v1/types_pb2.py deleted file mode 100644 index 73d06457..00000000 --- a/pyinjective/proto/hyperlane/core/v1/types_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/core/v1/types.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dhyperlane/core/v1/types.proto\x12\x11hyperlane.core.v1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\"\xb7\x04\n\x07Mailbox\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12!\n\x0cmessage_sent\x18\x03 \x01(\rR\x0bmessageSent\x12)\n\x10message_received\x18\x04 \x01(\rR\x0fmessageReceived\x12\x64\n\x0b\x64\x65\x66\x61ult_ism\x18\x05 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\ndefaultIsm\x12\x66\n\x0c\x64\x65\x66\x61ult_hook\x18\x06 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0b\x64\x65\x66\x61ultHook\x12h\n\rrequired_hook\x18\x07 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0crequiredHook\x12!\n\x0clocal_domain\x18\x08 \x01(\rR\x0blocalDomainB\xc3\x01\n\x15\x63om.hyperlane.core.v1B\nTypesProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\xa2\x02\x03HCX\xaa\x02\x11Hyperlane.Core.V1\xca\x02\x11Hyperlane\\Core\\V1\xe2\x02\x1dHyperlane\\Core\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Core::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.core.v1.types_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.core.v1B\nTypesProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/core/types\242\002\003HCX\252\002\021Hyperlane.Core.V1\312\002\021Hyperlane\\Core\\V1\342\002\035Hyperlane\\Core\\V1\\GPBMetadata\352\002\023Hyperlane::Core::V1' - _globals['_MAILBOX'].fields_by_name['id']._loaded_options = None - _globals['_MAILBOX'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MAILBOX'].fields_by_name['owner']._loaded_options = None - _globals['_MAILBOX'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MAILBOX'].fields_by_name['default_ism']._loaded_options = None - _globals['_MAILBOX'].fields_by_name['default_ism']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MAILBOX'].fields_by_name['default_hook']._loaded_options = None - _globals['_MAILBOX'].fields_by_name['default_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MAILBOX'].fields_by_name['required_hook']._loaded_options = None - _globals['_MAILBOX'].fields_by_name['required_hook']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MAILBOX']._serialized_start=102 - _globals['_MAILBOX']._serialized_end=669 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/core/v1/types_pb2_grpc.py b/pyinjective/proto/hyperlane/core/v1/types_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/core/v1/types_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/warp/module/v1/module_pb2.py b/pyinjective/proto/hyperlane/warp/module/v1/module_pb2.py deleted file mode 100644 index c8cdd6a1..00000000 --- a/pyinjective/proto/hyperlane/warp/module/v1/module_pb2.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/warp/module/v1/module.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.app.v1alpha1 import module_pb2 as cosmos_dot_app_dot_v1alpha1_dot_module__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%hyperlane/warp/module/v1/module.proto\x12\x18hyperlane.warp.module.v1\x1a cosmos/app/v1alpha1/module.proto\"\x89\x01\n\x06Module\x12%\n\x0e\x65nabled_tokens\x18\x01 \x03(\x05R\renabledTokens\x12\x1c\n\tauthority\x18\x02 \x01(\tR\tauthority::\xba\xc0\x96\xda\x01\x34\n2github.com/bcp-innovations/hyperlane-cosmos/x/warpB\xae\x01\n\x1c\x63om.hyperlane.warp.module.v1B\x0bModuleProtoP\x01\xa2\x02\x03HWM\xaa\x02\x18Hyperlane.Warp.Module.V1\xca\x02\x18Hyperlane\\Warp\\Module\\V1\xe2\x02$Hyperlane\\Warp\\Module\\V1\\GPBMetadata\xea\x02\x1bHyperlane::Warp::Module::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.warp.module.v1.module_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\034com.hyperlane.warp.module.v1B\013ModuleProtoP\001\242\002\003HWM\252\002\030Hyperlane.Warp.Module.V1\312\002\030Hyperlane\\Warp\\Module\\V1\342\002$Hyperlane\\Warp\\Module\\V1\\GPBMetadata\352\002\033Hyperlane::Warp::Module::V1' - _globals['_MODULE']._loaded_options = None - _globals['_MODULE']._serialized_options = b'\272\300\226\332\0014\n2github.com/bcp-innovations/hyperlane-cosmos/x/warp' - _globals['_MODULE']._serialized_start=102 - _globals['_MODULE']._serialized_end=239 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/warp/module/v1/module_pb2_grpc.py b/pyinjective/proto/hyperlane/warp/module/v1/module_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/warp/module/v1/module_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/warp/v1/events_pb2.py b/pyinjective/proto/hyperlane/warp/v1/events_pb2.py deleted file mode 100644 index 9d5316c5..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/events_pb2.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/warp/v1/events.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ehyperlane/warp/v1/events.proto\x12\x11hyperlane.warp.v1\x1a\x14gogoproto/gogo.proto\"\xa0\x02\n\x19\x45ventCreateSyntheticToken\x12^\n\x08token_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12j\n\x0eorigin_mailbox\x18\x03 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\roriginMailbox\x12!\n\x0corigin_denom\x18\x04 \x01(\tR\x0boriginDenom\"\xa1\x02\n\x1a\x45ventCreateCollateralToken\x12^\n\x08token_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12j\n\x0eorigin_mailbox\x18\x03 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\roriginMailbox\x12!\n\x0corigin_denom\x18\x04 \x01(\tR\x0boriginDenom\"\xe8\x01\n\rEventSetToken\x12\x19\n\x08token_id\x18\x01 \x01(\tR\x07tokenId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12Z\n\x06ism_id\x18\x03 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12\x1b\n\tnew_owner\x18\x04 \x01(\tR\x08newOwner\x12-\n\x12renounce_ownership\x18\x05 \x01(\x08R\x11renounceOwnership\"\xd1\x01\n\x17\x45ventEnrollRemoteRouter\x12\x19\n\x08token_id\x18\x01 \x01(\tR\x07tokenId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\'\n\x0freceiver_domain\x18\x03 \x01(\rR\x0ereceiverDomain\x12+\n\x11receiver_contract\x18\x04 \x01(\tR\x10receiverContract\x12/\n\x03gas\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x03gas\"s\n\x17\x45ventUnrollRemoteRouter\x12\x19\n\x08token_id\x18\x01 \x01(\tR\x07tokenId\x12\x14\n\x05owner\x18\x02 \x01(\tR\x05owner\x12\'\n\x0freceiver_domain\x18\x03 \x01(\rR\x0ereceiverDomain\"\xbb\x02\n\x17\x45ventSendRemoteTransfer\x12^\n\x08token_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12\x16\n\x06sender\x18\x02 \x01(\tR\x06sender\x12-\n\x12\x64\x65stination_domain\x18\x03 \x01(\rR\x11\x64\x65stinationDomain\x12\x61\n\trecipient\x18\x04 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\trecipient\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mount\"\xb4\x02\n\x1a\x45ventReceiveRemoteTransfer\x12^\n\x08token_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12[\n\x06sender\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x06sender\x12#\n\rorigin_domain\x18\x03 \x01(\rR\x0coriginDomain\x12\x1c\n\trecipient\x18\x04 \x01(\tR\trecipient\x12\x16\n\x06\x61mount\x18\x05 \x01(\tR\x06\x61mountB\xc4\x01\n\x15\x63om.hyperlane.warp.v1B\x0b\x45ventsProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\xa2\x02\x03HWX\xaa\x02\x11Hyperlane.Warp.V1\xca\x02\x11Hyperlane\\Warp\\V1\xe2\x02\x1dHyperlane\\Warp\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Warp::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.warp.v1.events_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.warp.v1B\013EventsProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\242\002\003HWX\252\002\021Hyperlane.Warp.V1\312\002\021Hyperlane\\Warp\\V1\342\002\035Hyperlane\\Warp\\V1\\GPBMetadata\352\002\023Hyperlane::Warp::V1' - _globals['_EVENTCREATESYNTHETICTOKEN'].fields_by_name['token_id']._loaded_options = None - _globals['_EVENTCREATESYNTHETICTOKEN'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATESYNTHETICTOKEN'].fields_by_name['origin_mailbox']._loaded_options = None - _globals['_EVENTCREATESYNTHETICTOKEN'].fields_by_name['origin_mailbox']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATECOLLATERALTOKEN'].fields_by_name['token_id']._loaded_options = None - _globals['_EVENTCREATECOLLATERALTOKEN'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATECOLLATERALTOKEN'].fields_by_name['origin_mailbox']._loaded_options = None - _globals['_EVENTCREATECOLLATERALTOKEN'].fields_by_name['origin_mailbox']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSETTOKEN'].fields_by_name['ism_id']._loaded_options = None - _globals['_EVENTSETTOKEN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTENROLLREMOTEROUTER'].fields_by_name['gas']._loaded_options = None - _globals['_EVENTENROLLREMOTEROUTER'].fields_by_name['gas']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_EVENTSENDREMOTETRANSFER'].fields_by_name['token_id']._loaded_options = None - _globals['_EVENTSENDREMOTETRANSFER'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTSENDREMOTETRANSFER'].fields_by_name['recipient']._loaded_options = None - _globals['_EVENTSENDREMOTETRANSFER'].fields_by_name['recipient']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTRECEIVEREMOTETRANSFER'].fields_by_name['token_id']._loaded_options = None - _globals['_EVENTRECEIVEREMOTETRANSFER'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTRECEIVEREMOTETRANSFER'].fields_by_name['sender']._loaded_options = None - _globals['_EVENTRECEIVEREMOTETRANSFER'].fields_by_name['sender']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_EVENTCREATESYNTHETICTOKEN']._serialized_start=76 - _globals['_EVENTCREATESYNTHETICTOKEN']._serialized_end=364 - _globals['_EVENTCREATECOLLATERALTOKEN']._serialized_start=367 - _globals['_EVENTCREATECOLLATERALTOKEN']._serialized_end=656 - _globals['_EVENTSETTOKEN']._serialized_start=659 - _globals['_EVENTSETTOKEN']._serialized_end=891 - _globals['_EVENTENROLLREMOTEROUTER']._serialized_start=894 - _globals['_EVENTENROLLREMOTEROUTER']._serialized_end=1103 - _globals['_EVENTUNROLLREMOTEROUTER']._serialized_start=1105 - _globals['_EVENTUNROLLREMOTEROUTER']._serialized_end=1220 - _globals['_EVENTSENDREMOTETRANSFER']._serialized_start=1223 - _globals['_EVENTSENDREMOTETRANSFER']._serialized_end=1538 - _globals['_EVENTRECEIVEREMOTETRANSFER']._serialized_start=1541 - _globals['_EVENTRECEIVEREMOTETRANSFER']._serialized_end=1849 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/warp/v1/events_pb2_grpc.py b/pyinjective/proto/hyperlane/warp/v1/events_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/events_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/warp/v1/genesis_pb2.py b/pyinjective/proto/hyperlane/warp/v1/genesis_pb2.py deleted file mode 100644 index 5008ff34..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/genesis_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/warp/v1/genesis.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from hyperlane.warp.v1 import types_pb2 as hyperlane_dot_warp_dot_v1_dot_types__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fhyperlane/warp/v1/genesis.proto\x12\x11hyperlane.warp.v1\x1a\x1dhyperlane/warp/v1/types.proto\x1a\x14gogoproto/gogo.proto\"\xde\x01\n\x0cGenesisState\x12\x37\n\x06params\x18\x01 \x01(\x0b\x32\x19.hyperlane.warp.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12\x39\n\x06tokens\x18\x02 \x03(\x0b\x32\x1b.hyperlane.warp.v1.HypTokenB\x04\xc8\xde\x1f\x00R\x06tokens\x12Z\n\x0eremote_routers\x18\x03 \x03(\x0b\x32-.hyperlane.warp.v1.GenesisRemoteRouterWrapperB\x04\xc8\xde\x1f\x00R\rremoteRouters\"\x83\x01\n\x1aGenesisRemoteRouterWrapper\x12\x19\n\x08token_id\x18\x01 \x01(\x04R\x07tokenId\x12J\n\rremote_router\x18\x02 \x01(\x0b\x32\x1f.hyperlane.warp.v1.RemoteRouterB\x04\xc8\xde\x1f\x00R\x0cremoteRouterB\xc5\x01\n\x15\x63om.hyperlane.warp.v1B\x0cGenesisProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\xa2\x02\x03HWX\xaa\x02\x11Hyperlane.Warp.V1\xca\x02\x11Hyperlane\\Warp\\V1\xe2\x02\x1dHyperlane\\Warp\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Warp::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.warp.v1.genesis_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.warp.v1B\014GenesisProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\242\002\003HWX\252\002\021Hyperlane.Warp.V1\312\002\021Hyperlane\\Warp\\V1\342\002\035Hyperlane\\Warp\\V1\\GPBMetadata\352\002\023Hyperlane::Warp::V1' - _globals['_GENESISSTATE'].fields_by_name['params']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['params']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE'].fields_by_name['tokens']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['tokens']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE'].fields_by_name['remote_routers']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['remote_routers']._serialized_options = b'\310\336\037\000' - _globals['_GENESISREMOTEROUTERWRAPPER'].fields_by_name['remote_router']._loaded_options = None - _globals['_GENESISREMOTEROUTERWRAPPER'].fields_by_name['remote_router']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE']._serialized_start=108 - _globals['_GENESISSTATE']._serialized_end=330 - _globals['_GENESISREMOTEROUTERWRAPPER']._serialized_start=333 - _globals['_GENESISREMOTEROUTERWRAPPER']._serialized_end=464 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/warp/v1/genesis_pb2_grpc.py b/pyinjective/proto/hyperlane/warp/v1/genesis_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/genesis_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/hyperlane/warp/v1/query_pb2.py b/pyinjective/proto/hyperlane/warp/v1/query_pb2.py deleted file mode 100644 index 0d89f130..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/query_pb2.py +++ /dev/null @@ -1,76 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/warp/v1/query.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 -from hyperlane.warp.v1 import types_pb2 as hyperlane_dot_warp_dot_v1_dot_types__pb2 -from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dhyperlane/warp/v1/query.proto\x12\x11hyperlane.warp.v1\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1dhyperlane/warp/v1/types.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\"\\\n\x12QueryTokensRequest\x12\x46\n\npagination\x18\x01 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xa5\x01\n\x13QueryTokensResponse\x12\x45\n\x06tokens\x18\x01 \x03(\x0b\x32\".hyperlane.warp.v1.WrappedHypTokenB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06tokens\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"#\n\x11QueryTokenRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"N\n\x12QueryTokenResponse\x12\x38\n\x05token\x18\x01 \x01(\x0b\x32\".hyperlane.warp.v1.WrappedHypTokenR\x05token\"\xb7\x02\n\x0fWrappedHypToken\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12>\n\ntoken_type\x18\x03 \x01(\x0e\x32\x1f.hyperlane.warp.v1.HypTokenTypeR\ttokenType\x12%\n\x0eorigin_mailbox\x18\x04 \x01(\tR\roriginMailbox\x12!\n\x0corigin_denom\x18\x05 \x01(\tR\x0boriginDenom\x12Z\n\x06ism_id\x18\x07 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\"+\n\x19QueryBridgedSupplyRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\"i\n\x1aQueryBridgedSupplyResponse\x12K\n\x0e\x62ridged_supply\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\rbridgedSupply\"s\n\x19QueryRemoteRoutersRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x46\n\npagination\x18\x02 \x01(\x0b\x32&.cosmos.base.query.v1beta1.PageRequestR\npagination\"\xad\x01\n\x1aQueryRemoteRoutersResponse\x12\x46\n\x0eremote_routers\x18\x01 \x03(\x0b\x32\x1f.hyperlane.warp.v1.RemoteRouterR\rremoteRouters\x12G\n\npagination\x18\x02 \x01(\x0b\x32\'.cosmos.base.query.v1beta1.PageResponseR\npagination\"\xb8\x01\n\x1fQueryQuoteRemoteTransferRequest\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12-\n\x12\x64\x65stination_domain\x18\x02 \x01(\tR\x11\x64\x65stinationDomain\x12$\n\x0e\x63ustom_hook_id\x18\x03 \x01(\tR\x0c\x63ustomHookId\x12\x30\n\x14\x63ustom_hook_metadata\x18\x04 \x01(\tR\x12\x63ustomHookMetadata\"\x95\x01\n QueryQuoteRemoteTransferResponse\x12q\n\x0bgas_payment\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB5\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.Coins\xa8\xe7\xb0*\x01R\ngasPayment2\x88\x06\n\x05Query\x12u\n\x06Tokens\x12%.hyperlane.warp.v1.QueryTokensRequest\x1a&.hyperlane.warp.v1.QueryTokensResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/hyperlane/v1/tokens\x12w\n\x05Token\x12$.hyperlane.warp.v1.QueryTokenRequest\x1a%.hyperlane.warp.v1.QueryTokenResponse\"!\x82\xd3\xe4\x93\x02\x1b\x12\x19/hyperlane/v1/tokens/{id}\x12\x9e\x01\n\rBridgedSupply\x12,.hyperlane.warp.v1.QueryBridgedSupplyRequest\x1a-.hyperlane.warp.v1.QueryBridgedSupplyResponse\"0\x82\xd3\xe4\x93\x02*\x12(/hyperlane/v1/tokens/{id}/bridged_supply\x12\x9e\x01\n\rRemoteRouters\x12,.hyperlane.warp.v1.QueryRemoteRoutersRequest\x1a-.hyperlane.warp.v1.QueryRemoteRoutersResponse\"0\x82\xd3\xe4\x93\x02*\x12(/hyperlane/v1/tokens/{id}/remote_routers\x12\xcc\x01\n\x13QuoteRemoteTransfer\x12\x32.hyperlane.warp.v1.QueryQuoteRemoteTransferRequest\x1a\x33.hyperlane.warp.v1.QueryQuoteRemoteTransferResponse\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/hyperlane/v1/tokens/{id}/quote_remote_transfer/{destination_domain}B\xc3\x01\n\x15\x63om.hyperlane.warp.v1B\nQueryProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\xa2\x02\x03HWX\xaa\x02\x11Hyperlane.Warp.V1\xca\x02\x11Hyperlane\\Warp\\V1\xe2\x02\x1dHyperlane\\Warp\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Warp::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.warp.v1.query_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.warp.v1B\nQueryProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\242\002\003HWX\252\002\021Hyperlane.Warp.V1\312\002\021Hyperlane\\Warp\\V1\342\002\035Hyperlane\\Warp\\V1\\GPBMetadata\352\002\023Hyperlane::Warp::V1' - _globals['_QUERYTOKENSRESPONSE'].fields_by_name['tokens']._loaded_options = None - _globals['_QUERYTOKENSRESPONSE'].fields_by_name['tokens']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_WRAPPEDHYPTOKEN'].fields_by_name['owner']._loaded_options = None - _globals['_WRAPPEDHYPTOKEN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_WRAPPEDHYPTOKEN'].fields_by_name['ism_id']._loaded_options = None - _globals['_WRAPPEDHYPTOKEN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_QUERYBRIDGEDSUPPLYRESPONSE'].fields_by_name['bridged_supply']._loaded_options = None - _globals['_QUERYBRIDGEDSUPPLYRESPONSE'].fields_by_name['bridged_supply']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_QUERYQUOTEREMOTETRANSFERRESPONSE'].fields_by_name['gas_payment']._loaded_options = None - _globals['_QUERYQUOTEREMOTETRANSFERRESPONSE'].fields_by_name['gas_payment']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins\250\347\260*\001' - _globals['_QUERY'].methods_by_name['Tokens']._loaded_options = None - _globals['_QUERY'].methods_by_name['Tokens']._serialized_options = b'\202\323\344\223\002\026\022\024/hyperlane/v1/tokens' - _globals['_QUERY'].methods_by_name['Token']._loaded_options = None - _globals['_QUERY'].methods_by_name['Token']._serialized_options = b'\202\323\344\223\002\033\022\031/hyperlane/v1/tokens/{id}' - _globals['_QUERY'].methods_by_name['BridgedSupply']._loaded_options = None - _globals['_QUERY'].methods_by_name['BridgedSupply']._serialized_options = b'\202\323\344\223\002*\022(/hyperlane/v1/tokens/{id}/bridged_supply' - _globals['_QUERY'].methods_by_name['RemoteRouters']._loaded_options = None - _globals['_QUERY'].methods_by_name['RemoteRouters']._serialized_options = b'\202\323\344\223\002*\022(/hyperlane/v1/tokens/{id}/remote_routers' - _globals['_QUERY'].methods_by_name['QuoteRemoteTransfer']._loaded_options = None - _globals['_QUERY'].methods_by_name['QuoteRemoteTransfer']._serialized_options = b'\202\323\344\223\002F\022D/hyperlane/v1/tokens/{id}/quote_remote_transfer/{destination_domain}' - _globals['_QUERYTOKENSREQUEST']._serialized_start=257 - _globals['_QUERYTOKENSREQUEST']._serialized_end=349 - _globals['_QUERYTOKENSRESPONSE']._serialized_start=352 - _globals['_QUERYTOKENSRESPONSE']._serialized_end=517 - _globals['_QUERYTOKENREQUEST']._serialized_start=519 - _globals['_QUERYTOKENREQUEST']._serialized_end=554 - _globals['_QUERYTOKENRESPONSE']._serialized_start=556 - _globals['_QUERYTOKENRESPONSE']._serialized_end=634 - _globals['_WRAPPEDHYPTOKEN']._serialized_start=637 - _globals['_WRAPPEDHYPTOKEN']._serialized_end=948 - _globals['_QUERYBRIDGEDSUPPLYREQUEST']._serialized_start=950 - _globals['_QUERYBRIDGEDSUPPLYREQUEST']._serialized_end=993 - _globals['_QUERYBRIDGEDSUPPLYRESPONSE']._serialized_start=995 - _globals['_QUERYBRIDGEDSUPPLYRESPONSE']._serialized_end=1100 - _globals['_QUERYREMOTEROUTERSREQUEST']._serialized_start=1102 - _globals['_QUERYREMOTEROUTERSREQUEST']._serialized_end=1217 - _globals['_QUERYREMOTEROUTERSRESPONSE']._serialized_start=1220 - _globals['_QUERYREMOTEROUTERSRESPONSE']._serialized_end=1393 - _globals['_QUERYQUOTEREMOTETRANSFERREQUEST']._serialized_start=1396 - _globals['_QUERYQUOTEREMOTETRANSFERREQUEST']._serialized_end=1580 - _globals['_QUERYQUOTEREMOTETRANSFERRESPONSE']._serialized_start=1583 - _globals['_QUERYQUOTEREMOTETRANSFERRESPONSE']._serialized_end=1732 - _globals['_QUERY']._serialized_start=1735 - _globals['_QUERY']._serialized_end=2511 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/warp/v1/query_pb2_grpc.py b/pyinjective/proto/hyperlane/warp/v1/query_pb2_grpc.py deleted file mode 100644 index 3e3ca24c..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/query_pb2_grpc.py +++ /dev/null @@ -1,257 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.warp.v1 import query_pb2 as hyperlane_dot_warp_dot_v1_dot_query__pb2 - - -class QueryStub(object): - """Query defines the module Query service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.Tokens = channel.unary_unary( - '/hyperlane.warp.v1.Query/Tokens', - request_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokensRequest.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokensResponse.FromString, - _registered_method=True) - self.Token = channel.unary_unary( - '/hyperlane.warp.v1.Query/Token', - request_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokenRequest.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokenResponse.FromString, - _registered_method=True) - self.BridgedSupply = channel.unary_unary( - '/hyperlane.warp.v1.Query/BridgedSupply', - request_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryBridgedSupplyRequest.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryBridgedSupplyResponse.FromString, - _registered_method=True) - self.RemoteRouters = channel.unary_unary( - '/hyperlane.warp.v1.Query/RemoteRouters', - request_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryRemoteRoutersRequest.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryRemoteRoutersResponse.FromString, - _registered_method=True) - self.QuoteRemoteTransfer = channel.unary_unary( - '/hyperlane.warp.v1.Query/QuoteRemoteTransfer', - request_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryQuoteRemoteTransferRequest.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryQuoteRemoteTransferResponse.FromString, - _registered_method=True) - - -class QueryServicer(object): - """Query defines the module Query service. - """ - - def Tokens(self, request, context): - """Tokens ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def Token(self, request, context): - """Token ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def BridgedSupply(self, request, context): - """BridgedSupply ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoteRouters(self, request, context): - """RemoteRouters ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def QuoteRemoteTransfer(self, request, context): - """QuoteRemoteTransfer ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_QueryServicer_to_server(servicer, server): - rpc_method_handlers = { - 'Tokens': grpc.unary_unary_rpc_method_handler( - servicer.Tokens, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokensRequest.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokensResponse.SerializeToString, - ), - 'Token': grpc.unary_unary_rpc_method_handler( - servicer.Token, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokenRequest.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokenResponse.SerializeToString, - ), - 'BridgedSupply': grpc.unary_unary_rpc_method_handler( - servicer.BridgedSupply, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryBridgedSupplyRequest.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryBridgedSupplyResponse.SerializeToString, - ), - 'RemoteRouters': grpc.unary_unary_rpc_method_handler( - servicer.RemoteRouters, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryRemoteRoutersRequest.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryRemoteRoutersResponse.SerializeToString, - ), - 'QuoteRemoteTransfer': grpc.unary_unary_rpc_method_handler( - servicer.QuoteRemoteTransfer, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryQuoteRemoteTransferRequest.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryQuoteRemoteTransferResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.warp.v1.Query', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.warp.v1.Query', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Query(object): - """Query defines the module Query service. - """ - - @staticmethod - def Tokens(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Query/Tokens', - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokensRequest.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokensResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def Token(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Query/Token', - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokenRequest.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryTokenResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def BridgedSupply(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Query/BridgedSupply', - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryBridgedSupplyRequest.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryBridgedSupplyResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RemoteRouters(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Query/RemoteRouters', - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryRemoteRoutersRequest.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryRemoteRoutersResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def QuoteRemoteTransfer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Query/QuoteRemoteTransfer', - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryQuoteRemoteTransferRequest.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_query__pb2.QueryQuoteRemoteTransferResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/warp/v1/tx_pb2.py b/pyinjective/proto/hyperlane/warp/v1/tx_pb2.py deleted file mode 100644 index 8bad3e75..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/tx_pb2.py +++ /dev/null @@ -1,121 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/warp/v1/tx.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.msg.v1 import msg_pb2 as cosmos_dot_msg_dot_v1_dot_msg__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 -from hyperlane.warp.v1 import types_pb2 as hyperlane_dot_warp_dot_v1_dot_types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1ahyperlane/warp/v1/tx.proto\x12\x11hyperlane.warp.v1\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x1dhyperlane/warp/v1/types.proto\"\x94\x02\n\x18MsgCreateCollateralToken\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12j\n\x0eorigin_mailbox\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\roriginMailbox\x12!\n\x0corigin_denom\x18\x03 \x01(\tR\x0boriginDenom:9\x82\xe7\xb0*\x05owner\x8a\xe7\xb0**hyperlane/warp/v1/MsgCreateCollateralToken\"w\n MsgCreateCollateralTokenResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\xef\x01\n\x17MsgCreateSyntheticToken\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12j\n\x0eorigin_mailbox\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\roriginMailbox:8\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*)hyperlane/warp/v1/MsgCreateSyntheticToken\"\x9e\x02\n\x1dMsgCreateNativeSyntheticToken\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12j\n\x0eorigin_mailbox\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\roriginMailbox\x12!\n\x0corigin_denom\x18\x03 \x01(\tR\x0boriginDenom:>\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*/hyperlane/warp/v1/MsgCreateNativeSyntheticToken\"v\n\x1fMsgCreateSyntheticTokenResponse\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\"\xf3\x02\n\x0bMsgSetToken\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12^\n\x08token_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12\x1b\n\tnew_owner\x18\x03 \x01(\tR\x08newOwner\x12Z\n\x06ism_id\x18\x04 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\x12-\n\x12renounce_ownership\x18\x07 \x01(\x08R\x11renounceOwnership:,\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*\x1dhyperlane/warp/v1/MsgSetToken\"\x15\n\x13MsgSetTokenResponse\"\xa5\x02\n\x15MsgEnrollRemoteRouter\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12^\n\x08token_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12\x44\n\rremote_router\x18\x03 \x01(\x0b\x32\x1f.hyperlane.warp.v1.RemoteRouterR\x0cremoteRouter:6\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*\'hyperlane/warp/v1/MsgEnrollRemoteRouter\"\x1f\n\x1dMsgEnrollRemoteRouterResponse\"\x88\x02\n\x15MsgUnrollRemoteRouter\x12.\n\x05owner\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12^\n\x08token_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12\'\n\x0freceiver_domain\x18\x03 \x01(\rR\x0ereceiverDomain:6\x82\xe7\xb0*\x05owner\x8a\xe7\xb0*\'hyperlane/warp/v1/MsgUnrollRemoteRouter\"\x1f\n\x1dMsgUnrollRemoteRouterResponse\"\xce\x05\n\x11MsgRemoteTransfer\x12\x30\n\x06sender\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x06sender\x12^\n\x08token_id\x18\x02 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x07tokenId\x12-\n\x12\x64\x65stination_domain\x18\x03 \x01(\rR\x11\x64\x65stinationDomain\x12\x61\n\trecipient\x18\x04 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\trecipient\x12H\n\x06\x61mount\x18\x05 \x01(\tB0\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.Int\xd2\xb4-\ncosmos.Int\xa8\xe7\xb0*\x01R\x06\x61mount\x12i\n\x0e\x63ustom_hook_id\x18\x06 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x0c\x63ustomHookId\x12:\n\tgas_limit\x18\x07 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x08gasLimit\x12=\n\x07max_fee\x18\x08 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\t\xc8\xde\x1f\x00\xa8\xe7\xb0*\x01R\x06maxFee\x12\x30\n\x14\x63ustom_hook_metadata\x18\t \x01(\tR\x12\x63ustomHookMetadata:3\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*#hyperlane/warp/v1/MsgRemoteTransfer\"\x7f\n\x19MsgRemoteTransferResponse\x12\x62\n\nmessage_id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\tmessageId2\xa2\x06\n\x03Msg\x12y\n\x15\x43reateCollateralToken\x12+.hyperlane.warp.v1.MsgCreateCollateralToken\x1a\x33.hyperlane.warp.v1.MsgCreateCollateralTokenResponse\x12v\n\x14\x43reateSyntheticToken\x12*.hyperlane.warp.v1.MsgCreateSyntheticToken\x1a\x32.hyperlane.warp.v1.MsgCreateSyntheticTokenResponse\x12\x82\x01\n\x1a\x43reateNativeSyntheticToken\x12\x30.hyperlane.warp.v1.MsgCreateNativeSyntheticToken\x1a\x32.hyperlane.warp.v1.MsgCreateSyntheticTokenResponse\x12R\n\x08SetToken\x12\x1e.hyperlane.warp.v1.MsgSetToken\x1a&.hyperlane.warp.v1.MsgSetTokenResponse\x12p\n\x12\x45nrollRemoteRouter\x12(.hyperlane.warp.v1.MsgEnrollRemoteRouter\x1a\x30.hyperlane.warp.v1.MsgEnrollRemoteRouterResponse\x12p\n\x12UnrollRemoteRouter\x12(.hyperlane.warp.v1.MsgUnrollRemoteRouter\x1a\x30.hyperlane.warp.v1.MsgUnrollRemoteRouterResponse\x12\x64\n\x0eRemoteTransfer\x12$.hyperlane.warp.v1.MsgRemoteTransfer\x1a,.hyperlane.warp.v1.MsgRemoteTransferResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xc0\x01\n\x15\x63om.hyperlane.warp.v1B\x07TxProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\xa2\x02\x03HWX\xaa\x02\x11Hyperlane.Warp.V1\xca\x02\x11Hyperlane\\Warp\\V1\xe2\x02\x1dHyperlane\\Warp\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Warp::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.warp.v1.tx_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.warp.v1B\007TxProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\242\002\003HWX\252\002\021Hyperlane.Warp.V1\312\002\021Hyperlane\\Warp\\V1\342\002\035Hyperlane\\Warp\\V1\\GPBMetadata\352\002\023Hyperlane::Warp::V1' - _globals['_MSGCREATECOLLATERALTOKEN'].fields_by_name['owner']._loaded_options = None - _globals['_MSGCREATECOLLATERALTOKEN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCREATECOLLATERALTOKEN'].fields_by_name['origin_mailbox']._loaded_options = None - _globals['_MSGCREATECOLLATERALTOKEN'].fields_by_name['origin_mailbox']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATECOLLATERALTOKEN']._loaded_options = None - _globals['_MSGCREATECOLLATERALTOKEN']._serialized_options = b'\202\347\260*\005owner\212\347\260**hyperlane/warp/v1/MsgCreateCollateralToken' - _globals['_MSGCREATECOLLATERALTOKENRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATECOLLATERALTOKENRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATESYNTHETICTOKEN'].fields_by_name['owner']._loaded_options = None - _globals['_MSGCREATESYNTHETICTOKEN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCREATESYNTHETICTOKEN'].fields_by_name['origin_mailbox']._loaded_options = None - _globals['_MSGCREATESYNTHETICTOKEN'].fields_by_name['origin_mailbox']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATESYNTHETICTOKEN']._loaded_options = None - _globals['_MSGCREATESYNTHETICTOKEN']._serialized_options = b'\202\347\260*\005owner\212\347\260*)hyperlane/warp/v1/MsgCreateSyntheticToken' - _globals['_MSGCREATENATIVESYNTHETICTOKEN'].fields_by_name['owner']._loaded_options = None - _globals['_MSGCREATENATIVESYNTHETICTOKEN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGCREATENATIVESYNTHETICTOKEN'].fields_by_name['origin_mailbox']._loaded_options = None - _globals['_MSGCREATENATIVESYNTHETICTOKEN'].fields_by_name['origin_mailbox']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGCREATENATIVESYNTHETICTOKEN']._loaded_options = None - _globals['_MSGCREATENATIVESYNTHETICTOKEN']._serialized_options = b'\202\347\260*\005owner\212\347\260*/hyperlane/warp/v1/MsgCreateNativeSyntheticToken' - _globals['_MSGCREATESYNTHETICTOKENRESPONSE'].fields_by_name['id']._loaded_options = None - _globals['_MSGCREATESYNTHETICTOKENRESPONSE'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETTOKEN'].fields_by_name['owner']._loaded_options = None - _globals['_MSGSETTOKEN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGSETTOKEN'].fields_by_name['token_id']._loaded_options = None - _globals['_MSGSETTOKEN'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETTOKEN'].fields_by_name['ism_id']._loaded_options = None - _globals['_MSGSETTOKEN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGSETTOKEN']._loaded_options = None - _globals['_MSGSETTOKEN']._serialized_options = b'\202\347\260*\005owner\212\347\260*\035hyperlane/warp/v1/MsgSetToken' - _globals['_MSGENROLLREMOTEROUTER'].fields_by_name['owner']._loaded_options = None - _globals['_MSGENROLLREMOTEROUTER'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGENROLLREMOTEROUTER'].fields_by_name['token_id']._loaded_options = None - _globals['_MSGENROLLREMOTEROUTER'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGENROLLREMOTEROUTER']._loaded_options = None - _globals['_MSGENROLLREMOTEROUTER']._serialized_options = b'\202\347\260*\005owner\212\347\260*\'hyperlane/warp/v1/MsgEnrollRemoteRouter' - _globals['_MSGUNROLLREMOTEROUTER'].fields_by_name['owner']._loaded_options = None - _globals['_MSGUNROLLREMOTEROUTER'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGUNROLLREMOTEROUTER'].fields_by_name['token_id']._loaded_options = None - _globals['_MSGUNROLLREMOTEROUTER'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGUNROLLREMOTEROUTER']._loaded_options = None - _globals['_MSGUNROLLREMOTEROUTER']._serialized_options = b'\202\347\260*\005owner\212\347\260*\'hyperlane/warp/v1/MsgUnrollRemoteRouter' - _globals['_MSGREMOTETRANSFER'].fields_by_name['sender']._loaded_options = None - _globals['_MSGREMOTETRANSFER'].fields_by_name['sender']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_MSGREMOTETRANSFER'].fields_by_name['token_id']._loaded_options = None - _globals['_MSGREMOTETRANSFER'].fields_by_name['token_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGREMOTETRANSFER'].fields_by_name['recipient']._loaded_options = None - _globals['_MSGREMOTETRANSFER'].fields_by_name['recipient']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGREMOTETRANSFER'].fields_by_name['amount']._loaded_options = None - _globals['_MSGREMOTETRANSFER'].fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int\322\264-\ncosmos.Int\250\347\260*\001' - _globals['_MSGREMOTETRANSFER'].fields_by_name['custom_hook_id']._loaded_options = None - _globals['_MSGREMOTETRANSFER'].fields_by_name['custom_hook_id']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSGREMOTETRANSFER'].fields_by_name['gas_limit']._loaded_options = None - _globals['_MSGREMOTETRANSFER'].fields_by_name['gas_limit']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_MSGREMOTETRANSFER'].fields_by_name['max_fee']._loaded_options = None - _globals['_MSGREMOTETRANSFER'].fields_by_name['max_fee']._serialized_options = b'\310\336\037\000\250\347\260*\001' - _globals['_MSGREMOTETRANSFER']._loaded_options = None - _globals['_MSGREMOTETRANSFER']._serialized_options = b'\202\347\260*\006sender\212\347\260*#hyperlane/warp/v1/MsgRemoteTransfer' - _globals['_MSGREMOTETRANSFERRESPONSE'].fields_by_name['message_id']._loaded_options = None - _globals['_MSGREMOTETRANSFERRESPONSE'].fields_by_name['message_id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_MSG']._loaded_options = None - _globals['_MSG']._serialized_options = b'\200\347\260*\001' - _globals['_MSGCREATECOLLATERALTOKEN']._serialized_start=206 - _globals['_MSGCREATECOLLATERALTOKEN']._serialized_end=482 - _globals['_MSGCREATECOLLATERALTOKENRESPONSE']._serialized_start=484 - _globals['_MSGCREATECOLLATERALTOKENRESPONSE']._serialized_end=603 - _globals['_MSGCREATESYNTHETICTOKEN']._serialized_start=606 - _globals['_MSGCREATESYNTHETICTOKEN']._serialized_end=845 - _globals['_MSGCREATENATIVESYNTHETICTOKEN']._serialized_start=848 - _globals['_MSGCREATENATIVESYNTHETICTOKEN']._serialized_end=1134 - _globals['_MSGCREATESYNTHETICTOKENRESPONSE']._serialized_start=1136 - _globals['_MSGCREATESYNTHETICTOKENRESPONSE']._serialized_end=1254 - _globals['_MSGSETTOKEN']._serialized_start=1257 - _globals['_MSGSETTOKEN']._serialized_end=1628 - _globals['_MSGSETTOKENRESPONSE']._serialized_start=1630 - _globals['_MSGSETTOKENRESPONSE']._serialized_end=1651 - _globals['_MSGENROLLREMOTEROUTER']._serialized_start=1654 - _globals['_MSGENROLLREMOTEROUTER']._serialized_end=1947 - _globals['_MSGENROLLREMOTEROUTERRESPONSE']._serialized_start=1949 - _globals['_MSGENROLLREMOTEROUTERRESPONSE']._serialized_end=1980 - _globals['_MSGUNROLLREMOTEROUTER']._serialized_start=1983 - _globals['_MSGUNROLLREMOTEROUTER']._serialized_end=2247 - _globals['_MSGUNROLLREMOTEROUTERRESPONSE']._serialized_start=2249 - _globals['_MSGUNROLLREMOTEROUTERRESPONSE']._serialized_end=2280 - _globals['_MSGREMOTETRANSFER']._serialized_start=2283 - _globals['_MSGREMOTETRANSFER']._serialized_end=3001 - _globals['_MSGREMOTETRANSFERRESPONSE']._serialized_start=3003 - _globals['_MSGREMOTETRANSFERRESPONSE']._serialized_end=3130 - _globals['_MSG']._serialized_start=3133 - _globals['_MSG']._serialized_end=3935 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/warp/v1/tx_pb2_grpc.py b/pyinjective/proto/hyperlane/warp/v1/tx_pb2_grpc.py deleted file mode 100644 index 90d98f99..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/tx_pb2_grpc.py +++ /dev/null @@ -1,345 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from hyperlane.warp.v1 import tx_pb2 as hyperlane_dot_warp_dot_v1_dot_tx__pb2 - - -class MsgStub(object): - """Msg defines the module Msg service. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateCollateralToken = channel.unary_unary( - '/hyperlane.warp.v1.Msg/CreateCollateralToken', - request_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateCollateralToken.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateCollateralTokenResponse.FromString, - _registered_method=True) - self.CreateSyntheticToken = channel.unary_unary( - '/hyperlane.warp.v1.Msg/CreateSyntheticToken', - request_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticToken.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticTokenResponse.FromString, - _registered_method=True) - self.CreateNativeSyntheticToken = channel.unary_unary( - '/hyperlane.warp.v1.Msg/CreateNativeSyntheticToken', - request_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateNativeSyntheticToken.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticTokenResponse.FromString, - _registered_method=True) - self.SetToken = channel.unary_unary( - '/hyperlane.warp.v1.Msg/SetToken', - request_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgSetToken.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgSetTokenResponse.FromString, - _registered_method=True) - self.EnrollRemoteRouter = channel.unary_unary( - '/hyperlane.warp.v1.Msg/EnrollRemoteRouter', - request_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgEnrollRemoteRouter.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgEnrollRemoteRouterResponse.FromString, - _registered_method=True) - self.UnrollRemoteRouter = channel.unary_unary( - '/hyperlane.warp.v1.Msg/UnrollRemoteRouter', - request_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgUnrollRemoteRouter.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgUnrollRemoteRouterResponse.FromString, - _registered_method=True) - self.RemoteTransfer = channel.unary_unary( - '/hyperlane.warp.v1.Msg/RemoteTransfer', - request_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgRemoteTransfer.SerializeToString, - response_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgRemoteTransferResponse.FromString, - _registered_method=True) - - -class MsgServicer(object): - """Msg defines the module Msg service. - """ - - def CreateCollateralToken(self, request, context): - """CreateCollateralToken ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateSyntheticToken(self, request, context): - """CreateSyntheticToken ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateNativeSyntheticToken(self, request, context): - """CreateNativeSyntheticToken ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetToken(self, request, context): - """SetToken ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def EnrollRemoteRouter(self, request, context): - """EnrollRemoteRouter ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UnrollRemoteRouter(self, request, context): - """UnrollRemoteRouter ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RemoteTransfer(self, request, context): - """RemoteTransfer ... - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_MsgServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateCollateralToken': grpc.unary_unary_rpc_method_handler( - servicer.CreateCollateralToken, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateCollateralToken.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateCollateralTokenResponse.SerializeToString, - ), - 'CreateSyntheticToken': grpc.unary_unary_rpc_method_handler( - servicer.CreateSyntheticToken, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticToken.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticTokenResponse.SerializeToString, - ), - 'CreateNativeSyntheticToken': grpc.unary_unary_rpc_method_handler( - servicer.CreateNativeSyntheticToken, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateNativeSyntheticToken.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticTokenResponse.SerializeToString, - ), - 'SetToken': grpc.unary_unary_rpc_method_handler( - servicer.SetToken, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgSetToken.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgSetTokenResponse.SerializeToString, - ), - 'EnrollRemoteRouter': grpc.unary_unary_rpc_method_handler( - servicer.EnrollRemoteRouter, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgEnrollRemoteRouter.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgEnrollRemoteRouterResponse.SerializeToString, - ), - 'UnrollRemoteRouter': grpc.unary_unary_rpc_method_handler( - servicer.UnrollRemoteRouter, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgUnrollRemoteRouter.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgUnrollRemoteRouterResponse.SerializeToString, - ), - 'RemoteTransfer': grpc.unary_unary_rpc_method_handler( - servicer.RemoteTransfer, - request_deserializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgRemoteTransfer.FromString, - response_serializer=hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgRemoteTransferResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'hyperlane.warp.v1.Msg', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - server.add_registered_method_handlers('hyperlane.warp.v1.Msg', rpc_method_handlers) - - - # This class is part of an EXPERIMENTAL API. -class Msg(object): - """Msg defines the module Msg service. - """ - - @staticmethod - def CreateCollateralToken(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Msg/CreateCollateralToken', - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateCollateralToken.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateCollateralTokenResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def CreateSyntheticToken(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Msg/CreateSyntheticToken', - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticToken.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticTokenResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def CreateNativeSyntheticToken(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Msg/CreateNativeSyntheticToken', - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateNativeSyntheticToken.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgCreateSyntheticTokenResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def SetToken(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Msg/SetToken', - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgSetToken.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgSetTokenResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def EnrollRemoteRouter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Msg/EnrollRemoteRouter', - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgEnrollRemoteRouter.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgEnrollRemoteRouterResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def UnrollRemoteRouter(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Msg/UnrollRemoteRouter', - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgUnrollRemoteRouter.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgUnrollRemoteRouterResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def RemoteTransfer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/hyperlane.warp.v1.Msg/RemoteTransfer', - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgRemoteTransfer.SerializeToString, - hyperlane_dot_warp_dot_v1_dot_tx__pb2.MsgRemoteTransferResponse.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) diff --git a/pyinjective/proto/hyperlane/warp/v1/types_pb2.py b/pyinjective/proto/hyperlane/warp/v1/types_pb2.py deleted file mode 100644 index d43f210d..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/types_pb2.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: hyperlane/warp/v1/types.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dhyperlane/warp/v1/types.proto\x12\x11hyperlane.warp.v1\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\"$\n\x06Params:\x1a\x8a\xe7\xb0*\x15hyperlane/warp/Params\"\x88\x04\n\x08HypToken\x12S\n\x02id\x18\x01 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x02id\x12.\n\x05owner\x18\x02 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x05owner\x12>\n\ntoken_type\x18\x03 \x01(\x0e\x32\x1f.hyperlane.warp.v1.HypTokenTypeR\ttokenType\x12j\n\x0eorigin_mailbox\x18\x04 \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\roriginMailbox\x12!\n\x0corigin_denom\x18\x05 \x01(\tR\x0boriginDenom\x12L\n\x12\x63ollateral_balance\x18\x06 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x11\x63ollateralBalance\x12Z\n\x06ism_id\x18\x07 \x01(\tBC\xc8\xde\x1f\x01\xda\xde\x1f;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddressR\x05ismId\"\x95\x01\n\x0cRemoteRouter\x12\'\n\x0freceiver_domain\x18\x01 \x01(\rR\x0ereceiverDomain\x12+\n\x11receiver_contract\x18\x02 \x01(\tR\x10receiverContract\x12/\n\x03gas\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x03gas*q\n\x0cHypTokenType\x12\x1e\n\x1aHYP_TOKEN_TYPE_UNSPECIFIED\x10\x00\x12\x1d\n\x19HYP_TOKEN_TYPE_COLLATERAL\x10\x01\x12\x1c\n\x18HYP_TOKEN_TYPE_SYNTHETIC\x10\x02\x1a\x04\x88\xa3\x1e\x00\x42\xc3\x01\n\x15\x63om.hyperlane.warp.v1B\nTypesProtoP\x01Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\xa2\x02\x03HWX\xaa\x02\x11Hyperlane.Warp.V1\xca\x02\x11Hyperlane\\Warp\\V1\xe2\x02\x1dHyperlane\\Warp\\V1\\GPBMetadata\xea\x02\x13Hyperlane::Warp::V1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hyperlane.warp.v1.types_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\025com.hyperlane.warp.v1B\nTypesProtoP\001Z8github.com/bcp-innovations/hyperlane-cosmos/x/warp/types\242\002\003HWX\252\002\021Hyperlane.Warp.V1\312\002\021Hyperlane\\Warp\\V1\342\002\035Hyperlane\\Warp\\V1\\GPBMetadata\352\002\023Hyperlane::Warp::V1' - _globals['_HYPTOKENTYPE']._loaded_options = None - _globals['_HYPTOKENTYPE']._serialized_options = b'\210\243\036\000' - _globals['_PARAMS']._loaded_options = None - _globals['_PARAMS']._serialized_options = b'\212\347\260*\025hyperlane/warp/Params' - _globals['_HYPTOKEN'].fields_by_name['id']._loaded_options = None - _globals['_HYPTOKEN'].fields_by_name['id']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_HYPTOKEN'].fields_by_name['owner']._loaded_options = None - _globals['_HYPTOKEN'].fields_by_name['owner']._serialized_options = b'\322\264-\024cosmos.AddressString' - _globals['_HYPTOKEN'].fields_by_name['origin_mailbox']._loaded_options = None - _globals['_HYPTOKEN'].fields_by_name['origin_mailbox']._serialized_options = b'\310\336\037\000\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_HYPTOKEN'].fields_by_name['collateral_balance']._loaded_options = None - _globals['_HYPTOKEN'].fields_by_name['collateral_balance']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_HYPTOKEN'].fields_by_name['ism_id']._loaded_options = None - _globals['_HYPTOKEN'].fields_by_name['ism_id']._serialized_options = b'\310\336\037\001\332\336\037;github.com/bcp-innovations/hyperlane-cosmos/util.HexAddress' - _globals['_REMOTEROUTER'].fields_by_name['gas']._loaded_options = None - _globals['_REMOTEROUTER'].fields_by_name['gas']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_HYPTOKENTYPE']._serialized_start=833 - _globals['_HYPTOKENTYPE']._serialized_end=946 - _globals['_PARAMS']._serialized_start=120 - _globals['_PARAMS']._serialized_end=156 - _globals['_HYPTOKEN']._serialized_start=159 - _globals['_HYPTOKEN']._serialized_end=679 - _globals['_REMOTEROUTER']._serialized_start=682 - _globals['_REMOTEROUTER']._serialized_end=831 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/hyperlane/warp/v1/types_pb2_grpc.py b/pyinjective/proto/hyperlane/warp/v1/types_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/hyperlane/warp/v1/types_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/injective/auction/v1beta1/auction_pb2.py b/pyinjective/proto/injective/auction/v1beta1/auction_pb2.py index f9ec849b..22888c38 100644 --- a/pyinjective/proto/injective/auction/v1beta1/auction_pb2.py +++ b/pyinjective/proto/injective/auction/v1beta1/auction_pb2.py @@ -15,9 +15,10 @@ from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'injective/auction/v1beta1/auction.proto\x12\x19injective.auction.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\"\xa4\x02\n\x06Params\x12%\n\x0e\x61uction_period\x18\x01 \x01(\x03R\rauctionPeriod\x12\x61\n\x1bmin_next_bid_increment_rate\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17minNextBidIncrementRate\x12J\n\x12inj_basket_max_cap\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0finjBasketMaxCap\x12+\n\x11\x62idders_whitelist\x18\x04 \x03(\tR\x10\x62iddersWhitelist:\x17\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x0e\x61uction/Params\"\x9e\x01\n\x03\x42id\x12\x33\n\x06\x62idder\x18\x01 \x01(\tB\x1b\xea\xde\x1f\x06\x62idder\xf2\xde\x1f\ryaml:\"bidder\"R\x06\x62idder\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\"\xa5\x01\n\x11LastAuctionResult\x12\x16\n\x06winner\x18\x01 \x01(\tR\x06winner\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round\"\x9c\x01\n\x08\x45ventBid\x12\x16\n\x06\x62idder\x18\x01 \x01(\tR\x06\x62idder\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round\"\xa6\x01\n\x12\x45ventAuctionResult\x12\x16\n\x06winner\x18\x01 \x01(\tR\x06winner\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round\"\xc0\x01\n\x11\x45ventAuctionStart\x12\x14\n\x05round\x18\x01 \x01(\x04R\x05round\x12)\n\x10\x65nding_timestamp\x18\x02 \x01(\x03R\x0f\x65ndingTimestamp\x12j\n\nnew_basket\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\tnewBasketB\x82\x02\n\x1d\x63om.injective.auction.v1beta1B\x0c\x41uctionProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'injective/auction/v1beta1/auction.proto\x12\x19injective.auction.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\x1a+injective/common/vouchers/v1/vouchers.proto\"\x8b\x01\n\x0f\x45ventSetVoucher\x12\x12\n\x04\x61\x64\x64r\x18\x01 \x01(\tR\x04\x61\x64\x64r\x12\x64\n\x07voucher\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x07voucher\"\xa4\x02\n\x06Params\x12%\n\x0e\x61uction_period\x18\x01 \x01(\x03R\rauctionPeriod\x12\x61\n\x1bmin_next_bid_increment_rate\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17minNextBidIncrementRate\x12J\n\x12inj_basket_max_cap\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0finjBasketMaxCap\x12+\n\x11\x62idders_whitelist\x18\x04 \x03(\tR\x10\x62iddersWhitelist:\x17\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x0e\x61uction/Params\"\x9e\x01\n\x03\x42id\x12\x33\n\x06\x62idder\x18\x01 \x01(\tB\x1b\xea\xde\x1f\x06\x62idder\xf2\xde\x1f\ryaml:\"bidder\"R\x06\x62idder\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\"\xa5\x01\n\x11LastAuctionResult\x12\x16\n\x06winner\x18\x01 \x01(\tR\x06winner\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round\"\x9c\x01\n\x08\x45ventBid\x12\x16\n\x06\x62idder\x18\x01 \x01(\tR\x06\x62idder\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round\"\xa6\x01\n\x12\x45ventAuctionResult\x12\x16\n\x06winner\x18\x01 \x01(\tR\x06winner\x12\x62\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x06\x61mount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round\"\xc0\x01\n\x11\x45ventAuctionStart\x12\x14\n\x05round\x18\x01 \x01(\x04R\x05round\x12)\n\x10\x65nding_timestamp\x18\x02 \x01(\x03R\x0f\x65ndingTimestamp\x12j\n\nnew_basket\x18\x03 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\tnewBasketB\x82\x02\n\x1d\x63om.injective.auction.v1beta1B\x0c\x41uctionProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -25,6 +26,8 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\035com.injective.auction.v1beta1B\014AuctionProtoP\001ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\242\002\003IAX\252\002\031Injective.Auction.V1beta1\312\002\031Injective\\Auction\\V1beta1\342\002%Injective\\Auction\\V1beta1\\GPBMetadata\352\002\033Injective::Auction::V1beta1' + _globals['_EVENTSETVOUCHER'].fields_by_name['voucher']._loaded_options = None + _globals['_EVENTSETVOUCHER'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin' _globals['_PARAMS'].fields_by_name['min_next_bid_increment_rate']._loaded_options = None _globals['_PARAMS'].fields_by_name['min_next_bid_increment_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_PARAMS'].fields_by_name['inj_basket_max_cap']._loaded_options = None @@ -43,16 +46,18 @@ _globals['_EVENTAUCTIONRESULT'].fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin' _globals['_EVENTAUCTIONSTART'].fields_by_name['new_basket']._loaded_options = None _globals['_EVENTAUCTIONSTART'].fields_by_name['new_basket']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' - _globals['_PARAMS']._serialized_start=144 - _globals['_PARAMS']._serialized_end=436 - _globals['_BID']._serialized_start=439 - _globals['_BID']._serialized_end=597 - _globals['_LASTAUCTIONRESULT']._serialized_start=600 - _globals['_LASTAUCTIONRESULT']._serialized_end=765 - _globals['_EVENTBID']._serialized_start=768 - _globals['_EVENTBID']._serialized_end=924 - _globals['_EVENTAUCTIONRESULT']._serialized_start=927 - _globals['_EVENTAUCTIONRESULT']._serialized_end=1093 - _globals['_EVENTAUCTIONSTART']._serialized_start=1096 - _globals['_EVENTAUCTIONSTART']._serialized_end=1288 + _globals['_EVENTSETVOUCHER']._serialized_start=189 + _globals['_EVENTSETVOUCHER']._serialized_end=328 + _globals['_PARAMS']._serialized_start=331 + _globals['_PARAMS']._serialized_end=623 + _globals['_BID']._serialized_start=626 + _globals['_BID']._serialized_end=784 + _globals['_LASTAUCTIONRESULT']._serialized_start=787 + _globals['_LASTAUCTIONRESULT']._serialized_end=952 + _globals['_EVENTBID']._serialized_start=955 + _globals['_EVENTBID']._serialized_end=1111 + _globals['_EVENTAUCTIONRESULT']._serialized_start=1114 + _globals['_EVENTAUCTIONRESULT']._serialized_end=1280 + _globals['_EVENTAUCTIONSTART']._serialized_start=1283 + _globals['_EVENTAUCTIONSTART']._serialized_end=1475 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/auction/v1beta1/genesis_pb2.py b/pyinjective/proto/injective/auction/v1beta1/genesis_pb2.py index 28c3fa26..9e1ba8a4 100644 --- a/pyinjective/proto/injective/auction/v1beta1/genesis_pb2.py +++ b/pyinjective/proto/injective/auction/v1beta1/genesis_pb2.py @@ -13,10 +13,11 @@ from pyinjective.proto.injective.auction.v1beta1 import auction_pb2 as injective_dot_auction_dot_v1beta1_dot_auction__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'injective/auction/v1beta1/genesis.proto\x12\x19injective.auction.v1beta1\x1a\'injective/auction/v1beta1/auction.proto\x1a\x14gogoproto/gogo.proto\"\xcd\x02\n\x0cGenesisState\x12?\n\x06params\x18\x01 \x01(\x0b\x32!.injective.auction.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12#\n\rauction_round\x18\x02 \x01(\x04R\x0c\x61uctionRound\x12?\n\x0bhighest_bid\x18\x03 \x01(\x0b\x32\x1e.injective.auction.v1beta1.BidR\nhighestBid\x12\x38\n\x18\x61uction_ending_timestamp\x18\x04 \x01(\x03R\x16\x61uctionEndingTimestamp\x12\\\n\x13last_auction_result\x18\x05 \x01(\x0b\x32,.injective.auction.v1beta1.LastAuctionResultR\x11lastAuctionResultB\x82\x02\n\x1d\x63om.injective.auction.v1beta1B\x0cGenesisProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'injective/auction/v1beta1/genesis.proto\x12\x19injective.auction.v1beta1\x1a\'injective/auction/v1beta1/auction.proto\x1a+injective/common/vouchers/v1/vouchers.proto\x1a\x14gogoproto/gogo.proto\"\x9d\x03\n\x0cGenesisState\x12?\n\x06params\x18\x01 \x01(\x0b\x32!.injective.auction.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12#\n\rauction_round\x18\x02 \x01(\x04R\x0c\x61uctionRound\x12?\n\x0bhighest_bid\x18\x03 \x01(\x0b\x32\x1e.injective.auction.v1beta1.BidR\nhighestBid\x12\x38\n\x18\x61uction_ending_timestamp\x18\x04 \x01(\x03R\x16\x61uctionEndingTimestamp\x12\\\n\x13last_auction_result\x18\x05 \x01(\x0b\x32,.injective.auction.v1beta1.LastAuctionResultR\x11lastAuctionResult\x12N\n\x08vouchers\x18\x06 \x03(\x0b\x32,.injective.common.vouchers.v1.AddressVoucherB\x04\xc8\xde\x1f\x00R\x08vouchersB\x82\x02\n\x1d\x63om.injective.auction.v1beta1B\x0cGenesisProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,6 +27,8 @@ _globals['DESCRIPTOR']._serialized_options = b'\n\035com.injective.auction.v1beta1B\014GenesisProtoP\001ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\242\002\003IAX\252\002\031Injective.Auction.V1beta1\312\002\031Injective\\Auction\\V1beta1\342\002%Injective\\Auction\\V1beta1\\GPBMetadata\352\002\033Injective::Auction::V1beta1' _globals['_GENESISSTATE'].fields_by_name['params']._loaded_options = None _globals['_GENESISSTATE'].fields_by_name['params']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE']._serialized_start=134 - _globals['_GENESISSTATE']._serialized_end=467 + _globals['_GENESISSTATE'].fields_by_name['vouchers']._loaded_options = None + _globals['_GENESISSTATE'].fields_by_name['vouchers']._serialized_options = b'\310\336\037\000' + _globals['_GENESISSTATE']._serialized_start=179 + _globals['_GENESISSTATE']._serialized_end=592 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/auction/v1beta1/query_pb2.py b/pyinjective/proto/injective/auction/v1beta1/query_pb2.py index c8f87434..43667576 100644 --- a/pyinjective/proto/injective/auction/v1beta1/query_pb2.py +++ b/pyinjective/proto/injective/auction/v1beta1/query_pb2.py @@ -15,11 +15,12 @@ from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from pyinjective.proto.injective.auction.v1beta1 import auction_pb2 as injective_dot_auction_dot_v1beta1_dot_auction__pb2 from pyinjective.proto.injective.auction.v1beta1 import genesis_pb2 as injective_dot_auction_dot_v1beta1_dot_genesis__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%injective/auction/v1beta1/query.proto\x12\x19injective.auction.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\'injective/auction/v1beta1/auction.proto\x1a\'injective/auction/v1beta1/genesis.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x1b\n\x19QueryAuctionParamsRequest\"]\n\x1aQueryAuctionParamsResponse\x12?\n\x06params\x18\x01 \x01(\x0b\x32!.injective.auction.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"\"\n QueryCurrentAuctionBasketRequest\"\xcd\x02\n!QueryCurrentAuctionBasketResponse\x12\x63\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x06\x61mount\x12\"\n\x0c\x61uctionRound\x18\x02 \x01(\x04R\x0c\x61uctionRound\x12.\n\x12\x61uctionClosingTime\x18\x03 \x01(\x04R\x12\x61uctionClosingTime\x12$\n\rhighestBidder\x18\x04 \x01(\tR\rhighestBidder\x12I\n\x10highestBidAmount\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x10highestBidAmount\"\x19\n\x17QueryModuleStateRequest\"Y\n\x18QueryModuleStateResponse\x12=\n\x05state\x18\x01 \x01(\x0b\x32\'.injective.auction.v1beta1.GenesisStateR\x05state\"\x1f\n\x1dQueryLastAuctionResultRequest\"~\n\x1eQueryLastAuctionResultResponse\x12\\\n\x13last_auction_result\x18\x01 \x01(\x0b\x32,.injective.auction.v1beta1.LastAuctionResultR\x11lastAuctionResult2\xe4\x05\n\x05Query\x12\xa7\x01\n\rAuctionParams\x12\x34.injective.auction.v1beta1.QueryAuctionParamsRequest\x1a\x35.injective.auction.v1beta1.QueryAuctionParamsResponse\")\x82\xd3\xe4\x93\x02#\x12!/injective/auction/v1beta1/params\x12\xbc\x01\n\x14\x43urrentAuctionBasket\x12;.injective.auction.v1beta1.QueryCurrentAuctionBasketRequest\x1a<.injective.auction.v1beta1.QueryCurrentAuctionBasketResponse\")\x82\xd3\xe4\x93\x02#\x12!/injective/auction/v1beta1/basket\x12\xae\x01\n\x12\x41uctionModuleState\x12\x32.injective.auction.v1beta1.QueryModuleStateRequest\x1a\x33.injective.auction.v1beta1.QueryModuleStateResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/injective/auction/v1beta1/module_state\x12\xc0\x01\n\x11LastAuctionResult\x12\x38.injective.auction.v1beta1.QueryLastAuctionResultRequest\x1a\x39.injective.auction.v1beta1.QueryLastAuctionResultResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./injective/auction/v1beta1/last_auction_resultB\x80\x02\n\x1d\x63om.injective.auction.v1beta1B\nQueryProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%injective/auction/v1beta1/query.proto\x12\x19injective.auction.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\'injective/auction/v1beta1/auction.proto\x1a\'injective/auction/v1beta1/genesis.proto\x1a+injective/common/vouchers/v1/vouchers.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x1b\n\x19QueryAuctionParamsRequest\"]\n\x1aQueryAuctionParamsResponse\x12?\n\x06params\x18\x01 \x01(\x0b\x32!.injective.auction.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"\"\n QueryCurrentAuctionBasketRequest\"\xcd\x02\n!QueryCurrentAuctionBasketResponse\x12\x63\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x06\x61mount\x12\"\n\x0c\x61uctionRound\x18\x02 \x01(\x04R\x0c\x61uctionRound\x12.\n\x12\x61uctionClosingTime\x18\x03 \x01(\x04R\x12\x61uctionClosingTime\x12$\n\rhighestBidder\x18\x04 \x01(\tR\rhighestBidder\x12I\n\x10highestBidAmount\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x10highestBidAmount\"\x19\n\x17QueryModuleStateRequest\"Y\n\x18QueryModuleStateResponse\x12=\n\x05state\x18\x01 \x01(\x0b\x32\'.injective.auction.v1beta1.GenesisStateR\x05state\"\x1f\n\x1dQueryLastAuctionResultRequest\"~\n\x1eQueryLastAuctionResultResponse\x12\\\n\x13last_auction_result\x18\x01 \x01(\x0b\x32,.injective.auction.v1beta1.LastAuctionResultR\x11lastAuctionResult\",\n\x14QueryVouchersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"g\n\x15QueryVouchersResponse\x12N\n\x08vouchers\x18\x01 \x03(\x0b\x32,.injective.common.vouchers.v1.AddressVoucherB\x04\xc8\xde\x1f\x00R\x08vouchers\"E\n\x13QueryVoucherRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"|\n\x14QueryVoucherResponse\x12\x64\n\x07voucher\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x07voucher2\x9a\x08\n\x05Query\x12\xa7\x01\n\rAuctionParams\x12\x34.injective.auction.v1beta1.QueryAuctionParamsRequest\x1a\x35.injective.auction.v1beta1.QueryAuctionParamsResponse\")\x82\xd3\xe4\x93\x02#\x12!/injective/auction/v1beta1/params\x12\xbc\x01\n\x14\x43urrentAuctionBasket\x12;.injective.auction.v1beta1.QueryCurrentAuctionBasketRequest\x1a<.injective.auction.v1beta1.QueryCurrentAuctionBasketResponse\")\x82\xd3\xe4\x93\x02#\x12!/injective/auction/v1beta1/basket\x12\xae\x01\n\x12\x41uctionModuleState\x12\x32.injective.auction.v1beta1.QueryModuleStateRequest\x1a\x33.injective.auction.v1beta1.QueryModuleStateResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/injective/auction/v1beta1/module_state\x12\xc0\x01\n\x11LastAuctionResult\x12\x38.injective.auction.v1beta1.QueryLastAuctionResultRequest\x1a\x39.injective.auction.v1beta1.QueryLastAuctionResultResponse\"6\x82\xd3\xe4\x93\x02\x30\x12./injective/auction/v1beta1/last_auction_result\x12\x9a\x01\n\x08Vouchers\x12/.injective.auction.v1beta1.QueryVouchersRequest\x1a\x30.injective.auction.v1beta1.QueryVouchersResponse\"+\x82\xd3\xe4\x93\x02%\x12#/injective/auction/v1beta1/vouchers\x12\x96\x01\n\x07Voucher\x12..injective.auction.v1beta1.QueryVoucherRequest\x1a/.injective.auction.v1beta1.QueryVoucherResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/injective/auction/v1beta1/voucherB\x80\x02\n\x1d\x63om.injective.auction.v1beta1B\nQueryProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,6 +34,10 @@ _globals['_QUERYCURRENTAUCTIONBASKETRESPONSE'].fields_by_name['amount']._serialized_options = b'\310\336\037\000\252\337\037(github.com/cosmos/cosmos-sdk/types.Coins' _globals['_QUERYCURRENTAUCTIONBASKETRESPONSE'].fields_by_name['highestBidAmount']._loaded_options = None _globals['_QUERYCURRENTAUCTIONBASKETRESPONSE'].fields_by_name['highestBidAmount']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_QUERYVOUCHERSRESPONSE'].fields_by_name['vouchers']._loaded_options = None + _globals['_QUERYVOUCHERSRESPONSE'].fields_by_name['vouchers']._serialized_options = b'\310\336\037\000' + _globals['_QUERYVOUCHERRESPONSE'].fields_by_name['voucher']._loaded_options = None + _globals['_QUERYVOUCHERRESPONSE'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin' _globals['_QUERY'].methods_by_name['AuctionParams']._loaded_options = None _globals['_QUERY'].methods_by_name['AuctionParams']._serialized_options = b'\202\323\344\223\002#\022!/injective/auction/v1beta1/params' _globals['_QUERY'].methods_by_name['CurrentAuctionBasket']._loaded_options = None @@ -41,22 +46,34 @@ _globals['_QUERY'].methods_by_name['AuctionModuleState']._serialized_options = b'\202\323\344\223\002)\022\'/injective/auction/v1beta1/module_state' _globals['_QUERY'].methods_by_name['LastAuctionResult']._loaded_options = None _globals['_QUERY'].methods_by_name['LastAuctionResult']._serialized_options = b'\202\323\344\223\0020\022./injective/auction/v1beta1/last_auction_result' - _globals['_QUERYAUCTIONPARAMSREQUEST']._serialized_start=234 - _globals['_QUERYAUCTIONPARAMSREQUEST']._serialized_end=261 - _globals['_QUERYAUCTIONPARAMSRESPONSE']._serialized_start=263 - _globals['_QUERYAUCTIONPARAMSRESPONSE']._serialized_end=356 - _globals['_QUERYCURRENTAUCTIONBASKETREQUEST']._serialized_start=358 - _globals['_QUERYCURRENTAUCTIONBASKETREQUEST']._serialized_end=392 - _globals['_QUERYCURRENTAUCTIONBASKETRESPONSE']._serialized_start=395 - _globals['_QUERYCURRENTAUCTIONBASKETRESPONSE']._serialized_end=728 - _globals['_QUERYMODULESTATEREQUEST']._serialized_start=730 - _globals['_QUERYMODULESTATEREQUEST']._serialized_end=755 - _globals['_QUERYMODULESTATERESPONSE']._serialized_start=757 - _globals['_QUERYMODULESTATERESPONSE']._serialized_end=846 - _globals['_QUERYLASTAUCTIONRESULTREQUEST']._serialized_start=848 - _globals['_QUERYLASTAUCTIONRESULTREQUEST']._serialized_end=879 - _globals['_QUERYLASTAUCTIONRESULTRESPONSE']._serialized_start=881 - _globals['_QUERYLASTAUCTIONRESULTRESPONSE']._serialized_end=1007 - _globals['_QUERY']._serialized_start=1010 - _globals['_QUERY']._serialized_end=1750 + _globals['_QUERY'].methods_by_name['Vouchers']._loaded_options = None + _globals['_QUERY'].methods_by_name['Vouchers']._serialized_options = b'\202\323\344\223\002%\022#/injective/auction/v1beta1/vouchers' + _globals['_QUERY'].methods_by_name['Voucher']._loaded_options = None + _globals['_QUERY'].methods_by_name['Voucher']._serialized_options = b'\202\323\344\223\002$\022\"/injective/auction/v1beta1/voucher' + _globals['_QUERYAUCTIONPARAMSREQUEST']._serialized_start=279 + _globals['_QUERYAUCTIONPARAMSREQUEST']._serialized_end=306 + _globals['_QUERYAUCTIONPARAMSRESPONSE']._serialized_start=308 + _globals['_QUERYAUCTIONPARAMSRESPONSE']._serialized_end=401 + _globals['_QUERYCURRENTAUCTIONBASKETREQUEST']._serialized_start=403 + _globals['_QUERYCURRENTAUCTIONBASKETREQUEST']._serialized_end=437 + _globals['_QUERYCURRENTAUCTIONBASKETRESPONSE']._serialized_start=440 + _globals['_QUERYCURRENTAUCTIONBASKETRESPONSE']._serialized_end=773 + _globals['_QUERYMODULESTATEREQUEST']._serialized_start=775 + _globals['_QUERYMODULESTATEREQUEST']._serialized_end=800 + _globals['_QUERYMODULESTATERESPONSE']._serialized_start=802 + _globals['_QUERYMODULESTATERESPONSE']._serialized_end=891 + _globals['_QUERYLASTAUCTIONRESULTREQUEST']._serialized_start=893 + _globals['_QUERYLASTAUCTIONRESULTREQUEST']._serialized_end=924 + _globals['_QUERYLASTAUCTIONRESULTRESPONSE']._serialized_start=926 + _globals['_QUERYLASTAUCTIONRESULTRESPONSE']._serialized_end=1052 + _globals['_QUERYVOUCHERSREQUEST']._serialized_start=1054 + _globals['_QUERYVOUCHERSREQUEST']._serialized_end=1098 + _globals['_QUERYVOUCHERSRESPONSE']._serialized_start=1100 + _globals['_QUERYVOUCHERSRESPONSE']._serialized_end=1203 + _globals['_QUERYVOUCHERREQUEST']._serialized_start=1205 + _globals['_QUERYVOUCHERREQUEST']._serialized_end=1274 + _globals['_QUERYVOUCHERRESPONSE']._serialized_start=1276 + _globals['_QUERYVOUCHERRESPONSE']._serialized_end=1400 + _globals['_QUERY']._serialized_start=1403 + _globals['_QUERY']._serialized_end=2453 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/auction/v1beta1/query_pb2_grpc.py b/pyinjective/proto/injective/auction/v1beta1/query_pb2_grpc.py index dbebceb7..8822e5fa 100644 --- a/pyinjective/proto/injective/auction/v1beta1/query_pb2_grpc.py +++ b/pyinjective/proto/injective/auction/v1beta1/query_pb2_grpc.py @@ -35,6 +35,16 @@ def __init__(self, channel): request_serializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryLastAuctionResultRequest.SerializeToString, response_deserializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryLastAuctionResultResponse.FromString, _registered_method=True) + self.Vouchers = channel.unary_unary( + '/injective.auction.v1beta1.Query/Vouchers', + request_serializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVouchersRequest.SerializeToString, + response_deserializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVouchersResponse.FromString, + _registered_method=True) + self.Voucher = channel.unary_unary( + '/injective.auction.v1beta1.Query/Voucher', + request_serializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVoucherRequest.SerializeToString, + response_deserializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVoucherResponse.FromString, + _registered_method=True) class QueryServicer(object): @@ -68,6 +78,20 @@ def LastAuctionResult(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def Vouchers(self, request, context): + """Vouchers retrieves all outstanding vouchers; pass an empty denom to get all + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Voucher(self, request, context): + """Voucher retrieves a single voucher for a given denom and address + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_QueryServicer_to_server(servicer, server): rpc_method_handlers = { @@ -91,6 +115,16 @@ def add_QueryServicer_to_server(servicer, server): request_deserializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryLastAuctionResultRequest.FromString, response_serializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryLastAuctionResultResponse.SerializeToString, ), + 'Vouchers': grpc.unary_unary_rpc_method_handler( + servicer.Vouchers, + request_deserializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVouchersRequest.FromString, + response_serializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVouchersResponse.SerializeToString, + ), + 'Voucher': grpc.unary_unary_rpc_method_handler( + servicer.Voucher, + request_deserializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVoucherRequest.FromString, + response_serializer=injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVoucherResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'injective.auction.v1beta1.Query', rpc_method_handlers) @@ -210,3 +244,57 @@ def LastAuctionResult(request, timeout, metadata, _registered_method=True) + + @staticmethod + def Vouchers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective.auction.v1beta1.Query/Vouchers', + injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVouchersRequest.SerializeToString, + injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVouchersResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Voucher(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective.auction.v1beta1.Query/Voucher', + injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVoucherRequest.SerializeToString, + injective_dot_auction_dot_v1beta1_dot_query__pb2.QueryVoucherResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/pyinjective/proto/injective/auction/v1beta1/tx_pb2.py b/pyinjective/proto/injective/auction/v1beta1/tx_pb2.py index 8abfac3d..87003b78 100644 --- a/pyinjective/proto/injective/auction/v1beta1/tx_pb2.py +++ b/pyinjective/proto/injective/auction/v1beta1/tx_pb2.py @@ -20,7 +20,7 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"injective/auction/v1beta1/tx.proto\x12\x19injective.auction.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\'injective/auction/v1beta1/auction.proto\x1a\x11\x61mino/amino.proto\"\x9e\x01\n\x06MsgBid\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12>\n\nbid_amount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\tbidAmount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round:&\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x0e\x61uction/MsgBid\"\x10\n\x0eMsgBidResponse\"\xb6\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12?\n\x06params\x18\x02 \x01(\x0b\x32!.injective.auction.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:*\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x17\x61uction/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2\xd1\x01\n\x03Msg\x12S\n\x03\x42id\x12!.injective.auction.v1beta1.MsgBid\x1a).injective.auction.v1beta1.MsgBidResponse\x12n\n\x0cUpdateParams\x12*.injective.auction.v1beta1.MsgUpdateParams\x1a\x32.injective.auction.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xfd\x01\n\x1d\x63om.injective.auction.v1beta1B\x07TxProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"injective/auction/v1beta1/tx.proto\x12\x19injective.auction.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\'injective/auction/v1beta1/auction.proto\x1a\x11\x61mino/amino.proto\"\x9e\x01\n\x06MsgBid\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12>\n\nbid_amount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\tbidAmount\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round:&\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x0e\x61uction/MsgBid\"\x10\n\x0eMsgBidResponse\"\xb6\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12?\n\x06params\x18\x02 \x01(\x0b\x32!.injective.auction.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:*\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x17\x61uction/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"p\n\x0fMsgClaimVoucher\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom:/\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x17\x61uction/MsgClaimVoucher\"\x19\n\x17MsgClaimVoucherResponse2\xc1\x02\n\x03Msg\x12S\n\x03\x42id\x12!.injective.auction.v1beta1.MsgBid\x1a).injective.auction.v1beta1.MsgBidResponse\x12n\n\x0cUpdateParams\x12*.injective.auction.v1beta1.MsgUpdateParams\x1a\x32.injective.auction.v1beta1.MsgUpdateParamsResponse\x12n\n\x0c\x43laimVoucher\x12*.injective.auction.v1beta1.MsgClaimVoucher\x1a\x32.injective.auction.v1beta1.MsgClaimVoucherResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xfd\x01\n\x1d\x63om.injective.auction.v1beta1B\x07TxProtoP\x01ZMgithub.com/InjectiveLabs/injective-core/injective-chain/modules/auction/types\xa2\x02\x03IAX\xaa\x02\x19Injective.Auction.V1beta1\xca\x02\x19Injective\\Auction\\V1beta1\xe2\x02%Injective\\Auction\\V1beta1\\GPBMetadata\xea\x02\x1bInjective::Auction::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -38,6 +38,8 @@ _globals['_MSGUPDATEPARAMS'].fields_by_name['params']._serialized_options = b'\310\336\037\000' _globals['_MSGUPDATEPARAMS']._loaded_options = None _globals['_MSGUPDATEPARAMS']._serialized_options = b'\202\347\260*\tauthority\212\347\260*\027auction/MsgUpdateParams' + _globals['_MSGCLAIMVOUCHER']._loaded_options = None + _globals['_MSGCLAIMVOUCHER']._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\006sender\212\347\260*\027auction/MsgClaimVoucher' _globals['_MSG']._loaded_options = None _globals['_MSG']._serialized_options = b'\200\347\260*\001' _globals['_MSGBID']._serialized_start=232 @@ -48,6 +50,10 @@ _globals['_MSGUPDATEPARAMS']._serialized_end=593 _globals['_MSGUPDATEPARAMSRESPONSE']._serialized_start=595 _globals['_MSGUPDATEPARAMSRESPONSE']._serialized_end=620 - _globals['_MSG']._serialized_start=623 - _globals['_MSG']._serialized_end=832 + _globals['_MSGCLAIMVOUCHER']._serialized_start=622 + _globals['_MSGCLAIMVOUCHER']._serialized_end=734 + _globals['_MSGCLAIMVOUCHERRESPONSE']._serialized_start=736 + _globals['_MSGCLAIMVOUCHERRESPONSE']._serialized_end=761 + _globals['_MSG']._serialized_start=764 + _globals['_MSG']._serialized_end=1085 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/auction/v1beta1/tx_pb2_grpc.py b/pyinjective/proto/injective/auction/v1beta1/tx_pb2_grpc.py index f699a2f6..16a309c5 100644 --- a/pyinjective/proto/injective/auction/v1beta1/tx_pb2_grpc.py +++ b/pyinjective/proto/injective/auction/v1beta1/tx_pb2_grpc.py @@ -25,6 +25,11 @@ def __init__(self, channel): request_serializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, response_deserializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, _registered_method=True) + self.ClaimVoucher = channel.unary_unary( + '/injective.auction.v1beta1.Msg/ClaimVoucher', + request_serializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgClaimVoucher.SerializeToString, + response_deserializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgClaimVoucherResponse.FromString, + _registered_method=True) class MsgServicer(object): @@ -44,6 +49,13 @@ def UpdateParams(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ClaimVoucher(self, request, context): + """ClaimVoucher defines a method for claiming an outstanding voucher + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_MsgServicer_to_server(servicer, server): rpc_method_handlers = { @@ -57,6 +69,11 @@ def add_MsgServicer_to_server(servicer, server): request_deserializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, response_serializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, ), + 'ClaimVoucher': grpc.unary_unary_rpc_method_handler( + servicer.ClaimVoucher, + request_deserializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgClaimVoucher.FromString, + response_serializer=injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgClaimVoucherResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'injective.auction.v1beta1.Msg', rpc_method_handlers) @@ -122,3 +139,30 @@ def UpdateParams(request, timeout, metadata, _registered_method=True) + + @staticmethod + def ClaimVoucher(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective.auction.v1beta1.Msg/ClaimVoucher', + injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgClaimVoucher.SerializeToString, + injective_dot_auction_dot_v1beta1_dot_tx__pb2.MsgClaimVoucherResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/pyinjective/proto/injective/common/vouchers/v1/vouchers_pb2.py b/pyinjective/proto/injective/common/vouchers/v1/vouchers_pb2.py new file mode 100644 index 00000000..0664a215 --- /dev/null +++ b/pyinjective/proto/injective/common/vouchers/v1/vouchers_pb2.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: injective/common/vouchers/v1/vouchers.proto +# Protobuf Python Version: 5.26.1 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+injective/common/vouchers/v1/vouchers.proto\x12\x1cinjective.common.vouchers.v1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x90\x01\n\x0e\x41\x64\x64ressVoucher\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x64\n\x07voucher\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x07voucherB\x9b\x02\n com.injective.common.vouchers.v1B\rVouchersProtoP\x01ZUgithub.com/InjectiveLabs/injective-core/injective-chain/modules/common/vouchers/types\xa2\x02\x03ICV\xaa\x02\x1cInjective.Common.Vouchers.V1\xca\x02\x1cInjective\\Common\\Vouchers\\V1\xe2\x02(Injective\\Common\\Vouchers\\V1\\GPBMetadata\xea\x02\x1fInjective::Common::Vouchers::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.common.vouchers.v1.vouchers_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n com.injective.common.vouchers.v1B\rVouchersProtoP\001ZUgithub.com/InjectiveLabs/injective-core/injective-chain/modules/common/vouchers/types\242\002\003ICV\252\002\034Injective.Common.Vouchers.V1\312\002\034Injective\\Common\\Vouchers\\V1\342\002(Injective\\Common\\Vouchers\\V1\\GPBMetadata\352\002\037Injective::Common::Vouchers::V1' + _globals['_ADDRESSVOUCHER'].fields_by_name['voucher']._loaded_options = None + _globals['_ADDRESSVOUCHER'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin' + _globals['_ADDRESSVOUCHER']._serialized_start=132 + _globals['_ADDRESSVOUCHER']._serialized_end=276 +# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/cosmos/orm/module/v1alpha1/module_pb2_grpc.py b/pyinjective/proto/injective/common/vouchers/v1/vouchers_pb2_grpc.py similarity index 100% rename from pyinjective/proto/cosmos/orm/module/v1alpha1/module_pb2_grpc.py rename to pyinjective/proto/injective/common/vouchers/v1/vouchers_pb2_grpc.py diff --git a/pyinjective/proto/injective/exchange/v1beta1/exchange_pb2.py b/pyinjective/proto/injective/exchange/v1beta1/exchange_pb2.py index e9dc6445..78d928bf 100644 --- a/pyinjective/proto/injective/exchange/v1beta1/exchange_pb2.py +++ b/pyinjective/proto/injective/exchange/v1beta1/exchange_pb2.py @@ -18,7 +18,7 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)injective/exchange/v1beta1/exchange.proto\x12\x1ainjective.exchange.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a\x11\x61mino/amino.proto\"\xdb\x02\n\x0fOpenNotionalCap\x12\x8a\x01\n\x08uncapped\x18\x01 \x01(\x0b\x32\x33.injective.exchange.v1beta1.OpenNotionalCapUncappedB7\xb2\xe7\xb0*2injective.exchange.v1beta1.OpenNotionalCapUncappedH\x00R\x08uncapped\x12\x82\x01\n\x06\x63\x61pped\x18\x02 \x01(\x0b\x32\x31.injective.exchange.v1beta1.OpenNotionalCapCappedB5\xb2\xe7\xb0*0injective.exchange.v1beta1.OpenNotionalCapCappedH\x00R\x06\x63\x61pped:/\x8a\xe7\xb0**injective.exchange.v1beta1.OpenNotionalCapB\x05\n\x03\x63\x61p\"R\n\x17OpenNotionalCapUncapped:7\x8a\xe7\xb0*2injective.exchange.v1beta1.OpenNotionalCapUncapped\"\x89\x01\n\x15OpenNotionalCapCapped\x12\x39\n\x05value\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05value:5\x8a\xe7\xb0*0injective.exchange.v1beta1.OpenNotionalCapCapped\"\x89\x16\n\x06Params\x12\x65\n\x1fspot_market_instant_listing_fee\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x1bspotMarketInstantListingFee\x12q\n%derivative_market_instant_listing_fee\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R!derivativeMarketInstantListingFee\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_maker_fee_rate\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotMakerFeeRate\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_taker_fee_rate\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotTakerFeeRate\x12m\n!default_derivative_maker_fee_rate\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeMakerFeeRate\x12m\n!default_derivative_taker_fee_rate\x18\x06 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeTakerFeeRate\x12\x64\n\x1c\x64\x65\x66\x61ult_initial_margin_ratio\x18\x07 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultInitialMarginRatio\x12l\n default_maintenance_margin_ratio\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultMaintenanceMarginRatio\x12\x38\n\x18\x64\x65\x66\x61ult_funding_interval\x18\t \x01(\x03R\x16\x64\x65\x66\x61ultFundingInterval\x12)\n\x10\x66unding_multiple\x18\n \x01(\x03R\x0f\x66undingMultiple\x12X\n\x16relayer_fee_share_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12i\n\x1f\x64\x65\x66\x61ult_hourly_funding_rate_cap\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1b\x64\x65\x66\x61ultHourlyFundingRateCap\x12\x64\n\x1c\x64\x65\x66\x61ult_hourly_interest_rate\x18\r \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultHourlyInterestRate\x12\x44\n\x1fmax_derivative_order_side_count\x18\x0e \x01(\rR\x1bmaxDerivativeOrderSideCount\x12s\n\'inj_reward_staked_requirement_threshold\x18\x0f \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR#injRewardStakedRequirementThreshold\x12G\n trading_rewards_vesting_duration\x18\x10 \x01(\x03R\x1dtradingRewardsVestingDuration\x12\x64\n\x1cliquidator_reward_share_rate\x18\x11 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19liquidatorRewardShareRate\x12x\n)binary_options_market_instant_listing_fee\x18\x12 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R$binaryOptionsMarketInstantListingFee\x12\x80\x01\n atomic_market_order_access_level\x18\x13 \x01(\x0e\x32\x38.injective.exchange.v1beta1.AtomicMarketOrderAccessLevelR\x1c\x61tomicMarketOrderAccessLevel\x12x\n\'spot_atomic_market_order_fee_multiplier\x18\x14 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\"spotAtomicMarketOrderFeeMultiplier\x12\x84\x01\n-derivative_atomic_market_order_fee_multiplier\x18\x15 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR(derivativeAtomicMarketOrderFeeMultiplier\x12\x8b\x01\n1binary_options_atomic_market_order_fee_multiplier\x18\x16 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR+binaryOptionsAtomicMarketOrderFeeMultiplier\x12^\n\x19minimal_protocol_fee_rate\x18\x17 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16minimalProtocolFeeRate\x12[\n+is_instant_derivative_market_launch_enabled\x18\x18 \x01(\x08R&isInstantDerivativeMarketLaunchEnabled\x12\x44\n\x1fpost_only_mode_height_threshold\x18\x19 \x01(\x03R\x1bpostOnlyModeHeightThreshold\x12g\n1margin_decrease_price_timestamp_threshold_seconds\x18\x1a \x01(\x03R,marginDecreasePriceTimestampThresholdSeconds\x12\'\n\x0f\x65xchange_admins\x18\x1b \x03(\tR\x0e\x65xchangeAdmins\x12L\n\x13inj_auction_max_cap\x18\x1c \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x10injAuctionMaxCap\x12*\n\x11\x66ixed_gas_enabled\x18\x1d \x01(\x08R\x0f\x66ixedGasEnabled:\x18\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x0f\x65xchange/Params\"\x84\x01\n\x13MarketFeeMultiplier\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12J\n\x0e\x66\x65\x65_multiplier\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\rfeeMultiplier:\x04\x88\xa0\x1f\x00\"\xc7\n\n\x10\x44\x65rivativeMarket\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1f\n\x0boracle_base\x18\x02 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\x03 \x01(\tR\x0boracleQuote\x12\x45\n\x0boracle_type\x18\x04 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12.\n\x13oracle_scale_factor\x18\x05 \x01(\rR\x11oracleScaleFactor\x12\x1f\n\x0bquote_denom\x18\x06 \x01(\tR\nquoteDenom\x12\x1b\n\tmarket_id\x18\x07 \x01(\tR\x08marketId\x12U\n\x14initial_margin_ratio\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x12initialMarginRatio\x12]\n\x18maintenance_margin_ratio\x18\t \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16maintenanceMarginRatio\x12I\n\x0emaker_fee_rate\x18\n \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cmakerFeeRate\x12I\n\x0etaker_fee_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctakerFeeRate\x12X\n\x16relayer_fee_share_rate\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12 \n\x0bisPerpetual\x18\r \x01(\x08R\x0bisPerpetual\x12@\n\x06status\x18\x0e \x01(\x0e\x32(.injective.exchange.v1beta1.MarketStatusR\x06status\x12R\n\x13min_price_tick_size\x18\x0f \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10minPriceTickSize\x12X\n\x16min_quantity_tick_size\x18\x10 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13minQuantityTickSize\x12\x46\n\x0cmin_notional\x18\x11 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional\x12\x14\n\x05\x61\x64min\x18\x12 \x01(\tR\x05\x61\x64min\x12+\n\x11\x61\x64min_permissions\x18\x13 \x01(\rR\x10\x61\x64minPermissions\x12%\n\x0equote_decimals\x18\x14 \x01(\rR\rquoteDecimals\x12S\n\x13reduce_margin_ratio\x18\x15 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11reduceMarginRatio\x12]\n\x11open_notional_cap\x18\x16 \x01(\x0b\x32+.injective.exchange.v1beta1.OpenNotionalCapB\x04\xc8\xde\x1f\x00R\x0fopenNotionalCap:\x04\x88\xa0\x1f\x00\"\xfe\x08\n\x13\x42inaryOptionsMarket\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12#\n\roracle_symbol\x18\x02 \x01(\tR\x0coracleSymbol\x12\'\n\x0foracle_provider\x18\x03 \x01(\tR\x0eoracleProvider\x12\x45\n\x0boracle_type\x18\x04 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12.\n\x13oracle_scale_factor\x18\x05 \x01(\rR\x11oracleScaleFactor\x12\x31\n\x14\x65xpiration_timestamp\x18\x06 \x01(\x03R\x13\x65xpirationTimestamp\x12\x31\n\x14settlement_timestamp\x18\x07 \x01(\x03R\x13settlementTimestamp\x12\x14\n\x05\x61\x64min\x18\x08 \x01(\tR\x05\x61\x64min\x12\x1f\n\x0bquote_denom\x18\t \x01(\tR\nquoteDenom\x12\x1b\n\tmarket_id\x18\n \x01(\tR\x08marketId\x12I\n\x0emaker_fee_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cmakerFeeRate\x12I\n\x0etaker_fee_rate\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctakerFeeRate\x12X\n\x16relayer_fee_share_rate\x18\r \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12@\n\x06status\x18\x0e \x01(\x0e\x32(.injective.exchange.v1beta1.MarketStatusR\x06status\x12R\n\x13min_price_tick_size\x18\x0f \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10minPriceTickSize\x12X\n\x16min_quantity_tick_size\x18\x10 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13minQuantityTickSize\x12N\n\x10settlement_price\x18\x11 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fsettlementPrice\x12\x46\n\x0cmin_notional\x18\x12 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional\x12+\n\x11\x61\x64min_permissions\x18\x13 \x01(\rR\x10\x61\x64minPermissions\x12%\n\x0equote_decimals\x18\x14 \x01(\rR\rquoteDecimals:\x04\x88\xa0\x1f\x00\"\xe4\x02\n\x17\x45xpiryFuturesMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x31\n\x14\x65xpiration_timestamp\x18\x02 \x01(\x03R\x13\x65xpirationTimestamp\x12\x30\n\x14twap_start_timestamp\x18\x03 \x01(\x03R\x12twapStartTimestamp\x12w\n&expiration_twap_start_price_cumulative\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\"expirationTwapStartPriceCumulative\x12N\n\x10settlement_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fsettlementPrice\"\xc6\x02\n\x13PerpetualMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12Z\n\x17hourly_funding_rate_cap\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x14hourlyFundingRateCap\x12U\n\x14hourly_interest_rate\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x12hourlyInterestRate\x12\x34\n\x16next_funding_timestamp\x18\x04 \x01(\x03R\x14nextFundingTimestamp\x12)\n\x10\x66unding_interval\x18\x05 \x01(\x03R\x0f\x66undingInterval\"\xe3\x01\n\x16PerpetualMarketFunding\x12R\n\x12\x63umulative_funding\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11\x63umulativeFunding\x12N\n\x10\x63umulative_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x63umulativePrice\x12%\n\x0elast_timestamp\x18\x03 \x01(\x03R\rlastTimestamp\"\x8d\x01\n\x1e\x44\x65rivativeMarketSettlementInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12N\n\x10settlement_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fsettlementPrice\"=\n\x14NextFundingTimestamp\x12%\n\x0enext_timestamp\x18\x01 \x01(\x03R\rnextTimestamp\"\xea\x01\n\x0eMidPriceAndTOB\x12@\n\tmid_price\x18\x01 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08midPrice\x12I\n\x0e\x62\x65st_buy_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0c\x62\x65stBuyPrice\x12K\n\x0f\x62\x65st_sell_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\rbestSellPrice\"\xb8\x06\n\nSpotMarket\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1d\n\nbase_denom\x18\x02 \x01(\tR\tbaseDenom\x12\x1f\n\x0bquote_denom\x18\x03 \x01(\tR\nquoteDenom\x12I\n\x0emaker_fee_rate\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cmakerFeeRate\x12I\n\x0etaker_fee_rate\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctakerFeeRate\x12X\n\x16relayer_fee_share_rate\x18\x06 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12\x1b\n\tmarket_id\x18\x07 \x01(\tR\x08marketId\x12@\n\x06status\x18\x08 \x01(\x0e\x32(.injective.exchange.v1beta1.MarketStatusR\x06status\x12R\n\x13min_price_tick_size\x18\t \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10minPriceTickSize\x12X\n\x16min_quantity_tick_size\x18\n \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13minQuantityTickSize\x12\x46\n\x0cmin_notional\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional\x12\x14\n\x05\x61\x64min\x18\x0c \x01(\tR\x05\x61\x64min\x12+\n\x11\x61\x64min_permissions\x18\r \x01(\rR\x10\x61\x64minPermissions\x12#\n\rbase_decimals\x18\x0e \x01(\rR\x0c\x62\x61seDecimals\x12%\n\x0equote_decimals\x18\x0f \x01(\rR\rquoteDecimals\"\xa5\x01\n\x07\x44\x65posit\x12P\n\x11\x61vailable_balance\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10\x61vailableBalance\x12H\n\rtotal_balance\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctotalBalance\",\n\x14SubaccountTradeNonce\x12\x14\n\x05nonce\x18\x01 \x01(\rR\x05nonce\"\xe3\x01\n\tOrderInfo\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12#\n\rfee_recipient\x18\x02 \x01(\tR\x0c\x66\x65\x65Recipient\x12\x39\n\x05price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x10\n\x03\x63id\x18\x05 \x01(\tR\x03\x63id\"\x84\x02\n\tSpotOrder\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12J\n\norder_info\x18\x02 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x03 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12H\n\rtrigger_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\"\xcc\x02\n\x0eSpotLimitOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x02 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12?\n\x08\x66illable\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08\x66illable\x12H\n\rtrigger_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\"\xd4\x02\n\x0fSpotMarketOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x46\n\x0c\x62\x61lance_hold\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0b\x62\x61lanceHold\x12\x1d\n\norder_hash\x18\x03 \x01(\x0cR\torderHash\x12\x44\n\norder_type\x18\x04 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\"\xc7\x02\n\x0f\x44\x65rivativeOrder\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12J\n\norder_info\x18\x02 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x03 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12;\n\x06margin\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\"\xfc\x03\n\x1bSubaccountOrderbookMetadata\x12\x39\n\x19vanilla_limit_order_count\x18\x01 \x01(\rR\x16vanillaLimitOrderCount\x12@\n\x1dreduce_only_limit_order_count\x18\x02 \x01(\rR\x19reduceOnlyLimitOrderCount\x12h\n\x1e\x61ggregate_reduce_only_quantity\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1b\x61ggregateReduceOnlyQuantity\x12\x61\n\x1a\x61ggregate_vanilla_quantity\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x18\x61ggregateVanillaQuantity\x12\x45\n\x1fvanilla_conditional_order_count\x18\x05 \x01(\rR\x1cvanillaConditionalOrderCount\x12L\n#reduce_only_conditional_order_count\x18\x06 \x01(\rR\x1freduceOnlyConditionalOrderCount\"\xc3\x01\n\x0fSubaccountOrder\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\"\n\x0cisReduceOnly\x18\x03 \x01(\x08R\x0cisReduceOnly\x12\x10\n\x03\x63id\x18\x04 \x01(\tR\x03\x63id\"w\n\x13SubaccountOrderData\x12\x41\n\x05order\x18\x01 \x01(\x0b\x32+.injective.exchange.v1beta1.SubaccountOrderR\x05order\x12\x1d\n\norder_hash\x18\x02 \x01(\x0cR\torderHash\"\x8f\x03\n\x14\x44\x65rivativeLimitOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x02 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12;\n\x06margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12?\n\x08\x66illable\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08\x66illable\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\x12\x1d\n\norder_hash\x18\x06 \x01(\x0cR\torderHash\"\x95\x03\n\x15\x44\x65rivativeMarketOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x02 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12;\n\x06margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12\x44\n\x0bmargin_hold\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\nmarginHold\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\x12\x1d\n\norder_hash\x18\x06 \x01(\x0cR\torderHash\"\xc5\x02\n\x08Position\x12\x16\n\x06isLong\x18\x01 \x01(\x08R\x06isLong\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x44\n\x0b\x65ntry_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\nentryPrice\x12;\n\x06margin\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12]\n\x18\x63umulative_funding_entry\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16\x63umulativeFundingEntry\"I\n\x14MarketOrderIndicator\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x14\n\x05isBuy\x18\x02 \x01(\x08R\x05isBuy\"\xcd\x02\n\x08TradeLog\x12?\n\x08quantity\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12#\n\rsubaccount_id\x18\x03 \x01(\x0cR\x0csubaccountId\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\"\x9a\x02\n\rPositionDelta\x12\x17\n\x07is_long\x18\x01 \x01(\x08R\x06isLong\x12R\n\x12\x65xecution_quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11\x65xecutionQuantity\x12N\n\x10\x65xecution_margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x65xecutionMargin\x12L\n\x0f\x65xecution_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0e\x65xecutionPrice\"\xa1\x03\n\x12\x44\x65rivativeTradeLog\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12P\n\x0eposition_delta\x18\x02 \x01(\x0b\x32).injective.exchange.v1beta1.PositionDeltaR\rpositionDelta\x12;\n\x06payout\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06payout\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\x12\x35\n\x03pnl\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03pnl\"{\n\x12SubaccountPosition\x12@\n\x08position\x18\x01 \x01(\x0b\x32$.injective.exchange.v1beta1.PositionR\x08position\x12#\n\rsubaccount_id\x18\x02 \x01(\x0cR\x0csubaccountId\"w\n\x11SubaccountDeposit\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12=\n\x07\x64\x65posit\x18\x02 \x01(\x0b\x32#.injective.exchange.v1beta1.DepositR\x07\x64\x65posit\"p\n\rDepositUpdate\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12I\n\x08\x64\x65posits\x18\x02 \x03(\x0b\x32-.injective.exchange.v1beta1.SubaccountDepositR\x08\x64\x65posits\"\xcc\x01\n\x10PointsMultiplier\x12[\n\x17maker_points_multiplier\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15makerPointsMultiplier\x12[\n\x17taker_points_multiplier\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15takerPointsMultiplier\"\xfe\x02\n\x1eTradingRewardCampaignBoostInfo\x12\x35\n\x17\x62oosted_spot_market_ids\x18\x01 \x03(\tR\x14\x62oostedSpotMarketIds\x12j\n\x17spot_market_multipliers\x18\x02 \x03(\x0b\x32,.injective.exchange.v1beta1.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x15spotMarketMultipliers\x12\x41\n\x1d\x62oosted_derivative_market_ids\x18\x03 \x03(\tR\x1a\x62oostedDerivativeMarketIds\x12v\n\x1d\x64\x65rivative_market_multipliers\x18\x04 \x03(\x0b\x32,.injective.exchange.v1beta1.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x1b\x64\x65rivativeMarketMultipliers\"\xbc\x01\n\x12\x43\x61mpaignRewardPool\x12\'\n\x0fstart_timestamp\x18\x01 \x01(\x03R\x0estartTimestamp\x12}\n\x14max_campaign_rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x12maxCampaignRewards\"\xa9\x02\n\x19TradingRewardCampaignInfo\x12:\n\x19\x63\x61mpaign_duration_seconds\x18\x01 \x01(\x03R\x17\x63\x61mpaignDurationSeconds\x12!\n\x0cquote_denoms\x18\x02 \x03(\tR\x0bquoteDenoms\x12u\n\x19trading_reward_boost_info\x18\x03 \x01(\x0b\x32:.injective.exchange.v1beta1.TradingRewardCampaignBoostInfoR\x16tradingRewardBoostInfo\x12\x36\n\x17\x64isqualified_market_ids\x18\x04 \x03(\tR\x15\x64isqualifiedMarketIds\"\xc0\x02\n\x13\x46\x65\x65\x44iscountTierInfo\x12S\n\x13maker_discount_rate\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11makerDiscountRate\x12S\n\x13taker_discount_rate\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11takerDiscountRate\x12\x42\n\rstaked_amount\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0cstakedAmount\x12;\n\x06volume\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06volume\"\x8c\x02\n\x13\x46\x65\x65\x44iscountSchedule\x12!\n\x0c\x62ucket_count\x18\x01 \x01(\x04R\x0b\x62ucketCount\x12\'\n\x0f\x62ucket_duration\x18\x02 \x01(\x03R\x0e\x62ucketDuration\x12!\n\x0cquote_denoms\x18\x03 \x03(\tR\x0bquoteDenoms\x12N\n\ntier_infos\x18\x04 \x03(\x0b\x32/.injective.exchange.v1beta1.FeeDiscountTierInfoR\ttierInfos\x12\x36\n\x17\x64isqualified_market_ids\x18\x05 \x03(\tR\x15\x64isqualifiedMarketIds\"M\n\x12\x46\x65\x65\x44iscountTierTTL\x12\x12\n\x04tier\x18\x01 \x01(\x04R\x04tier\x12#\n\rttl_timestamp\x18\x02 \x01(\x03R\x0cttlTimestamp\"\x9e\x01\n\x0cVolumeRecord\x12\x46\n\x0cmaker_volume\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bmakerVolume\x12\x46\n\x0ctaker_volume\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0btakerVolume\"\x91\x01\n\x0e\x41\x63\x63ountRewards\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x65\n\x07rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x07rewards\"\x86\x01\n\x0cTradeRecords\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12Y\n\x14latest_trade_records\x18\x02 \x03(\x0b\x32\'.injective.exchange.v1beta1.TradeRecordR\x12latestTradeRecords\"6\n\rSubaccountIDs\x12%\n\x0esubaccount_ids\x18\x01 \x03(\x0cR\rsubaccountIds\"\xa7\x01\n\x0bTradeRecord\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\"m\n\x05Level\x12\x31\n\x01p\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01p\x12\x31\n\x01q\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01q\"\x97\x01\n\x1f\x41ggregateSubaccountVolumeRecord\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12O\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32(.injective.exchange.v1beta1.MarketVolumeR\rmarketVolumes\"\x89\x01\n\x1c\x41ggregateAccountVolumeRecord\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12O\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32(.injective.exchange.v1beta1.MarketVolumeR\rmarketVolumes\"s\n\x0cMarketVolume\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x46\n\x06volume\x18\x02 \x01(\x0b\x32(.injective.exchange.v1beta1.VolumeRecordB\x04\xc8\xde\x1f\x00R\x06volume\"A\n\rDenomDecimals\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x1a\n\x08\x64\x65\x63imals\x18\x02 \x01(\x04R\x08\x64\x65\x63imals\"e\n\x12GrantAuthorization\x12\x18\n\x07grantee\x18\x01 \x01(\tR\x07grantee\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"^\n\x0b\x41\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"\x90\x01\n\x0e\x45\x66\x66\x65\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12I\n\x11net_granted_stake\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0fnetGrantedStake\x12\x19\n\x08is_valid\x18\x03 \x01(\x08R\x07isValid\"p\n\x10\x44\x65nomMinNotional\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x46\n\x0cmin_notional\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional*t\n\x1c\x41tomicMarketOrderAccessLevel\x12\n\n\x06Nobody\x10\x00\x12\"\n\x1e\x42\x65ginBlockerSmartContractsOnly\x10\x01\x12\x16\n\x12SmartContractsOnly\x10\x02\x12\x0c\n\x08\x45veryone\x10\x03*T\n\x0cMarketStatus\x12\x0f\n\x0bUnspecified\x10\x00\x12\n\n\x06\x41\x63tive\x10\x01\x12\n\n\x06Paused\x10\x02\x12\x0e\n\nDemolished\x10\x03\x12\x0b\n\x07\x45xpired\x10\x04*\xbb\x02\n\tOrderType\x12 \n\x0bUNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bUNSPECIFIED\x12\x10\n\x03\x42UY\x10\x01\x1a\x07\x8a\x9d \x03\x42UY\x12\x12\n\x04SELL\x10\x02\x1a\x08\x8a\x9d \x04SELL\x12\x1a\n\x08STOP_BUY\x10\x03\x1a\x0c\x8a\x9d \x08STOP_BUY\x12\x1c\n\tSTOP_SELL\x10\x04\x1a\r\x8a\x9d \tSTOP_SELL\x12\x1a\n\x08TAKE_BUY\x10\x05\x1a\x0c\x8a\x9d \x08TAKE_BUY\x12\x1c\n\tTAKE_SELL\x10\x06\x1a\r\x8a\x9d \tTAKE_SELL\x12\x16\n\x06\x42UY_PO\x10\x07\x1a\n\x8a\x9d \x06\x42UY_PO\x12\x18\n\x07SELL_PO\x10\x08\x1a\x0b\x8a\x9d \x07SELL_PO\x12\x1e\n\nBUY_ATOMIC\x10\t\x1a\x0e\x8a\x9d \nBUY_ATOMIC\x12 \n\x0bSELL_ATOMIC\x10\n\x1a\x0f\x8a\x9d \x0bSELL_ATOMIC*\xd6\x01\n\rExecutionType\x12\x1c\n\x18UnspecifiedExecutionType\x10\x00\x12\n\n\x06Market\x10\x01\x12\r\n\tLimitFill\x10\x02\x12\x1a\n\x16LimitMatchRestingOrder\x10\x03\x12\x16\n\x12LimitMatchNewOrder\x10\x04\x12\x15\n\x11MarketLiquidation\x10\x05\x12\x1a\n\x16\x45xpiryMarketSettlement\x10\x06\x12\x16\n\x12OffsettingPosition\x10\x07\x12\r\n\tSynthetic\x10\x08*\x89\x02\n\tOrderMask\x12\x16\n\x06UNUSED\x10\x00\x1a\n\x8a\x9d \x06UNUSED\x12\x10\n\x03\x41NY\x10\x01\x1a\x07\x8a\x9d \x03\x41NY\x12\x18\n\x07REGULAR\x10\x02\x1a\x0b\x8a\x9d \x07REGULAR\x12 \n\x0b\x43ONDITIONAL\x10\x04\x1a\x0f\x8a\x9d \x0b\x43ONDITIONAL\x12.\n\x17\x44IRECTION_BUY_OR_HIGHER\x10\x08\x1a\x11\x8a\x9d \rBUY_OR_HIGHER\x12.\n\x17\x44IRECTION_SELL_OR_LOWER\x10\x10\x1a\x11\x8a\x9d \rSELL_OR_LOWER\x12\x1b\n\x0bTYPE_MARKET\x10 \x1a\n\x8a\x9d \x06MARKET\x12\x19\n\nTYPE_LIMIT\x10@\x1a\t\x8a\x9d \x05LIMITB\x89\x02\n\x1e\x63om.injective.exchange.v1beta1B\rExchangeProtoP\x01ZNgithub.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types\xa2\x02\x03IEX\xaa\x02\x1aInjective.Exchange.V1beta1\xca\x02\x1aInjective\\Exchange\\V1beta1\xe2\x02&Injective\\Exchange\\V1beta1\\GPBMetadata\xea\x02\x1cInjective::Exchange::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)injective/exchange/v1beta1/exchange.proto\x12\x1ainjective.exchange.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a\x11\x61mino/amino.proto\"\xdb\x02\n\x0fOpenNotionalCap\x12\x8a\x01\n\x08uncapped\x18\x01 \x01(\x0b\x32\x33.injective.exchange.v1beta1.OpenNotionalCapUncappedB7\xb2\xe7\xb0*2injective.exchange.v1beta1.OpenNotionalCapUncappedH\x00R\x08uncapped\x12\x82\x01\n\x06\x63\x61pped\x18\x02 \x01(\x0b\x32\x31.injective.exchange.v1beta1.OpenNotionalCapCappedB5\xb2\xe7\xb0*0injective.exchange.v1beta1.OpenNotionalCapCappedH\x00R\x06\x63\x61pped:/\x8a\xe7\xb0**injective.exchange.v1beta1.OpenNotionalCapB\x05\n\x03\x63\x61p\"R\n\x17OpenNotionalCapUncapped:7\x8a\xe7\xb0*2injective.exchange.v1beta1.OpenNotionalCapUncapped\"\x89\x01\n\x15OpenNotionalCapCapped\x12\x39\n\x05value\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05value:5\x8a\xe7\xb0*0injective.exchange.v1beta1.OpenNotionalCapCapped\"\x8b\x16\n\x06Params\x12\x65\n\x1fspot_market_instant_listing_fee\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x1bspotMarketInstantListingFee\x12q\n%derivative_market_instant_listing_fee\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R!derivativeMarketInstantListingFee\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_maker_fee_rate\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotMakerFeeRate\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_taker_fee_rate\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotTakerFeeRate\x12m\n!default_derivative_maker_fee_rate\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeMakerFeeRate\x12m\n!default_derivative_taker_fee_rate\x18\x06 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeTakerFeeRate\x12\x64\n\x1c\x64\x65\x66\x61ult_initial_margin_ratio\x18\x07 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultInitialMarginRatio\x12l\n default_maintenance_margin_ratio\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultMaintenanceMarginRatio\x12\x38\n\x18\x64\x65\x66\x61ult_funding_interval\x18\t \x01(\x03R\x16\x64\x65\x66\x61ultFundingInterval\x12)\n\x10\x66unding_multiple\x18\n \x01(\x03R\x0f\x66undingMultiple\x12X\n\x16relayer_fee_share_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12i\n\x1f\x64\x65\x66\x61ult_hourly_funding_rate_cap\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1b\x64\x65\x66\x61ultHourlyFundingRateCap\x12\x64\n\x1c\x64\x65\x66\x61ult_hourly_interest_rate\x18\r \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultHourlyInterestRate\x12\x44\n\x1fmax_derivative_order_side_count\x18\x0e \x01(\rR\x1bmaxDerivativeOrderSideCount\x12s\n\'inj_reward_staked_requirement_threshold\x18\x0f \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR#injRewardStakedRequirementThreshold\x12G\n trading_rewards_vesting_duration\x18\x10 \x01(\x03R\x1dtradingRewardsVestingDuration\x12\x64\n\x1cliquidator_reward_share_rate\x18\x11 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19liquidatorRewardShareRate\x12x\n)binary_options_market_instant_listing_fee\x18\x12 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R$binaryOptionsMarketInstantListingFee\x12\x80\x01\n atomic_market_order_access_level\x18\x13 \x01(\x0e\x32\x38.injective.exchange.v1beta1.AtomicMarketOrderAccessLevelR\x1c\x61tomicMarketOrderAccessLevel\x12x\n\'spot_atomic_market_order_fee_multiplier\x18\x14 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\"spotAtomicMarketOrderFeeMultiplier\x12\x84\x01\n-derivative_atomic_market_order_fee_multiplier\x18\x15 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR(derivativeAtomicMarketOrderFeeMultiplier\x12\x8b\x01\n1binary_options_atomic_market_order_fee_multiplier\x18\x16 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR+binaryOptionsAtomicMarketOrderFeeMultiplier\x12^\n\x19minimal_protocol_fee_rate\x18\x17 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16minimalProtocolFeeRate\x12[\n+is_instant_derivative_market_launch_enabled\x18\x18 \x01(\x08R&isInstantDerivativeMarketLaunchEnabled\x12\x44\n\x1fpost_only_mode_height_threshold\x18\x19 \x01(\x03R\x1bpostOnlyModeHeightThreshold\x12g\n1margin_decrease_price_timestamp_threshold_seconds\x18\x1a \x01(\x03R,marginDecreasePriceTimestampThresholdSeconds\x12\'\n\x0f\x65xchange_admins\x18\x1b \x03(\tR\x0e\x65xchangeAdmins\x12N\n\x13inj_auction_max_cap\x18\x1c \x01(\tB\x1f\x18\x01\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x10injAuctionMaxCap\x12*\n\x11\x66ixed_gas_enabled\x18\x1d \x01(\x08R\x0f\x66ixedGasEnabled:\x18\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x0f\x65xchange/Params\"\x84\x01\n\x13MarketFeeMultiplier\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12J\n\x0e\x66\x65\x65_multiplier\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\rfeeMultiplier:\x04\x88\xa0\x1f\x00\"\xc7\n\n\x10\x44\x65rivativeMarket\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1f\n\x0boracle_base\x18\x02 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\x03 \x01(\tR\x0boracleQuote\x12\x45\n\x0boracle_type\x18\x04 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12.\n\x13oracle_scale_factor\x18\x05 \x01(\rR\x11oracleScaleFactor\x12\x1f\n\x0bquote_denom\x18\x06 \x01(\tR\nquoteDenom\x12\x1b\n\tmarket_id\x18\x07 \x01(\tR\x08marketId\x12U\n\x14initial_margin_ratio\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x12initialMarginRatio\x12]\n\x18maintenance_margin_ratio\x18\t \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16maintenanceMarginRatio\x12I\n\x0emaker_fee_rate\x18\n \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cmakerFeeRate\x12I\n\x0etaker_fee_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctakerFeeRate\x12X\n\x16relayer_fee_share_rate\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12 \n\x0bisPerpetual\x18\r \x01(\x08R\x0bisPerpetual\x12@\n\x06status\x18\x0e \x01(\x0e\x32(.injective.exchange.v1beta1.MarketStatusR\x06status\x12R\n\x13min_price_tick_size\x18\x0f \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10minPriceTickSize\x12X\n\x16min_quantity_tick_size\x18\x10 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13minQuantityTickSize\x12\x46\n\x0cmin_notional\x18\x11 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional\x12\x14\n\x05\x61\x64min\x18\x12 \x01(\tR\x05\x61\x64min\x12+\n\x11\x61\x64min_permissions\x18\x13 \x01(\rR\x10\x61\x64minPermissions\x12%\n\x0equote_decimals\x18\x14 \x01(\rR\rquoteDecimals\x12S\n\x13reduce_margin_ratio\x18\x15 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11reduceMarginRatio\x12]\n\x11open_notional_cap\x18\x16 \x01(\x0b\x32+.injective.exchange.v1beta1.OpenNotionalCapB\x04\xc8\xde\x1f\x00R\x0fopenNotionalCap:\x04\x88\xa0\x1f\x00\"\xfe\x08\n\x13\x42inaryOptionsMarket\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12#\n\roracle_symbol\x18\x02 \x01(\tR\x0coracleSymbol\x12\'\n\x0foracle_provider\x18\x03 \x01(\tR\x0eoracleProvider\x12\x45\n\x0boracle_type\x18\x04 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12.\n\x13oracle_scale_factor\x18\x05 \x01(\rR\x11oracleScaleFactor\x12\x31\n\x14\x65xpiration_timestamp\x18\x06 \x01(\x03R\x13\x65xpirationTimestamp\x12\x31\n\x14settlement_timestamp\x18\x07 \x01(\x03R\x13settlementTimestamp\x12\x14\n\x05\x61\x64min\x18\x08 \x01(\tR\x05\x61\x64min\x12\x1f\n\x0bquote_denom\x18\t \x01(\tR\nquoteDenom\x12\x1b\n\tmarket_id\x18\n \x01(\tR\x08marketId\x12I\n\x0emaker_fee_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cmakerFeeRate\x12I\n\x0etaker_fee_rate\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctakerFeeRate\x12X\n\x16relayer_fee_share_rate\x18\r \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12@\n\x06status\x18\x0e \x01(\x0e\x32(.injective.exchange.v1beta1.MarketStatusR\x06status\x12R\n\x13min_price_tick_size\x18\x0f \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10minPriceTickSize\x12X\n\x16min_quantity_tick_size\x18\x10 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13minQuantityTickSize\x12N\n\x10settlement_price\x18\x11 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fsettlementPrice\x12\x46\n\x0cmin_notional\x18\x12 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional\x12+\n\x11\x61\x64min_permissions\x18\x13 \x01(\rR\x10\x61\x64minPermissions\x12%\n\x0equote_decimals\x18\x14 \x01(\rR\rquoteDecimals:\x04\x88\xa0\x1f\x00\"\xe4\x02\n\x17\x45xpiryFuturesMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x31\n\x14\x65xpiration_timestamp\x18\x02 \x01(\x03R\x13\x65xpirationTimestamp\x12\x30\n\x14twap_start_timestamp\x18\x03 \x01(\x03R\x12twapStartTimestamp\x12w\n&expiration_twap_start_price_cumulative\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\"expirationTwapStartPriceCumulative\x12N\n\x10settlement_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fsettlementPrice\"\xc6\x02\n\x13PerpetualMarketInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12Z\n\x17hourly_funding_rate_cap\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x14hourlyFundingRateCap\x12U\n\x14hourly_interest_rate\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x12hourlyInterestRate\x12\x34\n\x16next_funding_timestamp\x18\x04 \x01(\x03R\x14nextFundingTimestamp\x12)\n\x10\x66unding_interval\x18\x05 \x01(\x03R\x0f\x66undingInterval\"\xe3\x01\n\x16PerpetualMarketFunding\x12R\n\x12\x63umulative_funding\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11\x63umulativeFunding\x12N\n\x10\x63umulative_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x63umulativePrice\x12%\n\x0elast_timestamp\x18\x03 \x01(\x03R\rlastTimestamp\"\x8d\x01\n\x1e\x44\x65rivativeMarketSettlementInfo\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12N\n\x10settlement_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fsettlementPrice\"=\n\x14NextFundingTimestamp\x12%\n\x0enext_timestamp\x18\x01 \x01(\x03R\rnextTimestamp\"\xea\x01\n\x0eMidPriceAndTOB\x12@\n\tmid_price\x18\x01 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08midPrice\x12I\n\x0e\x62\x65st_buy_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0c\x62\x65stBuyPrice\x12K\n\x0f\x62\x65st_sell_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\rbestSellPrice\"\xb8\x06\n\nSpotMarket\x12\x16\n\x06ticker\x18\x01 \x01(\tR\x06ticker\x12\x1d\n\nbase_denom\x18\x02 \x01(\tR\tbaseDenom\x12\x1f\n\x0bquote_denom\x18\x03 \x01(\tR\nquoteDenom\x12I\n\x0emaker_fee_rate\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cmakerFeeRate\x12I\n\x0etaker_fee_rate\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctakerFeeRate\x12X\n\x16relayer_fee_share_rate\x18\x06 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12\x1b\n\tmarket_id\x18\x07 \x01(\tR\x08marketId\x12@\n\x06status\x18\x08 \x01(\x0e\x32(.injective.exchange.v1beta1.MarketStatusR\x06status\x12R\n\x13min_price_tick_size\x18\t \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10minPriceTickSize\x12X\n\x16min_quantity_tick_size\x18\n \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13minQuantityTickSize\x12\x46\n\x0cmin_notional\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional\x12\x14\n\x05\x61\x64min\x18\x0c \x01(\tR\x05\x61\x64min\x12+\n\x11\x61\x64min_permissions\x18\r \x01(\rR\x10\x61\x64minPermissions\x12#\n\rbase_decimals\x18\x0e \x01(\rR\x0c\x62\x61seDecimals\x12%\n\x0equote_decimals\x18\x0f \x01(\rR\rquoteDecimals\"\xa5\x01\n\x07\x44\x65posit\x12P\n\x11\x61vailable_balance\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10\x61vailableBalance\x12H\n\rtotal_balance\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctotalBalance\",\n\x14SubaccountTradeNonce\x12\x14\n\x05nonce\x18\x01 \x01(\rR\x05nonce\"\xe3\x01\n\tOrderInfo\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12#\n\rfee_recipient\x18\x02 \x01(\tR\x0c\x66\x65\x65Recipient\x12\x39\n\x05price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x10\n\x03\x63id\x18\x05 \x01(\tR\x03\x63id\"\x84\x02\n\tSpotOrder\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12J\n\norder_info\x18\x02 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x03 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12H\n\rtrigger_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\"\xcc\x02\n\x0eSpotLimitOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x02 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12?\n\x08\x66illable\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08\x66illable\x12H\n\rtrigger_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\"\xd4\x02\n\x0fSpotMarketOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x46\n\x0c\x62\x61lance_hold\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0b\x62\x61lanceHold\x12\x1d\n\norder_hash\x18\x03 \x01(\x0cR\torderHash\x12\x44\n\norder_type\x18\x04 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\"\xc7\x02\n\x0f\x44\x65rivativeOrder\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12J\n\norder_info\x18\x02 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x03 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12;\n\x06margin\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\"\xfc\x03\n\x1bSubaccountOrderbookMetadata\x12\x39\n\x19vanilla_limit_order_count\x18\x01 \x01(\rR\x16vanillaLimitOrderCount\x12@\n\x1dreduce_only_limit_order_count\x18\x02 \x01(\rR\x19reduceOnlyLimitOrderCount\x12h\n\x1e\x61ggregate_reduce_only_quantity\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1b\x61ggregateReduceOnlyQuantity\x12\x61\n\x1a\x61ggregate_vanilla_quantity\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x18\x61ggregateVanillaQuantity\x12\x45\n\x1fvanilla_conditional_order_count\x18\x05 \x01(\rR\x1cvanillaConditionalOrderCount\x12L\n#reduce_only_conditional_order_count\x18\x06 \x01(\rR\x1freduceOnlyConditionalOrderCount\"\xc3\x01\n\x0fSubaccountOrder\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\"\n\x0cisReduceOnly\x18\x03 \x01(\x08R\x0cisReduceOnly\x12\x10\n\x03\x63id\x18\x04 \x01(\tR\x03\x63id\"w\n\x13SubaccountOrderData\x12\x41\n\x05order\x18\x01 \x01(\x0b\x32+.injective.exchange.v1beta1.SubaccountOrderR\x05order\x12\x1d\n\norder_hash\x18\x02 \x01(\x0cR\torderHash\"\x8f\x03\n\x14\x44\x65rivativeLimitOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x02 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12;\n\x06margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12?\n\x08\x66illable\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08\x66illable\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\x12\x1d\n\norder_hash\x18\x06 \x01(\x0cR\torderHash\"\x95\x03\n\x15\x44\x65rivativeMarketOrder\x12J\n\norder_info\x18\x01 \x01(\x0b\x32%.injective.exchange.v1beta1.OrderInfoB\x04\xc8\xde\x1f\x00R\torderInfo\x12\x44\n\norder_type\x18\x02 \x01(\x0e\x32%.injective.exchange.v1beta1.OrderTypeR\torderType\x12;\n\x06margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12\x44\n\x0bmargin_hold\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\nmarginHold\x12H\n\rtrigger_price\x18\x05 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctriggerPrice\x12\x1d\n\norder_hash\x18\x06 \x01(\x0cR\torderHash\"\xc5\x02\n\x08Position\x12\x16\n\x06isLong\x18\x01 \x01(\x08R\x06isLong\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x44\n\x0b\x65ntry_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\nentryPrice\x12;\n\x06margin\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12]\n\x18\x63umulative_funding_entry\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16\x63umulativeFundingEntry\"I\n\x14MarketOrderIndicator\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x14\n\x05isBuy\x18\x02 \x01(\x08R\x05isBuy\"\xcd\x02\n\x08TradeLog\x12?\n\x08quantity\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12#\n\rsubaccount_id\x18\x03 \x01(\x0cR\x0csubaccountId\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\"\x9a\x02\n\rPositionDelta\x12\x17\n\x07is_long\x18\x01 \x01(\x08R\x06isLong\x12R\n\x12\x65xecution_quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11\x65xecutionQuantity\x12N\n\x10\x65xecution_margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x65xecutionMargin\x12L\n\x0f\x65xecution_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0e\x65xecutionPrice\"\xa1\x03\n\x12\x44\x65rivativeTradeLog\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12P\n\x0eposition_delta\x18\x02 \x01(\x0b\x32).injective.exchange.v1beta1.PositionDeltaR\rpositionDelta\x12;\n\x06payout\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06payout\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\x12\x35\n\x03pnl\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03pnl\"{\n\x12SubaccountPosition\x12@\n\x08position\x18\x01 \x01(\x0b\x32$.injective.exchange.v1beta1.PositionR\x08position\x12#\n\rsubaccount_id\x18\x02 \x01(\x0cR\x0csubaccountId\"w\n\x11SubaccountDeposit\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12=\n\x07\x64\x65posit\x18\x02 \x01(\x0b\x32#.injective.exchange.v1beta1.DepositR\x07\x64\x65posit\"p\n\rDepositUpdate\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12I\n\x08\x64\x65posits\x18\x02 \x03(\x0b\x32-.injective.exchange.v1beta1.SubaccountDepositR\x08\x64\x65posits\"\xcc\x01\n\x10PointsMultiplier\x12[\n\x17maker_points_multiplier\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15makerPointsMultiplier\x12[\n\x17taker_points_multiplier\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15takerPointsMultiplier\"\xfe\x02\n\x1eTradingRewardCampaignBoostInfo\x12\x35\n\x17\x62oosted_spot_market_ids\x18\x01 \x03(\tR\x14\x62oostedSpotMarketIds\x12j\n\x17spot_market_multipliers\x18\x02 \x03(\x0b\x32,.injective.exchange.v1beta1.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x15spotMarketMultipliers\x12\x41\n\x1d\x62oosted_derivative_market_ids\x18\x03 \x03(\tR\x1a\x62oostedDerivativeMarketIds\x12v\n\x1d\x64\x65rivative_market_multipliers\x18\x04 \x03(\x0b\x32,.injective.exchange.v1beta1.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x1b\x64\x65rivativeMarketMultipliers\"\xbc\x01\n\x12\x43\x61mpaignRewardPool\x12\'\n\x0fstart_timestamp\x18\x01 \x01(\x03R\x0estartTimestamp\x12}\n\x14max_campaign_rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x12maxCampaignRewards\"\xa9\x02\n\x19TradingRewardCampaignInfo\x12:\n\x19\x63\x61mpaign_duration_seconds\x18\x01 \x01(\x03R\x17\x63\x61mpaignDurationSeconds\x12!\n\x0cquote_denoms\x18\x02 \x03(\tR\x0bquoteDenoms\x12u\n\x19trading_reward_boost_info\x18\x03 \x01(\x0b\x32:.injective.exchange.v1beta1.TradingRewardCampaignBoostInfoR\x16tradingRewardBoostInfo\x12\x36\n\x17\x64isqualified_market_ids\x18\x04 \x03(\tR\x15\x64isqualifiedMarketIds\"\xc0\x02\n\x13\x46\x65\x65\x44iscountTierInfo\x12S\n\x13maker_discount_rate\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11makerDiscountRate\x12S\n\x13taker_discount_rate\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11takerDiscountRate\x12\x42\n\rstaked_amount\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0cstakedAmount\x12;\n\x06volume\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06volume\"\x8c\x02\n\x13\x46\x65\x65\x44iscountSchedule\x12!\n\x0c\x62ucket_count\x18\x01 \x01(\x04R\x0b\x62ucketCount\x12\'\n\x0f\x62ucket_duration\x18\x02 \x01(\x03R\x0e\x62ucketDuration\x12!\n\x0cquote_denoms\x18\x03 \x03(\tR\x0bquoteDenoms\x12N\n\ntier_infos\x18\x04 \x03(\x0b\x32/.injective.exchange.v1beta1.FeeDiscountTierInfoR\ttierInfos\x12\x36\n\x17\x64isqualified_market_ids\x18\x05 \x03(\tR\x15\x64isqualifiedMarketIds\"M\n\x12\x46\x65\x65\x44iscountTierTTL\x12\x12\n\x04tier\x18\x01 \x01(\x04R\x04tier\x12#\n\rttl_timestamp\x18\x02 \x01(\x03R\x0cttlTimestamp\"\x9e\x01\n\x0cVolumeRecord\x12\x46\n\x0cmaker_volume\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bmakerVolume\x12\x46\n\x0ctaker_volume\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0btakerVolume\"\x91\x01\n\x0e\x41\x63\x63ountRewards\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x65\n\x07rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x07rewards\"\x86\x01\n\x0cTradeRecords\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12Y\n\x14latest_trade_records\x18\x02 \x03(\x0b\x32\'.injective.exchange.v1beta1.TradeRecordR\x12latestTradeRecords\"6\n\rSubaccountIDs\x12%\n\x0esubaccount_ids\x18\x01 \x03(\x0cR\rsubaccountIds\"\xa7\x01\n\x0bTradeRecord\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\"m\n\x05Level\x12\x31\n\x01p\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01p\x12\x31\n\x01q\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01q\"\x97\x01\n\x1f\x41ggregateSubaccountVolumeRecord\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12O\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32(.injective.exchange.v1beta1.MarketVolumeR\rmarketVolumes\"\x89\x01\n\x1c\x41ggregateAccountVolumeRecord\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12O\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32(.injective.exchange.v1beta1.MarketVolumeR\rmarketVolumes\"s\n\x0cMarketVolume\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x46\n\x06volume\x18\x02 \x01(\x0b\x32(.injective.exchange.v1beta1.VolumeRecordB\x04\xc8\xde\x1f\x00R\x06volume\"A\n\rDenomDecimals\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x1a\n\x08\x64\x65\x63imals\x18\x02 \x01(\x04R\x08\x64\x65\x63imals\"e\n\x12GrantAuthorization\x12\x18\n\x07grantee\x18\x01 \x01(\tR\x07grantee\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"^\n\x0b\x41\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"\x90\x01\n\x0e\x45\x66\x66\x65\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12I\n\x11net_granted_stake\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0fnetGrantedStake\x12\x19\n\x08is_valid\x18\x03 \x01(\x08R\x07isValid\"p\n\x10\x44\x65nomMinNotional\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x46\n\x0cmin_notional\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional*t\n\x1c\x41tomicMarketOrderAccessLevel\x12\n\n\x06Nobody\x10\x00\x12\"\n\x1e\x42\x65ginBlockerSmartContractsOnly\x10\x01\x12\x16\n\x12SmartContractsOnly\x10\x02\x12\x0c\n\x08\x45veryone\x10\x03*T\n\x0cMarketStatus\x12\x0f\n\x0bUnspecified\x10\x00\x12\n\n\x06\x41\x63tive\x10\x01\x12\n\n\x06Paused\x10\x02\x12\x0e\n\nDemolished\x10\x03\x12\x0b\n\x07\x45xpired\x10\x04*\xbb\x02\n\tOrderType\x12 \n\x0bUNSPECIFIED\x10\x00\x1a\x0f\x8a\x9d \x0bUNSPECIFIED\x12\x10\n\x03\x42UY\x10\x01\x1a\x07\x8a\x9d \x03\x42UY\x12\x12\n\x04SELL\x10\x02\x1a\x08\x8a\x9d \x04SELL\x12\x1a\n\x08STOP_BUY\x10\x03\x1a\x0c\x8a\x9d \x08STOP_BUY\x12\x1c\n\tSTOP_SELL\x10\x04\x1a\r\x8a\x9d \tSTOP_SELL\x12\x1a\n\x08TAKE_BUY\x10\x05\x1a\x0c\x8a\x9d \x08TAKE_BUY\x12\x1c\n\tTAKE_SELL\x10\x06\x1a\r\x8a\x9d \tTAKE_SELL\x12\x16\n\x06\x42UY_PO\x10\x07\x1a\n\x8a\x9d \x06\x42UY_PO\x12\x18\n\x07SELL_PO\x10\x08\x1a\x0b\x8a\x9d \x07SELL_PO\x12\x1e\n\nBUY_ATOMIC\x10\t\x1a\x0e\x8a\x9d \nBUY_ATOMIC\x12 \n\x0bSELL_ATOMIC\x10\n\x1a\x0f\x8a\x9d \x0bSELL_ATOMIC*\xd6\x01\n\rExecutionType\x12\x1c\n\x18UnspecifiedExecutionType\x10\x00\x12\n\n\x06Market\x10\x01\x12\r\n\tLimitFill\x10\x02\x12\x1a\n\x16LimitMatchRestingOrder\x10\x03\x12\x16\n\x12LimitMatchNewOrder\x10\x04\x12\x15\n\x11MarketLiquidation\x10\x05\x12\x1a\n\x16\x45xpiryMarketSettlement\x10\x06\x12\x16\n\x12OffsettingPosition\x10\x07\x12\r\n\tSynthetic\x10\x08*\x89\x02\n\tOrderMask\x12\x16\n\x06UNUSED\x10\x00\x1a\n\x8a\x9d \x06UNUSED\x12\x10\n\x03\x41NY\x10\x01\x1a\x07\x8a\x9d \x03\x41NY\x12\x18\n\x07REGULAR\x10\x02\x1a\x0b\x8a\x9d \x07REGULAR\x12 \n\x0b\x43ONDITIONAL\x10\x04\x1a\x0f\x8a\x9d \x0b\x43ONDITIONAL\x12.\n\x17\x44IRECTION_BUY_OR_HIGHER\x10\x08\x1a\x11\x8a\x9d \rBUY_OR_HIGHER\x12.\n\x17\x44IRECTION_SELL_OR_LOWER\x10\x10\x1a\x11\x8a\x9d \rSELL_OR_LOWER\x12\x1b\n\x0bTYPE_MARKET\x10 \x1a\n\x8a\x9d \x06MARKET\x12\x19\n\nTYPE_LIMIT\x10@\x1a\t\x8a\x9d \x05LIMITB\x89\x02\n\x1e\x63om.injective.exchange.v1beta1B\rExchangeProtoP\x01ZNgithub.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types\xa2\x02\x03IEX\xaa\x02\x1aInjective.Exchange.V1beta1\xca\x02\x1aInjective\\Exchange\\V1beta1\xe2\x02&Injective\\Exchange\\V1beta1\\GPBMetadata\xea\x02\x1cInjective::Exchange::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -113,7 +113,7 @@ _globals['_PARAMS'].fields_by_name['minimal_protocol_fee_rate']._loaded_options = None _globals['_PARAMS'].fields_by_name['minimal_protocol_fee_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_PARAMS'].fields_by_name['inj_auction_max_cap']._loaded_options = None - _globals['_PARAMS'].fields_by_name['inj_auction_max_cap']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_PARAMS'].fields_by_name['inj_auction_max_cap']._serialized_options = b'\030\001\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' _globals['_PARAMS']._loaded_options = None _globals['_PARAMS']._serialized_options = b'\350\240\037\001\212\347\260*\017exchange/Params' _globals['_MARKETFEEMULTIPLIER'].fields_by_name['fee_multiplier']._loaded_options = None @@ -316,16 +316,16 @@ _globals['_EFFECTIVEGRANT'].fields_by_name['net_granted_stake']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' _globals['_DENOMMINNOTIONAL'].fields_by_name['min_notional']._loaded_options = None _globals['_DENOMMINNOTIONAL'].fields_by_name['min_notional']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_ATOMICMARKETORDERACCESSLEVEL']._serialized_start=17054 - _globals['_ATOMICMARKETORDERACCESSLEVEL']._serialized_end=17170 - _globals['_MARKETSTATUS']._serialized_start=17172 - _globals['_MARKETSTATUS']._serialized_end=17256 - _globals['_ORDERTYPE']._serialized_start=17259 - _globals['_ORDERTYPE']._serialized_end=17574 - _globals['_EXECUTIONTYPE']._serialized_start=17577 - _globals['_EXECUTIONTYPE']._serialized_end=17791 - _globals['_ORDERMASK']._serialized_start=17794 - _globals['_ORDERMASK']._serialized_end=18059 + _globals['_ATOMICMARKETORDERACCESSLEVEL']._serialized_start=17056 + _globals['_ATOMICMARKETORDERACCESSLEVEL']._serialized_end=17172 + _globals['_MARKETSTATUS']._serialized_start=17174 + _globals['_MARKETSTATUS']._serialized_end=17258 + _globals['_ORDERTYPE']._serialized_start=17261 + _globals['_ORDERTYPE']._serialized_end=17576 + _globals['_EXECUTIONTYPE']._serialized_start=17579 + _globals['_EXECUTIONTYPE']._serialized_end=17793 + _globals['_ORDERMASK']._serialized_start=17796 + _globals['_ORDERMASK']._serialized_end=18061 _globals['_OPENNOTIONALCAP']._serialized_start=186 _globals['_OPENNOTIONALCAP']._serialized_end=533 _globals['_OPENNOTIONALCAPUNCAPPED']._serialized_start=535 @@ -333,107 +333,107 @@ _globals['_OPENNOTIONALCAPCAPPED']._serialized_start=620 _globals['_OPENNOTIONALCAPCAPPED']._serialized_end=757 _globals['_PARAMS']._serialized_start=760 - _globals['_PARAMS']._serialized_end=3585 - _globals['_MARKETFEEMULTIPLIER']._serialized_start=3588 - _globals['_MARKETFEEMULTIPLIER']._serialized_end=3720 - _globals['_DERIVATIVEMARKET']._serialized_start=3723 - _globals['_DERIVATIVEMARKET']._serialized_end=5074 - _globals['_BINARYOPTIONSMARKET']._serialized_start=5077 - _globals['_BINARYOPTIONSMARKET']._serialized_end=6227 - _globals['_EXPIRYFUTURESMARKETINFO']._serialized_start=6230 - _globals['_EXPIRYFUTURESMARKETINFO']._serialized_end=6586 - _globals['_PERPETUALMARKETINFO']._serialized_start=6589 - _globals['_PERPETUALMARKETINFO']._serialized_end=6915 - _globals['_PERPETUALMARKETFUNDING']._serialized_start=6918 - _globals['_PERPETUALMARKETFUNDING']._serialized_end=7145 - _globals['_DERIVATIVEMARKETSETTLEMENTINFO']._serialized_start=7148 - _globals['_DERIVATIVEMARKETSETTLEMENTINFO']._serialized_end=7289 - _globals['_NEXTFUNDINGTIMESTAMP']._serialized_start=7291 - _globals['_NEXTFUNDINGTIMESTAMP']._serialized_end=7352 - _globals['_MIDPRICEANDTOB']._serialized_start=7355 - _globals['_MIDPRICEANDTOB']._serialized_end=7589 - _globals['_SPOTMARKET']._serialized_start=7592 - _globals['_SPOTMARKET']._serialized_end=8416 - _globals['_DEPOSIT']._serialized_start=8419 - _globals['_DEPOSIT']._serialized_end=8584 - _globals['_SUBACCOUNTTRADENONCE']._serialized_start=8586 - _globals['_SUBACCOUNTTRADENONCE']._serialized_end=8630 - _globals['_ORDERINFO']._serialized_start=8633 - _globals['_ORDERINFO']._serialized_end=8860 - _globals['_SPOTORDER']._serialized_start=8863 - _globals['_SPOTORDER']._serialized_end=9123 - _globals['_SPOTLIMITORDER']._serialized_start=9126 - _globals['_SPOTLIMITORDER']._serialized_end=9458 - _globals['_SPOTMARKETORDER']._serialized_start=9461 - _globals['_SPOTMARKETORDER']._serialized_end=9801 - _globals['_DERIVATIVEORDER']._serialized_start=9804 - _globals['_DERIVATIVEORDER']._serialized_end=10131 - _globals['_SUBACCOUNTORDERBOOKMETADATA']._serialized_start=10134 - _globals['_SUBACCOUNTORDERBOOKMETADATA']._serialized_end=10642 - _globals['_SUBACCOUNTORDER']._serialized_start=10645 - _globals['_SUBACCOUNTORDER']._serialized_end=10840 - _globals['_SUBACCOUNTORDERDATA']._serialized_start=10842 - _globals['_SUBACCOUNTORDERDATA']._serialized_end=10961 - _globals['_DERIVATIVELIMITORDER']._serialized_start=10964 - _globals['_DERIVATIVELIMITORDER']._serialized_end=11363 - _globals['_DERIVATIVEMARKETORDER']._serialized_start=11366 - _globals['_DERIVATIVEMARKETORDER']._serialized_end=11771 - _globals['_POSITION']._serialized_start=11774 - _globals['_POSITION']._serialized_end=12099 - _globals['_MARKETORDERINDICATOR']._serialized_start=12101 - _globals['_MARKETORDERINDICATOR']._serialized_end=12174 - _globals['_TRADELOG']._serialized_start=12177 - _globals['_TRADELOG']._serialized_end=12510 - _globals['_POSITIONDELTA']._serialized_start=12513 - _globals['_POSITIONDELTA']._serialized_end=12795 - _globals['_DERIVATIVETRADELOG']._serialized_start=12798 - _globals['_DERIVATIVETRADELOG']._serialized_end=13215 - _globals['_SUBACCOUNTPOSITION']._serialized_start=13217 - _globals['_SUBACCOUNTPOSITION']._serialized_end=13340 - _globals['_SUBACCOUNTDEPOSIT']._serialized_start=13342 - _globals['_SUBACCOUNTDEPOSIT']._serialized_end=13461 - _globals['_DEPOSITUPDATE']._serialized_start=13463 - _globals['_DEPOSITUPDATE']._serialized_end=13575 - _globals['_POINTSMULTIPLIER']._serialized_start=13578 - _globals['_POINTSMULTIPLIER']._serialized_end=13782 - _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_start=13785 - _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_end=14167 - _globals['_CAMPAIGNREWARDPOOL']._serialized_start=14170 - _globals['_CAMPAIGNREWARDPOOL']._serialized_end=14358 - _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_start=14361 - _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_end=14658 - _globals['_FEEDISCOUNTTIERINFO']._serialized_start=14661 - _globals['_FEEDISCOUNTTIERINFO']._serialized_end=14981 - _globals['_FEEDISCOUNTSCHEDULE']._serialized_start=14984 - _globals['_FEEDISCOUNTSCHEDULE']._serialized_end=15252 - _globals['_FEEDISCOUNTTIERTTL']._serialized_start=15254 - _globals['_FEEDISCOUNTTIERTTL']._serialized_end=15331 - _globals['_VOLUMERECORD']._serialized_start=15334 - _globals['_VOLUMERECORD']._serialized_end=15492 - _globals['_ACCOUNTREWARDS']._serialized_start=15495 - _globals['_ACCOUNTREWARDS']._serialized_end=15640 - _globals['_TRADERECORDS']._serialized_start=15643 - _globals['_TRADERECORDS']._serialized_end=15777 - _globals['_SUBACCOUNTIDS']._serialized_start=15779 - _globals['_SUBACCOUNTIDS']._serialized_end=15833 - _globals['_TRADERECORD']._serialized_start=15836 - _globals['_TRADERECORD']._serialized_end=16003 - _globals['_LEVEL']._serialized_start=16005 - _globals['_LEVEL']._serialized_end=16114 - _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_start=16117 - _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_end=16268 - _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_start=16271 - _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_end=16408 - _globals['_MARKETVOLUME']._serialized_start=16410 - _globals['_MARKETVOLUME']._serialized_end=16525 - _globals['_DENOMDECIMALS']._serialized_start=16527 - _globals['_DENOMDECIMALS']._serialized_end=16592 - _globals['_GRANTAUTHORIZATION']._serialized_start=16594 - _globals['_GRANTAUTHORIZATION']._serialized_end=16695 - _globals['_ACTIVEGRANT']._serialized_start=16697 - _globals['_ACTIVEGRANT']._serialized_end=16791 - _globals['_EFFECTIVEGRANT']._serialized_start=16794 - _globals['_EFFECTIVEGRANT']._serialized_end=16938 - _globals['_DENOMMINNOTIONAL']._serialized_start=16940 - _globals['_DENOMMINNOTIONAL']._serialized_end=17052 + _globals['_PARAMS']._serialized_end=3587 + _globals['_MARKETFEEMULTIPLIER']._serialized_start=3590 + _globals['_MARKETFEEMULTIPLIER']._serialized_end=3722 + _globals['_DERIVATIVEMARKET']._serialized_start=3725 + _globals['_DERIVATIVEMARKET']._serialized_end=5076 + _globals['_BINARYOPTIONSMARKET']._serialized_start=5079 + _globals['_BINARYOPTIONSMARKET']._serialized_end=6229 + _globals['_EXPIRYFUTURESMARKETINFO']._serialized_start=6232 + _globals['_EXPIRYFUTURESMARKETINFO']._serialized_end=6588 + _globals['_PERPETUALMARKETINFO']._serialized_start=6591 + _globals['_PERPETUALMARKETINFO']._serialized_end=6917 + _globals['_PERPETUALMARKETFUNDING']._serialized_start=6920 + _globals['_PERPETUALMARKETFUNDING']._serialized_end=7147 + _globals['_DERIVATIVEMARKETSETTLEMENTINFO']._serialized_start=7150 + _globals['_DERIVATIVEMARKETSETTLEMENTINFO']._serialized_end=7291 + _globals['_NEXTFUNDINGTIMESTAMP']._serialized_start=7293 + _globals['_NEXTFUNDINGTIMESTAMP']._serialized_end=7354 + _globals['_MIDPRICEANDTOB']._serialized_start=7357 + _globals['_MIDPRICEANDTOB']._serialized_end=7591 + _globals['_SPOTMARKET']._serialized_start=7594 + _globals['_SPOTMARKET']._serialized_end=8418 + _globals['_DEPOSIT']._serialized_start=8421 + _globals['_DEPOSIT']._serialized_end=8586 + _globals['_SUBACCOUNTTRADENONCE']._serialized_start=8588 + _globals['_SUBACCOUNTTRADENONCE']._serialized_end=8632 + _globals['_ORDERINFO']._serialized_start=8635 + _globals['_ORDERINFO']._serialized_end=8862 + _globals['_SPOTORDER']._serialized_start=8865 + _globals['_SPOTORDER']._serialized_end=9125 + _globals['_SPOTLIMITORDER']._serialized_start=9128 + _globals['_SPOTLIMITORDER']._serialized_end=9460 + _globals['_SPOTMARKETORDER']._serialized_start=9463 + _globals['_SPOTMARKETORDER']._serialized_end=9803 + _globals['_DERIVATIVEORDER']._serialized_start=9806 + _globals['_DERIVATIVEORDER']._serialized_end=10133 + _globals['_SUBACCOUNTORDERBOOKMETADATA']._serialized_start=10136 + _globals['_SUBACCOUNTORDERBOOKMETADATA']._serialized_end=10644 + _globals['_SUBACCOUNTORDER']._serialized_start=10647 + _globals['_SUBACCOUNTORDER']._serialized_end=10842 + _globals['_SUBACCOUNTORDERDATA']._serialized_start=10844 + _globals['_SUBACCOUNTORDERDATA']._serialized_end=10963 + _globals['_DERIVATIVELIMITORDER']._serialized_start=10966 + _globals['_DERIVATIVELIMITORDER']._serialized_end=11365 + _globals['_DERIVATIVEMARKETORDER']._serialized_start=11368 + _globals['_DERIVATIVEMARKETORDER']._serialized_end=11773 + _globals['_POSITION']._serialized_start=11776 + _globals['_POSITION']._serialized_end=12101 + _globals['_MARKETORDERINDICATOR']._serialized_start=12103 + _globals['_MARKETORDERINDICATOR']._serialized_end=12176 + _globals['_TRADELOG']._serialized_start=12179 + _globals['_TRADELOG']._serialized_end=12512 + _globals['_POSITIONDELTA']._serialized_start=12515 + _globals['_POSITIONDELTA']._serialized_end=12797 + _globals['_DERIVATIVETRADELOG']._serialized_start=12800 + _globals['_DERIVATIVETRADELOG']._serialized_end=13217 + _globals['_SUBACCOUNTPOSITION']._serialized_start=13219 + _globals['_SUBACCOUNTPOSITION']._serialized_end=13342 + _globals['_SUBACCOUNTDEPOSIT']._serialized_start=13344 + _globals['_SUBACCOUNTDEPOSIT']._serialized_end=13463 + _globals['_DEPOSITUPDATE']._serialized_start=13465 + _globals['_DEPOSITUPDATE']._serialized_end=13577 + _globals['_POINTSMULTIPLIER']._serialized_start=13580 + _globals['_POINTSMULTIPLIER']._serialized_end=13784 + _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_start=13787 + _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_end=14169 + _globals['_CAMPAIGNREWARDPOOL']._serialized_start=14172 + _globals['_CAMPAIGNREWARDPOOL']._serialized_end=14360 + _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_start=14363 + _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_end=14660 + _globals['_FEEDISCOUNTTIERINFO']._serialized_start=14663 + _globals['_FEEDISCOUNTTIERINFO']._serialized_end=14983 + _globals['_FEEDISCOUNTSCHEDULE']._serialized_start=14986 + _globals['_FEEDISCOUNTSCHEDULE']._serialized_end=15254 + _globals['_FEEDISCOUNTTIERTTL']._serialized_start=15256 + _globals['_FEEDISCOUNTTIERTTL']._serialized_end=15333 + _globals['_VOLUMERECORD']._serialized_start=15336 + _globals['_VOLUMERECORD']._serialized_end=15494 + _globals['_ACCOUNTREWARDS']._serialized_start=15497 + _globals['_ACCOUNTREWARDS']._serialized_end=15642 + _globals['_TRADERECORDS']._serialized_start=15645 + _globals['_TRADERECORDS']._serialized_end=15779 + _globals['_SUBACCOUNTIDS']._serialized_start=15781 + _globals['_SUBACCOUNTIDS']._serialized_end=15835 + _globals['_TRADERECORD']._serialized_start=15838 + _globals['_TRADERECORD']._serialized_end=16005 + _globals['_LEVEL']._serialized_start=16007 + _globals['_LEVEL']._serialized_end=16116 + _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_start=16119 + _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_end=16270 + _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_start=16273 + _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_end=16410 + _globals['_MARKETVOLUME']._serialized_start=16412 + _globals['_MARKETVOLUME']._serialized_end=16527 + _globals['_DENOMDECIMALS']._serialized_start=16529 + _globals['_DENOMDECIMALS']._serialized_end=16594 + _globals['_GRANTAUTHORIZATION']._serialized_start=16596 + _globals['_GRANTAUTHORIZATION']._serialized_end=16697 + _globals['_ACTIVEGRANT']._serialized_start=16699 + _globals['_ACTIVEGRANT']._serialized_end=16793 + _globals['_EFFECTIVEGRANT']._serialized_start=16796 + _globals['_EFFECTIVEGRANT']._serialized_end=16940 + _globals['_DENOMMINNOTIONAL']._serialized_start=16942 + _globals['_DENOMMINNOTIONAL']._serialized_end=17054 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/exchange/v2/exchange_pb2.py b/pyinjective/proto/injective/exchange/v2/exchange_pb2.py index f4b513df..a196d6e4 100644 --- a/pyinjective/proto/injective/exchange/v2/exchange_pb2.py +++ b/pyinjective/proto/injective/exchange/v2/exchange_pb2.py @@ -21,7 +21,7 @@ from pyinjective.proto.injective.exchange.v2 import order_pb2 as injective_dot_exchange_dot_v2_dot_order__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$injective/exchange/v2/exchange.proto\x12\x15injective.exchange.v2\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a\"injective/exchange/v2/market.proto\x1a!injective/exchange/v2/order.proto\"\x9d\x01\n\x1c\x45nforcedRestrictionsContract\x12\x43\n\x10\x63ontract_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0f\x63ontractAddress\x12\x32\n\x15pause_event_signature\x18\x02 \x01(\tR\x13pauseEventSignature:\x04\xe8\xa0\x1f\x01\"\x99\x1a\n\x06Params\x12\x65\n\x1fspot_market_instant_listing_fee\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x1bspotMarketInstantListingFee\x12q\n%derivative_market_instant_listing_fee\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R!derivativeMarketInstantListingFee\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_maker_fee_rate\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotMakerFeeRate\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_taker_fee_rate\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotTakerFeeRate\x12m\n!default_derivative_maker_fee_rate\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeMakerFeeRate\x12m\n!default_derivative_taker_fee_rate\x18\x06 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeTakerFeeRate\x12\x64\n\x1c\x64\x65\x66\x61ult_initial_margin_ratio\x18\x07 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultInitialMarginRatio\x12l\n default_maintenance_margin_ratio\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultMaintenanceMarginRatio\x12\x38\n\x18\x64\x65\x66\x61ult_funding_interval\x18\t \x01(\x03R\x16\x64\x65\x66\x61ultFundingInterval\x12)\n\x10\x66unding_multiple\x18\n \x01(\x03R\x0f\x66undingMultiple\x12X\n\x16relayer_fee_share_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12i\n\x1f\x64\x65\x66\x61ult_hourly_funding_rate_cap\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1b\x64\x65\x66\x61ultHourlyFundingRateCap\x12\x64\n\x1c\x64\x65\x66\x61ult_hourly_interest_rate\x18\r \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultHourlyInterestRate\x12\x44\n\x1fmax_derivative_order_side_count\x18\x0e \x01(\rR\x1bmaxDerivativeOrderSideCount\x12s\n\'inj_reward_staked_requirement_threshold\x18\x0f \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR#injRewardStakedRequirementThreshold\x12G\n trading_rewards_vesting_duration\x18\x10 \x01(\x03R\x1dtradingRewardsVestingDuration\x12\x64\n\x1cliquidator_reward_share_rate\x18\x11 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19liquidatorRewardShareRate\x12x\n)binary_options_market_instant_listing_fee\x18\x12 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R$binaryOptionsMarketInstantListingFee\x12{\n atomic_market_order_access_level\x18\x13 \x01(\x0e\x32\x33.injective.exchange.v2.AtomicMarketOrderAccessLevelR\x1c\x61tomicMarketOrderAccessLevel\x12x\n\'spot_atomic_market_order_fee_multiplier\x18\x14 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\"spotAtomicMarketOrderFeeMultiplier\x12\x84\x01\n-derivative_atomic_market_order_fee_multiplier\x18\x15 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR(derivativeAtomicMarketOrderFeeMultiplier\x12\x8b\x01\n1binary_options_atomic_market_order_fee_multiplier\x18\x16 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR+binaryOptionsAtomicMarketOrderFeeMultiplier\x12^\n\x19minimal_protocol_fee_rate\x18\x17 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16minimalProtocolFeeRate\x12[\n+is_instant_derivative_market_launch_enabled\x18\x18 \x01(\x08R&isInstantDerivativeMarketLaunchEnabled\x12\x44\n\x1fpost_only_mode_height_threshold\x18\x19 \x01(\x03R\x1bpostOnlyModeHeightThreshold\x12g\n1margin_decrease_price_timestamp_threshold_seconds\x18\x1a \x01(\x03R,marginDecreasePriceTimestampThresholdSeconds\x12\'\n\x0f\x65xchange_admins\x18\x1b \x03(\tR\x0e\x65xchangeAdmins\x12L\n\x13inj_auction_max_cap\x18\x1c \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x10injAuctionMaxCap\x12*\n\x11\x66ixed_gas_enabled\x18\x1d \x01(\x08R\x0f\x66ixedGasEnabled\x12;\n\x1a\x65mit_legacy_version_events\x18\x1e \x01(\x08R\x17\x65mitLegacyVersionEvents\x12\x62\n\x1b\x64\x65\x66\x61ult_reduce_margin_ratio\x18\x1f \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x18\x64\x65\x66\x61ultReduceMarginRatio\x12>\n\x1cpost_only_mode_blocks_amount\x18! \x01(\x04R\x18postOnlyModeBlocksAmount\x12M\n$min_post_only_mode_downtime_duration\x18\" \x01(\tR\x1fminPostOnlyModeDowntimeDuration\x12Z\n+post_only_mode_blocks_amount_after_downtime\x18# \x01(\x04R%postOnlyModeBlocksAmountAfterDowntime\x12\x81\x01\n\x1f\x65nforced_restrictions_contracts\x18$ \x03(\x0b\x32\x33.injective.exchange.v2.EnforcedRestrictionsContractB\x04\xc8\xde\x1f\x00R\x1d\x65nforcedRestrictionsContracts:\x18\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x0f\x65xchange/ParamsJ\x04\x08 \x10!\"=\n\x14NextFundingTimestamp\x12%\n\x0enext_timestamp\x18\x01 \x01(\x03R\rnextTimestamp\"\xea\x01\n\x0eMidPriceAndTOB\x12@\n\tmid_price\x18\x01 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08midPrice\x12I\n\x0e\x62\x65st_buy_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0c\x62\x65stBuyPrice\x12K\n\x0f\x62\x65st_sell_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\rbestSellPrice\"\xa5\x01\n\x07\x44\x65posit\x12P\n\x11\x61vailable_balance\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10\x61vailableBalance\x12H\n\rtotal_balance\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctotalBalance\",\n\x14SubaccountTradeNonce\x12\x14\n\x05nonce\x18\x01 \x01(\rR\x05nonce\"\xc3\x01\n\x0fSubaccountOrder\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\"\n\x0cisReduceOnly\x18\x03 \x01(\x08R\x0cisReduceOnly\x12\x10\n\x03\x63id\x18\x04 \x01(\tR\x03\x63id\"r\n\x13SubaccountOrderData\x12<\n\x05order\x18\x01 \x01(\x0b\x32&.injective.exchange.v2.SubaccountOrderR\x05order\x12\x1d\n\norder_hash\x18\x02 \x01(\x0cR\torderHash\"\xc5\x02\n\x08Position\x12\x16\n\x06isLong\x18\x01 \x01(\x08R\x06isLong\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x44\n\x0b\x65ntry_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\nentryPrice\x12;\n\x06margin\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12]\n\x18\x63umulative_funding_entry\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16\x63umulativeFundingEntry\"\x8a\x01\n\x07\x42\x61lance\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom\x12:\n\x08\x64\x65posits\x18\x03 \x01(\x0b\x32\x1e.injective.exchange.v2.DepositR\x08\x64\x65posits:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x9d\x01\n\x12\x44\x65rivativePosition\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12;\n\x08position\x18\x03 \x01(\x0b\x32\x1f.injective.exchange.v2.PositionR\x08position:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"I\n\x14MarketOrderIndicator\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x14\n\x05isBuy\x18\x02 \x01(\x08R\x05isBuy\"\xcd\x02\n\x08TradeLog\x12?\n\x08quantity\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12#\n\rsubaccount_id\x18\x03 \x01(\x0cR\x0csubaccountId\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\"\x9a\x02\n\rPositionDelta\x12\x17\n\x07is_long\x18\x01 \x01(\x08R\x06isLong\x12R\n\x12\x65xecution_quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11\x65xecutionQuantity\x12N\n\x10\x65xecution_margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x65xecutionMargin\x12L\n\x0f\x65xecution_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0e\x65xecutionPrice\"\x9c\x03\n\x12\x44\x65rivativeTradeLog\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12K\n\x0eposition_delta\x18\x02 \x01(\x0b\x32$.injective.exchange.v2.PositionDeltaR\rpositionDelta\x12;\n\x06payout\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06payout\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\x12\x35\n\x03pnl\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03pnl\"v\n\x12SubaccountPosition\x12;\n\x08position\x18\x01 \x01(\x0b\x32\x1f.injective.exchange.v2.PositionR\x08position\x12#\n\rsubaccount_id\x18\x02 \x01(\x0cR\x0csubaccountId\"r\n\x11SubaccountDeposit\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12\x38\n\x07\x64\x65posit\x18\x02 \x01(\x0b\x32\x1e.injective.exchange.v2.DepositR\x07\x64\x65posit\"k\n\rDepositUpdate\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x44\n\x08\x64\x65posits\x18\x02 \x03(\x0b\x32(.injective.exchange.v2.SubaccountDepositR\x08\x64\x65posits\"\xcc\x01\n\x10PointsMultiplier\x12[\n\x17maker_points_multiplier\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15makerPointsMultiplier\x12[\n\x17taker_points_multiplier\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15takerPointsMultiplier\"\xf4\x02\n\x1eTradingRewardCampaignBoostInfo\x12\x35\n\x17\x62oosted_spot_market_ids\x18\x01 \x03(\tR\x14\x62oostedSpotMarketIds\x12\x65\n\x17spot_market_multipliers\x18\x02 \x03(\x0b\x32\'.injective.exchange.v2.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x15spotMarketMultipliers\x12\x41\n\x1d\x62oosted_derivative_market_ids\x18\x03 \x03(\tR\x1a\x62oostedDerivativeMarketIds\x12q\n\x1d\x64\x65rivative_market_multipliers\x18\x04 \x03(\x0b\x32\'.injective.exchange.v2.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x1b\x64\x65rivativeMarketMultipliers\"\xbc\x01\n\x12\x43\x61mpaignRewardPool\x12\'\n\x0fstart_timestamp\x18\x01 \x01(\x03R\x0estartTimestamp\x12}\n\x14max_campaign_rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x12maxCampaignRewards\"\xa4\x02\n\x19TradingRewardCampaignInfo\x12:\n\x19\x63\x61mpaign_duration_seconds\x18\x01 \x01(\x03R\x17\x63\x61mpaignDurationSeconds\x12!\n\x0cquote_denoms\x18\x02 \x03(\tR\x0bquoteDenoms\x12p\n\x19trading_reward_boost_info\x18\x03 \x01(\x0b\x32\x35.injective.exchange.v2.TradingRewardCampaignBoostInfoR\x16tradingRewardBoostInfo\x12\x36\n\x17\x64isqualified_market_ids\x18\x04 \x03(\tR\x15\x64isqualifiedMarketIds\"\xc0\x02\n\x13\x46\x65\x65\x44iscountTierInfo\x12S\n\x13maker_discount_rate\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11makerDiscountRate\x12S\n\x13taker_discount_rate\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11takerDiscountRate\x12\x42\n\rstaked_amount\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0cstakedAmount\x12;\n\x06volume\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06volume\"\x87\x02\n\x13\x46\x65\x65\x44iscountSchedule\x12!\n\x0c\x62ucket_count\x18\x01 \x01(\x04R\x0b\x62ucketCount\x12\'\n\x0f\x62ucket_duration\x18\x02 \x01(\x03R\x0e\x62ucketDuration\x12!\n\x0cquote_denoms\x18\x03 \x03(\tR\x0bquoteDenoms\x12I\n\ntier_infos\x18\x04 \x03(\x0b\x32*.injective.exchange.v2.FeeDiscountTierInfoR\ttierInfos\x12\x36\n\x17\x64isqualified_market_ids\x18\x05 \x03(\tR\x15\x64isqualifiedMarketIds\"M\n\x12\x46\x65\x65\x44iscountTierTTL\x12\x12\n\x04tier\x18\x01 \x01(\x04R\x04tier\x12#\n\rttl_timestamp\x18\x02 \x01(\x03R\x0cttlTimestamp\"\x91\x01\n\x0e\x41\x63\x63ountRewards\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x65\n\x07rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x07rewards\"\x81\x01\n\x0cTradeRecords\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12T\n\x14latest_trade_records\x18\x02 \x03(\x0b\x32\".injective.exchange.v2.TradeRecordR\x12latestTradeRecords\"6\n\rSubaccountIDs\x12%\n\x0esubaccount_ids\x18\x01 \x03(\x0cR\rsubaccountIds\"\xa7\x01\n\x0bTradeRecord\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\"m\n\x05Level\x12\x31\n\x01p\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01p\x12\x31\n\x01q\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01q\"\x92\x01\n\x1f\x41ggregateSubaccountVolumeRecord\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12J\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32#.injective.exchange.v2.MarketVolumeR\rmarketVolumes\"\x84\x01\n\x1c\x41ggregateAccountVolumeRecord\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12J\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32#.injective.exchange.v2.MarketVolumeR\rmarketVolumes\"A\n\rDenomDecimals\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x1a\n\x08\x64\x65\x63imals\x18\x02 \x01(\x04R\x08\x64\x65\x63imals\"e\n\x12GrantAuthorization\x12\x18\n\x07grantee\x18\x01 \x01(\tR\x07grantee\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"^\n\x0b\x41\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"\x90\x01\n\x0e\x45\x66\x66\x65\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12I\n\x11net_granted_stake\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0fnetGrantedStake\x12\x19\n\x08is_valid\x18\x03 \x01(\x08R\x07isValid\"p\n\x10\x44\x65nomMinNotional\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x46\n\x0cmin_notional\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional*\xd6\x01\n\rExecutionType\x12\x1c\n\x18UnspecifiedExecutionType\x10\x00\x12\n\n\x06Market\x10\x01\x12\r\n\tLimitFill\x10\x02\x12\x1a\n\x16LimitMatchRestingOrder\x10\x03\x12\x16\n\x12LimitMatchNewOrder\x10\x04\x12\x15\n\x11MarketLiquidation\x10\x05\x12\x1a\n\x16\x45xpiryMarketSettlement\x10\x06\x12\x16\n\x12OffsettingPosition\x10\x07\x12\r\n\tSynthetic\x10\x08\x42\xf3\x01\n\x19\x63om.injective.exchange.v2B\rExchangeProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types/v2\xa2\x02\x03IEX\xaa\x02\x15Injective.Exchange.V2\xca\x02\x15Injective\\Exchange\\V2\xe2\x02!Injective\\Exchange\\V2\\GPBMetadata\xea\x02\x17Injective::Exchange::V2b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$injective/exchange/v2/exchange.proto\x12\x15injective.exchange.v2\x1a\x14gogoproto/gogo.proto\x1a\x11\x61mino/amino.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a\"injective/exchange/v2/market.proto\x1a!injective/exchange/v2/order.proto\"\x9d\x01\n\x1c\x45nforcedRestrictionsContract\x12\x43\n\x10\x63ontract_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0f\x63ontractAddress\x12\x32\n\x15pause_event_signature\x18\x02 \x01(\tR\x13pauseEventSignature:\x04\xe8\xa0\x1f\x01\"\xe8\x1b\n\x06Params\x12\x65\n\x1fspot_market_instant_listing_fee\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x1bspotMarketInstantListingFee\x12q\n%derivative_market_instant_listing_fee\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R!derivativeMarketInstantListingFee\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_maker_fee_rate\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotMakerFeeRate\x12\x61\n\x1b\x64\x65\x66\x61ult_spot_taker_fee_rate\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x17\x64\x65\x66\x61ultSpotTakerFeeRate\x12m\n!default_derivative_maker_fee_rate\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeMakerFeeRate\x12m\n!default_derivative_taker_fee_rate\x18\x06 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultDerivativeTakerFeeRate\x12\x64\n\x1c\x64\x65\x66\x61ult_initial_margin_ratio\x18\x07 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultInitialMarginRatio\x12l\n default_maintenance_margin_ratio\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1d\x64\x65\x66\x61ultMaintenanceMarginRatio\x12\x38\n\x18\x64\x65\x66\x61ult_funding_interval\x18\t \x01(\x03R\x16\x64\x65\x66\x61ultFundingInterval\x12)\n\x10\x66unding_multiple\x18\n \x01(\x03R\x0f\x66undingMultiple\x12X\n\x16relayer_fee_share_rate\x18\x0b \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x13relayerFeeShareRate\x12i\n\x1f\x64\x65\x66\x61ult_hourly_funding_rate_cap\x18\x0c \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x1b\x64\x65\x66\x61ultHourlyFundingRateCap\x12\x64\n\x1c\x64\x65\x66\x61ult_hourly_interest_rate\x18\r \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19\x64\x65\x66\x61ultHourlyInterestRate\x12\x44\n\x1fmax_derivative_order_side_count\x18\x0e \x01(\rR\x1bmaxDerivativeOrderSideCount\x12s\n\'inj_reward_staked_requirement_threshold\x18\x0f \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR#injRewardStakedRequirementThreshold\x12G\n trading_rewards_vesting_duration\x18\x10 \x01(\x03R\x1dtradingRewardsVestingDuration\x12\x64\n\x1cliquidator_reward_share_rate\x18\x11 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x19liquidatorRewardShareRate\x12x\n)binary_options_market_instant_listing_fee\x18\x12 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R$binaryOptionsMarketInstantListingFee\x12{\n atomic_market_order_access_level\x18\x13 \x01(\x0e\x32\x33.injective.exchange.v2.AtomicMarketOrderAccessLevelR\x1c\x61tomicMarketOrderAccessLevel\x12x\n\'spot_atomic_market_order_fee_multiplier\x18\x14 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\"spotAtomicMarketOrderFeeMultiplier\x12\x84\x01\n-derivative_atomic_market_order_fee_multiplier\x18\x15 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR(derivativeAtomicMarketOrderFeeMultiplier\x12\x8b\x01\n1binary_options_atomic_market_order_fee_multiplier\x18\x16 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR+binaryOptionsAtomicMarketOrderFeeMultiplier\x12^\n\x19minimal_protocol_fee_rate\x18\x17 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16minimalProtocolFeeRate\x12[\n+is_instant_derivative_market_launch_enabled\x18\x18 \x01(\x08R&isInstantDerivativeMarketLaunchEnabled\x12\x44\n\x1fpost_only_mode_height_threshold\x18\x19 \x01(\x03R\x1bpostOnlyModeHeightThreshold\x12g\n1margin_decrease_price_timestamp_threshold_seconds\x18\x1a \x01(\x03R,marginDecreasePriceTimestampThresholdSeconds\x12\'\n\x0f\x65xchange_admins\x18\x1b \x03(\tR\x0e\x65xchangeAdmins\x12N\n\x13inj_auction_max_cap\x18\x1c \x01(\tB\x1f\x18\x01\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x10injAuctionMaxCap\x12*\n\x11\x66ixed_gas_enabled\x18\x1d \x01(\x08R\x0f\x66ixedGasEnabled\x12;\n\x1a\x65mit_legacy_version_events\x18\x1e \x01(\x08R\x17\x65mitLegacyVersionEvents\x12\x62\n\x1b\x64\x65\x66\x61ult_reduce_margin_ratio\x18\x1f \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x18\x64\x65\x66\x61ultReduceMarginRatio\x12>\n\x1cpost_only_mode_blocks_amount\x18! \x01(\x04R\x18postOnlyModeBlocksAmount\x12M\n$min_post_only_mode_downtime_duration\x18\" \x01(\tR\x1fminPostOnlyModeDowntimeDuration\x12Z\n+post_only_mode_blocks_amount_after_downtime\x18# \x01(\x04R%postOnlyModeBlocksAmountAfterDowntime\x12\x96\x01\n*deprecated_enforced_restrictions_contracts\x18$ \x03(\x0b\x32\x33.injective.exchange.v2.EnforcedRestrictionsContractB\x04\xc8\xde\x1f\x00R\'deprecatedEnforcedRestrictionsContracts\x12\x38\n\x18white_knight_liquidators\x18% \x03(\tR\x16whiteKnightLiquidators\x12|\n)white_knight_liquidator_reward_share_rate\x18& \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR$whiteKnightLiquidatorRewardShareRate:\x18\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x0f\x65xchange/ParamsJ\x04\x08 \x10!\"=\n\x14NextFundingTimestamp\x12%\n\x0enext_timestamp\x18\x01 \x01(\x03R\rnextTimestamp\"\xea\x01\n\x0eMidPriceAndTOB\x12@\n\tmid_price\x18\x01 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08midPrice\x12I\n\x0e\x62\x65st_buy_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0c\x62\x65stBuyPrice\x12K\n\x0f\x62\x65st_sell_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x01\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\rbestSellPrice\"\xa5\x01\n\x07\x44\x65posit\x12P\n\x11\x61vailable_balance\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x10\x61vailableBalance\x12H\n\rtotal_balance\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0ctotalBalance\",\n\x14SubaccountTradeNonce\x12\x14\n\x05nonce\x18\x01 \x01(\rR\x05nonce\"\xc3\x01\n\x0fSubaccountOrder\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\"\n\x0cisReduceOnly\x18\x03 \x01(\x08R\x0cisReduceOnly\x12\x10\n\x03\x63id\x18\x04 \x01(\tR\x03\x63id\"r\n\x13SubaccountOrderData\x12<\n\x05order\x18\x01 \x01(\x0b\x32&.injective.exchange.v2.SubaccountOrderR\x05order\x12\x1d\n\norder_hash\x18\x02 \x01(\x0cR\torderHash\"\xc5\x02\n\x08Position\x12\x16\n\x06isLong\x18\x01 \x01(\x08R\x06isLong\x12?\n\x08quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x44\n\x0b\x65ntry_price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\nentryPrice\x12;\n\x06margin\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06margin\x12]\n\x18\x63umulative_funding_entry\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x16\x63umulativeFundingEntry\"\x8a\x01\n\x07\x42\x61lance\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom\x12:\n\x08\x64\x65posits\x18\x03 \x01(\x0b\x32\x1e.injective.exchange.v2.DepositR\x08\x64\x65posits:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"\x9d\x01\n\x12\x44\x65rivativePosition\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12;\n\x08position\x18\x03 \x01(\x0b\x32\x1f.injective.exchange.v2.PositionR\x08position:\x08\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\"I\n\x14MarketOrderIndicator\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12\x14\n\x05isBuy\x18\x02 \x01(\x08R\x05isBuy\"\xcd\x02\n\x08TradeLog\x12?\n\x08quantity\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12#\n\rsubaccount_id\x18\x03 \x01(\x0cR\x0csubaccountId\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\"\x9a\x02\n\rPositionDelta\x12\x17\n\x07is_long\x18\x01 \x01(\x08R\x06isLong\x12R\n\x12\x65xecution_quantity\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11\x65xecutionQuantity\x12N\n\x10\x65xecution_margin\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x65xecutionMargin\x12L\n\x0f\x65xecution_price\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0e\x65xecutionPrice\"\x9c\x03\n\x12\x44\x65rivativeTradeLog\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12K\n\x0eposition_delta\x18\x02 \x01(\x0b\x32$.injective.exchange.v2.PositionDeltaR\rpositionDelta\x12;\n\x06payout\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06payout\x12\x35\n\x03\x66\x65\x65\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03\x66\x65\x65\x12\x1d\n\norder_hash\x18\x05 \x01(\x0cR\torderHash\x12\x38\n\x15\x66\x65\x65_recipient_address\x18\x06 \x01(\x0c\x42\x04\xc8\xde\x1f\x01R\x13\x66\x65\x65RecipientAddress\x12\x10\n\x03\x63id\x18\x07 \x01(\tR\x03\x63id\x12\x35\n\x03pnl\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x03pnl\"v\n\x12SubaccountPosition\x12;\n\x08position\x18\x01 \x01(\x0b\x32\x1f.injective.exchange.v2.PositionR\x08position\x12#\n\rsubaccount_id\x18\x02 \x01(\x0cR\x0csubaccountId\"r\n\x11SubaccountDeposit\x12#\n\rsubaccount_id\x18\x01 \x01(\x0cR\x0csubaccountId\x12\x38\n\x07\x64\x65posit\x18\x02 \x01(\x0b\x32\x1e.injective.exchange.v2.DepositR\x07\x64\x65posit\"k\n\rDepositUpdate\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x44\n\x08\x64\x65posits\x18\x02 \x03(\x0b\x32(.injective.exchange.v2.SubaccountDepositR\x08\x64\x65posits\"\xcc\x01\n\x10PointsMultiplier\x12[\n\x17maker_points_multiplier\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15makerPointsMultiplier\x12[\n\x17taker_points_multiplier\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x15takerPointsMultiplier\"\xf4\x02\n\x1eTradingRewardCampaignBoostInfo\x12\x35\n\x17\x62oosted_spot_market_ids\x18\x01 \x03(\tR\x14\x62oostedSpotMarketIds\x12\x65\n\x17spot_market_multipliers\x18\x02 \x03(\x0b\x32\'.injective.exchange.v2.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x15spotMarketMultipliers\x12\x41\n\x1d\x62oosted_derivative_market_ids\x18\x03 \x03(\tR\x1a\x62oostedDerivativeMarketIds\x12q\n\x1d\x64\x65rivative_market_multipliers\x18\x04 \x03(\x0b\x32\'.injective.exchange.v2.PointsMultiplierB\x04\xc8\xde\x1f\x00R\x1b\x64\x65rivativeMarketMultipliers\"\xbc\x01\n\x12\x43\x61mpaignRewardPool\x12\'\n\x0fstart_timestamp\x18\x01 \x01(\x03R\x0estartTimestamp\x12}\n\x14max_campaign_rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x12maxCampaignRewards\"\xa4\x02\n\x19TradingRewardCampaignInfo\x12:\n\x19\x63\x61mpaign_duration_seconds\x18\x01 \x01(\x03R\x17\x63\x61mpaignDurationSeconds\x12!\n\x0cquote_denoms\x18\x02 \x03(\tR\x0bquoteDenoms\x12p\n\x19trading_reward_boost_info\x18\x03 \x01(\x0b\x32\x35.injective.exchange.v2.TradingRewardCampaignBoostInfoR\x16tradingRewardBoostInfo\x12\x36\n\x17\x64isqualified_market_ids\x18\x04 \x03(\tR\x15\x64isqualifiedMarketIds\"\xc0\x02\n\x13\x46\x65\x65\x44iscountTierInfo\x12S\n\x13maker_discount_rate\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11makerDiscountRate\x12S\n\x13taker_discount_rate\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x11takerDiscountRate\x12\x42\n\rstaked_amount\x18\x03 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0cstakedAmount\x12;\n\x06volume\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06volume\"\x87\x02\n\x13\x46\x65\x65\x44iscountSchedule\x12!\n\x0c\x62ucket_count\x18\x01 \x01(\x04R\x0b\x62ucketCount\x12\'\n\x0f\x62ucket_duration\x18\x02 \x01(\x03R\x0e\x62ucketDuration\x12!\n\x0cquote_denoms\x18\x03 \x03(\tR\x0bquoteDenoms\x12I\n\ntier_infos\x18\x04 \x03(\x0b\x32*.injective.exchange.v2.FeeDiscountTierInfoR\ttierInfos\x12\x36\n\x17\x64isqualified_market_ids\x18\x05 \x03(\tR\x15\x64isqualifiedMarketIds\"M\n\x12\x46\x65\x65\x44iscountTierTTL\x12\x12\n\x04tier\x18\x01 \x01(\x04R\x04tier\x12#\n\rttl_timestamp\x18\x02 \x01(\x03R\x0cttlTimestamp\"\x91\x01\n\x0e\x41\x63\x63ountRewards\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12\x65\n\x07rewards\x18\x02 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x07rewards\"\x81\x01\n\x0cTradeRecords\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12T\n\x14latest_trade_records\x18\x02 \x03(\x0b\x32\".injective.exchange.v2.TradeRecordR\x12latestTradeRecords\"6\n\rSubaccountIDs\x12%\n\x0esubaccount_ids\x18\x01 \x03(\x0cR\rsubaccountIds\"\xa7\x01\n\x0bTradeRecord\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12?\n\x08quantity\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08quantity\"m\n\x05Level\x12\x31\n\x01p\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01p\x12\x31\n\x01q\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x01q\"\x92\x01\n\x1f\x41ggregateSubaccountVolumeRecord\x12#\n\rsubaccount_id\x18\x01 \x01(\tR\x0csubaccountId\x12J\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32#.injective.exchange.v2.MarketVolumeR\rmarketVolumes\"\x84\x01\n\x1c\x41ggregateAccountVolumeRecord\x12\x18\n\x07\x61\x63\x63ount\x18\x01 \x01(\tR\x07\x61\x63\x63ount\x12J\n\x0emarket_volumes\x18\x02 \x03(\x0b\x32#.injective.exchange.v2.MarketVolumeR\rmarketVolumes\"A\n\rDenomDecimals\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x1a\n\x08\x64\x65\x63imals\x18\x02 \x01(\x04R\x08\x64\x65\x63imals\"e\n\x12GrantAuthorization\x12\x18\n\x07grantee\x18\x01 \x01(\tR\x07grantee\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"^\n\x0b\x41\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"\x90\x01\n\x0e\x45\x66\x66\x65\x63tiveGrant\x12\x18\n\x07granter\x18\x01 \x01(\tR\x07granter\x12I\n\x11net_granted_stake\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0fnetGrantedStake\x12\x19\n\x08is_valid\x18\x03 \x01(\x08R\x07isValid\"p\n\x10\x44\x65nomMinNotional\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x46\n\x0cmin_notional\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bminNotional*\xd6\x01\n\rExecutionType\x12\x1c\n\x18UnspecifiedExecutionType\x10\x00\x12\n\n\x06Market\x10\x01\x12\r\n\tLimitFill\x10\x02\x12\x1a\n\x16LimitMatchRestingOrder\x10\x03\x12\x16\n\x12LimitMatchNewOrder\x10\x04\x12\x15\n\x11MarketLiquidation\x10\x05\x12\x1a\n\x16\x45xpiryMarketSettlement\x10\x06\x12\x16\n\x12OffsettingPosition\x10\x07\x12\r\n\tSynthetic\x10\x08\x42\xf3\x01\n\x19\x63om.injective.exchange.v2B\rExchangeProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types/v2\xa2\x02\x03IEX\xaa\x02\x15Injective.Exchange.V2\xca\x02\x15Injective\\Exchange\\V2\xe2\x02!Injective\\Exchange\\V2\\GPBMetadata\xea\x02\x17Injective::Exchange::V2b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -70,11 +70,13 @@ _globals['_PARAMS'].fields_by_name['minimal_protocol_fee_rate']._loaded_options = None _globals['_PARAMS'].fields_by_name['minimal_protocol_fee_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_PARAMS'].fields_by_name['inj_auction_max_cap']._loaded_options = None - _globals['_PARAMS'].fields_by_name['inj_auction_max_cap']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_PARAMS'].fields_by_name['inj_auction_max_cap']._serialized_options = b'\030\001\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' _globals['_PARAMS'].fields_by_name['default_reduce_margin_ratio']._loaded_options = None _globals['_PARAMS'].fields_by_name['default_reduce_margin_ratio']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_PARAMS'].fields_by_name['enforced_restrictions_contracts']._loaded_options = None - _globals['_PARAMS'].fields_by_name['enforced_restrictions_contracts']._serialized_options = b'\310\336\037\000' + _globals['_PARAMS'].fields_by_name['deprecated_enforced_restrictions_contracts']._loaded_options = None + _globals['_PARAMS'].fields_by_name['deprecated_enforced_restrictions_contracts']._serialized_options = b'\310\336\037\000' + _globals['_PARAMS'].fields_by_name['white_knight_liquidator_reward_share_rate']._loaded_options = None + _globals['_PARAMS'].fields_by_name['white_knight_liquidator_reward_share_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_PARAMS']._loaded_options = None _globals['_PARAMS']._serialized_options = b'\350\240\037\001\212\347\260*\017exchange/Params' _globals['_MIDPRICEANDTOB'].fields_by_name['mid_price']._loaded_options = None @@ -161,80 +163,80 @@ _globals['_EFFECTIVEGRANT'].fields_by_name['net_granted_stake']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' _globals['_DENOMMINNOTIONAL'].fields_by_name['min_notional']._loaded_options = None _globals['_DENOMMINNOTIONAL'].fields_by_name['min_notional']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_EXECUTIONTYPE']._serialized_start=9867 - _globals['_EXECUTIONTYPE']._serialized_end=10081 + _globals['_EXECUTIONTYPE']._serialized_start=10074 + _globals['_EXECUTIONTYPE']._serialized_end=10288 _globals['_ENFORCEDRESTRICTIONSCONTRACT']._serialized_start=274 _globals['_ENFORCEDRESTRICTIONSCONTRACT']._serialized_end=431 _globals['_PARAMS']._serialized_start=434 - _globals['_PARAMS']._serialized_end=3787 - _globals['_NEXTFUNDINGTIMESTAMP']._serialized_start=3789 - _globals['_NEXTFUNDINGTIMESTAMP']._serialized_end=3850 - _globals['_MIDPRICEANDTOB']._serialized_start=3853 - _globals['_MIDPRICEANDTOB']._serialized_end=4087 - _globals['_DEPOSIT']._serialized_start=4090 - _globals['_DEPOSIT']._serialized_end=4255 - _globals['_SUBACCOUNTTRADENONCE']._serialized_start=4257 - _globals['_SUBACCOUNTTRADENONCE']._serialized_end=4301 - _globals['_SUBACCOUNTORDER']._serialized_start=4304 - _globals['_SUBACCOUNTORDER']._serialized_end=4499 - _globals['_SUBACCOUNTORDERDATA']._serialized_start=4501 - _globals['_SUBACCOUNTORDERDATA']._serialized_end=4615 - _globals['_POSITION']._serialized_start=4618 - _globals['_POSITION']._serialized_end=4943 - _globals['_BALANCE']._serialized_start=4946 - _globals['_BALANCE']._serialized_end=5084 - _globals['_DERIVATIVEPOSITION']._serialized_start=5087 - _globals['_DERIVATIVEPOSITION']._serialized_end=5244 - _globals['_MARKETORDERINDICATOR']._serialized_start=5246 - _globals['_MARKETORDERINDICATOR']._serialized_end=5319 - _globals['_TRADELOG']._serialized_start=5322 - _globals['_TRADELOG']._serialized_end=5655 - _globals['_POSITIONDELTA']._serialized_start=5658 - _globals['_POSITIONDELTA']._serialized_end=5940 - _globals['_DERIVATIVETRADELOG']._serialized_start=5943 - _globals['_DERIVATIVETRADELOG']._serialized_end=6355 - _globals['_SUBACCOUNTPOSITION']._serialized_start=6357 - _globals['_SUBACCOUNTPOSITION']._serialized_end=6475 - _globals['_SUBACCOUNTDEPOSIT']._serialized_start=6477 - _globals['_SUBACCOUNTDEPOSIT']._serialized_end=6591 - _globals['_DEPOSITUPDATE']._serialized_start=6593 - _globals['_DEPOSITUPDATE']._serialized_end=6700 - _globals['_POINTSMULTIPLIER']._serialized_start=6703 - _globals['_POINTSMULTIPLIER']._serialized_end=6907 - _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_start=6910 - _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_end=7282 - _globals['_CAMPAIGNREWARDPOOL']._serialized_start=7285 - _globals['_CAMPAIGNREWARDPOOL']._serialized_end=7473 - _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_start=7476 - _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_end=7768 - _globals['_FEEDISCOUNTTIERINFO']._serialized_start=7771 - _globals['_FEEDISCOUNTTIERINFO']._serialized_end=8091 - _globals['_FEEDISCOUNTSCHEDULE']._serialized_start=8094 - _globals['_FEEDISCOUNTSCHEDULE']._serialized_end=8357 - _globals['_FEEDISCOUNTTIERTTL']._serialized_start=8359 - _globals['_FEEDISCOUNTTIERTTL']._serialized_end=8436 - _globals['_ACCOUNTREWARDS']._serialized_start=8439 - _globals['_ACCOUNTREWARDS']._serialized_end=8584 - _globals['_TRADERECORDS']._serialized_start=8587 - _globals['_TRADERECORDS']._serialized_end=8716 - _globals['_SUBACCOUNTIDS']._serialized_start=8718 - _globals['_SUBACCOUNTIDS']._serialized_end=8772 - _globals['_TRADERECORD']._serialized_start=8775 - _globals['_TRADERECORD']._serialized_end=8942 - _globals['_LEVEL']._serialized_start=8944 - _globals['_LEVEL']._serialized_end=9053 - _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_start=9056 - _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_end=9202 - _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_start=9205 - _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_end=9337 - _globals['_DENOMDECIMALS']._serialized_start=9339 - _globals['_DENOMDECIMALS']._serialized_end=9404 - _globals['_GRANTAUTHORIZATION']._serialized_start=9406 - _globals['_GRANTAUTHORIZATION']._serialized_end=9507 - _globals['_ACTIVEGRANT']._serialized_start=9509 - _globals['_ACTIVEGRANT']._serialized_end=9603 - _globals['_EFFECTIVEGRANT']._serialized_start=9606 - _globals['_EFFECTIVEGRANT']._serialized_end=9750 - _globals['_DENOMMINNOTIONAL']._serialized_start=9752 - _globals['_DENOMMINNOTIONAL']._serialized_end=9864 + _globals['_PARAMS']._serialized_end=3994 + _globals['_NEXTFUNDINGTIMESTAMP']._serialized_start=3996 + _globals['_NEXTFUNDINGTIMESTAMP']._serialized_end=4057 + _globals['_MIDPRICEANDTOB']._serialized_start=4060 + _globals['_MIDPRICEANDTOB']._serialized_end=4294 + _globals['_DEPOSIT']._serialized_start=4297 + _globals['_DEPOSIT']._serialized_end=4462 + _globals['_SUBACCOUNTTRADENONCE']._serialized_start=4464 + _globals['_SUBACCOUNTTRADENONCE']._serialized_end=4508 + _globals['_SUBACCOUNTORDER']._serialized_start=4511 + _globals['_SUBACCOUNTORDER']._serialized_end=4706 + _globals['_SUBACCOUNTORDERDATA']._serialized_start=4708 + _globals['_SUBACCOUNTORDERDATA']._serialized_end=4822 + _globals['_POSITION']._serialized_start=4825 + _globals['_POSITION']._serialized_end=5150 + _globals['_BALANCE']._serialized_start=5153 + _globals['_BALANCE']._serialized_end=5291 + _globals['_DERIVATIVEPOSITION']._serialized_start=5294 + _globals['_DERIVATIVEPOSITION']._serialized_end=5451 + _globals['_MARKETORDERINDICATOR']._serialized_start=5453 + _globals['_MARKETORDERINDICATOR']._serialized_end=5526 + _globals['_TRADELOG']._serialized_start=5529 + _globals['_TRADELOG']._serialized_end=5862 + _globals['_POSITIONDELTA']._serialized_start=5865 + _globals['_POSITIONDELTA']._serialized_end=6147 + _globals['_DERIVATIVETRADELOG']._serialized_start=6150 + _globals['_DERIVATIVETRADELOG']._serialized_end=6562 + _globals['_SUBACCOUNTPOSITION']._serialized_start=6564 + _globals['_SUBACCOUNTPOSITION']._serialized_end=6682 + _globals['_SUBACCOUNTDEPOSIT']._serialized_start=6684 + _globals['_SUBACCOUNTDEPOSIT']._serialized_end=6798 + _globals['_DEPOSITUPDATE']._serialized_start=6800 + _globals['_DEPOSITUPDATE']._serialized_end=6907 + _globals['_POINTSMULTIPLIER']._serialized_start=6910 + _globals['_POINTSMULTIPLIER']._serialized_end=7114 + _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_start=7117 + _globals['_TRADINGREWARDCAMPAIGNBOOSTINFO']._serialized_end=7489 + _globals['_CAMPAIGNREWARDPOOL']._serialized_start=7492 + _globals['_CAMPAIGNREWARDPOOL']._serialized_end=7680 + _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_start=7683 + _globals['_TRADINGREWARDCAMPAIGNINFO']._serialized_end=7975 + _globals['_FEEDISCOUNTTIERINFO']._serialized_start=7978 + _globals['_FEEDISCOUNTTIERINFO']._serialized_end=8298 + _globals['_FEEDISCOUNTSCHEDULE']._serialized_start=8301 + _globals['_FEEDISCOUNTSCHEDULE']._serialized_end=8564 + _globals['_FEEDISCOUNTTIERTTL']._serialized_start=8566 + _globals['_FEEDISCOUNTTIERTTL']._serialized_end=8643 + _globals['_ACCOUNTREWARDS']._serialized_start=8646 + _globals['_ACCOUNTREWARDS']._serialized_end=8791 + _globals['_TRADERECORDS']._serialized_start=8794 + _globals['_TRADERECORDS']._serialized_end=8923 + _globals['_SUBACCOUNTIDS']._serialized_start=8925 + _globals['_SUBACCOUNTIDS']._serialized_end=8979 + _globals['_TRADERECORD']._serialized_start=8982 + _globals['_TRADERECORD']._serialized_end=9149 + _globals['_LEVEL']._serialized_start=9151 + _globals['_LEVEL']._serialized_end=9260 + _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_start=9263 + _globals['_AGGREGATESUBACCOUNTVOLUMERECORD']._serialized_end=9409 + _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_start=9412 + _globals['_AGGREGATEACCOUNTVOLUMERECORD']._serialized_end=9544 + _globals['_DENOMDECIMALS']._serialized_start=9546 + _globals['_DENOMDECIMALS']._serialized_end=9611 + _globals['_GRANTAUTHORIZATION']._serialized_start=9613 + _globals['_GRANTAUTHORIZATION']._serialized_end=9714 + _globals['_ACTIVEGRANT']._serialized_start=9716 + _globals['_ACTIVEGRANT']._serialized_end=9810 + _globals['_EFFECTIVEGRANT']._serialized_start=9813 + _globals['_EFFECTIVEGRANT']._serialized_end=9957 + _globals['_DENOMMINNOTIONAL']._serialized_start=9959 + _globals['_DENOMMINNOTIONAL']._serialized_end=10071 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/insurance/v1beta1/events_pb2.py b/pyinjective/proto/injective/insurance/v1beta1/events_pb2.py index e6d0bcd1..877dcf68 100644 --- a/pyinjective/proto/injective/insurance/v1beta1/events_pb2.py +++ b/pyinjective/proto/injective/insurance/v1beta1/events_pb2.py @@ -17,7 +17,7 @@ from pyinjective.proto.injective.insurance.v1beta1 import insurance_pb2 as injective_dot_insurance_dot_v1beta1_dot_insurance__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(injective/insurance/v1beta1/events.proto\x12\x1binjective.insurance.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a+injective/insurance/v1beta1/insurance.proto\"Z\n\x18\x45ventInsuranceFundUpdate\x12>\n\x04\x66und\x18\x01 \x01(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundR\x04\x66und\"e\n\x16\x45ventRequestRedemption\x12K\n\x08schedule\x18\x01 \x01(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleR\x08schedule\"\xa8\x01\n\x17\x45ventWithdrawRedemption\x12K\n\x08schedule\x18\x01 \x01(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleR\x08schedule\x12@\n\x0bredeem_coin\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\nredeemCoin\"\xc3\x01\n\x0f\x45ventUnderwrite\x12 \n\x0bunderwriter\x18\x01 \x01(\tR\x0bunderwriter\x12\x1a\n\x08marketId\x18\x02 \x01(\tR\x08marketId\x12\x39\n\x07\x64\x65posit\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07\x64\x65posit\x12\x37\n\x06shares\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06shares\"\x9b\x01\n\x16\x45ventInsuranceWithdraw\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rmarket_ticker\x18\x02 \x01(\tR\x0cmarketTicker\x12?\n\nwithdrawal\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\nwithdrawalB\x8d\x02\n\x1f\x63om.injective.insurance.v1beta1B\x0b\x45ventsProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(injective/insurance/v1beta1/events.proto\x12\x1binjective.insurance.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a+injective/insurance/v1beta1/insurance.proto\"Z\n\x18\x45ventInsuranceFundUpdate\x12>\n\x04\x66und\x18\x01 \x01(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundR\x04\x66und\"e\n\x16\x45ventRequestRedemption\x12K\n\x08schedule\x18\x01 \x01(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleR\x08schedule\"\xa8\x01\n\x17\x45ventWithdrawRedemption\x12K\n\x08schedule\x18\x01 \x01(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleR\x08schedule\x12@\n\x0bredeem_coin\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\nredeemCoin\"\x8f\x01\n\x1d\x45ventWithdrawRedemptionFailed\x12K\n\x08schedule\x18\x01 \x01(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleR\x08schedule\x12!\n\x0cwithdraw_err\x18\x02 \x01(\tR\x0bwithdrawErr\"\xc3\x01\n\x0f\x45ventUnderwrite\x12 \n\x0bunderwriter\x18\x01 \x01(\tR\x0bunderwriter\x12\x1a\n\x08marketId\x18\x02 \x01(\tR\x08marketId\x12\x39\n\x07\x64\x65posit\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07\x64\x65posit\x12\x37\n\x06shares\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06shares\"\x9b\x01\n\x16\x45ventInsuranceWithdraw\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\x12#\n\rmarket_ticker\x18\x02 \x01(\tR\x0cmarketTicker\x12?\n\nwithdrawal\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\nwithdrawal\"\x8b\x01\n\x0f\x45ventSetVoucher\x12\x12\n\x04\x61\x64\x64r\x18\x01 \x01(\tR\x04\x61\x64\x64r\x12\x64\n\x07voucher\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x07voucherB\x8d\x02\n\x1f\x63om.injective.insurance.v1beta1B\x0b\x45ventsProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,14 +33,20 @@ _globals['_EVENTUNDERWRITE'].fields_by_name['shares']._serialized_options = b'\310\336\037\000' _globals['_EVENTINSURANCEWITHDRAW'].fields_by_name['withdrawal']._loaded_options = None _globals['_EVENTINSURANCEWITHDRAW'].fields_by_name['withdrawal']._serialized_options = b'\310\336\037\000' + _globals['_EVENTSETVOUCHER'].fields_by_name['voucher']._loaded_options = None + _globals['_EVENTSETVOUCHER'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin' _globals['_EVENTINSURANCEFUNDUPDATE']._serialized_start=172 _globals['_EVENTINSURANCEFUNDUPDATE']._serialized_end=262 _globals['_EVENTREQUESTREDEMPTION']._serialized_start=264 _globals['_EVENTREQUESTREDEMPTION']._serialized_end=365 _globals['_EVENTWITHDRAWREDEMPTION']._serialized_start=368 _globals['_EVENTWITHDRAWREDEMPTION']._serialized_end=536 - _globals['_EVENTUNDERWRITE']._serialized_start=539 - _globals['_EVENTUNDERWRITE']._serialized_end=734 - _globals['_EVENTINSURANCEWITHDRAW']._serialized_start=737 - _globals['_EVENTINSURANCEWITHDRAW']._serialized_end=892 + _globals['_EVENTWITHDRAWREDEMPTIONFAILED']._serialized_start=539 + _globals['_EVENTWITHDRAWREDEMPTIONFAILED']._serialized_end=682 + _globals['_EVENTUNDERWRITE']._serialized_start=685 + _globals['_EVENTUNDERWRITE']._serialized_end=880 + _globals['_EVENTINSURANCEWITHDRAW']._serialized_start=883 + _globals['_EVENTINSURANCEWITHDRAW']._serialized_end=1038 + _globals['_EVENTSETVOUCHER']._serialized_start=1041 + _globals['_EVENTSETVOUCHER']._serialized_end=1180 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/insurance/v1beta1/genesis_pb2.py b/pyinjective/proto/injective/insurance/v1beta1/genesis_pb2.py index 684b7b57..05127fd8 100644 --- a/pyinjective/proto/injective/insurance/v1beta1/genesis_pb2.py +++ b/pyinjective/proto/injective/insurance/v1beta1/genesis_pb2.py @@ -13,10 +13,11 @@ from pyinjective.proto.injective.insurance.v1beta1 import insurance_pb2 as injective_dot_insurance_dot_v1beta1_dot_insurance__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)injective/insurance/v1beta1/genesis.proto\x12\x1binjective.insurance.v1beta1\x1a+injective/insurance/v1beta1/insurance.proto\x1a\x14gogoproto/gogo.proto\"\x82\x03\n\x0cGenesisState\x12\x41\n\x06params\x18\x01 \x01(\x0b\x32#.injective.insurance.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12Y\n\x0finsurance_funds\x18\x02 \x03(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundB\x04\xc8\xde\x1f\x00R\x0einsuranceFunds\x12\x66\n\x13redemption_schedule\x18\x03 \x03(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleB\x04\xc8\xde\x1f\x00R\x12redemptionSchedule\x12-\n\x13next_share_denom_id\x18\x04 \x01(\x04R\x10nextShareDenomId\x12=\n\x1bnext_redemption_schedule_id\x18\x05 \x01(\x04R\x18nextRedemptionScheduleIdB\x8e\x02\n\x1f\x63om.injective.insurance.v1beta1B\x0cGenesisProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)injective/insurance/v1beta1/genesis.proto\x12\x1binjective.insurance.v1beta1\x1a+injective/insurance/v1beta1/insurance.proto\x1a+injective/common/vouchers/v1/vouchers.proto\x1a\x14gogoproto/gogo.proto\"\x9b\x05\n\x0cGenesisState\x12\x41\n\x06params\x18\x01 \x01(\x0b\x32#.injective.insurance.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12Y\n\x0finsurance_funds\x18\x02 \x03(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundB\x04\xc8\xde\x1f\x00R\x0einsuranceFunds\x12\x66\n\x13redemption_schedule\x18\x03 \x03(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleB\x04\xc8\xde\x1f\x00R\x12redemptionSchedule\x12-\n\x13next_share_denom_id\x18\x04 \x01(\x04R\x10nextShareDenomId\x12=\n\x1bnext_redemption_schedule_id\x18\x05 \x01(\x04R\x18nextRedemptionScheduleId\x12{\n\x1b\x66\x61iled_redemption_schedules\x18\x06 \x03(\x0b\x32\x35.injective.insurance.v1beta1.FailedRedemptionScheduleB\x04\xc8\xde\x1f\x00R\x19\x66\x61iledRedemptionSchedules\x12J\n\"next_failed_redemption_schedule_id\x18\x07 \x01(\x04R\x1enextFailedRedemptionScheduleId\x12N\n\x08vouchers\x18\x08 \x03(\x0b\x32,.injective.common.vouchers.v1.AddressVoucherB\x04\xc8\xde\x1f\x00R\x08vouchersB\x8e\x02\n\x1f\x63om.injective.insurance.v1beta1B\x0cGenesisProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -30,6 +31,10 @@ _globals['_GENESISSTATE'].fields_by_name['insurance_funds']._serialized_options = b'\310\336\037\000' _globals['_GENESISSTATE'].fields_by_name['redemption_schedule']._loaded_options = None _globals['_GENESISSTATE'].fields_by_name['redemption_schedule']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE']._serialized_start=142 - _globals['_GENESISSTATE']._serialized_end=528 + _globals['_GENESISSTATE'].fields_by_name['failed_redemption_schedules']._loaded_options = None + _globals['_GENESISSTATE'].fields_by_name['failed_redemption_schedules']._serialized_options = b'\310\336\037\000' + _globals['_GENESISSTATE'].fields_by_name['vouchers']._loaded_options = None + _globals['_GENESISSTATE'].fields_by_name['vouchers']._serialized_options = b'\310\336\037\000' + _globals['_GENESISSTATE']._serialized_start=187 + _globals['_GENESISSTATE']._serialized_end=854 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/insurance/v1beta1/insurance_pb2.py b/pyinjective/proto/injective/insurance/v1beta1/insurance_pb2.py index f62013cb..77dc7ba7 100644 --- a/pyinjective/proto/injective/insurance/v1beta1/insurance_pb2.py +++ b/pyinjective/proto/injective/insurance/v1beta1/insurance_pb2.py @@ -17,10 +17,11 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 from pyinjective.proto.injective.oracle.v1beta1 import oracle_pb2 as injective_dot_oracle_dot_v1beta1_dot_oracle__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+injective/insurance/v1beta1/insurance.proto\x12\x1binjective.insurance.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a\x11\x61mino/amino.proto\"\xd7\x01\n\x06Params\x12\xb1\x01\n)default_redemption_notice_period_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB<\xc8\xde\x1f\x00\xf2\xde\x1f\x30yaml:\"default_redemption_notice_period_duration\"\x98\xdf\x1f\x01R%defaultRedemptionNoticePeriodDuration:\x19\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x10insurance/Params\"\xec\x04\n\rInsuranceFund\x12#\n\rdeposit_denom\x18\x01 \x01(\tR\x0c\x64\x65positDenom\x12;\n\x1ainsurance_pool_token_denom\x18\x02 \x01(\tR\x17insurancePoolTokenDenom\x12\x9a\x01\n!redemption_notice_period_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB4\xc8\xde\x1f\x00\xf2\xde\x1f(yaml:\"redemption_notice_period_duration\"\x98\xdf\x1f\x01R\x1eredemptionNoticePeriodDuration\x12\x37\n\x07\x62\x61lance\x18\x04 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x07\x62\x61lance\x12>\n\x0btotal_share\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\ntotalShare\x12\x1b\n\tmarket_id\x18\x06 \x01(\tR\x08marketId\x12#\n\rmarket_ticker\x18\x07 \x01(\tR\x0cmarketTicker\x12\x1f\n\x0boracle_base\x18\x08 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\t \x01(\tR\x0boracleQuote\x12\x45\n\x0boracle_type\x18\n \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12\x16\n\x06\x65xpiry\x18\x0b \x01(\x03R\x06\x65xpiry\"\xb1\x02\n\x12RedemptionSchedule\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12\x1a\n\x08marketId\x18\x02 \x01(\tR\x08marketId\x12\x1a\n\x08redeemer\x18\x03 \x01(\tR\x08redeemer\x12\x84\x01\n\x19\x63laimable_redemption_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB,\xc8\xde\x1f\x00\xf2\xde\x1f yaml:\"claimable_redemption_time\"\x90\xdf\x1f\x01R\x17\x63laimableRedemptionTime\x12L\n\x11redemption_amount\x18\x05 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x10redemptionAmountB\x90\x02\n\x1f\x63om.injective.insurance.v1beta1B\x0eInsuranceProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+injective/insurance/v1beta1/insurance.proto\x12\x1binjective.insurance.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a+injective/common/vouchers/v1/vouchers.proto\x1a\x11\x61mino/amino.proto\"\xd7\x01\n\x06Params\x12\xb1\x01\n)default_redemption_notice_period_duration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationB<\xc8\xde\x1f\x00\xf2\xde\x1f\x30yaml:\"default_redemption_notice_period_duration\"\x98\xdf\x1f\x01R%defaultRedemptionNoticePeriodDuration:\x19\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x10insurance/Params\"\xec\x04\n\rInsuranceFund\x12#\n\rdeposit_denom\x18\x01 \x01(\tR\x0c\x64\x65positDenom\x12;\n\x1ainsurance_pool_token_denom\x18\x02 \x01(\tR\x17insurancePoolTokenDenom\x12\x9a\x01\n!redemption_notice_period_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB4\xc8\xde\x1f\x00\xf2\xde\x1f(yaml:\"redemption_notice_period_duration\"\x98\xdf\x1f\x01R\x1eredemptionNoticePeriodDuration\x12\x37\n\x07\x62\x61lance\x18\x04 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x07\x62\x61lance\x12>\n\x0btotal_share\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\ntotalShare\x12\x1b\n\tmarket_id\x18\x06 \x01(\tR\x08marketId\x12#\n\rmarket_ticker\x18\x07 \x01(\tR\x0cmarketTicker\x12\x1f\n\x0boracle_base\x18\x08 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\t \x01(\tR\x0boracleQuote\x12\x45\n\x0boracle_type\x18\n \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12\x16\n\x06\x65xpiry\x18\x0b \x01(\x03R\x06\x65xpiry\"\xb1\x02\n\x12RedemptionSchedule\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12\x1a\n\x08marketId\x18\x02 \x01(\tR\x08marketId\x12\x1a\n\x08redeemer\x18\x03 \x01(\tR\x08redeemer\x12\x84\x01\n\x19\x63laimable_redemption_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB,\xc8\xde\x1f\x00\xf2\xde\x1f yaml:\"claimable_redemption_time\"\x90\xdf\x1f\x01R\x17\x63laimableRedemptionTime\x12L\n\x11redemption_amount\x18\x05 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x10redemptionAmount\"\x8f\x01\n\x18\x46\x61iledRedemptionSchedule\x12\x0e\n\x02id\x18\x01 \x01(\x04R\x02id\x12Q\n\x08schedule\x18\x02 \x01(\x0b\x32/.injective.insurance.v1beta1.RedemptionScheduleB\x04\xc8\xde\x1f\x00R\x08schedule\x12\x10\n\x03\x65rr\x18\x03 \x01(\tR\x03\x65rrB\x90\x02\n\x1f\x63om.injective.insurance.v1beta1B\x0eInsuranceProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -42,10 +43,14 @@ _globals['_REDEMPTIONSCHEDULE'].fields_by_name['claimable_redemption_time']._serialized_options = b'\310\336\037\000\362\336\037 yaml:\"claimable_redemption_time\"\220\337\037\001' _globals['_REDEMPTIONSCHEDULE'].fields_by_name['redemption_amount']._loaded_options = None _globals['_REDEMPTIONSCHEDULE'].fields_by_name['redemption_amount']._serialized_options = b'\310\336\037\000' - _globals['_PARAMS']._serialized_start=254 - _globals['_PARAMS']._serialized_end=469 - _globals['_INSURANCEFUND']._serialized_start=472 - _globals['_INSURANCEFUND']._serialized_end=1092 - _globals['_REDEMPTIONSCHEDULE']._serialized_start=1095 - _globals['_REDEMPTIONSCHEDULE']._serialized_end=1400 + _globals['_FAILEDREDEMPTIONSCHEDULE'].fields_by_name['schedule']._loaded_options = None + _globals['_FAILEDREDEMPTIONSCHEDULE'].fields_by_name['schedule']._serialized_options = b'\310\336\037\000' + _globals['_PARAMS']._serialized_start=299 + _globals['_PARAMS']._serialized_end=514 + _globals['_INSURANCEFUND']._serialized_start=517 + _globals['_INSURANCEFUND']._serialized_end=1137 + _globals['_REDEMPTIONSCHEDULE']._serialized_start=1140 + _globals['_REDEMPTIONSCHEDULE']._serialized_end=1445 + _globals['_FAILEDREDEMPTIONSCHEDULE']._serialized_start=1448 + _globals['_FAILEDREDEMPTIONSCHEDULE']._serialized_end=1591 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/insurance/v1beta1/query_pb2.py b/pyinjective/proto/injective/insurance/v1beta1/query_pb2.py index 2562ac5a..8cdac57d 100644 --- a/pyinjective/proto/injective/insurance/v1beta1/query_pb2.py +++ b/pyinjective/proto/injective/insurance/v1beta1/query_pb2.py @@ -14,12 +14,13 @@ from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from pyinjective.proto.injective.insurance.v1beta1 import insurance_pb2 as injective_dot_insurance_dot_v1beta1_dot_insurance__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 from pyinjective.proto.injective.insurance.v1beta1 import genesis_pb2 as injective_dot_insurance_dot_v1beta1_dot_genesis__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'injective/insurance/v1beta1/query.proto\x12\x1binjective.insurance.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a+injective/insurance/v1beta1/insurance.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a)injective/insurance/v1beta1/genesis.proto\"\x1d\n\x1bQueryInsuranceParamsRequest\"a\n\x1cQueryInsuranceParamsResponse\x12\x41\n\x06params\x18\x01 \x01(\x0b\x32#.injective.insurance.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"8\n\x19QueryInsuranceFundRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\"\\\n\x1aQueryInsuranceFundResponse\x12>\n\x04\x66und\x18\x01 \x01(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundR\x04\x66und\"\x1c\n\x1aQueryInsuranceFundsRequest\"e\n\x1bQueryInsuranceFundsResponse\x12\x46\n\x05\x66unds\x18\x01 \x03(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundB\x04\xc8\xde\x1f\x00R\x05\x66unds\"X\n QueryEstimatedRedemptionsRequest\x12\x1a\n\x08marketId\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"\\\n!QueryEstimatedRedemptionsResponse\x12\x37\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\"V\n\x1eQueryPendingRedemptionsRequest\x12\x1a\n\x08marketId\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"Z\n\x1fQueryPendingRedemptionsResponse\x12\x37\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\"\x19\n\x17QueryModuleStateRequest\"[\n\x18QueryModuleStateResponse\x12?\n\x05state\x18\x01 \x01(\x0b\x32).injective.insurance.v1beta1.GenesisStateR\x05state2\x96\t\n\x05Query\x12\xb3\x01\n\x0fInsuranceParams\x12\x38.injective.insurance.v1beta1.QueryInsuranceParamsRequest\x1a\x39.injective.insurance.v1beta1.QueryInsuranceParamsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/injective/insurance/v1beta1/params\x12\xc1\x01\n\rInsuranceFund\x12\x36.injective.insurance.v1beta1.QueryInsuranceFundRequest\x1a\x37.injective.insurance.v1beta1.QueryInsuranceFundResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/injective/insurance/v1beta1/insurance_fund/{market_id}\x12\xb9\x01\n\x0eInsuranceFunds\x12\x37.injective.insurance.v1beta1.QueryInsuranceFundsRequest\x1a\x38.injective.insurance.v1beta1.QueryInsuranceFundsResponse\"4\x82\xd3\xe4\x93\x02.\x12,/injective/insurance/v1beta1/insurance_funds\x12\xd1\x01\n\x14\x45stimatedRedemptions\x12=.injective.insurance.v1beta1.QueryEstimatedRedemptionsRequest\x1a>.injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/injective/insurance/v1beta1/estimated_redemptions\x12\xc9\x01\n\x12PendingRedemptions\x12;.injective.insurance.v1beta1.QueryPendingRedemptionsRequest\x1a<.injective.insurance.v1beta1.QueryPendingRedemptionsResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/injective/insurance/v1beta1/pending_redemptions\x12\xb6\x01\n\x14InsuranceModuleState\x12\x34.injective.insurance.v1beta1.QueryModuleStateRequest\x1a\x35.injective.insurance.v1beta1.QueryModuleStateResponse\"1\x82\xd3\xe4\x93\x02+\x12)/injective/insurance/v1beta1/module_stateB\x8c\x02\n\x1f\x63om.injective.insurance.v1beta1B\nQueryProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'injective/insurance/v1beta1/query.proto\x12\x1binjective.insurance.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a+injective/insurance/v1beta1/insurance.proto\x1a+injective/common/vouchers/v1/vouchers.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a)injective/insurance/v1beta1/genesis.proto\"\x1d\n\x1bQueryInsuranceParamsRequest\"a\n\x1cQueryInsuranceParamsResponse\x12\x41\n\x06params\x18\x01 \x01(\x0b\x32#.injective.insurance.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"8\n\x19QueryInsuranceFundRequest\x12\x1b\n\tmarket_id\x18\x01 \x01(\tR\x08marketId\"\\\n\x1aQueryInsuranceFundResponse\x12>\n\x04\x66und\x18\x01 \x01(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundR\x04\x66und\"\x1c\n\x1aQueryInsuranceFundsRequest\"e\n\x1bQueryInsuranceFundsResponse\x12\x46\n\x05\x66unds\x18\x01 \x03(\x0b\x32*.injective.insurance.v1beta1.InsuranceFundB\x04\xc8\xde\x1f\x00R\x05\x66unds\"X\n QueryEstimatedRedemptionsRequest\x12\x1a\n\x08marketId\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"\\\n!QueryEstimatedRedemptionsResponse\x12\x37\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\"V\n\x1eQueryPendingRedemptionsRequest\x12\x1a\n\x08marketId\x18\x01 \x01(\tR\x08marketId\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"Z\n\x1fQueryPendingRedemptionsResponse\x12\x37\n\x06\x61mount\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\"\x19\n\x17QueryModuleStateRequest\"[\n\x18QueryModuleStateResponse\x12?\n\x05state\x18\x01 \x01(\x0b\x32).injective.insurance.v1beta1.GenesisStateR\x05state\"\x1f\n\x1dQueryFailedRedemptionsRequest\"{\n\x1eQueryFailedRedemptionsResponse\x12Y\n\tschedules\x18\x01 \x03(\x0b\x32\x35.injective.insurance.v1beta1.FailedRedemptionScheduleB\x04\xc8\xde\x1f\x00R\tschedules\",\n\x14QueryVouchersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"g\n\x15QueryVouchersResponse\x12N\n\x08vouchers\x18\x01 \x03(\x0b\x32,.injective.common.vouchers.v1.AddressVoucherB\x04\xc8\xde\x1f\x00R\x08vouchers\"E\n\x13QueryVoucherRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"|\n\x14QueryVoucherResponse\x12\x64\n\x07voucher\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x07voucher2\xa0\r\n\x05Query\x12\xb3\x01\n\x0fInsuranceParams\x12\x38.injective.insurance.v1beta1.QueryInsuranceParamsRequest\x1a\x39.injective.insurance.v1beta1.QueryInsuranceParamsResponse\"+\x82\xd3\xe4\x93\x02%\x12#/injective/insurance/v1beta1/params\x12\xc1\x01\n\rInsuranceFund\x12\x36.injective.insurance.v1beta1.QueryInsuranceFundRequest\x1a\x37.injective.insurance.v1beta1.QueryInsuranceFundResponse\"?\x82\xd3\xe4\x93\x02\x39\x12\x37/injective/insurance/v1beta1/insurance_fund/{market_id}\x12\xb9\x01\n\x0eInsuranceFunds\x12\x37.injective.insurance.v1beta1.QueryInsuranceFundsRequest\x1a\x38.injective.insurance.v1beta1.QueryInsuranceFundsResponse\"4\x82\xd3\xe4\x93\x02.\x12,/injective/insurance/v1beta1/insurance_funds\x12\xd1\x01\n\x14\x45stimatedRedemptions\x12=.injective.insurance.v1beta1.QueryEstimatedRedemptionsRequest\x1a>.injective.insurance.v1beta1.QueryEstimatedRedemptionsResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/injective/insurance/v1beta1/estimated_redemptions\x12\xc9\x01\n\x12PendingRedemptions\x12;.injective.insurance.v1beta1.QueryPendingRedemptionsRequest\x1a<.injective.insurance.v1beta1.QueryPendingRedemptionsResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/injective/insurance/v1beta1/pending_redemptions\x12\xb6\x01\n\x14InsuranceModuleState\x12\x34.injective.insurance.v1beta1.QueryModuleStateRequest\x1a\x35.injective.insurance.v1beta1.QueryModuleStateResponse\"1\x82\xd3\xe4\x93\x02+\x12)/injective/insurance/v1beta1/module_state\x12\xc5\x01\n\x11\x46\x61iledRedemptions\x12:.injective.insurance.v1beta1.QueryFailedRedemptionsRequest\x1a;.injective.insurance.v1beta1.QueryFailedRedemptionsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//injective/insurance/v1beta1/failed_redemptions\x12\xa0\x01\n\x08Vouchers\x12\x31.injective.insurance.v1beta1.QueryVouchersRequest\x1a\x32.injective.insurance.v1beta1.QueryVouchersResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/injective/insurance/v1beta1/vouchers\x12\x9c\x01\n\x07Voucher\x12\x30.injective.insurance.v1beta1.QueryVoucherRequest\x1a\x31.injective.insurance.v1beta1.QueryVoucherResponse\",\x82\xd3\xe4\x93\x02&\x12$/injective/insurance/v1beta1/voucherB\x8c\x02\n\x1f\x63om.injective.insurance.v1beta1B\nQueryProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -35,6 +36,12 @@ _globals['_QUERYESTIMATEDREDEMPTIONSRESPONSE'].fields_by_name['amount']._serialized_options = b'\310\336\037\000' _globals['_QUERYPENDINGREDEMPTIONSRESPONSE'].fields_by_name['amount']._loaded_options = None _globals['_QUERYPENDINGREDEMPTIONSRESPONSE'].fields_by_name['amount']._serialized_options = b'\310\336\037\000' + _globals['_QUERYFAILEDREDEMPTIONSRESPONSE'].fields_by_name['schedules']._loaded_options = None + _globals['_QUERYFAILEDREDEMPTIONSRESPONSE'].fields_by_name['schedules']._serialized_options = b'\310\336\037\000' + _globals['_QUERYVOUCHERSRESPONSE'].fields_by_name['vouchers']._loaded_options = None + _globals['_QUERYVOUCHERSRESPONSE'].fields_by_name['vouchers']._serialized_options = b'\310\336\037\000' + _globals['_QUERYVOUCHERRESPONSE'].fields_by_name['voucher']._loaded_options = None + _globals['_QUERYVOUCHERRESPONSE'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin' _globals['_QUERY'].methods_by_name['InsuranceParams']._loaded_options = None _globals['_QUERY'].methods_by_name['InsuranceParams']._serialized_options = b'\202\323\344\223\002%\022#/injective/insurance/v1beta1/params' _globals['_QUERY'].methods_by_name['InsuranceFund']._loaded_options = None @@ -47,30 +54,48 @@ _globals['_QUERY'].methods_by_name['PendingRedemptions']._serialized_options = b'\202\323\344\223\0022\0220/injective/insurance/v1beta1/pending_redemptions' _globals['_QUERY'].methods_by_name['InsuranceModuleState']._loaded_options = None _globals['_QUERY'].methods_by_name['InsuranceModuleState']._serialized_options = b'\202\323\344\223\002+\022)/injective/insurance/v1beta1/module_state' - _globals['_QUERYINSURANCEPARAMSREQUEST']._serialized_start=244 - _globals['_QUERYINSURANCEPARAMSREQUEST']._serialized_end=273 - _globals['_QUERYINSURANCEPARAMSRESPONSE']._serialized_start=275 - _globals['_QUERYINSURANCEPARAMSRESPONSE']._serialized_end=372 - _globals['_QUERYINSURANCEFUNDREQUEST']._serialized_start=374 - _globals['_QUERYINSURANCEFUNDREQUEST']._serialized_end=430 - _globals['_QUERYINSURANCEFUNDRESPONSE']._serialized_start=432 - _globals['_QUERYINSURANCEFUNDRESPONSE']._serialized_end=524 - _globals['_QUERYINSURANCEFUNDSREQUEST']._serialized_start=526 - _globals['_QUERYINSURANCEFUNDSREQUEST']._serialized_end=554 - _globals['_QUERYINSURANCEFUNDSRESPONSE']._serialized_start=556 - _globals['_QUERYINSURANCEFUNDSRESPONSE']._serialized_end=657 - _globals['_QUERYESTIMATEDREDEMPTIONSREQUEST']._serialized_start=659 - _globals['_QUERYESTIMATEDREDEMPTIONSREQUEST']._serialized_end=747 - _globals['_QUERYESTIMATEDREDEMPTIONSRESPONSE']._serialized_start=749 - _globals['_QUERYESTIMATEDREDEMPTIONSRESPONSE']._serialized_end=841 - _globals['_QUERYPENDINGREDEMPTIONSREQUEST']._serialized_start=843 - _globals['_QUERYPENDINGREDEMPTIONSREQUEST']._serialized_end=929 - _globals['_QUERYPENDINGREDEMPTIONSRESPONSE']._serialized_start=931 - _globals['_QUERYPENDINGREDEMPTIONSRESPONSE']._serialized_end=1021 - _globals['_QUERYMODULESTATEREQUEST']._serialized_start=1023 - _globals['_QUERYMODULESTATEREQUEST']._serialized_end=1048 - _globals['_QUERYMODULESTATERESPONSE']._serialized_start=1050 - _globals['_QUERYMODULESTATERESPONSE']._serialized_end=1141 - _globals['_QUERY']._serialized_start=1144 - _globals['_QUERY']._serialized_end=2318 + _globals['_QUERY'].methods_by_name['FailedRedemptions']._loaded_options = None + _globals['_QUERY'].methods_by_name['FailedRedemptions']._serialized_options = b'\202\323\344\223\0021\022//injective/insurance/v1beta1/failed_redemptions' + _globals['_QUERY'].methods_by_name['Vouchers']._loaded_options = None + _globals['_QUERY'].methods_by_name['Vouchers']._serialized_options = b'\202\323\344\223\002\'\022%/injective/insurance/v1beta1/vouchers' + _globals['_QUERY'].methods_by_name['Voucher']._loaded_options = None + _globals['_QUERY'].methods_by_name['Voucher']._serialized_options = b'\202\323\344\223\002&\022$/injective/insurance/v1beta1/voucher' + _globals['_QUERYINSURANCEPARAMSREQUEST']._serialized_start=289 + _globals['_QUERYINSURANCEPARAMSREQUEST']._serialized_end=318 + _globals['_QUERYINSURANCEPARAMSRESPONSE']._serialized_start=320 + _globals['_QUERYINSURANCEPARAMSRESPONSE']._serialized_end=417 + _globals['_QUERYINSURANCEFUNDREQUEST']._serialized_start=419 + _globals['_QUERYINSURANCEFUNDREQUEST']._serialized_end=475 + _globals['_QUERYINSURANCEFUNDRESPONSE']._serialized_start=477 + _globals['_QUERYINSURANCEFUNDRESPONSE']._serialized_end=569 + _globals['_QUERYINSURANCEFUNDSREQUEST']._serialized_start=571 + _globals['_QUERYINSURANCEFUNDSREQUEST']._serialized_end=599 + _globals['_QUERYINSURANCEFUNDSRESPONSE']._serialized_start=601 + _globals['_QUERYINSURANCEFUNDSRESPONSE']._serialized_end=702 + _globals['_QUERYESTIMATEDREDEMPTIONSREQUEST']._serialized_start=704 + _globals['_QUERYESTIMATEDREDEMPTIONSREQUEST']._serialized_end=792 + _globals['_QUERYESTIMATEDREDEMPTIONSRESPONSE']._serialized_start=794 + _globals['_QUERYESTIMATEDREDEMPTIONSRESPONSE']._serialized_end=886 + _globals['_QUERYPENDINGREDEMPTIONSREQUEST']._serialized_start=888 + _globals['_QUERYPENDINGREDEMPTIONSREQUEST']._serialized_end=974 + _globals['_QUERYPENDINGREDEMPTIONSRESPONSE']._serialized_start=976 + _globals['_QUERYPENDINGREDEMPTIONSRESPONSE']._serialized_end=1066 + _globals['_QUERYMODULESTATEREQUEST']._serialized_start=1068 + _globals['_QUERYMODULESTATEREQUEST']._serialized_end=1093 + _globals['_QUERYMODULESTATERESPONSE']._serialized_start=1095 + _globals['_QUERYMODULESTATERESPONSE']._serialized_end=1186 + _globals['_QUERYFAILEDREDEMPTIONSREQUEST']._serialized_start=1188 + _globals['_QUERYFAILEDREDEMPTIONSREQUEST']._serialized_end=1219 + _globals['_QUERYFAILEDREDEMPTIONSRESPONSE']._serialized_start=1221 + _globals['_QUERYFAILEDREDEMPTIONSRESPONSE']._serialized_end=1344 + _globals['_QUERYVOUCHERSREQUEST']._serialized_start=1346 + _globals['_QUERYVOUCHERSREQUEST']._serialized_end=1390 + _globals['_QUERYVOUCHERSRESPONSE']._serialized_start=1392 + _globals['_QUERYVOUCHERSRESPONSE']._serialized_end=1495 + _globals['_QUERYVOUCHERREQUEST']._serialized_start=1497 + _globals['_QUERYVOUCHERREQUEST']._serialized_end=1566 + _globals['_QUERYVOUCHERRESPONSE']._serialized_start=1568 + _globals['_QUERYVOUCHERRESPONSE']._serialized_end=1692 + _globals['_QUERY']._serialized_start=1695 + _globals['_QUERY']._serialized_end=3391 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/insurance/v1beta1/query_pb2_grpc.py b/pyinjective/proto/injective/insurance/v1beta1/query_pb2_grpc.py index 3404f464..d588a009 100644 --- a/pyinjective/proto/injective/insurance/v1beta1/query_pb2_grpc.py +++ b/pyinjective/proto/injective/insurance/v1beta1/query_pb2_grpc.py @@ -45,6 +45,21 @@ def __init__(self, channel): request_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryModuleStateRequest.SerializeToString, response_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryModuleStateResponse.FromString, _registered_method=True) + self.FailedRedemptions = channel.unary_unary( + '/injective.insurance.v1beta1.Query/FailedRedemptions', + request_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryFailedRedemptionsRequest.SerializeToString, + response_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryFailedRedemptionsResponse.FromString, + _registered_method=True) + self.Vouchers = channel.unary_unary( + '/injective.insurance.v1beta1.Query/Vouchers', + request_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVouchersRequest.SerializeToString, + response_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVouchersResponse.FromString, + _registered_method=True) + self.Voucher = channel.unary_unary( + '/injective.insurance.v1beta1.Query/Voucher', + request_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVoucherRequest.SerializeToString, + response_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVoucherResponse.FromString, + _registered_method=True) class QueryServicer(object): @@ -94,6 +109,27 @@ def InsuranceModuleState(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def FailedRedemptions(self, request, context): + """Retrieves all failed redemption schedules + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Vouchers(self, request, context): + """Vouchers retrieves all outstanding vouchers; pass an empty denom to get all + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Voucher(self, request, context): + """Voucher retrieves a single voucher for a given denom and address + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_QueryServicer_to_server(servicer, server): rpc_method_handlers = { @@ -127,6 +163,21 @@ def add_QueryServicer_to_server(servicer, server): request_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryModuleStateRequest.FromString, response_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryModuleStateResponse.SerializeToString, ), + 'FailedRedemptions': grpc.unary_unary_rpc_method_handler( + servicer.FailedRedemptions, + request_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryFailedRedemptionsRequest.FromString, + response_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryFailedRedemptionsResponse.SerializeToString, + ), + 'Vouchers': grpc.unary_unary_rpc_method_handler( + servicer.Vouchers, + request_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVouchersRequest.FromString, + response_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVouchersResponse.SerializeToString, + ), + 'Voucher': grpc.unary_unary_rpc_method_handler( + servicer.Voucher, + request_deserializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVoucherRequest.FromString, + response_serializer=injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVoucherResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'injective.insurance.v1beta1.Query', rpc_method_handlers) @@ -300,3 +351,84 @@ def InsuranceModuleState(request, timeout, metadata, _registered_method=True) + + @staticmethod + def FailedRedemptions(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective.insurance.v1beta1.Query/FailedRedemptions', + injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryFailedRedemptionsRequest.SerializeToString, + injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryFailedRedemptionsResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Vouchers(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective.insurance.v1beta1.Query/Vouchers', + injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVouchersRequest.SerializeToString, + injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVouchersResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) + + @staticmethod + def Voucher(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective.insurance.v1beta1.Query/Voucher', + injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVoucherRequest.SerializeToString, + injective_dot_insurance_dot_v1beta1_dot_query__pb2.QueryVoucherResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/pyinjective/proto/injective/insurance/v1beta1/tx_pb2.py b/pyinjective/proto/injective/insurance/v1beta1/tx_pb2.py index b46ec667..6fe2c3c2 100644 --- a/pyinjective/proto/injective/insurance/v1beta1/tx_pb2.py +++ b/pyinjective/proto/injective/insurance/v1beta1/tx_pb2.py @@ -21,7 +21,7 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$injective/insurance/v1beta1/tx.proto\x12\x1binjective.insurance.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a+injective/insurance/v1beta1/insurance.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a\x11\x61mino/amino.proto\"\x90\x03\n\x16MsgCreateInsuranceFund\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x16\n\x06ticker\x18\x02 \x01(\tR\x06ticker\x12\x1f\n\x0bquote_denom\x18\x03 \x01(\tR\nquoteDenom\x12\x1f\n\x0boracle_base\x18\x04 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\x05 \x01(\tR\x0boracleQuote\x12\x45\n\x0boracle_type\x18\x06 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x03R\x06\x65xpiry\x12H\n\x0finitial_deposit\x18\x08 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x0einitialDeposit:8\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0* insurance/MsgCreateInsuranceFund\" \n\x1eMsgCreateInsuranceFundResponse\"\xb0\x01\n\rMsgUnderwrite\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x39\n\x07\x64\x65posit\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07\x64\x65posit:/\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x17insurance/MsgUnderwrite\"\x17\n\x15MsgUnderwriteResponse\"\xbc\x01\n\x14MsgRequestRedemption\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x37\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount:6\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x1einsurance/MsgRequestRedemption\"\x1e\n\x1cMsgRequestRedemptionResponse\"\xba\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x41\n\x06params\x18\x02 \x01(\x0b\x32#.injective.insurance.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:,\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x19insurance/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2\xfc\x03\n\x03Msg\x12\x87\x01\n\x13\x43reateInsuranceFund\x12\x33.injective.insurance.v1beta1.MsgCreateInsuranceFund\x1a;.injective.insurance.v1beta1.MsgCreateInsuranceFundResponse\x12l\n\nUnderwrite\x12*.injective.insurance.v1beta1.MsgUnderwrite\x1a\x32.injective.insurance.v1beta1.MsgUnderwriteResponse\x12\x81\x01\n\x11RequestRedemption\x12\x31.injective.insurance.v1beta1.MsgRequestRedemption\x1a\x39.injective.insurance.v1beta1.MsgRequestRedemptionResponse\x12r\n\x0cUpdateParams\x12,.injective.insurance.v1beta1.MsgUpdateParams\x1a\x34.injective.insurance.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x89\x02\n\x1f\x63om.injective.insurance.v1beta1B\x07TxProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$injective/insurance/v1beta1/tx.proto\x12\x1binjective.insurance.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a+injective/insurance/v1beta1/insurance.proto\x1a%injective/oracle/v1beta1/oracle.proto\x1a\x11\x61mino/amino.proto\"\x90\x03\n\x16MsgCreateInsuranceFund\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x16\n\x06ticker\x18\x02 \x01(\tR\x06ticker\x12\x1f\n\x0bquote_denom\x18\x03 \x01(\tR\nquoteDenom\x12\x1f\n\x0boracle_base\x18\x04 \x01(\tR\noracleBase\x12!\n\x0coracle_quote\x18\x05 \x01(\tR\x0boracleQuote\x12\x45\n\x0boracle_type\x18\x06 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\x12\x16\n\x06\x65xpiry\x18\x07 \x01(\x03R\x06\x65xpiry\x12H\n\x0finitial_deposit\x18\x08 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x0einitialDeposit:8\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0* insurance/MsgCreateInsuranceFund\" \n\x1eMsgCreateInsuranceFundResponse\"\xb0\x01\n\rMsgUnderwrite\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x39\n\x07\x64\x65posit\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x07\x64\x65posit:/\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x17insurance/MsgUnderwrite\"\x17\n\x15MsgUnderwriteResponse\"\xbc\x01\n\x14MsgRequestRedemption\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1b\n\tmarket_id\x18\x02 \x01(\tR\x08marketId\x12\x37\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount:6\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x1einsurance/MsgRequestRedemption\"\x1e\n\x1cMsgRequestRedemptionResponse\"\xba\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x41\n\x06params\x18\x02 \x01(\x0b\x32#.injective.insurance.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:,\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x19insurance/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"r\n\x0fMsgClaimVoucher\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom:1\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x19insurance/MsgClaimVoucher\"\x19\n\x17MsgClaimVoucherResponse2\xf0\x04\n\x03Msg\x12\x87\x01\n\x13\x43reateInsuranceFund\x12\x33.injective.insurance.v1beta1.MsgCreateInsuranceFund\x1a;.injective.insurance.v1beta1.MsgCreateInsuranceFundResponse\x12l\n\nUnderwrite\x12*.injective.insurance.v1beta1.MsgUnderwrite\x1a\x32.injective.insurance.v1beta1.MsgUnderwriteResponse\x12\x81\x01\n\x11RequestRedemption\x12\x31.injective.insurance.v1beta1.MsgRequestRedemption\x1a\x39.injective.insurance.v1beta1.MsgRequestRedemptionResponse\x12r\n\x0cUpdateParams\x12,.injective.insurance.v1beta1.MsgUpdateParams\x1a\x34.injective.insurance.v1beta1.MsgUpdateParamsResponse\x12r\n\x0c\x43laimVoucher\x12,.injective.insurance.v1beta1.MsgClaimVoucher\x1a\x34.injective.insurance.v1beta1.MsgClaimVoucherResponse\x1a\x05\x80\xe7\xb0*\x01\x42\x89\x02\n\x1f\x63om.injective.insurance.v1beta1B\x07TxProtoP\x01ZOgithub.com/InjectiveLabs/injective-core/injective-chain/modules/insurance/types\xa2\x02\x03IIX\xaa\x02\x1bInjective.Insurance.V1beta1\xca\x02\x1bInjective\\Insurance\\V1beta1\xe2\x02\'Injective\\Insurance\\V1beta1\\GPBMetadata\xea\x02\x1dInjective::Insurance::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -47,6 +47,8 @@ _globals['_MSGUPDATEPARAMS'].fields_by_name['params']._serialized_options = b'\310\336\037\000' _globals['_MSGUPDATEPARAMS']._loaded_options = None _globals['_MSGUPDATEPARAMS']._serialized_options = b'\202\347\260*\tauthority\212\347\260*\031insurance/MsgUpdateParams' + _globals['_MSGCLAIMVOUCHER']._loaded_options = None + _globals['_MSGCLAIMVOUCHER']._serialized_options = b'\210\240\037\000\350\240\037\000\202\347\260*\006sender\212\347\260*\031insurance/MsgClaimVoucher' _globals['_MSG']._loaded_options = None _globals['_MSG']._serialized_options = b'\200\347\260*\001' _globals['_MSGCREATEINSURANCEFUND']._serialized_start=279 @@ -65,6 +67,10 @@ _globals['_MSGUPDATEPARAMS']._serialized_end=1329 _globals['_MSGUPDATEPARAMSRESPONSE']._serialized_start=1331 _globals['_MSGUPDATEPARAMSRESPONSE']._serialized_end=1356 - _globals['_MSG']._serialized_start=1359 - _globals['_MSG']._serialized_end=1867 + _globals['_MSGCLAIMVOUCHER']._serialized_start=1358 + _globals['_MSGCLAIMVOUCHER']._serialized_end=1472 + _globals['_MSGCLAIMVOUCHERRESPONSE']._serialized_start=1474 + _globals['_MSGCLAIMVOUCHERRESPONSE']._serialized_end=1499 + _globals['_MSG']._serialized_start=1502 + _globals['_MSG']._serialized_end=2126 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/insurance/v1beta1/tx_pb2_grpc.py b/pyinjective/proto/injective/insurance/v1beta1/tx_pb2_grpc.py index b3f99501..604f3166 100644 --- a/pyinjective/proto/injective/insurance/v1beta1/tx_pb2_grpc.py +++ b/pyinjective/proto/injective/insurance/v1beta1/tx_pb2_grpc.py @@ -35,6 +35,11 @@ def __init__(self, channel): request_serializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.SerializeToString, response_deserializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.FromString, _registered_method=True) + self.ClaimVoucher = channel.unary_unary( + '/injective.insurance.v1beta1.Msg/ClaimVoucher', + request_serializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgClaimVoucher.SerializeToString, + response_deserializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgClaimVoucherResponse.FromString, + _registered_method=True) class MsgServicer(object): @@ -70,6 +75,13 @@ def UpdateParams(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') + def ClaimVoucher(self, request, context): + """ClaimVoucher defines a method for claiming an outstanding voucher + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + def add_MsgServicer_to_server(servicer, server): rpc_method_handlers = { @@ -93,6 +105,11 @@ def add_MsgServicer_to_server(servicer, server): request_deserializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgUpdateParams.FromString, response_serializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgUpdateParamsResponse.SerializeToString, ), + 'ClaimVoucher': grpc.unary_unary_rpc_method_handler( + servicer.ClaimVoucher, + request_deserializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgClaimVoucher.FromString, + response_serializer=injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgClaimVoucherResponse.SerializeToString, + ), } generic_handler = grpc.method_handlers_generic_handler( 'injective.insurance.v1beta1.Msg', rpc_method_handlers) @@ -212,3 +229,30 @@ def UpdateParams(request, timeout, metadata, _registered_method=True) + + @staticmethod + def ClaimVoucher(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary( + request, + target, + '/injective.insurance.v1beta1.Msg/ClaimVoucher', + injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgClaimVoucher.SerializeToString, + injective_dot_insurance_dot_v1beta1_dot_tx__pb2.MsgClaimVoucherResponse.FromString, + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/pyinjective/proto/injective/ocr/v1beta1/genesis_pb2.py b/pyinjective/proto/injective/ocr/v1beta1/genesis_pb2.py deleted file mode 100644 index 6fb032f4..00000000 --- a/pyinjective/proto/injective/ocr/v1beta1/genesis_pb2.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/ocr/v1beta1/genesis.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.injective.ocr.v1beta1 import ocr_pb2 as injective_dot_ocr_dot_v1beta1_dot_ocr__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#injective/ocr/v1beta1/genesis.proto\x12\x15injective.ocr.v1beta1\x1a\x1finjective/ocr/v1beta1/ocr.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\x94\x06\n\x0cGenesisState\x12;\n\x06params\x18\x01 \x01(\x0b\x32\x1d.injective.ocr.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12\x44\n\x0c\x66\x65\x65\x64_configs\x18\x02 \x03(\x0b\x32!.injective.ocr.v1beta1.FeedConfigR\x0b\x66\x65\x65\x64\x43onfigs\x12_\n\x17latest_epoch_and_rounds\x18\x03 \x03(\x0b\x32(.injective.ocr.v1beta1.FeedEpochAndRoundR\x14latestEpochAndRounds\x12V\n\x12\x66\x65\x65\x64_transmissions\x18\x04 \x03(\x0b\x32\'.injective.ocr.v1beta1.FeedTransmissionR\x11\x66\x65\x65\x64Transmissions\x12r\n\x1blatest_aggregator_round_ids\x18\x05 \x03(\x0b\x32\x33.injective.ocr.v1beta1.FeedLatestAggregatorRoundIDsR\x18latestAggregatorRoundIds\x12\x44\n\x0creward_pools\x18\x06 \x03(\x0b\x32!.injective.ocr.v1beta1.RewardPoolR\x0brewardPools\x12Y\n\x17\x66\x65\x65\x64_observation_counts\x18\x07 \x03(\x0b\x32!.injective.ocr.v1beta1.FeedCountsR\x15\x66\x65\x65\x64ObservationCounts\x12[\n\x18\x66\x65\x65\x64_transmission_counts\x18\x08 \x03(\x0b\x32!.injective.ocr.v1beta1.FeedCountsR\x16\x66\x65\x65\x64TransmissionCounts\x12V\n\x12pending_payeeships\x18\t \x03(\x0b\x32\'.injective.ocr.v1beta1.PendingPayeeshipR\x11pendingPayeeships\"t\n\x10\x46\x65\x65\x64Transmission\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12G\n\x0ctransmission\x18\x02 \x01(\x0b\x32#.injective.ocr.v1beta1.TransmissionR\x0ctransmission\"z\n\x11\x46\x65\x65\x64\x45pochAndRound\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12L\n\x0f\x65poch_and_round\x18\x02 \x01(\x0b\x32$.injective.ocr.v1beta1.EpochAndRoundR\repochAndRound\"g\n\x1c\x46\x65\x65\x64LatestAggregatorRoundIDs\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12.\n\x13\x61ggregator_round_id\x18\x02 \x01(\x04R\x11\x61ggregatorRoundId\"^\n\nRewardPool\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12\x37\n\x06\x61mount\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\"[\n\nFeedCounts\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12\x34\n\x06\x63ounts\x18\x02 \x03(\x0b\x32\x1c.injective.ocr.v1beta1.CountR\x06\x63ounts\"7\n\x05\x43ount\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12\x14\n\x05\x63ount\x18\x02 \x01(\x04R\x05\x63ount\"t\n\x10PendingPayeeship\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12 \n\x0btransmitter\x18\x02 \x01(\tR\x0btransmitter\x12%\n\x0eproposed_payee\x18\x03 \x01(\tR\rproposedPayeeB\xea\x01\n\x19\x63om.injective.ocr.v1beta1B\x0cGenesisProtoP\x01ZIgithub.com/InjectiveLabs/injective-core/injective-chain/modules/ocr/types\xa2\x02\x03IOX\xaa\x02\x15Injective.Ocr.V1beta1\xca\x02\x15Injective\\Ocr\\V1beta1\xe2\x02!Injective\\Ocr\\V1beta1\\GPBMetadata\xea\x02\x17Injective::Ocr::V1beta1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.ocr.v1beta1.genesis_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\031com.injective.ocr.v1beta1B\014GenesisProtoP\001ZIgithub.com/InjectiveLabs/injective-core/injective-chain/modules/ocr/types\242\002\003IOX\252\002\025Injective.Ocr.V1beta1\312\002\025Injective\\Ocr\\V1beta1\342\002!Injective\\Ocr\\V1beta1\\GPBMetadata\352\002\027Injective::Ocr::V1beta1' - _globals['_GENESISSTATE'].fields_by_name['params']._loaded_options = None - _globals['_GENESISSTATE'].fields_by_name['params']._serialized_options = b'\310\336\037\000' - _globals['_REWARDPOOL'].fields_by_name['amount']._loaded_options = None - _globals['_REWARDPOOL'].fields_by_name['amount']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE']._serialized_start=150 - _globals['_GENESISSTATE']._serialized_end=938 - _globals['_FEEDTRANSMISSION']._serialized_start=940 - _globals['_FEEDTRANSMISSION']._serialized_end=1056 - _globals['_FEEDEPOCHANDROUND']._serialized_start=1058 - _globals['_FEEDEPOCHANDROUND']._serialized_end=1180 - _globals['_FEEDLATESTAGGREGATORROUNDIDS']._serialized_start=1182 - _globals['_FEEDLATESTAGGREGATORROUNDIDS']._serialized_end=1285 - _globals['_REWARDPOOL']._serialized_start=1287 - _globals['_REWARDPOOL']._serialized_end=1381 - _globals['_FEEDCOUNTS']._serialized_start=1383 - _globals['_FEEDCOUNTS']._serialized_end=1474 - _globals['_COUNT']._serialized_start=1476 - _globals['_COUNT']._serialized_end=1531 - _globals['_PENDINGPAYEESHIP']._serialized_start=1533 - _globals['_PENDINGPAYEESHIP']._serialized_end=1649 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/ocr/v1beta1/genesis_pb2_grpc.py b/pyinjective/proto/injective/ocr/v1beta1/genesis_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/injective/ocr/v1beta1/genesis_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/injective/ocr/v1beta1/ocr_pb2.py b/pyinjective/proto/injective/ocr/v1beta1/ocr_pb2.py deleted file mode 100644 index 3bd0c99d..00000000 --- a/pyinjective/proto/injective/ocr/v1beta1/ocr_pb2.py +++ /dev/null @@ -1,114 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/ocr/v1beta1/ocr.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 -from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1finjective/ocr/v1beta1/ocr.proto\x12\x15injective.ocr.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x14gogoproto/gogo.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x11\x61mino/amino.proto\"\x93\x01\n\x06Params\x12\x1d\n\nlink_denom\x18\x01 \x01(\tR\tlinkDenom\x12\x32\n\x15payout_block_interval\x18\x02 \x01(\x04R\x13payoutBlockInterval\x12!\n\x0cmodule_admin\x18\x03 \x01(\tR\x0bmoduleAdmin:\x13\xe8\xa0\x1f\x01\x8a\xe7\xb0*\nocr/Params\"\xaa\x02\n\nFeedConfig\x12\x18\n\x07signers\x18\x01 \x03(\tR\x07signers\x12\"\n\x0ctransmitters\x18\x02 \x03(\tR\x0ctransmitters\x12\x0c\n\x01\x66\x18\x03 \x01(\rR\x01\x66\x12%\n\x0eonchain_config\x18\x04 \x01(\x0cR\ronchainConfig\x12\x36\n\x17offchain_config_version\x18\x05 \x01(\x04R\x15offchainConfigVersion\x12\'\n\x0foffchain_config\x18\x06 \x01(\x0cR\x0eoffchainConfig\x12H\n\rmodule_params\x18\x07 \x01(\x0b\x32#.injective.ocr.v1beta1.ModuleParamsR\x0cmoduleParams\"\xbe\x01\n\x0e\x46\x65\x65\x64\x43onfigInfo\x12\x30\n\x14latest_config_digest\x18\x01 \x01(\x0cR\x12latestConfigDigest\x12\x0c\n\x01\x66\x18\x02 \x01(\rR\x01\x66\x12\x0c\n\x01n\x18\x03 \x01(\rR\x01n\x12!\n\x0c\x63onfig_count\x18\x04 \x01(\x04R\x0b\x63onfigCount\x12;\n\x1alatest_config_block_number\x18\x05 \x01(\x03R\x17latestConfigBlockNumber\"\xff\x03\n\x0cModuleParams\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12\x42\n\nmin_answer\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\tminAnswer\x12\x42\n\nmax_answer\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\tmaxAnswer\x12O\n\x14link_per_observation\x18\x04 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x12linkPerObservation\x12Q\n\x15link_per_transmission\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x13linkPerTransmission\x12\x1d\n\nlink_denom\x18\x06 \x01(\tR\tlinkDenom\x12%\n\x0eunique_reports\x18\x07 \x01(\x08R\runiqueReports\x12 \n\x0b\x64\x65scription\x18\x08 \x01(\tR\x0b\x64\x65scription\x12\x1d\n\nfeed_admin\x18\t \x01(\tR\tfeedAdmin\x12#\n\rbilling_admin\x18\n \x01(\tR\x0c\x62illingAdmin\"\x87\x02\n\x0e\x43ontractConfig\x12!\n\x0c\x63onfig_count\x18\x01 \x01(\x04R\x0b\x63onfigCount\x12\x18\n\x07signers\x18\x02 \x03(\tR\x07signers\x12\"\n\x0ctransmitters\x18\x03 \x03(\tR\x0ctransmitters\x12\x0c\n\x01\x66\x18\x04 \x01(\rR\x01\x66\x12%\n\x0eonchain_config\x18\x05 \x01(\x0cR\ronchainConfig\x12\x36\n\x17offchain_config_version\x18\x06 \x01(\x04R\x15offchainConfigVersion\x12\'\n\x0foffchain_config\x18\x07 \x01(\x0cR\x0eoffchainConfig\"\xc8\x01\n\x11SetConfigProposal\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x39\n\x06\x63onfig\x18\x03 \x01(\x0b\x32!.injective.ocr.v1beta1.FeedConfigR\x06\x63onfig:@\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\x8a\xe7\xb0*\x15ocr/SetConfigProposal\"\xb4\x04\n\x0e\x46\x65\x65\x64Properties\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12\x0c\n\x01\x66\x18\x02 \x01(\rR\x01\x66\x12%\n\x0eonchain_config\x18\x03 \x01(\x0cR\ronchainConfig\x12\x36\n\x17offchain_config_version\x18\x04 \x01(\x04R\x15offchainConfigVersion\x12\'\n\x0foffchain_config\x18\x05 \x01(\x0cR\x0eoffchainConfig\x12\x42\n\nmin_answer\x18\x06 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\tminAnswer\x12\x42\n\nmax_answer\x18\x07 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\tmaxAnswer\x12O\n\x14link_per_observation\x18\x08 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x12linkPerObservation\x12Q\n\x15link_per_transmission\x18\t \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x13linkPerTransmission\x12%\n\x0eunique_reports\x18\n \x01(\x08R\runiqueReports\x12 \n\x0b\x64\x65scription\x18\x0b \x01(\tR\x0b\x64\x65scription\"\xc4\x02\n\x16SetBatchConfigProposal\x12\x14\n\x05title\x18\x01 \x01(\tR\x05title\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x18\n\x07signers\x18\x03 \x03(\tR\x07signers\x12\"\n\x0ctransmitters\x18\x04 \x03(\tR\x0ctransmitters\x12\x1d\n\nlink_denom\x18\x05 \x01(\tR\tlinkDenom\x12N\n\x0f\x66\x65\x65\x64_properties\x18\x06 \x03(\x0b\x32%.injective.ocr.v1beta1.FeedPropertiesR\x0e\x66\x65\x65\x64Properties:E\x88\xa0\x1f\x00\xe8\xa0\x1f\x00\xca\xb4-\x1a\x63osmos.gov.v1beta1.Content\x8a\xe7\xb0*\x1aocr/SetBatchConfigProposal\"2\n\x18OracleObservationsCounts\x12\x16\n\x06\x63ounts\x18\x01 \x03(\rR\x06\x63ounts\"V\n\x11GasReimbursements\x12\x41\n\x0ereimbursements\x18\x01 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinR\x0ereimbursements\"U\n\x05Payee\x12)\n\x10transmitter_addr\x18\x01 \x01(\tR\x0ftransmitterAddr\x12!\n\x0cpayment_addr\x18\x02 \x01(\tR\x0bpaymentAddr\"\xb9\x01\n\x0cTransmission\x12;\n\x06\x61nswer\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06\x61nswer\x12\x35\n\x16observations_timestamp\x18\x02 \x01(\x03R\x15observationsTimestamp\x12\x35\n\x16transmission_timestamp\x18\x03 \x01(\x03R\x15transmissionTimestamp\";\n\rEpochAndRound\x12\x14\n\x05\x65poch\x18\x01 \x01(\x04R\x05\x65poch\x12\x14\n\x05round\x18\x02 \x01(\x04R\x05round\"\xa6\x01\n\x06Report\x12\x35\n\x16observations_timestamp\x18\x01 \x01(\x03R\x15observationsTimestamp\x12\x1c\n\tobservers\x18\x02 \x01(\x0cR\tobservers\x12G\n\x0cobservations\x18\x03 \x03(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cobservations\"\x96\x01\n\x0cReportToSign\x12#\n\rconfig_digest\x18\x01 \x01(\x0cR\x0c\x63onfigDigest\x12\x14\n\x05\x65poch\x18\x02 \x01(\x04R\x05\x65poch\x12\x14\n\x05round\x18\x03 \x01(\x04R\x05round\x12\x1d\n\nextra_hash\x18\x04 \x01(\x0cR\textraHash\x12\x16\n\x06report\x18\x05 \x01(\x0cR\x06report\"\x94\x01\n\x0f\x45ventOraclePaid\x12)\n\x10transmitter_addr\x18\x01 \x01(\tR\x0ftransmitterAddr\x12\x1d\n\npayee_addr\x18\x02 \x01(\tR\tpayeeAddr\x12\x37\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\"\xcc\x01\n\x12\x45ventAnswerUpdated\x12\x37\n\x07\x63urrent\x18\x01 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x07\x63urrent\x12\x38\n\x08round_id\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x07roundId\x12\x43\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\tupdatedAt\"\xad\x01\n\rEventNewRound\x12\x38\n\x08round_id\x18\x01 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x07roundId\x12\x1d\n\nstarted_by\x18\x02 \x01(\tR\tstartedBy\x12\x43\n\nstarted_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xc8\xde\x1f\x00\x90\xdf\x1f\x01R\tstartedAt\"M\n\x10\x45ventTransmitted\x12#\n\rconfig_digest\x18\x01 \x01(\x0cR\x0c\x63onfigDigest\x12\x14\n\x05\x65poch\x18\x02 \x01(\x04R\x05\x65poch\"\xcf\x03\n\x14\x45ventNewTransmission\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12.\n\x13\x61ggregator_round_id\x18\x02 \x01(\rR\x11\x61ggregatorRoundId\x12;\n\x06\x61nswer\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06\x61nswer\x12 \n\x0btransmitter\x18\x04 \x01(\tR\x0btransmitter\x12\x35\n\x16observations_timestamp\x18\x05 \x01(\x03R\x15observationsTimestamp\x12G\n\x0cobservations\x18\x06 \x03(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0cobservations\x12\x1c\n\tobservers\x18\x07 \x01(\x0cR\tobservers\x12#\n\rconfig_digest\x18\x08 \x01(\x0cR\x0c\x63onfigDigest\x12L\n\x0f\x65poch_and_round\x18\t \x01(\x0b\x32$.injective.ocr.v1beta1.EpochAndRoundR\repochAndRound\"\xf9\x01\n\x0e\x45ventConfigSet\x12#\n\rconfig_digest\x18\x01 \x01(\x0cR\x0c\x63onfigDigest\x12?\n\x1cprevious_config_block_number\x18\x02 \x01(\x03R\x19previousConfigBlockNumber\x12\x39\n\x06\x63onfig\x18\x03 \x01(\x0b\x32!.injective.ocr.v1beta1.FeedConfigR\x06\x63onfig\x12\x46\n\x0b\x63onfig_info\x18\x04 \x01(\x0b\x32%.injective.ocr.v1beta1.FeedConfigInfoR\nconfigInfoB\xe6\x01\n\x19\x63om.injective.ocr.v1beta1B\x08OcrProtoP\x01ZIgithub.com/InjectiveLabs/injective-core/injective-chain/modules/ocr/types\xa2\x02\x03IOX\xaa\x02\x15Injective.Ocr.V1beta1\xca\x02\x15Injective\\Ocr\\V1beta1\xe2\x02!Injective\\Ocr\\V1beta1\\GPBMetadata\xea\x02\x17Injective::Ocr::V1beta1b\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.ocr.v1beta1.ocr_pb2', _globals) -if not _descriptor._USE_C_DESCRIPTORS: - _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\031com.injective.ocr.v1beta1B\010OcrProtoP\001ZIgithub.com/InjectiveLabs/injective-core/injective-chain/modules/ocr/types\242\002\003IOX\252\002\025Injective.Ocr.V1beta1\312\002\025Injective\\Ocr\\V1beta1\342\002!Injective\\Ocr\\V1beta1\\GPBMetadata\352\002\027Injective::Ocr::V1beta1' - _globals['_PARAMS']._loaded_options = None - _globals['_PARAMS']._serialized_options = b'\350\240\037\001\212\347\260*\nocr/Params' - _globals['_MODULEPARAMS'].fields_by_name['min_answer']._loaded_options = None - _globals['_MODULEPARAMS'].fields_by_name['min_answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_MODULEPARAMS'].fields_by_name['max_answer']._loaded_options = None - _globals['_MODULEPARAMS'].fields_by_name['max_answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_MODULEPARAMS'].fields_by_name['link_per_observation']._loaded_options = None - _globals['_MODULEPARAMS'].fields_by_name['link_per_observation']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_MODULEPARAMS'].fields_by_name['link_per_transmission']._loaded_options = None - _globals['_MODULEPARAMS'].fields_by_name['link_per_transmission']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_SETCONFIGPROPOSAL']._loaded_options = None - _globals['_SETCONFIGPROPOSAL']._serialized_options = b'\210\240\037\000\350\240\037\000\312\264-\032cosmos.gov.v1beta1.Content\212\347\260*\025ocr/SetConfigProposal' - _globals['_FEEDPROPERTIES'].fields_by_name['min_answer']._loaded_options = None - _globals['_FEEDPROPERTIES'].fields_by_name['min_answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_FEEDPROPERTIES'].fields_by_name['max_answer']._loaded_options = None - _globals['_FEEDPROPERTIES'].fields_by_name['max_answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_FEEDPROPERTIES'].fields_by_name['link_per_observation']._loaded_options = None - _globals['_FEEDPROPERTIES'].fields_by_name['link_per_observation']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_FEEDPROPERTIES'].fields_by_name['link_per_transmission']._loaded_options = None - _globals['_FEEDPROPERTIES'].fields_by_name['link_per_transmission']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_SETBATCHCONFIGPROPOSAL']._loaded_options = None - _globals['_SETBATCHCONFIGPROPOSAL']._serialized_options = b'\210\240\037\000\350\240\037\000\312\264-\032cosmos.gov.v1beta1.Content\212\347\260*\032ocr/SetBatchConfigProposal' - _globals['_TRANSMISSION'].fields_by_name['answer']._loaded_options = None - _globals['_TRANSMISSION'].fields_by_name['answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_REPORT'].fields_by_name['observations']._loaded_options = None - _globals['_REPORT'].fields_by_name['observations']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_EVENTORACLEPAID'].fields_by_name['amount']._loaded_options = None - _globals['_EVENTORACLEPAID'].fields_by_name['amount']._serialized_options = b'\310\336\037\000' - _globals['_EVENTANSWERUPDATED'].fields_by_name['current']._loaded_options = None - _globals['_EVENTANSWERUPDATED'].fields_by_name['current']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_EVENTANSWERUPDATED'].fields_by_name['round_id']._loaded_options = None - _globals['_EVENTANSWERUPDATED'].fields_by_name['round_id']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_EVENTANSWERUPDATED'].fields_by_name['updated_at']._loaded_options = None - _globals['_EVENTANSWERUPDATED'].fields_by_name['updated_at']._serialized_options = b'\310\336\037\000\220\337\037\001' - _globals['_EVENTNEWROUND'].fields_by_name['round_id']._loaded_options = None - _globals['_EVENTNEWROUND'].fields_by_name['round_id']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' - _globals['_EVENTNEWROUND'].fields_by_name['started_at']._loaded_options = None - _globals['_EVENTNEWROUND'].fields_by_name['started_at']._serialized_options = b'\310\336\037\000\220\337\037\001' - _globals['_EVENTNEWTRANSMISSION'].fields_by_name['answer']._loaded_options = None - _globals['_EVENTNEWTRANSMISSION'].fields_by_name['answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_EVENTNEWTRANSMISSION'].fields_by_name['observations']._loaded_options = None - _globals['_EVENTNEWTRANSMISSION'].fields_by_name['observations']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_PARAMS']._serialized_start=192 - _globals['_PARAMS']._serialized_end=339 - _globals['_FEEDCONFIG']._serialized_start=342 - _globals['_FEEDCONFIG']._serialized_end=640 - _globals['_FEEDCONFIGINFO']._serialized_start=643 - _globals['_FEEDCONFIGINFO']._serialized_end=833 - _globals['_MODULEPARAMS']._serialized_start=836 - _globals['_MODULEPARAMS']._serialized_end=1347 - _globals['_CONTRACTCONFIG']._serialized_start=1350 - _globals['_CONTRACTCONFIG']._serialized_end=1613 - _globals['_SETCONFIGPROPOSAL']._serialized_start=1616 - _globals['_SETCONFIGPROPOSAL']._serialized_end=1816 - _globals['_FEEDPROPERTIES']._serialized_start=1819 - _globals['_FEEDPROPERTIES']._serialized_end=2383 - _globals['_SETBATCHCONFIGPROPOSAL']._serialized_start=2386 - _globals['_SETBATCHCONFIGPROPOSAL']._serialized_end=2710 - _globals['_ORACLEOBSERVATIONSCOUNTS']._serialized_start=2712 - _globals['_ORACLEOBSERVATIONSCOUNTS']._serialized_end=2762 - _globals['_GASREIMBURSEMENTS']._serialized_start=2764 - _globals['_GASREIMBURSEMENTS']._serialized_end=2850 - _globals['_PAYEE']._serialized_start=2852 - _globals['_PAYEE']._serialized_end=2937 - _globals['_TRANSMISSION']._serialized_start=2940 - _globals['_TRANSMISSION']._serialized_end=3125 - _globals['_EPOCHANDROUND']._serialized_start=3127 - _globals['_EPOCHANDROUND']._serialized_end=3186 - _globals['_REPORT']._serialized_start=3189 - _globals['_REPORT']._serialized_end=3355 - _globals['_REPORTTOSIGN']._serialized_start=3358 - _globals['_REPORTTOSIGN']._serialized_end=3508 - _globals['_EVENTORACLEPAID']._serialized_start=3511 - _globals['_EVENTORACLEPAID']._serialized_end=3659 - _globals['_EVENTANSWERUPDATED']._serialized_start=3662 - _globals['_EVENTANSWERUPDATED']._serialized_end=3866 - _globals['_EVENTNEWROUND']._serialized_start=3869 - _globals['_EVENTNEWROUND']._serialized_end=4042 - _globals['_EVENTTRANSMITTED']._serialized_start=4044 - _globals['_EVENTTRANSMITTED']._serialized_end=4121 - _globals['_EVENTNEWTRANSMISSION']._serialized_start=4124 - _globals['_EVENTNEWTRANSMISSION']._serialized_end=4587 - _globals['_EVENTCONFIGSET']._serialized_start=4590 - _globals['_EVENTCONFIGSET']._serialized_end=4839 -# @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/ocr/v1beta1/ocr_pb2_grpc.py b/pyinjective/proto/injective/ocr/v1beta1/ocr_pb2_grpc.py deleted file mode 100644 index 2daafffe..00000000 --- a/pyinjective/proto/injective/ocr/v1beta1/ocr_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/pyinjective/proto/injective/ocr/v1beta1/query_pb2.py b/pyinjective/proto/injective/ocr/v1beta1/query_pb2.py deleted file mode 100644 index 3f1bd1a4..00000000 --- a/pyinjective/proto/injective/ocr/v1beta1/query_pb2.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: injective/ocr/v1beta1/query.proto -# Protobuf Python Version: 5.26.1 -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from pyinjective.proto.injective.ocr.v1beta1 import ocr_pb2 as injective_dot_ocr_dot_v1beta1_dot_ocr__pb2 -from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 -from pyinjective.proto.injective.ocr.v1beta1 import genesis_pb2 as injective_dot_ocr_dot_v1beta1_dot_genesis__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!injective/ocr/v1beta1/query.proto\x12\x15injective.ocr.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x1finjective/ocr/v1beta1/ocr.proto\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a#injective/ocr/v1beta1/genesis.proto\"\x14\n\x12QueryParamsRequest\"R\n\x13QueryParamsResponse\x12;\n\x06params\x18\x01 \x01(\x0b\x32\x1d.injective.ocr.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"1\n\x16QueryFeedConfigRequest\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\"\xae\x01\n\x17QueryFeedConfigResponse\x12O\n\x10\x66\x65\x65\x64_config_info\x18\x01 \x01(\x0b\x32%.injective.ocr.v1beta1.FeedConfigInfoR\x0e\x66\x65\x65\x64\x43onfigInfo\x12\x42\n\x0b\x66\x65\x65\x64_config\x18\x02 \x01(\x0b\x32!.injective.ocr.v1beta1.FeedConfigR\nfeedConfig\"5\n\x1aQueryFeedConfigInfoRequest\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\"\xbc\x01\n\x1bQueryFeedConfigInfoResponse\x12O\n\x10\x66\x65\x65\x64_config_info\x18\x01 \x01(\x0b\x32%.injective.ocr.v1beta1.FeedConfigInfoR\x0e\x66\x65\x65\x64\x43onfigInfo\x12L\n\x0f\x65poch_and_round\x18\x02 \x01(\x0b\x32$.injective.ocr.v1beta1.EpochAndRoundR\repochAndRound\"2\n\x17QueryLatestRoundRequest\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\"{\n\x18QueryLatestRoundResponse\x12&\n\x0flatest_round_id\x18\x01 \x01(\x04R\rlatestRoundId\x12\x37\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32#.injective.ocr.v1beta1.TransmissionR\x04\x64\x61ta\"@\n%QueryLatestTransmissionDetailsRequest\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\"\xd4\x01\n&QueryLatestTransmissionDetailsResponse\x12#\n\rconfig_digest\x18\x01 \x01(\x0cR\x0c\x63onfigDigest\x12L\n\x0f\x65poch_and_round\x18\x02 \x01(\x0b\x32$.injective.ocr.v1beta1.EpochAndRoundR\repochAndRound\x12\x37\n\x04\x64\x61ta\x18\x03 \x01(\x0b\x32#.injective.ocr.v1beta1.TransmissionR\x04\x64\x61ta\":\n\x16QueryOwedAmountRequest\x12 \n\x0btransmitter\x18\x01 \x01(\tR\x0btransmitter\"R\n\x17QueryOwedAmountResponse\x12\x37\n\x06\x61mount\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\"\x19\n\x17QueryModuleStateRequest\"U\n\x18QueryModuleStateResponse\x12\x39\n\x05state\x18\x01 \x01(\x0b\x32#.injective.ocr.v1beta1.GenesisStateR\x05state2\xbb\t\n\x05Query\x12\x86\x01\n\x06Params\x12).injective.ocr.v1beta1.QueryParamsRequest\x1a*.injective.ocr.v1beta1.QueryParamsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/chainlink/ocr/v1beta1/params\x12\xa1\x01\n\nFeedConfig\x12-.injective.ocr.v1beta1.QueryFeedConfigRequest\x1a..injective.ocr.v1beta1.QueryFeedConfigResponse\"4\x82\xd3\xe4\x93\x02.\x12,/chainlink/ocr/v1beta1/feed_config/{feed_id}\x12\xb2\x01\n\x0e\x46\x65\x65\x64\x43onfigInfo\x12\x31.injective.ocr.v1beta1.QueryFeedConfigInfoRequest\x1a\x32.injective.ocr.v1beta1.QueryFeedConfigInfoResponse\"9\x82\xd3\xe4\x93\x02\x33\x12\x31/chainlink/ocr/v1beta1/feed_config_info/{feed_id}\x12\xa5\x01\n\x0bLatestRound\x12..injective.ocr.v1beta1.QueryLatestRoundRequest\x1a/.injective.ocr.v1beta1.QueryLatestRoundResponse\"5\x82\xd3\xe4\x93\x02/\x12-/chainlink/ocr/v1beta1/latest_round/{feed_id}\x12\xde\x01\n\x19LatestTransmissionDetails\x12<.injective.ocr.v1beta1.QueryLatestTransmissionDetailsRequest\x1a=.injective.ocr.v1beta1.QueryLatestTransmissionDetailsResponse\"D\x82\xd3\xe4\x93\x02>\x12\022\n\x1b\x45ventBandIBCResponseTimeout\x12\x1b\n\tclient_id\x18\x01 \x01(\x03R\x08\x63lientId:\x02\x18\x01\"\x97\x01\n\x16SetPriceFeedPriceEvent\x12\x18\n\x07relayer\x18\x01 \x01(\tR\x07relayer\x12\x12\n\x04\x62\x61se\x18\x02 \x01(\tR\x04\x62\x61se\x12\x14\n\x05quote\x18\x03 \x01(\tR\x05quote\x12\x39\n\x05price\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\"\xa0\x01\n\x15SetProviderPriceEvent\x12\x1a\n\x08provider\x18\x01 \x01(\tR\x08provider\x12\x18\n\x07relayer\x18\x02 \x01(\tR\x07relayer\x12\x16\n\x06symbol\x18\x03 \x01(\tR\x06symbol\x12\x39\n\x05price\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\"\x88\x01\n\x15SetCoinbasePriceEvent\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12\x1c\n\ttimestamp\x18\x03 \x01(\x04R\ttimestamp\"X\n\x13\x45ventSetStorkPrices\x12\x41\n\x06prices\x18\x01 \x03(\x0b\x32).injective.oracle.v1beta1.StorkPriceStateR\x06prices\"V\n\x12\x45ventSetPythPrices\x12@\n\x06prices\x18\x01 \x03(\x0b\x32(.injective.oracle.v1beta1.PythPriceStateR\x06prices\"v\n\"EventSetChainlinkDataStreamsPrices\x12P\n\x06prices\x18\x01 \x03(\x0b\x32\x38.injective.oracle.v1beta1.ChainlinkDataStreamsPriceStateR\x06pricesB\xfb\x01\n\x1c\x63om.injective.oracle.v1beta1B\x0b\x45ventsProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/oracle/types\xa2\x02\x03IOX\xaa\x02\x18Injective.Oracle.V1beta1\xca\x02\x18Injective\\Oracle\\V1beta1\xe2\x02$Injective\\Oracle\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Oracle::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -27,10 +27,22 @@ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.injective.oracle.v1beta1B\013EventsProtoP\001ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/oracle/types\242\002\003IOX\252\002\030Injective.Oracle.V1beta1\312\002\030Injective\\Oracle\\V1beta1\342\002$Injective\\Oracle\\V1beta1\\GPBMetadata\352\002\032Injective::Oracle::V1beta1' _globals['_SETCHAINLINKPRICEEVENT'].fields_by_name['answer']._loaded_options = None _globals['_SETCHAINLINKPRICEEVENT'].fields_by_name['answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' + _globals['_SETCHAINLINKPRICEEVENT']._loaded_options = None + _globals['_SETCHAINLINKPRICEEVENT']._serialized_options = b'\030\001' _globals['_SETBANDPRICEEVENT'].fields_by_name['price']._loaded_options = None _globals['_SETBANDPRICEEVENT'].fields_by_name['price']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' + _globals['_SETBANDPRICEEVENT']._loaded_options = None + _globals['_SETBANDPRICEEVENT']._serialized_options = b'\030\001' _globals['_SETBANDIBCPRICEEVENT'].fields_by_name['prices']._loaded_options = None _globals['_SETBANDIBCPRICEEVENT'].fields_by_name['prices']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' + _globals['_SETBANDIBCPRICEEVENT']._loaded_options = None + _globals['_SETBANDIBCPRICEEVENT']._serialized_options = b'\030\001' + _globals['_EVENTBANDIBCACKSUCCESS']._loaded_options = None + _globals['_EVENTBANDIBCACKSUCCESS']._serialized_options = b'\030\001' + _globals['_EVENTBANDIBCACKERROR']._loaded_options = None + _globals['_EVENTBANDIBCACKERROR']._serialized_options = b'\030\001' + _globals['_EVENTBANDIBCRESPONSETIMEOUT']._loaded_options = None + _globals['_EVENTBANDIBCRESPONSETIMEOUT']._serialized_options = b'\030\001' _globals['_SETPRICEFEEDPRICEEVENT'].fields_by_name['price']._loaded_options = None _globals['_SETPRICEFEEDPRICEEVENT'].fields_by_name['price']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_SETPROVIDERPRICEEVENT'].fields_by_name['price']._loaded_options = None @@ -38,27 +50,27 @@ _globals['_SETCOINBASEPRICEEVENT'].fields_by_name['price']._loaded_options = None _globals['_SETCOINBASEPRICEEVENT'].fields_by_name['price']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_SETCHAINLINKPRICEEVENT']._serialized_start=161 - _globals['_SETCHAINLINKPRICEEVENT']._serialized_end=301 - _globals['_SETBANDPRICEEVENT']._serialized_start=304 - _globals['_SETBANDPRICEEVENT']._serialized_end=498 - _globals['_SETBANDIBCPRICEEVENT']._serialized_start=501 - _globals['_SETBANDIBCPRICEEVENT']._serialized_end=731 - _globals['_EVENTBANDIBCACKSUCCESS']._serialized_start=733 - _globals['_EVENTBANDIBCACKSUCCESS']._serialized_end=817 - _globals['_EVENTBANDIBCACKERROR']._serialized_start=819 - _globals['_EVENTBANDIBCACKERROR']._serialized_end=899 - _globals['_EVENTBANDIBCRESPONSETIMEOUT']._serialized_start=901 - _globals['_EVENTBANDIBCRESPONSETIMEOUT']._serialized_end=959 - _globals['_SETPRICEFEEDPRICEEVENT']._serialized_start=962 - _globals['_SETPRICEFEEDPRICEEVENT']._serialized_end=1113 - _globals['_SETPROVIDERPRICEEVENT']._serialized_start=1116 - _globals['_SETPROVIDERPRICEEVENT']._serialized_end=1276 - _globals['_SETCOINBASEPRICEEVENT']._serialized_start=1279 - _globals['_SETCOINBASEPRICEEVENT']._serialized_end=1415 - _globals['_EVENTSETSTORKPRICES']._serialized_start=1417 - _globals['_EVENTSETSTORKPRICES']._serialized_end=1505 - _globals['_EVENTSETPYTHPRICES']._serialized_start=1507 - _globals['_EVENTSETPYTHPRICES']._serialized_end=1593 - _globals['_EVENTSETCHAINLINKDATASTREAMSPRICES']._serialized_start=1595 - _globals['_EVENTSETCHAINLINKDATASTREAMSPRICES']._serialized_end=1713 + _globals['_SETCHAINLINKPRICEEVENT']._serialized_end=305 + _globals['_SETBANDPRICEEVENT']._serialized_start=308 + _globals['_SETBANDPRICEEVENT']._serialized_end=506 + _globals['_SETBANDIBCPRICEEVENT']._serialized_start=509 + _globals['_SETBANDIBCPRICEEVENT']._serialized_end=743 + _globals['_EVENTBANDIBCACKSUCCESS']._serialized_start=745 + _globals['_EVENTBANDIBCACKSUCCESS']._serialized_end=833 + _globals['_EVENTBANDIBCACKERROR']._serialized_start=835 + _globals['_EVENTBANDIBCACKERROR']._serialized_end=919 + _globals['_EVENTBANDIBCRESPONSETIMEOUT']._serialized_start=921 + _globals['_EVENTBANDIBCRESPONSETIMEOUT']._serialized_end=983 + _globals['_SETPRICEFEEDPRICEEVENT']._serialized_start=986 + _globals['_SETPRICEFEEDPRICEEVENT']._serialized_end=1137 + _globals['_SETPROVIDERPRICEEVENT']._serialized_start=1140 + _globals['_SETPROVIDERPRICEEVENT']._serialized_end=1300 + _globals['_SETCOINBASEPRICEEVENT']._serialized_start=1303 + _globals['_SETCOINBASEPRICEEVENT']._serialized_end=1439 + _globals['_EVENTSETSTORKPRICES']._serialized_start=1441 + _globals['_EVENTSETSTORKPRICES']._serialized_end=1529 + _globals['_EVENTSETPYTHPRICES']._serialized_start=1531 + _globals['_EVENTSETPYTHPRICES']._serialized_end=1617 + _globals['_EVENTSETCHAINLINKDATASTREAMSPRICES']._serialized_start=1619 + _globals['_EVENTSETCHAINLINKDATASTREAMSPRICES']._serialized_end=1737 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/oracle/v1beta1/genesis_pb2.py b/pyinjective/proto/injective/oracle/v1beta1/genesis_pb2.py index 2ead3094..c3248b58 100644 --- a/pyinjective/proto/injective/oracle/v1beta1/genesis_pb2.py +++ b/pyinjective/proto/injective/oracle/v1beta1/genesis_pb2.py @@ -16,7 +16,7 @@ from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&injective/oracle/v1beta1/genesis.proto\x12\x18injective.oracle.v1beta1\x1a%injective/oracle/v1beta1/oracle.proto\x1a\x14gogoproto/gogo.proto\"\x8b\x0c\n\x0cGenesisState\x12>\n\x06params\x18\x01 \x01(\x0b\x32 .injective.oracle.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12\'\n\rband_relayers\x18\x02 \x03(\tB\x02\x18\x01R\x0c\x62\x61ndRelayers\x12X\n\x11\x62\x61nd_price_states\x18\x03 \x03(\x0b\x32(.injective.oracle.v1beta1.BandPriceStateB\x02\x18\x01R\x0f\x62\x61ndPriceStates\x12_\n\x17price_feed_price_states\x18\x04 \x03(\x0b\x32(.injective.oracle.v1beta1.PriceFeedStateR\x14priceFeedPriceStates\x12`\n\x15\x63oinbase_price_states\x18\x05 \x03(\x0b\x32,.injective.oracle.v1beta1.CoinbasePriceStateR\x13\x63oinbasePriceStates\x12_\n\x15\x62\x61nd_ibc_price_states\x18\x06 \x03(\x0b\x32(.injective.oracle.v1beta1.BandPriceStateB\x02\x18\x01R\x12\x62\x61ndIbcPriceStates\x12h\n\x18\x62\x61nd_ibc_oracle_requests\x18\x07 \x03(\x0b\x32+.injective.oracle.v1beta1.BandOracleRequestB\x02\x18\x01R\x15\x62\x61ndIbcOracleRequests\x12W\n\x0f\x62\x61nd_ibc_params\x18\x08 \x01(\x0b\x32\'.injective.oracle.v1beta1.BandIBCParamsB\x06\x18\x01\xc8\xde\x1f\x00R\rbandIbcParams\x12<\n\x19\x62\x61nd_ibc_latest_client_id\x18\t \x01(\x04\x42\x02\x18\x01R\x15\x62\x61ndIbcLatestClientId\x12W\n\x10\x63\x61lldata_records\x18\n \x03(\x0b\x32(.injective.oracle.v1beta1.CalldataRecordB\x02\x18\x01R\x0f\x63\x61lldataRecords\x12>\n\x1a\x62\x61nd_ibc_latest_request_id\x18\x0b \x01(\x04\x42\x02\x18\x01R\x16\x62\x61ndIbcLatestRequestId\x12\x63\n\x16\x63hainlink_price_states\x18\x0c \x03(\x0b\x32-.injective.oracle.v1beta1.ChainlinkPriceStateR\x14\x63hainlinkPriceStates\x12`\n\x18historical_price_records\x18\r \x03(\x0b\x32&.injective.oracle.v1beta1.PriceRecordsR\x16historicalPriceRecords\x12P\n\x0fprovider_states\x18\x0e \x03(\x0b\x32\'.injective.oracle.v1beta1.ProviderStateR\x0eproviderStates\x12T\n\x11pyth_price_states\x18\x0f \x03(\x0b\x32(.injective.oracle.v1beta1.PythPriceStateR\x0fpythPriceStates\x12W\n\x12stork_price_states\x18\x10 \x03(\x0b\x32).injective.oracle.v1beta1.StorkPriceStateR\x10storkPriceStates\x12)\n\x10stork_publishers\x18\x11 \x03(\tR\x0fstorkPublishers\x12\x86\x01\n#chainlink_data_streams_price_states\x18\x12 \x03(\x0b\x32\x38.injective.oracle.v1beta1.ChainlinkDataStreamsPriceStateR\x1f\x63hainlinkDataStreamsPriceStates\"I\n\x0e\x43\x61lldataRecord\x12\x1b\n\tclient_id\x18\x01 \x01(\x04R\x08\x63lientId\x12\x1a\n\x08\x63\x61lldata\x18\x02 \x01(\x0cR\x08\x63\x61lldataB\xfc\x01\n\x1c\x63om.injective.oracle.v1beta1B\x0cGenesisProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/oracle/types\xa2\x02\x03IOX\xaa\x02\x18Injective.Oracle.V1beta1\xca\x02\x18Injective\\Oracle\\V1beta1\xe2\x02$Injective\\Oracle\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Oracle::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&injective/oracle/v1beta1/genesis.proto\x12\x18injective.oracle.v1beta1\x1a%injective/oracle/v1beta1/oracle.proto\x1a\x14gogoproto/gogo.proto\"\x8f\x0c\n\x0cGenesisState\x12>\n\x06params\x18\x01 \x01(\x0b\x32 .injective.oracle.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12\'\n\rband_relayers\x18\x02 \x03(\tB\x02\x18\x01R\x0c\x62\x61ndRelayers\x12X\n\x11\x62\x61nd_price_states\x18\x03 \x03(\x0b\x32(.injective.oracle.v1beta1.BandPriceStateB\x02\x18\x01R\x0f\x62\x61ndPriceStates\x12_\n\x17price_feed_price_states\x18\x04 \x03(\x0b\x32(.injective.oracle.v1beta1.PriceFeedStateR\x14priceFeedPriceStates\x12`\n\x15\x63oinbase_price_states\x18\x05 \x03(\x0b\x32,.injective.oracle.v1beta1.CoinbasePriceStateR\x13\x63oinbasePriceStates\x12_\n\x15\x62\x61nd_ibc_price_states\x18\x06 \x03(\x0b\x32(.injective.oracle.v1beta1.BandPriceStateB\x02\x18\x01R\x12\x62\x61ndIbcPriceStates\x12h\n\x18\x62\x61nd_ibc_oracle_requests\x18\x07 \x03(\x0b\x32+.injective.oracle.v1beta1.BandOracleRequestB\x02\x18\x01R\x15\x62\x61ndIbcOracleRequests\x12W\n\x0f\x62\x61nd_ibc_params\x18\x08 \x01(\x0b\x32\'.injective.oracle.v1beta1.BandIBCParamsB\x06\x18\x01\xc8\xde\x1f\x00R\rbandIbcParams\x12<\n\x19\x62\x61nd_ibc_latest_client_id\x18\t \x01(\x04\x42\x02\x18\x01R\x15\x62\x61ndIbcLatestClientId\x12W\n\x10\x63\x61lldata_records\x18\n \x03(\x0b\x32(.injective.oracle.v1beta1.CalldataRecordB\x02\x18\x01R\x0f\x63\x61lldataRecords\x12>\n\x1a\x62\x61nd_ibc_latest_request_id\x18\x0b \x01(\x04\x42\x02\x18\x01R\x16\x62\x61ndIbcLatestRequestId\x12g\n\x16\x63hainlink_price_states\x18\x0c \x03(\x0b\x32-.injective.oracle.v1beta1.ChainlinkPriceStateB\x02\x18\x01R\x14\x63hainlinkPriceStates\x12`\n\x18historical_price_records\x18\r \x03(\x0b\x32&.injective.oracle.v1beta1.PriceRecordsR\x16historicalPriceRecords\x12P\n\x0fprovider_states\x18\x0e \x03(\x0b\x32\'.injective.oracle.v1beta1.ProviderStateR\x0eproviderStates\x12T\n\x11pyth_price_states\x18\x0f \x03(\x0b\x32(.injective.oracle.v1beta1.PythPriceStateR\x0fpythPriceStates\x12W\n\x12stork_price_states\x18\x10 \x03(\x0b\x32).injective.oracle.v1beta1.StorkPriceStateR\x10storkPriceStates\x12)\n\x10stork_publishers\x18\x11 \x03(\tR\x0fstorkPublishers\x12\x86\x01\n#chainlink_data_streams_price_states\x18\x12 \x03(\x0b\x32\x38.injective.oracle.v1beta1.ChainlinkDataStreamsPriceStateR\x1f\x63hainlinkDataStreamsPriceStates\"I\n\x0e\x43\x61lldataRecord\x12\x1b\n\tclient_id\x18\x01 \x01(\x04R\x08\x63lientId\x12\x1a\n\x08\x63\x61lldata\x18\x02 \x01(\x0cR\x08\x63\x61lldataB\xfc\x01\n\x1c\x63om.injective.oracle.v1beta1B\x0cGenesisProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/oracle/types\xa2\x02\x03IOX\xaa\x02\x18Injective.Oracle.V1beta1\xca\x02\x18Injective\\Oracle\\V1beta1\xe2\x02$Injective\\Oracle\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Oracle::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -42,8 +42,10 @@ _globals['_GENESISSTATE'].fields_by_name['calldata_records']._serialized_options = b'\030\001' _globals['_GENESISSTATE'].fields_by_name['band_ibc_latest_request_id']._loaded_options = None _globals['_GENESISSTATE'].fields_by_name['band_ibc_latest_request_id']._serialized_options = b'\030\001' + _globals['_GENESISSTATE'].fields_by_name['chainlink_price_states']._loaded_options = None + _globals['_GENESISSTATE'].fields_by_name['chainlink_price_states']._serialized_options = b'\030\001' _globals['_GENESISSTATE']._serialized_start=130 - _globals['_GENESISSTATE']._serialized_end=1677 - _globals['_CALLDATARECORD']._serialized_start=1679 - _globals['_CALLDATARECORD']._serialized_end=1752 + _globals['_GENESISSTATE']._serialized_end=1681 + _globals['_CALLDATARECORD']._serialized_start=1683 + _globals['_CALLDATARECORD']._serialized_end=1756 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/oracle/v1beta1/oracle_pb2.py b/pyinjective/proto/injective/oracle/v1beta1/oracle_pb2.py index 86181e26..af317638 100644 --- a/pyinjective/proto/injective/oracle/v1beta1/oracle_pb2.py +++ b/pyinjective/proto/injective/oracle/v1beta1/oracle_pb2.py @@ -17,7 +17,7 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%injective/oracle/v1beta1/oracle.proto\x12\x18injective.oracle.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\"\xd8\x02\n\x06Params\x12#\n\rpyth_contract\x18\x01 \x01(\tR\x0cpythContract\x12I\n!chainlink_verifier_proxy_contract\x18\x02 \x01(\tR\x1e\x63hainlinkVerifierProxyContract\x12\x65\n0accept_unverified_chainlink_data_streams_reports\x18\x03 \x01(\x08R+acceptUnverifiedChainlinkDataStreamsReports\x12_\n-chainlink_data_streams_verification_gas_limit\x18\x04 \x01(\x04R(chainlinkDataStreamsVerificationGasLimit:\x16\xe8\xa0\x1f\x01\x8a\xe7\xb0*\roracle/Params\"k\n\nOracleInfo\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x45\n\x0boracle_type\x18\x02 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\"\xd6\x01\n\x13\x43hainlinkPriceState\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12;\n\x06\x61nswer\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06\x61nswer\x12\x1c\n\ttimestamp\x18\x03 \x01(\x04R\ttimestamp\x12K\n\x0bprice_state\x18\x04 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\xee\x01\n\x0e\x42\x61ndPriceState\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x31\n\x04rate\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x04rate\x12!\n\x0cresolve_time\x18\x03 \x01(\x04R\x0bresolveTime\x12\x1d\n\nrequest_ID\x18\x04 \x01(\x04R\trequestID\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState:\x02\x18\x01\"\x9d\x01\n\x0ePriceFeedState\x12\x12\n\x04\x62\x61se\x18\x01 \x01(\tR\x04\x62\x61se\x12\x14\n\x05quote\x18\x02 \x01(\tR\x05quote\x12\x45\n\x0bprice_state\x18\x03 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateR\npriceState\x12\x1a\n\x08relayers\x18\x04 \x03(\tR\x08relayers\"F\n\x0cProviderInfo\x12\x1a\n\x08provider\x18\x01 \x01(\tR\x08provider\x12\x1a\n\x08relayers\x18\x02 \x03(\tR\x08relayers\"\xbe\x01\n\rProviderState\x12K\n\rprovider_info\x18\x01 \x01(\x0b\x32&.injective.oracle.v1beta1.ProviderInfoR\x0cproviderInfo\x12`\n\x15provider_price_states\x18\x02 \x03(\x0b\x32,.injective.oracle.v1beta1.ProviderPriceStateR\x13providerPriceStates\"h\n\x12ProviderPriceState\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12:\n\x05state\x18\x02 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateR\x05state\"9\n\rPriceFeedInfo\x12\x12\n\x04\x62\x61se\x18\x01 \x01(\tR\x04\x62\x61se\x12\x14\n\x05quote\x18\x02 \x01(\tR\x05quote\"K\n\x0ePriceFeedPrice\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\"\xbb\x01\n\x12\x43oinbasePriceState\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12\x1c\n\ttimestamp\x18\x02 \x01(\x04R\ttimestamp\x12\x10\n\x03key\x18\x03 \x01(\tR\x03key\x12\x14\n\x05value\x18\x04 \x01(\x04R\x05value\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\xcf\x01\n\x0fStorkPriceState\x12\x1c\n\ttimestamp\x18\x01 \x01(\x04R\ttimestamp\x12\x16\n\x06symbol\x18\x02 \x01(\tR\x06symbol\x12\x39\n\x05value\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05value\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\xb5\x01\n\nPriceState\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12N\n\x10\x63umulative_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x63umulativePrice\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"\xd6\x02\n\x0ePythPriceState\x12\x19\n\x08price_id\x18\x01 \x01(\tR\x07priceId\x12@\n\tema_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08\x65maPrice\x12>\n\x08\x65ma_conf\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x07\x65maConf\x12\x37\n\x04\x63onf\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x04\x63onf\x12!\n\x0cpublish_time\x18\x05 \x01(\x04R\x0bpublishTime\x12K\n\x0bprice_state\x18\x06 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\xb1\x02\n\x1e\x43hainlinkDataStreamsPriceState\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12@\n\x0creport_price\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0breportPrice\x12\x30\n\x14valid_from_timestamp\x18\x03 \x01(\x04R\x12validFromTimestamp\x12\x35\n\x16observations_timestamp\x18\x04 \x01(\x04R\x15observationsTimestamp\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\x8a\x03\n\x11\x42\x61ndOracleRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\x04R\trequestId\x12(\n\x10oracle_script_id\x18\x02 \x01(\x03R\x0eoracleScriptId\x12\x18\n\x07symbols\x18\x03 \x03(\tR\x07symbols\x12\x1b\n\task_count\x18\x04 \x01(\x04R\x08\x61skCount\x12\x1b\n\tmin_count\x18\x05 \x01(\x04R\x08minCount\x12h\n\tfee_limit\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x08\x66\x65\x65Limit\x12\x1f\n\x0bprepare_gas\x18\x07 \x01(\x04R\nprepareGas\x12\x1f\n\x0b\x65xecute_gas\x18\x08 \x01(\x04R\nexecuteGas\x12(\n\x10min_source_count\x18\t \x01(\x04R\x0eminSourceCount:\x02\x18\x01\"\x8a\x02\n\rBandIBCParams\x12(\n\x10\x62\x61nd_ibc_enabled\x18\x01 \x01(\x08R\x0e\x62\x61ndIbcEnabled\x12\x30\n\x14ibc_request_interval\x18\x02 \x01(\x03R\x12ibcRequestInterval\x12,\n\x12ibc_source_channel\x18\x03 \x01(\tR\x10ibcSourceChannel\x12\x1f\n\x0bibc_version\x18\x04 \x01(\tR\nibcVersion\x12\x1e\n\x0bibc_port_id\x18\x05 \x01(\tR\tibcPortId\x12*\n\x11legacy_oracle_ids\x18\x06 \x03(\x03R\x0flegacyOracleIds:\x02\x18\x01\"\x8f\x01\n\x14SymbolPriceTimestamp\x12<\n\x06oracle\x18\x01 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\x06oracle\x12\x1b\n\tsymbol_id\x18\x02 \x01(\tR\x08symbolId\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"y\n\x13LastPriceTimestamps\x12\x62\n\x15last_price_timestamps\x18\x01 \x03(\x0b\x32..injective.oracle.v1beta1.SymbolPriceTimestampR\x13lastPriceTimestamps\"\xc2\x01\n\x0cPriceRecords\x12<\n\x06oracle\x18\x01 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\x06oracle\x12\x1b\n\tsymbol_id\x18\x02 \x01(\tR\x08symbolId\x12W\n\x14latest_price_records\x18\x03 \x03(\x0b\x32%.injective.oracle.v1beta1.PriceRecordR\x12latestPriceRecords\"f\n\x0bPriceRecord\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\"\xf3\x03\n\x12MetadataStatistics\x12\x1f\n\x0bgroup_count\x18\x01 \x01(\rR\ngroupCount\x12.\n\x13records_sample_size\x18\x02 \x01(\rR\x11recordsSampleSize\x12\x37\n\x04mean\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x04mean\x12\x37\n\x04twap\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x04twap\x12\'\n\x0f\x66irst_timestamp\x18\x05 \x01(\x03R\x0e\x66irstTimestamp\x12%\n\x0elast_timestamp\x18\x06 \x01(\x03R\rlastTimestamp\x12@\n\tmin_price\x18\x07 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08minPrice\x12@\n\tmax_price\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08maxPrice\x12\x46\n\x0cmedian_price\x18\t \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bmedianPrice\"\xe1\x01\n\x10PriceAttestation\x12\x19\n\x08price_id\x18\x01 \x01(\tR\x07priceId\x12\x14\n\x05price\x18\x02 \x01(\x03R\x05price\x12\x12\n\x04\x63onf\x18\x03 \x01(\x04R\x04\x63onf\x12\x12\n\x04\x65xpo\x18\x04 \x01(\x05R\x04\x65xpo\x12\x1b\n\tema_price\x18\x05 \x01(\x03R\x08\x65maPrice\x12\x19\n\x08\x65ma_conf\x18\x06 \x01(\x04R\x07\x65maConf\x12\x19\n\x08\x65ma_expo\x18\x07 \x01(\x05R\x07\x65maExpo\x12!\n\x0cpublish_time\x18\x08 \x01(\x03R\x0bpublishTime\"}\n\tAssetPair\x12\x19\n\x08\x61sset_id\x18\x01 \x01(\tR\x07\x61ssetId\x12U\n\rsigned_prices\x18\x02 \x03(\x0b\x32\x30.injective.oracle.v1beta1.SignedPriceOfAssetPairR\x0csignedPrices\"\xb4\x01\n\x16SignedPriceOfAssetPair\x12#\n\rpublisher_key\x18\x01 \x01(\tR\x0cpublisherKey\x12\x1c\n\ttimestamp\x18\x02 \x01(\x04R\ttimestamp\x12\x39\n\x05price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12\x1c\n\tsignature\x18\x04 \x01(\x0cR\tsignature\"\xb4\x01\n\x0f\x43hainlinkReport\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\x0cR\x06\x66\x65\x65\x64Id\x12\x1f\n\x0b\x66ull_report\x18\x02 \x01(\x0cR\nfullReport\x12\x30\n\x14valid_from_timestamp\x18\x03 \x01(\x04R\x12validFromTimestamp\x12\x35\n\x16observations_timestamp\x18\x04 \x01(\x04R\x15observationsTimestamp*\xcc\x01\n\nOracleType\x12\x0f\n\x0bUnspecified\x10\x00\x12\x0c\n\x04\x42\x61nd\x10\x01\x1a\x02\x08\x01\x12\r\n\tPriceFeed\x10\x02\x12\x0c\n\x08\x43oinbase\x10\x03\x12\r\n\tChainlink\x10\x04\x12\t\n\x05Razor\x10\x05\x12\x07\n\x03\x44ia\x10\x06\x12\x08\n\x04\x41PI3\x10\x07\x12\x07\n\x03Uma\x10\x08\x12\x08\n\x04Pyth\x10\t\x12\x0f\n\x07\x42\x61ndIBC\x10\n\x1a\x02\x08\x01\x12\x0c\n\x08Provider\x10\x0b\x12\t\n\x05Stork\x10\x0c\x12\x18\n\x14\x43hainlinkDataStreams\x10\rB\xff\x01\n\x1c\x63om.injective.oracle.v1beta1B\x0bOracleProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/oracle/types\xa2\x02\x03IOX\xaa\x02\x18Injective.Oracle.V1beta1\xca\x02\x18Injective\\Oracle\\V1beta1\xe2\x02$Injective\\Oracle\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Oracle::V1beta1\xc0\xe3\x1e\x01\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%injective/oracle/v1beta1/oracle.proto\x12\x18injective.oracle.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\"\xf7\x01\n\x06Params\x12#\n\rpyth_contract\x18\x01 \x01(\tR\x0cpythContract\x12I\n!chainlink_verifier_proxy_contract\x18\x02 \x01(\tR\x1e\x63hainlinkVerifierProxyContract\x12_\n-chainlink_data_streams_verification_gas_limit\x18\x04 \x01(\x04R(chainlinkDataStreamsVerificationGasLimit:\x16\xe8\xa0\x1f\x01\x8a\xe7\xb0*\roracle/ParamsJ\x04\x08\x03\x10\x04\"k\n\nOracleInfo\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x45\n\x0boracle_type\x18\x02 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\noracleType\"\xda\x01\n\x13\x43hainlinkPriceState\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12;\n\x06\x61nswer\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x06\x61nswer\x12\x1c\n\ttimestamp\x18\x03 \x01(\x04R\ttimestamp\x12K\n\x0bprice_state\x18\x04 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState:\x02\x18\x01\"\xee\x01\n\x0e\x42\x61ndPriceState\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12\x31\n\x04rate\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x04rate\x12!\n\x0cresolve_time\x18\x03 \x01(\x04R\x0bresolveTime\x12\x1d\n\nrequest_ID\x18\x04 \x01(\x04R\trequestID\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState:\x02\x18\x01\"\x9d\x01\n\x0ePriceFeedState\x12\x12\n\x04\x62\x61se\x18\x01 \x01(\tR\x04\x62\x61se\x12\x14\n\x05quote\x18\x02 \x01(\tR\x05quote\x12\x45\n\x0bprice_state\x18\x03 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateR\npriceState\x12\x1a\n\x08relayers\x18\x04 \x03(\tR\x08relayers\"F\n\x0cProviderInfo\x12\x1a\n\x08provider\x18\x01 \x01(\tR\x08provider\x12\x1a\n\x08relayers\x18\x02 \x03(\tR\x08relayers\"\xbe\x01\n\rProviderState\x12K\n\rprovider_info\x18\x01 \x01(\x0b\x32&.injective.oracle.v1beta1.ProviderInfoR\x0cproviderInfo\x12`\n\x15provider_price_states\x18\x02 \x03(\x0b\x32,.injective.oracle.v1beta1.ProviderPriceStateR\x13providerPriceStates\"h\n\x12ProviderPriceState\x12\x16\n\x06symbol\x18\x01 \x01(\tR\x06symbol\x12:\n\x05state\x18\x02 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateR\x05state\"9\n\rPriceFeedInfo\x12\x12\n\x04\x62\x61se\x18\x01 \x01(\tR\x04\x62\x61se\x12\x14\n\x05quote\x18\x02 \x01(\tR\x05quote\"K\n\x0ePriceFeedPrice\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\"\xbb\x01\n\x12\x43oinbasePriceState\x12\x12\n\x04kind\x18\x01 \x01(\tR\x04kind\x12\x1c\n\ttimestamp\x18\x02 \x01(\x04R\ttimestamp\x12\x10\n\x03key\x18\x03 \x01(\tR\x03key\x12\x14\n\x05value\x18\x04 \x01(\x04R\x05value\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\xcf\x01\n\x0fStorkPriceState\x12\x1c\n\ttimestamp\x18\x01 \x01(\x04R\ttimestamp\x12\x16\n\x06symbol\x18\x02 \x01(\tR\x06symbol\x12\x39\n\x05value\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05value\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\xb5\x01\n\nPriceState\x12\x39\n\x05price\x18\x01 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12N\n\x10\x63umulative_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0f\x63umulativePrice\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"\xd6\x02\n\x0ePythPriceState\x12\x19\n\x08price_id\x18\x01 \x01(\tR\x07priceId\x12@\n\tema_price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08\x65maPrice\x12>\n\x08\x65ma_conf\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x07\x65maConf\x12\x37\n\x04\x63onf\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x04\x63onf\x12!\n\x0cpublish_time\x18\x05 \x01(\x04R\x0bpublishTime\x12K\n\x0bprice_state\x18\x06 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\"\xd0\x02\n\x1e\x43hainlinkDataStreamsPriceState\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\tR\x06\x66\x65\x65\x64Id\x12@\n\x0creport_price\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0breportPrice\x12\x30\n\x14valid_from_timestamp\x18\x03 \x01(\x04R\x12validFromTimestamp\x12\x35\n\x16observations_timestamp\x18\x04 \x01(\x04R\x15observationsTimestamp\x12K\n\x0bprice_state\x18\x05 \x01(\x0b\x32$.injective.oracle.v1beta1.PriceStateB\x04\xc8\xde\x1f\x00R\npriceState\x12\x1d\n\nexpires_at\x18\x06 \x01(\x04R\texpiresAt\"\x8a\x03\n\x11\x42\x61ndOracleRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\x04R\trequestId\x12(\n\x10oracle_script_id\x18\x02 \x01(\x03R\x0eoracleScriptId\x12\x18\n\x07symbols\x18\x03 \x03(\tR\x07symbols\x12\x1b\n\task_count\x18\x04 \x01(\x04R\x08\x61skCount\x12\x1b\n\tmin_count\x18\x05 \x01(\x04R\x08minCount\x12h\n\tfee_limit\x18\x06 \x03(\x0b\x32\x19.cosmos.base.v1beta1.CoinB0\xc8\xde\x1f\x00\xaa\xdf\x1f(github.com/cosmos/cosmos-sdk/types.CoinsR\x08\x66\x65\x65Limit\x12\x1f\n\x0bprepare_gas\x18\x07 \x01(\x04R\nprepareGas\x12\x1f\n\x0b\x65xecute_gas\x18\x08 \x01(\x04R\nexecuteGas\x12(\n\x10min_source_count\x18\t \x01(\x04R\x0eminSourceCount:\x02\x18\x01\"\x8a\x02\n\rBandIBCParams\x12(\n\x10\x62\x61nd_ibc_enabled\x18\x01 \x01(\x08R\x0e\x62\x61ndIbcEnabled\x12\x30\n\x14ibc_request_interval\x18\x02 \x01(\x03R\x12ibcRequestInterval\x12,\n\x12ibc_source_channel\x18\x03 \x01(\tR\x10ibcSourceChannel\x12\x1f\n\x0bibc_version\x18\x04 \x01(\tR\nibcVersion\x12\x1e\n\x0bibc_port_id\x18\x05 \x01(\tR\tibcPortId\x12*\n\x11legacy_oracle_ids\x18\x06 \x03(\x03R\x0flegacyOracleIds:\x02\x18\x01\"\x8f\x01\n\x14SymbolPriceTimestamp\x12<\n\x06oracle\x18\x01 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\x06oracle\x12\x1b\n\tsymbol_id\x18\x02 \x01(\tR\x08symbolId\x12\x1c\n\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\"y\n\x13LastPriceTimestamps\x12\x62\n\x15last_price_timestamps\x18\x01 \x03(\x0b\x32..injective.oracle.v1beta1.SymbolPriceTimestampR\x13lastPriceTimestamps\"\xc2\x01\n\x0cPriceRecords\x12<\n\x06oracle\x18\x01 \x01(\x0e\x32$.injective.oracle.v1beta1.OracleTypeR\x06oracle\x12\x1b\n\tsymbol_id\x18\x02 \x01(\tR\x08symbolId\x12W\n\x14latest_price_records\x18\x03 \x03(\x0b\x32%.injective.oracle.v1beta1.PriceRecordR\x12latestPriceRecords\"f\n\x0bPriceRecord\x12\x1c\n\ttimestamp\x18\x01 \x01(\x03R\ttimestamp\x12\x39\n\x05price\x18\x02 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\"\xf3\x03\n\x12MetadataStatistics\x12\x1f\n\x0bgroup_count\x18\x01 \x01(\rR\ngroupCount\x12.\n\x13records_sample_size\x18\x02 \x01(\rR\x11recordsSampleSize\x12\x37\n\x04mean\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x04mean\x12\x37\n\x04twap\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x04twap\x12\'\n\x0f\x66irst_timestamp\x18\x05 \x01(\x03R\x0e\x66irstTimestamp\x12%\n\x0elast_timestamp\x18\x06 \x01(\x03R\rlastTimestamp\x12@\n\tmin_price\x18\x07 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08minPrice\x12@\n\tmax_price\x18\x08 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x08maxPrice\x12\x46\n\x0cmedian_price\x18\t \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0bmedianPrice\"\xe1\x01\n\x10PriceAttestation\x12\x19\n\x08price_id\x18\x01 \x01(\tR\x07priceId\x12\x14\n\x05price\x18\x02 \x01(\x03R\x05price\x12\x12\n\x04\x63onf\x18\x03 \x01(\x04R\x04\x63onf\x12\x12\n\x04\x65xpo\x18\x04 \x01(\x05R\x04\x65xpo\x12\x1b\n\tema_price\x18\x05 \x01(\x03R\x08\x65maPrice\x12\x19\n\x08\x65ma_conf\x18\x06 \x01(\x04R\x07\x65maConf\x12\x19\n\x08\x65ma_expo\x18\x07 \x01(\x05R\x07\x65maExpo\x12!\n\x0cpublish_time\x18\x08 \x01(\x03R\x0bpublishTime\"}\n\tAssetPair\x12\x19\n\x08\x61sset_id\x18\x01 \x01(\tR\x07\x61ssetId\x12U\n\rsigned_prices\x18\x02 \x03(\x0b\x32\x30.injective.oracle.v1beta1.SignedPriceOfAssetPairR\x0csignedPrices\"\xb4\x01\n\x16SignedPriceOfAssetPair\x12#\n\rpublisher_key\x18\x01 \x01(\tR\x0cpublisherKey\x12\x1c\n\ttimestamp\x18\x02 \x01(\x04R\ttimestamp\x12\x39\n\x05price\x18\x03 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x05price\x12\x1c\n\tsignature\x18\x04 \x01(\x0cR\tsignature\"\xb4\x01\n\x0f\x43hainlinkReport\x12\x17\n\x07\x66\x65\x65\x64_id\x18\x01 \x01(\x0cR\x06\x66\x65\x65\x64Id\x12\x1f\n\x0b\x66ull_report\x18\x02 \x01(\x0cR\nfullReport\x12\x30\n\x14valid_from_timestamp\x18\x03 \x01(\x04R\x12validFromTimestamp\x12\x35\n\x16observations_timestamp\x18\x04 \x01(\x04R\x15observationsTimestamp*\xd0\x01\n\nOracleType\x12\x0f\n\x0bUnspecified\x10\x00\x12\x0c\n\x04\x42\x61nd\x10\x01\x1a\x02\x08\x01\x12\r\n\tPriceFeed\x10\x02\x12\x0c\n\x08\x43oinbase\x10\x03\x12\x11\n\tChainlink\x10\x04\x1a\x02\x08\x01\x12\t\n\x05Razor\x10\x05\x12\x07\n\x03\x44ia\x10\x06\x12\x08\n\x04\x41PI3\x10\x07\x12\x07\n\x03Uma\x10\x08\x12\x08\n\x04Pyth\x10\t\x12\x0f\n\x07\x42\x61ndIBC\x10\n\x1a\x02\x08\x01\x12\x0c\n\x08Provider\x10\x0b\x12\t\n\x05Stork\x10\x0c\x12\x18\n\x14\x43hainlinkDataStreams\x10\rB\xff\x01\n\x1c\x63om.injective.oracle.v1beta1B\x0bOracleProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/oracle/types\xa2\x02\x03IOX\xaa\x02\x18Injective.Oracle.V1beta1\xca\x02\x18Injective\\Oracle\\V1beta1\xe2\x02$Injective\\Oracle\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Oracle::V1beta1\xc0\xe3\x1e\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -27,6 +27,8 @@ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.injective.oracle.v1beta1B\013OracleProtoP\001ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/oracle/types\242\002\003IOX\252\002\030Injective.Oracle.V1beta1\312\002\030Injective\\Oracle\\V1beta1\342\002$Injective\\Oracle\\V1beta1\\GPBMetadata\352\002\032Injective::Oracle::V1beta1\300\343\036\001' _globals['_ORACLETYPE'].values_by_name["Band"]._loaded_options = None _globals['_ORACLETYPE'].values_by_name["Band"]._serialized_options = b'\010\001' + _globals['_ORACLETYPE'].values_by_name["Chainlink"]._loaded_options = None + _globals['_ORACLETYPE'].values_by_name["Chainlink"]._serialized_options = b'\010\001' _globals['_ORACLETYPE'].values_by_name["BandIBC"]._loaded_options = None _globals['_ORACLETYPE'].values_by_name["BandIBC"]._serialized_options = b'\010\001' _globals['_PARAMS']._loaded_options = None @@ -35,6 +37,8 @@ _globals['_CHAINLINKPRICESTATE'].fields_by_name['answer']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_CHAINLINKPRICESTATE'].fields_by_name['price_state']._loaded_options = None _globals['_CHAINLINKPRICESTATE'].fields_by_name['price_state']._serialized_options = b'\310\336\037\000' + _globals['_CHAINLINKPRICESTATE']._loaded_options = None + _globals['_CHAINLINKPRICESTATE']._serialized_options = b'\030\001' _globals['_BANDPRICESTATE'].fields_by_name['rate']._loaded_options = None _globals['_BANDPRICESTATE'].fields_by_name['rate']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' _globals['_BANDPRICESTATE'].fields_by_name['price_state']._loaded_options = None @@ -85,58 +89,58 @@ _globals['_METADATASTATISTICS'].fields_by_name['median_price']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_SIGNEDPRICEOFASSETPAIR'].fields_by_name['price']._loaded_options = None _globals['_SIGNEDPRICEOFASSETPAIR'].fields_by_name['price']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' - _globals['_ORACLETYPE']._serialized_start=5418 - _globals['_ORACLETYPE']._serialized_end=5622 + _globals['_ORACLETYPE']._serialized_start=5356 + _globals['_ORACLETYPE']._serialized_end=5564 _globals['_PARAMS']._serialized_start=141 - _globals['_PARAMS']._serialized_end=485 - _globals['_ORACLEINFO']._serialized_start=487 - _globals['_ORACLEINFO']._serialized_end=594 - _globals['_CHAINLINKPRICESTATE']._serialized_start=597 - _globals['_CHAINLINKPRICESTATE']._serialized_end=811 - _globals['_BANDPRICESTATE']._serialized_start=814 - _globals['_BANDPRICESTATE']._serialized_end=1052 - _globals['_PRICEFEEDSTATE']._serialized_start=1055 - _globals['_PRICEFEEDSTATE']._serialized_end=1212 - _globals['_PROVIDERINFO']._serialized_start=1214 - _globals['_PROVIDERINFO']._serialized_end=1284 - _globals['_PROVIDERSTATE']._serialized_start=1287 - _globals['_PROVIDERSTATE']._serialized_end=1477 - _globals['_PROVIDERPRICESTATE']._serialized_start=1479 - _globals['_PROVIDERPRICESTATE']._serialized_end=1583 - _globals['_PRICEFEEDINFO']._serialized_start=1585 - _globals['_PRICEFEEDINFO']._serialized_end=1642 - _globals['_PRICEFEEDPRICE']._serialized_start=1644 - _globals['_PRICEFEEDPRICE']._serialized_end=1719 - _globals['_COINBASEPRICESTATE']._serialized_start=1722 - _globals['_COINBASEPRICESTATE']._serialized_end=1909 - _globals['_STORKPRICESTATE']._serialized_start=1912 - _globals['_STORKPRICESTATE']._serialized_end=2119 - _globals['_PRICESTATE']._serialized_start=2122 - _globals['_PRICESTATE']._serialized_end=2303 - _globals['_PYTHPRICESTATE']._serialized_start=2306 - _globals['_PYTHPRICESTATE']._serialized_end=2648 - _globals['_CHAINLINKDATASTREAMSPRICESTATE']._serialized_start=2651 - _globals['_CHAINLINKDATASTREAMSPRICESTATE']._serialized_end=2956 - _globals['_BANDORACLEREQUEST']._serialized_start=2959 - _globals['_BANDORACLEREQUEST']._serialized_end=3353 - _globals['_BANDIBCPARAMS']._serialized_start=3356 - _globals['_BANDIBCPARAMS']._serialized_end=3622 - _globals['_SYMBOLPRICETIMESTAMP']._serialized_start=3625 - _globals['_SYMBOLPRICETIMESTAMP']._serialized_end=3768 - _globals['_LASTPRICETIMESTAMPS']._serialized_start=3770 - _globals['_LASTPRICETIMESTAMPS']._serialized_end=3891 - _globals['_PRICERECORDS']._serialized_start=3894 - _globals['_PRICERECORDS']._serialized_end=4088 - _globals['_PRICERECORD']._serialized_start=4090 - _globals['_PRICERECORD']._serialized_end=4192 - _globals['_METADATASTATISTICS']._serialized_start=4195 - _globals['_METADATASTATISTICS']._serialized_end=4694 - _globals['_PRICEATTESTATION']._serialized_start=4697 - _globals['_PRICEATTESTATION']._serialized_end=4922 - _globals['_ASSETPAIR']._serialized_start=4924 - _globals['_ASSETPAIR']._serialized_end=5049 - _globals['_SIGNEDPRICEOFASSETPAIR']._serialized_start=5052 - _globals['_SIGNEDPRICEOFASSETPAIR']._serialized_end=5232 - _globals['_CHAINLINKREPORT']._serialized_start=5235 - _globals['_CHAINLINKREPORT']._serialized_end=5415 + _globals['_PARAMS']._serialized_end=388 + _globals['_ORACLEINFO']._serialized_start=390 + _globals['_ORACLEINFO']._serialized_end=497 + _globals['_CHAINLINKPRICESTATE']._serialized_start=500 + _globals['_CHAINLINKPRICESTATE']._serialized_end=718 + _globals['_BANDPRICESTATE']._serialized_start=721 + _globals['_BANDPRICESTATE']._serialized_end=959 + _globals['_PRICEFEEDSTATE']._serialized_start=962 + _globals['_PRICEFEEDSTATE']._serialized_end=1119 + _globals['_PROVIDERINFO']._serialized_start=1121 + _globals['_PROVIDERINFO']._serialized_end=1191 + _globals['_PROVIDERSTATE']._serialized_start=1194 + _globals['_PROVIDERSTATE']._serialized_end=1384 + _globals['_PROVIDERPRICESTATE']._serialized_start=1386 + _globals['_PROVIDERPRICESTATE']._serialized_end=1490 + _globals['_PRICEFEEDINFO']._serialized_start=1492 + _globals['_PRICEFEEDINFO']._serialized_end=1549 + _globals['_PRICEFEEDPRICE']._serialized_start=1551 + _globals['_PRICEFEEDPRICE']._serialized_end=1626 + _globals['_COINBASEPRICESTATE']._serialized_start=1629 + _globals['_COINBASEPRICESTATE']._serialized_end=1816 + _globals['_STORKPRICESTATE']._serialized_start=1819 + _globals['_STORKPRICESTATE']._serialized_end=2026 + _globals['_PRICESTATE']._serialized_start=2029 + _globals['_PRICESTATE']._serialized_end=2210 + _globals['_PYTHPRICESTATE']._serialized_start=2213 + _globals['_PYTHPRICESTATE']._serialized_end=2555 + _globals['_CHAINLINKDATASTREAMSPRICESTATE']._serialized_start=2558 + _globals['_CHAINLINKDATASTREAMSPRICESTATE']._serialized_end=2894 + _globals['_BANDORACLEREQUEST']._serialized_start=2897 + _globals['_BANDORACLEREQUEST']._serialized_end=3291 + _globals['_BANDIBCPARAMS']._serialized_start=3294 + _globals['_BANDIBCPARAMS']._serialized_end=3560 + _globals['_SYMBOLPRICETIMESTAMP']._serialized_start=3563 + _globals['_SYMBOLPRICETIMESTAMP']._serialized_end=3706 + _globals['_LASTPRICETIMESTAMPS']._serialized_start=3708 + _globals['_LASTPRICETIMESTAMPS']._serialized_end=3829 + _globals['_PRICERECORDS']._serialized_start=3832 + _globals['_PRICERECORDS']._serialized_end=4026 + _globals['_PRICERECORD']._serialized_start=4028 + _globals['_PRICERECORD']._serialized_end=4130 + _globals['_METADATASTATISTICS']._serialized_start=4133 + _globals['_METADATASTATISTICS']._serialized_end=4632 + _globals['_PRICEATTESTATION']._serialized_start=4635 + _globals['_PRICEATTESTATION']._serialized_end=4860 + _globals['_ASSETPAIR']._serialized_start=4862 + _globals['_ASSETPAIR']._serialized_end=4987 + _globals['_SIGNEDPRICEOFASSETPAIR']._serialized_start=4990 + _globals['_SIGNEDPRICEOFASSETPAIR']._serialized_end=5170 + _globals['_CHAINLINKREPORT']._serialized_start=5173 + _globals['_CHAINLINKREPORT']._serialized_end=5353 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/peggy/v1/genesis_pb2.py b/pyinjective/proto/injective/peggy/v1/genesis_pb2.py index 714e9f0e..08b1dacc 100644 --- a/pyinjective/proto/injective/peggy/v1/genesis_pb2.py +++ b/pyinjective/proto/injective/peggy/v1/genesis_pb2.py @@ -22,7 +22,7 @@ from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n injective/peggy/v1/genesis.proto\x12\x12injective.peggy.v1\x1a\x14gogoproto/gogo.proto\x1a\x1einjective/peggy/v1/types.proto\x1a\x1dinjective/peggy/v1/msgs.proto\x1a\x1einjective/peggy/v1/batch.proto\x1a$injective/peggy/v1/attestation.proto\x1a\x1finjective/peggy/v1/params.proto\x1a#injective/peggy/v1/rate_limit.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xc0\x08\n\x0cGenesisState\x12\x32\n\x06params\x18\x01 \x01(\x0b\x32\x1a.injective.peggy.v1.ParamsR\x06params\x12.\n\x13last_observed_nonce\x18\x02 \x01(\x04R\x11lastObservedNonce\x12\x34\n\x07valsets\x18\x03 \x03(\x0b\x32\x1a.injective.peggy.v1.ValsetR\x07valsets\x12M\n\x0fvalset_confirms\x18\x04 \x03(\x0b\x32$.injective.peggy.v1.MsgValsetConfirmR\x0evalsetConfirms\x12=\n\x07\x62\x61tches\x18\x05 \x03(\x0b\x32#.injective.peggy.v1.OutgoingTxBatchR\x07\x62\x61tches\x12J\n\x0e\x62\x61tch_confirms\x18\x06 \x03(\x0b\x32#.injective.peggy.v1.MsgConfirmBatchR\rbatchConfirms\x12\x43\n\x0c\x61ttestations\x18\x07 \x03(\x0b\x32\x1f.injective.peggy.v1.AttestationR\x0c\x61ttestations\x12\x66\n\x16orchestrator_addresses\x18\x08 \x03(\x0b\x32/.injective.peggy.v1.MsgSetOrchestratorAddressesR\x15orchestratorAddresses\x12H\n\x0f\x65rc20_to_denoms\x18\t \x03(\x0b\x32 .injective.peggy.v1.ERC20ToDenomR\rerc20ToDenoms\x12W\n\x13unbatched_transfers\x18\n \x03(\x0b\x32&.injective.peggy.v1.OutgoingTransferTxR\x12unbatchedTransfers\x12\x41\n\x1dlast_observed_ethereum_height\x18\x0b \x01(\x04R\x1alastObservedEthereumHeight\x12\x33\n\x16last_outgoing_batch_id\x18\x0c \x01(\x04R\x13lastOutgoingBatchId\x12\x31\n\x15last_outgoing_pool_id\x18\r \x01(\x04R\x12lastOutgoingPoolId\x12R\n\x14last_observed_valset\x18\x0e \x01(\x0b\x32\x1a.injective.peggy.v1.ValsetB\x04\xc8\xde\x1f\x00R\x12lastObservedValset\x12-\n\x12\x65thereum_blacklist\x18\x0f \x03(\tR\x11\x65thereumBlacklist\x12>\n\x0brate_limits\x18\x10 \x03(\x0b\x32\x1d.injective.peggy.v1.RateLimitR\nrateLimitsB\xdd\x01\n\x16\x63om.injective.peggy.v1B\x0cGenesisProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/peggy/types\xa2\x02\x03IPX\xaa\x02\x12Injective.Peggy.V1\xca\x02\x12Injective\\Peggy\\V1\xe2\x02\x1eInjective\\Peggy\\V1\\GPBMetadata\xea\x02\x14Injective::Peggy::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n injective/peggy/v1/genesis.proto\x12\x12injective.peggy.v1\x1a\x14gogoproto/gogo.proto\x1a\x1einjective/peggy/v1/types.proto\x1a\x1dinjective/peggy/v1/msgs.proto\x1a\x1einjective/peggy/v1/batch.proto\x1a$injective/peggy/v1/attestation.proto\x1a\x1finjective/peggy/v1/params.proto\x1a#injective/peggy/v1/rate_limit.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\"\xdd\t\n\x0cGenesisState\x12\x32\n\x06params\x18\x01 \x01(\x0b\x32\x1a.injective.peggy.v1.ParamsR\x06params\x12.\n\x13last_observed_nonce\x18\x02 \x01(\x04R\x11lastObservedNonce\x12\x34\n\x07valsets\x18\x03 \x03(\x0b\x32\x1a.injective.peggy.v1.ValsetR\x07valsets\x12M\n\x0fvalset_confirms\x18\x04 \x03(\x0b\x32$.injective.peggy.v1.MsgValsetConfirmR\x0evalsetConfirms\x12=\n\x07\x62\x61tches\x18\x05 \x03(\x0b\x32#.injective.peggy.v1.OutgoingTxBatchR\x07\x62\x61tches\x12J\n\x0e\x62\x61tch_confirms\x18\x06 \x03(\x0b\x32#.injective.peggy.v1.MsgConfirmBatchR\rbatchConfirms\x12\x43\n\x0c\x61ttestations\x18\x07 \x03(\x0b\x32\x1f.injective.peggy.v1.AttestationR\x0c\x61ttestations\x12\x66\n\x16orchestrator_addresses\x18\x08 \x03(\x0b\x32/.injective.peggy.v1.MsgSetOrchestratorAddressesR\x15orchestratorAddresses\x12H\n\x0f\x65rc20_to_denoms\x18\t \x03(\x0b\x32 .injective.peggy.v1.ERC20ToDenomR\rerc20ToDenoms\x12W\n\x13unbatched_transfers\x18\n \x03(\x0b\x32&.injective.peggy.v1.OutgoingTransferTxR\x12unbatchedTransfers\x12\x41\n\x1dlast_observed_ethereum_height\x18\x0b \x01(\x04R\x1alastObservedEthereumHeight\x12\x33\n\x16last_outgoing_batch_id\x18\x0c \x01(\x04R\x13lastOutgoingBatchId\x12\x31\n\x15last_outgoing_pool_id\x18\r \x01(\x04R\x12lastOutgoingPoolId\x12R\n\x14last_observed_valset\x18\x0e \x01(\x0b\x32\x1a.injective.peggy.v1.ValsetB\x04\xc8\xde\x1f\x00R\x12lastObservedValset\x12-\n\x12\x65thereum_blacklist\x18\x0f \x03(\tR\x11\x65thereumBlacklist\x12>\n\x0brate_limits\x18\x10 \x03(\x0b\x32\x1d.injective.peggy.v1.RateLimitR\nrateLimits\x12X\n\x14rate_limit_transfers\x18\x11 \x03(\x0b\x32&.injective.peggy.v1.RateLimitTransfersR\x12rateLimitTransfers\x12\x41\n\x0cmint_amounts\x18\x12 \x03(\x0b\x32\x1e.injective.peggy.v1.MintAmountR\x0bmintAmountsB\xdd\x01\n\x16\x63om.injective.peggy.v1B\x0cGenesisProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/peggy/types\xa2\x02\x03IPX\xaa\x02\x12Injective.Peggy.V1\xca\x02\x12Injective\\Peggy\\V1\xe2\x02\x1eInjective\\Peggy\\V1\\GPBMetadata\xea\x02\x14Injective::Peggy::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -33,5 +33,5 @@ _globals['_GENESISSTATE'].fields_by_name['last_observed_valset']._loaded_options = None _globals['_GENESISSTATE'].fields_by_name['last_observed_valset']._serialized_options = b'\310\336\037\000' _globals['_GENESISSTATE']._serialized_start=314 - _globals['_GENESISSTATE']._serialized_end=1402 + _globals['_GENESISSTATE']._serialized_end=1559 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/peggy/v1/msgs_pb2.py b/pyinjective/proto/injective/peggy/v1/msgs_pb2.py index 041cc3b3..86337c07 100644 --- a/pyinjective/proto/injective/peggy/v1/msgs_pb2.py +++ b/pyinjective/proto/injective/peggy/v1/msgs_pb2.py @@ -24,7 +24,7 @@ from pyinjective.proto.injective.peggy.v1 import rate_limit_pb2 as injective_dot_peggy_dot_v1_dot_rate__limit__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dinjective/peggy/v1/msgs.proto\x12\x12injective.peggy.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x11\x61mino/amino.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1einjective/peggy/v1/types.proto\x1a\x1finjective/peggy/v1/params.proto\x1a#injective/peggy/v1/rate_limit.proto\"\xad\x01\n\x1bMsgSetOrchestratorAddresses\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\"\n\x0corchestrator\x18\x02 \x01(\tR\x0corchestrator\x12\x1f\n\x0b\x65th_address\x18\x03 \x01(\tR\nethAddress:1\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*!peggy/MsgSetOrchestratorAddresses\"%\n#MsgSetOrchestratorAddressesResponse\"\xb9\x01\n\x10MsgValsetConfirm\x12\x14\n\x05nonce\x18\x01 \x01(\x04R\x05nonce\x12\"\n\x0corchestrator\x18\x02 \x01(\tR\x0corchestrator\x12\x1f\n\x0b\x65th_address\x18\x03 \x01(\tR\nethAddress\x12\x1c\n\tsignature\x18\x04 \x01(\tR\tsignature:,\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x16peggy/MsgValsetConfirm\"\x1a\n\x18MsgValsetConfirmResponse\"\xde\x01\n\x0cMsgSendToEth\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x19\n\x08\x65th_dest\x18\x02 \x01(\tR\x07\x65thDest\x12\x37\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\x12>\n\nbridge_fee\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\tbridgeFee:\"\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x12peggy/MsgSendToEth\"\x16\n\x14MsgSendToEthResponse\"x\n\x0fMsgRequestBatch\x12\"\n\x0corchestrator\x18\x01 \x01(\tR\x0corchestrator\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom:+\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x15peggy/MsgRequestBatch\"\x19\n\x17MsgRequestBatchResponse\"\xdc\x01\n\x0fMsgConfirmBatch\x12\x14\n\x05nonce\x18\x01 \x01(\x04R\x05nonce\x12%\n\x0etoken_contract\x18\x02 \x01(\tR\rtokenContract\x12\x1d\n\neth_signer\x18\x03 \x01(\tR\tethSigner\x12\"\n\x0corchestrator\x18\x04 \x01(\tR\x0corchestrator\x12\x1c\n\tsignature\x18\x05 \x01(\tR\tsignature:+\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x15peggy/MsgConfirmBatch\"\x19\n\x17MsgConfirmBatchResponse\"\x89\x03\n\x0fMsgDepositClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12%\n\x0etoken_contract\x18\x03 \x01(\tR\rtokenContract\x12\x35\n\x06\x61mount\x18\x04 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\x12\'\n\x0f\x65thereum_sender\x18\x05 \x01(\tR\x0e\x65thereumSender\x12\'\n\x0f\x63osmos_receiver\x18\x06 \x01(\tR\x0e\x63osmosReceiver\x12\"\n\x0corchestrator\x18\x07 \x01(\tR\x0corchestrator\x12\x12\n\x04\x64\x61ta\x18\x08 \x01(\tR\x04\x64\x61ta:J\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x15peggy/MsgDepositClaim\"\x19\n\x17MsgDepositClaimResponse\"\x8f\x02\n\x10MsgWithdrawClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12\x1f\n\x0b\x62\x61tch_nonce\x18\x03 \x01(\x04R\nbatchNonce\x12%\n\x0etoken_contract\x18\x04 \x01(\tR\rtokenContract\x12\"\n\x0corchestrator\x18\x05 \x01(\tR\x0corchestrator:K\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x16peggy/MsgWithdrawClaim\"\x1a\n\x18MsgWithdrawClaimResponse\"\xe3\x02\n\x15MsgERC20DeployedClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12!\n\x0c\x63osmos_denom\x18\x03 \x01(\tR\x0b\x63osmosDenom\x12%\n\x0etoken_contract\x18\x04 \x01(\tR\rtokenContract\x12\x12\n\x04name\x18\x05 \x01(\tR\x04name\x12\x16\n\x06symbol\x18\x06 \x01(\tR\x06symbol\x12\x1a\n\x08\x64\x65\x63imals\x18\x07 \x01(\x04R\x08\x64\x65\x63imals\x12\"\n\x0corchestrator\x18\x08 \x01(\tR\x0corchestrator:P\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x1bpeggy/MsgERC20DeployedClaim\"\x1f\n\x1dMsgERC20DeployedClaimResponse\"}\n\x12MsgCancelSendToEth\x12%\n\x0etransaction_id\x18\x01 \x01(\x04R\rtransactionId\x12\x16\n\x06sender\x18\x02 \x01(\tR\x06sender:(\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x18peggy/MsgCancelSendToEth\"\x1c\n\x1aMsgCancelSendToEthResponse\"\xe1\x01\n\x1dMsgSubmitBadSignatureEvidence\x12U\n\x07subject\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB%\xca\xb4-!injective.peggy.v1.EthereumSignedR\x07subject\x12\x1c\n\tsignature\x18\x02 \x01(\tR\tsignature\x12\x16\n\x06sender\x18\x03 \x01(\tR\x06sender:3\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*#peggy/MsgSubmitBadSignatureEvidence\"\'\n%MsgSubmitBadSignatureEvidenceResponse\"\x9a\x03\n\x15MsgValsetUpdatedClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0cvalset_nonce\x18\x02 \x01(\x04R\x0bvalsetNonce\x12!\n\x0c\x62lock_height\x18\x03 \x01(\x04R\x0b\x62lockHeight\x12=\n\x07members\x18\x04 \x03(\x0b\x32#.injective.peggy.v1.BridgeValidatorR\x07members\x12\x42\n\rreward_amount\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0crewardAmount\x12!\n\x0creward_token\x18\x06 \x01(\tR\x0brewardToken\x12\"\n\x0corchestrator\x18\x07 \x01(\tR\x0corchestrator:P\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x1bpeggy/MsgValsetUpdatedClaim\"\x1f\n\x1dMsgValsetUpdatedClaimResponse\"\xad\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x38\n\x06params\x18\x02 \x01(\x0b\x32\x1a.injective.peggy.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:(\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x15peggy/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"\x9d\x01\n\x1dMsgBlacklistEthereumAddresses\x12\x16\n\x06signer\x18\x01 \x01(\tR\x06signer\x12/\n\x13\x62lacklist_addresses\x18\x02 \x03(\tR\x12\x62lacklistAddresses:3\x82\xe7\xb0*\x06signer\x8a\xe7\xb0*#peggy/MsgBlacklistEthereumAddresses\"\'\n%MsgBlacklistEthereumAddressesResponse\"\x97\x01\n\x1aMsgRevokeEthereumBlacklist\x12\x16\n\x06signer\x18\x01 \x01(\tR\x06signer\x12/\n\x13\x62lacklist_addresses\x18\x02 \x03(\tR\x12\x62lacklistAddresses:0\x82\xe7\xb0*\x06signer\x8a\xe7\xb0* peggy/MsgRevokeEthereumBlacklist\"$\n\"MsgRevokeEthereumBlacklistResponse\"\xb1\x03\n\x12MsgCreateRateLimit\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12#\n\rtoken_address\x18\x02 \x01(\tR\x0ctokenAddress\x12%\n\x0etoken_decimals\x18\x03 \x01(\rR\rtokenDecimals\x12$\n\x0etoken_price_id\x18\x04 \x01(\tR\x0ctokenPriceId\x12I\n\x0erate_limit_usd\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0crateLimitUsd\x12M\n\x13\x61\x62solute_mint_limit\x18\x06 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x11\x61\x62soluteMintLimit\x12*\n\x11rate_limit_window\x18\x07 \x01(\x04R\x0frateLimitWindow:+\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x18peggy/MsgCreateRateLimit\"\x1c\n\x1aMsgCreateRateLimitResponse\"\xd0\x02\n\x12MsgUpdateRateLimit\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12#\n\rtoken_address\x18\x02 \x01(\tR\x0ctokenAddress\x12+\n\x12new_token_price_id\x18\x03 \x01(\tR\x0fnewTokenPriceId\x12P\n\x12new_rate_limit_usd\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fnewRateLimitUsd\x12\x31\n\x15new_rate_limit_window\x18\x05 \x01(\x04R\x12newRateLimitWindow:+\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x18peggy/MsgUpdateRateLimit\"\x1c\n\x1aMsgUpdateRateLimitResponse\"\x9e\x01\n\x12MsgRemoveRateLimit\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12#\n\rtoken_address\x18\x02 \x01(\tR\x0ctokenAddress:+\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x18peggy/MsgRemoveRateLimit\"\x1c\n\x1aMsgRemoveRateLimitResponse2\xff\x12\n\x03Msg\x12\x8f\x01\n\rValsetConfirm\x12$.injective.peggy.v1.MsgValsetConfirm\x1a,.injective.peggy.v1.MsgValsetConfirmResponse\"*\x82\xd3\xe4\x93\x02$\"\"/injective/peggy/v1/valset_confirm\x12\x80\x01\n\tSendToEth\x12 .injective.peggy.v1.MsgSendToEth\x1a(.injective.peggy.v1.MsgSendToEthResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1f/injective/peggy/v1/send_to_eth\x12\x8b\x01\n\x0cRequestBatch\x12#.injective.peggy.v1.MsgRequestBatch\x1a+.injective.peggy.v1.MsgRequestBatchResponse\")\x82\xd3\xe4\x93\x02#\"!/injective/peggy/v1/request_batch\x12\x8b\x01\n\x0c\x43onfirmBatch\x12#.injective.peggy.v1.MsgConfirmBatch\x1a+.injective.peggy.v1.MsgConfirmBatchResponse\")\x82\xd3\xe4\x93\x02#\"!/injective/peggy/v1/confirm_batch\x12\x8b\x01\n\x0c\x44\x65positClaim\x12#.injective.peggy.v1.MsgDepositClaim\x1a+.injective.peggy.v1.MsgDepositClaimResponse\")\x82\xd3\xe4\x93\x02#\"!/injective/peggy/v1/deposit_claim\x12\x8f\x01\n\rWithdrawClaim\x12$.injective.peggy.v1.MsgWithdrawClaim\x1a,.injective.peggy.v1.MsgWithdrawClaimResponse\"*\x82\xd3\xe4\x93\x02$\"\"/injective/peggy/v1/withdraw_claim\x12\xa3\x01\n\x11ValsetUpdateClaim\x12).injective.peggy.v1.MsgValsetUpdatedClaim\x1a\x31.injective.peggy.v1.MsgValsetUpdatedClaimResponse\"0\x82\xd3\xe4\x93\x02*\"(/injective/peggy/v1/valset_updated_claim\x12\xa4\x01\n\x12\x45RC20DeployedClaim\x12).injective.peggy.v1.MsgERC20DeployedClaim\x1a\x31.injective.peggy.v1.MsgERC20DeployedClaimResponse\"0\x82\xd3\xe4\x93\x02*\"(/injective/peggy/v1/erc20_deployed_claim\x12\xba\x01\n\x18SetOrchestratorAddresses\x12/.injective.peggy.v1.MsgSetOrchestratorAddresses\x1a\x37.injective.peggy.v1.MsgSetOrchestratorAddressesResponse\"4\x82\xd3\xe4\x93\x02.\",/injective/peggy/v1/set_orchestrator_address\x12\x99\x01\n\x0f\x43\x61ncelSendToEth\x12&.injective.peggy.v1.MsgCancelSendToEth\x1a..injective.peggy.v1.MsgCancelSendToEthResponse\".\x82\xd3\xe4\x93\x02(\"&/injective/peggy/v1/cancel_send_to_eth\x12\xc5\x01\n\x1aSubmitBadSignatureEvidence\x12\x31.injective.peggy.v1.MsgSubmitBadSignatureEvidence\x1a\x39.injective.peggy.v1.MsgSubmitBadSignatureEvidenceResponse\"9\x82\xd3\xe4\x93\x02\x33\"1/injective/peggy/v1/submit_bad_signature_evidence\x12`\n\x0cUpdateParams\x12#.injective.peggy.v1.MsgUpdateParams\x1a+.injective.peggy.v1.MsgUpdateParamsResponse\x12\x8a\x01\n\x1a\x42lacklistEthereumAddresses\x12\x31.injective.peggy.v1.MsgBlacklistEthereumAddresses\x1a\x39.injective.peggy.v1.MsgBlacklistEthereumAddressesResponse\x12\x81\x01\n\x17RevokeEthereumBlacklist\x12..injective.peggy.v1.MsgRevokeEthereumBlacklist\x1a\x36.injective.peggy.v1.MsgRevokeEthereumBlacklistResponse\x12i\n\x0f\x43reateRateLimit\x12&.injective.peggy.v1.MsgCreateRateLimit\x1a..injective.peggy.v1.MsgCreateRateLimitResponse\x12i\n\x0fUpdateRateLimit\x12&.injective.peggy.v1.MsgUpdateRateLimit\x1a..injective.peggy.v1.MsgUpdateRateLimitResponse\x12i\n\x0fRemoveRateLimit\x12&.injective.peggy.v1.MsgRemoveRateLimit\x1a..injective.peggy.v1.MsgRemoveRateLimitResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xda\x01\n\x16\x63om.injective.peggy.v1B\tMsgsProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/peggy/types\xa2\x02\x03IPX\xaa\x02\x12Injective.Peggy.V1\xca\x02\x12Injective\\Peggy\\V1\xe2\x02\x1eInjective\\Peggy\\V1\\GPBMetadata\xea\x02\x14Injective::Peggy::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dinjective/peggy/v1/msgs.proto\x12\x12injective.peggy.v1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19google/protobuf/any.proto\x1a\x11\x61mino/amino.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1einjective/peggy/v1/types.proto\x1a\x1finjective/peggy/v1/params.proto\x1a#injective/peggy/v1/rate_limit.proto\"\xad\x01\n\x1bMsgSetOrchestratorAddresses\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\"\n\x0corchestrator\x18\x02 \x01(\tR\x0corchestrator\x12\x1f\n\x0b\x65th_address\x18\x03 \x01(\tR\nethAddress:1\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*!peggy/MsgSetOrchestratorAddresses\"%\n#MsgSetOrchestratorAddressesResponse\"\xb9\x01\n\x10MsgValsetConfirm\x12\x14\n\x05nonce\x18\x01 \x01(\x04R\x05nonce\x12\"\n\x0corchestrator\x18\x02 \x01(\tR\x0corchestrator\x12\x1f\n\x0b\x65th_address\x18\x03 \x01(\tR\nethAddress\x12\x1c\n\tsignature\x18\x04 \x01(\tR\tsignature:,\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x16peggy/MsgValsetConfirm\"\x1a\n\x18MsgValsetConfirmResponse\"\xde\x01\n\x0cMsgSendToEth\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x19\n\x08\x65th_dest\x18\x02 \x01(\tR\x07\x65thDest\x12\x37\n\x06\x61mount\x18\x03 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\x06\x61mount\x12>\n\nbridge_fee\x18\x04 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB\x04\xc8\xde\x1f\x00R\tbridgeFee:\"\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x12peggy/MsgSendToEth\"\x16\n\x14MsgSendToEthResponse\"x\n\x0fMsgRequestBatch\x12\"\n\x0corchestrator\x18\x01 \x01(\tR\x0corchestrator\x12\x14\n\x05\x64\x65nom\x18\x02 \x01(\tR\x05\x64\x65nom:+\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x15peggy/MsgRequestBatch\"\x19\n\x17MsgRequestBatchResponse\"\xdc\x01\n\x0fMsgConfirmBatch\x12\x14\n\x05nonce\x18\x01 \x01(\x04R\x05nonce\x12%\n\x0etoken_contract\x18\x02 \x01(\tR\rtokenContract\x12\x1d\n\neth_signer\x18\x03 \x01(\tR\tethSigner\x12\"\n\x0corchestrator\x18\x04 \x01(\tR\x0corchestrator\x12\x1c\n\tsignature\x18\x05 \x01(\tR\tsignature:+\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x15peggy/MsgConfirmBatch\"\x19\n\x17MsgConfirmBatchResponse\"\x89\x03\n\x0fMsgDepositClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12%\n\x0etoken_contract\x18\x03 \x01(\tR\rtokenContract\x12\x35\n\x06\x61mount\x18\x04 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\x12\'\n\x0f\x65thereum_sender\x18\x05 \x01(\tR\x0e\x65thereumSender\x12\'\n\x0f\x63osmos_receiver\x18\x06 \x01(\tR\x0e\x63osmosReceiver\x12\"\n\x0corchestrator\x18\x07 \x01(\tR\x0corchestrator\x12\x12\n\x04\x64\x61ta\x18\x08 \x01(\tR\x04\x64\x61ta:J\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x15peggy/MsgDepositClaim\"\x19\n\x17MsgDepositClaimResponse\"\x8f\x02\n\x10MsgWithdrawClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12\x1f\n\x0b\x62\x61tch_nonce\x18\x03 \x01(\x04R\nbatchNonce\x12%\n\x0etoken_contract\x18\x04 \x01(\tR\rtokenContract\x12\"\n\x0corchestrator\x18\x05 \x01(\tR\x0corchestrator:K\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x16peggy/MsgWithdrawClaim\"\x1a\n\x18MsgWithdrawClaimResponse\"\xe3\x02\n\x15MsgERC20DeployedClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0c\x62lock_height\x18\x02 \x01(\x04R\x0b\x62lockHeight\x12!\n\x0c\x63osmos_denom\x18\x03 \x01(\tR\x0b\x63osmosDenom\x12%\n\x0etoken_contract\x18\x04 \x01(\tR\rtokenContract\x12\x12\n\x04name\x18\x05 \x01(\tR\x04name\x12\x16\n\x06symbol\x18\x06 \x01(\tR\x06symbol\x12\x1a\n\x08\x64\x65\x63imals\x18\x07 \x01(\x04R\x08\x64\x65\x63imals\x12\"\n\x0corchestrator\x18\x08 \x01(\tR\x0corchestrator:P\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x1bpeggy/MsgERC20DeployedClaim\"\x1f\n\x1dMsgERC20DeployedClaimResponse\"}\n\x12MsgCancelSendToEth\x12%\n\x0etransaction_id\x18\x01 \x01(\x04R\rtransactionId\x12\x16\n\x06sender\x18\x02 \x01(\tR\x06sender:(\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x18peggy/MsgCancelSendToEth\"\x1c\n\x1aMsgCancelSendToEthResponse\"\xe1\x01\n\x1dMsgSubmitBadSignatureEvidence\x12U\n\x07subject\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB%\xca\xb4-!injective.peggy.v1.EthereumSignedR\x07subject\x12\x1c\n\tsignature\x18\x02 \x01(\tR\tsignature\x12\x16\n\x06sender\x18\x03 \x01(\tR\x06sender:3\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*#peggy/MsgSubmitBadSignatureEvidence\"\'\n%MsgSubmitBadSignatureEvidenceResponse\"\x9a\x03\n\x15MsgValsetUpdatedClaim\x12\x1f\n\x0b\x65vent_nonce\x18\x01 \x01(\x04R\neventNonce\x12!\n\x0cvalset_nonce\x18\x02 \x01(\x04R\x0bvalsetNonce\x12!\n\x0c\x62lock_height\x18\x03 \x01(\x04R\x0b\x62lockHeight\x12=\n\x07members\x18\x04 \x03(\x0b\x32#.injective.peggy.v1.BridgeValidatorR\x07members\x12\x42\n\rreward_amount\x18\x05 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x0crewardAmount\x12!\n\x0creward_token\x18\x06 \x01(\tR\x0brewardToken\x12\"\n\x0corchestrator\x18\x07 \x01(\tR\x0corchestrator:P\xca\xb4-\x1bpeggy.v1beta1.EthereumClaim\x82\xe7\xb0*\x0corchestrator\x8a\xe7\xb0*\x1bpeggy/MsgValsetUpdatedClaim\"\x1f\n\x1dMsgValsetUpdatedClaimResponse\"\xad\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x38\n\x06params\x18\x02 \x01(\x0b\x32\x1a.injective.peggy.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:(\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x15peggy/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"\x9d\x01\n\x1dMsgBlacklistEthereumAddresses\x12\x16\n\x06signer\x18\x01 \x01(\tR\x06signer\x12/\n\x13\x62lacklist_addresses\x18\x02 \x03(\tR\x12\x62lacklistAddresses:3\x82\xe7\xb0*\x06signer\x8a\xe7\xb0*#peggy/MsgBlacklistEthereumAddresses\"\'\n%MsgBlacklistEthereumAddressesResponse\"\x97\x01\n\x1aMsgRevokeEthereumBlacklist\x12\x16\n\x06signer\x18\x01 \x01(\tR\x06signer\x12/\n\x13\x62lacklist_addresses\x18\x02 \x03(\tR\x12\x62lacklistAddresses:0\x82\xe7\xb0*\x06signer\x8a\xe7\xb0* peggy/MsgRevokeEthereumBlacklist\"$\n\"MsgRevokeEthereumBlacklistResponse\"\xb3\x03\n\x12MsgCreateRateLimit\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12#\n\rtoken_address\x18\x02 \x01(\tR\x0ctokenAddress\x12%\n\x0etoken_decimals\x18\x03 \x01(\rR\rtokenDecimals\x12$\n\x0etoken_price_id\x18\x04 \x01(\tR\x0ctokenPriceId\x12I\n\x0erate_limit_usd\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0crateLimitUsd\x12O\n\x13\x61\x62solute_mint_limit\x18\x06 \x01(\tB\x1f\x18\x01\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x11\x61\x62soluteMintLimit\x12*\n\x11rate_limit_window\x18\x07 \x01(\x04R\x0frateLimitWindow:+\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x18peggy/MsgCreateRateLimit\"\x1c\n\x1aMsgCreateRateLimitResponse\"\xd0\x02\n\x12MsgUpdateRateLimit\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12#\n\rtoken_address\x18\x02 \x01(\tR\x0ctokenAddress\x12+\n\x12new_token_price_id\x18\x03 \x01(\tR\x0fnewTokenPriceId\x12P\n\x12new_rate_limit_usd\x18\x04 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0fnewRateLimitUsd\x12\x31\n\x15new_rate_limit_window\x18\x05 \x01(\x04R\x12newRateLimitWindow:+\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x18peggy/MsgUpdateRateLimit\"\x1c\n\x1aMsgUpdateRateLimitResponse\"\x9e\x01\n\x12MsgRemoveRateLimit\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12#\n\rtoken_address\x18\x02 \x01(\tR\x0ctokenAddress:+\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x18peggy/MsgRemoveRateLimit\"\x1c\n\x1aMsgRemoveRateLimitResponse2\xff\x12\n\x03Msg\x12\x8f\x01\n\rValsetConfirm\x12$.injective.peggy.v1.MsgValsetConfirm\x1a,.injective.peggy.v1.MsgValsetConfirmResponse\"*\x82\xd3\xe4\x93\x02$\"\"/injective/peggy/v1/valset_confirm\x12\x80\x01\n\tSendToEth\x12 .injective.peggy.v1.MsgSendToEth\x1a(.injective.peggy.v1.MsgSendToEthResponse\"\'\x82\xd3\xe4\x93\x02!\"\x1f/injective/peggy/v1/send_to_eth\x12\x8b\x01\n\x0cRequestBatch\x12#.injective.peggy.v1.MsgRequestBatch\x1a+.injective.peggy.v1.MsgRequestBatchResponse\")\x82\xd3\xe4\x93\x02#\"!/injective/peggy/v1/request_batch\x12\x8b\x01\n\x0c\x43onfirmBatch\x12#.injective.peggy.v1.MsgConfirmBatch\x1a+.injective.peggy.v1.MsgConfirmBatchResponse\")\x82\xd3\xe4\x93\x02#\"!/injective/peggy/v1/confirm_batch\x12\x8b\x01\n\x0c\x44\x65positClaim\x12#.injective.peggy.v1.MsgDepositClaim\x1a+.injective.peggy.v1.MsgDepositClaimResponse\")\x82\xd3\xe4\x93\x02#\"!/injective/peggy/v1/deposit_claim\x12\x8f\x01\n\rWithdrawClaim\x12$.injective.peggy.v1.MsgWithdrawClaim\x1a,.injective.peggy.v1.MsgWithdrawClaimResponse\"*\x82\xd3\xe4\x93\x02$\"\"/injective/peggy/v1/withdraw_claim\x12\xa3\x01\n\x11ValsetUpdateClaim\x12).injective.peggy.v1.MsgValsetUpdatedClaim\x1a\x31.injective.peggy.v1.MsgValsetUpdatedClaimResponse\"0\x82\xd3\xe4\x93\x02*\"(/injective/peggy/v1/valset_updated_claim\x12\xa4\x01\n\x12\x45RC20DeployedClaim\x12).injective.peggy.v1.MsgERC20DeployedClaim\x1a\x31.injective.peggy.v1.MsgERC20DeployedClaimResponse\"0\x82\xd3\xe4\x93\x02*\"(/injective/peggy/v1/erc20_deployed_claim\x12\xba\x01\n\x18SetOrchestratorAddresses\x12/.injective.peggy.v1.MsgSetOrchestratorAddresses\x1a\x37.injective.peggy.v1.MsgSetOrchestratorAddressesResponse\"4\x82\xd3\xe4\x93\x02.\",/injective/peggy/v1/set_orchestrator_address\x12\x99\x01\n\x0f\x43\x61ncelSendToEth\x12&.injective.peggy.v1.MsgCancelSendToEth\x1a..injective.peggy.v1.MsgCancelSendToEthResponse\".\x82\xd3\xe4\x93\x02(\"&/injective/peggy/v1/cancel_send_to_eth\x12\xc5\x01\n\x1aSubmitBadSignatureEvidence\x12\x31.injective.peggy.v1.MsgSubmitBadSignatureEvidence\x1a\x39.injective.peggy.v1.MsgSubmitBadSignatureEvidenceResponse\"9\x82\xd3\xe4\x93\x02\x33\"1/injective/peggy/v1/submit_bad_signature_evidence\x12`\n\x0cUpdateParams\x12#.injective.peggy.v1.MsgUpdateParams\x1a+.injective.peggy.v1.MsgUpdateParamsResponse\x12\x8a\x01\n\x1a\x42lacklistEthereumAddresses\x12\x31.injective.peggy.v1.MsgBlacklistEthereumAddresses\x1a\x39.injective.peggy.v1.MsgBlacklistEthereumAddressesResponse\x12\x81\x01\n\x17RevokeEthereumBlacklist\x12..injective.peggy.v1.MsgRevokeEthereumBlacklist\x1a\x36.injective.peggy.v1.MsgRevokeEthereumBlacklistResponse\x12i\n\x0f\x43reateRateLimit\x12&.injective.peggy.v1.MsgCreateRateLimit\x1a..injective.peggy.v1.MsgCreateRateLimitResponse\x12i\n\x0fUpdateRateLimit\x12&.injective.peggy.v1.MsgUpdateRateLimit\x1a..injective.peggy.v1.MsgUpdateRateLimitResponse\x12i\n\x0fRemoveRateLimit\x12&.injective.peggy.v1.MsgRemoveRateLimit\x1a..injective.peggy.v1.MsgRemoveRateLimitResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xda\x01\n\x16\x63om.injective.peggy.v1B\tMsgsProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/peggy/types\xa2\x02\x03IPX\xaa\x02\x12Injective.Peggy.V1\xca\x02\x12Injective\\Peggy\\V1\xe2\x02\x1eInjective\\Peggy\\V1\\GPBMetadata\xea\x02\x14Injective::Peggy::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -79,7 +79,7 @@ _globals['_MSGCREATERATELIMIT'].fields_by_name['rate_limit_usd']._loaded_options = None _globals['_MSGCREATERATELIMIT'].fields_by_name['rate_limit_usd']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_MSGCREATERATELIMIT'].fields_by_name['absolute_mint_limit']._loaded_options = None - _globals['_MSGCREATERATELIMIT'].fields_by_name['absolute_mint_limit']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_MSGCREATERATELIMIT'].fields_by_name['absolute_mint_limit']._serialized_options = b'\030\001\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' _globals['_MSGCREATERATELIMIT']._loaded_options = None _globals['_MSGCREATERATELIMIT']._serialized_options = b'\202\347\260*\tauthority\212\347\260*\030peggy/MsgCreateRateLimit' _globals['_MSGUPDATERATELIMIT'].fields_by_name['authority']._loaded_options = None @@ -173,17 +173,17 @@ _globals['_MSGREVOKEETHEREUMBLACKLISTRESPONSE']._serialized_start=3962 _globals['_MSGREVOKEETHEREUMBLACKLISTRESPONSE']._serialized_end=3998 _globals['_MSGCREATERATELIMIT']._serialized_start=4001 - _globals['_MSGCREATERATELIMIT']._serialized_end=4434 - _globals['_MSGCREATERATELIMITRESPONSE']._serialized_start=4436 - _globals['_MSGCREATERATELIMITRESPONSE']._serialized_end=4464 - _globals['_MSGUPDATERATELIMIT']._serialized_start=4467 - _globals['_MSGUPDATERATELIMIT']._serialized_end=4803 - _globals['_MSGUPDATERATELIMITRESPONSE']._serialized_start=4805 - _globals['_MSGUPDATERATELIMITRESPONSE']._serialized_end=4833 - _globals['_MSGREMOVERATELIMIT']._serialized_start=4836 - _globals['_MSGREMOVERATELIMIT']._serialized_end=4994 - _globals['_MSGREMOVERATELIMITRESPONSE']._serialized_start=4996 - _globals['_MSGREMOVERATELIMITRESPONSE']._serialized_end=5024 - _globals['_MSG']._serialized_start=5027 - _globals['_MSG']._serialized_end=7458 + _globals['_MSGCREATERATELIMIT']._serialized_end=4436 + _globals['_MSGCREATERATELIMITRESPONSE']._serialized_start=4438 + _globals['_MSGCREATERATELIMITRESPONSE']._serialized_end=4466 + _globals['_MSGUPDATERATELIMIT']._serialized_start=4469 + _globals['_MSGUPDATERATELIMIT']._serialized_end=4805 + _globals['_MSGUPDATERATELIMITRESPONSE']._serialized_start=4807 + _globals['_MSGUPDATERATELIMITRESPONSE']._serialized_end=4835 + _globals['_MSGREMOVERATELIMIT']._serialized_start=4838 + _globals['_MSGREMOVERATELIMIT']._serialized_end=4996 + _globals['_MSGREMOVERATELIMITRESPONSE']._serialized_start=4998 + _globals['_MSGREMOVERATELIMITRESPONSE']._serialized_end=5026 + _globals['_MSG']._serialized_start=5029 + _globals['_MSG']._serialized_end=7460 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/peggy/v1/rate_limit_pb2.py b/pyinjective/proto/injective/peggy/v1/rate_limit_pb2.py index 49b35de3..701be71e 100644 --- a/pyinjective/proto/injective/peggy/v1/rate_limit_pb2.py +++ b/pyinjective/proto/injective/peggy/v1/rate_limit_pb2.py @@ -15,7 +15,7 @@ from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#injective/peggy/v1/rate_limit.proto\x12\x12injective.peggy.v1\x1a\x14gogoproto/gogo.proto\"\x85\x03\n\tRateLimit\x12#\n\rtoken_address\x18\x01 \x01(\tR\x0ctokenAddress\x12%\n\x0etoken_decimals\x18\x02 \x01(\rR\rtokenDecimals\x12$\n\x0etoken_price_id\x18\x03 \x01(\tR\x0ctokenPriceId\x12*\n\x11rate_limit_window\x18\x04 \x01(\x04R\x0frateLimitWindow\x12I\n\x0erate_limit_usd\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0crateLimitUsd\x12M\n\x13\x61\x62solute_mint_limit\x18\x06 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x11\x61\x62soluteMintLimit\x12@\n\ttransfers\x18\x07 \x03(\x0b\x32\".injective.peggy.v1.BridgeTransferR\ttransfers\"\x89\x01\n\x0e\x42ridgeTransfer\x12\x35\n\x06\x61mount\x18\x01 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\x1d\n\nis_deposit\x18\x03 \x01(\x08R\tisDepositB\xdf\x01\n\x16\x63om.injective.peggy.v1B\x0eRateLimitProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/peggy/types\xa2\x02\x03IPX\xaa\x02\x12Injective.Peggy.V1\xca\x02\x12Injective\\Peggy\\V1\xe2\x02\x1eInjective\\Peggy\\V1\\GPBMetadata\xea\x02\x14Injective::Peggy::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#injective/peggy/v1/rate_limit.proto\x12\x12injective.peggy.v1\x1a\x14gogoproto/gogo.proto\"\x8b\x03\n\tRateLimit\x12#\n\rtoken_address\x18\x01 \x01(\tR\x0ctokenAddress\x12%\n\x0etoken_decimals\x18\x02 \x01(\rR\rtokenDecimals\x12$\n\x0etoken_price_id\x18\x03 \x01(\tR\x0ctokenPriceId\x12*\n\x11rate_limit_window\x18\x04 \x01(\x04R\x0frateLimitWindow\x12I\n\x0erate_limit_usd\x18\x05 \x01(\tB#\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDecR\x0crateLimitUsd\x12O\n\x13\x61\x62solute_mint_limit\x18\x06 \x01(\tB\x1f\x18\x01\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x11\x61\x62soluteMintLimit\x12\x44\n\ttransfers\x18\x07 \x03(\x0b\x32\".injective.peggy.v1.BridgeTransferB\x02\x18\x01R\ttransfers\"\x8d\x01\n\x0e\x42ridgeTransfer\x12\x35\n\x06\x61mount\x18\x01 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\x12!\n\x0c\x62lock_number\x18\x02 \x01(\x04R\x0b\x62lockNumber\x12\x1d\n\nis_deposit\x18\x03 \x01(\x08R\tisDeposit:\x02\x18\x01\"\xb2\x01\n\x12RateLimitTransfers\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\x12\x41\n\x07inflows\x18\x02 \x03(\x0b\x32\'.injective.peggy.v1.BlockTransferRecordR\x07inflows\x12\x43\n\x08outflows\x18\x03 \x03(\x0b\x32\'.injective.peggy.v1.BlockTransferRecordR\x08outflows\"o\n\x13\x42lockTransferRecord\x12!\n\x0c\x62lock_number\x18\x01 \x01(\x04R\x0b\x62lockNumber\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mount\"Y\n\nMintAmount\x12\x14\n\x05token\x18\x01 \x01(\tR\x05token\x12\x35\n\x06\x61mount\x18\x02 \x01(\tB\x1d\xc8\xde\x1f\x00\xda\xde\x1f\x15\x63osmossdk.io/math.IntR\x06\x61mountB\xdf\x01\n\x16\x63om.injective.peggy.v1B\x0eRateLimitProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/peggy/types\xa2\x02\x03IPX\xaa\x02\x12Injective.Peggy.V1\xca\x02\x12Injective\\Peggy\\V1\xe2\x02\x1eInjective\\Peggy\\V1\\GPBMetadata\xea\x02\x14Injective::Peggy::V1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,11 +26,25 @@ _globals['_RATELIMIT'].fields_by_name['rate_limit_usd']._loaded_options = None _globals['_RATELIMIT'].fields_by_name['rate_limit_usd']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec' _globals['_RATELIMIT'].fields_by_name['absolute_mint_limit']._loaded_options = None - _globals['_RATELIMIT'].fields_by_name['absolute_mint_limit']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_RATELIMIT'].fields_by_name['absolute_mint_limit']._serialized_options = b'\030\001\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_RATELIMIT'].fields_by_name['transfers']._loaded_options = None + _globals['_RATELIMIT'].fields_by_name['transfers']._serialized_options = b'\030\001' _globals['_BRIDGETRANSFER'].fields_by_name['amount']._loaded_options = None _globals['_BRIDGETRANSFER'].fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_BRIDGETRANSFER']._loaded_options = None + _globals['_BRIDGETRANSFER']._serialized_options = b'\030\001' + _globals['_BLOCKTRANSFERRECORD'].fields_by_name['amount']._loaded_options = None + _globals['_BLOCKTRANSFERRECORD'].fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' + _globals['_MINTAMOUNT'].fields_by_name['amount']._loaded_options = None + _globals['_MINTAMOUNT'].fields_by_name['amount']._serialized_options = b'\310\336\037\000\332\336\037\025cosmossdk.io/math.Int' _globals['_RATELIMIT']._serialized_start=82 - _globals['_RATELIMIT']._serialized_end=471 - _globals['_BRIDGETRANSFER']._serialized_start=474 - _globals['_BRIDGETRANSFER']._serialized_end=611 + _globals['_RATELIMIT']._serialized_end=477 + _globals['_BRIDGETRANSFER']._serialized_start=480 + _globals['_BRIDGETRANSFER']._serialized_end=621 + _globals['_RATELIMITTRANSFERS']._serialized_start=624 + _globals['_RATELIMITTRANSFERS']._serialized_end=802 + _globals['_BLOCKTRANSFERRECORD']._serialized_start=804 + _globals['_BLOCKTRANSFERRECORD']._serialized_end=915 + _globals['_MINTAMOUNT']._serialized_start=917 + _globals['_MINTAMOUNT']._serialized_end=1006 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/permissions/v1beta1/genesis_pb2.py b/pyinjective/proto/injective/permissions/v1beta1/genesis_pb2.py index e3ed2f66..c3685f0c 100644 --- a/pyinjective/proto/injective/permissions/v1beta1/genesis_pb2.py +++ b/pyinjective/proto/injective/permissions/v1beta1/genesis_pb2.py @@ -13,11 +13,12 @@ from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 from pyinjective.proto.injective.permissions.v1beta1 import params_pb2 as injective_dot_permissions_dot_v1beta1_dot_params__pb2 from pyinjective.proto.injective.permissions.v1beta1 import permissions_pb2 as injective_dot_permissions_dot_v1beta1_dot_permissions__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+injective/permissions/v1beta1/genesis.proto\x12\x1dinjective.permissions.v1beta1\x1a\x14gogoproto/gogo.proto\x1a*injective/permissions/v1beta1/params.proto\x1a/injective/permissions/v1beta1/permissions.proto\"\xee\x01\n\x0cGenesisState\x12\x43\n\x06params\x18\x01 \x01(\x0b\x32%.injective.permissions.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12N\n\nnamespaces\x18\x02 \x03(\x0b\x32(.injective.permissions.v1beta1.NamespaceB\x04\xc8\xde\x1f\x00R\nnamespaces\x12I\n\x08vouchers\x18\x03 \x03(\x0b\x32-.injective.permissions.v1beta1.AddressVoucherR\x08vouchersB\x9a\x02\n!com.injective.permissions.v1beta1B\x0cGenesisProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+injective/permissions/v1beta1/genesis.proto\x12\x1dinjective.permissions.v1beta1\x1a\x14gogoproto/gogo.proto\x1a+injective/common/vouchers/v1/vouchers.proto\x1a*injective/permissions/v1beta1/params.proto\x1a/injective/permissions/v1beta1/permissions.proto\"\xf3\x01\n\x0cGenesisState\x12\x43\n\x06params\x18\x01 \x01(\x0b\x32%.injective.permissions.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\x12N\n\nnamespaces\x18\x02 \x03(\x0b\x32(.injective.permissions.v1beta1.NamespaceB\x04\xc8\xde\x1f\x00R\nnamespaces\x12N\n\x08vouchers\x18\x03 \x03(\x0b\x32,.injective.common.vouchers.v1.AddressVoucherB\x04\xc8\xde\x1f\x00R\x08vouchersB\x9a\x02\n!com.injective.permissions.v1beta1B\x0cGenesisProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -29,6 +30,8 @@ _globals['_GENESISSTATE'].fields_by_name['params']._serialized_options = b'\310\336\037\000' _globals['_GENESISSTATE'].fields_by_name['namespaces']._loaded_options = None _globals['_GENESISSTATE'].fields_by_name['namespaces']._serialized_options = b'\310\336\037\000' - _globals['_GENESISSTATE']._serialized_start=194 - _globals['_GENESISSTATE']._serialized_end=432 + _globals['_GENESISSTATE'].fields_by_name['vouchers']._loaded_options = None + _globals['_GENESISSTATE'].fields_by_name['vouchers']._serialized_options = b'\310\336\037\000' + _globals['_GENESISSTATE']._serialized_start=239 + _globals['_GENESISSTATE']._serialized_end=482 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/permissions/v1beta1/params_pb2.py b/pyinjective/proto/injective/permissions/v1beta1/params_pb2.py index e9cc2ec9..03522416 100644 --- a/pyinjective/proto/injective/permissions/v1beta1/params_pb2.py +++ b/pyinjective/proto/injective/permissions/v1beta1/params_pb2.py @@ -18,7 +18,7 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*injective/permissions/v1beta1/params.proto\x12\x1dinjective.permissions.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\"\xa0\x01\n\x06Params\x12\x31\n\x15\x63ontract_hook_max_gas\x18\x01 \x01(\x04R\x12\x63ontractHookMaxGas\x12\x46\n\x1f\x65nforced_restrictions_contracts\x18\x02 \x03(\tR\x1d\x65nforcedRestrictionsContracts:\x1b\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x12permissions/ParamsB\x99\x02\n!com.injective.permissions.v1beta1B\x0bParamsProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*injective/permissions/v1beta1/params.proto\x12\x1dinjective.permissions.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x11\x61mino/amino.proto\"\xd4\x02\n\x1f\x45nforcedRestrictionsEVMContract\x12\x43\n\x10\x63ontract_address\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\x0f\x63ontractAddress\x12\x32\n\x15pause_event_signature\x18\x02 \x01(\tR\x13pauseEventSignature\x12\x36\n\x17unpause_event_signature\x18\x03 \x01(\tR\x15unpauseEventSignature\x12:\n\x19\x62lacklist_event_signature\x18\x04 \x01(\tR\x17\x62lacklistEventSignature\x12>\n\x1bunblacklist_event_signature\x18\x05 \x01(\tR\x19unblacklistEventSignature:\x04\xe8\xa0\x1f\x01\"\xcb\x02\n\x06Params\x12\x31\n\x15\x63ontract_hook_max_gas\x18\x01 \x01(\x04R\x12\x63ontractHookMaxGas\x12[\n*deprecated_enforced_restrictions_contracts\x18\x02 \x03(\tR\'deprecatedEnforcedRestrictionsContracts\x12\x93\x01\n#enforced_restrictions_evm_contracts\x18\x03 \x03(\x0b\x32>.injective.permissions.v1beta1.EnforcedRestrictionsEVMContractB\x04\xc8\xde\x1f\x00R enforcedRestrictionsEvmContracts:\x1b\xe8\xa0\x1f\x01\x8a\xe7\xb0*\x12permissions/ParamsB\x99\x02\n!com.injective.permissions.v1beta1B\x0bParamsProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -26,8 +26,16 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n!com.injective.permissions.v1beta1B\013ParamsProtoP\001ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\242\002\003IPX\252\002\035Injective.Permissions.V1beta1\312\002\035Injective\\Permissions\\V1beta1\342\002)Injective\\Permissions\\V1beta1\\GPBMetadata\352\002\037Injective::Permissions::V1beta1' + _globals['_ENFORCEDRESTRICTIONSEVMCONTRACT'].fields_by_name['contract_address']._loaded_options = None + _globals['_ENFORCEDRESTRICTIONSEVMCONTRACT'].fields_by_name['contract_address']._serialized_options = b'\322\264-\024cosmos.AddressString' + _globals['_ENFORCEDRESTRICTIONSEVMCONTRACT']._loaded_options = None + _globals['_ENFORCEDRESTRICTIONSEVMCONTRACT']._serialized_options = b'\350\240\037\001' + _globals['_PARAMS'].fields_by_name['enforced_restrictions_evm_contracts']._loaded_options = None + _globals['_PARAMS'].fields_by_name['enforced_restrictions_evm_contracts']._serialized_options = b'\310\336\037\000' _globals['_PARAMS']._loaded_options = None _globals['_PARAMS']._serialized_options = b'\350\240\037\001\212\347\260*\022permissions/Params' - _globals['_PARAMS']._serialized_start=178 - _globals['_PARAMS']._serialized_end=338 + _globals['_ENFORCEDRESTRICTIONSEVMCONTRACT']._serialized_start=178 + _globals['_ENFORCEDRESTRICTIONSEVMCONTRACT']._serialized_end=518 + _globals['_PARAMS']._serialized_start=521 + _globals['_PARAMS']._serialized_end=852 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/permissions/v1beta1/permissions_pb2.py b/pyinjective/proto/injective/permissions/v1beta1/permissions_pb2.py index 3808188f..28073529 100644 --- a/pyinjective/proto/injective/permissions/v1beta1/permissions_pb2.py +++ b/pyinjective/proto/injective/permissions/v1beta1/permissions_pb2.py @@ -14,9 +14,10 @@ from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/injective/permissions/v1beta1/permissions.proto\x12\x1dinjective.permissions.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\"\x94\x04\n\tNamespace\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x1b\n\twasm_hook\x18\x02 \x01(\tR\x08wasmHook\x12N\n\x10role_permissions\x18\x03 \x03(\x0b\x32#.injective.permissions.v1beta1.RoleR\x0frolePermissions\x12J\n\x0b\x61\x63tor_roles\x18\x04 \x03(\x0b\x32).injective.permissions.v1beta1.ActorRolesR\nactorRoles\x12O\n\rrole_managers\x18\x05 \x03(\x0b\x32*.injective.permissions.v1beta1.RoleManagerR\x0croleManagers\x12T\n\x0fpolicy_statuses\x18\x06 \x03(\x0b\x32+.injective.permissions.v1beta1.PolicyStatusR\x0epolicyStatuses\x12v\n\x1bpolicy_manager_capabilities\x18\x07 \x03(\x0b\x32\x36.injective.permissions.v1beta1.PolicyManagerCapabilityR\x19policyManagerCapabilities\x12\x19\n\x08\x65vm_hook\x18\x08 \x01(\tR\x07\x65vmHook\"8\n\nActorRoles\x12\x14\n\x05\x61\x63tor\x18\x01 \x01(\tR\x05\x61\x63tor\x12\x14\n\x05roles\x18\x02 \x03(\tR\x05roles\"8\n\nRoleActors\x12\x12\n\x04role\x18\x01 \x01(\tR\x04role\x12\x16\n\x06\x61\x63tors\x18\x02 \x03(\tR\x06\x61\x63tors\"=\n\x0bRoleManager\x12\x18\n\x07manager\x18\x01 \x01(\tR\x07manager\x12\x14\n\x05roles\x18\x02 \x03(\tR\x05roles\"\x8b\x01\n\x0cPolicyStatus\x12=\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32%.injective.permissions.v1beta1.ActionR\x06\x61\x63tion\x12\x1f\n\x0bis_disabled\x18\x02 \x01(\x08R\nisDisabled\x12\x1b\n\tis_sealed\x18\x03 \x01(\x08R\x08isSealed\"U\n\x04Role\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x17\n\x07role_id\x18\x02 \x01(\rR\x06roleId\x12 \n\x0bpermissions\x18\x03 \x01(\rR\x0bpermissions\"\xae\x01\n\x17PolicyManagerCapability\x12\x18\n\x07manager\x18\x01 \x01(\tR\x07manager\x12=\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32%.injective.permissions.v1beta1.ActionR\x06\x61\x63tion\x12\x1f\n\x0b\x63\x61n_disable\x18\x03 \x01(\x08R\ncanDisable\x12\x19\n\x08\x63\x61n_seal\x18\x04 \x01(\x08R\x07\x63\x61nSeal\"$\n\x07RoleIDs\x12\x19\n\x08role_ids\x18\x01 \x03(\rR\x07roleIds\"\xa5\x01\n\x0e\x41\x64\x64ressVoucher\x12\x18\n\x07\x61\x64\x64ress\x18\x01 \x01(\tR\x07\x61\x64\x64ress\x12y\n\x07voucher\x18\x02 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinBD\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.Coin\xea\xde\x1f\x11voucher,omitemptyR\x07voucher*\xd0\x01\n\x06\x41\x63tion\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04MINT\x10\x01\x12\x0b\n\x07RECEIVE\x10\x02\x12\x08\n\x04\x42URN\x10\x04\x12\x08\n\x04SEND\x10\x08\x12\x0e\n\nSUPER_BURN\x10\x10\x12\x1d\n\x16MODIFY_POLICY_MANAGERS\x10\x80\x80\x80@\x12\x1c\n\x14MODIFY_CONTRACT_HOOK\x10\x80\x80\x80\x80\x01\x12\x1f\n\x17MODIFY_ROLE_PERMISSIONS\x10\x80\x80\x80\x80\x02\x12\x1c\n\x14MODIFY_ROLE_MANAGERS\x10\x80\x80\x80\x80\x04\x42\x9e\x02\n!com.injective.permissions.v1beta1B\x10PermissionsProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/injective/permissions/v1beta1/permissions.proto\x12\x1dinjective.permissions.v1beta1\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a\x14gogoproto/gogo.proto\x1a+injective/common/vouchers/v1/vouchers.proto\"\x94\x04\n\tNamespace\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x1b\n\twasm_hook\x18\x02 \x01(\tR\x08wasmHook\x12N\n\x10role_permissions\x18\x03 \x03(\x0b\x32#.injective.permissions.v1beta1.RoleR\x0frolePermissions\x12J\n\x0b\x61\x63tor_roles\x18\x04 \x03(\x0b\x32).injective.permissions.v1beta1.ActorRolesR\nactorRoles\x12O\n\rrole_managers\x18\x05 \x03(\x0b\x32*.injective.permissions.v1beta1.RoleManagerR\x0croleManagers\x12T\n\x0fpolicy_statuses\x18\x06 \x03(\x0b\x32+.injective.permissions.v1beta1.PolicyStatusR\x0epolicyStatuses\x12v\n\x1bpolicy_manager_capabilities\x18\x07 \x03(\x0b\x32\x36.injective.permissions.v1beta1.PolicyManagerCapabilityR\x19policyManagerCapabilities\x12\x19\n\x08\x65vm_hook\x18\x08 \x01(\tR\x07\x65vmHook\"8\n\nActorRoles\x12\x14\n\x05\x61\x63tor\x18\x01 \x01(\tR\x05\x61\x63tor\x12\x14\n\x05roles\x18\x02 \x03(\tR\x05roles\"8\n\nRoleActors\x12\x12\n\x04role\x18\x01 \x01(\tR\x04role\x12\x16\n\x06\x61\x63tors\x18\x02 \x03(\tR\x06\x61\x63tors\"=\n\x0bRoleManager\x12\x18\n\x07manager\x18\x01 \x01(\tR\x07manager\x12\x14\n\x05roles\x18\x02 \x03(\tR\x05roles\"\x8b\x01\n\x0cPolicyStatus\x12=\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32%.injective.permissions.v1beta1.ActionR\x06\x61\x63tion\x12\x1f\n\x0bis_disabled\x18\x02 \x01(\x08R\nisDisabled\x12\x1b\n\tis_sealed\x18\x03 \x01(\x08R\x08isSealed\"U\n\x04Role\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x17\n\x07role_id\x18\x02 \x01(\rR\x06roleId\x12 \n\x0bpermissions\x18\x03 \x01(\rR\x0bpermissions\"\xae\x01\n\x17PolicyManagerCapability\x12\x18\n\x07manager\x18\x01 \x01(\tR\x07manager\x12=\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32%.injective.permissions.v1beta1.ActionR\x06\x61\x63tion\x12\x1f\n\x0b\x63\x61n_disable\x18\x03 \x01(\x08R\ncanDisable\x12\x19\n\x08\x63\x61n_seal\x18\x04 \x01(\x08R\x07\x63\x61nSeal\"$\n\x07RoleIDs\x12\x19\n\x08role_ids\x18\x01 \x03(\rR\x07roleIds*\xd0\x01\n\x06\x41\x63tion\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04MINT\x10\x01\x12\x0b\n\x07RECEIVE\x10\x02\x12\x08\n\x04\x42URN\x10\x04\x12\x08\n\x04SEND\x10\x08\x12\x0e\n\nSUPER_BURN\x10\x10\x12\x1d\n\x16MODIFY_POLICY_MANAGERS\x10\x80\x80\x80@\x12\x1c\n\x14MODIFY_CONTRACT_HOOK\x10\x80\x80\x80\x80\x01\x12\x1f\n\x17MODIFY_ROLE_PERMISSIONS\x10\x80\x80\x80\x80\x02\x12\x1c\n\x14MODIFY_ROLE_MANAGERS\x10\x80\x80\x80\x80\x04\x42\x9e\x02\n!com.injective.permissions.v1beta1B\x10PermissionsProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -24,26 +25,22 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n!com.injective.permissions.v1beta1B\020PermissionsProtoP\001ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\242\002\003IPX\252\002\035Injective.Permissions.V1beta1\312\002\035Injective\\Permissions\\V1beta1\342\002)Injective\\Permissions\\V1beta1\\GPBMetadata\352\002\037Injective::Permissions::V1beta1' - _globals['_ADDRESSVOUCHER'].fields_by_name['voucher']._loaded_options = None - _globals['_ADDRESSVOUCHER'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin\352\336\037\021voucher,omitempty' - _globals['_ACTION']._serialized_start=1463 - _globals['_ACTION']._serialized_end=1671 - _globals['_NAMESPACE']._serialized_start=137 - _globals['_NAMESPACE']._serialized_end=669 - _globals['_ACTORROLES']._serialized_start=671 - _globals['_ACTORROLES']._serialized_end=727 - _globals['_ROLEACTORS']._serialized_start=729 - _globals['_ROLEACTORS']._serialized_end=785 - _globals['_ROLEMANAGER']._serialized_start=787 - _globals['_ROLEMANAGER']._serialized_end=848 - _globals['_POLICYSTATUS']._serialized_start=851 - _globals['_POLICYSTATUS']._serialized_end=990 - _globals['_ROLE']._serialized_start=992 - _globals['_ROLE']._serialized_end=1077 - _globals['_POLICYMANAGERCAPABILITY']._serialized_start=1080 - _globals['_POLICYMANAGERCAPABILITY']._serialized_end=1254 - _globals['_ROLEIDS']._serialized_start=1256 - _globals['_ROLEIDS']._serialized_end=1292 - _globals['_ADDRESSVOUCHER']._serialized_start=1295 - _globals['_ADDRESSVOUCHER']._serialized_end=1460 + _globals['_ACTION']._serialized_start=1340 + _globals['_ACTION']._serialized_end=1548 + _globals['_NAMESPACE']._serialized_start=182 + _globals['_NAMESPACE']._serialized_end=714 + _globals['_ACTORROLES']._serialized_start=716 + _globals['_ACTORROLES']._serialized_end=772 + _globals['_ROLEACTORS']._serialized_start=774 + _globals['_ROLEACTORS']._serialized_end=830 + _globals['_ROLEMANAGER']._serialized_start=832 + _globals['_ROLEMANAGER']._serialized_end=893 + _globals['_POLICYSTATUS']._serialized_start=896 + _globals['_POLICYSTATUS']._serialized_end=1035 + _globals['_ROLE']._serialized_start=1037 + _globals['_ROLE']._serialized_end=1122 + _globals['_POLICYMANAGERCAPABILITY']._serialized_start=1125 + _globals['_POLICYMANAGERCAPABILITY']._serialized_end=1299 + _globals['_ROLEIDS']._serialized_start=1301 + _globals['_ROLEIDS']._serialized_end=1337 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/permissions/v1beta1/query_pb2.py b/pyinjective/proto/injective/permissions/v1beta1/query_pb2.py index 9a189f68..6f2b6981 100644 --- a/pyinjective/proto/injective/permissions/v1beta1/query_pb2.py +++ b/pyinjective/proto/injective/permissions/v1beta1/query_pb2.py @@ -16,12 +16,13 @@ from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as cosmos_dot_base_dot_v1beta1_dot_coin__pb2 from pyinjective.proto.cosmos.base.query.v1beta1 import pagination_pb2 as cosmos_dot_base_dot_query_dot_v1beta1_dot_pagination__pb2 +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as injective_dot_common_dot_vouchers_dot_v1_dot_vouchers__pb2 from pyinjective.proto.injective.permissions.v1beta1 import params_pb2 as injective_dot_permissions_dot_v1beta1_dot_params__pb2 from pyinjective.proto.injective.permissions.v1beta1 import genesis_pb2 as injective_dot_permissions_dot_v1beta1_dot_genesis__pb2 from pyinjective.proto.injective.permissions.v1beta1 import permissions_pb2 as injective_dot_permissions_dot_v1beta1_dot_permissions__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)injective/permissions/v1beta1/query.proto\x12\x1dinjective.permissions.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a*injective/permissions/v1beta1/params.proto\x1a+injective/permissions/v1beta1/genesis.proto\x1a/injective/permissions/v1beta1/permissions.proto\"\x14\n\x12QueryParamsRequest\"Z\n\x13QueryParamsResponse\x12\x43\n\x06params\x18\x01 \x01(\x0b\x32%.injective.permissions.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"\x1d\n\x1bQueryNamespaceDenomsRequest\"6\n\x1cQueryNamespaceDenomsResponse\x12\x16\n\x06\x64\x65noms\x18\x01 \x03(\tR\x06\x64\x65noms\"\x18\n\x16QueryNamespacesRequest\"c\n\x17QueryNamespacesResponse\x12H\n\nnamespaces\x18\x01 \x03(\x0b\x32(.injective.permissions.v1beta1.NamespaceR\nnamespaces\"-\n\x15QueryNamespaceRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"`\n\x16QueryNamespaceResponse\x12\x46\n\tnamespace\x18\x01 \x01(\x0b\x32(.injective.permissions.v1beta1.NamespaceR\tnamespace\"D\n\x18QueryActorsByRoleRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x12\n\x04role\x18\x02 \x01(\tR\x04role\"3\n\x19QueryActorsByRoleResponse\x12\x16\n\x06\x61\x63tors\x18\x01 \x03(\tR\x06\x61\x63tors\"F\n\x18QueryRolesByActorRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x14\n\x05\x61\x63tor\x18\x02 \x01(\tR\x05\x61\x63tor\"1\n\x19QueryRolesByActorResponse\x12\x14\n\x05roles\x18\x01 \x03(\tR\x05roles\"0\n\x18QueryRoleManagersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"l\n\x19QueryRoleManagersResponse\x12O\n\rrole_managers\x18\x01 \x03(\x0b\x32*.injective.permissions.v1beta1.RoleManagerR\x0croleManagers\"I\n\x17QueryRoleManagerRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x18\n\x07manager\x18\x02 \x01(\tR\x07manager\"i\n\x18QueryRoleManagerResponse\x12M\n\x0crole_manager\x18\x01 \x01(\x0b\x32*.injective.permissions.v1beta1.RoleManagerR\x0broleManager\"2\n\x1aQueryPolicyStatusesRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"s\n\x1bQueryPolicyStatusesResponse\x12T\n\x0fpolicy_statuses\x18\x01 \x03(\x0b\x32+.injective.permissions.v1beta1.PolicyStatusR\x0epolicyStatuses\"=\n%QueryPolicyManagerCapabilitiesRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"\xa0\x01\n&QueryPolicyManagerCapabilitiesResponse\x12v\n\x1bpolicy_manager_capabilities\x18\x01 \x03(\x0b\x32\x36.injective.permissions.v1beta1.PolicyManagerCapabilityR\x19policyManagerCapabilities\",\n\x14QueryVouchersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"b\n\x15QueryVouchersResponse\x12I\n\x08vouchers\x18\x01 \x03(\x0b\x32-.injective.permissions.v1beta1.AddressVoucherR\x08vouchers\"E\n\x13QueryVoucherRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"\x91\x01\n\x14QueryVoucherResponse\x12y\n\x07voucher\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinBD\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.Coin\xea\xde\x1f\x11voucher,omitemptyR\x07voucher\"\x19\n\x17QueryModuleStateRequest\"]\n\x18QueryModuleStateResponse\x12\x41\n\x05state\x18\x01 \x01(\x0b\x32+.injective.permissions.v1beta1.GenesisStateR\x05state2\xdd\x13\n\x05Query\x12\x9e\x01\n\x06Params\x12\x31.injective.permissions.v1beta1.QueryParamsRequest\x1a\x32.injective.permissions.v1beta1.QueryParamsResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/injective/permissions/v1beta1/params\x12\xc3\x01\n\x0fNamespaceDenoms\x12:.injective.permissions.v1beta1.QueryNamespaceDenomsRequest\x1a;.injective.permissions.v1beta1.QueryNamespaceDenomsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//injective/permissions/v1beta1/namespace_denoms\x12\xae\x01\n\nNamespaces\x12\x35.injective.permissions.v1beta1.QueryNamespacesRequest\x1a\x36.injective.permissions.v1beta1.QueryNamespacesResponse\"1\x82\xd3\xe4\x93\x02+\x12)/injective/permissions/v1beta1/namespaces\x12\xb2\x01\n\tNamespace\x12\x34.injective.permissions.v1beta1.QueryNamespaceRequest\x1a\x35.injective.permissions.v1beta1.QueryNamespaceResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/injective/permissions/v1beta1/namespace/{denom}\x12\xc8\x01\n\x0cRolesByActor\x12\x37.injective.permissions.v1beta1.QueryRolesByActorRequest\x1a\x38.injective.permissions.v1beta1.QueryRolesByActorResponse\"E\x82\xd3\xe4\x93\x02?\x12=/injective/permissions/v1beta1/roles_by_actor/{denom}/{actor}\x12\xc7\x01\n\x0c\x41\x63torsByRole\x12\x37.injective.permissions.v1beta1.QueryActorsByRoleRequest\x1a\x38.injective.permissions.v1beta1.QueryActorsByRoleResponse\"D\x82\xd3\xe4\x93\x02>\x12\x82\xd3\xe4\x93\x02\x38\x12\x36/injective/permissions/v1beta1/policy_statuses/{denom}\x12\xf4\x01\n\x19PolicyManagerCapabilities\x12\x44.injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesRequest\x1a\x45.injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesResponse\"J\x82\xd3\xe4\x93\x02\x44\x12\x42/injective/permissions/v1beta1/policy_manager_capabilities/{denom}\x12\xae\x01\n\x08Vouchers\x12\x33.injective.permissions.v1beta1.QueryVouchersRequest\x1a\x34.injective.permissions.v1beta1.QueryVouchersResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//injective/permissions/v1beta1/vouchers/{denom}\x12\xb4\x01\n\x07Voucher\x12\x32.injective.permissions.v1beta1.QueryVoucherRequest\x1a\x33.injective.permissions.v1beta1.QueryVoucherResponse\"@\x82\xd3\xe4\x93\x02:\x12\x38/injective/permissions/v1beta1/voucher/{denom}/{address}\x12\xbe\x01\n\x16PermissionsModuleState\x12\x36.injective.permissions.v1beta1.QueryModuleStateRequest\x1a\x37.injective.permissions.v1beta1.QueryModuleStateResponse\"3\x82\xd3\xe4\x93\x02-\x12+/injective/permissions/v1beta1/module_stateB\x98\x02\n!com.injective.permissions.v1beta1B\nQueryProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)injective/permissions/v1beta1/query.proto\x12\x1dinjective.permissions.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1e\x63osmos/base/v1beta1/coin.proto\x1a*cosmos/base/query/v1beta1/pagination.proto\x1a+injective/common/vouchers/v1/vouchers.proto\x1a*injective/permissions/v1beta1/params.proto\x1a+injective/permissions/v1beta1/genesis.proto\x1a/injective/permissions/v1beta1/permissions.proto\"\x14\n\x12QueryParamsRequest\"Z\n\x13QueryParamsResponse\x12\x43\n\x06params\x18\x01 \x01(\x0b\x32%.injective.permissions.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params\"\x1d\n\x1bQueryNamespaceDenomsRequest\"6\n\x1cQueryNamespaceDenomsResponse\x12\x16\n\x06\x64\x65noms\x18\x01 \x03(\tR\x06\x64\x65noms\"\x18\n\x16QueryNamespacesRequest\"c\n\x17QueryNamespacesResponse\x12H\n\nnamespaces\x18\x01 \x03(\x0b\x32(.injective.permissions.v1beta1.NamespaceR\nnamespaces\"-\n\x15QueryNamespaceRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"`\n\x16QueryNamespaceResponse\x12\x46\n\tnamespace\x18\x01 \x01(\x0b\x32(.injective.permissions.v1beta1.NamespaceR\tnamespace\"D\n\x18QueryActorsByRoleRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x12\n\x04role\x18\x02 \x01(\tR\x04role\"3\n\x19QueryActorsByRoleResponse\x12\x16\n\x06\x61\x63tors\x18\x01 \x03(\tR\x06\x61\x63tors\"F\n\x18QueryRolesByActorRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x14\n\x05\x61\x63tor\x18\x02 \x01(\tR\x05\x61\x63tor\"1\n\x19QueryRolesByActorResponse\x12\x14\n\x05roles\x18\x01 \x03(\tR\x05roles\"0\n\x18QueryRoleManagersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"l\n\x19QueryRoleManagersResponse\x12O\n\rrole_managers\x18\x01 \x03(\x0b\x32*.injective.permissions.v1beta1.RoleManagerR\x0croleManagers\"I\n\x17QueryRoleManagerRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x18\n\x07manager\x18\x02 \x01(\tR\x07manager\"i\n\x18QueryRoleManagerResponse\x12M\n\x0crole_manager\x18\x01 \x01(\x0b\x32*.injective.permissions.v1beta1.RoleManagerR\x0broleManager\"2\n\x1aQueryPolicyStatusesRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"s\n\x1bQueryPolicyStatusesResponse\x12T\n\x0fpolicy_statuses\x18\x01 \x03(\x0b\x32+.injective.permissions.v1beta1.PolicyStatusR\x0epolicyStatuses\"=\n%QueryPolicyManagerCapabilitiesRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"\xa0\x01\n&QueryPolicyManagerCapabilitiesResponse\x12v\n\x1bpolicy_manager_capabilities\x18\x01 \x03(\x0b\x32\x36.injective.permissions.v1beta1.PolicyManagerCapabilityR\x19policyManagerCapabilities\",\n\x14QueryVouchersRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\"g\n\x15QueryVouchersResponse\x12N\n\x08vouchers\x18\x01 \x03(\x0b\x32,.injective.common.vouchers.v1.AddressVoucherB\x04\xc8\xde\x1f\x00R\x08vouchers\"E\n\x13QueryVoucherRequest\x12\x14\n\x05\x64\x65nom\x18\x01 \x01(\tR\x05\x64\x65nom\x12\x18\n\x07\x61\x64\x64ress\x18\x02 \x01(\tR\x07\x61\x64\x64ress\"|\n\x14QueryVoucherResponse\x12\x64\n\x07voucher\x18\x01 \x01(\x0b\x32\x19.cosmos.base.v1beta1.CoinB/\xc8\xde\x1f\x00\xda\xde\x1f\'github.com/cosmos/cosmos-sdk/types.CoinR\x07voucher\"\x19\n\x17QueryModuleStateRequest\"]\n\x18QueryModuleStateResponse\x12\x41\n\x05state\x18\x01 \x01(\x0b\x32+.injective.permissions.v1beta1.GenesisStateR\x05state2\xc3\x13\n\x05Query\x12\x9e\x01\n\x06Params\x12\x31.injective.permissions.v1beta1.QueryParamsRequest\x1a\x32.injective.permissions.v1beta1.QueryParamsResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/injective/permissions/v1beta1/params\x12\xc3\x01\n\x0fNamespaceDenoms\x12:.injective.permissions.v1beta1.QueryNamespaceDenomsRequest\x1a;.injective.permissions.v1beta1.QueryNamespaceDenomsResponse\"7\x82\xd3\xe4\x93\x02\x31\x12//injective/permissions/v1beta1/namespace_denoms\x12\xae\x01\n\nNamespaces\x12\x35.injective.permissions.v1beta1.QueryNamespacesRequest\x1a\x36.injective.permissions.v1beta1.QueryNamespacesResponse\"1\x82\xd3\xe4\x93\x02+\x12)/injective/permissions/v1beta1/namespaces\x12\xb2\x01\n\tNamespace\x12\x34.injective.permissions.v1beta1.QueryNamespaceRequest\x1a\x35.injective.permissions.v1beta1.QueryNamespaceResponse\"8\x82\xd3\xe4\x93\x02\x32\x12\x30/injective/permissions/v1beta1/namespace/{denom}\x12\xc8\x01\n\x0cRolesByActor\x12\x37.injective.permissions.v1beta1.QueryRolesByActorRequest\x1a\x38.injective.permissions.v1beta1.QueryRolesByActorResponse\"E\x82\xd3\xe4\x93\x02?\x12=/injective/permissions/v1beta1/roles_by_actor/{denom}/{actor}\x12\xc7\x01\n\x0c\x41\x63torsByRole\x12\x37.injective.permissions.v1beta1.QueryActorsByRoleRequest\x1a\x38.injective.permissions.v1beta1.QueryActorsByRoleResponse\"D\x82\xd3\xe4\x93\x02>\x12\x82\xd3\xe4\x93\x02\x38\x12\x36/injective/permissions/v1beta1/policy_statuses/{denom}\x12\xf4\x01\n\x19PolicyManagerCapabilities\x12\x44.injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesRequest\x1a\x45.injective.permissions.v1beta1.QueryPolicyManagerCapabilitiesResponse\"J\x82\xd3\xe4\x93\x02\x44\x12\x42/injective/permissions/v1beta1/policy_manager_capabilities/{denom}\x12\xa6\x01\n\x08Vouchers\x12\x33.injective.permissions.v1beta1.QueryVouchersRequest\x1a\x34.injective.permissions.v1beta1.QueryVouchersResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/injective/permissions/v1beta1/vouchers\x12\xa2\x01\n\x07Voucher\x12\x32.injective.permissions.v1beta1.QueryVoucherRequest\x1a\x33.injective.permissions.v1beta1.QueryVoucherResponse\".\x82\xd3\xe4\x93\x02(\x12&/injective/permissions/v1beta1/voucher\x12\xbe\x01\n\x16PermissionsModuleState\x12\x36.injective.permissions.v1beta1.QueryModuleStateRequest\x1a\x37.injective.permissions.v1beta1.QueryModuleStateResponse\"3\x82\xd3\xe4\x93\x02-\x12+/injective/permissions/v1beta1/module_stateB\x98\x02\n!com.injective.permissions.v1beta1B\nQueryProtoP\x01ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\xa2\x02\x03IPX\xaa\x02\x1dInjective.Permissions.V1beta1\xca\x02\x1dInjective\\Permissions\\V1beta1\xe2\x02)Injective\\Permissions\\V1beta1\\GPBMetadata\xea\x02\x1fInjective::Permissions::V1beta1b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -31,8 +32,10 @@ _globals['DESCRIPTOR']._serialized_options = b'\n!com.injective.permissions.v1beta1B\nQueryProtoP\001ZQgithub.com/InjectiveLabs/injective-core/injective-chain/modules/permissions/types\242\002\003IPX\252\002\035Injective.Permissions.V1beta1\312\002\035Injective\\Permissions\\V1beta1\342\002)Injective\\Permissions\\V1beta1\\GPBMetadata\352\002\037Injective::Permissions::V1beta1' _globals['_QUERYPARAMSRESPONSE'].fields_by_name['params']._loaded_options = None _globals['_QUERYPARAMSRESPONSE'].fields_by_name['params']._serialized_options = b'\310\336\037\000' + _globals['_QUERYVOUCHERSRESPONSE'].fields_by_name['vouchers']._loaded_options = None + _globals['_QUERYVOUCHERSRESPONSE'].fields_by_name['vouchers']._serialized_options = b'\310\336\037\000' _globals['_QUERYVOUCHERRESPONSE'].fields_by_name['voucher']._loaded_options = None - _globals['_QUERYVOUCHERRESPONSE'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin\352\336\037\021voucher,omitempty' + _globals['_QUERYVOUCHERRESPONSE'].fields_by_name['voucher']._serialized_options = b'\310\336\037\000\332\336\037\'github.com/cosmos/cosmos-sdk/types.Coin' _globals['_QUERY'].methods_by_name['Params']._loaded_options = None _globals['_QUERY'].methods_by_name['Params']._serialized_options = b'\202\323\344\223\002\'\022%/injective/permissions/v1beta1/params' _globals['_QUERY'].methods_by_name['NamespaceDenoms']._loaded_options = None @@ -54,63 +57,63 @@ _globals['_QUERY'].methods_by_name['PolicyManagerCapabilities']._loaded_options = None _globals['_QUERY'].methods_by_name['PolicyManagerCapabilities']._serialized_options = b'\202\323\344\223\002D\022B/injective/permissions/v1beta1/policy_manager_capabilities/{denom}' _globals['_QUERY'].methods_by_name['Vouchers']._loaded_options = None - _globals['_QUERY'].methods_by_name['Vouchers']._serialized_options = b'\202\323\344\223\0021\022//injective/permissions/v1beta1/vouchers/{denom}' + _globals['_QUERY'].methods_by_name['Vouchers']._serialized_options = b'\202\323\344\223\002)\022\'/injective/permissions/v1beta1/vouchers' _globals['_QUERY'].methods_by_name['Voucher']._loaded_options = None - _globals['_QUERY'].methods_by_name['Voucher']._serialized_options = b'\202\323\344\223\002:\0228/injective/permissions/v1beta1/voucher/{denom}/{address}' + _globals['_QUERY'].methods_by_name['Voucher']._serialized_options = b'\202\323\344\223\002(\022&/injective/permissions/v1beta1/voucher' _globals['_QUERY'].methods_by_name['PermissionsModuleState']._loaded_options = None _globals['_QUERY'].methods_by_name['PermissionsModuleState']._serialized_options = b'\202\323\344\223\002-\022+/injective/permissions/v1beta1/module_state' - _globals['_QUERYPARAMSREQUEST']._serialized_start=342 - _globals['_QUERYPARAMSREQUEST']._serialized_end=362 - _globals['_QUERYPARAMSRESPONSE']._serialized_start=364 - _globals['_QUERYPARAMSRESPONSE']._serialized_end=454 - _globals['_QUERYNAMESPACEDENOMSREQUEST']._serialized_start=456 - _globals['_QUERYNAMESPACEDENOMSREQUEST']._serialized_end=485 - _globals['_QUERYNAMESPACEDENOMSRESPONSE']._serialized_start=487 - _globals['_QUERYNAMESPACEDENOMSRESPONSE']._serialized_end=541 - _globals['_QUERYNAMESPACESREQUEST']._serialized_start=543 - _globals['_QUERYNAMESPACESREQUEST']._serialized_end=567 - _globals['_QUERYNAMESPACESRESPONSE']._serialized_start=569 - _globals['_QUERYNAMESPACESRESPONSE']._serialized_end=668 - _globals['_QUERYNAMESPACEREQUEST']._serialized_start=670 - _globals['_QUERYNAMESPACEREQUEST']._serialized_end=715 - _globals['_QUERYNAMESPACERESPONSE']._serialized_start=717 - _globals['_QUERYNAMESPACERESPONSE']._serialized_end=813 - _globals['_QUERYACTORSBYROLEREQUEST']._serialized_start=815 - _globals['_QUERYACTORSBYROLEREQUEST']._serialized_end=883 - _globals['_QUERYACTORSBYROLERESPONSE']._serialized_start=885 - _globals['_QUERYACTORSBYROLERESPONSE']._serialized_end=936 - _globals['_QUERYROLESBYACTORREQUEST']._serialized_start=938 - _globals['_QUERYROLESBYACTORREQUEST']._serialized_end=1008 - _globals['_QUERYROLESBYACTORRESPONSE']._serialized_start=1010 - _globals['_QUERYROLESBYACTORRESPONSE']._serialized_end=1059 - _globals['_QUERYROLEMANAGERSREQUEST']._serialized_start=1061 - _globals['_QUERYROLEMANAGERSREQUEST']._serialized_end=1109 - _globals['_QUERYROLEMANAGERSRESPONSE']._serialized_start=1111 - _globals['_QUERYROLEMANAGERSRESPONSE']._serialized_end=1219 - _globals['_QUERYROLEMANAGERREQUEST']._serialized_start=1221 - _globals['_QUERYROLEMANAGERREQUEST']._serialized_end=1294 - _globals['_QUERYROLEMANAGERRESPONSE']._serialized_start=1296 - _globals['_QUERYROLEMANAGERRESPONSE']._serialized_end=1401 - _globals['_QUERYPOLICYSTATUSESREQUEST']._serialized_start=1403 - _globals['_QUERYPOLICYSTATUSESREQUEST']._serialized_end=1453 - _globals['_QUERYPOLICYSTATUSESRESPONSE']._serialized_start=1455 - _globals['_QUERYPOLICYSTATUSESRESPONSE']._serialized_end=1570 - _globals['_QUERYPOLICYMANAGERCAPABILITIESREQUEST']._serialized_start=1572 - _globals['_QUERYPOLICYMANAGERCAPABILITIESREQUEST']._serialized_end=1633 - _globals['_QUERYPOLICYMANAGERCAPABILITIESRESPONSE']._serialized_start=1636 - _globals['_QUERYPOLICYMANAGERCAPABILITIESRESPONSE']._serialized_end=1796 - _globals['_QUERYVOUCHERSREQUEST']._serialized_start=1798 - _globals['_QUERYVOUCHERSREQUEST']._serialized_end=1842 - _globals['_QUERYVOUCHERSRESPONSE']._serialized_start=1844 - _globals['_QUERYVOUCHERSRESPONSE']._serialized_end=1942 - _globals['_QUERYVOUCHERREQUEST']._serialized_start=1944 - _globals['_QUERYVOUCHERREQUEST']._serialized_end=2013 - _globals['_QUERYVOUCHERRESPONSE']._serialized_start=2016 - _globals['_QUERYVOUCHERRESPONSE']._serialized_end=2161 - _globals['_QUERYMODULESTATEREQUEST']._serialized_start=2163 - _globals['_QUERYMODULESTATEREQUEST']._serialized_end=2188 - _globals['_QUERYMODULESTATERESPONSE']._serialized_start=2190 - _globals['_QUERYMODULESTATERESPONSE']._serialized_end=2283 - _globals['_QUERY']._serialized_start=2286 - _globals['_QUERY']._serialized_end=4811 + _globals['_QUERYPARAMSREQUEST']._serialized_start=387 + _globals['_QUERYPARAMSREQUEST']._serialized_end=407 + _globals['_QUERYPARAMSRESPONSE']._serialized_start=409 + _globals['_QUERYPARAMSRESPONSE']._serialized_end=499 + _globals['_QUERYNAMESPACEDENOMSREQUEST']._serialized_start=501 + _globals['_QUERYNAMESPACEDENOMSREQUEST']._serialized_end=530 + _globals['_QUERYNAMESPACEDENOMSRESPONSE']._serialized_start=532 + _globals['_QUERYNAMESPACEDENOMSRESPONSE']._serialized_end=586 + _globals['_QUERYNAMESPACESREQUEST']._serialized_start=588 + _globals['_QUERYNAMESPACESREQUEST']._serialized_end=612 + _globals['_QUERYNAMESPACESRESPONSE']._serialized_start=614 + _globals['_QUERYNAMESPACESRESPONSE']._serialized_end=713 + _globals['_QUERYNAMESPACEREQUEST']._serialized_start=715 + _globals['_QUERYNAMESPACEREQUEST']._serialized_end=760 + _globals['_QUERYNAMESPACERESPONSE']._serialized_start=762 + _globals['_QUERYNAMESPACERESPONSE']._serialized_end=858 + _globals['_QUERYACTORSBYROLEREQUEST']._serialized_start=860 + _globals['_QUERYACTORSBYROLEREQUEST']._serialized_end=928 + _globals['_QUERYACTORSBYROLERESPONSE']._serialized_start=930 + _globals['_QUERYACTORSBYROLERESPONSE']._serialized_end=981 + _globals['_QUERYROLESBYACTORREQUEST']._serialized_start=983 + _globals['_QUERYROLESBYACTORREQUEST']._serialized_end=1053 + _globals['_QUERYROLESBYACTORRESPONSE']._serialized_start=1055 + _globals['_QUERYROLESBYACTORRESPONSE']._serialized_end=1104 + _globals['_QUERYROLEMANAGERSREQUEST']._serialized_start=1106 + _globals['_QUERYROLEMANAGERSREQUEST']._serialized_end=1154 + _globals['_QUERYROLEMANAGERSRESPONSE']._serialized_start=1156 + _globals['_QUERYROLEMANAGERSRESPONSE']._serialized_end=1264 + _globals['_QUERYROLEMANAGERREQUEST']._serialized_start=1266 + _globals['_QUERYROLEMANAGERREQUEST']._serialized_end=1339 + _globals['_QUERYROLEMANAGERRESPONSE']._serialized_start=1341 + _globals['_QUERYROLEMANAGERRESPONSE']._serialized_end=1446 + _globals['_QUERYPOLICYSTATUSESREQUEST']._serialized_start=1448 + _globals['_QUERYPOLICYSTATUSESREQUEST']._serialized_end=1498 + _globals['_QUERYPOLICYSTATUSESRESPONSE']._serialized_start=1500 + _globals['_QUERYPOLICYSTATUSESRESPONSE']._serialized_end=1615 + _globals['_QUERYPOLICYMANAGERCAPABILITIESREQUEST']._serialized_start=1617 + _globals['_QUERYPOLICYMANAGERCAPABILITIESREQUEST']._serialized_end=1678 + _globals['_QUERYPOLICYMANAGERCAPABILITIESRESPONSE']._serialized_start=1681 + _globals['_QUERYPOLICYMANAGERCAPABILITIESRESPONSE']._serialized_end=1841 + _globals['_QUERYVOUCHERSREQUEST']._serialized_start=1843 + _globals['_QUERYVOUCHERSREQUEST']._serialized_end=1887 + _globals['_QUERYVOUCHERSRESPONSE']._serialized_start=1889 + _globals['_QUERYVOUCHERSRESPONSE']._serialized_end=1992 + _globals['_QUERYVOUCHERREQUEST']._serialized_start=1994 + _globals['_QUERYVOUCHERREQUEST']._serialized_end=2063 + _globals['_QUERYVOUCHERRESPONSE']._serialized_start=2065 + _globals['_QUERYVOUCHERRESPONSE']._serialized_end=2189 + _globals['_QUERYMODULESTATEREQUEST']._serialized_start=2191 + _globals['_QUERYMODULESTATEREQUEST']._serialized_end=2216 + _globals['_QUERYMODULESTATERESPONSE']._serialized_start=2218 + _globals['_QUERYMODULESTATERESPONSE']._serialized_end=2311 + _globals['_QUERY']._serialized_start=2314 + _globals['_QUERY']._serialized_end=4813 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/txfees/v1beta1/tx_pb2.py b/pyinjective/proto/injective/txfees/v1beta1/tx_pb2.py index 4a6c5d99..6918b8af 100644 --- a/pyinjective/proto/injective/txfees/v1beta1/tx_pb2.py +++ b/pyinjective/proto/injective/txfees/v1beta1/tx_pb2.py @@ -19,14 +19,14 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!injective/txfees/v1beta1/tx.proto\x12\x18injective.txfees.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a%injective/txfees/v1beta1/txfees.proto\x1a\x11\x61mino/amino.proto\"\xb4\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12>\n\x06params\x18\x02 \x01(\x0b\x32 .injective.txfees.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:)\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x16txfees/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2z\n\x03Msg\x12l\n\x0cUpdateParams\x12).injective.txfees.v1beta1.MsgUpdateParams\x1a\x31.injective.txfees.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xf7\x01\n\x1c\x63om.injective.txfees.v1beta1B\x07TxProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/txfees/types\xa2\x02\x03ITX\xaa\x02\x18Injective.Txfees.V1beta1\xca\x02\x18Injective\\Txfees\\V1beta1\xe2\x02$Injective\\Txfees\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Txfees::V1beta1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!injective/txfees/v1beta1/tx.proto\x12\x18injective.txfees.v1beta1\x1a\x14gogoproto/gogo.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a%injective/txfees/v1beta1/txfees.proto\x1a\x11\x61mino/amino.proto\"\xb4\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12>\n\x06params\x18\x02 \x01(\x0b\x32 .injective.txfees.v1beta1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:)\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x16txfees/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse2z\n\x03Msg\x12l\n\x0cUpdateParams\x12).injective.txfees.v1beta1.MsgUpdateParams\x1a\x31.injective.txfees.v1beta1.MsgUpdateParamsResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xfb\x01\n\x1c\x63om.injective.txfees.v1beta1B\x07TxProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/txfees/types\xa2\x02\x03ITX\xaa\x02\x18Injective.Txfees.V1beta1\xca\x02\x18Injective\\Txfees\\V1beta1\xe2\x02$Injective\\Txfees\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Txfees::V1beta1\xc0\xe3\x1e\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.txfees.v1beta1.tx_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\034com.injective.txfees.v1beta1B\007TxProtoP\001ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/txfees/types\242\002\003ITX\252\002\030Injective.Txfees.V1beta1\312\002\030Injective\\Txfees\\V1beta1\342\002$Injective\\Txfees\\V1beta1\\GPBMetadata\352\002\032Injective::Txfees::V1beta1' + _globals['DESCRIPTOR']._serialized_options = b'\n\034com.injective.txfees.v1beta1B\007TxProtoP\001ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/txfees/types\242\002\003ITX\252\002\030Injective.Txfees.V1beta1\312\002\030Injective\\Txfees\\V1beta1\342\002$Injective\\Txfees\\V1beta1\\GPBMetadata\352\002\032Injective::Txfees::V1beta1\300\343\036\001' _globals['_MSGUPDATEPARAMS'].fields_by_name['authority']._loaded_options = None _globals['_MSGUPDATEPARAMS'].fields_by_name['authority']._serialized_options = b'\322\264-\024cosmos.AddressString' _globals['_MSGUPDATEPARAMS'].fields_by_name['params']._loaded_options = None diff --git a/pyinjective/proto/injective/txfees/v1beta1/txfees_pb2.py b/pyinjective/proto/injective/txfees/v1beta1/txfees_pb2.py index d337eafd..e08ce0e6 100644 --- a/pyinjective/proto/injective/txfees/v1beta1/txfees_pb2.py +++ b/pyinjective/proto/injective/txfees/v1beta1/txfees_pb2.py @@ -15,9 +15,10 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 from pyinjective.proto.gogoproto import gogo_pb2 as gogoproto_dot_gogo__pb2 from pyinjective.proto.google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 +from pyinjective.proto.cosmos_proto import cosmos_pb2 as cosmos__proto_dot_cosmos__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%injective/txfees/v1beta1/txfees.proto\x12\x18injective.txfees.v1beta1\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\"\x99\x0c\n\x06Params\x12R\n\x15max_gas_wanted_per_tx\x18\x01 \x01(\x04\x42 \xf2\xde\x1f\x1cyaml:\"max_gas_wanted_per_tx\"R\x11maxGasWantedPerTx\x12S\n\x15high_gas_tx_threshold\x18\x02 \x01(\x04\x42 \xf2\xde\x1f\x1cyaml:\"high_gas_tx_threshold\"R\x12highGasTxThreshold\x12\x8b\x01\n\x1dmin_gas_price_for_high_gas_tx\x18\x03 \x01(\tBK\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f$yaml:\"min_gas_price_for_high_gas_tx\"R\x17minGasPriceForHighGasTx\x12O\n\x13mempool1559_enabled\x18\x04 \x01(\x08\x42\x1e\xf2\xde\x1f\x1ayaml:\"mempool1559_enabled\"R\x12mempool1559Enabled\x12_\n\rmin_gas_price\x18\x05 \x01(\tB;\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x14yaml:\"min_gas_price\"R\x0bminGasPrice\x12\x88\x01\n\x1b\x64\x65\x66\x61ult_base_fee_multiplier\x18\x06 \x01(\tBI\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\"yaml:\"default_base_fee_multiplier\"R\x18\x64\x65\x66\x61ultBaseFeeMultiplier\x12|\n\x17max_base_fee_multiplier\x18\x07 \x01(\tBE\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x1eyaml:\"max_base_fee_multiplier\"R\x14maxBaseFeeMultiplier\x12@\n\x0ereset_interval\x18\x08 \x01(\x03\x42\x19\xf2\xde\x1f\x15yaml:\"reset_interval\"R\rresetInterval\x12v\n\x15max_block_change_rate\x18\t \x01(\tBC\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x1cyaml:\"max_block_change_rate\"R\x12maxBlockChangeRate\x12\x93\x01\n\x1ftarget_block_space_percent_rate\x18\n \x01(\tBM\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f&yaml:\"target_block_space_percent_rate\"R\x1btargetBlockSpacePercentRate\x12~\n\x18recheck_fee_low_base_fee\x18\x0b \x01(\tBF\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x1fyaml:\"recheck_fee_low_base_fee\"R\x14recheckFeeLowBaseFee\x12\x81\x01\n\x19recheck_fee_high_base_fee\x18\x0c \x01(\tBG\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f yaml:\"recheck_fee_high_base_fee\"R\x15recheckFeeHighBaseFee\x12\xb0\x01\n)recheck_fee_base_fee_threshold_multiplier\x18\r \x01(\tBW\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x30yaml:\"recheck_fee_base_fee_threshold_multiplier\"R$recheckFeeBaseFeeThresholdMultiplier:\x16\xe8\xa0\x1f\x01\x8a\xe7\xb0*\rtxfees/ParamsB\xff\x01\n\x1c\x63om.injective.txfees.v1beta1B\x0bTxfeesProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/txfees/types\xa2\x02\x03ITX\xaa\x02\x18Injective.Txfees.V1beta1\xca\x02\x18Injective\\Txfees\\V1beta1\xe2\x02$Injective\\Txfees\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Txfees::V1beta1\xc0\xe3\x1e\x01\x62\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%injective/txfees/v1beta1/txfees.proto\x12\x18injective.txfees.v1beta1\x1a\x11\x61mino/amino.proto\x1a\x14gogoproto/gogo.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x19\x63osmos_proto/cosmos.proto\"\x9a\r\n\x06Params\x12R\n\x15max_gas_wanted_per_tx\x18\x01 \x01(\x04\x42 \xf2\xde\x1f\x1cyaml:\"max_gas_wanted_per_tx\"R\x11maxGasWantedPerTx\x12S\n\x15high_gas_tx_threshold\x18\x02 \x01(\x04\x42 \xf2\xde\x1f\x1cyaml:\"high_gas_tx_threshold\"R\x12highGasTxThreshold\x12\x99\x01\n\x1dmin_gas_price_for_high_gas_tx\x18\x03 \x01(\tBY\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f$yaml:\"min_gas_price_for_high_gas_tx\"\xd2\xb4-\ncosmos.DecR\x17minGasPriceForHighGasTx\x12O\n\x13mempool1559_enabled\x18\x04 \x01(\x08\x42\x1e\xf2\xde\x1f\x1ayaml:\"mempool1559_enabled\"R\x12mempool1559Enabled\x12m\n\rmin_gas_price\x18\x05 \x01(\tBI\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x14yaml:\"min_gas_price\"\xd2\xb4-\ncosmos.DecR\x0bminGasPrice\x12\x96\x01\n\x1b\x64\x65\x66\x61ult_base_fee_multiplier\x18\x06 \x01(\tBW\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\"yaml:\"default_base_fee_multiplier\"\xd2\xb4-\ncosmos.DecR\x18\x64\x65\x66\x61ultBaseFeeMultiplier\x12\x8a\x01\n\x17max_base_fee_multiplier\x18\x07 \x01(\tBS\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x1eyaml:\"max_base_fee_multiplier\"\xd2\xb4-\ncosmos.DecR\x14maxBaseFeeMultiplier\x12@\n\x0ereset_interval\x18\x08 \x01(\x03\x42\x19\xf2\xde\x1f\x15yaml:\"reset_interval\"R\rresetInterval\x12\x84\x01\n\x15max_block_change_rate\x18\t \x01(\tBQ\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x1cyaml:\"max_block_change_rate\"\xd2\xb4-\ncosmos.DecR\x12maxBlockChangeRate\x12\xa1\x01\n\x1ftarget_block_space_percent_rate\x18\n \x01(\tB[\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f&yaml:\"target_block_space_percent_rate\"\xd2\xb4-\ncosmos.DecR\x1btargetBlockSpacePercentRate\x12\x8c\x01\n\x18recheck_fee_low_base_fee\x18\x0b \x01(\tBT\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x1fyaml:\"recheck_fee_low_base_fee\"\xd2\xb4-\ncosmos.DecR\x14recheckFeeLowBaseFee\x12\x8f\x01\n\x19recheck_fee_high_base_fee\x18\x0c \x01(\tBU\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f yaml:\"recheck_fee_high_base_fee\"\xd2\xb4-\ncosmos.DecR\x15recheckFeeHighBaseFee\x12\xbe\x01\n)recheck_fee_base_fee_threshold_multiplier\x18\r \x01(\tBe\xc8\xde\x1f\x00\xda\xde\x1f\x1b\x63osmossdk.io/math.LegacyDec\xf2\xde\x1f\x30yaml:\"recheck_fee_base_fee_threshold_multiplier\"\xd2\xb4-\ncosmos.DecR$recheckFeeBaseFeeThresholdMultiplier:\x16\xe8\xa0\x1f\x01\x8a\xe7\xb0*\rtxfees/ParamsB\xff\x01\n\x1c\x63om.injective.txfees.v1beta1B\x0bTxfeesProtoP\x01ZLgithub.com/InjectiveLabs/injective-core/injective-chain/modules/txfees/types\xa2\x02\x03ITX\xaa\x02\x18Injective.Txfees.V1beta1\xca\x02\x18Injective\\Txfees\\V1beta1\xe2\x02$Injective\\Txfees\\V1beta1\\GPBMetadata\xea\x02\x1aInjective::Txfees::V1beta1\xc0\xe3\x1e\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -30,29 +31,29 @@ _globals['_PARAMS'].fields_by_name['high_gas_tx_threshold']._loaded_options = None _globals['_PARAMS'].fields_by_name['high_gas_tx_threshold']._serialized_options = b'\362\336\037\034yaml:\"high_gas_tx_threshold\"' _globals['_PARAMS'].fields_by_name['min_gas_price_for_high_gas_tx']._loaded_options = None - _globals['_PARAMS'].fields_by_name['min_gas_price_for_high_gas_tx']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037$yaml:\"min_gas_price_for_high_gas_tx\"' + _globals['_PARAMS'].fields_by_name['min_gas_price_for_high_gas_tx']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037$yaml:\"min_gas_price_for_high_gas_tx\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['mempool1559_enabled']._loaded_options = None _globals['_PARAMS'].fields_by_name['mempool1559_enabled']._serialized_options = b'\362\336\037\032yaml:\"mempool1559_enabled\"' _globals['_PARAMS'].fields_by_name['min_gas_price']._loaded_options = None - _globals['_PARAMS'].fields_by_name['min_gas_price']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\024yaml:\"min_gas_price\"' + _globals['_PARAMS'].fields_by_name['min_gas_price']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\024yaml:\"min_gas_price\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['default_base_fee_multiplier']._loaded_options = None - _globals['_PARAMS'].fields_by_name['default_base_fee_multiplier']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\"yaml:\"default_base_fee_multiplier\"' + _globals['_PARAMS'].fields_by_name['default_base_fee_multiplier']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\"yaml:\"default_base_fee_multiplier\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['max_base_fee_multiplier']._loaded_options = None - _globals['_PARAMS'].fields_by_name['max_base_fee_multiplier']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\036yaml:\"max_base_fee_multiplier\"' + _globals['_PARAMS'].fields_by_name['max_base_fee_multiplier']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\036yaml:\"max_base_fee_multiplier\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['reset_interval']._loaded_options = None _globals['_PARAMS'].fields_by_name['reset_interval']._serialized_options = b'\362\336\037\025yaml:\"reset_interval\"' _globals['_PARAMS'].fields_by_name['max_block_change_rate']._loaded_options = None - _globals['_PARAMS'].fields_by_name['max_block_change_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\034yaml:\"max_block_change_rate\"' + _globals['_PARAMS'].fields_by_name['max_block_change_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\034yaml:\"max_block_change_rate\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['target_block_space_percent_rate']._loaded_options = None - _globals['_PARAMS'].fields_by_name['target_block_space_percent_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037&yaml:\"target_block_space_percent_rate\"' + _globals['_PARAMS'].fields_by_name['target_block_space_percent_rate']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037&yaml:\"target_block_space_percent_rate\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['recheck_fee_low_base_fee']._loaded_options = None - _globals['_PARAMS'].fields_by_name['recheck_fee_low_base_fee']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\037yaml:\"recheck_fee_low_base_fee\"' + _globals['_PARAMS'].fields_by_name['recheck_fee_low_base_fee']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037\037yaml:\"recheck_fee_low_base_fee\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['recheck_fee_high_base_fee']._loaded_options = None - _globals['_PARAMS'].fields_by_name['recheck_fee_high_base_fee']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037 yaml:\"recheck_fee_high_base_fee\"' + _globals['_PARAMS'].fields_by_name['recheck_fee_high_base_fee']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\037 yaml:\"recheck_fee_high_base_fee\"\322\264-\ncosmos.Dec' _globals['_PARAMS'].fields_by_name['recheck_fee_base_fee_threshold_multiplier']._loaded_options = None - _globals['_PARAMS'].fields_by_name['recheck_fee_base_fee_threshold_multiplier']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\0370yaml:\"recheck_fee_base_fee_threshold_multiplier\"' + _globals['_PARAMS'].fields_by_name['recheck_fee_base_fee_threshold_multiplier']._serialized_options = b'\310\336\037\000\332\336\037\033cosmossdk.io/math.LegacyDec\362\336\0370yaml:\"recheck_fee_base_fee_threshold_multiplier\"\322\264-\ncosmos.Dec' _globals['_PARAMS']._loaded_options = None _globals['_PARAMS']._serialized_options = b'\350\240\037\001\212\347\260*\rtxfees/Params' - _globals['_PARAMS']._serialized_start=139 - _globals['_PARAMS']._serialized_end=1700 + _globals['_PARAMS']._serialized_start=166 + _globals['_PARAMS']._serialized_end=1856 # @@protoc_insertion_point(module_scope) diff --git a/pyinjective/proto/injective/wasmx/v1/tx_pb2.py b/pyinjective/proto/injective/wasmx/v1/tx_pb2.py index 84f38d96..8d1bf8da 100644 --- a/pyinjective/proto/injective/wasmx/v1/tx_pb2.py +++ b/pyinjective/proto/injective/wasmx/v1/tx_pb2.py @@ -21,14 +21,14 @@ from pyinjective.proto.amino import amino_pb2 as amino_dot_amino__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1binjective/wasmx/v1/tx.proto\x12\x12injective.wasmx.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x1einjective/wasmx/v1/wasmx.proto\x1a!injective/wasmx/v1/proposal.proto\x1a\x11\x61mino/amino.proto\"\xa6\x01\n\x18MsgExecuteContractCompat\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08\x63ontract\x18\x02 \x01(\tR\x08\x63ontract\x12\x10\n\x03msg\x18\x03 \x01(\tR\x03msg\x12\x14\n\x05\x66unds\x18\x04 \x01(\tR\x05\x66unds:.\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x1ewasmx/MsgExecuteContractCompat\"6\n MsgExecuteContractCompatResponse\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\"\xe4\x01\n\x11MsgUpdateContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress\x12\x1b\n\tgas_limit\x18\x03 \x01(\x04R\x08gasLimit\x12\x1b\n\tgas_price\x18\x04 \x01(\x04R\x08gasPrice\x12)\n\radmin_address\x18\x05 \x01(\tB\x04\xc8\xde\x1f\x01R\x0c\x61\x64minAddress:\'\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x17wasmx/MsgUpdateContract\"\x1b\n\x19MsgUpdateContractResponse\"\x83\x01\n\x13MsgActivateContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress:)\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x19wasmx/MsgActivateContract\"\x1d\n\x1bMsgActivateContractResponse\"\x87\x01\n\x15MsgDeactivateContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress:+\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x1bwasmx/MsgDeactivateContract\"\x1f\n\x1dMsgDeactivateContractResponse\"\xad\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x38\n\x06params\x18\x02 \x01(\x0b\x32\x1a.injective.wasmx.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:(\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x15wasmx/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"\xd3\x01\n\x13MsgRegisterContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12y\n\x1d\x63ontract_registration_request\x18\x02 \x01(\x0b\x32/.injective.wasmx.v1.ContractRegistrationRequestB\x04\xc8\xde\x1f\x00R\x1b\x63ontractRegistrationRequest:)\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x19wasmx/MsgRegisterContract\"\x1d\n\x1bMsgRegisterContractResponse2\xc1\x05\n\x03Msg\x12t\n\x1cUpdateRegistryContractParams\x12%.injective.wasmx.v1.MsgUpdateContract\x1a-.injective.wasmx.v1.MsgUpdateContractResponse\x12t\n\x18\x41\x63tivateRegistryContract\x12\'.injective.wasmx.v1.MsgActivateContract\x1a/.injective.wasmx.v1.MsgActivateContractResponse\x12z\n\x1a\x44\x65\x61\x63tivateRegistryContract\x12).injective.wasmx.v1.MsgDeactivateContract\x1a\x31.injective.wasmx.v1.MsgDeactivateContractResponse\x12{\n\x15\x45xecuteContractCompat\x12,.injective.wasmx.v1.MsgExecuteContractCompat\x1a\x34.injective.wasmx.v1.MsgExecuteContractCompatResponse\x12`\n\x0cUpdateParams\x12#.injective.wasmx.v1.MsgUpdateParams\x1a+.injective.wasmx.v1.MsgUpdateParamsResponse\x12l\n\x10RegisterContract\x12\'.injective.wasmx.v1.MsgRegisterContract\x1a/.injective.wasmx.v1.MsgRegisterContractResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xd8\x01\n\x16\x63om.injective.wasmx.v1B\x07TxProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types\xa2\x02\x03IWX\xaa\x02\x12Injective.Wasmx.V1\xca\x02\x12Injective\\Wasmx\\V1\xe2\x02\x1eInjective\\Wasmx\\V1\\GPBMetadata\xea\x02\x14Injective::Wasmx::V1b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1binjective/wasmx/v1/tx.proto\x12\x12injective.wasmx.v1\x1a\x14gogoproto/gogo.proto\x1a\x19google/protobuf/any.proto\x1a\x19\x63osmos_proto/cosmos.proto\x1a\x17\x63osmos/msg/v1/msg.proto\x1a\x1einjective/wasmx/v1/wasmx.proto\x1a!injective/wasmx/v1/proposal.proto\x1a\x11\x61mino/amino.proto\"\xa6\x01\n\x18MsgExecuteContractCompat\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12\x1a\n\x08\x63ontract\x18\x02 \x01(\tR\x08\x63ontract\x12\x10\n\x03msg\x18\x03 \x01(\tR\x03msg\x12\x14\n\x05\x66unds\x18\x04 \x01(\tR\x05\x66unds:.\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x1ewasmx/MsgExecuteContractCompat\"6\n MsgExecuteContractCompatResponse\x12\x12\n\x04\x64\x61ta\x18\x01 \x01(\x0cR\x04\x64\x61ta\"\xe4\x01\n\x11MsgUpdateContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress\x12\x1b\n\tgas_limit\x18\x03 \x01(\x04R\x08gasLimit\x12\x1b\n\tgas_price\x18\x04 \x01(\x04R\x08gasPrice\x12)\n\radmin_address\x18\x05 \x01(\tB\x04\xc8\xde\x1f\x01R\x0c\x61\x64minAddress:\'\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x17wasmx/MsgUpdateContract\"\x1b\n\x19MsgUpdateContractResponse\"\x83\x01\n\x13MsgActivateContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress:)\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x19wasmx/MsgActivateContract\"\x1d\n\x1bMsgActivateContractResponse\"\x87\x01\n\x15MsgDeactivateContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12)\n\x10\x63ontract_address\x18\x02 \x01(\tR\x0f\x63ontractAddress:+\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x1bwasmx/MsgDeactivateContract\"\x1f\n\x1dMsgDeactivateContractResponse\"\xad\x01\n\x0fMsgUpdateParams\x12\x36\n\tauthority\x18\x01 \x01(\tB\x18\xd2\xb4-\x14\x63osmos.AddressStringR\tauthority\x12\x38\n\x06params\x18\x02 \x01(\x0b\x32\x1a.injective.wasmx.v1.ParamsB\x04\xc8\xde\x1f\x00R\x06params:(\x82\xe7\xb0*\tauthority\x8a\xe7\xb0*\x15wasmx/MsgUpdateParams\"\x19\n\x17MsgUpdateParamsResponse\"\xd3\x01\n\x13MsgRegisterContract\x12\x16\n\x06sender\x18\x01 \x01(\tR\x06sender\x12y\n\x1d\x63ontract_registration_request\x18\x02 \x01(\x0b\x32/.injective.wasmx.v1.ContractRegistrationRequestB\x04\xc8\xde\x1f\x00R\x1b\x63ontractRegistrationRequest:)\x82\xe7\xb0*\x06sender\x8a\xe7\xb0*\x19wasmx/MsgRegisterContract\"\x1d\n\x1bMsgRegisterContractResponse2\xc1\x05\n\x03Msg\x12t\n\x1cUpdateRegistryContractParams\x12%.injective.wasmx.v1.MsgUpdateContract\x1a-.injective.wasmx.v1.MsgUpdateContractResponse\x12t\n\x18\x41\x63tivateRegistryContract\x12\'.injective.wasmx.v1.MsgActivateContract\x1a/.injective.wasmx.v1.MsgActivateContractResponse\x12z\n\x1a\x44\x65\x61\x63tivateRegistryContract\x12).injective.wasmx.v1.MsgDeactivateContract\x1a\x31.injective.wasmx.v1.MsgDeactivateContractResponse\x12{\n\x15\x45xecuteContractCompat\x12,.injective.wasmx.v1.MsgExecuteContractCompat\x1a\x34.injective.wasmx.v1.MsgExecuteContractCompatResponse\x12`\n\x0cUpdateParams\x12#.injective.wasmx.v1.MsgUpdateParams\x1a+.injective.wasmx.v1.MsgUpdateParamsResponse\x12l\n\x10RegisterContract\x12\'.injective.wasmx.v1.MsgRegisterContract\x1a/.injective.wasmx.v1.MsgRegisterContractResponse\x1a\x05\x80\xe7\xb0*\x01\x42\xdc\x01\n\x16\x63om.injective.wasmx.v1B\x07TxProtoP\x01ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types\xa2\x02\x03IWX\xaa\x02\x12Injective.Wasmx.V1\xca\x02\x12Injective\\Wasmx\\V1\xe2\x02\x1eInjective\\Wasmx\\V1\\GPBMetadata\xea\x02\x14Injective::Wasmx::V1\xc0\xe3\x1e\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'injective.wasmx.v1.tx_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n\026com.injective.wasmx.v1B\007TxProtoP\001ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types\242\002\003IWX\252\002\022Injective.Wasmx.V1\312\002\022Injective\\Wasmx\\V1\342\002\036Injective\\Wasmx\\V1\\GPBMetadata\352\002\024Injective::Wasmx::V1' + _globals['DESCRIPTOR']._serialized_options = b'\n\026com.injective.wasmx.v1B\007TxProtoP\001ZKgithub.com/InjectiveLabs/injective-core/injective-chain/modules/wasmx/types\242\002\003IWX\252\002\022Injective.Wasmx.V1\312\002\022Injective\\Wasmx\\V1\342\002\036Injective\\Wasmx\\V1\\GPBMetadata\352\002\024Injective::Wasmx::V1\300\343\036\001' _globals['_MSGEXECUTECONTRACTCOMPAT']._loaded_options = None _globals['_MSGEXECUTECONTRACTCOMPAT']._serialized_options = b'\202\347\260*\006sender\212\347\260*\036wasmx/MsgExecuteContractCompat' _globals['_MSGUPDATECONTRACT'].fields_by_name['admin_address']._loaded_options = None diff --git a/pyproject.toml b/pyproject.toml index 4a24a74f..8586b963 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,36 +48,24 @@ pytest-aioresponses = ">=0.2.0" [tool.poetry.group.dev.dependencies] pre-commit = ">=3.4.0" -flakeheaven = ">=3.3.0" -isort = ">=5.12.0" +ruff = ">=0.4.0" black = ">=23.9.1" python-dotenv = ">=1.0.1" -importlib-metadata = "<5.0" -[tool.flakeheaven] -exclude = ["pyinjective/proto/*", ".idea/*", "*.md"] -max_line_length = 120 - - -# list of plugins and rules for them -[tool.flakeheaven.plugins] -pycodestyle = ["+*", "-W503", "-E731"] -pyflakes = ["+*"] +[tool.ruff] +line-length = 120 +exclude = ["pyinjective/proto/*", ".idea/*"] -[tool.flakeheaven.exceptions."tests/"] -pyflakes = ["-F811"] # disable a plugin +[tool.ruff.lint] +select = ["E", "W", "F", "I"] +ignore = ["E731"] +[tool.ruff.lint.isort] +combine-as-imports = true -[tool.isort] -line_length = 120 -multi_line_output = 3 -combine_as_imports = true -include_trailing_comma = true -force_grid_wrap = 0 -use_parentheses = true -ensure_newline_before_comments = true -skip_glob = ["pyinjective/proto/*", ".idea/*"] +[tool.ruff.lint.per-file-ignores] +"tests/**" = ["F811"] [tool.black] diff --git a/tests/client/chain/grpc/configurable_auction_query_servicer.py b/tests/client/chain/grpc/configurable_auction_query_servicer.py index 66d3269b..099f8027 100644 --- a/tests/client/chain/grpc/configurable_auction_query_servicer.py +++ b/tests/client/chain/grpc/configurable_auction_query_servicer.py @@ -12,6 +12,9 @@ def __init__(self): self.auction_params = deque() self.module_states = deque() self.current_baskets = deque() + self.vouchers_responses = deque() + self.voucher_responses = deque() + self.last_auction_results = deque() async def AuctionParams(self, request: auction_query_pb.QueryAuctionParamsRequest, context=None, metadata=None): return self.auction_params.pop() @@ -23,3 +26,14 @@ async def CurrentAuctionBasket( self, request: auction_query_pb.QueryCurrentAuctionBasketRequest, context=None, metadata=None ): return self.current_baskets.pop() + + async def LastAuctionResult( + self, request: auction_query_pb.QueryLastAuctionResultRequest, context=None, metadata=None + ): + return self.last_auction_results.pop() + + async def Vouchers(self, request: auction_query_pb.QueryVouchersRequest, context=None, metadata=None): + return self.vouchers_responses.pop() + + async def Voucher(self, request: auction_query_pb.QueryVoucherRequest, context=None, metadata=None): + return self.voucher_responses.pop() diff --git a/tests/client/chain/grpc/configurable_exchange_query_servicer.py b/tests/client/chain/grpc/configurable_exchange_query_servicer.py deleted file mode 100644 index 8a7c39ef..00000000 --- a/tests/client/chain/grpc/configurable_exchange_query_servicer.py +++ /dev/null @@ -1,381 +0,0 @@ -from collections import deque - -from pyinjective.proto.injective.exchange.v1beta1 import ( - query_pb2 as exchange_query_pb, - query_pb2_grpc as exchange_query_grpc, -) - - -class ConfigurableExchangeQueryServicer(exchange_query_grpc.QueryServicer): - def __init__(self): - super().__init__() - self.exchange_params = deque() - self.subaccount_deposits_responses = deque() - self.subaccount_deposit_responses = deque() - self.exchange_balances_responses = deque() - self.aggregate_volume_responses = deque() - self.aggregate_volumes_responses = deque() - self.aggregate_market_volume_responses = deque() - self.aggregate_market_volumes_responses = deque() - self.denom_decimal_responses = deque() - self.denom_decimals_responses = deque() - self.spot_markets_responses = deque() - self.spot_market_responses = deque() - self.full_spot_markets_responses = deque() - self.full_spot_market_responses = deque() - self.spot_orderbook_responses = deque() - self.trader_spot_orders_responses = deque() - self.account_address_spot_orders_responses = deque() - self.spot_orders_by_hashes_responses = deque() - self.subaccount_orders_responses = deque() - self.trader_spot_transient_orders_responses = deque() - self.spot_mid_price_and_tob_responses = deque() - self.derivative_mid_price_and_tob_responses = deque() - self.derivative_orderbook_responses = deque() - self.trader_derivative_orders_responses = deque() - self.account_address_derivative_orders_responses = deque() - self.derivative_orders_by_hashes_responses = deque() - self.trader_derivative_transient_orders_responses = deque() - self.derivative_markets_responses = deque() - self.derivative_market_responses = deque() - self.derivative_market_address_responses = deque() - self.subaccount_trade_nonce_responses = deque() - self.positions_responses = deque() - self.subaccount_positions_responses = deque() - self.subaccount_position_in_market_responses = deque() - self.subaccount_effective_position_in_market_responses = deque() - self.perpetual_market_info_responses = deque() - self.expiry_futures_market_info_responses = deque() - self.perpetual_market_funding_responses = deque() - self.subaccount_order_metadata_responses = deque() - self.trade_reward_points_responses = deque() - self.pending_trade_reward_points_responses = deque() - self.trade_reward_campaign_responses = deque() - self.fee_discount_account_info_responses = deque() - self.fee_discount_schedule_responses = deque() - self.balance_mismatches_responses = deque() - self.balance_with_balance_holds_responses = deque() - self.fee_discount_tier_statistics_responses = deque() - self.mito_vault_infos_responses = deque() - self.market_id_from_vault_responses = deque() - self.historical_trade_records_responses = deque() - self.is_opted_out_of_rewards_responses = deque() - self.opted_out_of_rewards_accounts_responses = deque() - self.market_volatility_responses = deque() - self.binary_options_markets_responses = deque() - self.trader_derivative_conditional_orders_responses = deque() - self.market_atomic_execution_fee_multiplier_responses = deque() - self.l3_derivative_orderbook_responses = deque() - self.l3_spot_orderbook_responses = deque() - self.market_balance_responses = deque() - self.market_balances_responses = deque() - self.denom_min_notional_responses = deque() - self.denom_min_notionals_responses = deque() - self.active_stake_grant_responses = deque() - self.grant_authorization_responses = deque() - self.grant_authorizations_responses = deque() - - async def QueryExchangeParams( - self, request: exchange_query_pb.QueryExchangeParamsRequest, context=None, metadata=None - ): - return self.exchange_params.pop() - - async def SubaccountDeposits( - self, request: exchange_query_pb.QuerySubaccountDepositsRequest, context=None, metadata=None - ): - return self.subaccount_deposits_responses.pop() - - async def SubaccountDeposit( - self, request: exchange_query_pb.QuerySubaccountDepositRequest, context=None, metadata=None - ): - return self.subaccount_deposit_responses.pop() - - async def ExchangeBalances( - self, request: exchange_query_pb.QueryExchangeBalancesRequest, context=None, metadata=None - ): - return self.exchange_balances_responses.pop() - - async def AggregateVolume( - self, request: exchange_query_pb.QueryAggregateVolumeRequest, context=None, metadata=None - ): - return self.aggregate_volume_responses.pop() - - async def AggregateVolumes( - self, request: exchange_query_pb.QueryAggregateVolumesRequest, context=None, metadata=None - ): - return self.aggregate_volumes_responses.pop() - - async def AggregateMarketVolume( - self, request: exchange_query_pb.QueryAggregateMarketVolumeRequest, context=None, metadata=None - ): - return self.aggregate_market_volume_responses.pop() - - async def AggregateMarketVolumes( - self, request: exchange_query_pb.QueryAggregateMarketVolumesRequest, context=None, metadata=None - ): - return self.aggregate_market_volumes_responses.pop() - - async def DenomDecimal(self, request: exchange_query_pb.QueryDenomDecimalRequest, context=None, metadata=None): - return self.denom_decimal_responses.pop() - - async def DenomDecimals(self, request: exchange_query_pb.QueryDenomDecimalsRequest, context=None, metadata=None): - return self.denom_decimals_responses.pop() - - async def SpotMarkets(self, request: exchange_query_pb.QuerySpotMarketsRequest, context=None, metadata=None): - return self.spot_markets_responses.pop() - - async def SpotMarket(self, request: exchange_query_pb.QuerySpotMarketRequest, context=None, metadata=None): - return self.spot_market_responses.pop() - - async def FullSpotMarkets( - self, request: exchange_query_pb.QueryFullSpotMarketsRequest, context=None, metadata=None - ): - return self.full_spot_markets_responses.pop() - - async def FullSpotMarket(self, request: exchange_query_pb.QueryFullSpotMarketRequest, context=None, metadata=None): - return self.full_spot_market_responses.pop() - - async def SpotOrderbook(self, request: exchange_query_pb.QuerySpotOrderbookRequest, context=None, metadata=None): - return self.spot_orderbook_responses.pop() - - async def TraderSpotOrders( - self, request: exchange_query_pb.QueryTraderSpotOrdersRequest, context=None, metadata=None - ): - return self.trader_spot_orders_responses.pop() - - async def AccountAddressSpotOrders( - self, request: exchange_query_pb.QueryAccountAddressSpotOrdersRequest, context=None, metadata=None - ): - return self.account_address_spot_orders_responses.pop() - - async def SpotOrdersByHashes( - self, request: exchange_query_pb.QuerySpotOrdersByHashesRequest, context=None, metadata=None - ): - return self.spot_orders_by_hashes_responses.pop() - - async def SubaccountOrders( - self, request: exchange_query_pb.QuerySubaccountOrdersRequest, context=None, metadata=None - ): - return self.subaccount_orders_responses.pop() - - async def TraderSpotTransientOrders( - self, request: exchange_query_pb.QueryTraderSpotOrdersRequest, context=None, metadata=None - ): - return self.trader_spot_transient_orders_responses.pop() - - async def SpotMidPriceAndTOB( - self, request: exchange_query_pb.QuerySpotMidPriceAndTOBRequest, context=None, metadata=None - ): - return self.spot_mid_price_and_tob_responses.pop() - - async def DerivativeMidPriceAndTOB( - self, request: exchange_query_pb.QueryDerivativeMidPriceAndTOBRequest, context=None, metadata=None - ): - return self.derivative_mid_price_and_tob_responses.pop() - - async def DerivativeOrderbook( - self, request: exchange_query_pb.QueryDerivativeOrderbookRequest, context=None, metadata=None - ): - return self.derivative_orderbook_responses.pop() - - async def TraderDerivativeOrders( - self, request: exchange_query_pb.QueryTraderDerivativeOrdersRequest, context=None, metadata=None - ): - return self.trader_derivative_orders_responses.pop() - - async def AccountAddressDerivativeOrders( - self, request: exchange_query_pb.QueryAccountAddressDerivativeOrdersRequest, context=None, metadata=None - ): - return self.account_address_derivative_orders_responses.pop() - - async def DerivativeOrdersByHashes( - self, request: exchange_query_pb.QueryDerivativeOrdersByHashesRequest, context=None, metadata=None - ): - return self.derivative_orders_by_hashes_responses.pop() - - async def TraderDerivativeTransientOrders( - self, request: exchange_query_pb.QueryTraderDerivativeOrdersRequest, context=None, metadata=None - ): - return self.trader_derivative_transient_orders_responses.pop() - - async def DerivativeMarkets( - self, request: exchange_query_pb.QueryDerivativeMarketsRequest, context=None, metadata=None - ): - return self.derivative_markets_responses.pop() - - async def DerivativeMarket( - self, request: exchange_query_pb.QueryDerivativeMarketRequest, context=None, metadata=None - ): - return self.derivative_market_responses.pop() - - async def DerivativeMarketAddress( - self, request: exchange_query_pb.QueryDerivativeMarketAddressRequest, context=None, metadata=None - ): - return self.derivative_market_address_responses.pop() - - async def SubaccountTradeNonce( - self, request: exchange_query_pb.QuerySubaccountTradeNonceRequest, context=None, metadata=None - ): - return self.subaccount_trade_nonce_responses.pop() - - async def Positions(self, request: exchange_query_pb.QueryPositionsRequest, context=None, metadata=None): - return self.positions_responses.pop() - - async def SubaccountPositions( - self, request: exchange_query_pb.QuerySubaccountPositionsRequest, context=None, metadata=None - ): - return self.subaccount_positions_responses.pop() - - async def SubaccountPositionInMarket( - self, request: exchange_query_pb.QuerySubaccountPositionInMarketRequest, context=None, metadata=None - ): - return self.subaccount_position_in_market_responses.pop() - - async def SubaccountEffectivePositionInMarket( - self, request: exchange_query_pb.QuerySubaccountEffectivePositionInMarketRequest, context=None, metadata=None - ): - return self.subaccount_effective_position_in_market_responses.pop() - - async def PerpetualMarketInfo( - self, request: exchange_query_pb.QueryPerpetualMarketInfoRequest, context=None, metadata=None - ): - return self.perpetual_market_info_responses.pop() - - async def ExpiryFuturesMarketInfo( - self, request: exchange_query_pb.QueryExpiryFuturesMarketInfoRequest, context=None, metadata=None - ): - return self.expiry_futures_market_info_responses.pop() - - async def PerpetualMarketFunding( - self, request: exchange_query_pb.QueryPerpetualMarketFundingRequest, context=None, metadata=None - ): - return self.perpetual_market_funding_responses.pop() - - async def SubaccountOrderMetadata( - self, request: exchange_query_pb.QuerySubaccountOrderMetadataRequest, context=None, metadata=None - ): - return self.subaccount_order_metadata_responses.pop() - - async def TradeRewardPoints( - self, request: exchange_query_pb.QueryTradeRewardPointsRequest, context=None, metadata=None - ): - return self.trade_reward_points_responses.pop() - - async def PendingTradeRewardPoints( - self, request: exchange_query_pb.QueryTradeRewardPointsRequest, context=None, metadata=None - ): - return self.pending_trade_reward_points_responses.pop() - - async def TradeRewardCampaign( - self, request: exchange_query_pb.QueryTradeRewardCampaignRequest, context=None, metadata=None - ): - return self.trade_reward_campaign_responses.pop() - - async def FeeDiscountAccountInfo( - self, request: exchange_query_pb.QueryFeeDiscountAccountInfoRequest, context=None, metadata=None - ): - return self.fee_discount_account_info_responses.pop() - - async def FeeDiscountSchedule( - self, request: exchange_query_pb.QueryFeeDiscountScheduleRequest, context=None, metadata=None - ): - return self.fee_discount_schedule_responses.pop() - - async def BalanceMismatches( - self, request: exchange_query_pb.QueryBalanceMismatchesRequest, context=None, metadata=None - ): - return self.balance_mismatches_responses.pop() - - async def BalanceWithBalanceHolds( - self, request: exchange_query_pb.QueryBalanceWithBalanceHoldsRequest, context=None, metadata=None - ): - return self.balance_with_balance_holds_responses.pop() - - async def FeeDiscountTierStatistics( - self, request: exchange_query_pb.QueryFeeDiscountTierStatisticsRequest, context=None, metadata=None - ): - return self.fee_discount_tier_statistics_responses.pop() - - async def MitoVaultInfos(self, request: exchange_query_pb.MitoVaultInfosRequest, context=None, metadata=None): - return self.mito_vault_infos_responses.pop() - - async def QueryMarketIDFromVault( - self, request: exchange_query_pb.QueryMarketIDFromVaultRequest, context=None, metadata=None - ): - return self.market_id_from_vault_responses.pop() - - async def HistoricalTradeRecords( - self, request: exchange_query_pb.QueryHistoricalTradeRecordsRequest, context=None, metadata=None - ): - return self.historical_trade_records_responses.pop() - - async def IsOptedOutOfRewards( - self, request: exchange_query_pb.QueryIsOptedOutOfRewardsRequest, context=None, metadata=None - ): - return self.is_opted_out_of_rewards_responses.pop() - - async def OptedOutOfRewardsAccounts( - self, request: exchange_query_pb.QueryOptedOutOfRewardsAccountsRequest, context=None, metadata=None - ): - return self.opted_out_of_rewards_accounts_responses.pop() - - async def MarketVolatility( - self, request: exchange_query_pb.QueryMarketVolatilityRequest, context=None, metadata=None - ): - return self.market_volatility_responses.pop() - - async def BinaryOptionsMarkets( - self, request: exchange_query_pb.QueryBinaryMarketsRequest, context=None, metadata=None - ): - return self.binary_options_markets_responses.pop() - - async def TraderDerivativeConditionalOrders( - self, request: exchange_query_pb.QueryTraderDerivativeConditionalOrdersRequest, context=None, metadata=None - ): - return self.trader_derivative_conditional_orders_responses.pop() - - async def MarketAtomicExecutionFeeMultiplier( - self, request: exchange_query_pb.QueryMarketAtomicExecutionFeeMultiplierRequest, context=None, metadata=None - ): - return self.market_atomic_execution_fee_multiplier_responses.pop() - - async def L3DerivativeOrderBook( - self, request: exchange_query_pb.QueryFullDerivativeOrderbookRequest, context=None, metadata=None - ): - return self.l3_derivative_orderbook_responses.pop() - - async def L3SpotOrderBook( - self, request: exchange_query_pb.QueryFullSpotOrderbookRequest, context=None, metadata=None - ): - return self.l3_spot_orderbook_responses.pop() - - async def MarketBalance(self, request: exchange_query_pb.QueryMarketBalanceRequest, context=None, metadata=None): - return self.market_balance_responses.pop() - - async def MarketBalances(self, request: exchange_query_pb.QueryMarketBalancesRequest, context=None, metadata=None): - return self.market_balances_responses.pop() - - async def DenomMinNotional( - self, request: exchange_query_pb.QueryDenomMinNotionalRequest, context=None, metadata=None - ): - return self.denom_min_notional_responses.pop() - - async def DenomMinNotionals( - self, request: exchange_query_pb.QueryDenomMinNotionalsRequest, context=None, metadata=None - ): - return self.denom_min_notionals_responses.pop() - - async def ActiveStakeGrant( - self, request: exchange_query_pb.QueryActiveStakeGrantRequest, context=None, metadata=None - ): - return self.active_stake_grant_responses.pop() - - async def GrantAuthorization( - self, request: exchange_query_pb.QueryGrantAuthorizationRequest, context=None, metadata=None - ): - return self.grant_authorization_responses.pop() - - async def GrantAuthorizations( - self, request: exchange_query_pb.QueryGrantAuthorizationsRequest, context=None, metadata=None - ): - return self.grant_authorizations_responses.pop() diff --git a/tests/client/chain/grpc/configurable_insurance_query_servicer.py b/tests/client/chain/grpc/configurable_insurance_query_servicer.py new file mode 100644 index 00000000..1b70882b --- /dev/null +++ b/tests/client/chain/grpc/configurable_insurance_query_servicer.py @@ -0,0 +1,57 @@ +from collections import deque + +from pyinjective.proto.injective.insurance.v1beta1 import ( + query_pb2 as insurance_query_pb, + query_pb2_grpc as insurance_query_grpc, +) + + +class ConfigurableInsuranceQueryServicer(insurance_query_grpc.QueryServicer): + def __init__(self): + super().__init__() + self.insurance_params = deque() + self.insurance_fund_responses = deque() + self.insurance_funds_responses = deque() + self.estimated_redemptions_responses = deque() + self.pending_redemptions_responses = deque() + self.module_states = deque() + self.failed_redemptions_responses = deque() + self.vouchers_responses = deque() + self.voucher_responses = deque() + + async def InsuranceParams( + self, request: insurance_query_pb.QueryInsuranceParamsRequest, context=None, metadata=None + ): + return self.insurance_params.pop() + + async def InsuranceFund(self, request: insurance_query_pb.QueryInsuranceFundRequest, context=None, metadata=None): + return self.insurance_fund_responses.pop() + + async def InsuranceFunds(self, request: insurance_query_pb.QueryInsuranceFundsRequest, context=None, metadata=None): + return self.insurance_funds_responses.pop() + + async def EstimatedRedemptions( + self, request: insurance_query_pb.QueryEstimatedRedemptionsRequest, context=None, metadata=None + ): + return self.estimated_redemptions_responses.pop() + + async def PendingRedemptions( + self, request: insurance_query_pb.QueryPendingRedemptionsRequest, context=None, metadata=None + ): + return self.pending_redemptions_responses.pop() + + async def InsuranceModuleState( + self, request: insurance_query_pb.QueryModuleStateRequest, context=None, metadata=None + ): + return self.module_states.pop() + + async def FailedRedemptions( + self, request: insurance_query_pb.QueryFailedRedemptionsRequest, context=None, metadata=None + ): + return self.failed_redemptions_responses.pop() + + async def Vouchers(self, request: insurance_query_pb.QueryVouchersRequest, context=None, metadata=None): + return self.vouchers_responses.pop() + + async def Voucher(self, request: insurance_query_pb.QueryVoucherRequest, context=None, metadata=None): + return self.voucher_responses.pop() diff --git a/tests/client/chain/grpc/test_chain_grpc_auction_api.py b/tests/client/chain/grpc/test_chain_grpc_auction_api.py index 1be1a845..2939c9fa 100644 --- a/tests/client/chain/grpc/test_chain_grpc_auction_api.py +++ b/tests/client/chain/grpc/test_chain_grpc_auction_api.py @@ -9,6 +9,7 @@ genesis_pb2 as genesis_pb, query_pb2 as auction_query_pb, ) +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as vouchers_pb from tests.client.chain.grpc.configurable_auction_query_servicer import ConfigurableAuctionQueryServicer @@ -66,12 +67,17 @@ async def test_fetch_module_state( amount=coin, round=3, ) + voucher = vouchers_pb.AddressVoucher( + address="inj1pvt70tt7epjudnurkqlxu62flfgy46j2ytj7j5", + voucher=coin, + ) state = genesis_pb.GenesisState( params=params, auction_round=50, highest_bid=highest_bid, auction_ending_timestamp=1687504387, last_auction_result=last_auction_result, + vouchers=[voucher], ) auction_servicer.module_states.append(auction_query_pb.QueryModuleStateResponse(state=state)) @@ -103,6 +109,15 @@ async def test_fetch_module_state( }, "round": str(last_auction_result.round), }, + "vouchers": [ + { + "address": voucher.address, + "voucher": { + "denom": voucher.voucher.denom, + "amount": voucher.voucher.amount, + }, + } + ], } } @@ -119,10 +134,16 @@ async def test_fetch_module_state_when_no_highest_bid_present( inj_basket_max_cap="100000", bidders_whitelist=["inj1pvt70tt7epjudnurkqlxu62flfgy46j2ytj7j5"], ) + coin = coin_pb.Coin(denom="inj", amount="988987297011197594664") + voucher = vouchers_pb.AddressVoucher( + address="inj1pvt70tt7epjudnurkqlxu62flfgy46j2ytj7j5", + voucher=coin, + ) state = genesis_pb.GenesisState( params=params, auction_round=50, auction_ending_timestamp=1687504387, + vouchers=[voucher], ) auction_servicer.module_states.append(auction_query_pb.QueryModuleStateResponse(state=state)) @@ -139,6 +160,15 @@ async def test_fetch_module_state_when_no_highest_bid_present( "injBasketMaxCap": str(params.inj_basket_max_cap), "biddersWhitelist": params.bidders_whitelist, }, + "vouchers": [ + { + "address": voucher.address, + "voucher": { + "denom": voucher.voucher.denom, + "amount": voucher.voucher.amount, + }, + } + ], } } @@ -190,6 +220,57 @@ async def test_fetch_current_basket( assert expected_basket == current_basket + @pytest.mark.asyncio + async def test_fetch_vouchers( + self, + auction_servicer, + ): + voucher = vouchers_pb.AddressVoucher( + address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", + voucher=coin_pb.Coin(denom="inj", amount="1000000000"), + ) + auction_servicer.vouchers_responses.append(auction_query_pb.QueryVouchersResponse(vouchers=[voucher])) + + api = self._api_instance(servicer=auction_servicer) + + all_vouchers = await api.fetch_vouchers(denom="inj") + expected_vouchers = { + "vouchers": [ + { + "address": voucher.address, + "voucher": { + "denom": voucher.voucher.denom, + "amount": voucher.voucher.amount, + }, + } + ], + } + + assert all_vouchers == expected_vouchers + + @pytest.mark.asyncio + async def test_fetch_voucher( + self, + auction_servicer, + ): + voucher = coin_pb.Coin(denom="inj", amount="1000000000") + auction_servicer.voucher_responses.append(auction_query_pb.QueryVoucherResponse(voucher=voucher)) + + api = self._api_instance(servicer=auction_servicer) + + fetched_voucher = await api.fetch_voucher( + denom="inj", + address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", + ) + expected_voucher = { + "voucher": { + "denom": voucher.denom, + "amount": voucher.amount, + }, + } + + assert fetched_voucher == expected_voucher + def _api_instance(self, servicer): network = Network.devnet() channel = grpc.aio.insecure_channel(network.grpc_endpoint) diff --git a/tests/client/chain/grpc/test_chain_grpc_authz_api.py b/tests/client/chain/grpc/test_chain_grpc_authz_api.py index 315f051f..552b593b 100644 --- a/tests/client/chain/grpc/test_chain_grpc_authz_api.py +++ b/tests/client/chain/grpc/test_chain_grpc_authz_api.py @@ -7,6 +7,7 @@ from pyinjective.core.network import DisabledCookieAssistant, Network from pyinjective.proto.cosmos.authz.v1beta1 import authz_pb2, query_pb2 as authz_query from pyinjective.proto.cosmos.base.query.v1beta1 import pagination_pb2 as pagination_pb +from pyinjective.proto.injective.exchange.v2 import authz_pb2 as exchange_authz_pb from tests.client.chain.grpc.configurable_authz_query_servicer import ConfigurableAuthZQueryServicer @@ -21,13 +22,12 @@ async def test_fetch_grants( self, authz_servicer, ): - authorization = any_pb2.Any( - type_url="/injective.exchange.v1beta1.CreateSpotMarketOrderAuthz", - value=( - "\nB0xf5099d25e6e7e8c6584b67826127b04c9de3e554000000000000000000000000\022" - "B0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" - ).encode(), + authz_msg = exchange_authz_pb.CreateSpotMarketOrderAuthz( + subaccount_id="0xf5099d25e6e7e8c6584b67826127b04c9de3e554000000000000000000000000", + market_ids=["0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe"], ) + authorization = any_pb2.Any() + authorization.Pack(authz_msg) grant = authz_pb2.Grant(authorization=authorization) @@ -75,13 +75,12 @@ async def test_fetch_granter_grants( self, authz_servicer, ): - authorization = any_pb2.Any( - type_url="/injective.exchange.v1beta1.CreateSpotMarketOrderAuthz", - value=( - "\nB0xf5099d25e6e7e8c6584b67826127b04c9de3e554000000000000000000000000\022" - "B0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" - ).encode(), + authz_msg = exchange_authz_pb.CreateSpotMarketOrderAuthz( + subaccount_id="0xf5099d25e6e7e8c6584b67826127b04c9de3e554000000000000000000000000", + market_ids=["0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe"], ) + authorization = any_pb2.Any() + authorization.Pack(authz_msg) grant_authorization = authz_pb2.GrantAuthorization( granter="inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku", @@ -133,13 +132,12 @@ async def test_fetch_grantee_grants( self, authz_servicer, ): - authorization = any_pb2.Any( - type_url="/injective.exchange.v1beta1.CreateSpotMarketOrderAuthz", - value=( - "\nB0xf5099d25e6e7e8c6584b67826127b04c9de3e554000000000000000000000000\022" - "B0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" - ).encode(), + authz_msg = exchange_authz_pb.CreateSpotMarketOrderAuthz( + subaccount_id="0xf5099d25e6e7e8c6584b67826127b04c9de3e554000000000000000000000000", + market_ids=["0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe"], ) + authorization = any_pb2.Any() + authorization.Pack(authz_msg) grant_authorization = authz_pb2.GrantAuthorization( granter="inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku", diff --git a/tests/client/chain/grpc/test_chain_grpc_exchange_api.py b/tests/client/chain/grpc/test_chain_grpc_exchange_api.py deleted file mode 100644 index c8f184d1..00000000 --- a/tests/client/chain/grpc/test_chain_grpc_exchange_api.py +++ /dev/null @@ -1,2762 +0,0 @@ -import base64 - -import grpc -import pytest - -from pyinjective.client.chain.grpc.chain_grpc_exchange_api import ChainGrpcExchangeApi -from pyinjective.client.model.pagination import PaginationOption -from pyinjective.core.network import DisabledCookieAssistant, Network -from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as coin_pb -from pyinjective.proto.injective.exchange.v1beta1 import ( - exchange_pb2 as exchange_pb, - genesis_pb2 as genesis_pb, - query_pb2 as exchange_query_pb, -) -from pyinjective.proto.injective.oracle.v1beta1 import oracle_pb2 as oracle_pb -from tests.client.chain.grpc.configurable_exchange_query_servicer import ConfigurableExchangeQueryServicer - - -@pytest.fixture -def exchange_servicer(): - return ConfigurableExchangeQueryServicer() - - -class TestChainGrpcBankApi: - @pytest.mark.asyncio - async def test_fetch_exchange_params( - self, - exchange_servicer, - ): - spot_market_instant_listing_fee = coin_pb.Coin(denom="inj", amount="10000000000000000000") - derivative_market_instant_listing_fee = coin_pb.Coin(denom="inj", amount="2000000000000000000000") - binary_options_market_instant_listing_fee = coin_pb.Coin(denom="inj", amount="30000000000000000000") - admin = "inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr" - params = exchange_pb.Params( - spot_market_instant_listing_fee=spot_market_instant_listing_fee, - derivative_market_instant_listing_fee=derivative_market_instant_listing_fee, - default_spot_maker_fee_rate="-0.000100000000000000", - default_spot_taker_fee_rate="0.001000000000000000", - default_derivative_maker_fee_rate="-0.000100000000000000", - default_derivative_taker_fee_rate="0.001000000000000000", - default_initial_margin_ratio="0.050000000000000000", - default_maintenance_margin_ratio="0.020000000000000000", - default_funding_interval=3600, - funding_multiple=4600, - relayer_fee_share_rate="0.400000000000000000", - default_hourly_funding_rate_cap="0.000625000000000000", - default_hourly_interest_rate="0.000004166660000000", - max_derivative_order_side_count=20, - inj_reward_staked_requirement_threshold="25000000000000000000", - trading_rewards_vesting_duration=1209600, - liquidator_reward_share_rate="0.050000000000000000", - binary_options_market_instant_listing_fee=binary_options_market_instant_listing_fee, - atomic_market_order_access_level=2, - spot_atomic_market_order_fee_multiplier="2.000000000000000000", - derivative_atomic_market_order_fee_multiplier="2.000000000000000000", - binary_options_atomic_market_order_fee_multiplier="2.000000000000000000", - minimal_protocol_fee_rate="0.000010000000000000", - is_instant_derivative_market_launch_enabled=False, - post_only_mode_height_threshold=57078000, - margin_decrease_price_timestamp_threshold_seconds=10, - exchange_admins=[admin], - inj_auction_max_cap="1000000000000000000000", - fixed_gas_enabled=True, - ) - exchange_servicer.exchange_params.append(exchange_query_pb.QueryExchangeParamsResponse(params=params)) - - api = self._api_instance(servicer=exchange_servicer) - - module_params = await api.fetch_exchange_params() - expected_params = { - "params": { - "spotMarketInstantListingFee": { - "amount": spot_market_instant_listing_fee.amount, - "denom": spot_market_instant_listing_fee.denom, - }, - "derivativeMarketInstantListingFee": { - "amount": derivative_market_instant_listing_fee.amount, - "denom": derivative_market_instant_listing_fee.denom, - }, - "defaultSpotMakerFeeRate": params.default_spot_maker_fee_rate, - "defaultSpotTakerFeeRate": params.default_spot_taker_fee_rate, - "defaultDerivativeMakerFeeRate": params.default_derivative_maker_fee_rate, - "defaultDerivativeTakerFeeRate": params.default_derivative_taker_fee_rate, - "defaultInitialMarginRatio": params.default_initial_margin_ratio, - "defaultMaintenanceMarginRatio": params.default_maintenance_margin_ratio, - "defaultFundingInterval": str(params.default_funding_interval), - "fundingMultiple": str(params.funding_multiple), - "relayerFeeShareRate": params.relayer_fee_share_rate, - "defaultHourlyFundingRateCap": params.default_hourly_funding_rate_cap, - "defaultHourlyInterestRate": params.default_hourly_interest_rate, - "maxDerivativeOrderSideCount": params.max_derivative_order_side_count, - "injRewardStakedRequirementThreshold": params.inj_reward_staked_requirement_threshold, - "tradingRewardsVestingDuration": str(params.trading_rewards_vesting_duration), - "liquidatorRewardShareRate": "0.050000000000000000", - "binaryOptionsMarketInstantListingFee": { - "amount": binary_options_market_instant_listing_fee.amount, - "denom": binary_options_market_instant_listing_fee.denom, - }, - "atomicMarketOrderAccessLevel": exchange_pb.AtomicMarketOrderAccessLevel.Name( - params.atomic_market_order_access_level - ), - "spotAtomicMarketOrderFeeMultiplier": params.spot_atomic_market_order_fee_multiplier, - "derivativeAtomicMarketOrderFeeMultiplier": params.derivative_atomic_market_order_fee_multiplier, - "binaryOptionsAtomicMarketOrderFeeMultiplier": params.binary_options_atomic_market_order_fee_multiplier, - "minimalProtocolFeeRate": params.minimal_protocol_fee_rate, - "isInstantDerivativeMarketLaunchEnabled": params.is_instant_derivative_market_launch_enabled, - "postOnlyModeHeightThreshold": str(params.post_only_mode_height_threshold), - "marginDecreasePriceTimestampThresholdSeconds": str( - params.margin_decrease_price_timestamp_threshold_seconds - ), - "exchangeAdmins": [admin], - "injAuctionMaxCap": params.inj_auction_max_cap, - "fixedGasEnabled": params.fixed_gas_enabled, - } - } - - assert module_params == expected_params - - @pytest.mark.asyncio - async def test_fetch_subaccount_deposits( - self, - exchange_servicer, - ): - deposit_denom = "inj" - deposit = exchange_pb.Deposit( - available_balance="1000000000000000000", - total_balance="2000000000000000000", - ) - exchange_servicer.subaccount_deposits_responses.append( - exchange_query_pb.QuerySubaccountDepositsResponse(deposits={deposit_denom: deposit}) - ) - - api = self._api_instance(servicer=exchange_servicer) - - deposits = await api.fetch_subaccount_deposits( - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - subaccount_trader="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", - subaccount_nonce=1, - ) - expected_deposits = { - "deposits": { - deposit_denom: { - "availableBalance": deposit.available_balance, - "totalBalance": deposit.total_balance, - }, - } - } - - assert deposits == expected_deposits - - @pytest.mark.asyncio - async def test_fetch_subaccount_deposit( - self, - exchange_servicer, - ): - deposit = exchange_pb.Deposit( - available_balance="1000000000000000000", - total_balance="2000000000000000000", - ) - exchange_servicer.subaccount_deposit_responses.append( - exchange_query_pb.QuerySubaccountDepositResponse(deposits=deposit) - ) - - api = self._api_instance(servicer=exchange_servicer) - - deposit_response = await api.fetch_subaccount_deposit( - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - denom="inj", - ) - expected_deposit = { - "deposits": { - "availableBalance": deposit.available_balance, - "totalBalance": deposit.total_balance, - } - } - - assert deposit_response == expected_deposit - - @pytest.mark.asyncio - async def test_fetch_exchange_balances( - self, - exchange_servicer, - ): - deposit = exchange_pb.Deposit( - available_balance="1000000000000000000", - total_balance="2000000000000000000", - ) - balance = genesis_pb.Balance( - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - denom="inj", - deposits=deposit, - ) - exchange_servicer.exchange_balances_responses.append( - exchange_query_pb.QueryExchangeBalancesResponse(balances=[balance]) - ) - - api = self._api_instance(servicer=exchange_servicer) - - balances_response = await api.fetch_exchange_balances() - expected_balances = { - "balances": [ - { - "subaccountId": balance.subaccount_id, - "denom": balance.denom, - "deposits": { - "availableBalance": deposit.available_balance, - "totalBalance": deposit.total_balance, - }, - }, - ] - } - - assert balances_response == expected_balances - - @pytest.mark.asyncio - async def test_fetch_aggregate_volume( - self, - exchange_servicer, - ): - volume = exchange_pb.VolumeRecord( - maker_volume="1000000000000000000", - taker_volume="2000000000000000000", - ) - market_volume = exchange_pb.MarketVolume( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - volume=volume, - ) - exchange_servicer.aggregate_volume_responses.append( - exchange_query_pb.QueryAggregateVolumeResponse( - aggregate_volumes=[market_volume], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - volume_response = await api.fetch_aggregate_volume(account="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r") - expected_volume = { - "aggregateVolumes": [ - { - "marketId": market_volume.market_id, - "volume": { - "makerVolume": volume.maker_volume, - "takerVolume": volume.taker_volume, - }, - }, - ] - } - - assert volume_response == expected_volume - - @pytest.mark.asyncio - async def test_fetch_aggregate_volumes( - self, - exchange_servicer, - ): - acc_volume = exchange_pb.VolumeRecord( - maker_volume="1000000000000000000", - taker_volume="2000000000000000000", - ) - account_market_volume = exchange_pb.MarketVolume( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - volume=acc_volume, - ) - account_volume = exchange_pb.AggregateAccountVolumeRecord( - account="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - market_volumes=[account_market_volume], - ) - volume = exchange_pb.VolumeRecord( - maker_volume="3000000000000000000", - taker_volume="4000000000000000000", - ) - market_volume = exchange_pb.MarketVolume( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - volume=volume, - ) - exchange_servicer.aggregate_volumes_responses.append( - exchange_query_pb.QueryAggregateVolumesResponse( - aggregate_account_volumes=[account_volume], - aggregate_market_volumes=[market_volume], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - volume_response = await api.fetch_aggregate_volumes( - accounts=[account_volume.account], - market_ids=[account_market_volume.market_id], - ) - expected_volume = { - "aggregateAccountVolumes": [ - { - "account": account_volume.account, - "marketVolumes": [ - { - "marketId": account_market_volume.market_id, - "volume": { - "makerVolume": acc_volume.maker_volume, - "takerVolume": acc_volume.taker_volume, - }, - }, - ], - }, - ], - "aggregateMarketVolumes": [ - { - "marketId": market_volume.market_id, - "volume": { - "makerVolume": volume.maker_volume, - "takerVolume": volume.taker_volume, - }, - }, - ], - } - - assert volume_response == expected_volume - - @pytest.mark.asyncio - async def test_fetch_aggregate_market_volume( - self, - exchange_servicer, - ): - volume = exchange_pb.VolumeRecord( - maker_volume="1000000000000000000", - taker_volume="2000000000000000000", - ) - exchange_servicer.aggregate_market_volume_responses.append( - exchange_query_pb.QueryAggregateMarketVolumeResponse( - volume=volume, - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - volume_response = await api.fetch_aggregate_market_volume( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" - ) - expected_volume = { - "volume": { - "makerVolume": volume.maker_volume, - "takerVolume": volume.taker_volume, - } - } - - assert volume_response == expected_volume - - @pytest.mark.asyncio - async def test_fetch_aggregate_market_volumes( - self, - exchange_servicer, - ): - volume = exchange_pb.VolumeRecord( - maker_volume="3000000000000000000", - taker_volume="4000000000000000000", - ) - market_volume = exchange_pb.MarketVolume( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - volume=volume, - ) - exchange_servicer.aggregate_market_volumes_responses.append( - exchange_query_pb.QueryAggregateMarketVolumesResponse( - volumes=[market_volume], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - volume_response = await api.fetch_aggregate_market_volumes( - market_ids=[market_volume.market_id], - ) - expected_volume = { - "volumes": [ - { - "marketId": market_volume.market_id, - "volume": { - "makerVolume": volume.maker_volume, - "takerVolume": volume.taker_volume, - }, - }, - ], - } - - assert volume_response == expected_volume - - @pytest.mark.asyncio - async def test_fetch_denom_decimal( - self, - exchange_servicer, - ): - decimal = 18 - exchange_servicer.denom_decimal_responses.append( - exchange_query_pb.QueryDenomDecimalResponse( - decimal=decimal, - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - denom_decimal = await api.fetch_denom_decimal(denom="inj") - expected_decimal = {"decimal": str(decimal)} - - assert denom_decimal == expected_decimal - - @pytest.mark.asyncio - async def test_fetch_denom_decimals( - self, - exchange_servicer, - ): - denom_decimal = exchange_pb.DenomDecimals( - denom="inj", - decimals=18, - ) - exchange_servicer.denom_decimals_responses.append( - exchange_query_pb.QueryDenomDecimalsResponse( - denom_decimals=[denom_decimal], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - denom_decimals = await api.fetch_denom_decimals(denoms=[denom_decimal.denom]) - expected_decimals = { - "denomDecimals": [ - { - "denom": denom_decimal.denom, - "decimals": str(denom_decimal.decimals), - } - ] - } - - assert denom_decimals == expected_decimals - - @pytest.mark.asyncio - async def test_fetch_spot_markets( - self, - exchange_servicer, - ): - market = exchange_pb.SpotMarket( - ticker="INJ/USDT", - base_denom="inj", - quote_denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - maker_fee_rate="-0.0001", - taker_fee_rate="0.001", - relayer_fee_share_rate="0.4", - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - status=1, - min_price_tick_size="0.000000000000001", - min_quantity_tick_size="1000000000000000", - min_notional="5000000000000000000", - admin="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", - admin_permissions=1, - base_decimals=18, - quote_decimals=6, - ) - exchange_servicer.spot_markets_responses.append( - exchange_query_pb.QuerySpotMarketsResponse( - markets=[market], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - status_string = exchange_pb.MarketStatus.Name(market.status) - markets = await api.fetch_spot_markets( - status=status_string, - market_ids=[market.market_id], - ) - expected_markets = { - "markets": [ - { - "ticker": market.ticker, - "baseDenom": market.base_denom, - "quoteDenom": market.quote_denom, - "makerFeeRate": market.maker_fee_rate, - "takerFeeRate": market.taker_fee_rate, - "relayerFeeShareRate": market.relayer_fee_share_rate, - "marketId": market.market_id, - "status": status_string, - "minPriceTickSize": market.min_price_tick_size, - "minQuantityTickSize": market.min_quantity_tick_size, - "minNotional": market.min_notional, - "admin": market.admin, - "adminPermissions": market.admin_permissions, - "baseDecimals": market.base_decimals, - "quoteDecimals": market.quote_decimals, - } - ] - } - - assert markets == expected_markets - - @pytest.mark.asyncio - async def test_fetch_spot_market( - self, - exchange_servicer, - ): - market = exchange_pb.SpotMarket( - ticker="INJ/USDT", - base_denom="inj", - quote_denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - maker_fee_rate="-0.0001", - taker_fee_rate="0.001", - relayer_fee_share_rate="0.4", - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - status=1, - min_price_tick_size="0.000000000000001", - min_quantity_tick_size="1000000000000000", - min_notional="5000000000000000000", - admin="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", - admin_permissions=1, - base_decimals=18, - quote_decimals=6, - ) - exchange_servicer.spot_market_responses.append( - exchange_query_pb.QuerySpotMarketResponse( - market=market, - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - response_market = await api.fetch_spot_market( - market_id=market.market_id, - ) - expected_market = { - "market": { - "ticker": market.ticker, - "baseDenom": market.base_denom, - "quoteDenom": market.quote_denom, - "makerFeeRate": market.maker_fee_rate, - "takerFeeRate": market.taker_fee_rate, - "relayerFeeShareRate": market.relayer_fee_share_rate, - "marketId": market.market_id, - "status": exchange_pb.MarketStatus.Name(market.status), - "minPriceTickSize": market.min_price_tick_size, - "minQuantityTickSize": market.min_quantity_tick_size, - "minNotional": market.min_notional, - "admin": market.admin, - "adminPermissions": market.admin_permissions, - "baseDecimals": market.base_decimals, - "quoteDecimals": market.quote_decimals, - } - } - - assert response_market == expected_market - - @pytest.mark.asyncio - async def test_fetch_full_spot_markets( - self, - exchange_servicer, - ): - market = exchange_pb.SpotMarket( - ticker="INJ/USDT", - base_denom="inj", - quote_denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - maker_fee_rate="-0.0001", - taker_fee_rate="0.001", - relayer_fee_share_rate="0.4", - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - status=1, - min_price_tick_size="0.000000000000001", - min_quantity_tick_size="1000000000000000", - min_notional="5000000000000000000", - admin="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", - admin_permissions=1, - base_decimals=18, - quote_decimals=6, - ) - mid_price_and_tob = exchange_pb.MidPriceAndTOB( - mid_price="2000000000000000000", - best_buy_price="1000000000000000000", - best_sell_price="3000000000000000000", - ) - full_market = exchange_query_pb.FullSpotMarket( - market=market, - mid_price_and_tob=mid_price_and_tob, - ) - exchange_servicer.full_spot_markets_responses.append( - exchange_query_pb.QueryFullSpotMarketsResponse( - markets=[full_market], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - status_string = exchange_pb.MarketStatus.Name(market.status) - markets = await api.fetch_full_spot_markets( - status=status_string, - market_ids=[market.market_id], - with_mid_price_and_tob=True, - ) - expected_markets = { - "markets": [ - { - "market": { - "ticker": market.ticker, - "baseDenom": market.base_denom, - "quoteDenom": market.quote_denom, - "makerFeeRate": market.maker_fee_rate, - "takerFeeRate": market.taker_fee_rate, - "relayerFeeShareRate": market.relayer_fee_share_rate, - "marketId": market.market_id, - "status": status_string, - "minPriceTickSize": market.min_price_tick_size, - "minQuantityTickSize": market.min_quantity_tick_size, - "minNotional": market.min_notional, - "admin": market.admin, - "adminPermissions": market.admin_permissions, - "baseDecimals": market.base_decimals, - "quoteDecimals": market.quote_decimals, - }, - "midPriceAndTob": { - "midPrice": mid_price_and_tob.mid_price, - "bestBuyPrice": mid_price_and_tob.best_buy_price, - "bestSellPrice": mid_price_and_tob.best_sell_price, - }, - } - ] - } - - assert markets == expected_markets - - @pytest.mark.asyncio - async def test_fetch_full_spot_market( - self, - exchange_servicer, - ): - market = exchange_pb.SpotMarket( - ticker="INJ/USDT", - base_denom="inj", - quote_denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - maker_fee_rate="-0.0001", - taker_fee_rate="0.001", - relayer_fee_share_rate="0.4", - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - status=1, - min_price_tick_size="0.000000000000001", - min_quantity_tick_size="1000000000000000", - min_notional="5000000000000000000", - admin="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", - admin_permissions=1, - base_decimals=18, - quote_decimals=6, - ) - mid_price_and_tob = exchange_pb.MidPriceAndTOB( - mid_price="2000000000000000000", - best_buy_price="1000000000000000000", - best_sell_price="3000000000000000000", - ) - full_market = exchange_query_pb.FullSpotMarket( - market=market, - mid_price_and_tob=mid_price_and_tob, - ) - exchange_servicer.full_spot_market_responses.append( - exchange_query_pb.QueryFullSpotMarketResponse( - market=full_market, - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - status_string = exchange_pb.MarketStatus.Name(market.status) - market_response = await api.fetch_full_spot_market( - market_id=market.market_id, - with_mid_price_and_tob=True, - ) - expected_market = { - "market": { - "market": { - "ticker": market.ticker, - "baseDenom": market.base_denom, - "quoteDenom": market.quote_denom, - "makerFeeRate": market.maker_fee_rate, - "takerFeeRate": market.taker_fee_rate, - "relayerFeeShareRate": market.relayer_fee_share_rate, - "marketId": market.market_id, - "status": status_string, - "minPriceTickSize": market.min_price_tick_size, - "minQuantityTickSize": market.min_quantity_tick_size, - "minNotional": market.min_notional, - "admin": market.admin, - "adminPermissions": market.admin_permissions, - "baseDecimals": market.base_decimals, - "quoteDecimals": market.quote_decimals, - }, - "midPriceAndTob": { - "midPrice": mid_price_and_tob.mid_price, - "bestBuyPrice": mid_price_and_tob.best_buy_price, - "bestSellPrice": mid_price_and_tob.best_sell_price, - }, - } - } - - assert market_response == expected_market - - @pytest.mark.asyncio - async def test_fetch_spot_orderbook( - self, - exchange_servicer, - ): - buy_price_level = exchange_pb.Level( - p="1000000000000000000", - q="1000000000000000", - ) - sell_price_level = exchange_pb.Level( - p="2000000000000000000", - q="2000000000000000", - ) - exchange_servicer.spot_orderbook_responses.append( - exchange_query_pb.QuerySpotOrderbookResponse( - buys_price_level=[buy_price_level], - sells_price_level=[sell_price_level], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orderbook = await api.fetch_spot_orderbook( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - order_side="Side_Unspecified", - limit_cumulative_notional="1000000000000000000", - limit_cumulative_quantity="1000000000000000", - pagination=PaginationOption(limit=100), - ) - expected_orderbook = { - "buysPriceLevel": [ - { - "p": buy_price_level.p, - "q": buy_price_level.q, - } - ], - "sellsPriceLevel": [ - { - "p": sell_price_level.p, - "q": sell_price_level.q, - } - ], - } - - assert orderbook == expected_orderbook - - @pytest.mark.asyncio - async def test_fetch_trader_spot_orders( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedSpotLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.trader_spot_orders_responses.append( - exchange_query_pb.QueryTraderSpotOrdersResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_trader_spot_orders( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_account_address_spot_orders( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedSpotLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.account_address_spot_orders_responses.append( - exchange_query_pb.QueryAccountAddressSpotOrdersResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_account_address_spot_orders( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - account_address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_spot_orders_by_hashes( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedSpotLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.spot_orders_by_hashes_responses.append( - exchange_query_pb.QuerySpotOrdersByHashesResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_spot_orders_by_hashes( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - order_hashes=[order.order_hash], - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_subaccount_orders( - self, - exchange_servicer, - ): - buy_subaccount_order = exchange_pb.SubaccountOrder( - price="1000000000000000000", - quantity="1000000000000000", - isReduceOnly=False, - cid="buy_cid", - ) - buy_order = exchange_pb.SubaccountOrderData( - order=buy_subaccount_order, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849".encode(), - ) - sell_subaccount_order = exchange_pb.SubaccountOrder( - price="2000000000000000000", - quantity="2000000000000000", - isReduceOnly=False, - cid="sell_cid", - ) - sell_order = exchange_pb.SubaccountOrderData( - order=sell_subaccount_order, - order_hash="0x222daa22f60fe9f075ed0ca583459e121c23e64431c3fbffdedda04598ede0d2".encode(), - ) - exchange_servicer.subaccount_orders_responses.append( - exchange_query_pb.QuerySubaccountOrdersResponse( - buy_orders=[buy_order], - sell_orders=[sell_order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_subaccount_orders( - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - ) - expected_orders = { - "buyOrders": [ - { - "order": { - "price": buy_subaccount_order.price, - "quantity": buy_subaccount_order.quantity, - "isReduceOnly": buy_subaccount_order.isReduceOnly, - "cid": buy_subaccount_order.cid, - }, - "orderHash": base64.b64encode(buy_order.order_hash).decode(), - } - ], - "sellOrders": [ - { - "order": { - "price": sell_subaccount_order.price, - "quantity": sell_subaccount_order.quantity, - "isReduceOnly": sell_subaccount_order.isReduceOnly, - "cid": sell_subaccount_order.cid, - }, - "orderHash": base64.b64encode(sell_order.order_hash).decode(), - } - ], - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_trader_spot_transient_orders( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedSpotLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.trader_spot_transient_orders_responses.append( - exchange_query_pb.QueryTraderSpotOrdersResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_trader_spot_transient_orders( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_spot_mid_price_and_tob( - self, - exchange_servicer, - ): - response = exchange_query_pb.QuerySpotMidPriceAndTOBResponse( - mid_price="2000000000000000000", - best_buy_price="1000000000000000000", - best_sell_price="3000000000000000000", - ) - exchange_servicer.spot_mid_price_and_tob_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - prices = await api.fetch_spot_mid_price_and_tob( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - ) - expected_prices = { - "midPrice": response.mid_price, - "bestBuyPrice": response.best_buy_price, - "bestSellPrice": response.best_sell_price, - } - - assert prices == expected_prices - - @pytest.mark.asyncio - async def test_fetch_derivative_mid_price_and_tob( - self, - exchange_servicer, - ): - response = exchange_query_pb.QueryDerivativeMidPriceAndTOBResponse( - mid_price="2000000000000000000", - best_buy_price="1000000000000000000", - best_sell_price="3000000000000000000", - ) - exchange_servicer.derivative_mid_price_and_tob_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - prices = await api.fetch_derivative_mid_price_and_tob( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - ) - expected_prices = { - "midPrice": response.mid_price, - "bestBuyPrice": response.best_buy_price, - "bestSellPrice": response.best_sell_price, - } - - assert prices == expected_prices - - @pytest.mark.asyncio - async def test_fetch_derivative_orderbook( - self, - exchange_servicer, - ): - buy_price_level = exchange_pb.Level( - p="1000000000000000000", - q="1000000000000000", - ) - sell_price_level = exchange_pb.Level( - p="2000000000000000000", - q="2000000000000000", - ) - exchange_servicer.derivative_orderbook_responses.append( - exchange_query_pb.QueryDerivativeOrderbookResponse( - buys_price_level=[buy_price_level], - sells_price_level=[sell_price_level], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orderbook = await api.fetch_derivative_orderbook( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - limit_cumulative_notional="1000000000000000000", - pagination=PaginationOption(limit=100), - ) - expected_orderbook = { - "buysPriceLevel": [ - { - "p": buy_price_level.p, - "q": buy_price_level.q, - } - ], - "sellsPriceLevel": [ - { - "p": sell_price_level.p, - "q": sell_price_level.q, - } - ], - } - - assert orderbook == expected_orderbook - - @pytest.mark.asyncio - async def test_fetch_trader_derivative_orders( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedDerivativeLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - margin="1000000000000000000000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.trader_derivative_orders_responses.append( - exchange_query_pb.QueryTraderDerivativeOrdersResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_trader_derivative_orders( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "margin": order.margin, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_account_address_derivative_orders( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedDerivativeLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - margin="1000000000000000000000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.account_address_derivative_orders_responses.append( - exchange_query_pb.QueryAccountAddressDerivativeOrdersResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_account_address_derivative_orders( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - account_address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "margin": order.margin, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_derivative_orders_by_hashes( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedDerivativeLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - margin="1000000000000000000000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.derivative_orders_by_hashes_responses.append( - exchange_query_pb.QueryDerivativeOrdersByHashesResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_derivative_orders_by_hashes( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - order_hashes=[order.order_hash], - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "margin": order.margin, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_trader_derivative_transient_orders( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedDerivativeLimitOrder( - price="1000000000000000000", - quantity="1000000000000000", - margin="1000000000000000000000000000000000", - fillable="1000000000000000", - isBuy=True, - order_hash="0x14e43adbb3302db28bcd0619068227ebca880cdd66cdfc8b4a662bcac0777849", - cid="order_cid", - ) - exchange_servicer.trader_derivative_transient_orders_responses.append( - exchange_query_pb.QueryTraderDerivativeOrdersResponse( - orders=[order], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_trader_derivative_transient_orders( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "margin": order.margin, - "fillable": order.fillable, - "isBuy": order.isBuy, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_derivative_markets( - self, - exchange_servicer, - ): - market = exchange_pb.DerivativeMarket( - ticker="20250608/USDT", - oracle_base="0x2d9315a88f3019f8efa88dfe9c0f0843712da0bac814461e27733f6b83eb51b3", - oracle_quote="0x1fc18861232290221461220bd4e2acd1dcdfbc89c84092c93c18bdc7756c1588", - oracle_type=9, - oracle_scale_factor=6, - quote_denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - initial_margin_ratio="50000000000000000", - maintenance_margin_ratio="20000000000000000", - reduce_margin_ratio="10000000000000000", - maker_fee_rate="-0.0001", - taker_fee_rate="0.001", - relayer_fee_share_rate="400000000000000000", - isPerpetual=True, - status=1, - min_price_tick_size="100000000000000000000", - min_quantity_tick_size="1000000000000000", - min_notional="5000000000000000000", - admin="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", - admin_permissions=1, - quote_decimals=6, - ) - market_info = exchange_pb.PerpetualMarketInfo( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - hourly_funding_rate_cap="625000000000000", - hourly_interest_rate="4166660000000", - next_funding_timestamp=1708099200, - funding_interval=3600, - ) - funding_info = exchange_pb.PerpetualMarketFunding( - cumulative_funding="-107853477278881692857461", - cumulative_price="0", - last_timestamp=1708099200, - ) - perpetual_info = exchange_query_pb.PerpetualMarketState( - market_info=market_info, - funding_info=funding_info, - ) - mid_price_and_tob = exchange_pb.MidPriceAndTOB( - mid_price="2000000000000000000", - best_buy_price="1000000000000000000", - best_sell_price="3000000000000000000", - ) - full_market = exchange_query_pb.FullDerivativeMarket( - market=market, - perpetual_info=perpetual_info, - mark_price="33803835513327368963000000", - mid_price_and_tob=mid_price_and_tob, - ) - exchange_servicer.derivative_markets_responses.append( - exchange_query_pb.QueryDerivativeMarketsResponse( - markets=[full_market], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - status_string = exchange_pb.MarketStatus.Name(market.status) - markets = await api.fetch_derivative_markets( - status=status_string, - market_ids=[market.market_id], - ) - expected_markets = { - "markets": [ - { - "market": { - "ticker": market.ticker, - "oracleBase": market.oracle_base, - "oracleQuote": market.oracle_quote, - "oracleType": oracle_pb.OracleType.Name(market.oracle_type), - "oracleScaleFactor": market.oracle_scale_factor, - "quoteDenom": market.quote_denom, - "marketId": market.market_id, - "initialMarginRatio": market.initial_margin_ratio, - "maintenanceMarginRatio": market.maintenance_margin_ratio, - "reduceMarginRatio": market.reduce_margin_ratio, - "makerFeeRate": market.maker_fee_rate, - "takerFeeRate": market.taker_fee_rate, - "relayerFeeShareRate": market.relayer_fee_share_rate, - "isPerpetual": market.isPerpetual, - "status": status_string, - "minPriceTickSize": market.min_price_tick_size, - "minQuantityTickSize": market.min_quantity_tick_size, - "minNotional": market.min_notional, - "admin": market.admin, - "adminPermissions": market.admin_permissions, - "quoteDecimals": market.quote_decimals, - }, - "perpetualInfo": { - "marketInfo": { - "marketId": market_info.market_id, - "hourlyFundingRateCap": market_info.hourly_funding_rate_cap, - "hourlyInterestRate": market_info.hourly_interest_rate, - "nextFundingTimestamp": str(market_info.next_funding_timestamp), - "fundingInterval": str(market_info.funding_interval), - }, - "fundingInfo": { - "cumulativeFunding": funding_info.cumulative_funding, - "cumulativePrice": funding_info.cumulative_price, - "lastTimestamp": str(funding_info.last_timestamp), - }, - }, - "markPrice": full_market.mark_price, - "midPriceAndTob": { - "midPrice": mid_price_and_tob.mid_price, - "bestBuyPrice": mid_price_and_tob.best_buy_price, - "bestSellPrice": mid_price_and_tob.best_sell_price, - }, - } - ] - } - - assert markets == expected_markets - - @pytest.mark.asyncio - async def test_fetch_derivative_market( - self, - exchange_servicer, - ): - market = exchange_pb.DerivativeMarket( - ticker="INJ/USDT PERP", - oracle_base="0x2d9315a88f3019f8efa88dfe9c0f0843712da0bac814461e27733f6b83eb51b3", - oracle_quote="0x1fc18861232290221461220bd4e2acd1dcdfbc89c84092c93c18bdc7756c1588", - oracle_type=9, - oracle_scale_factor=6, - quote_denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - initial_margin_ratio="50000000000000000", - maintenance_margin_ratio="20000000000000000", - reduce_margin_ratio="10000000000000000", - maker_fee_rate="-0.0001", - taker_fee_rate="0.001", - relayer_fee_share_rate="400000000000000000", - isPerpetual=True, - status=1, - min_price_tick_size="100000000000000000000", - min_quantity_tick_size="1000000000000000", - min_notional="5000000000000000000", - admin="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", - admin_permissions=1, - quote_decimals=6, - ) - market_info = exchange_pb.PerpetualMarketInfo( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - hourly_funding_rate_cap="625000000000000", - hourly_interest_rate="4166660000000", - next_funding_timestamp=1708099200, - funding_interval=3600, - ) - funding_info = exchange_pb.PerpetualMarketFunding( - cumulative_funding="-107853477278881692857461", - cumulative_price="0", - last_timestamp=1708099200, - ) - perpetual_info = exchange_query_pb.PerpetualMarketState( - market_info=market_info, - funding_info=funding_info, - ) - mid_price_and_tob = exchange_pb.MidPriceAndTOB( - mid_price="2000000000000000000", - best_buy_price="1000000000000000000", - best_sell_price="3000000000000000000", - ) - full_market = exchange_query_pb.FullDerivativeMarket( - market=market, - perpetual_info=perpetual_info, - mark_price="33803835513327368963000000", - mid_price_and_tob=mid_price_and_tob, - ) - exchange_servicer.derivative_market_responses.append( - exchange_query_pb.QueryDerivativeMarketResponse( - market=full_market, - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - status_string = exchange_pb.MarketStatus.Name(market.status) - market_response = await api.fetch_derivative_market( - market_id=market.market_id, - ) - expected_market = { - "market": { - "market": { - "ticker": market.ticker, - "oracleBase": market.oracle_base, - "oracleQuote": market.oracle_quote, - "oracleType": oracle_pb.OracleType.Name(market.oracle_type), - "oracleScaleFactor": market.oracle_scale_factor, - "quoteDenom": market.quote_denom, - "marketId": market.market_id, - "initialMarginRatio": market.initial_margin_ratio, - "maintenanceMarginRatio": market.maintenance_margin_ratio, - "reduceMarginRatio": market.reduce_margin_ratio, - "makerFeeRate": market.maker_fee_rate, - "takerFeeRate": market.taker_fee_rate, - "relayerFeeShareRate": market.relayer_fee_share_rate, - "isPerpetual": market.isPerpetual, - "status": status_string, - "minPriceTickSize": market.min_price_tick_size, - "minQuantityTickSize": market.min_quantity_tick_size, - "minNotional": market.min_notional, - "admin": market.admin, - "adminPermissions": market.admin_permissions, - "quoteDecimals": market.quote_decimals, - }, - "perpetualInfo": { - "marketInfo": { - "marketId": market_info.market_id, - "hourlyFundingRateCap": market_info.hourly_funding_rate_cap, - "hourlyInterestRate": market_info.hourly_interest_rate, - "nextFundingTimestamp": str(market_info.next_funding_timestamp), - "fundingInterval": str(market_info.funding_interval), - }, - "fundingInfo": { - "cumulativeFunding": funding_info.cumulative_funding, - "cumulativePrice": funding_info.cumulative_price, - "lastTimestamp": str(funding_info.last_timestamp), - }, - }, - "markPrice": full_market.mark_price, - "midPriceAndTob": { - "midPrice": mid_price_and_tob.mid_price, - "bestBuyPrice": mid_price_and_tob.best_buy_price, - "bestSellPrice": mid_price_and_tob.best_sell_price, - }, - } - } - - assert market_response == expected_market - - @pytest.mark.asyncio - async def test_fetch_derivative_market_address( - self, - exchange_servicer, - ): - response = exchange_query_pb.QueryDerivativeMarketAddressResponse( - address="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9", - subaccount_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20000000000000000000000000", - ) - exchange_servicer.derivative_market_address_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - address = await api.fetch_derivative_market_address( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - ) - expected_address = { - "address": response.address, - "subaccountId": response.subaccount_id, - } - - assert address == expected_address - - @pytest.mark.asyncio - async def test_fetch_subaccount_trade_nonce( - self, - exchange_servicer, - ): - response = exchange_query_pb.QuerySubaccountTradeNonceResponse(nonce=1234567879) - exchange_servicer.subaccount_trade_nonce_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - nonce = await api.fetch_subaccount_trade_nonce( - subaccount_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20000000000000000000000000", - ) - expected_nonce = { - "nonce": response.nonce, - } - - assert nonce == expected_nonce - - @pytest.mark.asyncio - async def test_fetch_positions( - self, - exchange_servicer, - ): - position = exchange_pb.Position( - isLong=True, - quantity="1000000000000000", - entry_price="2000000000000000000", - margin="2000000000000000000000000000000000", - cumulative_funding_entry="4000000", - ) - derivative_position = genesis_pb.DerivativePosition( - subaccount_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20000000000000000000000000", - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - position=position, - ) - exchange_servicer.positions_responses.append( - exchange_query_pb.QueryPositionsResponse(state=[derivative_position]) - ) - - api = self._api_instance(servicer=exchange_servicer) - - positions = await api.fetch_positions() - expected_positions = { - "state": [ - { - "subaccountId": derivative_position.subaccount_id, - "marketId": derivative_position.market_id, - "position": { - "isLong": position.isLong, - "quantity": position.quantity, - "entryPrice": position.entry_price, - "margin": position.margin, - "cumulativeFundingEntry": position.cumulative_funding_entry, - }, - }, - ], - } - - assert positions == expected_positions - - @pytest.mark.asyncio - async def test_fetch_subaccount_positions( - self, - exchange_servicer, - ): - position = exchange_pb.Position( - isLong=True, - quantity="1000000000000000", - entry_price="2000000000000000000", - margin="2000000000000000000000000000000000", - cumulative_funding_entry="4000000", - ) - derivative_position = genesis_pb.DerivativePosition( - subaccount_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20000000000000000000000000", - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - position=position, - ) - exchange_servicer.subaccount_positions_responses.append( - exchange_query_pb.QuerySubaccountPositionsResponse(state=[derivative_position]) - ) - - api = self._api_instance(servicer=exchange_servicer) - - positions = await api.fetch_subaccount_positions(subaccount_id=derivative_position.subaccount_id) - expected_positions = { - "state": [ - { - "subaccountId": derivative_position.subaccount_id, - "marketId": derivative_position.market_id, - "position": { - "isLong": position.isLong, - "quantity": position.quantity, - "entryPrice": position.entry_price, - "margin": position.margin, - "cumulativeFundingEntry": position.cumulative_funding_entry, - }, - }, - ], - } - - assert positions == expected_positions - - @pytest.mark.asyncio - async def test_fetch_subaccount_position_in_market( - self, - exchange_servicer, - ): - subaccount_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20000000000000000000000000" - market_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" - position = exchange_pb.Position( - isLong=True, - quantity="1000000000000000", - entry_price="2000000000000000000", - margin="2000000000000000000000000000000000", - cumulative_funding_entry="4000000", - ) - exchange_servicer.subaccount_position_in_market_responses.append( - exchange_query_pb.QuerySubaccountPositionInMarketResponse(state=position) - ) - - api = self._api_instance(servicer=exchange_servicer) - - position_response = await api.fetch_subaccount_position_in_market( - subaccount_id=subaccount_id, - market_id=market_id, - ) - expected_position = { - "state": { - "isLong": position.isLong, - "quantity": position.quantity, - "entryPrice": position.entry_price, - "margin": position.margin, - "cumulativeFundingEntry": position.cumulative_funding_entry, - }, - } - - assert position_response == expected_position - - @pytest.mark.asyncio - async def test_fetch_subaccount_effective_position_in_market( - self, - exchange_servicer, - ): - subaccount_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20000000000000000000000000" - market_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" - - effective_position = exchange_query_pb.EffectivePosition( - is_long=True, - quantity="1000000000000000", - entry_price="2000000000000000000", - effective_margin="2000000000000000000000000000000000", - ) - exchange_servicer.subaccount_effective_position_in_market_responses.append( - exchange_query_pb.QuerySubaccountEffectivePositionInMarketResponse(state=effective_position) - ) - - api = self._api_instance(servicer=exchange_servicer) - - position_response = await api.fetch_subaccount_effective_position_in_market( - subaccount_id=subaccount_id, - market_id=market_id, - ) - expected_position = { - "state": { - "isLong": effective_position.is_long, - "quantity": effective_position.quantity, - "entryPrice": effective_position.entry_price, - "effectiveMargin": effective_position.effective_margin, - }, - } - - assert position_response == expected_position - - @pytest.mark.asyncio - async def test_fetch_perpetual_market_info( - self, - exchange_servicer, - ): - perpetual_market_info = exchange_pb.PerpetualMarketInfo( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - hourly_funding_rate_cap="625000000000000", - hourly_interest_rate="4166660000000", - next_funding_timestamp=1708099200, - funding_interval=3600, - ) - exchange_servicer.perpetual_market_info_responses.append( - exchange_query_pb.QueryPerpetualMarketInfoResponse(info=perpetual_market_info) - ) - - api = self._api_instance(servicer=exchange_servicer) - - market_info = await api.fetch_perpetual_market_info(market_id=perpetual_market_info.market_id) - expected_market_info = { - "info": { - "marketId": perpetual_market_info.market_id, - "hourlyFundingRateCap": perpetual_market_info.hourly_funding_rate_cap, - "hourlyInterestRate": perpetual_market_info.hourly_interest_rate, - "nextFundingTimestamp": str(perpetual_market_info.next_funding_timestamp), - "fundingInterval": str(perpetual_market_info.funding_interval), - } - } - - assert market_info == expected_market_info - - @pytest.mark.asyncio - async def test_fetch_expiry_futures_market_info( - self, - exchange_servicer, - ): - expiry_futures_market_info = exchange_pb.ExpiryFuturesMarketInfo( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - expiration_timestamp=1708099200, - twap_start_timestamp=1705566200, - expiration_twap_start_price_cumulative="1000000000000000000", - settlement_price="2000000000000000000", - ) - exchange_servicer.expiry_futures_market_info_responses.append( - exchange_query_pb.QueryExpiryFuturesMarketInfoResponse(info=expiry_futures_market_info) - ) - - api = self._api_instance(servicer=exchange_servicer) - - market_info = await api.fetch_expiry_futures_market_info(market_id=expiry_futures_market_info.market_id) - expected_market_info = { - "info": { - "marketId": expiry_futures_market_info.market_id, - "expirationTimestamp": str(expiry_futures_market_info.expiration_timestamp), - "twapStartTimestamp": str(expiry_futures_market_info.twap_start_timestamp), - "expirationTwapStartPriceCumulative": expiry_futures_market_info.expiration_twap_start_price_cumulative, - "settlementPrice": expiry_futures_market_info.settlement_price, - } - } - - assert market_info == expected_market_info - - @pytest.mark.asyncio - async def test_fetch_perpetual_market_funding( - self, - exchange_servicer, - ): - perpetual_market_funding = exchange_pb.PerpetualMarketFunding( - cumulative_funding="-107853477278881692857461", - cumulative_price="0", - last_timestamp=1708099200, - ) - exchange_servicer.perpetual_market_funding_responses.append( - exchange_query_pb.QueryPerpetualMarketFundingResponse(state=perpetual_market_funding) - ) - - api = self._api_instance(servicer=exchange_servicer) - - funding = await api.fetch_perpetual_market_funding( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" - ) - expected_funding = { - "state": { - "cumulativeFunding": perpetual_market_funding.cumulative_funding, - "cumulativePrice": perpetual_market_funding.cumulative_price, - "lastTimestamp": str(perpetual_market_funding.last_timestamp), - } - } - - assert funding == expected_funding - - @pytest.mark.asyncio - async def test_fetch_subaccount_order_metadata( - self, - exchange_servicer, - ): - metadata = exchange_pb.SubaccountOrderbookMetadata( - vanilla_limit_order_count=1, - reduce_only_limit_order_count=2, - aggregate_reduce_only_quantity="1000000000000000", - aggregate_vanilla_quantity="2000000000000000", - vanilla_conditional_order_count=3, - reduce_only_conditional_order_count=4, - ) - subaccount_order_metadata = exchange_query_pb.SubaccountOrderbookMetadataWithMarket( - metadata=metadata, - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - isBuy=True, - ) - exchange_servicer.subaccount_order_metadata_responses.append( - exchange_query_pb.QuerySubaccountOrderMetadataResponse(metadata=[subaccount_order_metadata]) - ) - - api = self._api_instance(servicer=exchange_servicer) - - metadata_response = await api.fetch_subaccount_order_metadata( - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001" - ) - expected_metadata = { - "metadata": [ - { - "metadata": { - "vanillaLimitOrderCount": metadata.vanilla_limit_order_count, - "reduceOnlyLimitOrderCount": metadata.reduce_only_limit_order_count, - "aggregateReduceOnlyQuantity": metadata.aggregate_reduce_only_quantity, - "aggregateVanillaQuantity": metadata.aggregate_vanilla_quantity, - "vanillaConditionalOrderCount": metadata.vanilla_conditional_order_count, - "reduceOnlyConditionalOrderCount": metadata.reduce_only_conditional_order_count, - }, - "marketId": subaccount_order_metadata.market_id, - "isBuy": subaccount_order_metadata.isBuy, - }, - ] - } - - assert metadata_response == expected_metadata - - @pytest.mark.asyncio - async def test_fetch_trade_reward_points( - self, - exchange_servicer, - ): - points = "40" - response = exchange_query_pb.QueryTradeRewardPointsResponse(account_trade_reward_points=[points]) - exchange_servicer.trade_reward_points_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - trade_reward_points = await api.fetch_trade_reward_points( - accounts=["inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r"], - pending_pool_timestamp=1708099200, - ) - expected_trade_reward_points = {"accountTradeRewardPoints": [points]} - - assert trade_reward_points == expected_trade_reward_points - - @pytest.mark.asyncio - async def test_fetch_pending_trade_reward_points( - self, - exchange_servicer, - ): - points = "40" - response = exchange_query_pb.QueryTradeRewardPointsResponse(account_trade_reward_points=[points]) - exchange_servicer.pending_trade_reward_points_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - trade_reward_points = await api.fetch_pending_trade_reward_points( - accounts=["inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r"], - pending_pool_timestamp=1708099200, - ) - expected_trade_reward_points = {"accountTradeRewardPoints": [points]} - - assert trade_reward_points == expected_trade_reward_points - - @pytest.mark.asyncio - async def test_fetch_trade_reward_campaign( - self, - exchange_servicer, - ): - spot_market_multiplier = exchange_pb.PointsMultiplier( - maker_points_multiplier="10.0", - taker_points_multiplier="5.0", - ) - derivative_market_multiplier = exchange_pb.PointsMultiplier( - maker_points_multiplier="9.0", - taker_points_multiplier="6.0", - ) - trading_reward_boost_info = exchange_pb.TradingRewardCampaignBoostInfo( - boosted_spot_market_ids=["0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00aaf7"], - spot_market_multipliers=[spot_market_multiplier], - boosted_derivative_market_ids=["0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6"], - derivative_market_multipliers=[derivative_market_multiplier], - ) - trading_reward_campaign_info = exchange_pb.TradingRewardCampaignInfo( - campaign_duration_seconds=3600, - quote_denoms=["peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5"], - trading_reward_boost_info=trading_reward_boost_info, - disqualified_market_ids=["0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00aaf7"], - ) - reward = coin_pb.Coin( - amount="1000000000000000000", - denom="inj", - ) - trading_reward_pool_campaign_schedule = exchange_pb.CampaignRewardPool( - start_timestamp=1708099200, - max_campaign_rewards=[reward], - ) - total_trade_reward_points = "40" - pending_reward = coin_pb.Coin( - amount="2000000000000000000", - denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - ) - pending_trading_reward_pool_campaign_schedule = exchange_pb.CampaignRewardPool( - start_timestamp=1709099200, - max_campaign_rewards=[pending_reward], - ) - pending_total_trade_reward_points = "80" - response = exchange_query_pb.QueryTradeRewardCampaignResponse( - trading_reward_campaign_info=trading_reward_campaign_info, - trading_reward_pool_campaign_schedule=[trading_reward_pool_campaign_schedule], - total_trade_reward_points=total_trade_reward_points, - pending_trading_reward_pool_campaign_schedule=[pending_trading_reward_pool_campaign_schedule], - pending_total_trade_reward_points=[pending_total_trade_reward_points], - ) - exchange_servicer.trade_reward_campaign_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - trade_reward_campaign = await api.fetch_trade_reward_campaign() - expected_campaign = { - "tradingRewardCampaignInfo": { - "campaignDurationSeconds": str(trading_reward_campaign_info.campaign_duration_seconds), - "quoteDenoms": trading_reward_campaign_info.quote_denoms, - "tradingRewardBoostInfo": { - "boostedSpotMarketIds": ( - trading_reward_campaign_info.trading_reward_boost_info.boosted_spot_market_ids - ), - "spotMarketMultipliers": [ - { - "makerPointsMultiplier": spot_market_multiplier.maker_points_multiplier, - "takerPointsMultiplier": spot_market_multiplier.taker_points_multiplier, - }, - ], - "boostedDerivativeMarketIds": ( - trading_reward_campaign_info.trading_reward_boost_info.boosted_derivative_market_ids - ), - "derivativeMarketMultipliers": [ - { - "makerPointsMultiplier": derivative_market_multiplier.maker_points_multiplier, - "takerPointsMultiplier": derivative_market_multiplier.taker_points_multiplier, - }, - ], - }, - "disqualifiedMarketIds": trading_reward_campaign_info.disqualified_market_ids, - }, - "tradingRewardPoolCampaignSchedule": [ - { - "startTimestamp": str(trading_reward_pool_campaign_schedule.start_timestamp), - "maxCampaignRewards": [ - { - "amount": trading_reward_pool_campaign_schedule.max_campaign_rewards[0].amount, - "denom": trading_reward_pool_campaign_schedule.max_campaign_rewards[0].denom, - }, - ], - }, - ], - "totalTradeRewardPoints": total_trade_reward_points, - "pendingTradingRewardPoolCampaignSchedule": [ - { - "startTimestamp": str(pending_trading_reward_pool_campaign_schedule.start_timestamp), - "maxCampaignRewards": [ - { - "amount": pending_trading_reward_pool_campaign_schedule.max_campaign_rewards[0].amount, - "denom": pending_trading_reward_pool_campaign_schedule.max_campaign_rewards[0].denom, - }, - ], - }, - ], - "pendingTotalTradeRewardPoints": [pending_total_trade_reward_points], - } - - assert trade_reward_campaign == expected_campaign - - @pytest.mark.asyncio - async def test_fetch_fee_discount_account_info( - self, - exchange_servicer, - ): - account_info = exchange_pb.FeeDiscountTierInfo( - maker_discount_rate="0.0001", - taker_discount_rate="0.0002", - staked_amount="1000000000", - volume="1000000000000000000", - ) - account_ttl = exchange_pb.FeeDiscountTierTTL( - tier=3, - ttl_timestamp=1708099200, - ) - response = exchange_query_pb.QueryFeeDiscountAccountInfoResponse( - tier_level=3, - account_info=account_info, - account_ttl=account_ttl, - ) - exchange_servicer.fee_discount_account_info_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - fee_discount = await api.fetch_fee_discount_account_info(account="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r") - expected_fee_discount = { - "tierLevel": str(response.tier_level), - "accountInfo": { - "makerDiscountRate": account_info.maker_discount_rate, - "takerDiscountRate": account_info.taker_discount_rate, - "stakedAmount": account_info.staked_amount, - "volume": account_info.volume, - }, - "accountTtl": { - "tier": str(account_ttl.tier), - "ttlTimestamp": str(account_ttl.ttl_timestamp), - }, - } - - assert fee_discount == expected_fee_discount - - @pytest.mark.asyncio - async def test_fetch_fee_discount_schedule( - self, - exchange_servicer, - ): - fee_discount_tier_info = exchange_pb.FeeDiscountTierInfo( - maker_discount_rate="0.0001", - taker_discount_rate="0.0002", - staked_amount="1000000000", - volume="1000000000000000000", - ) - fee_discount_schedule = exchange_pb.FeeDiscountSchedule( - bucket_count=3, - bucket_duration=3600, - quote_denoms=["peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5"], - tier_infos=[fee_discount_tier_info], - disqualified_market_ids=["0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6"], - ) - exchange_servicer.fee_discount_schedule_responses.append( - exchange_query_pb.QueryFeeDiscountScheduleResponse( - fee_discount_schedule=fee_discount_schedule, - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - schedule = await api.fetch_fee_discount_schedule() - expected_schedule = { - "feeDiscountSchedule": { - "bucketCount": str(fee_discount_schedule.bucket_count), - "bucketDuration": str(fee_discount_schedule.bucket_duration), - "quoteDenoms": fee_discount_schedule.quote_denoms, - "tierInfos": [ - { - "makerDiscountRate": fee_discount_tier_info.maker_discount_rate, - "takerDiscountRate": fee_discount_tier_info.taker_discount_rate, - "stakedAmount": fee_discount_tier_info.staked_amount, - "volume": fee_discount_tier_info.volume, - } - ], - "disqualifiedMarketIds": fee_discount_schedule.disqualified_market_ids, - }, - } - - assert schedule == expected_schedule - - @pytest.mark.asyncio - async def test_fetch_balance_mismatches( - self, - exchange_servicer, - ): - balance_mismatch = exchange_query_pb.BalanceMismatch( - subaccountId="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - available="1000000000000000", - total="2000000000000000", - balance_hold="3000000000000000", - expected_total="4000000000000000", - difference="500000000000000", - ) - exchange_servicer.balance_mismatches_responses.append( - exchange_query_pb.QueryBalanceMismatchesResponse( - balance_mismatches=[balance_mismatch], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - mismatches = await api.fetch_balance_mismatches(dust_factor=20) - expected_mismatches = { - "balanceMismatches": [ - { - "subaccountId": balance_mismatch.subaccountId, - "denom": balance_mismatch.denom, - "available": balance_mismatch.available, - "total": balance_mismatch.total, - "balanceHold": balance_mismatch.balance_hold, - "expectedTotal": balance_mismatch.expected_total, - "difference": balance_mismatch.difference, - } - ], - } - - assert mismatches == expected_mismatches - - @pytest.mark.asyncio - async def test_fetch_balance_with_balance_holds( - self, - exchange_servicer, - ): - balance_with_balance_hold = exchange_query_pb.BalanceWithMarginHold( - subaccountId="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - available="1000000000000000", - total="2000000000000000", - balance_hold="3000000000000000", - ) - exchange_servicer.balance_with_balance_holds_responses.append( - exchange_query_pb.QueryBalanceWithBalanceHoldsResponse( - balance_with_balance_holds=[balance_with_balance_hold], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - balance = await api.fetch_balance_with_balance_holds() - expected_balance = { - "balanceWithBalanceHolds": [ - { - "subaccountId": balance_with_balance_hold.subaccountId, - "denom": balance_with_balance_hold.denom, - "available": balance_with_balance_hold.available, - "total": balance_with_balance_hold.total, - "balanceHold": balance_with_balance_hold.balance_hold, - } - ], - } - - assert balance == expected_balance - - @pytest.mark.asyncio - async def test_fetch_fee_discount_tier_statistics( - self, - exchange_servicer, - ): - tier_statistics = exchange_query_pb.TierStatistic( - tier=3, - count=30, - ) - exchange_servicer.fee_discount_tier_statistics_responses.append( - exchange_query_pb.QueryFeeDiscountTierStatisticsResponse( - statistics=[tier_statistics], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - statistics = await api.fetch_fee_discount_tier_statistics() - expected_statistics = { - "statistics": [ - { - "tier": str(tier_statistics.tier), - "count": str(tier_statistics.count), - } - ], - } - - assert statistics == expected_statistics - - @pytest.mark.asyncio - async def test_fetch_mito_vault_infos( - self, - exchange_servicer, - ): - master_address = "inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9" - derivative_address = "inj1zlh5" - spot_address = "inj1zlh6" - cw20_address = "inj1zlh7" - response = exchange_query_pb.MitoVaultInfosResponse( - master_addresses=[master_address], - derivative_addresses=[derivative_address], - spot_addresses=[spot_address], - cw20_addresses=[cw20_address], - ) - exchange_servicer.mito_vault_infos_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - mito_vaults = await api.fetch_mito_vault_infos() - expected_mito_vaults = { - "masterAddresses": [master_address], - "derivativeAddresses": [derivative_address], - "spotAddresses": [spot_address], - "cw20Addresses": [cw20_address], - } - - assert mito_vaults == expected_mito_vaults - - @pytest.mark.asyncio - async def test_fetch_market_id_from_vault( - self, - exchange_servicer, - ): - market_id = "0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" - exchange_servicer.market_id_from_vault_responses.append( - exchange_query_pb.QueryMarketIDFromVaultResponse( - market_id=market_id, - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - market_id_response = await api.fetch_market_id_from_vault( - vault_address="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9" - ) - expected_market_id = { - "marketId": market_id, - } - - assert market_id_response == expected_market_id - - @pytest.mark.asyncio - async def test_fetch_historical_trade_records( - self, - exchange_servicer, - ): - latest_trade_record = exchange_pb.TradeRecord( - timestamp=1708099200, - price="2000000000000000000", - quantity="1000000000000000", - ) - trade_record = exchange_pb.TradeRecords( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - latest_trade_records=[latest_trade_record], - ) - exchange_servicer.historical_trade_records_responses.append( - exchange_query_pb.QueryHistoricalTradeRecordsResponse( - trade_records=[trade_record], - ) - ) - - api = self._api_instance(servicer=exchange_servicer) - - records = await api.fetch_historical_trade_records(market_id=trade_record.market_id) - expected_records = { - "tradeRecords": [ - { - "marketId": trade_record.market_id, - "latestTradeRecords": [ - { - "timestamp": str(latest_trade_record.timestamp), - "price": latest_trade_record.price, - "quantity": latest_trade_record.quantity, - } - ], - }, - ], - } - - assert records == expected_records - - @pytest.mark.asyncio - async def test_fetch_is_opted_out_of_rewards( - self, - exchange_servicer, - ): - response = exchange_query_pb.QueryIsOptedOutOfRewardsResponse( - is_opted_out=False, - ) - exchange_servicer.is_opted_out_of_rewards_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - is_opted_out = await api.fetch_is_opted_out_of_rewards(account="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9") - expected_is_opted_out = { - "isOptedOut": response.is_opted_out, - } - - assert is_opted_out == expected_is_opted_out - - @pytest.mark.asyncio - async def test_fetch_opted_out_of_rewards_accounts( - self, - exchange_servicer, - ): - response = exchange_query_pb.QueryOptedOutOfRewardsAccountsResponse( - accounts=["inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9"], - ) - exchange_servicer.opted_out_of_rewards_accounts_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - opted_out = await api.fetch_opted_out_of_rewards_accounts() - expected_opted_out = { - "accounts": response.accounts, - } - - assert opted_out == expected_opted_out - - @pytest.mark.asyncio - async def test_fetch_market_volatility( - self, - exchange_servicer, - ): - history_metadata = oracle_pb.MetadataStatistics( - group_count=2, - records_sample_size=10, - mean="0.0001", - twap="0.0005", - first_timestamp=1702399200, - last_timestamp=1708099200, - min_price="1000000000000", - max_price="3000000000000", - median_price="2000000000000", - ) - trade_record = exchange_pb.TradeRecord( - timestamp=1708099200, - price="2000000000000000000", - quantity="1000000000000000", - ) - response = exchange_query_pb.QueryMarketVolatilityResponse( - volatility="0.0001", history_metadata=history_metadata, raw_history=[trade_record] - ) - exchange_servicer.market_volatility_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - volatility = await api.fetch_market_volatility( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - trade_grouping_sec=0, - max_age=28000000, - include_raw_history=True, - include_metadata=True, - ) - expected_volatility = { - "volatility": response.volatility, - "historyMetadata": { - "groupCount": history_metadata.group_count, - "recordsSampleSize": history_metadata.records_sample_size, - "mean": history_metadata.mean, - "twap": history_metadata.twap, - "firstTimestamp": str(history_metadata.first_timestamp), - "lastTimestamp": str(history_metadata.last_timestamp), - "minPrice": history_metadata.min_price, - "maxPrice": history_metadata.max_price, - "medianPrice": history_metadata.median_price, - }, - "rawHistory": [ - { - "timestamp": str(trade_record.timestamp), - "price": trade_record.price, - "quantity": trade_record.quantity, - } - ], - } - - assert volatility == expected_volatility - - @pytest.mark.asyncio - async def test_fetch_binary_options_markets( - self, - exchange_servicer, - ): - market = exchange_pb.BinaryOptionsMarket( - ticker="20250608/USDT", - oracle_symbol="0x2d9315a88f3019f8efa88dfe9c0f0843712da0bac814461e27733f6b83eb51b3", - oracle_provider="Pyth", - oracle_type=9, - oracle_scale_factor=6, - expiration_timestamp=1708099200, - settlement_timestamp=1707099200, - admin="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9", - quote_denom="peggy0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5", - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - maker_fee_rate="-0.0001", - taker_fee_rate="0.001", - relayer_fee_share_rate="400000000000000000", - status=1, - min_price_tick_size="100000000000000000000", - min_quantity_tick_size="1000000000000000", - settlement_price="2000000000000000000", - min_notional="5000000000000000000", - admin_permissions=1, - quote_decimals=6, - ) - response = exchange_query_pb.QueryBinaryMarketsResponse( - markets=[market], - ) - exchange_servicer.binary_options_markets_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - markets = await api.fetch_binary_options_markets(status="Active") - expected_markets = { - "markets": [ - { - "ticker": market.ticker, - "oracleSymbol": market.oracle_symbol, - "oracleProvider": market.oracle_provider, - "oracleType": oracle_pb.OracleType.Name(market.oracle_type), - "oracleScaleFactor": market.oracle_scale_factor, - "expirationTimestamp": str(market.expiration_timestamp), - "settlementTimestamp": str(market.settlement_timestamp), - "admin": market.admin, - "quoteDenom": market.quote_denom, - "marketId": market.market_id, - "makerFeeRate": market.maker_fee_rate, - "takerFeeRate": market.taker_fee_rate, - "relayerFeeShareRate": market.relayer_fee_share_rate, - "status": exchange_pb.MarketStatus.Name(market.status), - "minPriceTickSize": market.min_price_tick_size, - "minQuantityTickSize": market.min_quantity_tick_size, - "settlementPrice": market.settlement_price, - "minNotional": market.min_notional, - "adminPermissions": market.admin_permissions, - "quoteDecimals": market.quote_decimals, - }, - ] - } - - assert markets == expected_markets - - @pytest.mark.asyncio - async def test_fetch_trader_derivative_conditional_orders( - self, - exchange_servicer, - ): - order = exchange_query_pb.TrimmedDerivativeConditionalOrder( - price="2000000000000000000", - quantity="1000000000000000", - margin="2000000000000000000000000000000000", - triggerPrice="3000000000000000000", - isBuy=True, - isLimit=True, - order_hash="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - cid="order_cid", - ) - response = exchange_query_pb.QueryTraderDerivativeConditionalOrdersResponse(orders=[order]) - exchange_servicer.trader_derivative_conditional_orders_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - orders = await api.fetch_trader_derivative_conditional_orders( - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - ) - expected_orders = { - "orders": [ - { - "price": order.price, - "quantity": order.quantity, - "margin": order.margin, - "triggerPrice": order.triggerPrice, - "isBuy": order.isBuy, - "isLimit": order.isLimit, - "orderHash": order.order_hash, - "cid": order.cid, - } - ] - } - - assert orders == expected_orders - - @pytest.mark.asyncio - async def test_fetch_market_atomic_execution_fee_multiplier( - self, - exchange_servicer, - ): - response = exchange_query_pb.QueryMarketAtomicExecutionFeeMultiplierResponse( - multiplier="100", - ) - exchange_servicer.market_atomic_execution_fee_multiplier_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - multiplier = await api.fetch_market_atomic_execution_fee_multiplier( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - ) - expected_multiplier = { - "multiplier": response.multiplier, - } - - assert multiplier == expected_multiplier - - @pytest.mark.asyncio - async def test_fetch_active_stake_grant( - self, - exchange_servicer, - ): - grant = exchange_pb.ActiveGrant( - granter="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9", - amount="1000000000000000", - ) - effective_grant = exchange_pb.EffectiveGrant( - granter="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9", - net_granted_stake="2000000000000000", - is_valid=True, - ) - response = exchange_query_pb.QueryActiveStakeGrantResponse( - grant=grant, - effective_grant=effective_grant, - ) - exchange_servicer.active_stake_grant_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - active_grant = await api.fetch_active_stake_grant( - grantee="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - ) - expected_grant = { - "grant": { - "granter": grant.granter, - "amount": grant.amount, - }, - "effectiveGrant": { - "granter": effective_grant.granter, - "netGrantedStake": effective_grant.net_granted_stake, - "isValid": effective_grant.is_valid, - }, - } - - assert active_grant == expected_grant - - @pytest.mark.asyncio - async def test_fetch_grant_authorization( - self, - exchange_servicer, - ): - response = exchange_query_pb.QueryGrantAuthorizationResponse( - amount="1000000000000000", - ) - exchange_servicer.grant_authorization_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - active_grant = await api.fetch_grant_authorization( - granter="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9", - grantee="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - ) - expected_grant = { - "amount": response.amount, - } - - assert active_grant == expected_grant - - @pytest.mark.asyncio - async def test_fetch_grant_authorizations( - self, - exchange_servicer, - ): - grant = exchange_pb.GrantAuthorization( - grantee="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - amount="1000000000000000", - ) - response = exchange_query_pb.QueryGrantAuthorizationsResponse( - total_grant_amount="1000000000000000", - grants=[grant], - ) - exchange_servicer.grant_authorizations_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - active_grant = await api.fetch_grant_authorizations( - granter="inj1zlh5sqevkfphtwnu9cul8p89vseme2eqt0snn9", - ) - expected_grant = { - "totalGrantAmount": response.total_grant_amount, - "grants": [ - { - "grantee": grant.grantee, - "amount": grant.amount, - }, - ], - } - - assert active_grant == expected_grant - - @pytest.mark.asyncio - async def test_fetch_l3_derivative_orderbook( - self, - exchange_servicer, - ): - bid = exchange_query_pb.TrimmedLimitOrder( - price="2000000000000000000", - quantity="1000000000000000", - order_hash="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - ) - ask = exchange_query_pb.TrimmedLimitOrder( - price="3000000000000000000", - quantity="2000000000000000", - order_hash="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe7", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000002", - ) - response = exchange_query_pb.QueryFullDerivativeOrderbookResponse( - Bids=[bid], - Asks=[ask], - ) - exchange_servicer.l3_derivative_orderbook_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - orderbook = await api.fetch_l3_derivative_orderbook( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - ) - expected_orderbook = { - "Bids": [ - { - "price": bid.price, - "quantity": bid.quantity, - "orderHash": bid.order_hash, - "subaccountId": bid.subaccount_id, - } - ], - "Asks": [ - { - "price": ask.price, - "quantity": ask.quantity, - "orderHash": ask.order_hash, - "subaccountId": ask.subaccount_id, - } - ], - } - - assert orderbook == expected_orderbook - - @pytest.mark.asyncio - async def test_fetch_l3_spot_orderbook( - self, - exchange_servicer, - ): - bid = exchange_query_pb.TrimmedLimitOrder( - price="2000000000000000000", - quantity="1000000000000000", - order_hash="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000001", - ) - ask = exchange_query_pb.TrimmedLimitOrder( - price="3000000000000000000", - quantity="2000000000000000", - order_hash="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe7", - subaccount_id="0x5303d92e49a619bb29de8fb6f59c0e7589213cc8000000000000000000000002", - ) - response = exchange_query_pb.QueryFullSpotOrderbookResponse( - Bids=[bid], - Asks=[ask], - ) - exchange_servicer.l3_spot_orderbook_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - orderbook = await api.fetch_l3_spot_orderbook( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - ) - expected_orderbook = { - "Bids": [ - { - "price": bid.price, - "quantity": bid.quantity, - "orderHash": bid.order_hash, - "subaccountId": bid.subaccount_id, - } - ], - "Asks": [ - { - "price": ask.price, - "quantity": ask.quantity, - "orderHash": ask.order_hash, - "subaccountId": ask.subaccount_id, - } - ], - } - - assert orderbook == expected_orderbook - - @pytest.mark.asyncio - async def test_fetch_market_balance( - self, - exchange_servicer, - ): - market_balance = exchange_query_pb.MarketBalance( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - balance="1000000000000000000", - ) - response = exchange_query_pb.QueryMarketBalanceResponse( - balance=market_balance, - ) - exchange_servicer.market_balance_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - market_balance_response = await api.fetch_market_balance( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6" - ) - expected_market_balance = { - "balance": { - "marketId": market_balance.market_id, - "balance": market_balance.balance, - } - } - - assert market_balance_response == expected_market_balance - - @pytest.mark.asyncio - async def test_fetch_market_balances( - self, - exchange_servicer, - ): - balance1 = exchange_query_pb.MarketBalance( - market_id="0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe", - balance="1000000000000000000", - ) - balance2 = exchange_query_pb.MarketBalance( - market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6", - balance="2000000000000000000", - ) - response = exchange_query_pb.QueryMarketBalancesResponse(balances=[balance1, balance2]) - exchange_servicer.market_balances_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - market_balances_response = await api.fetch_market_balances() - expected_market_balances = { - "balances": [ - { - "marketId": balance1.market_id, - "balance": balance1.balance, - }, - { - "marketId": balance2.market_id, - "balance": balance2.balance, - }, - ] - } - - assert market_balances_response == expected_market_balances - - @pytest.mark.asyncio - async def test_fetch_denom_min_notional( - self, - exchange_servicer, - ): - amount = "1" # Decimal as a string - response = exchange_query_pb.QueryDenomMinNotionalResponse( - amount=amount, - ) - exchange_servicer.denom_min_notional_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - denom_min_notional_response = await api.fetch_denom_min_notional( - denom="peggy0xf9152067989BDc8783fF586624124C05A529A5D1" - ) - expected_denom_min_notional = {"amount": amount} - - assert denom_min_notional_response == expected_denom_min_notional - - @pytest.mark.asyncio - async def test_fetch_denom_min_notionals( - self, - exchange_servicer, - ): - denom_min_notional = exchange_pb.DenomMinNotional( - denom="inj", - min_notional="5000000000000000000", - ) - response = exchange_query_pb.QueryDenomMinNotionalsResponse( - denom_min_notionals=[denom_min_notional], - ) - exchange_servicer.denom_min_notionals_responses.append(response) - - api = self._api_instance(servicer=exchange_servicer) - - denom_min_notionals_response = await api.fetch_denom_min_notionals() - expected_denom_min_notionals = { - "denomMinNotionals": [ - { - "denom": denom_min_notional.denom, - "minNotional": denom_min_notional.min_notional, - } - ] - } - - assert denom_min_notionals_response == expected_denom_min_notionals - - def _api_instance(self, servicer): - network = Network.devnet() - channel = grpc.aio.insecure_channel(network.grpc_endpoint) - cookie_assistant = DisabledCookieAssistant() - - api = ChainGrpcExchangeApi(channel=channel, cookie_assistant=cookie_assistant) - api._stub = servicer - - return api diff --git a/tests/client/chain/grpc/test_chain_grpc_exchange_v2_api.py b/tests/client/chain/grpc/test_chain_grpc_exchange_v2_api.py index 743955eb..2a30ee7d 100644 --- a/tests/client/chain/grpc/test_chain_grpc_exchange_v2_api.py +++ b/tests/client/chain/grpc/test_chain_grpc_exchange_v2_api.py @@ -33,10 +33,7 @@ async def test_fetch_exchange_params( derivative_market_instant_listing_fee = coin_pb.Coin(denom="inj", amount="2000000000000000000000") binary_options_market_instant_listing_fee = coin_pb.Coin(denom="inj", amount="30000000000000000000") admin = "inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr" - enforced_restrictions_contract = exchange_pb.EnforcedRestrictionsContract( - contract_address="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", - pause_event_signature="Pause(address)", - ) + white_knight_liquidators = ["inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr2"] params = exchange_pb.Params( spot_market_instant_listing_fee=spot_market_instant_listing_fee, derivative_market_instant_listing_fee=derivative_market_instant_listing_fee, @@ -72,7 +69,9 @@ async def test_fetch_exchange_params( post_only_mode_blocks_amount=2000, min_post_only_mode_downtime_duration="DURATION_10M", post_only_mode_blocks_amount_after_downtime=3000, - enforced_restrictions_contracts=[enforced_restrictions_contract], + deprecated_enforced_restrictions_contracts=[], + white_knight_liquidators=white_knight_liquidators, + white_knight_liquidator_reward_share_rate="0.050000000000000000", ) exchange_servicer.exchange_params.append(exchange_query_pb.QueryExchangeParamsResponse(params=params)) @@ -128,12 +127,9 @@ async def test_fetch_exchange_params( "postOnlyModeBlocksAmount": str(params.post_only_mode_blocks_amount), "minPostOnlyModeDowntimeDuration": params.min_post_only_mode_downtime_duration, "postOnlyModeBlocksAmountAfterDowntime": str(params.post_only_mode_blocks_amount_after_downtime), - "enforcedRestrictionsContracts": [ - { - "contractAddress": enforced_restrictions_contract.contract_address, - "pauseEventSignature": enforced_restrictions_contract.pause_event_signature, - }, - ], + "deprecatedEnforcedRestrictionsContracts": params.deprecated_enforced_restrictions_contracts, + "whiteKnightLiquidators": params.white_knight_liquidators, + "whiteKnightLiquidatorRewardShareRate": params.white_knight_liquidator_reward_share_rate, } } diff --git a/tests/client/chain/grpc/test_chain_grpc_insurance_api.py b/tests/client/chain/grpc/test_chain_grpc_insurance_api.py new file mode 100644 index 00000000..294b04e9 --- /dev/null +++ b/tests/client/chain/grpc/test_chain_grpc_insurance_api.py @@ -0,0 +1,259 @@ +import grpc +import pytest +from google.protobuf import duration_pb2, timestamp_pb2 + +from pyinjective.client.chain.grpc.chain_grpc_insurance_api import ChainGrpcInsuranceApi +from pyinjective.core.network import DisabledCookieAssistant, Network +from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as coin_pb +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as vouchers_pb +from pyinjective.proto.injective.insurance.v1beta1 import ( + genesis_pb2 as genesis_pb, + insurance_pb2 as insurance_pb, + query_pb2 as insurance_query_pb, +) +from pyinjective.proto.injective.oracle.v1beta1 import oracle_pb2 as oracle_pb +from tests.client.chain.grpc.configurable_insurance_query_servicer import ConfigurableInsuranceQueryServicer + + +@pytest.fixture +def insurance_servicer(): + return ConfigurableInsuranceQueryServicer() + + +class TestChainGrpcInsuranceApi: + @pytest.mark.asyncio + async def test_fetch_module_params(self, insurance_servicer): + dur = duration_pb2.Duration(seconds=3600) + params = insurance_pb.Params(default_redemption_notice_period_duration=dur) + insurance_servicer.insurance_params.append(insurance_query_pb.QueryInsuranceParamsResponse(params=params)) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_module_params() + + assert result == { + "params": { + "defaultRedemptionNoticePeriodDuration": "3600s", + } + } + + @pytest.mark.asyncio + async def test_fetch_insurance_fund(self, insurance_servicer): + dur = duration_pb2.Duration(seconds=3600) + fund = insurance_pb.InsuranceFund( + deposit_denom="inj", + insurance_pool_token_denom="pool", + redemption_notice_period_duration=dur, + balance="100", + total_share="50", + market_id="m1", + market_ticker="MT", + oracle_base="b", + oracle_quote="q", + oracle_type=oracle_pb.OracleType.Value("Band"), + expiry=123, + ) + insurance_servicer.insurance_fund_responses.append(insurance_query_pb.QueryInsuranceFundResponse(fund=fund)) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_insurance_fund(market_id="m1") + + assert result == { + "fund": { + "depositDenom": "inj", + "insurancePoolTokenDenom": "pool", + "redemptionNoticePeriodDuration": "3600s", + "balance": "100", + "totalShare": "50", + "marketId": "m1", + "marketTicker": "MT", + "oracleBase": "b", + "oracleQuote": "q", + "oracleType": "Band", + "expiry": "123", + } + } + + @pytest.mark.asyncio + async def test_fetch_insurance_funds(self, insurance_servicer): + dur = duration_pb2.Duration(seconds=3600) + fund = insurance_pb.InsuranceFund( + deposit_denom="inj", + insurance_pool_token_denom="pool", + redemption_notice_period_duration=dur, + balance="100", + total_share="50", + market_id="m1", + market_ticker="MT", + oracle_base="b", + oracle_quote="q", + oracle_type=oracle_pb.OracleType.Value("Band"), + expiry=123, + ) + insurance_servicer.insurance_funds_responses.append( + insurance_query_pb.QueryInsuranceFundsResponse(funds=[fund]) + ) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_insurance_funds() + + assert result == { + "funds": [ + { + "depositDenom": "inj", + "insurancePoolTokenDenom": "pool", + "redemptionNoticePeriodDuration": "3600s", + "balance": "100", + "totalShare": "50", + "marketId": "m1", + "marketTicker": "MT", + "oracleBase": "b", + "oracleQuote": "q", + "oracleType": "Band", + "expiry": "123", + } + ] + } + + @pytest.mark.asyncio + async def test_fetch_estimated_redemptions(self, insurance_servicer): + insurance_servicer.estimated_redemptions_responses.append( + insurance_query_pb.QueryEstimatedRedemptionsResponse(amount=[coin_pb.Coin(denom="inj", amount="1")]) + ) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_estimated_redemptions(market_id="m1", address="addr1") + + assert result == { + "amount": [ + { + "denom": "inj", + "amount": "1", + } + ] + } + + @pytest.mark.asyncio + async def test_fetch_pending_redemptions(self, insurance_servicer): + insurance_servicer.pending_redemptions_responses.append( + insurance_query_pb.QueryPendingRedemptionsResponse(amount=[coin_pb.Coin(denom="inj", amount="2")]) + ) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_pending_redemptions(market_id="m2", address="addr2") + + assert result == { + "amount": [ + { + "denom": "inj", + "amount": "2", + } + ] + } + + @pytest.mark.asyncio + async def test_fetch_module_state(self, insurance_servicer): + state = genesis_pb.GenesisState() + insurance_servicer.module_states.append(insurance_query_pb.QueryModuleStateResponse(state=state)) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_module_state() + + assert result == { + "state": { + "insuranceFunds": [], + "redemptionSchedule": [], + "nextShareDenomId": "0", + "nextRedemptionScheduleId": "0", + "failedRedemptionSchedules": [], + "nextFailedRedemptionScheduleId": "0", + "vouchers": [], + } + } + + @pytest.mark.asyncio + async def test_fetch_failed_redemptions(self, insurance_servicer): + ts = timestamp_pb2.Timestamp(seconds=1, nanos=0) + schedule = insurance_pb.RedemptionSchedule( + id=2, + marketId="m", + redeemer="r", + claimable_redemption_time=ts, + redemption_amount=coin_pb.Coin(denom="inj", amount="1"), + ) + failed = insurance_pb.FailedRedemptionSchedule(id=1, schedule=schedule, err="e") + insurance_servicer.failed_redemptions_responses.append( + insurance_query_pb.QueryFailedRedemptionsResponse(schedules=[failed]) + ) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_failed_redemptions() + + assert result == { + "schedules": [ + { + "id": "1", + "schedule": { + "id": "2", + "marketId": "m", + "redeemer": "r", + "claimableRedemptionTime": "1970-01-01T00:00:01Z", + "redemptionAmount": { + "denom": "inj", + "amount": "1", + }, + }, + "err": "e", + } + ] + } + + @pytest.mark.asyncio + async def test_fetch_vouchers(self, insurance_servicer): + voucher = vouchers_pb.AddressVoucher( + address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", + voucher=coin_pb.Coin(denom="inj", amount="1000000000"), + ) + insurance_servicer.vouchers_responses.append(insurance_query_pb.QueryVouchersResponse(vouchers=[voucher])) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_vouchers(denom="inj") + + assert result == { + "vouchers": [ + { + "address": voucher.address, + "voucher": { + "denom": voucher.voucher.denom, + "amount": voucher.voucher.amount, + }, + } + ] + } + + @pytest.mark.asyncio + async def test_fetch_voucher(self, insurance_servicer): + voucher = coin_pb.Coin(denom="inj", amount="1000000000") + insurance_servicer.voucher_responses.append(insurance_query_pb.QueryVoucherResponse(voucher=voucher)) + + api = self._api_instance(servicer=insurance_servicer) + result = await api.fetch_voucher( + denom="inj", + address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", + ) + + assert result == { + "voucher": { + "denom": voucher.denom, + "amount": voucher.amount, + } + } + + def _api_instance(self, servicer): + network = Network.devnet() + channel = grpc.aio.insecure_channel(network.grpc_endpoint) + cookie_assistant = DisabledCookieAssistant() + + api = ChainGrpcInsuranceApi(channel=channel, cookie_assistant=cookie_assistant) + api._stub = servicer + + return api diff --git a/tests/client/chain/grpc/test_chain_grpc_permissions_api.py b/tests/client/chain/grpc/test_chain_grpc_permissions_api.py index de047909..cb4ee320 100644 --- a/tests/client/chain/grpc/test_chain_grpc_permissions_api.py +++ b/tests/client/chain/grpc/test_chain_grpc_permissions_api.py @@ -4,6 +4,7 @@ from pyinjective.client.chain.grpc.chain_grpc_permissions_api import ChainGrpcPermissionsApi from pyinjective.core.network import DisabledCookieAssistant, Network from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as coin_pb +from pyinjective.proto.injective.common.vouchers.v1 import vouchers_pb2 as vouchers_pb from pyinjective.proto.injective.permissions.v1beta1 import ( genesis_pb2 as genesis_pb, params_pb2 as permissions_params_pb, @@ -24,9 +25,17 @@ async def test_fetch_module_params( self, permissions_servicer, ): + enforced_restrictions_evm_contract = permissions_params_pb.EnforcedRestrictionsEVMContract( + contract_address="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", + pause_event_signature="0x1234567890", + unpause_event_signature="0x1234567890", + blacklist_event_signature="0x1234567890", + unblacklist_event_signature="0x1234567890", + ) params = permissions_params_pb.Params( contract_hook_max_gas=1000000, - enforced_restrictions_contracts=["inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr"], + deprecated_enforced_restrictions_contracts=["inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr"], + enforced_restrictions_evm_contracts=[enforced_restrictions_evm_contract], ) permissions_servicer.permissions_params.append(permissions_query_pb.QueryParamsResponse(params=params)) @@ -36,7 +45,16 @@ async def test_fetch_module_params( expected_params = { "params": { "contractHookMaxGas": str(params.contract_hook_max_gas), - "enforcedRestrictionsContracts": params.enforced_restrictions_contracts, + "deprecatedEnforcedRestrictionsContracts": params.deprecated_enforced_restrictions_contracts, + "enforcedRestrictionsEvmContracts": [ + { + "contractAddress": enforced_restrictions_evm_contract.contract_address, + "pauseEventSignature": enforced_restrictions_evm_contract.pause_event_signature, + "unpauseEventSignature": enforced_restrictions_evm_contract.unpause_event_signature, + "blacklistEventSignature": enforced_restrictions_evm_contract.blacklist_event_signature, + "unblacklistEventSignature": enforced_restrictions_evm_contract.unblacklist_event_signature, + } + ], } } @@ -412,7 +430,7 @@ async def test_fetch_vouchers( self, permissions_servicer, ): - voucher = permissions_pb.AddressVoucher( + voucher = vouchers_pb.AddressVoucher( address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", voucher=coin_pb.Coin(denom="inj", amount="1000000000"), ) @@ -465,9 +483,17 @@ async def test_fetch_permissions_module_state( self, permissions_servicer, ): + enforced_restrictions_evm_contract = permissions_params_pb.EnforcedRestrictionsEVMContract( + contract_address="inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr", + pause_event_signature="0x1234567890", + unpause_event_signature="0x1234567891", + blacklist_event_signature="0x1234567892", + unblacklist_event_signature="0x1234567893", + ) params = permissions_params_pb.Params( contract_hook_max_gas=1000000, - enforced_restrictions_contracts=["inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr"], + deprecated_enforced_restrictions_contracts=["inj1knhahceyp57j5x7xh69p7utegnnnfgxavmahjr"], + enforced_restrictions_evm_contracts=[enforced_restrictions_evm_contract], ) role_permission = permissions_pb.Role( name="role1", @@ -503,7 +529,7 @@ async def test_fetch_permissions_module_state( policy_manager_capabilities=[policy_manager_capability], evm_hook="evm_hook", ) - voucher = permissions_pb.AddressVoucher( + voucher = vouchers_pb.AddressVoucher( address="inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7", voucher=coin_pb.Coin(denom="inj", amount="1000000000"), ) @@ -525,7 +551,16 @@ async def test_fetch_permissions_module_state( "state": { "params": { "contractHookMaxGas": str(params.contract_hook_max_gas), - "enforcedRestrictionsContracts": params.enforced_restrictions_contracts, + "deprecatedEnforcedRestrictionsContracts": params.deprecated_enforced_restrictions_contracts, + "enforcedRestrictionsEvmContracts": [ + { + "contractAddress": enforced_restrictions_evm_contract.contract_address, + "pauseEventSignature": enforced_restrictions_evm_contract.pause_event_signature, + "unpauseEventSignature": enforced_restrictions_evm_contract.unpause_event_signature, + "blacklistEventSignature": enforced_restrictions_evm_contract.blacklist_event_signature, + "unblacklistEventSignature": enforced_restrictions_evm_contract.unblacklist_event_signature, + } + ], }, "namespaces": [ { diff --git a/tests/client/chain/stream_grpc/test_chain_grpc_chain_stream.py b/tests/client/chain/stream_grpc/test_chain_grpc_chain_stream.py index 939ad975..04bfbae3 100644 --- a/tests/client/chain/stream_grpc/test_chain_grpc_chain_stream.py +++ b/tests/client/chain/stream_grpc/test_chain_grpc_chain_stream.py @@ -5,7 +5,6 @@ import pytest from pyinjective.client.chain.grpc_stream.chain_grpc_chain_stream import ChainGrpcChainStream -from pyinjective.composer import Composer as ComposerV1 from pyinjective.composer_v2 import Composer as ComposerV2 from pyinjective.core.network import DisabledCookieAssistant, Network from pyinjective.proto.cosmos.base.v1beta1 import coin_pb2 as coin_pb @@ -202,8 +201,6 @@ async def test_stream( ) ) - network = Network.devnet() - composer = ComposerV1(network=network.string()) api = self._api_instance(servicer=chain_stream_servicer, servicer_v2=chain_stream_v2_servicer) events = asyncio.Queue() @@ -213,16 +210,16 @@ async def test_stream( error_callback = lambda exception: pytest.fail(str(exception)) end_callback = lambda: end_event.set() - bank_balances_filter = composer.chain_stream_bank_balances_filter() - subaccount_deposits_filter = composer.chain_stream_subaccount_deposits_filter() - spot_trades_filter = composer.chain_stream_trades_filter() - derivative_trades_filter = composer.chain_stream_trades_filter() - spot_orders_filter = composer.chain_stream_orders_filter() - derivative_orders_filter = composer.chain_stream_orders_filter() - spot_orderbooks_filter = composer.chain_stream_orderbooks_filter() - derivative_orderbooks_filter = composer.chain_stream_orderbooks_filter() - positions_filter = composer.chain_stream_positions_filter() - oracle_price_filter = composer.chain_stream_oracle_price_filter() + bank_balances_filter = chain_stream_pb.BankBalancesFilter(accounts=["*"]) + subaccount_deposits_filter = chain_stream_pb.SubaccountDepositsFilter(subaccount_ids=["*"]) + spot_trades_filter = chain_stream_pb.TradesFilter(subaccount_ids=["*"], market_ids=["*"]) + derivative_trades_filter = chain_stream_pb.TradesFilter(subaccount_ids=["*"], market_ids=["*"]) + spot_orders_filter = chain_stream_pb.OrdersFilter(subaccount_ids=["*"], market_ids=["*"]) + derivative_orders_filter = chain_stream_pb.OrdersFilter(subaccount_ids=["*"], market_ids=["*"]) + spot_orderbooks_filter = chain_stream_pb.OrderbookFilter(market_ids=["*"]) + derivative_orderbooks_filter = chain_stream_pb.OrderbookFilter(market_ids=["*"]) + positions_filter = chain_stream_pb.PositionsFilter(subaccount_ids=["*"], market_ids=["*"]) + oracle_price_filter = chain_stream_pb.OraclePriceFilter(symbol=["*"]) expected_update = { "blockHeight": str(block_height), @@ -392,25 +389,26 @@ async def test_stream( ], } - asyncio.get_event_loop().create_task( - api.stream( - callback=callback, - on_end_callback=end_callback, - on_status_callback=error_callback, - bank_balances_filter=bank_balances_filter, - subaccount_deposits_filter=subaccount_deposits_filter, - spot_trades_filter=spot_trades_filter, - derivative_trades_filter=derivative_trades_filter, - spot_orders_filter=spot_orders_filter, - derivative_orders_filter=derivative_orders_filter, - spot_orderbooks_filter=spot_orderbooks_filter, - derivative_orderbooks_filter=derivative_orderbooks_filter, - positions_filter=positions_filter, - oracle_price_filter=oracle_price_filter, + with pytest.warns(DeprecationWarning, match="stream is deprecated"): + asyncio.get_event_loop().create_task( + api.stream( + callback=callback, + on_end_callback=end_callback, + on_status_callback=error_callback, + bank_balances_filter=bank_balances_filter, + subaccount_deposits_filter=subaccount_deposits_filter, + spot_trades_filter=spot_trades_filter, + derivative_trades_filter=derivative_trades_filter, + spot_orders_filter=spot_orders_filter, + derivative_orders_filter=derivative_orders_filter, + spot_orderbooks_filter=spot_orderbooks_filter, + derivative_orderbooks_filter=derivative_orderbooks_filter, + positions_filter=positions_filter, + oracle_price_filter=oracle_price_filter, + ) ) - ) - first_update = await asyncio.wait_for(events.get(), timeout=1) + first_update = await asyncio.wait_for(events.get(), timeout=1) assert first_update == expected_update assert end_event.is_set() diff --git a/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py b/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py index 4607bb78..3721dad9 100644 --- a/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py +++ b/tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py @@ -718,6 +718,7 @@ async def test_fetch_positions_v2( funding_sum="9999.123456789", cumulative_funding_entry="20000.123456789", effective_cumulative_funding_entry="30000.123456789", + upnl="10.123456789", ) paging = exchange_derivative_pb.Paging(total=5, to=5, count_by_subaccount=10, next=["next1", "next2"]) @@ -762,6 +763,7 @@ async def test_fetch_positions_v2( "fundingSum": position.funding_sum, "cumulativeFundingEntry": position.cumulative_funding_entry, "effectiveCumulativeFundingEntry": position.effective_cumulative_funding_entry, + "upnl": position.upnl, }, ], "paging": { diff --git a/tests/client/indexer/grpc/test_indexer_grpc_explorer_api.py b/tests/client/indexer/grpc/test_indexer_grpc_explorer_api.py index 6d621080..e052e5f4 100644 --- a/tests/client/indexer/grpc/test_indexer_grpc_explorer_api.py +++ b/tests/client/indexer/grpc/test_indexer_grpc_explorer_api.py @@ -537,6 +537,7 @@ async def test_fetch_block( signatures=[signature], block_unix_timestamp=1699744939364, ethereum_tx_hash_hex="0xbe8c8ca9a41196adf59b88fe9efd78e7532e04169152e779be3dc14ba7c360d9", + memo="test memo", ) block_info = exchange_explorer_pb.BlockDetailInfo( height=19034578, @@ -599,6 +600,7 @@ async def test_fetch_block( ], "blockUnixTimestamp": str(tx_data.block_unix_timestamp), "ethereumTxHashHex": tx_data.ethereum_tx_hash_hex, + "memo": tx_data.memo, } ], "timestamp": block_info.timestamp, @@ -850,6 +852,7 @@ async def test_fetch_txs( signatures=[signature], block_unix_timestamp=1699744939364, ethereum_tx_hash_hex="0xbe8c8ca9a41196adf59b88fe9efd78e7532e04169152e779be3dc14ba7c360d9", + memo="test memo", ) paging = exchange_explorer_pb.Paging(total=5, to=5, count_by_subaccount=10, next=["next1", "next2"]) @@ -904,6 +907,7 @@ async def test_fetch_txs( ], "blockUnixTimestamp": str(tx_data.block_unix_timestamp), "ethereumTxHashHex": tx_data.ethereum_tx_hash_hex, + "memo": tx_data.memo, }, ], "paging": { diff --git a/tests/client/indexer/stream_grpc/test_indexer_grpc_derivative_stream.py b/tests/client/indexer/stream_grpc/test_indexer_grpc_derivative_stream.py index 16bafa0a..a8c760a9 100644 --- a/tests/client/indexer/stream_grpc/test_indexer_grpc_derivative_stream.py +++ b/tests/client/indexer/stream_grpc/test_indexer_grpc_derivative_stream.py @@ -823,6 +823,7 @@ async def test_stream_positions_v2( funding_sum="9999.123456789", cumulative_funding_entry="20000.123456789", effective_cumulative_funding_entry="30000.123456789", + upnl="10.123456789", ) derivative_servicer.stream_positions_v2_responses.append( @@ -870,6 +871,7 @@ async def test_stream_positions_v2( "fundingSum": position.funding_sum, "cumulativeFundingEntry": position.cumulative_funding_entry, "effectiveCumulativeFundingEntry": position.effective_cumulative_funding_entry, + "upnl": position.upnl, }, "timestamp": str(timestamp), } diff --git a/tests/core/test_gas_heuristics_gas_limit_estimator.py b/tests/core/test_gas_heuristics_gas_limit_estimator.py index 5dec02dd..fb201c83 100644 --- a/tests/core/test_gas_heuristics_gas_limit_estimator.py +++ b/tests/core/test_gas_heuristics_gas_limit_estimator.py @@ -31,7 +31,7 @@ from pyinjective.core.network import Network from pyinjective.proto.cosmos.gov.v1beta1 import tx_pb2 as gov_tx_pb from pyinjective.proto.cosmwasm.wasm.v1 import tx_pb2 as wasm_tx_pb -from pyinjective.proto.injective.exchange.v1beta1 import tx_pb2 as injective_exchange_tx_pb +from pyinjective.proto.injective.exchange.v2 import tx_pb2 as injective_exchange_tx_pb from tests.model_fixtures.markets_v2_fixtures import ( # noqa: F401 btc_usdt_perp_market, first_match_bet_market, diff --git a/tests/core/test_gas_limit_estimator.py b/tests/core/test_gas_limit_estimator.py index 1912158d..0f492480 100644 --- a/tests/core/test_gas_limit_estimator.py +++ b/tests/core/test_gas_limit_estimator.py @@ -1,8 +1,5 @@ from decimal import Decimal -import pytest - -from pyinjective.composer import Composer as ComposerV1 from pyinjective.composer_v2 import Composer as ComposerV2 from pyinjective.core.gas_limit_estimator import ( DERIVATIVE_ORDER_CANCELATION_GAS_LIMIT, @@ -17,11 +14,9 @@ ExecGasLimitEstimator, GasLimitEstimator, ) -from pyinjective.core.market_v2 import BinaryOptionMarket -from pyinjective.core.network import Network from pyinjective.proto.cosmos.gov.v1beta1 import tx_pb2 as gov_tx_pb from pyinjective.proto.cosmwasm.wasm.v1 import tx_pb2 as wasm_tx_pb -from pyinjective.proto.injective.exchange.v1beta1 import tx_pb2 as injective_exchange_tx_pb +from pyinjective.proto.injective.exchange.v2 import tx_pb2 as injective_exchange_tx_pb from tests.model_fixtures.markets_v2_fixtures import ( # noqa: F401 btc_usdt_perp_market, first_match_bet_market, @@ -81,471 +76,6 @@ def test_estimation_for_governance_message(self): assert expected_gas_limit == estimator.gas_limit() -class TestGasLimitEstimatorForV1ExchangeMessages: - @pytest.fixture - def basic_composer(self, inj_usdt_spot_market, btc_usdt_perp_market, first_match_bet_market): - composer = ComposerV1( - network=Network.devnet().string(), - spot_markets={inj_usdt_spot_market.id: inj_usdt_spot_market}, - derivative_markets={btc_usdt_perp_market.id: btc_usdt_perp_market}, - binary_option_markets={first_match_bet_market.id: first_match_bet_market}, - tokens={ - inj_usdt_spot_market.base_token.symbol: inj_usdt_spot_market.base_token, - inj_usdt_spot_market.quote_token.symbol: inj_usdt_spot_market.quote_token, - btc_usdt_perp_market.quote_token.symbol: btc_usdt_perp_market.quote_token, - }, - ) - - return composer - - def test_estimation_for_batch_create_spot_limit_orders(self, basic_composer): - spot_market_id = list(basic_composer.spot_markets.keys())[0] - orders = [ - basic_composer.spot_order( - market_id=spot_market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal("5"), - quantity=Decimal("1"), - order_type="BUY", - ), - basic_composer.spot_order( - market_id=spot_market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal("4"), - quantity=Decimal("1"), - order_type="BUY", - ), - ] - message = basic_composer.msg_batch_create_spot_limit_orders(sender="sender", orders=orders) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = SPOT_ORDER_CREATION_GAS_LIMIT - expected_message_gas_limit = BatchCreateSpotLimitOrdersGasLimitEstimator.GENERAL_MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 2) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_cancel_spot_orders(self, basic_composer): - spot_market_id = list(basic_composer.spot_markets.keys())[0] - orders = [ - basic_composer.order_data_without_mask( - market_id=spot_market_id, - subaccount_id="subaccount_id", - order_hash="0x3870fbdd91f07d54425147b1bb96404f4f043ba6335b422a6d494d285b387f2d", - ), - basic_composer.order_data_without_mask( - market_id=spot_market_id, - subaccount_id="subaccount_id", - order_hash="0x222daa22f60fe9f075ed0ca583459e121c23e64431c3fbffdedda04598ede0d2", - ), - basic_composer.order_data_without_mask( - market_id=spot_market_id, - subaccount_id="subaccount_id", - order_hash="0x7ee76255d7ca763c56b0eab9828fca89fdd3739645501c8a80f58b62b4f76da5", - ), - ] - message = basic_composer.msg_batch_cancel_spot_orders(sender="sender", orders_data=orders) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = SPOT_ORDER_CANCELATION_GAS_LIMIT - expected_message_gas_limit = BatchCancelSpotOrdersGasLimitEstimator.GENERAL_MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 3) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_create_derivative_limit_orders(self, basic_composer): - market_id = list(basic_composer.derivative_markets.keys())[0] - orders = [ - basic_composer.derivative_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal(3), - quantity=Decimal(1), - margin=Decimal(3), - order_type="BUY", - ), - basic_composer.derivative_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal(20), - quantity=Decimal(1), - margin=Decimal(20), - order_type="SELL", - ), - ] - message = basic_composer.msg_batch_create_derivative_limit_orders(sender="sender", orders=orders) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = DERIVATIVE_ORDER_CREATION_GAS_LIMIT - expected_message_gas_limit = BatchCreateDerivativeLimitOrdersGasLimitEstimator.GENERAL_MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 2) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_cancel_derivative_orders(self, basic_composer): - spot_market_id = list(basic_composer.spot_markets.keys())[0] - orders = [ - basic_composer.order_data_without_mask( - market_id=spot_market_id, - subaccount_id="subaccount_id", - order_hash="0x3870fbdd91f07d54425147b1bb96404f4f043ba6335b422a6d494d285b387f2d", - ), - basic_composer.order_data_without_mask( - market_id=spot_market_id, - subaccount_id="subaccount_id", - order_hash="0x222daa22f60fe9f075ed0ca583459e121c23e64431c3fbffdedda04598ede0d2", - ), - basic_composer.order_data_without_mask( - market_id=spot_market_id, - subaccount_id="subaccount_id", - order_hash="0x7ee76255d7ca763c56b0eab9828fca89fdd3739645501c8a80f58b62b4f76da5", - ), - ] - message = basic_composer.msg_batch_cancel_derivative_orders(sender="sender", orders_data=orders) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = DERIVATIVE_ORDER_CANCELATION_GAS_LIMIT - expected_message_gas_limit = BatchCancelDerivativeOrdersGasLimitEstimator.GENERAL_MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 3) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_create_spot_orders(self, basic_composer): - market_id = list(basic_composer.spot_markets.keys())[0] - orders = [ - basic_composer.spot_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal("5"), - quantity=Decimal("1"), - order_type="BUY", - ), - basic_composer.spot_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal("4"), - quantity=Decimal("1"), - order_type="BUY", - ), - ] - message = basic_composer.msg_batch_update_orders( - sender="senders", - derivative_orders_to_create=[], - spot_orders_to_create=orders, - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = SPOT_ORDER_CREATION_GAS_LIMIT - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 2) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_create_derivative_orders(self, basic_composer): - market_id = list(basic_composer.derivative_markets.keys())[0] - orders = [ - basic_composer.derivative_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal(3), - quantity=Decimal(1), - margin=Decimal(3), - order_type="BUY", - ), - basic_composer.derivative_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal(20), - quantity=Decimal(1), - margin=Decimal(20), - order_type="SELL", - ), - ] - message = basic_composer.msg_batch_update_orders( - sender="senders", - derivative_orders_to_create=orders, - spot_orders_to_create=[], - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = DERIVATIVE_ORDER_CREATION_GAS_LIMIT - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 2) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_create_binary_orders(self, basic_composer, usdt_token): - market_id = list(basic_composer.binary_option_markets.keys())[0] - market = BinaryOptionMarket( - id=market_id, - status="active", - ticker="5fdbe0b1-1707800399-WAS", - oracle_symbol="Frontrunner", - oracle_provider="Frontrunner", - oracle_type="provider", - oracle_scale_factor=6, - expiration_timestamp=1707800399, - settlement_timestamp=1707843599, - quote_token=usdt_token, - maker_fee_rate=Decimal("0"), - taker_fee_rate=Decimal("0"), - service_provider_fee=Decimal("0.4"), - min_price_tick_size=Decimal("10000"), - min_quantity_tick_size=Decimal("1"), - min_notional=Decimal(0), - ) - basic_composer.binary_option_markets[market.id] = market - orders = [ - basic_composer.binary_options_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal(3), - quantity=Decimal(1), - margin=Decimal(3), - order_type="BUY", - ), - basic_composer.binary_options_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal(20), - quantity=Decimal(1), - margin=Decimal(20), - order_type="SELL", - ), - ] - message = basic_composer.msg_batch_update_orders( - sender="senders", - derivative_orders_to_create=[], - spot_orders_to_create=[], - binary_options_orders_to_create=orders, - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = DERIVATIVE_ORDER_CREATION_GAS_LIMIT - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 2) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_cancel_spot_orders(self, basic_composer): - market_id = list(basic_composer.spot_markets.keys())[0] - orders = [ - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x3870fbdd91f07d54425147b1bb96404f4f043ba6335b422a6d494d285b387f2d", - ), - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x222daa22f60fe9f075ed0ca583459e121c23e64431c3fbffdedda04598ede0d2", - ), - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x7ee76255d7ca763c56b0eab9828fca89fdd3739645501c8a80f58b62b4f76da5", - ), - ] - message = basic_composer.msg_batch_update_orders( - sender="senders", - derivative_orders_to_create=[], - spot_orders_to_create=[], - derivative_orders_to_cancel=[], - spot_orders_to_cancel=orders, - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = SPOT_ORDER_CANCELATION_GAS_LIMIT - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 3) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_cancel_derivative_orders(self, basic_composer): - market_id = list(basic_composer.derivative_markets.keys())[0] - orders = [ - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x3870fbdd91f07d54425147b1bb96404f4f043ba6335b422a6d494d285b387f2d", - ), - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x222daa22f60fe9f075ed0ca583459e121c23e64431c3fbffdedda04598ede0d2", - ), - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x7ee76255d7ca763c56b0eab9828fca89fdd3739645501c8a80f58b62b4f76da5", - ), - ] - message = basic_composer.msg_batch_update_orders( - sender="senders", - derivative_orders_to_create=[], - spot_orders_to_create=[], - derivative_orders_to_cancel=orders, - spot_orders_to_cancel=[], - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = DERIVATIVE_ORDER_CANCELATION_GAS_LIMIT - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 3) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_cancel_binary_orders(self, basic_composer): - market_id = list(basic_composer.binary_option_markets.keys())[0] - orders = [ - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x3870fbdd91f07d54425147b1bb96404f4f043ba6335b422a6d494d285b387f2d", - ), - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x222daa22f60fe9f075ed0ca583459e121c23e64431c3fbffdedda04598ede0d2", - ), - basic_composer.order_data_without_mask( - market_id=market_id, - subaccount_id="subaccount_id", - order_hash="0x7ee76255d7ca763c56b0eab9828fca89fdd3739645501c8a80f58b62b4f76da5", - ), - ] - message = basic_composer.msg_batch_update_orders( - sender="senders", - derivative_orders_to_create=[], - spot_orders_to_create=[], - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - binary_options_orders_to_cancel=orders, - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = DERIVATIVE_ORDER_CANCELATION_GAS_LIMIT - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert (expected_order_gas_limit * 3) + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_cancel_all_for_spot_market(self): - market_id = "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" - composer = ComposerV1(network="testnet") - - message = composer.msg_batch_update_orders( - sender="senders", - subaccount_id="subaccount_id", - spot_market_ids_to_cancel_all=[market_id], - derivative_orders_to_create=[], - spot_orders_to_create=[], - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_gas_limit = BatchUpdateOrdersGasLimitEstimator.CANCEL_ALL_SPOT_MARKET_GAS_LIMIT * 20 - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert expected_gas_limit + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_cancel_all_for_derivative_market(self): - market_id = "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" - composer = ComposerV1(network="testnet") - - message = composer.msg_batch_update_orders( - sender="senders", - subaccount_id="subaccount_id", - derivative_market_ids_to_cancel_all=[market_id], - derivative_orders_to_create=[], - spot_orders_to_create=[], - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_gas_limit = BatchUpdateOrdersGasLimitEstimator.CANCEL_ALL_DERIVATIVE_MARKET_GAS_LIMIT * 20 - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert expected_gas_limit + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_batch_update_orders_to_cancel_all_for_binary_options_market(self): - market_id = "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" - composer = ComposerV1(network="testnet") - - message = composer.msg_batch_update_orders( - sender="senders", - subaccount_id="subaccount_id", - binary_options_market_ids_to_cancel_all=[market_id], - derivative_orders_to_create=[], - spot_orders_to_create=[], - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_gas_limit = BatchUpdateOrdersGasLimitEstimator.CANCEL_ALL_DERIVATIVE_MARKET_GAS_LIMIT * 20 - expected_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - - assert expected_gas_limit + expected_message_gas_limit == estimator.gas_limit() - - def test_estimation_for_exec_message(self, basic_composer): - market_id = list(basic_composer.spot_markets.keys())[0] - orders = [ - basic_composer.spot_order( - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal("5"), - quantity=Decimal("1"), - order_type="BUY", - ), - ] - inner_message = basic_composer.msg_batch_update_orders( - sender="senders", - derivative_orders_to_create=[], - spot_orders_to_create=orders, - derivative_orders_to_cancel=[], - spot_orders_to_cancel=[], - ) - message = basic_composer.msg_exec(grantee="grantee", msgs=[inner_message]) - - estimator = GasLimitEstimator.for_message(message=message) - - expected_order_gas_limit = SPOT_ORDER_CREATION_GAS_LIMIT - expected_inner_message_gas_limit = BatchUpdateOrdersGasLimitEstimator.MESSAGE_GAS_LIMIT - expected_exec_message_gas_limit = ExecGasLimitEstimator.DEFAULT_GAS_LIMIT - - assert ( - expected_order_gas_limit + expected_inner_message_gas_limit + expected_exec_message_gas_limit - == estimator.gas_limit() - ) - - def test_estimation_for_generic_exchange_message(self, basic_composer): - market_id = list(basic_composer.spot_markets.keys())[0] - message = basic_composer.msg_create_spot_limit_order( - sender="sender", - market_id=market_id, - subaccount_id="subaccount_id", - fee_recipient="fee_recipient", - price=Decimal("7.523"), - quantity=Decimal("0.01"), - order_type="BUY", - ) - estimator = GasLimitEstimator.for_message(message=message) - - expected_gas_limit = 120_000 - - assert expected_gas_limit == estimator.gas_limit() - - class TestGasLimitEstimatorForV2ExchangeMessages: def test_estimation_for_batch_create_spot_limit_orders(self): spot_market_id = "0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe" diff --git a/tests/core/test_market.py b/tests/core/test_market.py deleted file mode 100644 index a94bf0d4..00000000 --- a/tests/core/test_market.py +++ /dev/null @@ -1,587 +0,0 @@ -from decimal import Decimal - -from pyinjective.constant import ADDITIONAL_CHAIN_FORMAT_DECIMALS -from pyinjective.core.market import BinaryOptionMarket, DerivativeMarket, SpotMarket -from pyinjective.utils.denom import Denom -from tests.model_fixtures.markets_fixtures import btc_usdt_perp_market # noqa: F401 -from tests.model_fixtures.markets_fixtures import first_match_bet_market # noqa: F401 -from tests.model_fixtures.markets_fixtures import inj_token # noqa: F401 -from tests.model_fixtures.markets_fixtures import inj_usdt_spot_market # noqa: F401 -from tests.model_fixtures.markets_fixtures import usdt_perp_token # noqa: F401 -from tests.model_fixtures.markets_fixtures import usdt_token # noqa: F401; noqa: F401 - - -class TestSpotMarket: - def test_convert_quantity_to_chain_format(self, inj_usdt_spot_market: SpotMarket): - original_quantity = Decimal("123.456789") - - chain_value = inj_usdt_spot_market.quantity_to_chain_format(human_readable_value=original_quantity) - expected_value = original_quantity * Decimal(f"1e{inj_usdt_spot_market.base_token.decimals}") - quantized_value = ( - expected_value // inj_usdt_spot_market.min_quantity_tick_size - ) * inj_usdt_spot_market.min_quantity_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_price_to_chain_format(self, inj_usdt_spot_market: SpotMarket): - original_quantity = Decimal("123.456789") - - chain_value = inj_usdt_spot_market.price_to_chain_format(human_readable_value=original_quantity) - price_decimals = inj_usdt_spot_market.quote_token.decimals - inj_usdt_spot_market.base_token.decimals - expected_value = original_quantity * Decimal(f"1e{price_decimals}") - quantized_value = ( - expected_value // inj_usdt_spot_market.min_price_tick_size - ) * inj_usdt_spot_market.min_price_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_notional_to_chain_format(self, inj_usdt_spot_market: SpotMarket): - original_notional = Decimal("123.456789") - - chain_value = inj_usdt_spot_market.notional_to_chain_format(human_readable_value=original_notional) - notional_decimals = inj_usdt_spot_market.quote_token.decimals - expected_value = original_notional * Decimal(f"1e{notional_decimals}") - expected_chain_format_value = expected_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert expected_chain_format_value == chain_value - - def test_convert_quantity_from_chain_format(self, inj_usdt_spot_market: SpotMarket): - expected_quantity = Decimal("123.456") - - chain_format_quantity = expected_quantity * Decimal(f"1e{inj_usdt_spot_market.base_token.decimals}") - human_readable_quantity = inj_usdt_spot_market.quantity_from_chain_format(chain_value=chain_format_quantity) - - assert expected_quantity == human_readable_quantity - - def test_convert_price_from_chain_format(self, inj_usdt_spot_market: SpotMarket): - expected_price = Decimal("123.456") - - price_decimals = inj_usdt_spot_market.quote_token.decimals - inj_usdt_spot_market.base_token.decimals - chain_format_price = expected_price * Decimal(f"1e{price_decimals}") - human_readable_price = inj_usdt_spot_market.price_from_chain_format(chain_value=chain_format_price) - - assert expected_price == human_readable_price - - def test_convert_notional_from_chain_format(self, inj_usdt_spot_market: SpotMarket): - expected_notional = Decimal("123.456") - - notional_decimals = inj_usdt_spot_market.quote_token.decimals - chain_format_notional = expected_notional * Decimal(f"1e{notional_decimals}") - human_readable_notional = inj_usdt_spot_market.notional_from_chain_format(chain_value=chain_format_notional) - - assert expected_notional == human_readable_notional - - def test_convert_quantity_from_extended_chain_format(self, inj_usdt_spot_market: SpotMarket): - expected_quantity = Decimal("123.456") - - chain_format_quantity = ( - expected_quantity - * Decimal(f"1e{inj_usdt_spot_market.base_token.decimals}") - * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - human_readable_quantity = inj_usdt_spot_market.quantity_from_extended_chain_format( - chain_value=chain_format_quantity - ) - - assert expected_quantity == human_readable_quantity - - def test_convert_price_from_extended_chain_format(self, inj_usdt_spot_market: SpotMarket): - expected_price = Decimal("123.456") - - price_decimals = inj_usdt_spot_market.quote_token.decimals - inj_usdt_spot_market.base_token.decimals - chain_format_price = ( - expected_price * Decimal(f"1e{price_decimals}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - human_readable_price = inj_usdt_spot_market.price_from_extended_chain_format(chain_value=chain_format_price) - - assert expected_price == human_readable_price - - def test_convert_notional_from_extended_chain_format(self, inj_usdt_spot_market: SpotMarket): - expected_notional = Decimal("123.456") - - notional_decimals = inj_usdt_spot_market.quote_token.decimals - chain_format_notional = ( - expected_notional * Decimal(f"1e{notional_decimals}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - human_readable_notional = inj_usdt_spot_market.notional_from_extended_chain_format( - chain_value=chain_format_notional - ) - - assert expected_notional == human_readable_notional - - -class TestDerivativeMarket: - def test_convert_quantity_to_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - original_quantity = Decimal("123.456789") - - chain_value = btc_usdt_perp_market.quantity_to_chain_format(human_readable_value=original_quantity) - quantized_value = ( - original_quantity // btc_usdt_perp_market.min_quantity_tick_size - ) * btc_usdt_perp_market.min_quantity_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_price_to_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - original_quantity = Decimal("123.456789") - - chain_value = btc_usdt_perp_market.price_to_chain_format(human_readable_value=original_quantity) - price_decimals = btc_usdt_perp_market.quote_token.decimals - expected_value = original_quantity * Decimal(f"1e{price_decimals}") - quantized_value = ( - expected_value // btc_usdt_perp_market.min_price_tick_size - ) * btc_usdt_perp_market.min_price_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_margin_to_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - original_quantity = Decimal("123.456789") - - chain_value = btc_usdt_perp_market.margin_to_chain_format(human_readable_value=original_quantity) - margin_decimals = btc_usdt_perp_market.quote_token.decimals - expected_value = original_quantity * Decimal(f"1e{margin_decimals}") - quantized_value = ( - expected_value // btc_usdt_perp_market.min_quantity_tick_size - ) * btc_usdt_perp_market.min_quantity_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_notional_to_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - original_notional = Decimal("123.456789") - - chain_value = btc_usdt_perp_market.notional_to_chain_format(human_readable_value=original_notional) - notional_decimals = btc_usdt_perp_market.quote_token.decimals - expected_value = original_notional * Decimal(f"1e{notional_decimals}") - expected_chain_format_value = expected_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert expected_chain_format_value == chain_value - - def test_convert_quantity_from_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_quantity = Decimal("123.456") - - chain_format_quantity = expected_quantity - human_readable_quantity = btc_usdt_perp_market.quantity_from_chain_format(chain_value=chain_format_quantity) - - assert expected_quantity == human_readable_quantity - - def test_convert_price_from_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_price = Decimal("123.456") - - price_decimals = btc_usdt_perp_market.quote_token.decimals - chain_format_price = expected_price * Decimal(f"1e{price_decimals}") - human_readable_price = btc_usdt_perp_market.price_from_chain_format(chain_value=chain_format_price) - - assert expected_price == human_readable_price - - def test_convert_margin_from_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_margin = Decimal("123.456") - - price_decimals = btc_usdt_perp_market.quote_token.decimals - chain_format_margin = expected_margin * Decimal(f"1e{price_decimals}") - human_readable_margin = btc_usdt_perp_market.margin_from_chain_format(chain_value=chain_format_margin) - - assert expected_margin == human_readable_margin - - def test_convert_notional_from_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_notional = Decimal("123.456") - - notional_decimals = btc_usdt_perp_market.quote_token.decimals - chain_format_notional = expected_notional * Decimal(f"1e{notional_decimals}") - human_readable_notional = btc_usdt_perp_market.notional_from_chain_format(chain_value=chain_format_notional) - - assert expected_notional == human_readable_notional - - def test_convert_quantity_from_extended_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_quantity = Decimal("123.456") - - chain_format_quantity = expected_quantity * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - human_readable_quantity = btc_usdt_perp_market.quantity_from_extended_chain_format( - chain_value=chain_format_quantity - ) - - assert expected_quantity == human_readable_quantity - - def test_convert_price_from_extended_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_price = Decimal("123.456") - - price_decimals = btc_usdt_perp_market.quote_token.decimals - chain_format_price = ( - expected_price * Decimal(f"1e{price_decimals}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - human_readable_price = btc_usdt_perp_market.price_from_extended_chain_format(chain_value=chain_format_price) - - assert expected_price == human_readable_price - - def test_convert_margin_from_extended_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_margin = Decimal("123.456") - - price_decimals = btc_usdt_perp_market.quote_token.decimals - chain_format_margin = ( - expected_margin * Decimal(f"1e{price_decimals}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - human_readable_margin = btc_usdt_perp_market.margin_from_extended_chain_format(chain_value=chain_format_margin) - - assert expected_margin == human_readable_margin - - def test_convert_notional_from_extended_chain_format(self, btc_usdt_perp_market: DerivativeMarket): - expected_notional = Decimal("123.456") - - notional_decimals = btc_usdt_perp_market.quote_token.decimals - chain_format_notional = ( - expected_notional * Decimal(f"1e{notional_decimals}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - human_readable_notional = btc_usdt_perp_market.notional_from_extended_chain_format( - chain_value=chain_format_notional - ) - - assert expected_notional == human_readable_notional - - -class TestBinaryOptionMarket: - def test_convert_quantity_to_chain_format_with_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_value = first_match_bet_market.quantity_to_chain_format( - human_readable_value=original_quantity, special_denom=fixed_denom - ) - chain_formatted_quantity = original_quantity * Decimal(f"1e{fixed_denom.base}") - quantized_value = (chain_formatted_quantity // Decimal(str(fixed_denom.min_quantity_tick_size))) * Decimal( - str(fixed_denom.min_quantity_tick_size) - ) - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_quantity_to_chain_format_without_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - - chain_value = first_match_bet_market.quantity_to_chain_format( - human_readable_value=original_quantity, - ) - quantized_value = ( - original_quantity // first_match_bet_market.min_quantity_tick_size - ) * first_match_bet_market.min_quantity_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_price_to_chain_format_with_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_value = first_match_bet_market.price_to_chain_format( - human_readable_value=original_quantity, - special_denom=fixed_denom, - ) - price_decimals = fixed_denom.quote - expected_value = original_quantity * Decimal(f"1e{price_decimals}") - quantized_value = (expected_value // Decimal(str(fixed_denom.min_price_tick_size))) * Decimal( - str(fixed_denom.min_price_tick_size) - ) - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_price_to_chain_format_without_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - - chain_value = first_match_bet_market.price_to_chain_format(human_readable_value=original_quantity) - price_decimals = first_match_bet_market.quote_token.decimals - expected_value = original_quantity * Decimal(f"1e{price_decimals}") - quantized_value = ( - expected_value // first_match_bet_market.min_price_tick_size - ) * first_match_bet_market.min_price_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_margin_to_chain_format_with_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_value = first_match_bet_market.margin_to_chain_format( - human_readable_value=original_quantity, - special_denom=fixed_denom, - ) - price_decimals = fixed_denom.quote - expected_value = original_quantity * Decimal(f"1e{price_decimals}") - quantized_value = (expected_value // Decimal(str(fixed_denom.min_quantity_tick_size))) * Decimal( - str(fixed_denom.min_quantity_tick_size) - ) - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_convert_margin_to_chain_format_without_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - - chain_value = first_match_bet_market.margin_to_chain_format(human_readable_value=original_quantity) - price_decimals = first_match_bet_market.quote_token.decimals - expected_value = original_quantity * Decimal(f"1e{price_decimals}") - quantized_value = ( - expected_value // first_match_bet_market.min_quantity_tick_size - ) * first_match_bet_market.min_quantity_tick_size - quantized_chain_format_value = quantized_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_value == chain_value - - def test_calculate_margin_for_buy_with_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - original_price = Decimal("0.6789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_value = first_match_bet_market.calculate_margin_in_chain_format( - human_readable_quantity=original_quantity, - human_readable_price=original_price, - is_buy=True, - special_denom=fixed_denom, - ) - - quantity_decimals = fixed_denom.base - price_decimals = fixed_denom.quote - expected_quantity = original_quantity * Decimal(f"1e{quantity_decimals}") - expected_price = original_price * Decimal(f"1e{price_decimals}") - expected_margin = expected_quantity * expected_price - quantized_margin = (expected_margin // Decimal(str(fixed_denom.min_quantity_tick_size))) * Decimal( - str(fixed_denom.min_quantity_tick_size) - ) - quantized_chain_format_margin = quantized_margin * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_margin == chain_value - - def test_calculate_margin_for_buy_without_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - original_price = Decimal("0.6789") - - chain_value = first_match_bet_market.calculate_margin_in_chain_format( - human_readable_quantity=original_quantity, - human_readable_price=original_price, - is_buy=True, - ) - - price_decimals = first_match_bet_market.quote_token.decimals - expected_price = original_price * Decimal(f"1e{price_decimals}") - expected_margin = original_quantity * expected_price - quantized_margin = (expected_margin // Decimal(str(first_match_bet_market.min_quantity_tick_size))) * Decimal( - str(first_match_bet_market.min_quantity_tick_size) - ) - quantized_chain_format_margin = quantized_margin * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_margin == chain_value - - def test_calculate_margin_for_sell_without_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - original_price = Decimal("0.6789") - - chain_value = first_match_bet_market.calculate_margin_in_chain_format( - human_readable_quantity=original_quantity, - human_readable_price=original_price, - is_buy=False, - ) - - price_decimals = first_match_bet_market.quote_token.decimals - expected_price = (Decimal(1) - original_price) * Decimal(f"1e{price_decimals}") - expected_margin = original_quantity * expected_price - quantized_margin = (expected_margin // Decimal(str(first_match_bet_market.min_quantity_tick_size))) * Decimal( - str(first_match_bet_market.min_quantity_tick_size) - ) - quantized_chain_format_margin = quantized_margin * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert quantized_chain_format_margin == chain_value - - def test_convert_notional_to_chain_format(self, first_match_bet_market: BinaryOptionMarket): - original_notional = Decimal("123.456789") - - chain_value = first_match_bet_market.notional_to_chain_format(human_readable_value=original_notional) - notional_decimals = first_match_bet_market.quote_token.decimals - expected_value = original_notional * Decimal(f"1e{notional_decimals}") - expected_chain_format_value = expected_value * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - assert expected_chain_format_value == chain_value - - def test_convert_quantity_from_chain_format_with_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_formatted_quantity = original_quantity * Decimal(f"1e{fixed_denom.base}") - - human_readable_quantity = first_match_bet_market.quantity_from_chain_format( - chain_value=chain_formatted_quantity, special_denom=fixed_denom - ) - - assert original_quantity == human_readable_quantity - - def test_convert_quantity_from_chain_format_without_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_quantity = Decimal("123.456789") - - chain_formatted_quantity = original_quantity - - human_readable_quantity = first_match_bet_market.quantity_from_chain_format( - chain_value=chain_formatted_quantity - ) - - assert original_quantity == human_readable_quantity - - def test_convert_price_from_chain_format_with_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_price = Decimal("123.456789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_formatted_price = original_price * Decimal(f"1e{fixed_denom.quote}") - - human_readable_price = first_match_bet_market.price_from_chain_format( - chain_value=chain_formatted_price, special_denom=fixed_denom - ) - - assert original_price == human_readable_price - - def test_convert_price_from_chain_format_without_fixed_denom(self, first_match_bet_market: BinaryOptionMarket): - original_price = Decimal("123.456789") - chain_formatted_price = original_price * Decimal(f"1e{first_match_bet_market.quote_token.decimals}") - - human_readable_price = first_match_bet_market.price_from_chain_format(chain_value=chain_formatted_price) - - assert original_price == human_readable_price - - def test_convert_notional_from_chain_format(self, first_match_bet_market: BinaryOptionMarket): - expected_notional = Decimal("123.456") - - notional_decimals = first_match_bet_market.quote_token.decimals - chain_format_notional = expected_notional * Decimal(f"1e{notional_decimals}") - human_readable_notional = first_match_bet_market.notional_from_chain_format(chain_value=chain_format_notional) - - assert expected_notional == human_readable_notional - - def test_convert_quantity_from_extended_chain_format_with_fixed_denom( - self, first_match_bet_market: BinaryOptionMarket - ): - original_quantity = Decimal("123.456789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_formatted_quantity = ( - original_quantity * Decimal(f"1e{fixed_denom.base}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - - human_readable_quantity = first_match_bet_market.quantity_from_extended_chain_format( - chain_value=chain_formatted_quantity, special_denom=fixed_denom - ) - - assert original_quantity == human_readable_quantity - - def test_convert_quantity_from_extended_chain_format_without_fixed_denom( - self, first_match_bet_market: BinaryOptionMarket - ): - original_quantity = Decimal("123.456789") - - chain_formatted_quantity = original_quantity * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - human_readable_quantity = first_match_bet_market.quantity_from_extended_chain_format( - chain_value=chain_formatted_quantity - ) - - assert original_quantity == human_readable_quantity - - def test_convert_price_from_extended_chain_format_with_fixed_denom( - self, first_match_bet_market: BinaryOptionMarket - ): - original_price = Decimal("123.456789") - fixed_denom = Denom( - description="Fixed denom", - base=2, - quote=4, - min_quantity_tick_size=100, - min_price_tick_size=10000, - min_notional=0, - ) - - chain_formatted_price = ( - original_price * Decimal(f"1e{fixed_denom.quote}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - - human_readable_price = first_match_bet_market.price_from_extended_chain_format( - chain_value=chain_formatted_price, special_denom=fixed_denom - ) - - assert original_price == human_readable_price - - def test_convert_price_from_extended_chain_format_without_fixed_denom( - self, first_match_bet_market: BinaryOptionMarket - ): - original_price = Decimal("123.456789") - chain_formatted_price = ( - original_price - * Decimal(f"1e{first_match_bet_market.quote_token.decimals}") - * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - - human_readable_price = first_match_bet_market.price_from_extended_chain_format( - chain_value=chain_formatted_price - ) - - assert original_price == human_readable_price - - def test_convert_notional_from_extended_chain_format(self, first_match_bet_market: BinaryOptionMarket): - expected_notional = Decimal("123.456") - - notional_decimals = first_match_bet_market.quote_token.decimals - chain_format_notional = ( - expected_notional * Decimal(f"1e{notional_decimals}") * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - ) - human_readable_notional = first_match_bet_market.notional_from_extended_chain_format( - chain_value=chain_format_notional - ) - - assert expected_notional == human_readable_notional diff --git a/tests/core/test_message_based_transaction_fee_calculator.py b/tests/core/test_message_based_transaction_fee_calculator.py index 970391b6..e20730bb 100644 --- a/tests/core/test_message_based_transaction_fee_calculator.py +++ b/tests/core/test_message_based_transaction_fee_calculator.py @@ -16,7 +16,7 @@ from pyinjective.core.network import Network from pyinjective.proto.cosmos.gov.v1beta1 import tx_pb2 as gov_tx_pb2 from pyinjective.proto.cosmwasm.wasm.v1 import tx_pb2 as wasm_tx_pb2 -from pyinjective.proto.injective.exchange.v1beta1 import tx_pb2 +from pyinjective.proto.injective.exchange.v2 import tx_pb2 class TestMessageBasedTransactionFeeCalculator: diff --git a/tests/model_fixtures/markets_fixtures.py b/tests/model_fixtures/markets_fixtures.py deleted file mode 100644 index 3436ad18..00000000 --- a/tests/model_fixtures/markets_fixtures.py +++ /dev/null @@ -1,75 +0,0 @@ -from decimal import Decimal - -import pytest - -from pyinjective.core.market import BinaryOptionMarket, DerivativeMarket, SpotMarket -from tests.model_fixtures.markets_v2_fixtures import inj_token # noqa: F401 -from tests.model_fixtures.markets_v2_fixtures import usdt_perp_token # noqa: F401 -from tests.model_fixtures.markets_v2_fixtures import usdt_token # noqa: F401; noqa: F401 - - -@pytest.fixture -def inj_usdt_spot_market(inj_token, usdt_token): - market = SpotMarket( - id="0x7a57e705bb4e09c88aecfc295569481dbf2fe1d5efe364651fbe72385938e9b0", - status="active", - ticker="INJ/USDT", - base_token=inj_token, - quote_token=usdt_token, - maker_fee_rate=Decimal("-0.0001"), - taker_fee_rate=Decimal("0.001"), - service_provider_fee=Decimal("0.4"), - min_price_tick_size=Decimal("0.000000000000001"), - min_quantity_tick_size=Decimal("1000000000000000"), - min_notional=Decimal("0.000000000001"), - ) - - return market - - -@pytest.fixture -def btc_usdt_perp_market(usdt_perp_token): - market = DerivativeMarket( - id="0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce", - status="active", - ticker="BTC/USDT PERP", - oracle_base="BTC", - oracle_quote=usdt_perp_token.symbol, - oracle_type="bandibc", - oracle_scale_factor=6, - initial_margin_ratio=Decimal("0.095"), - maintenance_margin_ratio=Decimal("0.025"), - quote_token=usdt_perp_token, - maker_fee_rate=Decimal("-0.0001"), - taker_fee_rate=Decimal("0.001"), - service_provider_fee=Decimal("0.4"), - min_price_tick_size=Decimal("1000000"), - min_quantity_tick_size=Decimal("0.0001"), - min_notional=Decimal("0.000001"), - ) - - return market - - -@pytest.fixture -def first_match_bet_market(usdt_token): - market = BinaryOptionMarket( - id="0x230dcce315364ff6360097838701b14713e2f4007d704df20ed3d81d09eec957", - status="active", - ticker="5fdbe0b1-1707800399-WAS", - oracle_symbol="Frontrunner", - oracle_provider="Frontrunner", - oracle_type="provider", - oracle_scale_factor=6, - expiration_timestamp=1707800399, - settlement_timestamp=1707843599, - quote_token=usdt_token, - maker_fee_rate=Decimal("0"), - taker_fee_rate=Decimal("0"), - service_provider_fee=Decimal("0.4"), - min_price_tick_size=Decimal("10000"), - min_quantity_tick_size=Decimal("1"), - min_notional=Decimal("0.000001"), - ) - - return market diff --git a/tests/test_async_client_deprecation_warnings.py b/tests/test_async_client_deprecation_warnings.py deleted file mode 100644 index c17481fe..00000000 --- a/tests/test_async_client_deprecation_warnings.py +++ /dev/null @@ -1,57 +0,0 @@ -import warnings -from unittest.mock import MagicMock, patch - -from pyinjective.core.network import Network - - -class TestAsyncClientDeprecationWarnings: - @patch("pyinjective.async_client.asyncio.get_event_loop") - @patch("pyinjective.async_client.ChainGrpcChainStream") - @patch("pyinjective.async_client.ChainGrpcExchangeApi") - @patch("pyinjective.async_client.ChainGrpcDistributionApi") - @patch("pyinjective.async_client.ChainGrpcAuthZApi") - @patch("pyinjective.async_client.ChainGrpcAuthApi") - @patch("pyinjective.async_client.ChainGrpcBankApi") - @patch("pyinjective.async_client.IndexerClient") - def test_async_client_deprecation_warning(self, *mocks): - """Test that creating an AsyncClient instance raises a deprecation warning with correct details.""" - # Create a mock network to avoid actual network initialization - mock_network = MagicMock(spec=Network) - mock_network.chain_cookie_assistant = MagicMock() - mock_network.create_chain_grpc_channel = MagicMock() - mock_network.create_chain_stream_grpc_channel = MagicMock() - mock_network.official_tokens_list_url = "https://example.com/tokens.json" - - # Import here to avoid early import issues - from pyinjective.async_client import AsyncClient - - # Capture warnings - with warnings.catch_warnings(record=True) as warning_list: - warnings.simplefilter("always") # Ensure all warnings are captured - - # Create AsyncClient instance - this should trigger the deprecation warning - client = AsyncClient(network=mock_network) - - # Find the AsyncClient deprecation warning - async_client_warnings = [ - w - for w in warning_list - if issubclass(w.category, DeprecationWarning) - and "AsyncClient from pyinjective.async_client is deprecated" in str(w.message) - ] - - # Should have exactly one warning - assert len(async_client_warnings) == 1 - - warning = async_client_warnings[0] - # Check warning message contains migration advice - assert "Please use AsyncClient from pyinjective.async_client_v2 instead" in str(warning.message) - # Check warning category - assert warning.category == DeprecationWarning - # Check stacklevel is working correctly (should point to this test file) - assert "test_async_client_deprecation_warnings.py" in warning.filename - - # Verify the client was still created successfully - assert client is not None - assert hasattr(client, "network") - assert client.network == mock_network diff --git a/tests/test_async_client_v2_deprecation_warnings.py b/tests/test_async_client_v2_deprecation_warnings.py deleted file mode 100644 index d8e81997..00000000 --- a/tests/test_async_client_v2_deprecation_warnings.py +++ /dev/null @@ -1,84 +0,0 @@ -import warnings - -import pytest - -from pyinjective.async_client_v2 import AsyncClient -from pyinjective.core.network import Network -from pyinjective.proto.injective.exchange.v2 import exchange_pb2 as exchange_pb, query_pb2 as exchange_query_pb -from tests.client.chain.grpc.configurable_exchange_v2_query_servicer import ConfigurableExchangeV2QueryServicer - - -@pytest.fixture -def exchange_servicer(): - return ConfigurableExchangeV2QueryServicer() - - -class TestAsyncClientV2DeprecationWarnings: - @pytest.mark.asyncio - async def test_fetch_denom_decimal_deprecation_warning(self, exchange_servicer): - decimal = 18 - exchange_servicer.auction_exchange_transfer_denom_decimal_responses.append( - exchange_query_pb.QueryAuctionExchangeTransferDenomDecimalResponse( - decimal=decimal, - ) - ) - - client = AsyncClient( - network=Network.local(), - ) - client.chain_exchange_v2_api._stub = exchange_servicer - - with warnings.catch_warnings(record=True) as all_warnings: - warnings.simplefilter("always") - result = await client.fetch_denom_decimal(denom="inj") - - # Verify the method still works correctly - assert result == {"decimal": str(decimal)} - - # Verify deprecation warning was issued - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert ( - str(deprecation_warnings[0].message) - == "This method is deprecated. Use fetch_auction_exchange_transfer_denom_decimal instead" - ) - - @pytest.mark.asyncio - async def test_fetch_denom_decimals_deprecation_warning(self, exchange_servicer): - denom_decimal = exchange_pb.DenomDecimals( - denom="inj", - decimals=18, - ) - exchange_servicer.auction_exchange_transfer_denom_decimals_responses.append( - exchange_query_pb.QueryAuctionExchangeTransferDenomDecimalsResponse( - denom_decimals=[denom_decimal], - ) - ) - - client = AsyncClient( - network=Network.local(), - ) - client.chain_exchange_v2_api._stub = exchange_servicer - - with warnings.catch_warnings(record=True) as all_warnings: - warnings.simplefilter("always") - result = await client.fetch_denom_decimals(denoms=["inj"]) - - # Verify the method still works correctly - expected_result = { - "denomDecimals": [ - { - "denom": denom_decimal.denom, - "decimals": str(denom_decimal.decimals), - } - ] - } - assert result == expected_result - - # Verify deprecation warning was issued - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert ( - str(deprecation_warnings[0].message) - == "This method is deprecated. Use fetch_auction_exchange_transfer_denom_decimals instead" - ) diff --git a/tests/test_composer.py b/tests/test_composer.py deleted file mode 100644 index 154b4516..00000000 --- a/tests/test_composer.py +++ /dev/null @@ -1,1923 +0,0 @@ -import json -from decimal import Decimal - -import pytest -from google.protobuf import json_format - -from pyinjective.composer import Composer -from pyinjective.constant import ADDITIONAL_CHAIN_FORMAT_DECIMALS, INJ_DECIMALS -from pyinjective.core.network import Network -from pyinjective.proto.injective.permissions.v1beta1 import permissions_pb2 as permissions_pb -from tests.model_fixtures.markets_fixtures import ( # noqa: F401 - btc_usdt_perp_market, - first_match_bet_market, - inj_token, - inj_usdt_spot_market, - usdt_perp_token, - usdt_token, -) - - -class TestComposer: - @pytest.fixture - def inj_usdt_market_id(self): - return "0xa508cb32923323679f29a032c70342c147c17d0145625922b0ef22e955c844c0" - - @pytest.fixture - def basic_composer(self, inj_usdt_spot_market, btc_usdt_perp_market, first_match_bet_market): - composer = Composer( - network=Network.devnet().string(), - spot_markets={inj_usdt_spot_market.id: inj_usdt_spot_market}, - derivative_markets={btc_usdt_perp_market.id: btc_usdt_perp_market}, - binary_option_markets={first_match_bet_market.id: first_match_bet_market}, - tokens={ - inj_usdt_spot_market.base_token.symbol: inj_usdt_spot_market.base_token, - inj_usdt_spot_market.quote_token.symbol: inj_usdt_spot_market.quote_token, - btc_usdt_perp_market.quote_token.symbol: btc_usdt_perp_market.quote_token, - }, - ) - - return composer - - def test_msg_create_denom(self, basic_composer: Composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subdenom = "inj-test" - name = "Injective Test" - symbol = "INJTEST" - decimals = 18 - allow_admin_burn = True - - message = basic_composer.msg_create_denom( - sender=sender, - subdenom=subdenom, - name=name, - symbol=symbol, - decimals=decimals, - allow_admin_burn=allow_admin_burn, - ) - - expected_message = { - "sender": sender, - "subdenom": subdenom, - "name": name, - "symbol": symbol, - "decimals": decimals, - "allowAdminBurn": allow_admin_burn, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - - assert dict_message == expected_message - - def test_msg_mint(self, basic_composer: Composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - amount = basic_composer.coin( - amount=1_000_000, - denom="factory/inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r/inj_test", - ) - receiver = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - - message = basic_composer.msg_mint( - sender=sender, - amount=amount, - receiver=receiver, - ) - - expected_message = { - "sender": sender, - "amount": { - "amount": str(amount.amount), - "denom": amount.denom, - }, - "receiver": receiver, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - - assert dict_message == expected_message - - def test_msg_burn(self, basic_composer: Composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - amount = basic_composer.coin( - amount=100, - denom="factory/inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r/inj_test", - ) - burn_from_address = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - - message = basic_composer.msg_burn( - sender=sender, - amount=amount, - burn_from_address=burn_from_address, - ) - - expected_message = { - "sender": sender, - "amount": { - "amount": str(amount.amount), - "denom": amount.denom, - }, - "burnFromAddress": burn_from_address, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - - assert dict_message == expected_message - - def test_msg_set_denom_metadata(self, basic_composer: Composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - description = "Injective Test Token" - subdenom = "inj_test" - denom = "factory/inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r/inj_test" - token_decimals = 6 - name = "Injective Test" - symbol = "INJTEST" - uri = "http://injective-test.com/icon.jpg" - uri_hash = "" - - message = basic_composer.msg_set_denom_metadata( - sender=sender, - description=description, - denom=denom, - subdenom=subdenom, - token_decimals=token_decimals, - name=name, - symbol=symbol, - uri=uri, - uri_hash=uri_hash, - ) - - expected_message = { - "sender": sender, - "metadata": { - "base": denom, - "denomUnits": [ - { - "denom": denom, - "exponent": 0, - "aliases": [f"micro{subdenom}"], - }, - { - "denom": subdenom, - "exponent": token_decimals, - "aliases": [subdenom], - }, - ], - "description": description, - "name": name, - "symbol": symbol, - "display": subdenom, - "uri": uri, - "uriHash": uri_hash, - "decimals": token_decimals, - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - - assert dict_message == expected_message - - def test_msg_change_admin(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - denom = "factory/inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r/inj_test" - new_admin = "inj1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqe2hm49" - - message = basic_composer.msg_change_admin( - sender=sender, - denom=denom, - new_admin=new_admin, - ) - - expected_message = { - "sender": sender, - "denom": denom, - "newAdmin": new_admin, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - - assert dict_message == expected_message - - def test_msg_execute_contract_compat(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - contract = "inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7" - msg = json.dumps({"increment": {}}) - funds = "100inj,420peggy0x44C21afAaF20c270EBbF5914Cfc3b5022173FEB7" - - message = basic_composer.msg_execute_contract_compat( - sender=sender, - contract=contract, - msg=msg, - funds=funds, - ) - - expected_message = { - "sender": sender, - "contract": contract, - "msg": msg, - "funds": funds, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - - assert dict_message == expected_message - - def test_msg_deposit(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - amount = Decimal(100) - denom = "INJ" - - token = basic_composer.tokens[denom] - - expected_amount = token.chain_formatted_value(human_readable_value=Decimal(amount)) - - message = basic_composer.msg_deposit( - sender=sender, - subaccount_id=subaccount_id, - amount=amount, - denom=denom, - ) - - expected_message = { - "sender": sender, - "subaccountId": subaccount_id, - "amount": { - "amount": f"{expected_amount.normalize():f}", - "denom": token.denom, - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_withdraw(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - amount = Decimal(100) - denom = "INJ" - - token = basic_composer.tokens[denom] - - expected_amount = token.chain_formatted_value(human_readable_value=Decimal(amount)) - - message = basic_composer.msg_withdraw( - sender=sender, - subaccount_id=subaccount_id, - amount=amount, - denom=denom, - ) - - expected_message = { - "sender": sender, - "subaccountId": subaccount_id, - "amount": { - "amount": f"{expected_amount.normalize():f}", - "denom": token.denom, - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_instant_spot_market_launch(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - ticker = "INJ/USDT" - base_denom = "INJ" - quote_denom = "USDT" - min_price_tick_size = Decimal("0.01") - min_quantity_tick_size = Decimal("1") - min_notional = Decimal("2") - base_decimals = 18 - quote_decimals = 6 - - base_token = basic_composer.tokens[base_denom] - quote_token = basic_composer.tokens[quote_denom] - - expected_min_price_tick_size = min_price_tick_size * Decimal( - f"1e{quote_token.decimals - base_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - expected_min_quantity_tick_size = min_quantity_tick_size * Decimal( - f"1e{base_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - expected_min_notional = min_notional * Decimal(f"1e{quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - message = basic_composer.msg_instant_spot_market_launch( - sender=sender, - ticker=ticker, - base_denom=base_denom, - quote_denom=quote_denom, - min_price_tick_size=min_price_tick_size, - min_quantity_tick_size=min_quantity_tick_size, - min_notional=min_notional, - base_decimals=base_decimals, - quote_decimals=quote_decimals, - ) - - expected_message = { - "sender": sender, - "ticker": ticker, - "baseDenom": base_token.denom, - "quoteDenom": quote_token.denom, - "minPriceTickSize": f"{expected_min_price_tick_size.normalize():f}", - "minQuantityTickSize": f"{expected_min_quantity_tick_size.normalize():f}", - "minNotional": f"{expected_min_notional.normalize():f}", - "baseDecimals": base_decimals, - "quoteDecimals": quote_decimals, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_spot_order(self, basic_composer): - spot_market = list(basic_composer.spot_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - price = Decimal("36.1") - quantity = Decimal("100") - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - order = basic_composer.spot_order( - market_id=spot_market.id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = spot_market.price_to_chain_format(human_readable_value=price) - expected_quantity = spot_market.quantity_to_chain_format(human_readable_value=quantity) - expected_trigger_price = spot_market.price_to_chain_format(human_readable_value=trigger_price) - - expected_order = { - "marketId": spot_market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "orderType": order_type, - "triggerPrice": f"{expected_trigger_price.normalize():f}", - } - dict_message = json_format.MessageToDict( - message=order, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_order - - def test_derivative_order(self, basic_composer): - derivative_market = list(basic_composer.derivative_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - price = Decimal("36.1") - quantity = Decimal("100") - margin = price * quantity - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - order = basic_composer.derivative_order( - market_id=derivative_market.id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = derivative_market.price_to_chain_format(human_readable_value=price) - expected_quantity = derivative_market.quantity_to_chain_format(human_readable_value=quantity) - expected_margin = derivative_market.margin_to_chain_format(human_readable_value=margin) - expected_trigger_price = derivative_market.price_to_chain_format(human_readable_value=trigger_price) - - expected_order = { - "marketId": derivative_market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "orderType": order_type, - "margin": f"{expected_margin.normalize():f}", - "triggerPrice": f"{expected_trigger_price.normalize():f}", - } - dict_message = json_format.MessageToDict( - message=order, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_order - - def test_msg_create_spot_limit_order(self, basic_composer): - spot_market = list(basic_composer.spot_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - message = basic_composer.msg_create_spot_limit_order( - market_id=spot_market.id, - sender=sender, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = spot_market.price_to_chain_format(human_readable_value=price) - expected_quantity = spot_market.quantity_to_chain_format(human_readable_value=quantity) - expected_trigger_price = spot_market.price_to_chain_format(human_readable_value=trigger_price) - - assert "injective.exchange.v1beta1.MsgCreateSpotLimitOrder" == message.DESCRIPTOR.full_name - expected_message = { - "sender": sender, - "order": { - "marketId": spot_market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "orderType": order_type, - "triggerPrice": f"{expected_trigger_price.normalize():f}", - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_batch_create_spot_limit_orders(self, basic_composer): - spot_market = list(basic_composer.spot_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - order = basic_composer.spot_order( - market_id=spot_market.id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - message = basic_composer.msg_batch_create_spot_limit_orders( - sender=sender, - orders=[order], - ) - - expected_message = { - "sender": sender, - "orders": [json_format.MessageToDict(message=order, always_print_fields_with_no_presence=True)], - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_create_spot_market_order(self, basic_composer): - spot_market = list(basic_composer.spot_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - message = basic_composer.msg_create_spot_market_order( - market_id=spot_market.id, - sender=sender, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = spot_market.price_to_chain_format(human_readable_value=price) - expected_quantity = spot_market.quantity_to_chain_format(human_readable_value=quantity) - expected_trigger_price = spot_market.price_to_chain_format(human_readable_value=trigger_price) - - assert "injective.exchange.v1beta1.MsgCreateSpotMarketOrder" == message.DESCRIPTOR.full_name - expected_message = { - "sender": sender, - "order": { - "marketId": spot_market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "orderType": order_type, - "triggerPrice": f"{expected_trigger_price.normalize():f}", - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_cancel_spot_order(self, basic_composer): - spot_market = list(basic_composer.spot_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - order_hash = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - cid = "test_cid" - - message = basic_composer.msg_cancel_spot_order( - market_id=spot_market.id, - sender=sender, - subaccount_id=subaccount_id, - order_hash=order_hash, - cid=cid, - ) - - expected_message = { - "sender": sender, - "marketId": spot_market.id, - "subaccountId": subaccount_id, - "orderHash": order_hash, - "cid": cid, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_batch_cancel_spot_orders(self, basic_composer): - spot_market = list(basic_composer.spot_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - - order_data = basic_composer.order_data( - market_id=spot_market.id, - subaccount_id=subaccount_id, - order_hash="0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000", - ) - - message = basic_composer.msg_batch_cancel_spot_orders( - sender=sender, - orders_data=[order_data], - ) - - assert "injective.exchange.v1beta1.MsgBatchCancelSpotOrders" == message.DESCRIPTOR.full_name - expected_message = { - "sender": sender, - "data": [json_format.MessageToDict(message=order_data, always_print_fields_with_no_presence=True)], - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_batch_update_orders(self, basic_composer): - spot_market = list(basic_composer.spot_markets.values())[0] - derivative_market = list(basic_composer.derivative_markets.values())[0] - binary_options_market = list(basic_composer.binary_option_markets.values())[0] - - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - spot_market_id = spot_market.id - derivative_market_id = derivative_market.id - binary_options_market_id = binary_options_market.id - spot_order_to_cancel = basic_composer.order_data( - market_id=spot_market_id, - subaccount_id=subaccount_id, - order_hash="0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000", - ) - derivative_order_to_cancel = basic_composer.order_data( - market_id=derivative_market_id, - subaccount_id=subaccount_id, - order_hash="0x222daa22f60fe9f075ed0ca583459e121c23e64431c3fbffdedda04598ede0d2", - ) - binary_options_order_to_cancel = basic_composer.order_data( - market_id=binary_options_market_id, - subaccount_id=subaccount_id, - order_hash="0x7ee76255d7ca763c56b0eab9828fca89fdd3739645501c8a80f58b62b4f76da5", - ) - spot_order_to_create = basic_composer.spot_order( - market_id=spot_market_id, - subaccount_id=subaccount_id, - fee_recipient="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - price=Decimal("36.1"), - quantity=Decimal("100"), - order_type="BUY", - cid="test_cid", - trigger_price=Decimal("43.5"), - ) - derivative_order_to_create = basic_composer.derivative_order( - market_id=derivative_market_id, - subaccount_id=subaccount_id, - fee_recipient="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - price=Decimal("36.1"), - quantity=Decimal("100"), - margin=Decimal("36.1") * Decimal("100"), - order_type="BUY", - ) - binary_options_order_to_create = basic_composer.binary_options_order( - market_id=binary_options_market_id, - subaccount_id=subaccount_id, - fee_recipient="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - price=Decimal("36.1"), - quantity=Decimal("100"), - margin=Decimal("36.1") * Decimal("100"), - order_type="BUY", - ) - - message = basic_composer.msg_batch_update_orders( - sender=sender, - subaccount_id=subaccount_id, - spot_market_ids_to_cancel_all=[spot_market_id], - derivative_market_ids_to_cancel_all=[derivative_market_id], - spot_orders_to_cancel=[spot_order_to_cancel], - derivative_orders_to_cancel=[derivative_order_to_cancel], - spot_orders_to_create=[spot_order_to_create], - derivative_orders_to_create=[derivative_order_to_create], - binary_options_orders_to_cancel=[binary_options_order_to_cancel], - binary_options_market_ids_to_cancel_all=[binary_options_market_id], - binary_options_orders_to_create=[binary_options_order_to_create], - ) - - expected_message = { - "sender": sender, - "subaccountId": subaccount_id, - "spotMarketIdsToCancelAll": [spot_market_id], - "derivativeMarketIdsToCancelAll": [derivative_market_id], - "spotOrdersToCancel": [ - json_format.MessageToDict(message=spot_order_to_cancel, always_print_fields_with_no_presence=True) - ], - "derivativeOrdersToCancel": [ - json_format.MessageToDict(message=derivative_order_to_cancel, always_print_fields_with_no_presence=True) - ], - "spotOrdersToCreate": [ - json_format.MessageToDict(message=spot_order_to_create, always_print_fields_with_no_presence=True) - ], - "derivativeOrdersToCreate": [ - json_format.MessageToDict(message=derivative_order_to_create, always_print_fields_with_no_presence=True) - ], - "binaryOptionsOrdersToCancel": [ - json_format.MessageToDict( - message=binary_options_order_to_cancel, always_print_fields_with_no_presence=True - ) - ], - "binaryOptionsMarketIdsToCancelAll": [binary_options_market_id], - "binaryOptionsOrdersToCreate": [ - json_format.MessageToDict( - message=binary_options_order_to_create, always_print_fields_with_no_presence=True - ) - ], - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_privileged_execute_contract(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - contract_address = "inj1ady3s7whq30l4fx8sj3x6muv5mx4dfdlcpv8n7" - data = "test_data" - funds = "100inj,420peggy0x44C21afAaF20c270EBbF5914Cfc3b5022173FEB7" - - message = basic_composer.msg_privileged_execute_contract( - sender=sender, - contract_address=contract_address, - data=data, - funds=funds, - ) - - expected_message = { - "sender": sender, - "funds": funds, - "contractAddress": contract_address, - "data": data, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_create_derivative_limit_order(self, basic_composer): - derivative_market = list(basic_composer.derivative_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - margin = price * quantity - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - message = basic_composer.msg_create_derivative_limit_order( - market_id=derivative_market.id, - sender=sender, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = derivative_market.price_to_chain_format(human_readable_value=price) - expected_quantity = derivative_market.quantity_to_chain_format(human_readable_value=quantity) - expected_margin = derivative_market.margin_to_chain_format(human_readable_value=margin) - expected_trigger_price = derivative_market.price_to_chain_format(human_readable_value=trigger_price) - - expected_message = { - "sender": sender, - "order": { - "marketId": derivative_market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "margin": f"{expected_margin.normalize():f}", - "orderType": order_type, - "triggerPrice": f"{expected_trigger_price.normalize():f}", - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_batch_create_derivative_limit_orders(self, basic_composer): - derivative_market = list(basic_composer.derivative_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - order = basic_composer.derivative_order( - market_id=derivative_market.id, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=price * quantity, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - message = basic_composer.msg_batch_create_derivative_limit_orders( - sender=sender, - orders=[order], - ) - - expected_message = { - "sender": sender, - "orders": [json_format.MessageToDict(message=order, always_print_fields_with_no_presence=True)], - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_create_derivative_market_order(self, basic_composer): - derivative_market = list(basic_composer.derivative_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - margin = price * quantity - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - message = basic_composer.msg_create_derivative_market_order( - market_id=derivative_market.id, - sender=sender, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = derivative_market.price_to_chain_format(human_readable_value=price) - expected_quantity = derivative_market.quantity_to_chain_format(human_readable_value=quantity) - expected_margin = derivative_market.margin_to_chain_format(human_readable_value=margin) - expected_trigger_price = derivative_market.price_to_chain_format(human_readable_value=trigger_price) - - expected_message = { - "sender": sender, - "order": { - "marketId": derivative_market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "margin": f"{expected_margin.normalize():f}", - "orderType": order_type, - "triggerPrice": f"{expected_trigger_price.normalize():f}", - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_cancel_derivative_order(self, basic_composer): - derivative_market = list(basic_composer.derivative_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - order_hash = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - cid = "test_cid" - is_conditional = False - is_buy = True - is_market_order = False - - expected_order_mask = basic_composer._order_mask( - is_conditional=is_conditional, - is_buy=is_buy, - is_market_order=is_market_order, - ) - - message = basic_composer.msg_cancel_derivative_order( - market_id=derivative_market.id, - sender=sender, - subaccount_id=subaccount_id, - order_hash=order_hash, - cid=cid, - is_conditional=is_conditional, - is_buy=is_buy, - is_market_order=is_market_order, - ) - - expected_message = { - "sender": sender, - "marketId": derivative_market.id, - "subaccountId": subaccount_id, - "orderHash": order_hash, - "orderMask": expected_order_mask, - "cid": cid, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_batch_cancel_derivative_orders(self, basic_composer): - derivative_market = list(basic_composer.derivative_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - - order_data = basic_composer.order_data( - market_id=derivative_market.id, - subaccount_id=subaccount_id, - order_hash="0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000", - ) - - message = basic_composer.msg_batch_cancel_derivative_orders( - sender=sender, - orders_data=[order_data], - ) - - expected_message = { - "sender": sender, - "data": [json_format.MessageToDict(message=order_data, always_print_fields_with_no_presence=True)], - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_instant_binary_options_market_launch(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - ticker = "B2500/INJ" - oracle_symbol = "B2500_1/INJ" - oracle_provider = "Injective" - oracle_scale_factor = 6 - oracle_type = "Band" - quote_denom = "INJ" - min_price_tick_size = Decimal("0.01") - min_quantity_tick_size = Decimal("1") - maker_fee_rate = Decimal("0.001") - taker_fee_rate = Decimal("-0.002") - expiration_timestamp = 1630000000 - settlement_timestamp = 1660000000 - admin = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - min_notional = Decimal("2") - - quote_token = basic_composer.tokens[quote_denom] - - expected_min_price_tick_size = min_price_tick_size * Decimal( - f"1e{quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - expected_min_quantity_tick_size = min_quantity_tick_size * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - expected_maker_fee_rate = maker_fee_rate * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - expected_taker_fee_rate = taker_fee_rate * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - expected_min_notional = min_notional * Decimal(f"1e{quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - message = basic_composer.msg_instant_binary_options_market_launch( - sender=sender, - ticker=ticker, - oracle_symbol=oracle_symbol, - oracle_provider=oracle_provider, - oracle_type=oracle_type, - oracle_scale_factor=oracle_scale_factor, - maker_fee_rate=maker_fee_rate, - taker_fee_rate=taker_fee_rate, - expiration_timestamp=expiration_timestamp, - settlement_timestamp=settlement_timestamp, - admin=admin, - quote_denom=quote_denom, - min_price_tick_size=min_price_tick_size, - min_quantity_tick_size=min_quantity_tick_size, - min_notional=min_notional, - ) - - expected_message = { - "sender": sender, - "ticker": ticker, - "oracleSymbol": oracle_symbol, - "oracleProvider": oracle_provider, - "oracleType": oracle_type, - "oracleScaleFactor": oracle_scale_factor, - "makerFeeRate": f"{expected_maker_fee_rate.normalize():f}", - "takerFeeRate": f"{expected_taker_fee_rate.normalize():f}", - "expirationTimestamp": str(expiration_timestamp), - "settlementTimestamp": str(settlement_timestamp), - "admin": admin, - "quoteDenom": quote_token.denom, - "minPriceTickSize": f"{expected_min_price_tick_size.normalize():f}", - "minQuantityTickSize": f"{expected_min_quantity_tick_size.normalize():f}", - "minNotional": f"{expected_min_notional.normalize():f}", - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_create_binary_options_limit_order(self, basic_composer): - market = list(basic_composer.binary_option_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - margin = price * quantity - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - message = basic_composer.msg_create_binary_options_limit_order( - market_id=market.id, - sender=sender, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = market.price_to_chain_format(human_readable_value=price) - expected_quantity = market.quantity_to_chain_format(human_readable_value=quantity) - expected_margin = market.margin_to_chain_format(human_readable_value=margin) - expected_trigger_price = market.price_to_chain_format(human_readable_value=trigger_price) - - expected_message = { - "sender": sender, - "order": { - "marketId": market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "margin": f"{expected_margin.normalize():f}", - "orderType": order_type, - "triggerPrice": f"{expected_trigger_price.normalize():f}", - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_create_binary_options_market_order(self, basic_composer): - market = list(basic_composer.binary_option_markets.values())[0] - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - price = Decimal("36.1") - quantity = Decimal("100") - margin = price * quantity - order_type = "BUY" - cid = "test_cid" - trigger_price = Decimal("43.5") - - message = basic_composer.msg_create_binary_options_market_order( - market_id=market.id, - sender=sender, - subaccount_id=subaccount_id, - fee_recipient=fee_recipient, - price=price, - quantity=quantity, - margin=margin, - order_type=order_type, - cid=cid, - trigger_price=trigger_price, - ) - - expected_price = market.price_to_chain_format(human_readable_value=price) - expected_quantity = market.quantity_to_chain_format(human_readable_value=quantity) - expected_margin = market.margin_to_chain_format(human_readable_value=margin) - expected_trigger_price = market.price_to_chain_format(human_readable_value=trigger_price) - - expected_message = { - "sender": sender, - "order": { - "marketId": market.id, - "orderInfo": { - "subaccountId": subaccount_id, - "feeRecipient": fee_recipient, - "price": f"{expected_price.normalize():f}", - "quantity": f"{expected_quantity.normalize():f}", - "cid": cid, - }, - "margin": f"{expected_margin.normalize():f}", - "orderType": order_type, - "triggerPrice": f"{expected_trigger_price.normalize():f}", - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_cancel_derivative_order(self, basic_composer): - market = list(basic_composer.binary_option_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subaccount_id = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - order_hash = "0x5e249f0e8cb406f41de16e1bd6f6b55e7bc75add000000000000000000000000" - cid = "test_cid" - is_conditional = False - is_buy = True - is_market_order = False - - expected_order_mask = basic_composer._order_mask( - is_conditional=is_conditional, - is_buy=is_buy, - is_market_order=is_market_order, - ) - - message = basic_composer.msg_cancel_derivative_order( - market_id=market.id, - sender=sender, - subaccount_id=subaccount_id, - order_hash=order_hash, - cid=cid, - is_conditional=is_conditional, - is_buy=is_buy, - is_market_order=is_market_order, - ) - - expected_message = { - "sender": sender, - "marketId": market.id, - "subaccountId": subaccount_id, - "orderHash": order_hash, - "orderMask": expected_order_mask, - "cid": cid, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_subaccount_transfer(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - source_subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - destination_subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000002" - amount = Decimal(100) - denom = "INJ" - - token = basic_composer.tokens[denom] - - expected_amount = token.chain_formatted_value(human_readable_value=amount) - - message = basic_composer.msg_subaccount_transfer( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - amount=amount, - denom=denom, - ) - - expected_message = { - "sender": sender, - "sourceSubaccountId": source_subaccount_id, - "destinationSubaccountId": destination_subaccount_id, - "amount": { - "amount": f"{expected_amount.normalize():f}", - "denom": token.denom, - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_external_transfer(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - source_subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - destination_subaccount_id = "0xc6fe5d33615a1c52c08018c47e8bc53646a0e101000000000000000000000000" - amount = Decimal(100) - denom = "INJ" - - token = basic_composer.tokens[denom] - - expected_amount = token.chain_formatted_value(human_readable_value=amount) - - message = basic_composer.msg_subaccount_transfer( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - amount=amount, - denom=denom, - ) - - expected_message = { - "sender": sender, - "sourceSubaccountId": source_subaccount_id, - "destinationSubaccountId": destination_subaccount_id, - "amount": { - "amount": f"{expected_amount.normalize():f}", - "denom": token.denom, - }, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_liquidate_position(self, basic_composer): - market = list(basic_composer.derivative_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - order = basic_composer.derivative_order( - market_id=market.id, - subaccount_id=subaccount_id, - fee_recipient="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - price=Decimal("36.1"), - quantity=Decimal("100"), - margin=Decimal("36.1") * Decimal("100"), - order_type="BUY", - ) - - message = basic_composer.msg_liquidate_position( - sender=sender, - subaccount_id=subaccount_id, - market_id=market.id, - order=order, - ) - - expected_message = { - "sender": sender, - "subaccountId": subaccount_id, - "marketId": market.id, - "order": json_format.MessageToDict(message=order, always_print_fields_with_no_presence=True), - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_emergency_settle_market(self, basic_composer): - market = list(basic_composer.derivative_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - - message = basic_composer.msg_emergency_settle_market( - sender=sender, - subaccount_id=subaccount_id, - market_id=market.id, - ) - - expected_message = { - "sender": sender, - "subaccountId": subaccount_id, - "marketId": market.id, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_increase_position_margin(self, basic_composer): - market = list(basic_composer.derivative_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - source_subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - destination_subaccount_id = "0xc6fe5d33615a1c52c08018c47e8bc53646a0e101000000000000000000000000" - amount = Decimal(100) - - expected_amount = market.margin_to_chain_format(human_readable_value=amount) - - message = basic_composer.msg_increase_position_margin( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - market_id=market.id, - amount=amount, - ) - - expected_message = { - "sender": sender, - "sourceSubaccountId": source_subaccount_id, - "destinationSubaccountId": destination_subaccount_id, - "marketId": market.id, - "amount": f"{expected_amount.normalize():f}", - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_decrease_position_margin(self, basic_composer): - market = list(basic_composer.derivative_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - source_subaccount_id = "0x893f2abf8034627e50cbc63923120b1122503ce0000000000000000000000001" - destination_subaccount_id = "0xc6fe5d33615a1c52c08018c47e8bc53646a0e101000000000000000000000000" - amount = Decimal(100) - - expected_amount = market.margin_to_chain_format(human_readable_value=amount) - - message = basic_composer.msg_decrease_position_margin( - sender=sender, - source_subaccount_id=source_subaccount_id, - destination_subaccount_id=destination_subaccount_id, - market_id=market.id, - amount=amount, - ) - - expected_message = { - "sender": sender, - "sourceSubaccountId": source_subaccount_id, - "destinationSubaccountId": destination_subaccount_id, - "marketId": market.id, - "amount": f"{expected_amount.normalize():f}", - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_rewards_opt_out(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - - message = basic_composer.msg_rewards_opt_out( - sender=sender, - ) - - expected_message = { - "sender": sender, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_admin_update_binary_options_market(self, basic_composer): - market = list(basic_composer.binary_option_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - status = "Paused" - settlement_price = Decimal("100.5") - expiration_timestamp = 1630000000 - settlement_timestamp = 1660000000 - - expected_settlement_price = market.price_to_chain_format(human_readable_value=settlement_price) - - message = basic_composer.msg_admin_update_binary_options_market( - sender=sender, - market_id=market.id, - status=status, - settlement_price=settlement_price, - expiration_timestamp=expiration_timestamp, - settlement_timestamp=settlement_timestamp, - ) - - expected_message = { - "sender": sender, - "marketId": market.id, - "settlementPrice": f"{expected_settlement_price.normalize():f}", - "expirationTimestamp": str(expiration_timestamp), - "settlementTimestamp": str(settlement_timestamp), - "status": status, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_update_spot_market(self, basic_composer): - market = list(basic_composer.spot_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - new_ticker = "NEW/TICKER" - min_price_tick_size = Decimal("0.0009") - min_quantity_tick_size = Decimal("10") - min_notional = Decimal("5") - - expected_min_price_tick_size = min_price_tick_size * Decimal( - f"1e{market.quote_token.decimals - market.base_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - expected_min_quantity_tick_size = min_quantity_tick_size * Decimal( - f"1e{market.base_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - expected_min_notional = min_notional * Decimal( - f"1e{market.quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - - message = basic_composer.msg_update_spot_market( - admin=sender, - market_id=market.id, - new_ticker=new_ticker, - new_min_price_tick_size=min_price_tick_size, - new_min_quantity_tick_size=min_quantity_tick_size, - new_min_notional=min_notional, - ) - - expected_message = { - "admin": sender, - "marketId": market.id, - "newTicker": new_ticker, - "newMinPriceTickSize": f"{expected_min_price_tick_size.normalize():f}", - "newMinQuantityTickSize": f"{expected_min_quantity_tick_size.normalize():f}", - "newMinNotional": f"{expected_min_notional.normalize():f}", - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_update_derivative_market(self, basic_composer): - market = list(basic_composer.derivative_markets.values())[0] - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - new_ticker = "NEW/TICKER" - min_price_tick_size = Decimal("0.0009") - min_quantity_tick_size = Decimal("10") - min_notional = Decimal("5") - initial_margin_ratio = Decimal("0.05") - maintenance_margin_ratio = Decimal("0.009") - - expected_min_price_tick_size = min_price_tick_size * Decimal( - f"1e{market.quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - expected_min_quantity_tick_size = min_quantity_tick_size * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - expected_min_notional = min_notional * Decimal( - f"1e{market.quote_token.decimals + ADDITIONAL_CHAIN_FORMAT_DECIMALS}" - ) - expected_initial_margin_ratio = initial_margin_ratio * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - expected_maintenance_margin_ratio = maintenance_margin_ratio * Decimal(f"1e{ADDITIONAL_CHAIN_FORMAT_DECIMALS}") - - message = basic_composer.msg_update_derivative_market( - admin=sender, - market_id=market.id, - new_ticker=new_ticker, - new_min_price_tick_size=min_price_tick_size, - new_min_quantity_tick_size=min_quantity_tick_size, - new_min_notional=min_notional, - new_initial_margin_ratio=initial_margin_ratio, - new_maintenance_margin_ratio=maintenance_margin_ratio, - ) - - expected_message = { - "admin": sender, - "marketId": market.id, - "newTicker": new_ticker, - "newMinPriceTickSize": f"{expected_min_price_tick_size.normalize():f}", - "newMinQuantityTickSize": f"{expected_min_quantity_tick_size.normalize():f}", - "newMinNotional": f"{expected_min_notional.normalize():f}", - "newInitialMarginRatio": f"{expected_initial_margin_ratio.normalize():f}", - "newMaintenanceMarginRatio": f"{expected_maintenance_margin_ratio.normalize():f}", - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_authorize_stake_grants(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - amount = Decimal("100") - grant_authorization = basic_composer.create_grant_authorization( - grantee="inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r", - amount=amount, - ) - - message = basic_composer.msg_authorize_stake_grants( - sender=sender, - grants=[grant_authorization], - ) - - expected_amount = amount * Decimal(f"1e{INJ_DECIMALS}") - expected_message = { - "sender": sender, - "grants": [ - { - "grantee": grant_authorization.grantee, - "amount": str(int(expected_amount)), - } - ], - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_activate_stake_grant(self, basic_composer): - sender = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - granter = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - - message = basic_composer.msg_activate_stake_grant( - sender=sender, - granter=granter, - ) - - expected_message = { - "sender": sender, - "granter": granter, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_ibc_transfer(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - source_port = "transfer" - source_channel = "channel-126" - token_amount = basic_composer.create_coin_amount(amount=Decimal("0.1"), token_name="INJ") - receiver = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" - timeout_height = 10 - timeout_timestamp = 1630000000 - memo = "memo" - - message = basic_composer.msg_ibc_transfer( - source_port=source_port, - source_channel=source_channel, - token_amount=token_amount, - sender=sender, - receiver=receiver, - timeout_height=timeout_height, - timeout_timestamp=timeout_timestamp, - memo=memo, - ) - - expected_message = { - "sourcePort": source_port, - "sourceChannel": source_channel, - "token": { - "amount": "100000000000000000", - "denom": "inj", - }, - "sender": sender, - "receiver": receiver, - "timeoutHeight": {"revisionNumber": str(timeout_height), "revisionHeight": str(timeout_height)}, - "timeoutTimestamp": str(timeout_timestamp), - "memo": memo, - } - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_create_namespace(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - denom = "inj" - wasm_hook = "wasmhook" - evm_hook = "evmhook" - permissions_role1 = basic_composer.permissions_role( - name="role1", - role_id=1, - permissions=5, - ) - permissions_role2 = basic_composer.permissions_role( - name="role2", - role_id=2, - permissions=6, - ) - actor_roles1 = basic_composer.permissions_actor_roles( - actor="actor1", - roles=["role1"], - ) - actor_roles2 = basic_composer.permissions_actor_roles( - actor="actor2", - roles=["role2"], - ) - role_manager1 = basic_composer.permissions_role_manager( - manager="manager1", - roles=["role1"], - ) - role_manager2 = basic_composer.permissions_role_manager( - manager="manager2", - roles=["role2"], - ) - policy_status1 = basic_composer.permissions_policy_status( - action=basic_composer.PERMISSIONS_ACTION["MINT"], - is_disabled=False, - is_sealed=True, - ) - policy_status2 = basic_composer.permissions_policy_status( - action=basic_composer.PERMISSIONS_ACTION["SEND"] | basic_composer.PERMISSIONS_ACTION["BURN"], - is_disabled=True, - is_sealed=False, - ) - policy_manager_capability1 = basic_composer.permissions_policy_manager_capability( - manager="manager1", - action=basic_composer.PERMISSIONS_ACTION["MINT"], - can_disable=False, - can_seal=True, - ) - policy_manager_capability2 = basic_composer.permissions_policy_manager_capability( - manager="manager2", - action=basic_composer.PERMISSIONS_ACTION["SEND"] | basic_composer.PERMISSIONS_ACTION["BURN"], - can_disable=True, - can_seal=False, - ) - - message = basic_composer.msg_create_namespace( - sender=sender, - denom=denom, - wasm_hook=wasm_hook, - role_permissions=[permissions_role1, permissions_role2], - actor_roles=[actor_roles1, actor_roles2], - role_managers=[role_manager1, role_manager2], - policy_statuses=[policy_status1, policy_status2], - policy_manager_capabilities=[policy_manager_capability1, policy_manager_capability2], - evm_hook=evm_hook, - ) - - expected_message = { - "sender": sender, - "namespace": { - "denom": denom, - "wasmHook": wasm_hook, - "rolePermissions": [ - { - "name": permissions_role1.name, - "roleId": permissions_role1.role_id, - "permissions": permissions_role1.permissions, - }, - { - "name": permissions_role2.name, - "roleId": permissions_role2.role_id, - "permissions": permissions_role2.permissions, - }, - ], - "actorRoles": [ - { - "actor": actor_roles1.actor, - "roles": actor_roles1.roles, - }, - { - "actor": actor_roles2.actor, - "roles": actor_roles2.roles, - }, - ], - "roleManagers": [ - { - "manager": role_manager1.manager, - "roles": role_manager1.roles, - }, - { - "manager": role_manager2.manager, - "roles": role_manager2.roles, - }, - ], - "policyStatuses": [ - { - "action": permissions_pb.Action.Name(policy_status1.action), - "isDisabled": policy_status1.is_disabled, - "isSealed": policy_status1.is_sealed, - }, - { - "action": policy_status2.action, - "isDisabled": policy_status2.is_disabled, - "isSealed": policy_status2.is_sealed, - }, - ], - "policyManagerCapabilities": [ - { - "manager": policy_manager_capability1.manager, - "action": permissions_pb.Action.Name(policy_manager_capability1.action), - "canDisable": policy_manager_capability1.can_disable, - "canSeal": policy_manager_capability1.can_seal, - }, - { - "manager": policy_manager_capability2.manager, - "action": policy_manager_capability2.action, - "canDisable": policy_manager_capability2.can_disable, - "canSeal": policy_manager_capability2.can_seal, - }, - ], - "evmHook": evm_hook, - }, - } - - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_update_namespace(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - denom = "inj" - wasm_hook = "wasmhook" - evm_hook = "evmhook" - permissions_role1 = basic_composer.permissions_role( - name="role1", - role_id=1, - permissions=5, - ) - permissions_role2 = basic_composer.permissions_role( - name="role2", - role_id=2, - permissions=6, - ) - role_manager1 = basic_composer.permissions_role_manager( - manager="manager1", - roles=["role1"], - ) - role_manager2 = basic_composer.permissions_role_manager( - manager="manager2", - roles=["role2"], - ) - policy_status1 = basic_composer.permissions_policy_status( - action=basic_composer.PERMISSIONS_ACTION["MINT"], - is_disabled=False, - is_sealed=True, - ) - policy_status2 = basic_composer.permissions_policy_status( - action=basic_composer.PERMISSIONS_ACTION["SEND"] | basic_composer.PERMISSIONS_ACTION["BURN"], - is_disabled=True, - is_sealed=False, - ) - policy_manager_capability1 = basic_composer.permissions_policy_manager_capability( - manager="manager1", - action=basic_composer.PERMISSIONS_ACTION["MINT"], - can_disable=False, - can_seal=True, - ) - policy_manager_capability2 = basic_composer.permissions_policy_manager_capability( - manager="manager2", - action=basic_composer.PERMISSIONS_ACTION["SEND"] | basic_composer.PERMISSIONS_ACTION["BURN"], - can_disable=True, - can_seal=False, - ) - - message = basic_composer.msg_update_namespace( - sender=sender, - denom=denom, - wasm_hook=wasm_hook, - role_permissions=[permissions_role1, permissions_role2], - role_managers=[role_manager1, role_manager2], - policy_statuses=[policy_status1, policy_status2], - policy_manager_capabilities=[policy_manager_capability1, policy_manager_capability2], - evm_hook=evm_hook, - ) - - expected_message = { - "sender": sender, - "denom": denom, - "wasmHook": { - "newValue": wasm_hook, - }, - "rolePermissions": [ - { - "name": permissions_role1.name, - "roleId": permissions_role1.role_id, - "permissions": permissions_role1.permissions, - }, - { - "name": permissions_role2.name, - "roleId": permissions_role2.role_id, - "permissions": permissions_role2.permissions, - }, - ], - "roleManagers": [ - { - "manager": role_manager1.manager, - "roles": role_manager1.roles, - }, - { - "manager": role_manager2.manager, - "roles": role_manager2.roles, - }, - ], - "policyStatuses": [ - { - "action": permissions_pb.Action.Name(policy_status1.action), - "isDisabled": policy_status1.is_disabled, - "isSealed": policy_status1.is_sealed, - }, - { - "action": policy_status2.action, - "isDisabled": policy_status2.is_disabled, - "isSealed": policy_status2.is_sealed, - }, - ], - "policyManagerCapabilities": [ - { - "manager": policy_manager_capability1.manager, - "action": permissions_pb.Action.Name(policy_manager_capability1.action), - "canDisable": policy_manager_capability1.can_disable, - "canSeal": policy_manager_capability1.can_seal, - }, - { - "manager": policy_manager_capability2.manager, - "action": policy_manager_capability2.action, - "canDisable": policy_manager_capability2.can_disable, - "canSeal": policy_manager_capability2.can_seal, - }, - ], - "evmHook": { - "newValue": evm_hook, - }, - } - - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_update_actor_roles(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - denom = "inj" - role_actors1 = basic_composer.permissions_role_actors( - role="role1", - actors=["actor1"], - ) - role_actors2 = basic_composer.permissions_role_actors( - role="role2", - actors=["actor2"], - ) - role_actors3 = basic_composer.permissions_role_actors( - role="role3", - actors=["actor3"], - ) - role_actors4 = basic_composer.permissions_role_actors( - role="role4", - actors=["actor4"], - ) - - message = basic_composer.msg_update_actor_roles( - sender=sender, - denom=denom, - role_actors_to_add=[role_actors1, role_actors2], - role_actors_to_revoke=[role_actors3, role_actors4], - ) - - expected_message = { - "sender": sender, - "denom": denom, - "roleActorsToAdd": [ - { - "role": role_actors1.role, - "actors": role_actors1.actors, - }, - { - "role": role_actors2.role, - "actors": role_actors2.actors, - }, - ], - "roleActorsToRevoke": [ - { - "role": role_actors3.role, - "actors": role_actors3.actors, - }, - { - "role": role_actors4.role, - "actors": role_actors4.actors, - }, - ], - } - - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message - - def test_msg_claim_voucher(self, basic_composer): - sender = "inj1apmvarl2xyv6kecx2ukkeymddw3we4zkygjyc0" - denom = "inj" - message = basic_composer.msg_claim_voucher( - sender=sender, - denom=denom, - ) - - expected_message = { - "sender": sender, - "denom": denom, - } - - dict_message = json_format.MessageToDict( - message=message, - always_print_fields_with_no_presence=True, - ) - assert dict_message == expected_message diff --git a/tests/test_composer_deprecation_warnings.py b/tests/test_composer_deprecation_warnings.py deleted file mode 100644 index a5c0c5e8..00000000 --- a/tests/test_composer_deprecation_warnings.py +++ /dev/null @@ -1,237 +0,0 @@ -import warnings - -import pytest - -from pyinjective.composer import Composer as ComposerV1 -from pyinjective.core.network import Network -from tests.model_fixtures.markets_fixtures import ( # noqa: F401 - btc_usdt_perp_market, - first_match_bet_market, - inj_token, - inj_usdt_spot_market, - usdt_perp_token, - usdt_token, -) - - -class TestComposerDeprecationWarnings: - @pytest.fixture - def basic_v1_composer(self, inj_usdt_spot_market, btc_usdt_perp_market, first_match_bet_market): - composer = ComposerV1( - network=Network.devnet().string(), - spot_markets={inj_usdt_spot_market.id: inj_usdt_spot_market}, - derivative_markets={btc_usdt_perp_market.id: btc_usdt_perp_market}, - binary_option_markets={first_match_bet_market.id: first_match_bet_market}, - tokens={ - inj_usdt_spot_market.base_token.symbol: inj_usdt_spot_market.base_token, - inj_usdt_spot_market.quote_token.symbol: inj_usdt_spot_market.quote_token, - btc_usdt_perp_market.quote_token.symbol: btc_usdt_perp_market.quote_token, - }, - ) - - return composer - - def test_composer_v1_msg_bid_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgBid(sender="sender", bid_amount=1.1, round=2) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_bid instead" - - def test_composer_v1_msg_grant_generic_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgGrantGeneric(granter="granter", grantee="grantee", msg_type="type", expire_in=1000) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_grant_generic instead" - - def test_composer_v1_msg_exec_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgExec(grantee="grantee", msgs=[]) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_exec instead" - - def test_composer_v1_msg_revoke_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgRevoke(granter="granter", grantee="grantee", msg_type="type") - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_revoke instead" - - def test_composer_v1_msg_send_deprecation_warning(self, basic_v1_composer, inj_usdt_spot_market): - composer = basic_v1_composer - denom = list(composer.tokens.keys())[0] - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgSend(from_address="from_address", to_address="to_address", amount=1, denom=denom) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_send instead" - - def test_composer_v1_msg_create_insurance_fund_warning(self, basic_v1_composer, usdt_perp_token): - composer = basic_v1_composer - denom = usdt_perp_token.symbol - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgCreateInsuranceFund( - sender="sender", - ticker="ticker", - quote_denom=denom, - oracle_base="oracle_base", - oracle_quote="oracle_quote", - oracle_type=1, - expiry=1, - initial_deposit=1000, - ) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert ( - str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_create_insurance_fund instead" - ) - - def test_composer_v1_msg_underwrite_deprecation_warning(self, basic_v1_composer, inj_usdt_spot_market): - composer = basic_v1_composer - denom = list(composer.tokens.keys())[0] - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgUnderwrite(sender="sender", market_id="market_id", quote_denom=denom, amount=1000) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_underwrite instead" - - def test_composer_v1_msg_request_redemption_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgRequestRedemption( - sender="sender", market_id="market_id", share_denom="share_denom", amount=1000 - ) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_request_redemption instead" - - def test_composer_v1_msg_relay_provider_prices_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgRelayProviderPrices(sender="sender", provider="provider", symbols=["symbol"], prices=[1000]) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert ( - str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_relay_provider_prices instead" - ) - - def test_composer_v1_msg_relay_price_feed_price_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgRelayPriceFeedPrice(sender="sender", base=["base"], quote=["quote"], price=["1000"]) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert ( - str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_relay_price_feed_price instead" - ) - - def test_composer_v1_msg_send_to_eth_deprecation_warning(self, basic_v1_composer, usdt_token): - composer = basic_v1_composer - denom = usdt_token.symbol - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgSendToEth(denom=denom, sender="sender", eth_dest="eth_dest", amount=1000, bridge_fee=1000) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_send_to_eth instead" - - def test_composer_v1_msg_delegate_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgDelegate( - delegator_address="delegator_address", validator_address="validator_address", amount=1000 - ) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_delegate instead" - - def test_composer_v1_msg_instantiate_contract_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgInstantiateContract( - sender="sender", admin="admin", code_id=1, label="label", message=b"message" - ) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_instantiate_contract instead" - - def test_composer_v1_msg_execute_contract_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgExecuteContract(sender="sender", contract="contract", msg="msg") - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_execute_contract instead" - - def test_composer_v1_msg_grant_typed_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgGrantTyped( - granter="granter", - grantee="grantee", - msg_type="CreateSpotLimitOrderAuthz", - expire_in=1000, - subaccount_id="subaccount_id", - market_ids=["market_id"], - spot_markets=["spot_market_id"], - derivative_markets=["derivative_market_id"], - ) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_grant_typed instead" - - def test_composer_v1_msg_vote_deprecation_warning(self): - composer = ComposerV1(network=Network.devnet().string()) - - with warnings.catch_warnings(record=True) as all_warnings: - composer.MsgVote(proposal_id=100, voter="voter", option=1) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == "This method is deprecated. Use msg_vote instead" - - def test_composer_v1_constructor_deprecation_warning(self): - with warnings.catch_warnings(record=True) as all_warnings: - ComposerV1(network=Network.devnet().string()) - - deprecation_warnings = [warning for warning in all_warnings if issubclass(warning.category, DeprecationWarning)] - assert len(deprecation_warnings) == 1 - assert str(deprecation_warnings[0].message) == ( - "Composer from pyinjective.composer is deprecated. " - + "Please use Composer from pyinjective.composer_v2 instead." - )