{"id":14992071,"url":"https://github.com/dylan751/near-app-vote-sc","last_synced_at":"2026-01-17T14:37:50.878Z","repository":{"id":40773759,"uuid":"506278689","full_name":"dylan751/near-app-vote-sc","owner":"dylan751","description":"Voting App using Near-Rust and implement ZKP","archived":false,"fork":false,"pushed_at":"2022-10-05T15:48:37.000Z","size":1031,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T12:53:59.040Z","etag":null,"topics":["blockchain","near-blockchain","nearprotocol","smart-contracts"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dylan751.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":"2022-06-22T14:19:29.000Z","updated_at":"2023-08-24T06:14:30.000Z","dependencies_parsed_at":"2023-01-19T05:00:29.622Z","dependency_job_id":null,"html_url":"https://github.com/dylan751/near-app-vote-sc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dylan751/near-app-vote-sc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan751%2Fnear-app-vote-sc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan751%2Fnear-app-vote-sc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan751%2Fnear-app-vote-sc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan751%2Fnear-app-vote-sc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylan751","download_url":"https://codeload.github.com/dylan751/near-app-vote-sc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylan751%2Fnear-app-vote-sc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276932067,"owners_count":25730716,"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-09-25T02:00:09.612Z","response_time":80,"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":["blockchain","near-blockchain","nearprotocol","smart-contracts"],"created_at":"2024-09-24T15:00:42.813Z","updated_at":"2025-09-25T14:30:46.260Z","avatar_url":"https://github.com/dylan751.png","language":"Rust","funding_links":[],"categories":["Web3 and ZKP Framework"],"sub_categories":[],"readme":"# App Vote Project\n\n## Useful Links\n\n1. [App Vote Domain](https://app-vote-git-developphase2-app-vote-front-end.vercel.app/)\n2. [App Vote Repository](https://github.com/btc-studio/app-vote-smart-contract)\n\n## What is App Vote?\n\nA NEAR smart contract for the Near Protocol based voting app.\n\n- Allow users/organizations to create voting Poll for anything\n- Allow users/organizations to create criterias for each Poll\n- Allow users/organizations to create answer options\n- Allow users/organizations to vote for their Polls\n\n## Built with\n\n- [NEAR](https://near.org/)\n- [Rust Programming Language](https://www.rust-lang.org/)\n\n## Prerequisites\n\n### Rust toolchain\n\n- Install Rust toolchain:\n  - Install rustup: `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`\n  - Configure the current shell: `source $HOME/.cargo/env`\n  - Add the wasm target to the blockchain network: `rustup target add wasm32-unknown-unknown`\n\n### A NEAR account\n\n- Create a NEAR account: https://wallet.testnet.near.org/create\n\n### NEAR command-line interface (near-cli)\n\n- Install near-cli: `npm install -g near-cli`\n\n## App Vote Repository\n\n### Overview\n\napp-vote-smart-contract \u003c/br\u003e\n├── Cargo.toml \u003c/br\u003e\n├── README.md \u003c/br\u003e\n├── build.sh \u003c/br\u003e\n├── neardev \u003c/br\u003e\n├ ├── dev-account \u003c/br\u003e\n├   └── dev-account.env \u003c/br\u003e\n├── notes \u003c/br\u003e\n├   ├── DAO.md \u003c/br\u003e\n├   ├── build-test-stable.md \u003c/br\u003e\n├   ├── build-test.md \u003c/br\u003e\n├   └── build.md \u003c/br\u003e\n├── out \u003c/br\u003e\n├   └── app-vote-contract.wasm \u003c/br\u003e\n├── scripts \u003c/br\u003e\n├   ├── create-data.sh \u003c/br\u003e\n├   ├── log-deposit.sh \u003c/br\u003e\n├   └── log-deposit.txt \u003c/br\u003e\n├── src \u003c/br\u003e\n├ ├── criterias.rs \u003c/br\u003e\n├ ├── custom_struct.rs \u003c/br\u003e\n├ ├── event.rs \u003c/br\u003e\n├ ├── is_user_votes.rs \u003c/br\u003e\n├ ├── lib.rs \u003c/br\u003e\n├ ├── poll_options.rs \u003c/br\u003e\n├ ├── polls.rs \u003c/br\u003e\n├ ├── results.rs \u003c/br\u003e\n├ ├── tests.rs \u003c/br\u003e\n├ ├── users.rs \u003c/br\u003e\n└ └── utils.rs \u003c/br\u003e\n\n### Directory Details\n\n- **build.sh** - Contains the build script\n- **neardev** - The folder contains dev account which the Smart Contract being deployed to\n- **out** - Contains .wasm file to push to blockchain\n- **scripts** - Contains scripts\n- **src** - Contains all the Smart Contract logic for App Vote\n\n## Interacting with the App Vote contracts locally\n\n### Deploy to testnet for usable API\n\n1. Install dependencies\n\n```shell\ncargo install\n```\n\n2. Compile code to .wasm file\n\n```shell\n./build\n```\n\n3. Deploy to NEAR testnet\n\n```shell\nnear dev-deploy ./out/app-vote-contract.wasm\n```\n\n4. Use smart contract id in **neardev/dev-account** to call in near-cli\n\n```\nnear call dev-1660616028365-78983722768651 \u003ccommand\u003e \u003carguments\u003e\n```\n\n\u003e For more information, see: `/notes/build-test.md`\n\n## Network\n\ndevelopment\n\n## Contracts\n\n|   CONTRACT   |        ADDRESS        |\n| :----------: | :-------------------: |\n| **App Vote** | app-vote.btcs.testnet |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylan751%2Fnear-app-vote-sc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylan751%2Fnear-app-vote-sc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylan751%2Fnear-app-vote-sc/lists"}