tutus-chain/pkg/core/native
Tutus Development 5678ae0e46 Complete Collocatio native contract for PIO/EIO/CIO investments
Implement comprehensive investment infrastructure with three tiers:
- PIO (Public Investment Opportunity): Universal citizen access
- EIO (Employee Investment Opportunity): Workplace democracy
- CIO (Contractor Investment Opportunity): Gig economy empowerment

New Features:

Violation System:
- recordViolation: Record violations with evidence and penalties
- resolveViolation: Resolve violations with committee authority
- getViolation: Query violation records
- Auto-ban after MaxViolationsBeforeBan threshold

Employment Verification (EIO eligibility):
- verifyEmployment: Register employee-employer relationships
- revokeEmployment: End employment verification
- getEmploymentStatus: Query employment records
- EIO eligibility requires active employment

Contractor Verification (CIO eligibility):
- verifyContractor: Register contractor-platform relationships
- revokeContractor: End contractor verification
- getContractorStatus: Query contractor records
- CIO eligibility requires active contractor status

Returns Distribution:
- distributeReturns: Proportional returns to all investors
- cancelOpportunity: Refund investors on cancellation

Education Integration:
- completeInvestmentEducation: Mark investor education complete
- Scire certification tracking for eligibility

Query Methods:
- getInvestmentsByOpportunity: List investments per opportunity
- getInvestmentsByInvestor: List investments per investor
- getOpportunitiesByType: Filter by PIO/EIO/CIO
- getOpportunitiesByStatus: Filter by lifecycle status

Lifecycle Automation (PostPersist):
- Auto-close opportunities past investment deadline
- Auto-fail opportunities below minimum participants
- Runs every 100 blocks for performance

State Serialization:
- Add ToStackItem/FromStackItem for EmploymentVerification
- Add ToStackItem/FromStackItem for ContractorVerification
- Add ToStackItem/FromStackItem for InvestmentViolation

Tests:
- 14 test cases for config, counters, queries, error handling

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-21 04:18:23 +00:00
..
native_test Complete Collocatio native contract for PIO/EIO/CIO investments 2025-12-21 04:18:23 +00:00
nativehashes Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
nativeids Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
nativenames Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
nativeprices Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
noderoles Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
annos.go Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
collocatio.go Complete Collocatio native contract for PIO/EIO/CIO investments 2025-12-21 04:18:23 +00:00
compatibility_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
contract.go Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
contract_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
crypto.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
crypto_blspoints.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
crypto_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
designate.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
doc.go Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
eligere.go Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
federation.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
interop.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
invocation_test.go Fix remaining Neo/Gas references to Tutus/Lub in test files 2025-12-21 02:43:45 +00:00
ledger.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
lex.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
management.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
management_neotest_test.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
management_test.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
native_lub.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
native_neo_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_nep17.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_tutus.go Rename interop packages neo→tutus and gas→lub 2025-12-21 03:20:53 +00:00
native_tutus_candidate.go Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
nativenames_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
neo_types.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
notary.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
opus.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
oracle.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
oracle_types.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
oracle_types_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
palam.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
policy.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
policy_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
pons.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
role_registry.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
salus.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
scire.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
sese.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
std.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
std_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
treasury.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
tribute.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00
util.go Add VTS PersonToken integration and age-restricted spending 2025-12-20 03:16:33 +00:00
vita.go Add Annos lifespan contract and Eligere voting age integration 2025-12-21 00:55:29 +00:00
vts.go Complete Annos to Tutus rename across codebase 2025-12-21 00:56:43 +00:00