From 804bccd11ce46dba18e57aba988a8f66859f0657 Mon Sep 17 00:00:00 2001 From: Sam Davies Date: Thu, 9 Jan 2025 12:32:23 -0500 Subject: [PATCH] Serialization for ReportFormatEVMABIEncodeUnpacked --- pkg/types/llo/types.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/types/llo/types.go b/pkg/types/llo/types.go index 2b53b91eb..e204c1e8d 100644 --- a/pkg/types/llo/types.go +++ b/pkg/types/llo/types.go @@ -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 ) @@ -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) } @@ -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) }