Skip to content

chore: prep for v1.20.1-beta#19

Open
dbrajovic wants to merge 1 commit into
masterfrom
chore/prep-for-v1.20.1-beta
Open

chore: prep for v1.20.1-beta#19
dbrajovic wants to merge 1 commit into
masterfrom
chore/prep-for-v1.20.1-beta

Conversation

@dbrajovic

@dbrajovic dbrajovic commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features

    • Added support for fee grant preparation in exchange flows.
    • Added funding payments retrieval and extra trade filtering options.
    • Expanded RFQ and quote stream responses with more transaction and participant details.
    • Added support for choosing oracle types in rate-limit and pricing-related messages.
  • Bug Fixes

    • Improved history and stream request handling with clearer, more flexible fields.
  • Chores

    • Updated ignored local IDE files and refreshed upstream version tags used in builds and exports.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR updates top-level ignore/version-tag metadata and expands several protobuf APIs and schemas across exchange, RFQ, derivatives, and Peggy definitions.

Changes

Repository maintenance

Layer / File(s) Summary
Ignore rules and version tags
.gitignore, Makefile
.idea is added to .gitignore, and the top-level Makefile updates COMETBFT, Cosmos SDK, Injective Core, and Injective Indexer version tags.

Proto API updates

Layer / File(s) Summary
Prepare fee grant RPC
all_protos/exchange/injective_exchange_rpc.proto
InjectiveExchangeRPC gains PrepareFeeGrant, with new request and response messages for grantee addresses, transaction metadata, spend limits, and allowed messages.
Derivatives history and funding endpoints
all_protos/exchange/injective_chart_rpc.proto, all_protos/exchange/injective_tc_derivatives_rpc.proto
DerivativeMarketHistoryRequest adds index_prices; InjectiveTCDerivativesRPC gains FundingPayments; TradesRequest adds participant; and the funding payment request/response messages are defined.
RFQ prepare request options
all_protos/exchange/injective_rfq_gw_rpc.proto
The RFQ gateway prepare request types gain simulate and tx_body_memo, and the gas-limit comment now states its precedence over simulate.
RFQ stream taker context
all_protos/exchange/injective_rfq_rpc.proto
StreamError adds taker and RFQ identifiers, and QuoteStreamAck adds a taker field.
Peggy oracle type fields
all_protos/injective/peggy/v1/msgs.proto, all_protos/injective/peggy/v1/rate_limit.proto
RateLimit, MsgCreateRateLimit, and MsgUpdateRateLimit import OracleType, generalize price-ID comments, and add oracle-type fields tied to the price identifiers, with a minor formatting change near MsgRemoveRateLimitResponse.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Poem

🐰 I hopped through proto fields by moonlit light,
Fee grants, RFQs, and oracle tags feel right.
I sniffed a memo, then a taker clue,
And index_prices sparkled through.
Hoppity code, with carrots in view 🥕

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: preparing the repo for v1.20.1-beta.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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/prep-for-v1.20.1-beta

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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 `@all_protos/exchange/injective_chart_rpc.proto`:
- Around line 98-100: The doc comment on the Injective chart RPC proto field
uses camelCase names that do not match the message’s snake_case fields. Update
the comment on index_prices so it refers to use_oracle_prices and fill_gaps
instead of useOraclePrices and fillGaps, keeping the wording aligned with the
actual proto symbols.
🪄 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6e49919d-e058-479e-a8ac-f8a1ca9ba6e5

📥 Commits

Reviewing files that changed from the base of the PR and between 1a4081f and 50953f4.

⛔ Files ignored due to path filters (5)
  • cpp_protos.zip is excluded by !**/*.zip
  • csharp_protos.zip is excluded by !**/*.zip
  • java_protos.zip is excluded by !**/*.zip
  • python_protos.zip is excluded by !**/*.zip
  • rust_protos.zip is excluded by !**/*.zip
📒 Files selected for processing (9)
  • .gitignore
  • Makefile
  • all_protos/exchange/injective_chart_rpc.proto
  • all_protos/exchange/injective_exchange_rpc.proto
  • all_protos/exchange/injective_rfq_gw_rpc.proto
  • all_protos/exchange/injective_rfq_rpc.proto
  • all_protos/exchange/injective_tc_derivatives_rpc.proto
  • all_protos/injective/peggy/v1/msgs.proto
  • all_protos/injective/peggy/v1/rate_limit.proto

Comment on lines +98 to +100
// When true, we'll use index prices. Supersedes useOraclePrices and fillGaps.
// Disabled for binary options markets.
bool index_prices = 9;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Comment uses camelCase field names that don't match the proto fields.

The doc references useOraclePrices and fillGaps, but the actual fields in this message are use_oracle_prices and fill_gaps. Align the comment with the snake_case proto names for clarity.

📝 Proposed doc fix
-	// When true, we'll use index prices. Supersedes useOraclePrices and fillGaps.
-// Disabled for binary options markets.
+	// When true, we'll use index prices. Supersedes use_oracle_prices and fill_gaps.
+// Disabled for binary options markets.
 	bool index_prices = 9;
📝 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
// When true, we'll use index prices. Supersedes useOraclePrices and fillGaps.
// Disabled for binary options markets.
bool index_prices = 9;
// When true, we'll use index prices. Supersedes use_oracle_prices and fill_gaps.
// Disabled for binary options markets.
bool index_prices = 9;
🤖 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 `@all_protos/exchange/injective_chart_rpc.proto` around lines 98 - 100, The doc
comment on the Injective chart RPC proto field uses camelCase names that do not
match the message’s snake_case fields. Update the comment on index_prices so it
refers to use_oracle_prices and fill_gaps instead of useOraclePrices and
fillGaps, keeping the wording aligned with the actual proto symbols.

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