{"id":16695690,"url":"https://github.com/deleterium/smartc","last_synced_at":"2025-03-21T19:31:22.900Z","repository":{"id":38832373,"uuid":"355337412","full_name":"deleterium/SmartC","owner":"deleterium","description":"Write C smart contracts for signum network. Compile in your browser.","archived":false,"fork":false,"pushed_at":"2024-12-11T13:54:46.000Z","size":1842,"stargazers_count":20,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T04:16:03.903Z","etag":null,"topics":["c","compiler","javascript","signum","smart-contracts"],"latest_commit_sha":null,"homepage":"https://deleterium.info/SmartC/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deleterium.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2021-04-06T21:43:56.000Z","updated_at":"2024-12-08T19:21:48.000Z","dependencies_parsed_at":"2024-03-11T03:30:12.936Z","dependency_job_id":null,"html_url":"https://github.com/deleterium/SmartC","commit_stats":{"total_commits":529,"total_committers":5,"mean_commits":105.8,"dds":0.08128544423440454,"last_synced_commit":"8d487f29c016be95553076013b8247154d28160b"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deleterium%2FSmartC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deleterium%2FSmartC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deleterium%2FSmartC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deleterium%2FSmartC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deleterium","download_url":"https://codeload.github.com/deleterium/SmartC/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244855444,"owners_count":20521641,"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":["c","compiler","javascript","signum","smart-contracts"],"created_at":"2024-10-12T17:08:09.374Z","updated_at":"2025-03-21T19:31:22.495Z","avatar_url":"https://github.com/deleterium.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SmartC\n\u003e Write C smart contracts for signum network. Compile in your browser. Written in Typescript/Javascript.\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=deleterium_SmartC\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=deleterium_SmartC)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=deleterium_SmartC\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=deleterium_SmartC)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=deleterium_SmartC\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=deleterium_SmartC)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=deleterium_SmartC\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=deleterium_SmartC)\n\n## Objective\nTo empower developers, allowing them to create complex and highly optimized smart contracts.\n\n# Setup\nThis library can be obtained through npm:\n```\nnpm install smartc-signum-compiler\n```\n\nThe stable version is released under tag `@latest` and the development under `@next`.\n\n# Usage\n\n## Web User Interface\nA web user interface project is available at https://github.com/deleterium/smartc-web-ui If you want just to code with SmartC use https://deleterium.info/SmartC/\n\n## Documentation / FAQ / Lessons\nDocs files can be found in this repo, at `doc` folder.\n\n## Node\n```ts\nimport { SmartC } from 'smartc-signum-compiler';\n\n//  Example: Simple compilation test\ntry {\n    const startUpTest = new SmartC({\n        language: 'C',\n        sourceCode: '#pragma maxAuxVars 1\\nlong a, b, c; a=b/~c;'\n    })\n    startUpTest.compile()\n    const assemblyText = startUpTest.getAssemblyCode()\n    const machineObject = startUpTest.getMachineCode()\n    // Do something\n} catch (e) {\n    return \"Compilation error: \" + e.message\n}\n```\n\n## Browser\nImport the minified javascript file. SmartC will be imported as global.\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/smartc-signum-compiler@latest/dist/smartc.min.js\"\u003e\u003c/script\u003e\n```\n\nThen in your javascript file, just use it:\n```js\n//  Example: Simple compilation test\ntry {\n    const startUpTest = new SmartC({\n        language: 'C',\n        sourceCode: '#pragma maxAuxVars 1\\nlong a, b, c; a=b/~c;'\n    })\n    startUpTest.compile()\n    const assemblyText = startUpTest.getAssemblyCode()\n    const machineObject = startUpTest.getMachineCode()\n    // Do something\n} catch (e) {\n    return \"Compilation error: \" + e.message\n}\n```\n\n## Changelog\nFind [here](https://deleterium.github.io/SmartC/CHANGELOG) major upgrades between releases.\n\n## Support\nDid you like the project? Consider be owner of one SmartC NFT keyword. The smart contract is online at S-NFT2-6MA4-KLA2-DNM8T. More information on  [NFTv2 website](https://deleterium.info/NFTv2/). My address: S-DKVF-VE8K-KUXB-DELET.\n\n## Social media\nJoin [SmartC Compiler](https://discord.gg/pQHnBRYE5c) server in Discord to stay tuned for news or ask questions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeleterium%2Fsmartc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeleterium%2Fsmartc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeleterium%2Fsmartc/lists"}