Skip to content
Merged
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
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Repository versions and URLs
COSMOS_SDK_VERSION := v0.50.13-evm-comet1-inj.3
COSMOS_SDK_VERSION := v0.50.13-evm-comet1-inj.6
COSMOS_SDK_REPO := https://github.com/InjectiveLabs/cosmos-sdk.git

INJECTIVE_CORE_VERSION := v1.16.0
INJECTIVE_CORE_VERSION := v1.16.4
INJECTIVE_CORE_REPO := https://github.com/InjectiveLabs/injective-core.git

INDEXER_VERSION := v1.16.54
INDEXER_VERSION := v1.16.91
INDEXER_REPO := https://github.com/InjectiveLabs/injective-indexer.git

PYTHON_SDK_VERSION := v1.11.0
PYTHON_SDK_VERSION := v1.11.2
PYTHON_SDK_REPO := https://github.com/InjectiveLabs/sdk-python.git

GO_SDK_VERSION := v1.58.0
GO_SDK_VERSION := v1.58.3
GO_SDK_REPO := https://github.com/InjectiveLabs/sdk-go.git
Comment on lines +2 to 15
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

🧩 Analysis chain

Version bumps LGTM; verify tags exist

Confirm these tags exist and are published.


🏁 Script executed:

#!/bin/bash
echo "Checking tags..."
for repo ver in \
  "https://github.com/InjectiveLabs/cosmos-sdk.git v0.50.13-evm-comet1-inj.6" \
  "https://github.com/InjectiveLabs/injective-core.git v1.16.4" \
  "https://github.com/InjectiveLabs/injective-indexer.git v1.16.91" \
  "https://github.com/InjectiveLabs/sdk-python.git v1.11.2" \
  "https://github.com/InjectiveLabs/sdk-go.git v1.58.3"
do
  set -- $repo $ver
done

Length of output: 123


🏁 Script executed:

#!/bin/bash
echo "Checking tags..."
repos=(
  "https://github.com/InjectiveLabs/cosmos-sdk.git v0.50.13-evm-comet1-inj.6"
  "https://github.com/InjectiveLabs/injective-core.git v1.16.4"
  "https://github.com/InjectiveLabs/injective-indexer.git v1.16.91"
  "https://github.com/InjectiveLabs/sdk-python.git v1.11.2"
  "https://github.com/InjectiveLabs/sdk-go.git v1.58.3"
)
for entry in "${repos[@]}"; do
  url=${entry% *}
  tag=${entry##* }
  echo -n "  $tag in $url: "
  if git ls-remote --exit-code --tags "$url" "refs/tags/$tag" >/dev/null 2>&1; then
    echo "found"
  else
    echo "missing"
  fi
done

Length of output: 386


Publish missing tags
injective-core v1.16.4 and injective-indexer v1.16.91 aren’t found in their GitHub repos. Ensure those tags are created or update the Makefile to reference existing versions.

🤖 Prompt for AI Agents
In Makefile around lines 2 to 15, the referenced tags injective-core v1.16.4 and
injective-indexer v1.16.91 do not exist in their GitHub repos; either create and
push those missing tags in the respective repos or update the Makefile to point
to valid, existing release tags (verify with git ls-remote or the GitHub
releases API), then update the INJECTIVE_CORE_VERSION and INDEXER_VERSION
variables to the confirmed tags and run the build to ensure the references
resolve.


# Temporary directories
Expand Down
2 changes: 1 addition & 1 deletion source/includes/_binaryoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func main() {
OracleSymbol: "UFC-KHABIB-TKO-05/30/2023",
OracleProvider: "UFC",
OracleType: oracletypes.OracleType_Provider,
OracleScaleFactor: 6,
OracleScaleFactor: 0,
MakerFeeRate: math.LegacyMustNewDecFromStr("0.0005"),
TakerFeeRate: math.LegacyMustNewDecFromStr("0.0010"),
ExpirationTimestamp: 1680730982,
Expand Down
6 changes: 5 additions & 1 deletion source/includes/_chainexchange.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,18 @@ func main() {
```
<!-- MARKDOWN-AUTO-DOCS:END -->

<!-- MARKDOWN-AUTO-DOCS:START (JSON_TO_HTML_TABLE:src=./source/json_tables/injective/exchange/v2/QuerySubaccountDepositsRequest.json -->
<!-- MARKDOWN-AUTO-DOCS:START (JSON_TO_HTML_TABLE:src=./source/json_tables/injective/exchange/v2/QuerySubaccountDepositsRequest.json) -->
<table class="JSON-TO-HTML-TABLE"><thead><tr><th class="parameter-th">Parameter</th><th class="type-th">Type</th><th class="description-th">Description</th><th class="required-th">Required</th></tr></thead><tbody ><tr ><td class="parameter-td td_text">subaccount_id</td><td class="type-td td_text">string</td><td class="description-td td_text">the subaccount ID</td><td class="required-td td_text">Yes</td></tr>
<tr ><td class="parameter-td td_text">subaccount</td><td class="type-td td_text">Subaccount</td><td class="description-td td_text">the subaccount details</td><td class="required-td td_text">No</td></tr></tbody></table>
<!-- MARKDOWN-AUTO-DOCS:END -->

<br/>

**Subaccount**

<!-- MARKDOWN-AUTO-DOCS:START (JSON_TO_HTML_TABLE:src=./source/json_tables/injective/exchange/v2/Subaccount.json) -->
<table class="JSON-TO-HTML-TABLE"><thead><tr><th class="parameter-th">Parameter</th><th class="type-th">Type</th><th class="description-th">Description</th></tr></thead><tbody ><tr ><td class="parameter-td td_text">trader</td><td class="type-td td_text">string</td><td class="description-td td_text">the subaccount's trader address</td></tr>
<tr ><td class="parameter-td td_text">subaccount_nonce</td><td class="type-td td_text">uint32</td><td class="description-td td_text">the subaccount's nonce number</td></tr></tbody></table>
<!-- MARKDOWN-AUTO-DOCS:END -->

### Response Parameters
Expand Down
146 changes: 86 additions & 60 deletions source/includes/_chainstream.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions source/includes/_changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 2025-09-24
- Updated all messages to reflect the changes included in the chain version 1.16.4, and the Indexer for that chain version
- Python SDK v1.11.2
- Go SDK v1.58.3

## 2025-07-29
- Updated all messages to reflect the changes included in the chain version 1.16, and the Indexer for that chain version
- Added documentation for `erc20` modules endpoints
Expand Down
8 changes: 4 additions & 4 deletions source/includes/_derivatives.md
Original file line number Diff line number Diff line change
Expand Up @@ -3407,7 +3407,7 @@ async def main() -> None:
quote_denom="factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/usdc",
oracle_base="INJ",
oracle_quote="USDC",
oracle_scale_factor=6,
oracle_scale_factor=0,
oracle_type="Band",
maker_fee_rate=Decimal("-0.0001"),
taker_fee_rate=Decimal("0.001"),
Expand Down Expand Up @@ -3514,7 +3514,7 @@ func main() {
QuoteDenom: "factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/usdc",
OracleBase: "INJ",
OracleQuote: "USDC",
OracleScaleFactor: 6,
OracleScaleFactor: 0,
OracleType: oracletypes.OracleType_Band,
MakerFeeRate: math.LegacyMustNewDecFromStr("-0.0001"),
TakerFeeRate: math.LegacyMustNewDecFromStr("0.001"),
Expand Down Expand Up @@ -3682,7 +3682,7 @@ async def main() -> None:
quote_denom="factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/usdc",
oracle_base="INJ",
oracle_quote="USDC",
oracle_scale_factor=6,
oracle_scale_factor=0,
oracle_type="Band",
expiry=2000000000,
maker_fee_rate=Decimal("-0.0001"),
Expand Down Expand Up @@ -3789,7 +3789,7 @@ func main() {
QuoteDenom: "factory/inj17vytdwqczqz72j65saukplrktd4gyfme5agf6c/usdc",
OracleBase: "INJ",
OracleQuote: "USDC",
OracleScaleFactor: 6,
OracleScaleFactor: 0,
OracleType: oracletypes.OracleType_Band,
Expiry: 2000000000,
MakerFeeRate: math.LegacyMustNewDecFromStr("-0.0001"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"Parameter": "id",
"Type": "uint64",
"Description": ""
},
{
"Parameter": "round",
"Type": "uint64",
"Description": ""
},
{
"Parameter": "amount_deposited",
"Type": "string",
"Description": ""
},
{
"Parameter": "is_claimable",
"Type": "bool",
"Description": "Whether the auction rewards can be claimed."
},
{
"Parameter": "claimed_assets",
"Type": "ClaimedAssets array",
"Description": ""
}
Comment on lines +3 to +26
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fill missing descriptions and align terminology

Several descriptions are empty, which degrades the docs. Propose concise, informative text.

   {
     "Parameter": "id",
     "Type": "uint64",
-    "Description": ""
+    "Description": "Unique identifier of the account’s auction participation."
   },
   {
     "Parameter": "round",
     "Type": "uint64",
-    "Description": ""
+    "Description": "Auction round number."
   },
   {
     "Parameter": "amount_deposited",
     "Type": "string",
-    "Description": ""
+    "Description": "Amount deposited by the account (string‑encoded)."
   },
   {
     "Parameter": "is_claimable",
     "Type": "bool",
     "Description": "Whether the auction rewards can be claimed."
   },
   {
     "Parameter": "claimed_assets",
     "Type": "ClaimedAssets array",
-    "Description": ""
+    "Description": "List of assets already claimed by the account."
   }

Also ensure the request type for round matches this file (see note in AuctionV2Request.json).

📝 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": "id",
"Type": "uint64",
"Description": ""
},
{
"Parameter": "round",
"Type": "uint64",
"Description": ""
},
{
"Parameter": "amount_deposited",
"Type": "string",
"Description": ""
},
{
"Parameter": "is_claimable",
"Type": "bool",
"Description": "Whether the auction rewards can be claimed."
},
{
"Parameter": "claimed_assets",
"Type": "ClaimedAssets array",
"Description": ""
}
{
"Parameter": "id",
"Type": "uint64",
"Description": "Unique identifier of the account’s auction participation."
},
{
"Parameter": "round",
"Type": "uint64",
"Description": "Auction round number."
},
{
"Parameter": "amount_deposited",
"Type": "string",
"Description": "Amount deposited by the account (string-encoded)."
},
{
"Parameter": "is_claimable",
"Type": "bool",
"Description": "Whether the auction rewards can be claimed."
},
{
"Parameter": "claimed_assets",
"Type": "ClaimedAssets array",
"Description": "List of assets already claimed by the account."
}

]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"Parameter": "address",
"Type": "string",
"Description": "Address of account",
"Required": "Yes"
},
{
"Parameter": "per_page",
"Type": "int32",
"Description": "",
"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": "auctions",
"Type": "AccountAuctionV2 array",
"Description": "The historical auctions"
},
{
"Parameter": "next",
"Type": "string array",
"Description": "Next tokens for pagination"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
"Parameter": "updated_at",
"Type": "int64",
"Description": "UpdatedAt timestamp in UNIX millis."
},
{
"Parameter": "contract",
"Type": "AuctionContract",
"Description": ""
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"Parameter": "id",
"Type": "uint64",
"Description": ""
},
{
"Parameter": "bid_target",
"Type": "string",
"Description": "Bid target of the auction"
},
{
"Parameter": "current_slots",
"Type": "uint64",
"Description": "Total slots of the auction"
},
{
"Parameter": "total_slots",
"Type": "uint64",
"Description": "Total slots of the auction"
},
Comment on lines +13 to +21
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix mismatch in slots descriptions.

current_slots should not have the same description as total_slots.

-    "Description": "Total slots of the auction"
+    "Description": "Current filled slots of the auction"
@@
-    "Description": "Total slots of the auction"
+    "Description": "Total available slots of the auction"
📝 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": "current_slots",
"Type": "uint64",
"Description": "Total slots of the auction"
},
{
"Parameter": "total_slots",
"Type": "uint64",
"Description": "Total slots of the auction"
},
"Parameter": "current_slots",
"Type": "uint64",
"Description": "Current filled slots of the auction"
},
{
"Parameter": "total_slots",
"Type": "uint64",
"Description": "Total available slots of the auction"
},
🤖 Prompt for AI Agents
In source/json_tables/indexer_new/injective_auction_rpc/AuctionContract.json
around lines 13 to 21, the "Description" for "current_slots" incorrectly
duplicates the "total_slots" text; update the "current_slots" description to
reflect its actual meaning (e.g., indicate current filled or available slots in
the auction such as "Number of slots currently filled" or "Number of slots
currently allocated") so it differs from "total_slots" which should remain
"Total slots of the auction".

{
"Parameter": "max_user_allocation",
"Type": "string",
"Description": "Max user allocation of the auction"
},
{
"Parameter": "total_committed",
"Type": "string",
"Description": "Total committed amount of the auction"
},
{
"Parameter": "whitelist_addresses",
"Type": "string array",
"Description": "Whitelist addresses for the auction"
},
{
"Parameter": "start_timestamp",
"Type": "uint64",
"Description": "Auction start timestamp in UNIX millis."
},
{
"Parameter": "end_timestamp",
"Type": "uint64",
"Description": "Auction end timestamp in UNIX millis."
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"Parameter": "round",
"Type": "int64",
"Description": "The auction round number.",
"Required": "Yes"
}
Comment on lines +3 to +7
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Type mismatch with AccountAuctionV2.round (uint64 vs int64)

AccountAuctionV2.json defines round as uint64, but this request uses int64. Align types to avoid client confusion and codegen inconsistencies.

   {
     "Parameter": "round",
-    "Type": "int64",
+    "Type": "uint64",
     "Description": "The auction round number.",
     "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": "round",
"Type": "int64",
"Description": "The auction round number.",
"Required": "Yes"
}
{
"Parameter": "round",
"Type": "uint64",
"Description": "The auction round number.",
"Required": "Yes"
}
🤖 Prompt for AI Agents
In source/json_tables/indexer_new/injective_auction_rpc/AuctionV2Request.json
around lines 3 to 7, the "Type" for the "round" parameter is declared as "int64"
while AccountAuctionV2.json uses "uint64"; change the "Type" to "uint64" to
match AccountAuctionV2.round, ensure the "Description" and "Required" fields
remain accurate, and scan other related request/response schema files for any
similar mismatches; after updating, run the schema validation/codegen and tests
to confirm no downstream breakage.

]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"Parameter": "auction",
"Type": "Auction",
"Description": "The auction"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"Parameter": "per_page",
"Type": "int32",
"Description": "",
"Required": "Yes"
},
{
"Parameter": "token",
"Type": "string",
"Description": "Pagination token",
"Required": "Yes"
},
{
"Parameter": "end_time",
"Type": "int64",
"Description": "The ending timestamp in UNIX milliseconds to filter the auctions",
"Required": "Yes"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"Parameter": "auctions",
"Type": "Auction array",
"Description": "The historical auctions"
},
{
"Parameter": "next",
"Type": "string array",
"Description": "Next tokens for pagination"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"Parameter": "denom",
"Type": "string",
"Description": ""
},
{
"Parameter": "amount",
"Type": "string",
"Description": ""
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
"Parameter": "timestamp",
"Type": "int64",
"Description": "Last update timestamp in UNIX millis."
},
{
"Parameter": "height",
"Type": "int64",
"Description": "Block height at which the orderbook was last updated."
}
]
17 changes: 17 additions & 0 deletions source/json_tables/indexer_new/injective_megavault_rpc/Apr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"Parameter": "value",
"Type": "string",
"Description": "APR value"
},
{
"Parameter": "original_lp_price",
"Type": "string",
"Description": "Original LP price"
},
{
"Parameter": "current_lp_price",
"Type": "string",
"Description": "Current LP price"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"Parameter": "thirty_days",
"Type": "Apr",
"Description": "30-day APR"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"Parameter": "vault_address",
"Type": "string",
"Description": "Vault address",
"Required": "Yes"
},
{
"Parameter": "operator_address",
"Type": "string",
"Description": "Operator address",
"Required": "Yes"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"Parameter": "buckets",
"Type": "RedemptionBucket array",
"Description": "The redemption buckets"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"Parameter": "vault_address",
"Type": "string",
"Description": "Vault address",
"Required": "Yes"
},
{
"Parameter": "user_address",
"Type": "string",
"Description": "User address",
"Required": "Yes"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"Parameter": "user",
"Type": "User",
"Description": "The user"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"Parameter": "vault_address",
"Type": "string",
"Description": "Vault address",
"Required": "Yes"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"Parameter": "t",
"Type": "int32",
"Description": "Time, Unix timestamp in milliseconds (UTC)"
},
Comment on lines +3 to +6
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Use int64 for millisecond timestamps.

Unix time in milliseconds does not fit in int32. This will be rendered incorrectly.

-    "Type": "int32",
+    "Type": "int64",
📝 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": "t",
"Type": "int32",
"Description": "Time, Unix timestamp in milliseconds (UTC)"
},
"Parameter": "t",
"Type": "int64",
"Description": "Time, Unix timestamp in milliseconds (UTC)"
},
🤖 Prompt for AI Agents
In source/json_tables/indexer_new/injective_megavault_rpc/HistoricalPnL.json
around lines 3 to 6, the field "t" is typed as int32 but represents Unix time in
milliseconds which can exceed int32; change the Type from "int32" to "int64" in
the JSON schema and update any related schema docs/consumers (parsers,
serializers, validators, and tests) to use 64-bit integers so timestamps are
encoded/decoded correctly.

{
"Parameter": "v",
"Type": "string",
"Description": "PnL Value"
}
]
Loading