Example
import boa
import curve_dao
contract = boa.load("contracts/contract.vy",
curve_dao.get_address("ownership"), curve_dao.get_address("param"), curve_dao.get_address("emergency"), # Set admins
)
ACTIONS = [
("0xcontract", "set_something", ("values",), 70, "set"), # 0xcontract.set_something(("values",), 70, "set)
(contract, "enact"), # contract.enact()
]
DESCRIPTION = "Enact something"
vote_id = curve_dao.create_vote("ownership", ACTIONS, DESCRIPTION,
etherscan_api_key=os.environ["ETHERSCAN_API_KEY"], pinata_token=os.environ["PINATA_TOKEN"])
if is_simulation: # forked environment
curve_dao.simulate(vote_id, "ownership", etherscan_api_key=os.environ["ETHERSCAN_API_KEY"])
What is this?
Simple python package to simulate on-chain CurveDAO proposals and publish proposals for DAO voting on-chain.
Who needs this?
veCRV holders looking to create on-chain proposals such as
- Creating or killing Curve DAO gauges that reward CRV inflation to addresses (liquidity pools or otherwise).
- Creating a smartwallet whitelist to lock veCRV (veCRV restricts smart contracts to lock CRV, subject to a DAO whitelist vote)
- Changing liquidity pool parameters
- Adding gauge types ...
- ... etc.
Curve DAO stakeholders have the ability to change the protocol in many ways. This repository is an attempt to consolidate all on-chain DAO operations into a single tool.
How does one install it?
pip install curve-dao
How does one contribute?
- Fork + Pull Requests.
- Create issues.
- ...
How does one test?
python -m pytest .
How does one build and publish?
- Update codebase
- Up version in pyproject.toml
python -m build; python -m twine upload --repository pypi dist/* --verbose
Metadata
Release files for curve-dao 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| curve_dao-1.0.11.tar.gz | 7.2 kB | Without provenance | Details for curve_dao-1.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| curve_dao-1.0.11-py3-none-any.whl | Python 3 | none | any | Details for curve_dao-1.0.11-py3-none-any.whl |
Total release size: 14.7 kB
Release files / curve_dao-1.0.11.tar.gz
| Download URL | curve_dao-1.0.11.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ef2a7ab79ea1c92dcaf77bad0353dd8d4deebf89cc1bfdc2ab2e6a78b1d54f1
|
|
BLAKE2b-256 checksum How to use checksums |
d5b9977a038b28140d85af6a13c5877e6ae7acb4f24ebe972884c9aaf4ca142f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.4
|
Release files / curve_dao-1.0.11-py3-none-any.whl
| Download URL | curve_dao-1.0.11-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb296f623bd94d21a269cc8c903ec1c45040492edc1badbb9223624b6d9951ac
|
|
BLAKE2b-256 checksum How to use checksums |
9c3f8886c95d38ef9a037e8ed635bc849a78c39cf0737de19f9fd3bffca7fe3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.4
|
Security for curve-dao 1.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.