Skip to content

Commit d49529c

Browse files
authored
Merge branch 'main' into verify-org-id
2 parents 96bb85b + 7a6d09c commit d49529c

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/oapi-codegen/runtime v1.1.2
1313
github.com/smartcontractkit/chain-selectors v1.0.89
1414
github.com/smartcontractkit/chainlink-common v0.10.0
15-
github.com/smartcontractkit/crec-api-go v0.4.14
15+
github.com/smartcontractkit/crec-api-go v0.5.1
1616
github.com/stretchr/testify v1.11.1
1717
github.com/testcontainers/testcontainers-go v0.38.0
1818
github.com/testcontainers/testcontainers-go/modules/vault v0.38.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ github.com/smartcontractkit/chainlink-common v0.10.0 h1:d90b9UPJecrIryzhl43F1oQw
451451
github.com/smartcontractkit/chainlink-common v0.10.0/go.mod h1:13YN2kb3Vqpw2S7d4IwhX/578WPGC0JHN5JrOnAEsOc=
452452
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260210221717-2546aed27ebe h1:Vc4zoSc/j6/FdCQ7vcyHTTB7kzHI2f+lHCHqFuiCcJQ=
453453
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260210221717-2546aed27ebe/go.mod h1:Jqt53s27Tr0jDl8mdBXg1xhu6F8Fci8JOuq43tgHOM8=
454-
github.com/smartcontractkit/crec-api-go v0.4.14 h1:Fa8ZhbsPnStTPxfGArUrv7z+I95tS8z3qWjmpgij8Xo=
455-
github.com/smartcontractkit/crec-api-go v0.4.14/go.mod h1:TuDZiMoStNQBv3HYA5pqpwPyecbMh8p5momO4b1A9Eg=
456454
github.com/smartcontractkit/libocr v0.0.0-20250912173940-f3ab0246e23d h1:LokA9PoCNb8mm8mDT52c3RECPMRsGz1eCQORq+J3n74=
457455
github.com/smartcontractkit/libocr v0.0.0-20250912173940-f3ab0246e23d/go.mod h1:Acy3BTBxou83ooMESLO90s8PKSu7RvLCzwSTbxxfOK0=
456+
github.com/smartcontractkit/crec-api-go v0.5.1 h1:PcemEKl1po98Ovb1+kQd6GrjP1t4Tr+UfYA/ScLRamI=
457+
github.com/smartcontractkit/crec-api-go v0.5.1/go.mod h1:TuDZiMoStNQBv3HYA5pqpwPyecbMh8p5momO4b1A9Eg=
458458
github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
459459
github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=
460460
github.com/spf13/afero v1.12.0 h1:UcOPyRBYczmFn6yvphxkn9ZEOY65cpwGKb5mL36mrqs=

watchers/watchers.go

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ type EventABI struct {
7979
}
8080

8181
type CreateWithServiceInput struct {
82-
Name *string `json:"name,omitempty"`
83-
ChainSelector string `json:"chain_selector"`
84-
Service string `json:"service"`
85-
Events []string `json:"events"`
86-
Address string `json:"address"`
82+
Name *string `json:"name,omitempty"`
83+
ChainSelector string `json:"chain_selector"`
84+
Service string `json:"service"`
85+
Events []string `json:"events"`
86+
Address string `json:"address"`
87+
ServiceConfig map[string]interface{} `json:"service_config,omitempty"`
8788
}
8889

8990
type CreateWithABIInput struct {
@@ -202,6 +203,9 @@ func (c *Client) CreateWithService(ctx context.Context, channelID uuid.UUID, inp
202203
Service: input.Service,
203204
Events: input.Events,
204205
}
206+
if input.ServiceConfig != nil {
207+
createWatcherWithService.ServiceConfig = &input.ServiceConfig
208+
}
205209

206210
var createWatcherReq apiClient.CreateWatcher
207211
if err := createWatcherReq.FromCreateWatcherWithService(createWatcherWithService); err != nil {

0 commit comments

Comments
 (0)