Homebase Lite is a Tezos smart contract for a decentralized voting system, based on “snapshots” of the blockchain.
The contract specification clarifies the intent, requirements, and choices used for the development of this smart contract.
An automatically generated documentation, reflecting how the contract is
actually implemented, can instead be obtained by from the latest
release
or produced with the homebase-lite
tool.
TZIP-16 off-chain views
The contract declares TZIP-16 metadata in its storage, which includes two off-chain views:
currentConfig
: accepts no parameters and returns theConfiguration
object containing the current configuration of the contract (as defined in the spec).proposalInfo
: accepts a proposalURI
(asstring
) and returns aProposalInfo
object for the proposal identified by theURI
, or throws aNoSuchProposal
error if no such proposal exists.
This repository includes a homebase-lite
utility tool, which
can be used to deploy, compile and document the smart contract easily.
See its dedicated documentation on how to obtain it and how to use it.
If you prefer not to use the homebase-lite
tool and instead want to originate
the smart contract yourself, you can obtain the pre-compiled Michelson source
code from the latest release and originate it using existing software, such as
tezos-client
.
This smart contract is covered by a test suite, built using
cleveland
.
To learn more about the tests and how to run them, see their documentation.
Please see CONTRIBUTING.md for more information.
MIT License Copyright (c) 2022 Tezos Commons