You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,21 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
## [1.11.0] - 2025-07-29
6
+
### Added
7
+
- Added support for Exchange V2 proto queries and types
8
+
- Added support for ERC20 proto queries and types
9
+
- Added support for EVM proto queries and types
10
+
- Updated all chain exchange module examples to use the new Exchange V2 proto queries and types
11
+
- Added examples for ERC20 queries and messages
12
+
- Added examples for EVM queries
13
+
- Created a new AsyncClient in the pyinjective.async_client_v2 module. This new AsyncClient provides support for the new v2 exchange endpoints. AsyncClient in pyinjective.async_client module still provides access to the v1 exchange endpoints.
14
+
- Created a new Composer in the pyinjective.composer_v2 module. This new Composer provides support to create exchange v2 objects. Composer in pyinjective.composer module still provides access to the v1 exchange objects.
15
+
- Created the IndexerClient class to have all indexer queries. AsyncClient v2 now does not include any logic related to the indexer endpoints. The original AsyncClient still does support indexer endpoints (for backwards compatibility) but it does that by using an instance of the IndexerClient
16
+
17
+
### Removed
18
+
- Removed all methods marked as deprecated in AsyncClient and Composer
19
+
5
20
## [1.10.0] - 2025-04-16
6
21
### Added
7
22
- Added support for the queries in the new TXFees module
- Recommended for new applications and when you need access to the latest exchange features
100
+
- Example:
101
+
```python
102
+
from injective.async_client_v2 import AsyncClient
103
+
from injective.network import Network
104
+
105
+
asyncdefmain():
106
+
# Initialize client with mainnet
107
+
client = AsyncClient(network=Network.mainnet())
108
+
# Or use testnet
109
+
# client = AsyncClient(network=Network.testnet())
110
+
# Use V2 exchange queries here
111
+
```
112
+
113
+
Both clients provide similar interfaces but with different underlying implementations. Choose V2 for new projects unless you have specific requirements for V1 compatibility.
114
+
115
+
> **Market Format Differences**:
116
+
> - V1 AsyncClient: Markets are initialized with values in chain format (raw blockchain values)
117
+
> - V2 AsyncClient: Markets are initialized with values in human-readable format (converted to standard decimal numbers)
118
+
>
119
+
> **Exchange Endpoint Format Differences**:
120
+
> - V1 Exchange endpoints: All values (amounts, prices, margins, notionals) are returned in chain format
121
+
> - V2 Exchange endpoints:
122
+
> - Human-readable format for: amounts, prices, margins, and notionals
123
+
> - Chain format for: deposit-related information (to maintain consistency with the Bank module)
124
+
>
125
+
> **Important Note**: The ChainClient (V1) will not receive any new endpoints added to the Exchange module. If you need access to new exchange-related endpoints or features, you should migrate to the V2 client. The V2 client ensures you have access to all the latest exchange functionality and improvements.
0 commit comments