{"id":15926532,"url":"https://github.com/zemse/simple-lottery","last_synced_at":"2025-10-18T18:31:13.132Z","repository":{"id":51615861,"uuid":"240188062","full_name":"zemse/simple-lottery","owner":"zemse","description":"Basic Lottery managed by Smart Contracts.","archived":true,"fork":false,"pushed_at":"2022-12-30T19:39:49.000Z","size":53,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-16T11:52:59.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zemse.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}},"created_at":"2020-02-13T05:55:30.000Z","updated_at":"2023-05-03T14:31:56.000Z","dependencies_parsed_at":"2023-01-31T14:45:59.739Z","dependency_job_id":null,"html_url":"https://github.com/zemse/simple-lottery","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"zemse/create-solidity-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fsimple-lottery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fsimple-lottery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fsimple-lottery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fsimple-lottery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemse","download_url":"https://codeload.github.com/zemse/simple-lottery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237003865,"owners_count":19239520,"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-10-06T22:41:05.404Z","updated_at":"2025-10-18T18:31:07.795Z","avatar_url":"https://github.com/zemse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Solidity Template\nA light template, which is intended to get a Ethereum Smart Contracts Developer quickly started into developing Bug-free Smart Contracts.\n\n## Steps to write your next smart contract with this template\n1. Start a fresh solidity project using this template through https://github.com/zemse/smart-solidity-template/generate.\n2. Clone your project using `git clone \u003crepo-git-url\u003e` in your projects folder.\n3. Delete `SimpleStorage.sol` from `contracts` folder. Create your smart contract file with it's appropriate name, e.g. `Lottery.sol`. Please make sure that you are using the latest version of solidity in your smart contract in the first line `pragma solidity 0.6.1`.\n4. In the project directory, do `node compile.js`. This will compile your contract, show errors or warnings if any and will place the json files into a build folder.\n5. In the `test` folder, you can rename the existing `SimpleStorage.test.js` file by your contract name, e.g. `Lottery.test.js` and refer to the contents for understanding to write tests. Run the tests by doing `npm run test`.\n6. While developing smart contract, it's a good practice to write tests as you implement any new contract code.\n7. The command `npm run test` compiles your contracts if you made any changes and then runs tests.\n\n## Steps to deploy contract\n- You can test deployment on testnets like `rinkeby` or `kovan`. For deployment on mainnet, it is suggested to use Remix IDE for now.\n- To deploy all compiled contracts, do `node deploy.js deployall rinkeby 0xa6779f54dc1e9959b81f448769450b97a9fcb2b41c53d4b2ab50e5055a170ce7`.\n- To deploy a specific contract, write it's JSON file name instead of deployall flag, e.g. `node deploy.js SimpleStorage_SimpleStorage.json rinkeby 0xa6779f54dc1e9959b81f448769450b97a9fcb2b41c53d4b2ab50e5055a170ce7`.\n- If the contract requires constructor arguments, you can pass it by adding them after the command, e.g. `node deploy.js SimpleStorage_SimpleStorage.json rinkeby 0xa6779f54dc1e9959b81f448769450b97a9fcb2b41c53d4b2ab50e5055a170ce7 \"hello world\"`.\n\n## Customization\n- You can customise to a specific `solc` version by doing `npm i solc@0.5.10`, but it's not recommended. Note: `solc@0.4.*` will not work with this template, because it has a different compile.js structure. It is recommended that you upgrade your smart contract code to be able to be compiled by a `solc@0.5.*` compiler. You can check out breaking changes in `0.5.*` at https://solidity.readthedocs.io/en/v0.5.0/050-breaking-changes.html and upgrade your smart contracts accordingly.\n- This project uses `ethers.js` library in the tests. You can find docs at https://docs.ethers.io/ethers.js/html/. If you wish to use `web3.js` instead, you can do it by uninstalling `ethers.js` using `npm uninstall ethers`, then you can install `web3.js` using `npm i web3`. Then you will have to change the tests files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fsimple-lottery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemse%2Fsimple-lottery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fsimple-lottery/lists"}