Skip to content

Conversation

aarmoa
Copy link
Collaborator

@aarmoa aarmoa commented Jul 28, 2025

  • Updated proto definitions to the v1.16 mainnet upgrade version (chain v1.16.0 and indexer v1.16.54).
  • Updated ofac list.

Summary by CodeRabbit

  • New Features

    • Added support for the Injective Megavault service, including new message types and an RPC method for retrieving vault information.
    • Introduced new account statistics messages and an RPC method for fetching account stats in the archiver service.
  • Chores

    • Updated version numbers in configuration and documentation files to reflect the latest stable release and dependencies.

…n (chain v1.16.0 and indexer v1.16.54). Updated ofac list.
@aarmoa aarmoa requested a review from Copilot July 28, 2025 18:03
Copy link
Contributor

coderabbitai bot commented Jul 28, 2025

Walkthrough

This update finalizes the release to version 1.11.0, updating version numbers in configuration and documentation. It introduces new protobuf and gRPC support for the Injective Megavault service and adds an AccountStats RPC method to the Archiver service. Minor dependency version bumps are also included.

Changes

Cohort / File(s) Change Summary
Release Finalization
CHANGELOG.md, pyproject.toml
Updated the changelog and project metadata to reflect the official 1.11.0 release version and date.
Dependency/Version Updates
Makefile, buf.gen.yaml
Updated the injective-indexer and injective-core git tags/branches to newer versions for build and protobuf generation.
Archiver RPC Protobuf & gRPC
pyinjective/proto/exchange/injective_archiver_rpc_pb2.py, pyinjective/proto/exchange/injective_archiver_rpc_pb2_grpc.py
Added AccountStatsRequest and AccountStatsResponse protobuf messages and integrated a new AccountStats RPC method into the Archiver gRPC service and client stubs.
Megavault RPC Protobuf & gRPC
pyinjective/proto/exchange/injective_megavault_rpc_pb2.py, pyinjective/proto/exchange/injective_megavault_rpc_pb2_grpc.py
Introduced new protobuf and gRPC files for the Injective Megavault service, including message types and the GetVault RPC method for client and server interfaces.

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant ArchiverRPCServer

    Client->>ArchiverRPCServer: AccountStats(AccountStatsRequest)
    ArchiverRPCServer-->>Client: AccountStatsResponse
Loading
sequenceDiagram
    participant Client
    participant MegavaultRPCServer

    Client->>MegavaultRPCServer: GetVault(GetVaultRequest)
    MegavaultRPCServer-->>Client: GetVaultResponse
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

In the warren, code hops anew,
Version bumps and vaults in view!
Archiver stats, a fresh RPC,
Megavault opens—what will we see?
The changelog’s stamped, the carrots are sweet,
With 1.11.0, this release is complete!
🥕✨

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/final_v1_16_alignment_for_release

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR finalizes the v1.16 mainnet upgrade alignment by updating proto definitions and version tags to their stable release versions. The changes ensure the Python SDK is ready for the v1.16.0 mainnet release.

Key changes include:

  • Updated version from "1.11.0-rc6" to stable "1.11.0" release
  • Upgraded proto definitions to mainnet versions (chain v1.16.0 and indexer v1.16.54)
  • Added new Megavault RPC service and AccountStats functionality

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pyproject.toml Updated package version from release candidate to stable version
pyinjective/proto/exchange/injective_megavault_rpc_pb2_grpc.py Added new generated gRPC service for Megavault functionality
pyinjective/proto/exchange/injective_megavault_rpc_pb2.py Added new protocol buffer definitions for Megavault service
pyinjective/proto/exchange/injective_archiver_rpc_pb2_grpc.py Extended archiver service with AccountStats method
pyinjective/proto/exchange/injective_archiver_rpc_pb2.py Updated archiver proto with AccountStats request/response types
buf.gen.yaml Updated injective-core tag from beta to stable release
Makefile Updated injective-indexer version from v1.16.20 to v1.16.54
CHANGELOG.md Updated release date and version for the v1.11.0 release

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedbitarray@​3.4.3 ⏵ 3.5.293 +1100100100100
Addedcoincurve@​21.0.09910010010080
Updatedcertifi@​2025.6.15 ⏵ 2025.7.1410010010010070
Updatedaiosignal@​1.3.2 ⏵ 1.4.0100100100 +2100100
Addedcoincurve@​18.0.0100100100100100
Addedbackports-asyncio-runner@​1.2.0100100100100100

View full report

Copy link
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: 0

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

25-27: Pin proto source to a commit for reproducible builds.

Using a moving tag (v1.16.0) risks silent changes if the tag is force-updated. Prefer an immutable commit SHA:

-  - git_repo: https://github.com/InjectiveLabs/injective-core
-    tag: v1.16.0
+  - git_repo: https://github.com/InjectiveLabs/injective-core
+    commit: <insert_exact_sha_from_v1.16.0_tag>
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 553eaf8 and 370e7a4.

⛔ Files ignored due to path filters (1)
  • poetry.lock is excluded by !**/*.lock
📒 Files selected for processing (8)
  • CHANGELOG.md (1 hunks)
  • Makefile (1 hunks)
  • buf.gen.yaml (1 hunks)
  • pyinjective/proto/exchange/injective_archiver_rpc_pb2.py (2 hunks)
  • pyinjective/proto/exchange/injective_archiver_rpc_pb2_grpc.py (4 hunks)
  • pyinjective/proto/exchange/injective_megavault_rpc_pb2.py (1 hunks)
  • pyinjective/proto/exchange/injective_megavault_rpc_pb2_grpc.py (1 hunks)
  • pyproject.toml (1 hunks)
🔇 Additional comments (11)
pyproject.toml (1)

3-3: Version bump looks consistent, but verify other version holders.

pyproject.toml now advertises 1.11.0. Double-check that any hard-coded __version__ attributes (e.g. pyinjective/__init__.py) and packaging metadata on PyPI are bumped in lock-step to avoid mismatch warnings when users import the library.

pyinjective/proto/exchange/injective_megavault_rpc_pb2.py (1)

1-11: Generated file detected – skipping manual review.

File is auto-generated by protoc; manual style/logic review is unnecessary. Ensure it remains excluded from lint, formatting, and coverage scopes (already covered by the flakeheaven/black exclusion for pyinjective/proto/*).

pyinjective/proto/exchange/injective_megavault_rpc_pb2_grpc.py (1)

25-34: Servicer method intentionally unimplemented.

InjectiveMegavaultRPCServicer.GetVault currently raises NotImplementedError, which is expected for generated stubs. No action required unless server implementation is planned within this repo.

CHANGELOG.md (1)

5-16: Changelog entry aligns with release tag – LGTM.

New section correctly documents 1.11.0 features and date; matches pyproject.toml.

Makefile (1)

34-34: LGTM! Version alignment is correct.

The update to indexer version v1.16.54 aligns with the PR objectives for the v1.16 mainnet upgrade preparation.

pyinjective/proto/exchange/injective_archiver_rpc_pb2.py (2)

17-17: LGTM! Generated protobuf code is correctly updated.

The DESCRIPTOR contains the updated serialized protobuf schema with the new AccountStats messages. This is auto-generated code that correctly reflects the schema changes.


31-80: LGTM! Serialization offsets correctly updated.

The addition of AccountStatsRequest and AccountStatsResponse messages has correctly shifted all subsequent message serialization offsets. The generated code maintains proper structure and offset calculations.

pyinjective/proto/exchange/injective_archiver_rpc_pb2_grpc.py (4)

23-27: LGTM! Client stub correctly implements AccountStats RPC.

The new AccountStats method is properly registered as a unary-unary RPC with correct serializers and deserializers matching the protobuf message types.


81-86: LGTM! Server servicer has proper placeholder implementation.

The AccountStats method includes the standard UNIMPLEMENTED status and NotImplementedError, which is appropriate for generated gRPC servicer code.


152-156: LGTM! RPC method handler correctly configured.

The AccountStats handler is properly mapped with correct request deserializer and response serializer functions.


236-261: LGTM! Experimental API method properly implemented.

The static AccountStats method follows the same pattern as other RPC methods and includes all necessary gRPC call parameters with correct serialization functions.

@aarmoa aarmoa merged commit c8d23f1 into dev Jul 28, 2025
10 checks passed
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