Implement the Collocatio (Latin for "placement/arrangement") contract
providing a three-tier investment framework for citizens:
- PIO (Public Investment Opportunity): Universal citizen access to
infrastructure investments - any citizen can invest small amounts
in public projects like roads, schools, hospitals
- EIO (Employee Investment Opportunity): Workplace democracy for
verified employees - invest in their employer's projects with
preferential terms and voting rights
- CIO (Contractor Investment Opportunity): Gig economy empowerment -
verified contractors can invest in platforms they work with
Core Features:
- Investment opportunities with configurable parameters
- Eligibility system integrated with Vita (soul-bound identity)
- Cross-contract integration with VTS, Tribute, and Eligere
- Democratic oversight through Eligere voting
- Wealth concentration limits via Tribute integration
- Education verification through Scire integration
Contract Methods:
- createOpportunity: Create PIO/EIO/CIO with terms
- activateOpportunity: Enable investment period
- invest: Make investment with eligibility checks
- withdraw: Exit with maturity/penalty rules
- setEligibility: RoleInvestmentManager (ID 28) sets eligibility flags
- isEligible: Check investor eligibility for opportunity types
Contract ID: -25
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement transparent ledger infrastructure for accountable governance:
- TransactionFlow tracking: Multi-party flows with complete audit trails
- Full lifecycle: Initiation -> Intermediate steps -> Completion
- Participant verification via Vita token (one-person-one-identity)
- Immutable flow records with timestamp chains
- Encrypted Payload System: Role-based access to sensitive data
- Payloads encrypted per-role (Consumer, Merchant, Bank, etc.)
- Keys distributed to authorized parties only
- Supports judicial declassification process
- Declassification Requests: Due process for accessing protected data
- Judicial authority required (RolePalamJudge = 26)
- Multi-party approval workflow
- Configurable approval thresholds and expiry
- Audit Log System: Complete transparency for oversight
- All operations logged with actor attribution
- Auditor access via RolePalamAuditor (25)
- Immutable chronological records
- Cross-contract integration:
- Vita: Identity verification for participants
- RoleRegistry: Role-based authorization
- Lex: Rights enforcement for privacy protections
Latin naming: Palam = "openly/publicly" - reflecting the
contract's purpose of enabling transparent governance while
protecting legitimate privacy through programmed disclosure rules.
Contract ID: -23
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement life planning and career evolution infrastructure:
- Life Plan Accounts: One per Vita holder
- Contribution tracking for sabbatical fund
- Life phase management (education, career, retirement)
- Progress metrics and goal tracking
- Career Cycles: Work period management
- Start/end tracking with employer records
- Automatic contribution calculations
- Transition support between careers
- Sabbaticals: Paid life breaks
- Funded sabbatical periods for all citizens
- Minimum contribution requirements
- Re-entry support after breaks
- Types: Learning, Family, Creative, Health, Community
- Life Milestones: Achievement tracking
- Automatic and manual milestone recording
- Types: Birth, Education, Career, Family, Retirement
- Verification by authorized parties
- Life Goals: Personal objective management
- Goal setting with progress tracking
- Integration with other life planning features
- Achievement recognition
- Cross-contract integration:
- Vita: Identity and lifecycle management
- Lex: Labor rights verification
- RoleRegistry: RoleLifeCoach (ID 22)
Contract ID: -20
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement the Scire (Latin for "to know/learn") contract providing
universal education infrastructure for citizens:
Core Features:
- Education accounts: One per Vita holder (soul-bound learning account)
- Learning credits: Annual allocation and spending system
- Certifications: Skill verification with expiry/renewal support
- Enrollments: Program enrollment with credit allocation
Contract Methods:
- Account management: createAccount, getAccount, allocateCredits, getCredits
- Enrollment: enroll, completeEnrollment, withdrawEnrollment, getActiveEnrollment
- Certification: issueCertification, revokeCertification, renewCertification
- Query: verifyCertification, hasCertification, getConfig
Cross-Contract Integration:
- Vita: Account tied to Vita token (one person = one account)
- Lex: Checks RightEducation via HasRightInternal (enforcement logging)
- RoleRegistry: RoleEducator (ID 20) for institutional authorization
- NEO: Committee authority for credit allocation
State Types (pkg/core/state/scire.go):
- EducationAccount, Certification, Enrollment, ScireConfig
- Status enums for each entity type
Technical Details:
- Contract ID: -18
- Storage prefixes: 0x01-0x02 (accounts), 0x10-0x13 (certs), 0x20-0x23 (enrolls)
- Fix: Use (uint64, bool) return for getVitaIDByOwner to properly handle
TokenID 0 (first registered Vita) instead of using 0 as sentinel value
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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>
Implement comprehensive legal framework ensuring equality for all citizens:
- Add 14 immutable constitutional rights (life, liberty, property,
equality, due process, privacy, expression, assembly, movement,
education, healthcare, labor, vote, asylum)
- Implement hierarchical law registry with categories:
Constitutional, Federal, Regional, Local, Administrative
- Add configurable enforcement types per law:
Automatic (blocks violations), Logging (emits events), Advisory
- Implement rights restriction system requiring due process:
- All restrictions require judicial authority (RoleJudge)
- All restrictions require a caseID (legal proceeding)
- All restrictions must have expiration (no indefinite detention)
- Add cross-contract integration methods:
HasRightInternal, IsRestrictedInternal, CheckPropertyRight,
CheckMovementRight, CheckLibertyRight
- Update test data for native contract state serialization
Constitutional rights are code, not data - they cannot be amended
or removed, ensuring true immutability and universal equality.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Rename PersonToken to Vita (soul-bound identity token) and implement
fee exemption system for citizens:
- Add Federation native contract for cross-chain Vita coordination
- Visitor registry for Vita holders from other chains
- Configurable visiting fee percentage (default 50%)
- Inter-chain debt tracking for settlement between chains
- Modify GAS contract to burn fees from Treasury for Vita holders
- Local Vita: 100% paid by local Treasury
- Visiting Vita: Split between local Treasury and inter-chain debt
- Deficit tracking when Treasury is underfunded
- Update mempool and blockchain to skip fee checks for Vita exempt users
- Add IsVitaFeeExempt() to Feer interface
- Modify verifyAndPoolTx() to allow zero-fee transactions
- Rename PersonToken -> Vita across codebase
- Update state, native contract, and tests
- Maintain same functionality with clearer naming
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Require Vita (soul-bound identity token) for minting restricted VTS
- Add age-restricted vendor flag for age-gated purchases (e.g., alcohol)
- Add IsAdultVerified method to PersonToken for age verification
- Update spend/canSpendAt to check age verification for restricted vendors
- Add toBool helper function for boolean stackitem parsing
- Add comprehensive tests for age-restricted functionality
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implements RoleRegistry as a native contract for role-based access control
that integrates with PersonToken for democratic governance.
Key features:
- Built-in roles: COMMITTEE, REGISTRAR, ATTESTOR, OPERATOR
- Hierarchical roles with parent inheritance
- Permission system (resource/action/scope tuples)
- CheckCommittee() method for admin authorization
- TutusCommittee config for initial committee members
PersonToken integration:
- Added RoleRegistry field for cross-contract calls
- checkCommittee helper delegates to RoleRegistry with NEO fallback
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>