-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * Add loopp binary for OCR3 capability * Update pin * Add binary to dockerfile * Add command to run ocr3 capability * Add make install command to Dockerfile * Add workflow to job type * Bump common * Pick up moved StreamID
- Loading branch information
1 parent
4c4ac47
commit 60de607
Showing
12 changed files
with
65 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ var ( | |
Stream: {}, | ||
VRF: {}, | ||
Webhook: {}, | ||
Workflow: {}, | ||
} | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/hashicorp/go-plugin" | ||
|
||
"github.com/smartcontractkit/chainlink-common/pkg/capabilities/consensus/ocr3" | ||
"github.com/smartcontractkit/chainlink-common/pkg/loop" | ||
"github.com/smartcontractkit/chainlink-common/pkg/loop/reportingplugins" | ||
ocr3rp "github.com/smartcontractkit/chainlink-common/pkg/loop/reportingplugins/ocr3" | ||
"github.com/smartcontractkit/chainlink-common/pkg/types" | ||
"github.com/smartcontractkit/chainlink/v2/core/services/relay/evm" | ||
) | ||
|
||
const ( | ||
loggerName = "PluginOCR3Capability" | ||
) | ||
|
||
func main() { | ||
s := loop.MustNewStartedServer(loggerName) | ||
defer s.Stop() | ||
|
||
p := ocr3.NewOCR3(s.Logger, evm.NewEVMEncoder) | ||
defer s.Logger.ErrorIfFn(p.Close, "Failed to close") | ||
|
||
s.MustRegister(p) | ||
|
||
stop := make(chan struct{}) | ||
defer close(stop) | ||
|
||
plugin.Serve(&plugin.ServeConfig{ | ||
HandshakeConfig: reportingplugins.ReportingPluginHandshakeConfig(), | ||
Plugins: map[string]plugin.Plugin{ | ||
ocr3rp.PluginServiceName: &ocr3rp.GRPCService[types.PluginProvider]{ | ||
PluginServer: p, | ||
BrokerConfig: loop.BrokerConfig{ | ||
Logger: s.Logger, | ||
StopCh: stop, | ||
GRPCOpts: s.GRPCOpts, | ||
}, | ||
}, | ||
}, | ||
GRPCServer: s.GRPCOpts.NewServer, | ||
}) | ||
} |