Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rickhysis/vote-coffe-near
This is smart contract example for vote the best coffe using NEAR Protocol ("NEAR" hereafter)
https://github.com/rickhysis/vote-coffe-near
Last synced: about 1 month ago
JSON representation
This is smart contract example for vote the best coffe using NEAR Protocol ("NEAR" hereafter)
- Host: GitHub
- URL: https://github.com/rickhysis/vote-coffe-near
- Owner: rickhysis
- Created: 2021-11-15T16:32:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-15T16:52:47.000Z (over 3 years ago)
- Last Synced: 2024-09-24T16:09:14.677Z (5 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rust-list - rickhysis/vote-coffe-near - coffe-near?style=social"/> : This is smart contract example for vote the best coffe using NEAR Protocol ("NEAR" hereafter). (Web3 and ZKP Framework)
- awesome-rust-list - rickhysis/vote-coffe-near - coffe-near?style=social"/> : This is smart contract example for vote the best coffe using NEAR Protocol ("NEAR" hereafter). (Web3 and ZKP Framework)
README
vote-coffe-near
=================================## Description
This contract implements simple vote for the best coffe in indonesia using near protocol.
Contract in `contract/src/lib.rs` provides methods to add_coffe, vote, get_coffes and get it's current value.## Building this contract
Run the following, and we'll build our rust project up via cargo. This will generate our WASM binaries into our res/ directory. This is the smart contract we'll be deploying onto the NEAR blockchain later.
```
./build.sh
```## Quickest deploy
You can build and deploy this smart contract to a development account. Dev Accounts are auto-generated accounts to assist in developing and testing smart contracts. Please see the Standard deploy section for creating a more personalized account to deploy to.
```
near dev-deploy
```## To Test
```
cd contract
cargo test -- --nocapture
```# Donate
If this repository has been useful to you, please consider saying "thanks" by donating money, even if it's just one cents. This shows your appreciation and keeps me motivated to work on further software improvements.## Bitcoin
Please send [bitcoin](https://bitcoin.org) to the following address:[1BBqhnWbr9TBE1d1QXWpD23BiGKQXRQMPb](https://blockstream.info/address/1BBqhnWbr9TBE1d1QXWpD23BiGKQXRQMPb)

## Ethereum
Please send ETH to the following address:[0x9Be4c638CDC4b7d89b8Ea3720cd1f39E32276E53](https://etherscan.io/address/0x9Be4c638CDC4b7d89b8Ea3720cd1f39E32276E53)
