README

mokomoking2501/concord/protocol_ast does not have a README file

#
ProtocolIngestError

pub(all) suberror ProtocolIngestError {
ParseFailed(String)
MissingField(String)
InvalidField(String, String)
} derive(
Debug
)

#
ConformanceFailure

pub(all) struct ConformanceFailure {
source : ConformanceFailureSource
event_id : Int?
role : Role?
reason : String
} derive(Eq,
Debug
)

#
ConformanceFailureSource

pub(all) enum ConformanceFailureSource {
ObjectContractFailure
ProtocolContractFailure
} derive(Eq,
Debug
)

#
ConformanceFailureSource::label

#
ConformanceReport

pub(all) struct ConformanceReport {
protocol_id : String
checked_events : Int
matched_steps : Int
object_report :
ObjectMonitorReport

protocol_reports : Array[RoleProtocolReport]
first_failure : ConformanceFailure?
} derive(Eq,
Debug
)

#
ConformanceReport::passes

fn ConformanceReport::passes(self : ConformanceReport) -> Bool

#
GlobalProtocol

pub(all) struct GlobalProtocol {
protocol_id : String
messages : Array[ProtocolMessage]
terminal_labels : Array[String]
} derive(
Debug
)

#
GlobalProtocol::copy

#
GlobalProtocol::new

fn GlobalProtocol::new(protocol_id~ : String) -> GlobalProtocol

#
GlobalProtocol::project

fn GlobalProtocol::project(self : GlobalProtocol, role : Role) -> LocalProtocol

#
GlobalProtocol::send

fn GlobalProtocol::send(self : GlobalProtocol, from~ : Role, to~ : Role, label~ : String, object_id~ : String) -> GlobalProtocol

#
GlobalProtocol::with_terminal_label

fn GlobalProtocol::with_terminal_label(self : GlobalProtocol, label~ : String) -> GlobalProtocol

#
LocalDirection

pub(all) enum LocalDirection {
Send
Receive
} derive(Eq,
Debug
)

#
LocalDirection::label

fn LocalDirection::label(self : LocalDirection) -> String

#
LocalProtocol

pub(all) struct LocalProtocol {
protocol_id : String
role : Role
steps : Array[LocalStep]
terminal_labels : Array[String]
} derive(
Debug
)

#
LocalProtocol::copy

#
LocalStep

pub(all) struct LocalStep {
index : Int
direction : LocalDirection
label : String
peer : Role
object_id : String
} derive(Eq,
Debug
)

#
ObserverBackend

pub(all) struct ObserverBackend {
registry :
ContractRegistry

protocol : GlobalProtocol
roles : Array[Role]
} derive(
Debug
)

#
ProtocolLintIssue

pub(all) struct ProtocolLintIssue {
protocol_id : String
step_index : Int?
message : String
} derive(Eq,
Debug
)

#
ProtocolLintReport

pub(all) struct ProtocolLintReport {
issues : Array[ProtocolLintIssue]
} derive(Eq,
Debug
)

#
ProtocolLintReport::passes

fn ProtocolLintReport::passes(self : ProtocolLintReport) -> Bool

#
ProtocolMessage

pub(all) struct ProtocolMessage {
from : Role
to : Role
label : String
object_id : String
} derive(Eq,
Debug
)

#
ProtocolMessage::make

fn ProtocolMessage::make(from~ : Role, to~ : Role, label~ : String, object_id~ : String) -> ProtocolMessage

#
ProtocolMonitor

pub(all) struct ProtocolMonitor {
protocol : LocalProtocol
trace_node_id : String
} derive(
Debug
)

#
ProtocolMonitor::bind_trace_node_id

fn ProtocolMonitor::bind_trace_node_id(self : ProtocolMonitor, trace_node_id : String) -> ProtocolMonitor

#
ProtocolMonitor::new

fn ProtocolMonitor::new(local_protocol~ : LocalProtocol) -> ProtocolMonitor

#
ProtocolMonitorReport

pub(all) struct ProtocolMonitorReport {
matched_steps : Int
violations : Array[ProtocolViolation]
last_event_time :
VTime
?
} derive(Eq,
Debug
)

#
ProtocolMonitorReport::passes

fn ProtocolMonitorReport::passes(self : ProtocolMonitorReport) -> Bool

#
ProtocolViolation

pub(all) struct ProtocolViolation {
protocol_id : String
event_id : Int?
expected_label : String?
observed_label : String
reason : String
} derive(Eq,
Debug
)

#
Role

pub(all) enum Role {
Role(String)
} derive(Eq,
Debug
)

#
Role::label

fn Role::label(self : Role) -> String

#
RoleProtocolReport

pub(all) struct RoleProtocolReport {
role : Role
matched_steps : Int
violations : Array[ProtocolViolation]
last_event_time :
VTime
?
} derive(Eq,
Debug
)

#
RoleProtocolReport::passes

fn RoleProtocolReport::passes(self : RoleProtocolReport) -> Bool

#
axis_authority_protocol

fn axis_authority_protocol() -> GlobalProtocol

#
package_id

fn package_id() -> String

#
parse_global_protocol_json

fn parse_global_protocol_json(text : String) -> GlobalProtocol raise ProtocolIngestError

#
parse_global_protocol_text

fn parse_global_protocol_text(text : String) -> GlobalProtocol raise ProtocolIngestError

#
parse_global_protocol_yaml

fn parse_global_protocol_yaml(text : String) -> GlobalProtocol raise ProtocolIngestError

#
role

fn role(name~ : String) -> Role

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io