Skip to content

Conversation

aarmoa
Copy link
Collaborator

@aarmoa aarmoa commented Jul 28, 2025

  • Release v1.11.0 with full support for chain upgrade v1.16

aarmoa added 30 commits October 14, 2024 23:40
…include new V2 chain stream protos. Fixed all failing tests
…ies and messages. Added tests for the deprecated V1 methods. Updated all example scripts related to Exchange module
…lient to get markets from the chain. Removed logic in Composer to load markets and tokens from the denom INI files
…ccount_orders_message

fix/rename_derivative_subaccount_orders_message
* feat: updated changelog and version number for v1.9.0 release

* fix: updated the oracle stream prices script to send the oracle type always in lowercase

* fix: added quantization in the functions that convert notional values to chain format

* cp-235: updated the gas limit estimator logic to reflect the new logic for gas heuristics in exchange module (chain v1.15)

* cp-235: updated all proto definitions with the candidate indexer and chain core versions for v1.15 chain upgrade

* feat: added a new message based fee calculator supporting the Exchange module gas heuristics

* fix: fix broadcaster creation example scripts

* fix: pointed to the correct injective-core branch for the proto generation

* fix: updated gas heuristics per message gas cost to sync with latest changes on chain

* fix: added cleanup code in AsyncClient for the object destruction phase

* feat: updated proto definitions for chain v1.15 upgrade and Indexer v1.14.48

* feat: made the gas calculator using gas heuristics the default one for the MsgBroadcasterWithPk when broadcasting without simulation

* fix: fixed gas calculation using heuristics to not duplicate the required gas for post only orders
aarmoa added 21 commits May 29, 2025 04:49
…ge v2 endpoints. The original Composer and AsyncClient are still supported. Created an IndexerClient for all indexer endpoints
… Exchange module V2 queries and types. Updated examples and tests.
…or_exchange_v2_endpoints

[CP-446] created v2 client for exchange v2 endpoints
…ket_endpoint

[chore] add positions in market endpoint
…nction_in_token

Feat/add human readable function in token
…n_from_eth

[CP-508] add address creation from eth
…n (chain v1.16.0 and indexer v1.16.54). Updated ofac list.
…t_for_release

[CHORE] final v1.16 alignment for release
@aarmoa aarmoa requested a review from Copilot July 28, 2025 18:19
Copy link
Contributor

coderabbitai bot commented Jul 28, 2025

Important

Review skipped

More than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review.

93 files out of 300 files are above the max files limit of 200.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

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

🪧 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 updates the pyinjective SDK to version 1.11.0 with support for chain upgrade v1.16. The changes primarily focus on migrating example code from using AsyncClient to newer client versions and updating usage patterns to align with the latest SDK architecture.

  • Migration from AsyncClient to IndexerClient for data fetching operations
  • Updates to client imports from async_client to async_client_v2 and indexer_client
  • Introduction of MsgBroadcasterWithPk for transaction handling with improved gas estimation
  • Consistent output formatting using JSON pretty-printing across examples

Reviewed Changes

Copilot reviewed 299 out of 600 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Multiple oracle_rpc examples Migrated from AsyncClient to IndexerClient and added JSON output formatting
Multiple meta_rpc examples Updated client imports and standardized JSON response formatting
Multiple insurance_rpc examples Switched to IndexerClient and improved output display
Multiple explorer_rpc examples Updated to use IndexerClient with consistent JSON formatting
Multiple derivative_exchange_rpc examples Migrated client usage and enhanced output readability
Multiple auctions_rpc examples Updated client imports and JSON formatting
Multiple accounts_rpc examples Switched to IndexerClient with improved output
Chain client examples Migrated to async_client_v2 and MsgBroadcasterWithPk for transaction handling
Query examples Updated imports from async_client to async_client_v2
Comments suppressed due to low confidence (3)

examples/chain_client/wasm/1_MsgExecuteContract.py:51

  • The method name should follow snake_case convention. Use msg_execute_contract instead of MsgExecuteContract to be consistent with the updated pattern shown in line 51 where it's changed to the snake_case version.
    msg = composer.msg_execute_contract(

examples/chain_client/tokenfactory/5_MsgSetDenomMetadata.py:27

  • The method new_without_simulation is being changed to new_using_gas_heuristics which suggests a different approach to gas estimation. Ensure this change is intentional and aligns with the new SDK patterns.
    message_broadcaster = MsgBroadcasterWithPk.new_using_gas_heuristics(

examples/chain_client/tokenfactory/4_MsgChangeAdmin.py:27

  • Similar to other files, the method is being changed from new_without_simulation to new_using_gas_heuristics. This pattern change should be consistent across all transaction examples.
    message_broadcaster = MsgBroadcasterWithPk.new_using_gas_heuristics(

oracle_base="Frontrunner",
oracle_quote="Frontrunner",
oracle_type=11,
oracle_type="Band",
Copy link
Preview

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

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

The oracle_type parameter is being changed from a numeric value (11) to a string ("Band"). This could be a breaking change in the API. Verify that the new SDK version expects string values for oracle types.

Suggested change
oracle_type="Band",
oracle_type=11, # Updated to numeric value as required by the SDK

Copilot uses AI. Check for mistakes.

sender=address.to_acc_bech32(),
denom="INJ",
denom="inj",
Copy link
Preview

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

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

The denom parameter is being changed from "INJ" to "inj". This change in casing could affect compatibility. Ensure this change aligns with the expected denomination format in the new SDK version.

Suggested change
denom="inj",
denom="INJ",

Copilot uses AI. Check for mistakes.

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.3.1 ⏵ 3.5.293 +1100100100100
Updatedclick@​8.1.8 ⏵ 8.2.195 +1100100100100
Updatedcharset-normalizer@​3.4.1 ⏵ 3.4.299100100100100
Addedcoincurve@​21.0.09910010010080
Updatedcertifi@​2025.1.31 ⏵ 2025.7.14100 +110010010070
Updatedaiosignal@​1.3.2 ⏵ 1.4.0100100100 +2100100
Addedcoincurve@​18.0.0100100100100100
Addedbackports-asyncio-runner@​1.2.0100100100100100

View full report

@aarmoa aarmoa merged commit ad289d5 into master Jul 28, 2025
17 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