{"id":19498082,"url":"https://github.com/patrickalphac/vyper-chain-info","last_synced_at":"2025-04-15T15:47:15.455Z","repository":{"id":185735187,"uuid":"674012046","full_name":"PatrickAlphaC/vyper-chain-info","owner":"PatrickAlphaC","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-03T00:47:10.000Z","size":240,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T22:07:55.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PatrickAlphaC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-03T00:17:03.000Z","updated_at":"2023-09-19T12:53:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"a7d38291-992e-4909-ad35-fc0fc1316bce","html_url":"https://github.com/PatrickAlphaC/vyper-chain-info","commit_stats":null,"previous_names":["patrickalphac/vyper-chain-info"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fvyper-chain-info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fvyper-chain-info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fvyper-chain-info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PatrickAlphaC%2Fvyper-chain-info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PatrickAlphaC","download_url":"https://codeload.github.com/PatrickAlphaC/vyper-chain-info/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249104170,"owners_count":21213529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T21:49:10.353Z","updated_at":"2025-04-15T15:47:15.437Z","avatar_url":"https://github.com/PatrickAlphaC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vyper Chain Info\n\nA repo to collect data on existing vyper contracts in the ecosystem. \n\nThis is meant to be a \"sort-of quick\" project so it's not perfect.\n\nThis README.md is pretty bad too. \n\n# Strategy\n\nWe took the strategy:\n\n1. Run a dune analytics query for the following chains, to get any contract that had similar bytecode to a vyper contract:\n- Avalanche\n- Arbitrum\n- BNB\n- Ethereum\n- Fantom\n- Optimism\n- Polygon\n\nThe results from those queries are in the `possible_vyper_contracts`. They can be considered a superset of all Vyper contracts on those chains for the following vyper versions:\n\n```\n0.2.11-0.3.9\n```\n\nWith some versions `0.2.0` - `0.2.8` in there. \n\n2. Took those addresses, and ran them through a script that checked them against etherscan, or etherscan-like block explorer to see if they are verified etherscan. \n\nIf they were verified, we placed them into `verified_vyper_contracts.csv`, along with their:\n- chain\n- address\n- native balance\n- vyper version\n\nThis is considered a subset as non-verified contracts get filtered out. \n\n# Getting started\n\nYou'll need environment variables for Etherscan and Etherscan-like explorers and RPC URLs for each chain. See the python code for more details. \n\nAfter cloning the repo, run:\n\n```\npoetry install\npoetry run python3 confirm_vyper_contracts_and_value.py\n```\n\nTo get the output again. \n\n# Queries\n- For avalanche, you need to use `avalanche_c.creation_traces`\n\n# Resources used\n- [How to get Vyper versions from bytecode post 0.3.4](https://github.com/vyperlang/vyper/pull/2860#issuecomment-1279717236)\n- [How to check if a contract might be vyper prior to 0.3.3](https://github.com/banteg/erigon-kv/blob/17f66e2ce0cf0cb269b298a6d805fae50cb7c003/examples/compilers.py#L18-L19)\n\n# Not 100% sure\n- Do Dune analytics `creation_traces` include transactions created by other contracts?\n  - [Asked here](https://ethereum.stackexchange.com/questions/153021/do-dune-analytics-creation-traces-data-include-contracts-created-by-other-cont)\n\n\n# Results\n\nThe results of this are in `verified_vyper_contracts.csv` which has the following:\n\n1. The Chain\n2. The Contract Address\n3. The vyper version\n4. The native balance of the contract\n   1. If the script had an issue, it's just `NONE`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickalphac%2Fvyper-chain-info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrickalphac%2Fvyper-chain-info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrickalphac%2Fvyper-chain-info/lists"}