[PRODCRE-792] Per-method onchain config for capabilities V2#1507
[PRODCRE-792] Per-method onchain config for capabilities V2#1507
Conversation
bolekk
commented
Aug 28, 2025
- Add per-method config - each method can be either a trigger or an executable.
- Include some extra fields that were previously hardcoded in Launcher.
apidiff results - backwards-incompatible changes detected ❌Module:
|
| Element | Change |
|---|---|
./pkg/capabilities.RemoteExecutableConfig.RegistrationExpiry |
removed |
./pkg/capabilities.RemoteExecutableConfig.RegistrationRefresh |
removed |
./pkg/capabilities/pb.(*RemoteExecutableConfig).GetRegistrationExpiry |
removed |
./pkg/capabilities/pb.(*RemoteExecutableConfig).GetRegistrationRefresh |
removed |
./pkg/capabilities/pb.RemoteExecutableConfig.RegistrationExpiry |
removed |
./pkg/capabilities/pb.RemoteExecutableConfig.RegistrationRefresh |
removed |
(Full summary: https://github.com/smartcontractkit/chainlink-common/actions/runs/17470297807/#summary-49616699898)
902e4ab to
b7b8df6
Compare
b7b8df6 to
4afb833
Compare
4afb833 to
15979b6
Compare
15979b6 to
5e752bb
Compare
5e752bb to
9fb02dd
Compare
9fb02dd to
59fda9e
Compare
59fda9e to
9019c7d
Compare
9019c7d to
cf623d0
Compare
| RemoteExecutableConfig *RemoteExecutableConfig | ||
|
|
||
| // v2 / "NoDAG" capabilities | ||
| CapabilityMethodConfig map[string]CapabilityMethodConfig |
There was a problem hiding this comment.
I'll add a comment here saying the key has to match the exact literal value of the capability's proto file like LogTrigger (trigger), WriteReport (action/executable), GetTransactionByHash (action/executable) as the generated Go code for the actions will be consistent, but for the trigger will prepend the Register, such as RegisterLogTrigger and the method to be added to that map is LogTrigger and not RegisterLogTrigger)
There was a problem hiding this comment.
I think the prefixes are an implementation detail and the SDK will use methods exposed to the users.