Skip to content

Commit 0ad254c

Browse files
author
abel
committed
(feat) Deprecated testnet k8s nodes and replaced them with the bare-metal testnet nodes
1 parent e755da3 commit 0ad254c

File tree

7 files changed

+772
-1467
lines changed

7 files changed

+772
-1467
lines changed

Pipfile.lock

Lines changed: 748 additions & 749 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ make tests
9292
* The Composer can still be instantiated without markets and tokens. When markets and tokens are not provided the Composer loads the required information from the Denoms used in previous versions
9393
* Change in AsyncClient to be able to create Composer instances for the client network, markets and tokens
9494
* Examples have been adapted to create Composer instances using the AsyncClient
95-
* Added new nodes (bare-metal load balancing nodes) for mainnet
95+
* Added new nodes (bare-metal load balancing nodes) for mainnet and testnet
96+
* Deprecated the kubernetes load balanced nodes for testnet
9697
* Refactored the cookies management logic into a cookie assistant. Added the required logic to support the new cookies format for bare-metal load balanced nodes
98+
* Removed class Client. The only supported now is the async version called AsyncClient.
9799

98100
**0.7.1.1**
99101
* Fixed Testnet network URLs

pyinjective/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from .client import Client
1+
from .async_client import AsyncClient
22
from .transaction import Transaction
33
from .wallet import PrivateKey, PublicKey, Address

pyinjective/async_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,12 @@ async def _initialize_tokens_and_markets(self):
945945
markets_info = (await self.get_spot_markets()).markets
946946

947947
for market_info in markets_info:
948-
base_token_symbol, quote_token_symbol = market_info.ticker.split(constant.TICKER_TOKENS_SEPARATOR)
948+
if "/" in market_info.ticker:
949+
base_token_symbol, quote_token_symbol = market_info.ticker.split(constant.TICKER_TOKENS_SEPARATOR)
950+
else:
951+
base_token_symbol = market_info.base_token_meta.symbol
952+
quote_token_symbol = market_info.quote_token_meta.symbol
953+
949954
base_token = self._token_representation(
950955
symbol=base_token_symbol,
951956
token_meta=market_info.base_token_meta,

0 commit comments

Comments
 (0)