{"id":23843750,"url":"https://github.com/ngduc/flatten-sol","last_synced_at":"2025-09-07T19:32:09.411Z","repository":{"id":44876684,"uuid":"386460028","full_name":"ngduc/flatten-sol","owner":"ngduc","description":"command-line tool to flatten a solidity contract which uses `import \"@openzeppelin/contracts/...`.","archived":false,"fork":false,"pushed_at":"2022-01-21T07:17:35.000Z","size":26,"stargazers_count":11,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2023-12-14T09:28:01.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ngduc.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}},"created_at":"2021-07-16T00:25:42.000Z","updated_at":"2023-08-31T18:41:00.000Z","dependencies_parsed_at":"2022-09-26T17:11:21.119Z","dependency_job_id":null,"html_url":"https://github.com/ngduc/flatten-sol","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fflatten-sol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fflatten-sol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fflatten-sol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngduc%2Fflatten-sol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngduc","download_url":"https://codeload.github.com/ngduc/flatten-sol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232250733,"owners_count":18494772,"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":"2025-01-02T19:50:56.658Z","updated_at":"2025-01-02T19:50:57.228Z","avatar_url":"https://github.com/ngduc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flatten-Sol\n\n`flatten-sol` - command-line tool to flatten a solidity contract which uses `import \"@openzeppelin/contracts/...`.\n\n- This tool will replace those import statements and flatten (combine) them into one file. The output file can be used for Etherscan's verifyContract.\n- [Solidity file example](./example.sol)\n- Support: openzeppelin contracts \u0026 contracts-upgradeable.\n- Based on [solidity-flattener](https://github.com/poanetwork/solidity-flattener)\n\n### Installation \u0026 Usage:\n\n```\nInstallation:\n$ npm install flatten-sol -g\n\nUsage:\n$ npx flatten-sol \u003cfilename.sol\u003e\n```\n\nOutput file is located in \"./out\" directory.\n\n### Links:\n\n- [Create-web3js-app](https://github.com/coddx-hq/create-web3js-app) CLI - create a new app with Web3js, React, Hardhat, Express, Vercel.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngduc%2Fflatten-sol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngduc%2Fflatten-sol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngduc%2Fflatten-sol/lists"}