Skip to main content

Treasury Action Schema

Overview

The Treasury Action Schema defines the structure for logging and managing treasury-related actions within the Matou DAO ecosystem. It ensures that all treasury actions are recorded, tracked, and aligned with the community's financial governance processes.

Schema Structure

Core Entities

{
"treasury_action": {
"metadata": "TreasuryActionMetadata",
"details": "TreasuryActionDetails",
"status": "TreasuryActionStatus",
"relationships": "TreasuryActionRelationships"
}
}

Data Fields

1. TreasuryActionMetadata

FieldTypeRequiredDescriptionExample
idUUIDYesUnique action identifieraction_2025_001
created_atISO 8601YesCreation timestamp2025-01-15T10:30:00Z
updated_atISO 8601YesLast update timestamp2025-01-15T14:45:00Z
versionStringYesSchema version"0.1"
descriptionStringYesAction title"Transfer to Development Fund"
reasonEnumYesReason for the actionproposal_approved

2. TreasuryActionDetails

FieldTypeRequiredDescriptionExample
amountStringYesAmount involved in the action"10,000 UTIL"
currencyEnumYesCurrency typeUTIL, CTR, NZD
action_typeEnumYesType of actiontransfer, allocation, withdrawal, deposit
sourceUUIDYesSource of the distributionsource_001
destinationUUIDYesDestination of the distributioncontributor_001

3. TreasuryActionStatus

FieldTypeRequiredDescriptionExample
current_statusEnumYesCurrent statuspending, signed_off, rejected, completed, failed
status_historyArray[StatusChange]YesStatus change log[{"status": "completed", "timestamp": "2025-01-15T10:30:00Z"}]

4. TreasuryActionRelationships

FieldTypeRequiredDescriptionExample
related_proposalsArray[UUID]NoRelated proposals[]
related_contributionsArray[UUID]NoRelated contributions[]
initiated_byUUIDYesInitiator IDinitiator_001
signed_off_byUUIDYesTreasury steward ID who signed off the actionsteward_001

Validation Rules

1. Data Integrity Rules

  • Unique Identifiers: All action IDs must be globally unique
  • Required Fields: All required fields must be present and non-null
  • Data Types: All field values must match their defined types
  • Timestamps: All timestamps must be valid ISO 8601 format

2. Business Logic Rules

  • Status Transitions: Only valid status transitions are allowed
  • Currency Validation: Only supported currencies can be used

Integration Points

1. Governance System Integration

The treasury action schema integrates with the governance system to ensure seamless coordination between financial management and decision-making processes:

  • Action Status Synchronization: When action statuses change, the system automatically updates associated governance statuses to maintain consistency across the governance workflow

2. Token System Integration

The schema connects with the token infrastructure to enable automated treasury management:

  • UTIL Transfer: Automated UTIL token transfers occur upon action completion, providing immediate access to utility tokens for completed actions
  • Distribution Tracking: The system now tracks the source and destination of each distribution, ensuring transparency and accountability in treasury actions.

Conclusion

The Treasury Action Schema provides a comprehensive foundation for managing treasury actions within the DAO ecosystem. By integrating financial governance processes and technical requirements, this schema ensures:

  • Transparency: All action data is visible and auditable
  • Scalability: Machine-readable data enables automation and growth
  • Efficiency: Automated workflows reduce administrative overhead

The schema is designed to evolve with the community's needs while maintaining the core principles of decentralized governance and financial transparency. Regular reviews and updates ensure it continues to serve the community effectively as the DAO grows and develops.