Skip to content

[chore] prep for v1.20 injective-core release#416

Merged
dbrajovic merged 4 commits into
devfrom
chore/release-1.20
Jun 2, 2026
Merged

[chore] prep for v1.20 injective-core release#416
dbrajovic merged 4 commits into
devfrom
chore/release-1.20

Conversation

@dbrajovic
Copy link
Copy Markdown
Collaborator

@dbrajovic dbrajovic commented Jun 1, 2026

Summary by CodeRabbit

  • New Features

    • Added StreamABCIEvents RPC for real-time ABCI event streaming.
  • Chores

    • Updated Indexer compatibility to v1.20.2.
    • Bumped internal dependency pins and promoted injective-core to v1.20.0.
    • Updated OFAC identifiers list.
    • Regenerated protocol definitions to reflect updated schemas.
  • Tests

    • Updated tests to expect new accountAddress and operationType fields.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4fc2fb19-80f8-4c2e-97e1-4d7459cc375d

📥 Commits

Reviewing files that changed from the base of the PR and between c155399 and 265c1d8.

📒 Files selected for processing (1)
  • CHANGELOG.md
✅ Files skipped from review due to trivial changes (1)
  • CHANGELOG.md

📝 Walkthrough

Walkthrough

Finalize v1.15.0, update build inputs to Injective core v1.20.0 and Indexer v1.20.2, add StreamABCIEvents RPC, regenerate protobuf/grpc descriptors, refresh OFAC data, and update tests to match new response fields.

Changes

Release v1.15.0 with Indexer Integration

Layer / File(s) Summary
Release configuration and build tooling
pyproject.toml, CHANGELOG.md, Makefile, buf.gen.yaml
Package version set to 1.15.0; CHANGELOG.md updated; Makefile clone-injective-indexer now targets v1.20.2; buf.gen.yaml input tags bumped (including injective-corev1.20.0).
StreamABCIEvents streaming RPC endpoint
pyinjective/proto/exchange/event_provider_api_pb2.py, pyinjective/proto/exchange/event_provider_api_pb2_grpc.py
Protobuf descriptor and gRPC bindings extended with a new unary-stream RPC StreamABCIEvents: client stub method, servicer stub, server handler registration, and experimental client wrapper.
Regenerated protobuf descriptors
pyinjective/proto/exchange/*_pb2.py (accounts, chart, derivative_exchange, rfq, tc_derivatives)
Multiple generated protobuf modules had their module-level DESCRIPTOR blobs and non-C-descriptor serialized offset ranges regenerated to reflect updated proto inputs.
Test expectations and OFAC data updates
tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py, tests/client/indexer/stream_grpc/test_indexer_grpc_derivative_stream.py, pyinjective/ofac.json
Tests updated to assert accountAddress on orders and an operationType field on positions; pyinjective/ofac.json entries refreshed/inserted.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 A rabbit hops through version streams,
From rc1 to 1.15's final gleams,
New ABCI streams now hum at night,
OFAC hashes tuned just right,
Protos regenerated—merge with delight!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 30.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[chore] prep for v1.20 injective-core release' directly reflects the PR's primary purpose: preparing dependencies and version numbers for the v1.20 Injective Core release, as evidenced by updates across CHANGELOG.md, Makefile, buf.gen.yaml, pyproject.toml, and generated proto files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/release-1.20

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
buf.gen.yaml (1)

25-27: 💤 Low value

Stale commented-out input block. The disabled injective-core chainlink branch entry is dead config; consider removing it now that core is pinned to v1.20.0 on Line 22-23.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@buf.gen.yaml` around lines 25 - 27, Remove the stale commented-out git_repo
block for InjectiveLabs/injective-core (the three-line block starting with "# -
git_repo: https://github.com/InjectiveLabs/injective-core" and its branch/subdir
entries) since core is pinned to v1.20.0 and this dead Chainlink branch entry is
no longer needed; simply delete those commented lines to clean up buf.gen.yaml.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@buf.gen.yaml`:
- Around line 18-19: In buf.gen.yaml, clarify why cometbft is pinned to tag
"v1.0.1-inj.v1.19.0-rollback" (confirm it is the intended upstream source for
injective-core v1.20.0 and add a short comment explaining the v1.19 rollback
reason), verify the cosmos-sdk pin "v0.50.14-inj.10" is correct, and remove the
stale commented-out injective-core chainlink block (or re-enable it with the
correct branch/tag if it’s actually required); update the surrounding comments
to state the rationale for the cometbft rollback tag and whether injective-core
v1.20.0 depends on that specific fork.

---

Nitpick comments:
In `@buf.gen.yaml`:
- Around line 25-27: Remove the stale commented-out git_repo block for
InjectiveLabs/injective-core (the three-line block starting with "# - git_repo:
https://github.com/InjectiveLabs/injective-core" and its branch/subdir entries)
since core is pinned to v1.20.0 and this dead Chainlink branch entry is no
longer needed; simply delete those commented lines to clean up buf.gen.yaml.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4faaaef0-4ed9-41ae-ae5a-9fbde272b4c6

📥 Commits

Reviewing files that changed from the base of the PR and between f06600a and c155399.

📒 Files selected for processing (14)
  • CHANGELOG.md
  • Makefile
  • buf.gen.yaml
  • pyinjective/ofac.json
  • pyinjective/proto/exchange/event_provider_api_pb2.py
  • pyinjective/proto/exchange/event_provider_api_pb2_grpc.py
  • pyinjective/proto/exchange/injective_accounts_rpc_pb2.py
  • pyinjective/proto/exchange/injective_chart_rpc_pb2.py
  • pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py
  • pyinjective/proto/exchange/injective_rfq_rpc_pb2.py
  • pyinjective/proto/exchange/injective_tc_derivatives_rpc_pb2.py
  • pyproject.toml
  • tests/client/indexer/grpc/test_indexer_grpc_derivative_api.py
  • tests/client/indexer/stream_grpc/test_indexer_grpc_derivative_stream.py

Comment thread buf.gen.yaml
Comment on lines 18 to +19
- git_repo: https://github.com/InjectiveLabs/cometbft
tag: v1.0.1-inj.7
tag: v1.0.1-inj.v1.19.0-rollback
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Confirm the pinned cometbft tag exists
git ls-remote --tags https://github.com/InjectiveLabs/cometbft.git | grep -i 'v1.0.1-inj'

Repository: InjectiveLabs/sdk-python

Length of output: 1066


🏁 Script executed:

#!/bin/bash
set -euo pipefail
# Show buf.gen.yaml around the referenced lines
ls -la
if [ -f buf.gen.yaml ]; then
  nl -ba buf.gen.yaml | sed -n '1,120p'
else
  echo "buf.gen.yaml not found in repo root"
fi

Repository: InjectiveLabs/sdk-python

Length of output: 1886


🏁 Script executed:

#!/bin/bash
set -euo pipefail
if [ -f buf.gen.yaml ]; then
  cat -n buf.gen.yaml | sed -n '1,120p'
else
  echo "buf.gen.yaml not found in repo root"
fi

Repository: InjectiveLabs/sdk-python

Length of output: 1216


Clarify the cometbft -rollback pin and clean up stale commented config

  • buf.gen.yaml pins cometbft to v1.0.1-inj.v1.19.0-rollback (lines 18-19); the tag exists upstream, but confirm this is the intended source for injective-core v1.20.0 (document why v1.19.0/-rollback is used).
  • cosmos-sdk is pinned to v0.50.14-inj.10 (line 21), matching the expected minor bump.
  • The commented-out injective-core chainlink block (lines 25-27) remains; remove it if obsolete or re-enable it with the correct branch control.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@buf.gen.yaml` around lines 18 - 19, In buf.gen.yaml, clarify why cometbft is
pinned to tag "v1.0.1-inj.v1.19.0-rollback" (confirm it is the intended upstream
source for injective-core v1.20.0 and add a short comment explaining the v1.19
rollback reason), verify the cosmos-sdk pin "v0.50.14-inj.10" is correct, and
remove the stale commented-out injective-core chainlink block (or re-enable it
with the correct branch/tag if it’s actually required); update the surrounding
comments to state the rationale for the cometbft rollback tag and whether
injective-core v1.20.0 depends on that specific fork.

@dbrajovic dbrajovic merged commit ee21b05 into dev Jun 2, 2026
14 checks passed
@dbrajovic dbrajovic deleted the chore/release-1.20 branch June 2, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant