diff --git a/core/capabilities/ccip/ccipevm/executecodec.go b/core/capabilities/ccip/ccipevm/executecodec.go index 3fa700685d9..a68fa90b987 100644 --- a/core/capabilities/ccip/ccipevm/executecodec.go +++ b/core/capabilities/ccip/ccipevm/executecodec.go @@ -36,6 +36,14 @@ func NewExecutePluginCodecV1() *ExecutePluginCodecV1 { } } +// Encode serializes the CommitPluginReport into a byte array. +// Parameters: +// - ctx: The context for controlling the lifetime of the request. +// - report: The CommitPluginReport containing information to be encoded, +// including Merkle roots, RMN signatures, and price updates. +// Returns: +// - A byte array containing the encoded commit report, excluding the first +// four bytes. func (e *ExecutePluginCodecV1) Encode(ctx context.Context, report cciptypes.ExecutePluginReport) ([]byte, error) { evmReport := make([]offramp.InternalExecutionReport, 0, len(report.ChainReports)) diff --git a/core/capabilities/compute/transformer.go b/core/capabilities/compute/transformer.go index 7eca7b7c72f..f9aa0a2ae4b 100644 --- a/core/capabilities/compute/transformer.go +++ b/core/capabilities/compute/transformer.go @@ -24,6 +24,13 @@ type ParsedConfig struct { type transformer struct{} +// Transform processes the input map and extracts various configuration values, +// returning a parsed configuration object. +// Parameters: +// - in: A pointer to a values.Map containing the input data to be transformed. +// - opts: Optional functional parameters that can modify the ParsedConfig. +// Returns: +// - A pointer to the ParsedConfig containing the transformed values. func (t *transformer) Transform(in *values.Map, opts ...func(*ParsedConfig)) (*ParsedConfig, error) { binary, err := popValue[[]byte](in, binaryKey) if err != nil {