Andamio Logo
Protocol/Protocol V2

Protocol V2

Andamio Protocol V2 - Enhanced state management, simplified roles, and migration support

Andamio Protocol V2

Protocol V2 features a streamlined role structure, enhanced state management, and efficient batch operations.

New to V2? Check out What's New in V2 for a detailed look at batch module management, SLT hash encoding, and cost savings. For hands-on walkthroughs, see the Platform Guides. To start building, see the SDK Getting Started.

V2 Architecture Overview

Role Structure

V2 uses six canonical roles across the Course and Project systems:

Course System:

  • Course Owner - Creates courses, manages teacher access
  • Course Teacher - Manages modules, assesses student assignments
  • Course Student - Enrolls in courses, completes assignments, claims credentials

Project System:

  • Project Owner - Creates projects, manages treasury and requirements
  • Project Manager - Oversees contributor work and approvals
  • Project Contributor - Commits to tasks, earns rewards

Protocol-Wide:

  • General - Protocol entry point (access tokens, registration)

New Systems in V2

  1. Local State Registration - New global validator system for registering local states to the global V2 system
  2. Global State V2 - Enhanced state management with improved tracking and coordination
  3. Course State V2 - Upgraded course validators with better state handling
  4. Contributor State V2 - Enhanced contributor tracking and reward distribution

Protocol Components

Validators

V2 validators organized by system:

SystemValidatorsPurpose
Global State2Core protocol state (V1 compat + V2 enhanced)
Global1Local state registration
Index Validators3Access token minting and index references
Instance3Instance-level management
Course4 + 3 observersCourse and assignment management
Project3 + 4 observersContributor and treasury management

Transactions

V2 transactions organized by system and role:

SystemRoleTransactionsKey Operations
GeneralOpen1mint-access-token (~7.9 ADA)
CourseOwner2create (~45 ADA), teachers-manage (~5.3 ADA)
CourseTeacher2modules-manage, assignments-assess
CourseStudent3assignment-commit, assignment-update, credential-claim

Single Credential Loop Cost: Student ~1.11 ADA + Teacher ~0.21 ADA = ~1.32 ADA total

Tokens

V2 tokens organized by system:

SystemKey Tokens
Global Stateaccess-token-user, access-token-global-state, access-token-index
Globallocal-state-registration
Local Statelocal-state-nft
Instanceinstance-admin-token, course-nft, project-nft
Coursecourse-state-v2-token, module-token
Projectcontributor-state-v2-token, treasury-token

Migration from V1

Users with V1 global state can migrate to V2 using the move-global-state-v1-to-v2 transaction. This preserves existing access tokens while enabling V2 features.

Source of Truth

V2 protocol documentation is built from multiple registry files:

RegistryPurpose
address-registry.jsonValidators, policies, observers with addresses
endpoint-registry.jsonAPI endpoints with request/response schemas
cost-registry.jsonTransaction fees, protocol fees, loop costs

API Endpoints:

  • /api/transaction-v2?file=<path>&format=v1 - Transaction YAML data
  • /api/costs/v2 - Cost registry (supports ?tx=, ?loop=, ?summary=true)

Status

Course System: ✅ Complete (8 transactions documented) Project System: 🔜 Coming soon

Documentation is aligned with the Atlas API Preprod swagger.