{"id":13621232,"url":"https://github.com/deno-web3/solc","last_synced_at":"2025-09-10T16:38:07.607Z","repository":{"id":50543997,"uuid":"409867419","full_name":"deno-web3/solc","owner":"deno-web3","description":"💎 Solidity compiler bindings for Deno","archived":false,"fork":false,"pushed_at":"2025-02-27T21:01:59.000Z","size":7442,"stargazers_count":74,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T11:01:32.496Z","etag":null,"topics":["deno","ethereum","smart-contracts","solc","solcjs","solidity"],"latest_commit_sha":null,"homepage":"https://jsr.io/@deno-web3/solc","language":"TypeScript","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/deno-web3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"v1rtl","liberapay":"v1rtl","custom":["https://v1rtl.site/support"],"issuehunt":"talentlessguy","github":["talentlessguy"]}},"created_at":"2021-09-24T07:08:18.000Z","updated_at":"2025-03-02T15:49:31.000Z","dependencies_parsed_at":"2022-08-29T11:20:33.404Z","dependency_job_id":"0fbe9d17-0fa8-4cbb-9697-130fc189dc05","html_url":"https://github.com/deno-web3/solc","commit_stats":{"total_commits":71,"total_committers":4,"mean_commits":17.75,"dds":"0.12676056338028174","last_synced_commit":"bfb4817df523cae02a7197de8b6eaf7822c95ebf"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-web3%2Fsolc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-web3%2Fsolc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-web3%2Fsolc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-web3%2Fsolc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deno-web3","download_url":"https://codeload.github.com/deno-web3/solc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247767239,"owners_count":20992548,"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":["deno","ethereum","smart-contracts","solc","solcjs","solidity"],"created_at":"2024-08-01T21:01:03.819Z","updated_at":"2025-04-08T03:18:40.310Z","avatar_url":"https://github.com/deno-web3.png","language":"TypeScript","funding_links":["https://ko-fi.com/v1rtl","https://liberapay.com/v1rtl","https://v1rtl.site/support","https://issuehunt.io/r/talentlessguy","https://github.com/sponsors/talentlessguy"],"categories":["Languages","Solidity","Modules"],"sub_categories":["Other dialects and variants","Utils"],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg alt=\"logo\" height=\"250px\" src=\"./logo.png\" /\u003e\n\n# solc\n\n[![GitHub Workflow Status][gh-actions-img]][github-actions]\n[![Codecov][cov-badge-url]][cov-url] [![][code-quality-img]][code-quality]\n\n\u003c/div\u003e\n\nSolidity bindings for Deno, based on [solc-js](https://github.com/ethereum/solc-js).\n\nSolidity 0.7+ is supported.\n\nFor a CLI and a higher level API you can use [sol_build](https://github.com/deno-web3/sol_build).\n\n## Docs\n\nSee [solc-js README](https://github.com/ethereum/solc-js#readme) and [Deno doc](https://deno.land/x/solc/mod.ts).\n\n## Example\n\n```ts\nimport { wrapper } from '@deno-web3/solc'\nimport { Input } from '@deno-web3/solc/types'\nimport { download } from '@deno-web3/solc/download'\nimport { createRequire } from 'node:module'\n\n// Download latest Solidity compiler\nawait download()\n\nconst solc = wrapper(createRequire(import.meta.url)('./soljson.cjs'))\n\nconst MyToken = await Deno.readTextFile('./MyToken.sol')\nconst ERC20 = await Deno.readTextFile('./ERC20.sol')\n\nconst input: Input = {\n  language: 'Solidity',\n  sources: {\n    'MyToken.sol': {\n      content: MyToken,\n    },\n    'ERC20.sol': {\n      content: ERC20,\n    },\n  },\n  settings: {\n    outputSelection: {\n      '*': {\n        '*': ['*'],\n      },\n    },\n  },\n}\nconsole.log(JSON.parse(solc.compile(JSON.stringify(input))))\n```\n\nAnd then run with\n\n```sh\ndeno run --allow-net --allow-read --allow-write mod.ts\n```\n\n[code-quality-img]: https://img.shields.io/codefactor/grade/github/deno-web3/solc?style=for-the-badge\u0026color=626890\u0026\n[code-quality]: https://www.codefactor.io/repository/github/deno-web3/solc\n[cov-badge-url]: https://img.shields.io/coveralls/github/deno-web3/solc?style=for-the-badge\u0026color=626890\u0026\n[cov-url]: https://coveralls.io/github/deno-web3/solc\n[github-actions]: https://github.com/tinyhttp/deno-web3/solc\n[gh-actions-img]: https://img.shields.io/github/actions/workflow/status/deno-web3/solc/main.yml?branch=master\u0026style=for-the-badge\u0026color=626890\u0026label=\u0026logo=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeno-web3%2Fsolc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeno-web3%2Fsolc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeno-web3%2Fsolc/lists"}