Skip to content

feat: add tokenized equities token list - #224

Open
iamvukasin wants to merge 10 commits into
mainfrom
feat/equities-token-list
Open

iamvukasin wants to merge 10 commits into
mainfrom
feat/equities-token-list

Conversation

@iamvukasin

Copy link
Copy Markdown
Collaborator

Add tokenlist-equities.json, a separate list of tokenized stocks and ETFs on Monad, generated weekly from issuer sources (xStocks and Anchored) and published as @monad-crypto/equities-token-list.

  • scripts/sync_equities.py builds the list: addresses, logos and cross-chain deployments come from each issuer, name/symbol/decimals are read on-chain, CoinGecko IDs are matched by address. Issuers fail independently and keep their previous tokens.
  • scripts/validate_equities.py checks the list's structure (CI) and, without --skip-onchain, compares metadata with the chain.
  • Versioning, diffing and writing move from generate_token_list_file.py to utils/token_list.py, shared by both lists.
  • npm/ becomes a pnpm workspace with token-list and equities packages sharing codegen; publishing and signed PR creation move into composite actions.
  • New Sync Equities and Release Equities workflows.

@iamvukasin
iamvukasin requested review from a team October 15, 2026 15:44
@Im-Madhur-Gupta

Copy link
Copy Markdown

Verified commit dde8c44c2ab079f4d46e808821eac3b9d1848410 on 2026-10-15.

  • Compared 2,914 xStocks entries with the public assets API, across all pages.
  • Compared 80 Anchored entries with the published token addresses. This check used Anchored's public documentation.
  • All 2,994 address and symbol pairs matched the issuer sources. No entries were missing or extra.
  • Read name, symbol, and decimals from all 2,994 contracts on Monad mainnet. Every value matched the list.
  • All current PR CI checks passed.

Comment thread scripts/equity_sources/anchored.py Resolved

@Im-Madhur-Gupta Im-Madhur-Gupta left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

gimme-shelter
gimme-shelter previously approved these changes Oct 16, 2026
@iamvukasin
iamvukasin force-pushed the feat/equities-token-list branch from a9e2a12 to 6ace7c8 Compare October 27, 2026 12:31
Add tokenlist-equities.json, a separate list of tokenized stocks and ETFs on
Monad, generated weekly from issuer sources (xStocks and Anchored) and
published as @monad-crypto/equities-token-list.

- scripts/sync_equities.py builds the list: addresses, logos and cross-chain
  deployments come from each issuer, name/symbol/decimals are read on-chain,
  CoinGecko IDs are matched by address. Issuers fail independently and keep
  their previous tokens.
- scripts/validate_equities.py checks the list's structure (CI) and, without
  --skip-onchain, compares metadata with the chain.
- Versioning, diffing and writing move from generate_token_list_file.py to
  utils/token_list.py, shared by both lists.
- npm/ becomes a pnpm workspace with token-list and equities packages sharing
  codegen; publishing and signed PR creation move into composite actions.
- New Sync Equities and Release Equities workflows.
- Anchored: verify each cross-chain address on-chain by comparing symbol()
  on Ethereum, Base and Arbitrum, dropping addresses that do not match;
  follow redirects when checking logos; note why the funds table is skipped.
- Check duplicates per issuer in build_source_tokens, so one issuer's bad
  rows no longer block the others; the global check stays for duplicates
  across issuers.
- load_existing_token_list raises on an unreadable or non-object file
  instead of returning None, which restarted the version at 1.0.0.
- compare_tokens sorts symbols so change reports are stable between runs.
- Sync Equities runs validate_equities.py --skip-onchain before opening the
  PR, since PRs opened with GITHUB_TOKEN do not trigger CI.
A commit that updates a token list without its package.json (e.g. a local
sync) left the manifest version stale, so the registry check saw it as
already published and skipped the build, publish and tag. Run codegen first
so the check, publish and tag all use the list's version.
find_deployed_addresses discarded the metadata error map, so an RPC timeout
silently dropped valid cross-chain addresses. An address is now dropped only
when its symbol is read and differs, or its read fails and eth_getCode
(with retry, via the new fetch_code_with_retry) returns empty code. Any
other failure raises RuntimeError, so the sync keeps the previous Anchored
tokens. The dropped-chain log lists chains in check order.
@iamvukasin
iamvukasin force-pushed the feat/equities-token-list branch from 6ace7c8 to de26902 Compare October 28, 2026 11:21
QEDK
QEDK previously approved these changes Oct 28, 2026

@QEDK QEDK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

gimme-shelter
gimme-shelter previously approved these changes Oct 30, 2026
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.

5 participants