Skip to content

Commit fb9fcd0

Browse files
authored
Merge pull request #398 from InjectiveLabs/release/v1_11_2
release/v1_11_2
2 parents ac4d044 + c7dc302 commit fb9fcd0

37 files changed

+2219
-1247
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.11.2] - 2025-09-24
6+
### Added
7+
- Added support in v2 Composer to create the new exchange module MsgCancelPostOnlyMode message
8+
9+
### Changed
10+
- Updated all compiled protos for compatibility with Injective core v1.16.4 and Indexer v1.16.91
11+
- Marked the v1 Composer as deprecated
12+
513
## [1.11.1] - 2025-08-20
614
### Changed
715
- Marked the v1 AsyncClient as deprecated

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ clean-all:
3131
$(call clean_repos)
3232

3333
clone-injective-indexer:
34-
git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.16.54 --depth 1 --single-branch
34+
git clone https://github.com/InjectiveLabs/injective-indexer.git -b v1.16.91 --depth 1 --single-branch
3535

3636
clone-all: clone-injective-indexer
3737

buf.gen.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ inputs:
1616
- git_repo: https://github.com/InjectiveLabs/wasmd
1717
tag: v0.53.3-evm-comet1-inj
1818
- git_repo: https://github.com/InjectiveLabs/cometbft
19-
tag: v1.0.1-inj.2
19+
tag: v1.0.1-inj.3
2020
- git_repo: https://github.com/InjectiveLabs/cosmos-sdk
21-
tag: v0.50.13-evm-comet1-inj.3
21+
tag: v0.50.13-evm-comet1-inj.6
2222
# - git_repo: https://github.com/InjectiveLabs/wasmd
2323
# branch: v0.51.x-inj
2424
# subdir: proto
2525
- git_repo: https://github.com/InjectiveLabs/injective-core
26-
tag: v1.16.0
26+
tag: v1.16.4
2727
subdir: proto
2828
# - git_repo: https://github.com/InjectiveLabs/injective-core
2929
# branch: master

examples/chain_client/exchange/13_MsgInstantBinaryOptionsMarketLaunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def main() -> None:
4747
oracle_symbol="UFC-KHABIB-TKO-05/30/2023",
4848
oracle_provider="UFC",
4949
oracle_type="Provider",
50-
oracle_scale_factor=6,
50+
oracle_scale_factor=0,
5151
maker_fee_rate=Decimal("0.0005"), # 0.05%
5252
taker_fee_rate=Decimal("0.0010"), # 0.10%
5353
expiration_timestamp=1680730982,

examples/chain_client/exchange/4_MsgInstantPerpetualMarketLaunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def main() -> None:
4848
quote_denom="factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/usdc",
4949
oracle_base="INJ",
5050
oracle_quote="USDC",
51-
oracle_scale_factor=6,
51+
oracle_scale_factor=0,
5252
oracle_type="Band",
5353
maker_fee_rate=Decimal("-0.0001"),
5454
taker_fee_rate=Decimal("0.001"),

examples/chain_client/exchange/5_MsgInstantExpiryFuturesMarketLaunch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async def main() -> None:
4848
quote_denom="factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/usdc",
4949
oracle_base="INJ",
5050
oracle_quote="USDC",
51-
oracle_scale_factor=6,
51+
oracle_scale_factor=0,
5252
oracle_type="Band",
5353
expiry=2000000000,
5454
maker_fee_rate=Decimal("-0.0001"),

poetry.lock

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

pyinjective/composer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ def __init__(
137137
138138
139139
"""
140+
141+
warn(
142+
"Composer from pyinjective.composer is deprecated. "
143+
"Please use Composer from pyinjective.composer_v2 instead.",
144+
DeprecationWarning,
145+
stacklevel=2,
146+
)
140147
self.network = network
141148
self.spot_markets = spot_markets or dict()
142149
self.derivative_markets = derivative_markets or dict()

pyinjective/composer_v2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,9 @@ def msg_activate_stake_grant(self, sender: str, granter: str) -> injective_excha
11891189
granter=granter,
11901190
)
11911191

1192+
def msg_cancel_post_only_mode(self, sender: str) -> injective_exchange_tx_v2_pb.MsgCancelPostOnlyMode:
1193+
return injective_exchange_tx_v2_pb.MsgCancelPostOnlyMode(sender=sender)
1194+
11921195
# endregion
11931196

11941197
# region Insurance module

pyinjective/core/network.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ def devnet(cls):
156156
chain_cookie_assistant=DisabledCookieAssistant(),
157157
exchange_cookie_assistant=DisabledCookieAssistant(),
158158
explorer_cookie_assistant=DisabledCookieAssistant(),
159-
official_tokens_list_url="https://github.com/InjectiveLabs/injective-lists/raw/master/tokens/devnet.json",
159+
official_tokens_list_url=(
160+
"https://github.com/InjectiveLabs/injective-lists/raw/master/json/tokens/devnet.json"
161+
),
160162
)
161163

162164
@classmethod
@@ -211,7 +213,9 @@ def testnet(cls, node="lb"):
211213
grpc_exchange_channel_credentials=grpc_exchange_channel_credentials,
212214
grpc_explorer_channel_credentials=grpc_explorer_channel_credentials,
213215
chain_stream_channel_credentials=chain_stream_channel_credentials,
214-
official_tokens_list_url="https://github.com/InjectiveLabs/injective-lists/raw/master/tokens/testnet.json",
216+
official_tokens_list_url=(
217+
"https://github.com/InjectiveLabs/injective-lists/raw/master/json/tokens/testnet.json"
218+
),
215219
)
216220

217221
@classmethod
@@ -253,7 +257,9 @@ def mainnet(cls, node="lb"):
253257
grpc_exchange_channel_credentials=grpc_exchange_channel_credentials,
254258
grpc_explorer_channel_credentials=grpc_explorer_channel_credentials,
255259
chain_stream_channel_credentials=chain_stream_channel_credentials,
256-
official_tokens_list_url="https://github.com/InjectiveLabs/injective-lists/raw/master/tokens/mainnet.json",
260+
official_tokens_list_url=(
261+
"https://github.com/InjectiveLabs/injective-lists/raw/master/json/tokens/mainnet.json"
262+
),
257263
)
258264

259265
@classmethod
@@ -271,7 +277,9 @@ def local(cls):
271277
chain_cookie_assistant=DisabledCookieAssistant(),
272278
exchange_cookie_assistant=DisabledCookieAssistant(),
273279
explorer_cookie_assistant=DisabledCookieAssistant(),
274-
official_tokens_list_url="https://github.com/InjectiveLabs/injective-lists/raw/master/tokens/mainnet.json",
280+
official_tokens_list_url=(
281+
"https://github.com/InjectiveLabs/injective-lists/raw/master/json/tokens/mainnet.json"
282+
),
275283
)
276284

277285
@classmethod

0 commit comments

Comments
 (0)