Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trigger proto for Data Streams; add ReportFormatCapabilityTrigger #1045

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/capabilities/pb/generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:generate protoc --go_out=../../ --go_opt=paths=source_relative --go-grpc_out=../../ --go-grpc_opt=paths=source_relative --proto_path=../../ capabilities/pb/capabilities.proto values/pb/values.proto
//go:generate protoc --go_out=../../ --go_opt=paths=source_relative --go-grpc_out=../../ --go-grpc_opt=paths=source_relative --proto_path=../../ capabilities/pb/registry.proto values/pb/values.proto
//go:generate protoc --go_out=../../ --go_opt=paths=source_relative --go-grpc_out=../../ --go-grpc_opt=paths=source_relative --proto_path=../../ capabilities/pb/triggers.proto values/pb/values.proto
package pb
340 changes: 340 additions & 0 deletions pkg/capabilities/pb/triggers.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions pkg/capabilities/pb/triggers.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax = "proto3";

package v1;

option go_package = "github.com/smartcontractkit/chainlink-common/pkg/capabilities/pb";

import "values/pb/values.proto";

message OCRTriggerEvent {
bytes configDigest = 1;
uint64 seqNr = 2;
bytes report = 3; // marshalled OCRTriggerReport
repeated OCRAttributedOnchainSignature sigs = 4;
}

message OCRAttributedOnchainSignature {
bytes signature = 1;
// signer is actually a uint8 but uint32 is the smallest supported by protobuf
uint32 signer = 2;
}

message OCRTriggerReport {
string eventID = 1; // unique, scoped to the trigger capability
int64 timestamp = 2; // used to enforce freshness
values.Map outputs = 3; // contains trigger-specific data
}
Loading
Loading