tutus-chain/pkg/core/native
Tutus Development 5d410f9ba0 Add asylum registry and naturalization for humanitarian protection
Extend Federation contract to protect citizens when their home government
becomes hostile:

- Add Asylum Registry for refugee protection
  - grantAsylum/revokeAsylum methods (committee only)
  - hasAsylum/getAsylumInfo query methods
  - AsylumGranted/AsylumRevoked events
  - Asylum seekers get 100% local Treasury funding with NO inter-chain
    debt to avoid funding hostile governments

- Add Naturalization (Vita Transfer) for permanent immigration
  - naturalize method for permanent citizenship transfer
  - isNaturalizedCitizen/getNaturalizationInfo query methods
  - CitizenNaturalized event
  - Naturalized citizens treated same as local Vita holders

- Add VitaExemptAsylum type for humanitarian override
  - Fee exemption priority: Local Vita > Naturalized > Visitor > Asylum
  - Asylum: 100% from local Treasury, zero inter-chain debt
  - Protects refugees even if home chain revokes their Vita

- Update IsVitaFeeExempt() to check all exemption types
  - Local Vita, naturalized citizens, visitors, and asylum seekers

The one-Vita-per-person rule remains inviolable - Vita is tied only to
a living person globally. This enables protection without duplication.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 04:55:56 +00:00
..
native_test Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
nativehashes Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
nativeids Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
nativenames Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +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
compatibility_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
contract.go Add asylum registry and naturalization for humanitarian protection 2025-12-20 04:55:56 +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 Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
doc.go Initial Tutus chain fork from NeoGo 2025-12-19 14:23:04 +00:00
federation.go Add asylum registry and naturalization for humanitarian protection 2025-12-20 04:55:56 +00:00
interop.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
invocation_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
ledger.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
management.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
management_neotest_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
management_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_gas.go Add asylum registry and naturalization for humanitarian protection 2025-12-20 04:55:56 +00:00
native_neo.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
native_neo_candidate.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +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
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 Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
oracle.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +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
policy.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
policy_test.go Update all imports from neo-go to tutus-chain 2025-12-19 14:28:17 +00:00
role_registry.go Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +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 Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
util.go Add VTS PersonToken integration and age-restricted spending 2025-12-20 03:16:33 +00:00
vita.go Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00
vts.go Add free GAS for Vita holders with cross-chain fee splitting 2025-12-20 04:27:55 +00:00