Skip to content

chore: chain v1.20.3 release - #188

Open
dbrajovic wants to merge 2 commits into
mainfrom
chore/release-v1.20.3
Open

chore: chain v1.20.3 release#188
dbrajovic wants to merge 2 commits into
mainfrom
chore/release-v1.20.3

Conversation

@dbrajovic

@dbrajovic dbrajovic commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added derivative market metadata, market querying, pagination, funding, expiry, token metadata, and open-notional-cap schemas.
    • Added trade filtering by participant address and expanded RFQ participant details.
    • Added initial position metrics, including leverage, margin, entry price, and quantity.
    • Added spot-trade notional amounts to trade results and streams.
  • Documentation

    • Clarified settlement address filters, terminal order statuses, and RFQ identifier behavior.
    • Error reference tables are now generated automatically.
    • Updated repository components and SDK versions.

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation schemas add spot-trade notional and expanded derivative RPC fields. RFQ descriptions and generated error-table includes are updated, while Makefile clone targets select newer repository and SDK versions.

Changes

Spot trade notional schemas

Layer / File(s) Summary
Add notional to spot trade schemas
source/json_tables/injective/exchange/*, source/json_tables/injective/stream/*, source/includes/_chainstream.md
Spot trade result, trade log, stream schemas, and Chain Stream documentation add notional as LegacyDec.

Derivative RPC schemas

Layer / File(s) Summary
Define derivative market schemas
source/json_tables/indexer/injective_tc_derivatives_rpc/{DerivativeMarketInfo,PerpetualMarketFunding,PerpetualMarketInfo,ExpiryFuturesMarketInfo,TokenMeta,OpenNotionalCap}.json
Derivative market, funding, expiry, token metadata, and notional-cap schemas are added.
Define market request and response schemas
source/json_tables/indexer/injective_tc_derivatives_rpc/{MarketsRequest,MarketsResponse}.json
Market filters, pagination fields, derivative market results, and continuation tokens are defined.
Expand derivative trade and position contracts
source/json_tables/indexer/{injective_derivative_exchange_rpc,injective_tc_derivatives_rpc}/*
Position opening-state fields, RFQ proxy participant fields, and broader participant filtering are documented.

RFQ documentation descriptions

Layer / File(s) Summary
Update RFQ filter and status descriptions
source/json_tables/indexer/injective_rfq_rpc/*
Settlement address filters include executed makers, and expired orders are described as terminal.

Generated error documentation

Layer / File(s) Summary
Use generated error tables
source/includes/_errors.md
Embedded error HTML tables are replaced with JSON-to-HTML auto-documentation includes.

Repository clone revisions

Layer / File(s) Summary
Bump cloned repository versions
Makefile
Core, indexer, Python SDK, and Go SDK version variables are updated.

Estimated code review effort: 3 (Moderate) | ~25 minutes

🚥 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 set: a chain v1.20.3 release with version bumps and related documentation updates.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/release-v1.20.3

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: 3

🤖 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 `@source/json_tables/indexer/injective_tc_derivatives_rpc/MarketsRequest.json`:
- Around line 21-24: Add a clear description to the market_ids parameter in
MarketsRequest, stating that it filters by market IDs.

In
`@source/json_tables/indexer/injective_tc_derivatives_rpc/PerpetualMarketFunding.json`:
- Around line 8-10: Update the Description for the cumulative_price parameter to
remove the duplicated “Defines,” so it reads “Defines the cumulative price...”
before reference documentation generation.

In
`@source/json_tables/indexer/injective_tc_derivatives_rpc/PerpetualMarketInfo.json`:
- Around line 18-20: Update the funding_interval description in
PerpetualMarketInfo to remove the duplicated “in seconds” phrase, using the
wording “Defines the funding interval of a perpetual market in seconds.”
🪄 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: 9081bb7d-f9f3-48da-9e6b-ae4789b34809

📥 Commits

Reviewing files that changed from the base of the PR and between 4caf2cb and 4d24910.

📒 Files selected for processing (18)
  • Makefile
  • source/includes/_errors.md
  • source/json_tables/indexer/injective_derivative_exchange_rpc/DerivativePositionV2.json
  • source/json_tables/indexer/injective_rfq_rpc/ConditionalOrderResponseType.json
  • source/json_tables/indexer/injective_rfq_rpc/ListSettlementRequest.json
  • source/json_tables/indexer/injective_rfq_rpc/StreamSettlementRequest.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/DerivativeMarketInfo.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/DerivativePositionV2.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/ExpiryFuturesMarketInfo.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/MarketsRequest.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/MarketsResponse.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/OpenNotionalCap.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/PerpetualMarketFunding.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/PerpetualMarketInfo.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/StreamTradesRequest.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/TCDerivativeTrade.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/TokenMeta.json
  • source/json_tables/indexer/injective_tc_derivatives_rpc/TradesRequest.json
💤 Files with no reviewable changes (1)
  • source/includes/_errors.md

Comment on lines +21 to +24
"Parameter": "market_ids",
"Type": "string array",
"Description": "",
"Required": "Yes"

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

Document market_ids.

Line 23 is empty, so consumers cannot tell what the array filters. Add a description such as “Filter by market IDs.”

📝 Proposed fix
     "Parameter": "market_ids",
     "Type": "string array",
-    "Description": "",
+    "Description": "Filter by market IDs",
     "Required": "Yes"
📝 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
"Parameter": "market_ids",
"Type": "string array",
"Description": "",
"Required": "Yes"
"Parameter": "market_ids",
"Type": "string array",
"Description": "Filter by market IDs",
"Required": "Yes"
🤖 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 `@source/json_tables/indexer/injective_tc_derivatives_rpc/MarketsRequest.json`
around lines 21 - 24, Add a clear description to the market_ids parameter in
MarketsRequest, stating that it filters by market IDs.

Comment on lines +8 to +10
"Parameter": "cumulative_price",
"Type": "string",
"Description": "Defines defines the cumulative price for the current hour up to the last timestamp."

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

Fix the duplicated word in cumulative_price documentation.

Line 10 renders “Defines defines”; change it to “Defines the cumulative price...” before generating the reference docs.

📝 Proposed fix
-    "Description": "Defines defines the cumulative price for the current hour up to the last timestamp."
+    "Description": "Defines the cumulative price for the current hour up to the last timestamp."
📝 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
"Parameter": "cumulative_price",
"Type": "string",
"Description": "Defines defines the cumulative price for the current hour up to the last timestamp."
"Parameter": "cumulative_price",
"Type": "string",
"Description": "Defines the cumulative price for the current hour up to the last timestamp."
🤖 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
`@source/json_tables/indexer/injective_tc_derivatives_rpc/PerpetualMarketFunding.json`
around lines 8 - 10, Update the Description for the cumulative_price parameter
to remove the duplicated “Defines,” so it reads “Defines the cumulative
price...” before reference documentation generation.

Comment on lines +18 to +20
"Parameter": "funding_interval",
"Type": "int64",
"Description": "Defines the funding interval in seconds of a perpetual market in seconds."

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

Remove the duplicated unit phrase in funding_interval.

Line 20 says “in seconds ... in seconds”; simplify it to “Defines the funding interval of a perpetual market in seconds.”

📝 Proposed fix
-    "Description": "Defines the funding interval in seconds of a perpetual market in seconds."
+    "Description": "Defines the funding interval of a perpetual market in seconds."
📝 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
"Parameter": "funding_interval",
"Type": "int64",
"Description": "Defines the funding interval in seconds of a perpetual market in seconds."
"Parameter": "funding_interval",
"Type": "int64",
"Description": "Defines the funding interval of a perpetual market in seconds."
🤖 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
`@source/json_tables/indexer/injective_tc_derivatives_rpc/PerpetualMarketInfo.json`
around lines 18 - 20, Update the funding_interval description in
PerpetualMarketInfo to remove the duplicated “in seconds” phrase, using the
wording “Defines the funding interval of a perpetual market in seconds.”

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