Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
4d73ff7
Hook donTimeStore
DylanTinianov Jun 26, 2025
60df926
Update time_provider.go
DylanTinianov Jun 26, 2025
b84f07a
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jun 26, 2025
e2a125a
Bump chainlink-common
DylanTinianov Jun 26, 2025
dd18ecc
Update time_provider.go
DylanTinianov Jun 26, 2025
f59a170
Update comments
DylanTinianov Jun 26, 2025
031fddb
Update time_provider.go
DylanTinianov Jun 26, 2025
16694b0
Add ctx to GetDONTime
DylanTinianov Jun 27, 2025
fa9f058
Error on failed DON Time call
DylanTinianov Jun 27, 2025
41ffc17
Initialize dontimeStore
DylanTinianov Jun 30, 2025
e575c3e
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 2, 2025
4af9ee6
Bump common
DylanTinianov Jul 2, 2025
827d57d
Bump common
DylanTinianov Jul 2, 2025
20a059f
Fix ambiguous selector
DylanTinianov Jul 4, 2025
c9b5e29
Add provider
DylanTinianov Jul 4, 2025
35ad4b6
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 4, 2025
2bcea3f
Bump
DylanTinianov Jul 4, 2025
34b3433
lint
DylanTinianov Jul 4, 2025
54981fa
Bump common
DylanTinianov Jul 4, 2025
2175eab
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 7, 2025
fd8a495
Bump common
DylanTinianov Jul 7, 2025
9673366
Add dontime store
DylanTinianov Jul 7, 2025
40d06ca
Add dontime store
DylanTinianov Jul 7, 2025
080659f
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 9, 2025
11f9bcc
Bump common
DylanTinianov Jul 9, 2025
caa6c9d
Bump common
DylanTinianov Jul 11, 2025
31d5c8f
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 11, 2025
3317ff5
Bump common
DylanTinianov Jul 11, 2025
5404f5a
Initialize TimeProvider
DylanTinianov Jul 11, 2025
d5e0ff2
Bump common
DylanTinianov Jul 11, 2025
fe0ad65
tidy
DylanTinianov Jul 11, 2025
d42b81a
lint
DylanTinianov Jul 11, 2025
5cfcd3f
Pass dontime store
DylanTinianov Jul 14, 2025
df699aa
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 14, 2025
6423ab4
Bump common
DylanTinianov Jul 14, 2025
defd087
Update standalone_engine.go
DylanTinianov Jul 14, 2025
4d9db4c
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 14, 2025
5f70a63
Create local time provider
DylanTinianov Jul 14, 2025
3d29277
lint
DylanTinianov Jul 14, 2025
e6d1200
lint
DylanTinianov Jul 14, 2025
2b0b625
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 15, 2025
1154738
Bump common
DylanTinianov Jul 15, 2025
fb145fc
modgraph
DylanTinianov Jul 15, 2025
86d4fcf
Remove dontime from v1 Engine
DylanTinianov Jul 15, 2025
5725e07
Remove dontime store from v1
DylanTinianov Jul 15, 2025
22517da
Update standalone_engine.go
DylanTinianov Jul 15, 2025
b8f18f3
Update engine_test.go
DylanTinianov Jul 16, 2025
a9a2cd3
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 16, 2025
2cf3b3b
Add DonTime job spec
DylanTinianov Jul 16, 2025
3490567
Update dontime job spec
DylanTinianov Jul 16, 2025
4f2e7c4
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 17, 2025
2c1f236
Update definitions.go
DylanTinianov Jul 17, 2025
e95e92b
Update time_provider.go
DylanTinianov Jul 17, 2025
ac3812a
Add dontime capability
DylanTinianov Jul 17, 2025
bad4d3b
Trigger CI
DylanTinianov Jul 17, 2025
4bf7367
Merge branch 'CAPPL-903-time-module-hook' of https://github.com/smart…
DylanTinianov Jul 17, 2025
f88c7a6
Bump common
DylanTinianov Jul 17, 2025
99885a0
Bump common
DylanTinianov Jul 17, 2025
e8a1a2c
Add dontime plugin cmd
DylanTinianov Jul 17, 2025
db7207c
Add ocrKeys and transmitterID
DylanTinianov Jul 17, 2025
49ae50b
Add DONTime to workflow
DylanTinianov Jul 28, 2025
b9fccb0
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Jul 28, 2025
4fa1723
Try Initializing plugin in relay
DylanTinianov Jul 29, 2025
269b809
Add plugin delegate
DylanTinianov Jul 29, 2025
a18babe
Merge branch 'CAPPL-903-time-module-hook' of https://github.com/smart…
DylanTinianov Jul 29, 2025
464195c
Integrate DON Time with Local Env
DylanTinianov Jul 30, 2025
6b558b9
Update delegate.go
DylanTinianov Jul 30, 2025
0156af0
Bump common
DylanTinianov Aug 6, 2025
2a4ab82
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 6, 2025
4a6ba2c
Fix duplicates
DylanTinianov Aug 12, 2025
aa20a25
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 12, 2025
2902f59
Bump common
DylanTinianov Aug 12, 2025
9698401
Create DON Time Contract
DylanTinianov Aug 12, 2025
04f183d
Use common addr
DylanTinianov Aug 12, 2025
bf3a1cd
Merge pull request #18928 from smartcontractkit/CAPPL-944-duplicate-c…
DylanTinianov Aug 12, 2025
71b50c7
Remove comments
DylanTinianov Aug 12, 2025
82ddb3d
Merge branch 'CAPPL-944-dontime-job-spec' of https://github.com/smart…
DylanTinianov Aug 12, 2025
464facd
Use DON Time Provider
DylanTinianov Aug 12, 2025
c63a6da
Fix limits
DylanTinianov Aug 12, 2025
0003b8c
Fix deployment sequence
DylanTinianov Aug 12, 2025
1e8337c
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 12, 2025
bb1eca9
lint
DylanTinianov Aug 12, 2025
aecaeac
Secondary time hook
DylanTinianov Aug 15, 2025
0453c1c
Bump common
DylanTinianov Aug 15, 2025
90c9355
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 15, 2025
a326e8a
Bump common
DylanTinianov Aug 15, 2025
f826820
Revert defaults
DylanTinianov Aug 15, 2025
8a9f462
Bump common
DylanTinianov Aug 15, 2025
8df8051
Bump common
DylanTinianov Aug 15, 2025
4ed1d7c
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 18, 2025
10db8c9
Remove context
DylanTinianov Aug 18, 2025
5378609
Add smoke test TODO
DylanTinianov Aug 18, 2025
cc6c161
Use LocalTimeProvider for tests
DylanTinianov Aug 18, 2025
5925ef0
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 18, 2025
5aa8324
Bump common + cre sdk
DylanTinianov Aug 20, 2025
26ce28f
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 20, 2025
aa7f38d
Bump common + cre sdk
DylanTinianov Aug 20, 2025
ac5ca86
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 20, 2025
58696ba
Bump common + cre sdk
DylanTinianov Aug 20, 2025
ab6412d
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 20, 2025
8f79a9f
Bump cre sdk
DylanTinianov Aug 20, 2025
6b71ca1
Bump dependencies
DylanTinianov Aug 21, 2025
fdbb157
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 21, 2025
f0604d7
comments
DylanTinianov Aug 22, 2025
dca4013
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 22, 2025
fe20959
Bump sdk
DylanTinianov Aug 22, 2025
92e6e00
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Aug 29, 2025
9ab8bb1
Create DonTime Test
DylanTinianov Aug 29, 2025
50a3858
Merge
DylanTinianov Sep 3, 2025
8bec66b
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Sep 9, 2025
d0fb62e
Update v2_dontime_test.go
DylanTinianov Sep 9, 2025
d2b988c
Create DON Time smoke test
DylanTinianov Sep 9, 2025
7187f38
Update v2_dontime_test.go
DylanTinianov Sep 9, 2025
ca64ca4
Verify consensus
DylanTinianov Sep 9, 2025
0f44275
Create slimy-panthers-allow.md
DylanTinianov Sep 9, 2025
b8f61f5
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Sep 9, 2025
a387be6
Merge branch 'develop' of https://github.com/smartcontractkit/chainli…
DylanTinianov Sep 9, 2025
7a1868a
Update test
DylanTinianov Sep 9, 2025
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
5 changes: 5 additions & 0 deletions .changeset/slimy-panthers-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#added smoke tests for DON Time in CRE Local Environment. #internal
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.24.5
toolchain go1.24.7

require (
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729191525-ac1867f3ff34
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.2.1-0.20250729191525-ac1867f3ff34
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250821154918-5c93d76162c5
)

require (
Expand All @@ -16,8 +16,7 @@ require (
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250718143957-41236f9ef8b4 // indirect
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250718162715-0c70aa0d3a06 // indirect
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d // indirect
github.com/stretchr/testify v1.10.0 // indirect
google.golang.org/protobuf v1.36.7 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
Expand Down
14 changes: 6 additions & 8 deletions core/scripts/cre/environment/examples/workflows/v2/time/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@ github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250718143957-41236f9ef8b4 h1:hPKEslzkVA2HUuqwGc6w594EWYnJFp5jXmAoBu3VryE=
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250718143957-41236f9ef8b4/go.mod h1:U1UAbPhy6D7Qz0wHKGPoQO+dpR0hsYjgUz8xwRrmKwI=
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250718162715-0c70aa0d3a06 h1:7BTF+QDqmXzL1JIvtMJx665Hg9ixr/gEAzvWiJNmxeo=
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250718162715-0c70aa0d3a06/go.mod h1:LEZQ/SbFHseQJrLKVm6ELB8gyI4G8rVEH3SQzzZqFDk=
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729191525-ac1867f3ff34 h1:VoT3Vo8U6BcA6CZgvfzx5XjF47flLqPhQi7H4xXDr+8=
github.com/smartcontractkit/cre-sdk-go v0.2.1-0.20250729191525-ac1867f3ff34/go.mod h1:HqCmnnjRZ0B3uAMify4/Wahaz6kvwoZ6SvD1989M9QQ=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.2.1-0.20250729191525-ac1867f3ff34 h1:zIKBDVs/NtKEyhfzuqZUCG1b/5up6s6ZAvj0ktWS1lo=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.2.1-0.20250729191525-ac1867f3ff34/go.mod h1:WzBKJEsPkSF4ZWh0fpExImz7MHWit35nSkPgs/Z0RJo=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d h1:MJS8HTB1h3w7qV+70ueWnTQlMG8mxDUV/GdQH54Rg6g=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5 h1:aur7c3C1wZsJCmGOOWVnUkDcpKKpoNkulniSxsQAB0U=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5/go.mod h1:3UcpptqBmJs42bQ62pUQoqfGwbvVQvcdqlUMueicbqs=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250821154918-5c93d76162c5 h1:eg1xCOTNcihkVa1PAU3aT2vmMQTF78QGAbEJELXSU/c=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250821154918-5c93d76162c5/go.mod h1:UaZJB6YRx3rsuvEtZWJ9zFH/ap3gXz30BldsrpUrYfM=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
package main

import (
"time"
"log/slog"

"github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron"
sdk "github.com/smartcontractkit/cre-sdk-go/cre"
"github.com/smartcontractkit/cre-sdk-go/cre"
"github.com/smartcontractkit/cre-sdk-go/cre/wasm"
)

Expand All @@ -18,18 +18,18 @@ func main() {
}).Run(RunSimpleCronWorkflow)
}

func RunSimpleCronWorkflow(wcx *sdk.Environment[None]) (sdk.Workflow[None], error) {
workflows := sdk.Workflow[None]{
sdk.Handler(
func RunSimpleCronWorkflow(_ None, _ *slog.Logger, _ cre.SecretsProvider) (cre.Workflow[None], error) {
workflows := cre.Workflow[None]{
cre.Handler(
cron.Trigger(&cron.Config{Schedule: "*/30 * * * * *"}),
onTrigger,
),
}
return workflows, nil
}

func onTrigger(wcx *sdk.Environment[None], runtime sdk.Runtime, trigger *cron.Payload) (string, error) {
donTime := time.Now()
wcx.Logger.Info("Requested DON Time", "donTime", donTime)
func onTrigger(_ None, runtime cre.Runtime, _ *cron.Payload) (string, error) {
donTime := runtime.Now()
runtime.Logger().Info("Requested DON Time", "donTime", donTime)
return "Requested DON Time", nil
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module main

go 1.24.5

toolchain go1.24.7

require (
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250821154918-5c93d76162c5
)

require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d // indirect
github.com/stretchr/testify v1.10.0 // indirect
google.golang.org/protobuf v1.36.7 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=
github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o=
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d h1:MJS8HTB1h3w7qV+70ueWnTQlMG8mxDUV/GdQH54Rg6g=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250819150450-95ef563f6e6d/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5 h1:aur7c3C1wZsJCmGOOWVnUkDcpKKpoNkulniSxsQAB0U=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5/go.mod h1:3UcpptqBmJs42bQ62pUQoqfGwbvVQvcdqlUMueicbqs=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250821154918-5c93d76162c5 h1:eg1xCOTNcihkVa1PAU3aT2vmMQTF78QGAbEJELXSU/c=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250821154918-5c93d76162c5/go.mod h1:UaZJB6YRx3rsuvEtZWJ9zFH/ap3gXz30BldsrpUrYfM=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A=
google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//go:build wasip1

package main

import (
"errors"
"log/slog"
"time"

"github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron"
"github.com/smartcontractkit/cre-sdk-go/cre"
"github.com/smartcontractkit/cre-sdk-go/cre/wasm"
)

type None struct{}

func main() {
wasm.NewRunner(func(configBytes []byte) (None, error) {
return None{}, nil
}).Run(RunSimpleCronWorkflow)
}

func RunSimpleCronWorkflow(_ None, _ *slog.Logger, _ cre.SecretsProvider) (cre.Workflow[None], error) {
workflows := cre.Workflow[None]{
cre.Handler(
cron.Trigger(&cron.Config{Schedule: "*/30 * * * * *"}),
onTrigger,
),
}
return workflows, nil
}

func onTrigger(cfg None, runtime cre.Runtime, _ *cron.Payload) (string, error) {
dontime1 := runtime.Now()
dontime2 := runtime.Now()

if !dontime2.After(dontime1) {
return "", errors.New("DON time not increasing")
}
promise := cre.RunInNodeMode(cfg, runtime,
func(cfg None, nodeRuntime cre.NodeRuntime) (time.Time, error) {
return dontime1, nil
},
cre.ConsensusIdenticalAggregation[time.Time](),
)

_, err := promise.Await()
if err != nil {
runtime.Logger().Error("Failed to get identical consensus on DON Time")
return "", err
}

runtime.Logger().Info("Verified consensus on DON Time")
return "Verified consensus on DON Time", nil
}
6 changes: 3 additions & 3 deletions core/scripts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ require (
github.com/smartcontractkit/chainlink-deployments-framework v0.42.0
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20250909183314-c46f62fb74f6
github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20250827130336-5922343458be
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250829155125-f4655b0b4605
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250908151016-bf310cf85379
github.com/smartcontractkit/chainlink-protos/job-distributor v0.13.1
github.com/smartcontractkit/chainlink-testing-framework/framework v0.10.17
github.com/smartcontractkit/chainlink-testing-framework/framework/components/dockercompose v0.1.13
Expand Down Expand Up @@ -486,12 +486,12 @@ require (
github.com/smartcontractkit/chainlink-protos/rmn/v1.6/go v0.0.0-20250131130834-15e0d4cde2a6 // indirect
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 // indirect
github.com/smartcontractkit/chainlink-protos/svr v1.1.0 // indirect
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250822025801-598d3d86f873 // indirect
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250908151016-bf310cf85379 // indirect
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250905170534-87e867e6cf31 // indirect
github.com/smartcontractkit/chainlink-testing-framework/framework/components/fake v0.10.0 // indirect
github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2 // indirect
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250815105909-75499abc4335 // indirect
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250818141131-0b979c98bab0 // indirect
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5 // indirect
github.com/smartcontractkit/crib-sdk v0.4.0 // indirect
github.com/smartcontractkit/freeport v0.1.3-0.20250716200817-cb5dfd0e369e // indirect
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect
Expand Down
12 changes: 6 additions & 6 deletions core/scripts/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1564,8 +1564,8 @@ github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250729142306-
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250729142306-508e798f6a5d/go.mod h1:2JTBNp3FlRdO/nHc4dsc9bfxxMClMO1Qt8sLJgtreBY=
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722225531-876fd6b94976 h1:mF3FiDUoV0QbJcks9R2y7ydqntNL1Z0VCPBJgx/Ms+0=
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722225531-876fd6b94976/go.mod h1:HHGeDUpAsPa0pmOx7wrByCitjQ0mbUxf0R9v+g67uCA=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250829155125-f4655b0b4605 h1:yVH5tLDzW2ZBUpmkHF5nci1SRSXTcU3A1VZ8iS5qudA=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250829155125-f4655b0b4605/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250908151016-bf310cf85379 h1:AeXgr3/rGqQr3XxA0oxdWlTFR1xbpmEkc6sa9Dh4p+w=
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250908151016-bf310cf85379/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q=
github.com/smartcontractkit/chainlink-protos/job-distributor v0.13.1 h1:PWwLGimBt37eDzpbfZ9V/ZkW4oCjcwKjKiAwKlSfPc0=
github.com/smartcontractkit/chainlink-protos/job-distributor v0.13.1/go.mod h1:/dVVLXrsp+V0AbcYGJo3XMzKg3CkELsweA/TTopCsKE=
github.com/smartcontractkit/chainlink-protos/orchestrator v0.10.0 h1:0eroOyBwmdoGUwUdvMI0/J7m5wuzNnJDMglSOK1sfNY=
Expand All @@ -1576,8 +1576,8 @@ github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 h1:B7itmjy+C
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0/go.mod h1:h6kqaGajbNRrezm56zhx03p0mVmmA2xxj7E/M4ytLUA=
github.com/smartcontractkit/chainlink-protos/svr v1.1.0 h1:79Z9N9dMbMVRGaLoDPAQ+vOwbM+Hnx8tIN2xCPG8H4o=
github.com/smartcontractkit/chainlink-protos/svr v1.1.0/go.mod h1:TcOliTQU6r59DwG4lo3U+mFM9WWyBHGuFkkxQpvSujo=
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250822025801-598d3d86f873 h1:8/qwOmcdSFa8A6ecnj3eH/mwNx7Ybw2tjQFydDymtOc=
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250822025801-598d3d86f873/go.mod h1:HIpGvF6nKCdtZ30xhdkKWGM9+4Z4CVqJH8ZBL1FTEiY=
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250908151016-bf310cf85379 h1:yXsW59qhi5sv766OM8QUWenbB+jXe5HX6BCbc9/gBVE=
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250908151016-bf310cf85379/go.mod h1:HIpGvF6nKCdtZ30xhdkKWGM9+4Z4CVqJH8ZBL1FTEiY=
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250905170534-87e867e6cf31 h1:NzyJvTqIJXJA3jXDkDnoEIbHoWtcEOeqTm5F+I+llUw=
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250905170534-87e867e6cf31/go.mod h1:6vmFNkzEDz7YTVBa+I2bmTf6a9ecAJyoDfey7BSfbak=
github.com/smartcontractkit/chainlink-testing-framework/framework v0.10.17 h1:xhIDDbxfNdZMdK+WiZi6iJGa5BwH7Ui0LLWFvRDtqA8=
Expand All @@ -1596,8 +1596,8 @@ github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250815105909-7549
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250815105909-75499abc4335/go.mod h1:ccjEgNeqOO+bjPddnL4lUrNLzyCvGCxgBjJdhFX3wa8=
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d h1:qLmSOOtB/Ogn79eIDkuujOu8M5Jd747V1H7Brk/nTvo=
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250818141131-0b979c98bab0 h1:cahx93+ayyS9j5kAjNG2bQq2hisQRHrDIkaKugmgRA4=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250818141131-0b979c98bab0/go.mod h1:C1KXVcxUy89lFVqJ335pEPeeC/wJy0jCF0ZztwWdCmU=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5 h1:aur7c3C1wZsJCmGOOWVnUkDcpKKpoNkulniSxsQAB0U=
github.com/smartcontractkit/cre-sdk-go v0.5.1-0.20250821154918-5c93d76162c5/go.mod h1:3UcpptqBmJs42bQ62pUQoqfGwbvVQvcdqlUMueicbqs=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250818141131-0b979c98bab0 h1:f3V1Nivq0sUScnp4IhtRGllEdX+Pkj6YZhBAIllPXlI=
github.com/smartcontractkit/cre-sdk-go/capabilities/scheduler/cron v0.5.1-0.20250818141131-0b979c98bab0/go.mod h1:TZT/U2g7nJ4SyMXWPkrBfMuHoA8Opu2GW99pbI1PhWA=
github.com/smartcontractkit/crib-sdk v0.4.0 h1:in97WjiveVY1cz1LZOcLGVwnkRucfCipPeOpjkJ1QJM=
Expand Down
4 changes: 2 additions & 2 deletions deployment/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ require (
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20250909183314-c46f62fb74f6
github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20250827130336-5922343458be
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250729142306-508e798f6a5d
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250829155125-f4655b0b4605
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250908151016-bf310cf85379
github.com/smartcontractkit/chainlink-protos/job-distributor v0.13.1
github.com/smartcontractkit/chainlink-protos/orchestrator v0.10.0
github.com/smartcontractkit/chainlink-solana v1.1.2-0.20250905170534-87e867e6cf31
Expand Down Expand Up @@ -402,7 +402,7 @@ require (
github.com/smartcontractkit/chainlink-protos/rmn/v1.6/go v0.0.0-20250131130834-15e0d4cde2a6 // indirect
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 // indirect
github.com/smartcontractkit/chainlink-protos/svr v1.1.0 // indirect
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250822025801-598d3d86f873 // indirect
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250908151016-bf310cf85379 // indirect
github.com/smartcontractkit/chainlink-testing-framework/framework v0.10.15 // indirect
github.com/smartcontractkit/chainlink-testing-framework/parrot v0.6.2 // indirect
github.com/smartcontractkit/chainlink-testing-framework/seth v1.51.2 // indirect
Expand Down
Loading
Loading