tutus-chain/pkg
Tutus Development 30b3be30ce Add Eligere native contract for democratic voting
Implement the Eligere (Latin for "to choose/elect") contract providing
democratic governance infrastructure for citizens:

Core Features:
- Proposal lifecycle: Draft -> Active -> Passed/Rejected -> Executed
- One-person-one-vote via Vita token (soul-bound identity)
- Configurable quorum (default 10%) and thresholds (50%/67%)
- Execution delay for passed proposals before implementation

Contract Methods:
- createProposal: Create proposals with categories (Law, Investment, etc)
- vote: Cast votes (Yes/No/Abstain) with Vita verification
- tallyVotes: Finalize voting after deadline with quorum checks
- executeProposal: Execute passed proposals after delay
- Query methods: getProposal, getVote, hasVoted, getConfig

Cross-Contract Integration:
- Vita: Add GetTotalTokenCount() for quorum calculations
- Lex: Add RatifyAmendmentInternal() for law amendment execution
- Wire Eligere into blockchain.go with proper validation

Test Updates:
- Update Vita suspend test to use Lex liberty restriction (due process)
- Update management tests for Federation/Eligere hardfork timing
- Add Vita registration to VTS tests for property rights checks
- Update NEP17 contracts list to include VTS

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 06:30:43 +00:00
..
compiler Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
config Add RoleRegistry native contract for hierarchical RBAC 2025-12-20 01:35:26 +00:00
consensus Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
core Add Eligere native contract for democratic voting 2025-12-20 06:30:43 +00:00
crypto Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
encoding Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
interop Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
io Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
neorpc Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
neotest Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
network Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
rpcclient Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
services Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
smartcontract Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
util Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
vm Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
wallet Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00