Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joticajulian/gov-poll
Poll for governance decisions on koinos
https://github.com/joticajulian/gov-poll
Last synced: about 1 month ago
JSON representation
Poll for governance decisions on koinos
- Host: GitHub
- URL: https://github.com/joticajulian/gov-poll
- Owner: joticajulian
- License: mit
- Created: 2023-05-27T15:54:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-13T22:03:25.000Z (over 1 year ago)
- Last Synced: 2024-10-18T07:24:58.274Z (3 months ago)
- Language: TypeScript
- Size: 124 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Governance Poll Contract
## Installation
Run `yarn install` to install the required dependencies.
Create a copy of `env.example`, rename it to `.env`, and update its values as explained in the file. This will be needed for the deployment and interaction with the contracts.
## Build
Run:
```
yarn poll:build
```This will make a precompilation in the `poll/build` folder, and it will build the final compilation in `poll/build/release/poll.wasm`.
Finally, deploy the contract:
```
yarn poll:deploy
```Now you can consult a blockexplorer, like koinosblocks.com to check your deployment
## Verify code
In order to verify the authenticity of the deployed code, this repo contains a Dockerfile to compile the code and get the wasm file with its corresponding sha256 identifier. Then these values can be compared with the code deployed in the blockchain to prove its authenticity.
Run:
```
yarn poll:docker
```You should see at the end some info from the contract selected:
```
contract: nft
file: /contracts/nft/build/release/poll.wasm
size: 63197 bytes (61.72 kB)
sha256: 10a369462f3dcbaa6db5bd4c956c3c21eef93b5b978d889402ce3555ec611c53
```## Acknowledgments
Many thanks to the sponsors of this work: @levineam, @Amikob, @motoeng, @isaacdozier, @imjwalker, @brklyn8900 and the private sponsors.
If you would like to contribute to the maintenance and development of these and more contracts consider becoming a sponsor in https://github.com/sponsors/joticajulian.
## License
MIT License
Copyright (c) 2022 Julián González
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.