This is the repo that implements the OCR3 CCIP plugins. This includes the commit and execution plugins.
This repo uses Go 1.22. You can install Go from their installation page.
We use golangci-lint as our linting tool. Run the linter like this:
make lintmake testWe use mockery to generate mocks and they're organized in the mockery.yaml file.
make generateIn order to keep the ccip-develop branch in working condition, we need to make sure the integration test
written in the CCIP repo
will pass.
As such, part of CI will run this integration test combined with your latest pushed change.
Follow the steps below to ensure that we don't run into any unexpected breakages.
- Create a PR on plugin-ccip with the changes you want to make.
- CI will run the integration test in the CCIP repo after applying your changes.
- If the integration test fails, make sure to fix it first before merging your changes into
the
ccip-developbranch of plugin-ccip. You can do this by:- Creating a branch in the CCIP repo and running
go get github.com/goplugin/plugin-ccip@<your-branch-commit-sha>. - Fixing the build/tests.
- Creating a branch in the CCIP repo and running
- Once your ccip PR is approved, merge it.
- Go back to your plugin-ccip PR and re-run the integration test workflow.
- Once the integration test passes, merge your plugin-ccip PR into
ccip-develop, however do not delete the branch on the remote. - Create a new PR in ccip that points to the newly merged commit in the
ccip-developtree and merge that.