Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

Generated substreams packages were missing package.url and package.description fields, causing warnings during substreams build.

Changes

Added helper methods in base_state.go:

  • GetPackageURL(): Returns https://github.com/username/{Name}-{ChainName}
  • GetPackageDescription(): Returns Substreams module for {Name} on {ChainDisplayName}

Updated all 19 substreams.yaml.gotmpl templates to include:

package:
  name: {{ .GetModuleName }}
  version: v0.1.0
  url: {{ .GetPackageURL }}
  description: {{ .GetPackageDescription }}

Example Output

For project "my-project" on mainnet:

package:
  name: my_project
  version: v0.1.0
  url: https://github.com/username/my-project-mainnet
  description: Substreams module for my-project on Ethereum Mainnet

Affected Generators

All generators updated: evm-hello-world, evm-events-calls, evm-events-calls-raw (+ SQL variants), injective-events, injective-hello-world, mantra-events, mantra-hello-world, near-hello-world, sol-transactions, sol-anchor, sol-hello-world, starknet-events, starknet-hello-world, stellar-minimal, stellar-transactions-operations, tron-hello-world, tron-transactions.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 13, 2026 15:15
Co-authored-by: maoueh <123014+maoueh@users.noreply.github.com>
Co-authored-by: maoueh <123014+maoueh@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix warnings on package created in substreams code generators Add URL and description fields to generated substreams packages (BLO-808) Jan 13, 2026
Copilot AI requested a review from maoueh January 13, 2026 15:23
@maoueh maoueh marked this pull request as ready for review January 13, 2026 16:05
@maoueh maoueh merged commit c66b640 into develop Jan 13, 2026
1 check passed
@maoueh maoueh deleted the copilot/fix-blo-808-package-warnings branch January 13, 2026 16:06
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.

2 participants