Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
run-tests:
strategy:
matrix:
python: ["3.10", "3.11", "3.12"]
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@

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

## [Unreleased] - 9999-99-99
## [1.14.0] - 9999-99-99
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Replace the non-standard placeholder date.

The placeholder date "9999-99-99" is unconventional and could cause confusion. Standard changelog conventions recommend using "Unreleased" or "TBD" for versions in development.

📝 Suggested alternatives

Option 1 (recommended): Use "Unreleased" following keepachangelog.com convention

-## [1.14.0] - 9999-99-99
+## [1.14.0] - Unreleased

Option 2: Use "TBD" placeholder

-## [1.14.0] - 9999-99-99
+## [1.14.0] - TBD
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
## [1.14.0] - 9999-99-99
## [1.14.0] - Unreleased
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@CHANGELOG.md` at line 5, Replace the non-standard placeholder date in the
changelog header "## [1.14.0] - 9999-99-99" with a conventional marker; update
that header to use "Unreleased" (preferred) or "TBD" instead of "9999-99-99" so
it reads e.g. "## [1.14.0] - Unreleased", keeping the rest of the line intact.


## [1.13.0] - 2026-02-13
### Changed
- Updated all compiled protos for compatibility with Injective core v1.18.0 and Indexer v1.18.3
- Includes new proto definitions for the Chainlink Data Streams oracle

## [1.12.0] - 2025-11-10
### Changed
- Updated all compiled protos for compatibility with Injective core v1.17.0 and Indexer v1.17.16
- Included the OpenNotionalCap in derivative markets
- Added support for market orders creation with the MsgBatchUpdateOrders message
- Support for order failure events and conditional orders trigger failures in the chainstrem updates

## [1.11.2] - 2025-09-24
### Added
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyinjective/orderhash.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
from decimal import Decimal

import requests
from eip712.messages import EIP712Domain, EIP712Message
from eip712.messages import EIP712Domain, EIP712Message, EIP712Type
from eth_account.messages import _hash_eip191_message as hash_eip191_message
from eth_pydantic_types import abi
from hexbytes import HexBytes
from pydantic import BaseModel

from pyinjective.core.token import Token


class OrderInfo(BaseModel):
class OrderInfo(EIP712Type):
SubaccountId: abi.string
FeeRecipient: abi.string
Price: abi.string
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "injective-py"
version = "1.13.0-rc1"
version = "1.14.0-rc1"
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tool.poetry.version must be a valid PEP 440 version. 1.14.0-rc1 is typically rejected by Python packaging tooling (expects 1.14.0rc1 for a release candidate), which can break poetry build/publish and downstream installs.

Suggested change
version = "1.14.0-rc1"
version = "1.14.0rc1"

Copilot uses AI. Check for mistakes.
Copy link

Copilot AI Mar 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version in pyproject.toml (1.14.0-rc1) doesn’t match the new CHANGELOG header (1.14.0). If this is an RC, consider keeping the CHANGELOG section version consistent (or use an unreleased section until the final 1.14.0 cut).

Copilot uses AI. Check for mistakes.
description = "Injective Python SDK, with Exchange API Client"
authors = ["Injective Labs <contact@injectivelabs.org>"]
license = "Apache-2.0"
Expand All @@ -21,12 +21,13 @@ include = [
]

[tool.poetry.dependencies]
python = "^3.10"
python = ">=3.10,<3.13"
aiohttp = "^3.9.4" # Version dependency due to https://github.com/InjectiveLabs/sdk-python/security/dependabot/18
bech32 = "*"
bip32 = "*"
ecdsa = "*"
eip712 = "*"
eip712 = "^0.3.0"
eth-pydantic-types = "^0.2.4"
grpcio = "*"
grpcio-tools = "*"
hdwallets = "*"
Expand Down Expand Up @@ -81,7 +82,7 @@ skip_glob = ["pyinjective/proto/*", ".idea/*"]

[tool.black]
line-length = 120
target-version = ["py39", "py310", "py311"]
target-version = ["py310", "py311", "py312"]
include = '\.pyi?$'
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
Expand Down