-
Notifications
You must be signed in to change notification settings - Fork 5
[IC-988] Update API docs for v1.19.0 chain upgrade #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -135,7 +135,10 @@ get_type() { | |||||||||||||||||||||||||||||||||||||||||
| if [[ $type =~ ^\[(.*)\](.*)$ ]]; then | ||||||||||||||||||||||||||||||||||||||||||
| local base_type="${BASH_REMATCH[1]}" | ||||||||||||||||||||||||||||||||||||||||||
| local remaining="${BASH_REMATCH[2]}" | ||||||||||||||||||||||||||||||||||||||||||
| remaining="${remaining##*.}" | ||||||||||||||||||||||||||||||||||||||||||
| type="$base_type$remaining array" | ||||||||||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||||||||||
| type="${type##*.}" | ||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||
| echo "$type" | ||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -444,13 +447,13 @@ process_repository_modules() { | |||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| if [ -d "$module_dir/types" ]; then | ||||||||||||||||||||||||||||||||||||||||||
| process_types_directory "$module_dir/types" "$output_dir" "$module_name" | ||||||||||||||||||||||||||||||||||||||||||
| else | ||||||||||||||||||||||||||||||||||||||||||
| # Check if module has .pb.go files in the main directory | ||||||||||||||||||||||||||||||||||||||||||
| if compgen -G "$module_dir/*.pb.go" > /dev/null 2>&1; then | ||||||||||||||||||||||||||||||||||||||||||
| echo "Processing module with direct .pb.go files: $module_name" | ||||||||||||||||||||||||||||||||||||||||||
| mkdir -p "$output_dir/$module_name" | ||||||||||||||||||||||||||||||||||||||||||
| process_directory "$module_dir" "$output_dir/$module_name" | ||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||
| elif compgen -G "$module_dir/*.pb.go" > /dev/null 2>&1; then | ||||||||||||||||||||||||||||||||||||||||||
| echo "Processing module with direct .pb.go files: $module_name" | ||||||||||||||||||||||||||||||||||||||||||
| mkdir -p "$output_dir/$module_name" | ||||||||||||||||||||||||||||||||||||||||||
| process_directory "$module_dir" "$output_dir/$module_name" | ||||||||||||||||||||||||||||||||||||||||||
| elif find "$module_dir" -name "*.pb.go" -type f | head -1 | grep -q .; then | ||||||||||||||||||||||||||||||||||||||||||
| echo "Processing namespace directory: $module_name" | ||||||||||||||||||||||||||||||||||||||||||
| process_repository_modules "$module_dir" "$output_dir/$module_name" | ||||||||||||||||||||||||||||||||||||||||||
| fi | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+450
to
457
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Module traversal can miss files due branch structure and brittle pipeline. Two issues in this block:
🔧 Proposed fix- elif compgen -G "$module_dir/*.pb.go" > /dev/null 2>&1; then
- echo "Processing module with direct .pb.go files: $module_name"
- mkdir -p "$output_dir/$module_name"
- process_directory "$module_dir" "$output_dir/$module_name"
- elif find "$module_dir" -name "*.pb.go" -type f | head -1 | grep -q .; then
- echo "Processing namespace directory: $module_name"
- process_repository_modules "$module_dir" "$output_dir/$module_name"
+ elif compgen -G "$module_dir/*.pb.go" > /dev/null 2>&1; then
+ echo "Processing module with direct .pb.go files: $module_name"
+ mkdir -p "$output_dir/$module_name"
+ process_directory "$module_dir" "$output_dir/$module_name"
+ if find "$module_dir" -mindepth 2 -type f -name "*.pb.go" -print -quit | grep -q .; then
+ echo "Processing namespace directory: $module_name"
+ process_repository_modules "$module_dir" "$output_dir/$module_name"
+ fi
+ elif find "$module_dir" -type f -name "*.pb.go" -print -quit | grep -q .; then
+ echo "Processing namespace directory: $module_name"
+ process_repository_modules "$module_dir" "$output_dir/$module_name"
fi📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||
| done | ||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: InjectiveLabs/api-exchange-docs
Length of output: 1622
🏁 Script executed:
Repository: InjectiveLabs/api-exchange-docs
Length of output: 1151
Two dependency repositories do not exist on GitHub and will cause build failures.
Verification of dependency version tags reveals a critical issue: the repositories for
injective-core(v1.19.0) andinjective-indexer(v1.19.0) return 404 Not Found errors and cannot be accessed. The following six repositories were successfully verified:Correct the URLs for
INJECTIVE_CORE_REPOandINDEXER_REPOor verify if these repositories have been renamed or moved to a different organization.🤖 Prompt for AI Agents