Skip to content

Conversation

@midas-myth
Copy link
Contributor

@midas-myth midas-myth commented Dec 23, 2025

Note

Introduces automated token config generation and broadens analytics schema.

  • Adds scripts/generate-platform-tokens.ts to scan LayerZero deployments and output src/config/static/platformTokens.json (groups by mainnet/testnet, normalizes addresses, derives symbols)
  • Extends Subsquid GraphQL types in sdk/src/types/subsquid.ts:
    • New fields on PositionChange (orderKey, positionKey, sizeInTokens) with corresponding filters/sorts
    • New entities and connections: PositionVolumeInfo, SwapFeesInfo, SwapVolumeInfo, VolumeInfo with query args, orderBy, and where inputs
  • Updates src/config/static/platformTokens.json with additional GM/GLV entries across chains

Written by Cursor Bugbot for commit 53b4df8. This will update automatically on new commits. Configure here.

…ments; update platformTokens.json with new token entries for BTC and WETH
@midas-myth midas-myth self-assigned this Dec 23, 2025
@cloudflare-workers-and-pages
Copy link

Deploying gmx-interface with  Cloudflare Pages  Cloudflare Pages

Latest commit: 53b4df8
Status: ✅  Deploy successful!
Preview URL: https://fe30d590.gmx-interface.pages.dev
Branch Preview URL: https://fedev-3200-single-side-pools.gmx-interface.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link

Deploying gmx-interface-home with  Cloudflare Pages  Cloudflare Pages

Latest commit: 53b4df8
Status: ✅  Deploy successful!
Preview URL: https://76cb1a24.gmx-interface-home.pages.dev
Branch Preview URL: https://fedev-3200-single-side-pools.gmx-interface-home.pages.dev

View logs

@midas-myth
Copy link
Contributor Author

midas-myth commented Dec 23, 2025

@cursor review

@cursor
Copy link

cursor bot commented Dec 23, 2025

Please finish setting up background agents. Go to Cursor

@midas-myth
Copy link
Contributor Author

@cursor review

fs.writeFileSync(outputPath, JSON.stringify(platformTokens, null, 2) + "\n", "utf8");

console.log(`\n✓ Generated platform tokens JSON at: ${outputPath}`);
console.log(`✓ Found ${Object.keys(platformTokens).length} token symbols`);
Copy link

Choose a reason for hiding this comment

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

Summary statistics count wrong object keys

The summary statistics report incorrect values. Object.keys(platformTokens).length always returns 2 (the keys mainnets and testnets), not the number of token symbols. Additionally, line 274 counts token symbols rather than chain entries despite the log message claiming "Total chain entries". The correct count for token symbols would sum keys from both platformTokens.mainnets and platformTokens.testnets, and chain entries would require iterating one level deeper.

Additional Locations (1)

Fix in Cursor Fix in Web

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