Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
COSMOS_SDK_VERSION := v0.50.14-inj.11
COSMOS_SDK_REPO := https://github.com/InjectiveLabs/cosmos-sdk.git

INJECTIVE_CORE_VERSION := v1.20.1
INJECTIVE_CORE_VERSION := v1.20.3
INJECTIVE_CORE_REPO := https://github.com/InjectiveLabs/injective-core.git

INDEXER_VERSION := v1.20.49
INDEXER_VERSION := v1.20.89
INDEXER_REPO := https://github.com/InjectiveLabs/injective-indexer.git

IBC_GO_VERSION := v8.7.0-inj.4
Expand All @@ -17,10 +17,10 @@ COMETBFT_REPO := https://github.com/InjectiveLabs/cometbft.git
WASMD_VERSION := v0.53.3-inj.3
WASMD_REPO := https://github.com/InjectiveLabs/wasmd.git

PYTHON_SDK_VERSION := v1.16.0
PYTHON_SDK_VERSION := v1.16.1
PYTHON_SDK_REPO := https://github.com/InjectiveLabs/sdk-python.git

GO_SDK_VERSION := v1.63.0
GO_SDK_VERSION := v1.63.1
GO_SDK_REPO := https://github.com/InjectiveLabs/sdk-go.git

# Temporary directories
Expand Down
3 changes: 2 additions & 1 deletion source/includes/_chainstream.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ Each message contains a list of events that are filtered by the request paramete
<tr ><td class="parameter-td td_text">order_hash</td><td class="type-td td_text">string</td><td class="description-td td_text">the order hash</td></tr>
<tr ><td class="parameter-td td_text">fee_recipient_address</td><td class="type-td td_text">string</td><td class="description-td td_text">the fee recipient address</td></tr>
<tr ><td class="parameter-td td_text">cid</td><td class="type-td td_text">string</td><td class="description-td td_text">the client order ID</td></tr>
<tr ><td class="parameter-td td_text">trade_id</td><td class="type-td td_text">string</td><td class="description-td td_text">the trade ID</td></tr></tbody></table>
<tr ><td class="parameter-td td_text">trade_id</td><td class="type-td td_text">string</td><td class="description-td td_text">the trade ID</td></tr>
<tr ><td class="parameter-td td_text">notional</td><td class="type-td td_text">LegacyDec</td><td class="description-td td_text">the fee-exclusive quote amount actually settled for the trade (in human readable format)</td></tr></tbody></table>
<!-- MARKDOWN-AUTO-DOCS:END -->

<br/>
Expand Down
673 changes: 0 additions & 673 deletions source/includes/_errors.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,25 @@
"Parameter": "upnl",
"Type": "string",
"Description": "Unrealized profit and loss of the position (only present when requested with with_upnl=true)"
},
{
"Parameter": "initial_leverage",
"Type": "string",
"Description": "Leverage at the time the position was opened"
},
{
"Parameter": "initial_margin",
"Type": "string",
"Description": "Margin at the time the position was opened, in USD"
},
{
"Parameter": "initial_entry_price",
"Type": "string",
"Description": "Entry price at the time the position was opened, in USD"
},
{
"Parameter": "initial_quantity",
"Type": "string",
"Description": "Quantity at the time the position was opened"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
{
"Parameter": "terminal_at",
"Type": "int64",
"Description": "Terminal timestamp in milliseconds (set when the order reaches a terminal status: completed, failed, or cancelled)"
"Description": "Terminal timestamp in milliseconds (set when the order reaches a terminal status: completed, failed, cancelled, or expired)"
},
{
"Parameter": "evm_chain_id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"Parameter": "addresses",
"Type": "string array",
"Description": "Filter by taker addresses",
"Description": "Filter by taker or executed maker addresses",
"Required": "Yes"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"Parameter": "addresses",
"Type": "string array",
"Description": "Filter by addresses",
"Description": "Filter by taker or executed maker addresses",
"Required": "Yes"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
[
{
"Parameter": "market_id",
"Type": "string",
"Description": "DerivativeMarket ID is crypto.Keccak256Hash([]byte((oracleType.String() + ticker + quoteDenom + oracleBase + oracleQuote))) for perpetual markets and crypto.Keccak256Hash([]byte((oracleType.String() + ticker + quoteDenom + oracleBase + oracleQuote + strconv.Itoa(int(expiry))))) for expiry futures markets"
},
{
"Parameter": "market_status",
"Type": "string",
"Description": "The status of the market"
},
{
"Parameter": "ticker",
"Type": "string",
"Description": "A name of the pair in format AAA/BBB, where AAA is base asset, BBB is quote asset."
},
{
"Parameter": "oracle_base",
"Type": "string",
"Description": "Oracle base currency"
},
{
"Parameter": "oracle_quote",
"Type": "string",
"Description": "Oracle quote currency"
},
{
"Parameter": "oracle_type",
"Type": "string",
"Description": "Oracle Type"
},
{
"Parameter": "oracle_scale_factor",
"Type": "uint32",
"Description": "OracleScaleFactor"
},
{
"Parameter": "initial_margin_ratio",
"Type": "string",
"Description": "Defines the initial margin ratio of a derivative market"
},
{
"Parameter": "maintenance_margin_ratio",
"Type": "string",
"Description": "Defines the maintenance margin ratio of a derivative market"
},
{
"Parameter": "quote_denom",
"Type": "string",
"Description": "Coin denom used for the quote asset."
},
{
"Parameter": "quote_token_meta",
"Type": "TokenMeta",
"Description": "Token metadata for quote asset"
},
{
"Parameter": "maker_fee_rate",
"Type": "string",
"Description": "Defines the fee percentage makers pay when trading (in quote asset)"
},
{
"Parameter": "taker_fee_rate",
"Type": "string",
"Description": "Defines the fee percentage takers pay when trading (in quote asset)"
},
{
"Parameter": "service_provider_fee",
"Type": "string",
"Description": "Percentage of the transaction fee shared with the service provider"
},
{
"Parameter": "is_perpetual",
"Type": "bool",
"Description": "True if the market is a perpetual swap market"
},
{
"Parameter": "min_price_tick_size",
"Type": "string",
"Description": "Defines the minimum required tick size for the order's price"
},
{
"Parameter": "min_quantity_tick_size",
"Type": "string",
"Description": "Defines the minimum required tick size for the order's quantity"
},
{
"Parameter": "perpetual_market_info",
"Type": "PerpetualMarketInfo",
"Description": ""
},
{
"Parameter": "perpetual_market_funding",
"Type": "PerpetualMarketFunding",
"Description": ""
},
{
"Parameter": "expiry_futures_market_info",
"Type": "ExpiryFuturesMarketInfo",
"Description": ""
},
{
"Parameter": "min_notional",
"Type": "string",
"Description": "Minimum notional value for the order"
},
{
"Parameter": "reduce_margin_ratio",
"Type": "string",
"Description": "Defines the reduce margin ratio of a derivative market"
},
{
"Parameter": "open_notional_cap",
"Type": "OpenNotionalCap",
"Description": "The open notional cap of the market, if any"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,25 @@
"Parameter": "upnl",
"Type": "string",
"Description": "Unrealized profit and loss of the position (only present when requested with with_upnl=true)"
},
{
"Parameter": "initial_leverage",
"Type": "string",
"Description": "Leverage at the time the position was opened"
},
{
"Parameter": "initial_margin",
"Type": "string",
"Description": "Margin at the time the position was opened, in USD"
},
{
"Parameter": "initial_entry_price",
"Type": "string",
"Description": "Entry price at the time the position was opened, in USD"
},
{
"Parameter": "initial_quantity",
"Type": "string",
"Description": "Quantity at the time the position was opened"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"Parameter": "expiration_timestamp",
"Type": "int64",
"Description": "Defines the expiration time for a time expiry futures market in UNIX seconds."
},
{
"Parameter": "settlement_price",
"Type": "string",
"Description": "Defines the settlement price for a time expiry futures market."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"Parameter": "market_status",
"Type": "string",
"Description": "Filter by market status",
"Required": "Yes"
},
{
"Parameter": "quote_denom",
"Type": "string",
"Description": "Filter by the Coin denomination of the quote currency",
"Required": "Yes"
},
{
"Parameter": "market_statuses",
"Type": "string array",
"Description": "Filter by multiple market statuses",
"Required": "Yes"
},
{
"Parameter": "market_ids",
"Type": "string array",
"Description": "",
"Required": "Yes"
Comment on lines +21 to +24

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.

},
{
"Parameter": "per_page",
"Type": "int32",
"Description": "Number of results per page",
"Required": "Yes"
},
{
"Parameter": "token",
"Type": "string",
"Description": "Pagination token",
"Required": "Yes"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"Parameter": "markets",
"Type": "DerivativeMarketInfo array",
"Description": "Derivative Markets list"
},
{
"Parameter": "next",
"Type": "string array",
"Description": "Next tokens for pagination"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"Parameter": "cap",
"Type": "string",
"Description": "The open notional cap of the market"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"Parameter": "cumulative_funding",
"Type": "string",
"Description": "Defines the cumulative funding of a perpetual market."
},
{
"Parameter": "cumulative_price",
"Type": "string",
"Description": "Defines defines the cumulative price for the current hour up to the last timestamp."
Comment on lines +8 to +10

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.

},
{
"Parameter": "last_timestamp",
"Type": "int64",
"Description": "Defines the last funding timestamp in seconds of a perpetual market in UNIX seconds."
},
{
"Parameter": "last_funding_rate",
"Type": "string",
"Description": "Defines the last funding rate of a perpetual market."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"Parameter": "hourly_funding_rate_cap",
"Type": "string",
"Description": "Defines the default maximum absolute value of the hourly funding rate of the perpetual market."
},
{
"Parameter": "hourly_interest_rate",
"Type": "string",
"Description": "Defines the hourly interest rate of the perpetual market."
},
{
"Parameter": "next_funding_timestamp",
"Type": "int64",
"Description": "Defines the next funding timestamp in seconds of a perpetual market in UNIX seconds."
},
{
"Parameter": "funding_interval",
"Type": "int64",
"Description": "Defines the funding interval in seconds of a perpetual market in seconds."
Comment on lines +18 to +20

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.”

}
]
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,11 @@
"Type": "string",
"Description": "filter synthetic trades by RFQ maker address (only emits maker-side synthetic trades whose rfqMaker equals this address)",
"Required": "Yes"
},
{
"Parameter": "participant",
"Type": "string",
"Description": "filter trades including the address as trade account, RFQ maker, or RFQ proxy participant",
"Required": "Yes"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,16 @@
{
"Parameter": "rfq_id",
"Type": "uint64",
"Description": "RFQ identifier the synthetic trade was settled under (set only on synthetic trades coming from an RFQ settlement)"
"Description": "RFQ identifier associated with this trade. Set on synthetic RFQ settlement trades and on trades attributed to an atomic RFQ proxy execution; presence alone does not mean the trade is a settlement fill."
},
{
"Parameter": "tx_hash",
"Type": "string",
"Description": "Transaction hash where the trade was executed"
},
{
"Parameter": "rfq_participant",
"Type": "string",
"Description": "RFQ participant address attributed through atomic RFQ proxy execution"
}
]
Loading
Loading