Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav committed Jan 9, 2025
1 parent a696c7a commit 043e624
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/types/llo/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ const (
// ReportFormatRetirement is a special "capstone" report format to indicate
// a retired OCR instance, and handover crucial information to a new one
ReportFormatRetirement ReportFormat = 3
// ReportFormatEVMAbiEncodeUnpacked supports encoding reports with a fixed
// ReportFormatEVMABIEncodeUnpacked supports encoding reports with a fixed
// schema followed by an arbitrary ABI-encoded payload
ReportFormatEVMAbiEncodeUnpacked = 4
ReportFormatEVMABIEncodeUnpacked = 4

_ ReportFormat = math.MaxUint32 // reserved
)
Expand All @@ -66,6 +66,8 @@ func (rf ReportFormat) String() string {
return "json"
case ReportFormatRetirement:
return "retirement"
case ReportFormatEVMABIEncodeUnpacked:
return "evm_abi_encode_unpacked"
default:
return fmt.Sprintf("unknown(%d)", rf)
}
Expand All @@ -79,6 +81,8 @@ func ReportFormatFromString(s string) (ReportFormat, error) {
return ReportFormatJSON, nil
case "retirement":
return ReportFormatRetirement, nil
case "evm_abi_encode_unpacked":
return ReportFormatEVMABIEncodeUnpacked, nil
default:
return 0, fmt.Errorf("unknown report format: %q", s)
}
Expand Down

0 comments on commit 043e624

Please sign in to comment.