Skip to content

Commit a434be7

Browse files
CopilotSteake
andcommitted
Integrate governance RPC endpoints
- Add governance_rpc module to bitcell-node - Implement 6 governance RPC endpoints - Add GovernanceRpcState to RPC state - Create CHANGELOG.md with governance features Co-authored-by: Steake <[email protected]>
1 parent 0d98939 commit a434be7

File tree

5 files changed

+560
-0
lines changed

5 files changed

+560
-0
lines changed

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Added
11+
- **Governance System (RC3-005)**: Complete on-chain governance implementation
12+
- Proposal system supporting parameter changes, treasury spending, and protocol upgrades
13+
- Token-weighted voting with linear (1 CELL = 1 vote) and quadratic (√CELL = votes) methods
14+
- Vote delegation system for representative democracy
15+
- Type-specific timelock delays (2 days for params/upgrades, 6 hours for treasury)
16+
- Multi-sig guardian controls (2/3 threshold) for emergency actions
17+
- Comprehensive security features:
18+
- Saturating arithmetic for overflow protection
19+
- SHA-256-based proposal IDs for collision resistance
20+
- Double-vote prevention
21+
- Quorum requirements (default 10,000 CELL)
22+
- RPC endpoints:
23+
- `gov_submitProposal` - Submit a new governance proposal
24+
- `gov_vote` - Vote on an active proposal
25+
- `gov_getProposal` - Get proposal details
26+
- `gov_finalizeProposal` - Finalize and execute a passed proposal
27+
- `gov_delegate` - Delegate voting power
28+
- `gov_getVotingPower` - Get effective voting power with delegations
29+
- 20+ unit tests covering all core functionality
30+
- Integration tests for full proposal lifecycle
31+
- Performance benchmarks
32+
- Comprehensive documentation in `docs/GOVERNANCE.md`
33+
- Quick start guide in `crates/bitcell-governance/README.md`
34+
35+
## [0.1.0] - 2025-01-01
36+
37+
### Added
38+
- Initial release candidate 1 (RC1) features
39+
- Core cryptographic primitives
40+
- Cellular automaton engine
41+
- Zero-knowledge proof architecture
42+
- Consensus protocol
43+
- State management
44+
- P2P networking
45+
- RPC/API layer
46+
- Wallet infrastructure
47+
- Admin console
48+
- Economics system
49+
- EBSL trust system
50+
- ZKVM execution
51+
52+
[Unreleased]: https://github.com/Steake/BitCell/compare/v0.1.0...HEAD
53+
[0.1.0]: https://github.com/Steake/BitCell/releases/tag/v0.1.0

crates/bitcell-node/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ bitcell-state = { path = "../bitcell-state" }
1919
bitcell-network = { path = "../bitcell-network" }
2020
bitcell-economics = { path = "../bitcell-economics" }
2121
bitcell-ebsl = { path = "../bitcell-ebsl" }
22+
bitcell-governance = { path = "../bitcell-governance" }
2223
serde.workspace = true
2324
thiserror.workspace = true
2425
tokio = { version = "1", features = ["full"] }

0 commit comments

Comments
 (0)