Skip to main content
Stores dispute templates that define the question, answer options, and metadata presented to jurors. Templates are referenced by ID when creating disputes.

Methods

setDisputeTemplate(string _templateTag, string _templateData, string _templateDataMappings) → uint256

Registers a new dispute template. Returns the template ID.
  • _templateTag Optional tag for categorization
  • _templateData JSON template string (see Dispute Template format)
  • _templateDataMappings JSON mapping for dynamic data population

Events

EventDescription
DisputeTemplate(templateId, templateTag, templateData, templateDataMappings)New template registered
View Source