Skip to content

Commit dedaa5a

Browse files
committed
PLEX-1569 custom ocr3 ocr3 for chain capability (#1559)
* ReportingPluginConfig * rename ocr3_config_types to ocr3_chain_capaiblities_config_types to avoid conflict
1 parent 8817bb8 commit dedaa5a

3 files changed

Lines changed: 189 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package types
2+
3+
//go:generate protoc --go_out=. --go_opt=paths=source_relative -I. ocr3_chain_capabilities_config_types.proto

pkg/capabilities/v2/chain-capabilities/consensus/ocr3/types/ocr3_chain_capabilities_config_types.pb.go

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
syntax = "proto3";
2+
3+
option go_package = "capabilities/v2/chain-capabilities/consensus/ocr3/types";
4+
5+
package chain_capabilities_ocr3_config_types;
6+
7+
message ReportingPluginConfig {
8+
// These fields are shadowing the `ReportingPluginLimits` fields.
9+
// See: https://github.com/smartcontractkit/libocr/blob/master/offchainreporting2plus/ocr3types/plugin.go#L296
10+
uint32 maxQueryLengthBytes = 1;
11+
uint32 maxObservationLengthBytes = 2;
12+
uint32 maxOutcomeLengthBytes = 3;
13+
uint32 maxReportLengthBytes = 4;
14+
uint32 maxReportCount = 5;
15+
16+
uint32 maxBatchSize = 6;
17+
}

0 commit comments

Comments
 (0)