{"id":20138313,"url":"https://github.com/pinax-network/substreams-erc20-contracts","last_synced_at":"2026-05-08T22:31:47.785Z","repository":{"id":198024141,"uuid":"697473663","full_name":"pinax-network/substreams-erc20-contracts","owner":"pinax-network","description":"ERC-20 Token Contracts Substreams","archived":false,"fork":false,"pushed_at":"2024-07-18T21:07:06.000Z","size":596,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-05-01T10:41:50.025Z","etag":null,"topics":["erc20","ethereum","graph","substreams"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinax-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-27T19:57:53.000Z","updated_at":"2025-12-22T07:59:50.000Z","dependencies_parsed_at":"2024-05-22T20:43:03.827Z","dependency_job_id":"d1be3b6a-9777-47bc-a87a-15aab2f1bd53","html_url":"https://github.com/pinax-network/substreams-erc20-contracts","commit_stats":null,"previous_names":["pinax-network/substreams-erc20-contracts"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/pinax-network/substreams-erc20-contracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinax-network%2Fsubstreams-erc20-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinax-network%2Fsubstreams-erc20-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinax-network%2Fsubstreams-erc20-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinax-network%2Fsubstreams-erc20-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinax-network","download_url":"https://codeload.github.com/pinax-network/substreams-erc20-contracts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinax-network%2Fsubstreams-erc20-contracts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32800050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["erc20","ethereum","graph","substreams"],"created_at":"2024-11-13T21:37:22.471Z","updated_at":"2026-05-08T22:31:47.768Z","avatar_url":"https://github.com/pinax-network.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `ERC-20` Contracts [Substreams](https://substreams.streamingfast.io)\n\n\u003e Extends [ERC-20 Balance Changes](https://github.com/streamingfast/substreams-erc20-balance-changes) with Token Contract information.\n\n### First block containing ERC20 Transfers\n\n| Chain   | Block number |\n| ------- | ------------ |\n| ETH     | 913 198      |\n| Polygon | 2764         |\n| BSC     | 64 253       |\n\n## Quickstart\n\n```\n$ gh repo clone pinax-network/substreams-erc20-contracts\n$ cd substreams-erc20-contracts\n$ make\n$ make gui\n```\n\n## Releases `.spkg`\n\n- https://github.com/pinax-network/substreams-erc20-contracts/releases\n\n## References\n\n- [Ethereum Docs: ERC-20 Token Standard](https://ethereum.org/en/developers/docs/standards/tokens/erc-20/)\n- [EIPS: ERC-20 Token Standard ](https://eips.ethereum.org/EIPS/eip-20)\n- [OpenZeppelin implementation](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/9b3710465583284b8c4c5d2245749246bb2e0094/contracts/token/ERC20/ERC20.sol)\n- [ConsenSys implementation](https://github.com/ConsenSys/Tokens/blob/fdf687c69d998266a95f15216b1955a4965a0a6d/contracts/eip20/EIP20.sol)\n\n## Map Outputs\n\n### `map_token_supply`\n\n```json\n{\n  \"items\": [\n    {\n      \"address\": \"dac17f958d2ee523a2206206994597c13d831ec7\",\n      \"name\": \"TetherUSD\",\n      \"symbol\": \"USDT\",\n      \"decimals\": 6\n    },\n    {\n      \"address\": \"6b175474e89094c44da98b954eedeac495271d0f\",\n      \"name\": \"DaiStablecoin\",\n      \"symbol\": \"DAI\",\n      \"decimals\": 18\n    },\n    ...\n  ]\n}\n```\n\n### Mermaid graph\n\n```mermaid\ngraph TD;\n  store_known_contracts[store: store_known_contracts];\n  balance_changes:map_valid_balance_changes --\u003e store_known_contracts;\n  store_known_contracts -- deltas --\u003e index_contracts;\n  map_contracts[map: map_contracts];\n  store_known_contracts -- deltas --\u003e map_contracts;\n  graph_out[map: graph_out];\n  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --\u003e graph_out;\n  map_contracts --\u003e graph_out;\n  db_out[map: db_out];\n  sf.substreams.v1.Clock[source: sf.substreams.v1.Clock] --\u003e db_out;\n  map_contracts --\u003e db_out;\n```\n\n### Modules\n\nName: store_known_contracts\nInitial block: 913198\nKind: store\nInput: map: balance_changes:map_valid_balance_changes\nValue Type: string\nUpdate Policy: set_if_not_exists\nHash: 8ac2282166033a9f121eb98942dc1974ba948fec\nDoc: Stores known contracts\n\nName: index_contracts\nInitial block: 913198\nKind: index\nInput: store: store_known_contracts\nOutput Type: proto:sf.substreams.index.v1.Keys\nHash: 481e8077e33f9725b91d57a06582baeb48451496\n\nName: map*contracts\nInitial block: 913198\nKind: map\nInput: store: store_known_contracts\nBlock Filter: (using \\_index_contracts*): `\u0026{contracts}`\nOutput Type: proto:erc20.contracts.types.v1.Contracts\nHash: 5def69ded574606c05f04580fe43290eab5eda05\nDoc: Extracts ERC20 token name, symbol and decimals\n\nName: graph_out\nInitial block: 913198\nKind: map\nInput: source: sf.substreams.v1.Clock\nInput: map: map_contracts\nOutput Type: proto:sf.substreams.sink.entity.v1.EntityChanges\nHash: dbe5a2a86b5cc116dbdb6433666ce24ab3e6c1b4\n\nName: db_out\nInitial block: 913198\nKind: map\nInput: source: sf.substreams.v1.Clock\nInput: map: map_contracts\nOutput Type: proto:sf.substreams.sink.database.v1.DatabaseChanges\nHash: 8b7dd497e217476bd3351a1b19f03e15f6dee3a6\n\n```yaml\nPackage name: erc20_contracts\nVersion: v0.1.0\nDoc: ERC-20 Token Contract Info\nModules: ----\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinax-network%2Fsubstreams-erc20-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinax-network%2Fsubstreams-erc20-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinax-network%2Fsubstreams-erc20-contracts/lists"}