Skip to content

Commit 403ccff

Browse files
committed
(feat) Updated proto definitions to match Injective core v1.16.4 and Indexer v1.16.91
1 parent c22a799 commit 403ccff

34 files changed

+2199
-1238
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased] - 9999-99-99
66

7+
## [1.11.2] - 2025-09-24
8+
### Added
9+
- Added support in v2 Composer to create the new exchange module MsgCancelPostOnlyMode message
10+
11+
### Changed
12+
- Updated all compiled protos for compatibility with Injective core v1.16.4 and Indexer v1.16.91
13+
- Marked the v1 Composer as deprecated
14+
715
## [1.11.1] - 2025-08-20
816
### Changed
917
- 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/ofac.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"0x0931ca4d13bb4ba75d9b7132ab690265d749a5e7",
66
"0x098b716b8aaf21512996dc57eb0615e2383e2f96",
77
"0x0ee5067b06776a89ccc7dc8ee369984ad7db5e06",
8+
"0x12de548f79a50d2bd05481c8515c1ef5183666a9",
89
"0x175d44451403edf28469df03a9280c1197adb92c",
910
"0x1967d8af5bd86a497fb3dd7899a020e47560daaf",
1011
"0x1999ef52700c34de7ec2b68a28aafb37db0c5ade",
@@ -26,8 +27,10 @@
2627
"0x4f47bc496083c727c5fbe3ce9cdf2b0f6496270c",
2728
"0x502371699497d08d5339c870851898d6d72521dd",
2829
"0x530a64c0ce595026a4a556b703644228179e2d57",
30+
"0x532b77b33a040587e9fd1800088225f99b8b0e8a",
2931
"0x53b6936513e738f44fb50d2b9476730c0ab3bfc1",
3032
"0x5512d943ed1f7c8a43f3435c85f7ab68b30121b0",
33+
"0x57ec89a0c056163a0314e413320f9b3abe761259",
3134
"0x5a14e72060c11313e38738009254a90968f58f51",
3235
"0x5a7a51bfb49f190e5a6060a5bc6052ac14a3b59f",
3336
"0x5f48c2a71b2cc96e3f0ccae4e39318ff0dc375b2",
@@ -36,12 +39,14 @@
3639
"0x6f1ca141a28907f78ebaa64fb83a9088b02a8352",
3740
"0x72a5843cc08275c8171e582972aa4fda8c397b2a",
3841
"0x797d7ae72ebddcdea2a346c1834e04d1f8df102b",
42+
"0x7ced75026204ac29c34bea98905d4c949f27361e",
3943
"0x7db418b5d567a4e0e8c59ad71be1fce48f3e6107",
4044
"0x7f19720a857f834887fc9a7bc0a0fbe7fc7f8102",
4145
"0x7f367cc41522ce07553e823bf3be79a889debe1b",
4246
"0x7ff9cfad3877f21d41da833e2f775db0569ee3d9",
4347
"0x83e5bc4ffa856bb84bb88581f5dd62a433a25e0d",
4448
"0x8576acc5c05d6ce88f4e49bf65bdf0c62f91353c",
49+
"0x8dce2aac0de82bdcaf6b4373b79f94331b8e4995",
4550
"0x901bb9583b24d97e995513c6778dc6888ab6870e",
4651
"0x931546d9e66836abf687d2bc64b30407bac8c568",
4752
"0x961c5be54a2ffc17cf4cb021d863c42dacd47fc1",
@@ -51,19 +56,24 @@
5156
"0x9f4cda013e354b8fc285bf4b9a60460cee7f7ea9",
5257
"0xa0e1c89ef1a489c9c7de96311ed5ce5d32c20e4b",
5358
"0xa7e5d5a720f06526557c513402f2e6b5fa20b008",
59+
"0xb338962b92cd818d6aef0a32a9ecd01212a71f33",
5460
"0xb6f5ec1a0a9cd1526536d3f0426c429529471f40",
5561
"0xc2a3829f459b3edd87791c74cd45402ba0a20be3",
5662
"0xc455f7fd3e0e12afd51fba5c106909934d8a0e4a",
5763
"0xd0975b32cea532eadddfc9c60481976e39db3472",
5864
"0xd5ed34b52ac4ab84d8fa8a231a3218bbf01ed510",
65+
"0xd8500c631dc32fa18645b7436344a99e4825e10e",
5966
"0xd882cfc20f52f2599d84b8e8d58c7fb62cfe344b",
67+
"0xdb2720ebad55399117ddb4c4a4afd9a4ccada8fe",
6068
"0xdcbeffbecce100cce9e4b153c4e15cb885643193",
6169
"0xe1d865c3d669dcc8c57c8d023140cb204e672ee4",
70+
"0xe3d35f68383732649669aa990832e017340dbca5",
6271
"0xe7aa314c77f4233c18c6cc84384a9247c0cf367b",
6372
"0xe950dc316b836e4eefb8308bf32bf7c72a1358ff",
6473
"0xed6e0a7e4ac94d976eebfb82ccf777a3c6bad921",
6574
"0xefe301d259f525ca1ba74a7977b80d5b060b3cca",
6675
"0xf3701f445b6bdafedbca97d1e477357839e4120d",
76+
"0xf4377eda661e04b6dda78969796ed31658d602d4",
6777
"0xf7b31119c2682c88d88d455dbb9d5932c65cf1be",
6878
"0xfac583c0cf07ea434052c49115a4682172ab6b4f",
6979
"0xfec8a60023265364d066a1212fde3930f6ae8da7",

0 commit comments

Comments
 (0)