{"id":16181030,"url":"https://github.com/jakehartnell/treasurez","last_synced_at":"2025-10-11T07:05:16.806Z","repository":{"id":74624217,"uuid":"179901980","full_name":"JakeHartnell/treasurez","owner":"JakeHartnell","description":"...","archived":false,"fork":false,"pushed_at":"2019-04-07T00:40:35.000Z","size":358,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-07T12:12:37.986Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JakeHartnell.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-07T00:39:56.000Z","updated_at":"2019-04-07T00:40:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"e864614c-98f7-453b-aff5-f5b59695d5f5","html_url":"https://github.com/JakeHartnell/treasurez","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JakeHartnell/treasurez","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeHartnell%2Ftreasurez","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeHartnell%2Ftreasurez/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeHartnell%2Ftreasurez/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeHartnell%2Ftreasurez/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakeHartnell","download_url":"https://codeload.github.com/JakeHartnell/treasurez/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeHartnell%2Ftreasurez/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006561,"owners_count":26084128,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10T06:11:33.816Z","updated_at":"2025-10-11T07:05:16.787Z","avatar_url":"https://github.com/JakeHartnell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Secret Ballot dApp\n\nThis dApp demonstrates confidentiality using a voting smart contract that keeps each user's vote private and hides\nvote tallies until voting has ended. It serves as an example app for our Web3(c) library.\n\nTo interact with this dApp locally follow the steps below.\n\n## Initial Setup\n\n* Run `npm install`\n\n* To modify the contract, run `npm install -g truffle-oasis`\n\n## Building \u0026 Deploying the Smart Contract\nTo build a new ballot, run:\n\n* `truffle compile`\n\nYou can deploy the contract with truffle. to do so:\n\n* Edit `truffle.js` to add the mnemonic for your private key. This will be the address that deploys the smart contract;\nyou must control this address if you want to end voting from the dApp!\n\n* `truffle migrate --reset --network oasis`\n\nNote the address of the deployed contract in the output\n```\n...\nSaving artifacts...\nRunning migration: 2_deploy_contracts.js\n  Replacing SecretBallot...\n  ... 0x473e196528a48d27d5488dddf9bb8a351caa6bfe41a44b8e9fca0c935142db90\n  SecretBallot: 0x1dd2838d8290dd83d5d060d1b3d2cc1eae0ac5f7\n```\n\nIn this example the ballot was deployed to address `0x1dd2838d8290dd83d5d060d1b3d2cc1eae0ac5f7`\n\n## Interacting with the dApp\n\n* Launch the local web server: `npm run dev`\n\n* In your browser visit `localhost:8080?ballot=\u003ccontract address\u003e`\n\n## Notes and Troubleshooting\n* The smart contract code is available at `contracts/SecretBallot.sol`\n* If you don't see anything in the web browser, ensure your Metamask is unlocked and configured for the Oasis testnet\n* Due to rate limiting the web UI doesn't always display complete information. If the page doesn't fully populate you may\nneed to wait a few seconds and refresh the page\n* To change the ballot options, edit `migrations/2_deploy_contracts.js` then re-deploy using the instructions above\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakehartnell%2Ftreasurez","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakehartnell%2Ftreasurez","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakehartnell%2Ftreasurez/lists"}