-
Notifications
You must be signed in to change notification settings - Fork 25
DonTime module hooks #1302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
DonTime module hooks #1302
Changes from 81 commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
ba3fe12
Create WorkflowLib Plugin
DylanTinianov 840e0cc
Merge branch 'main' into CAPPL-902-don-time-plugin
DylanTinianov ff81a2f
Add test coverage
DylanTinianov 49703b2
Update plugin.go
DylanTinianov f46c7a6
Update config
DylanTinianov 305a1c7
Update ocr3.go
DylanTinianov 4b4edb0
Extract transmitter
DylanTinianov 315f146
Merge branch 'main' into CAPPL-902-don-time-plugin
DylanTinianov 5c260c1
Handle request expiry
DylanTinianov 6fa74b4
Make DonTimeResponse fields public
DylanTinianov 3d5dd66
Make DonTimeResponse fields public
DylanTinianov e749b17
Add donTimeStore singleton
DylanTinianov e8af6ec
Link time call
DylanTinianov bb4e9c9
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov 9e7682f
Update wasip1.go
DylanTinianov 63b3d2e
Update timeout handling
DylanTinianov 548c5b9
Merge branch 'main' into CAPPL-902-don-time-plugin
DylanTinianov 9eddae0
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov 55c06ce
Update plugin
DylanTinianov cc295dd
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov 7bbfda6
close channel on error
DylanTinianov 895b6fc
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov 2115a92
Add WorkflowLib plugin
DylanTinianov 8486858
Add context
DylanTinianov 6523485
Update factory.go
DylanTinianov 6b15a3d
Fix map read
DylanTinianov 95806d1
Address comments
DylanTinianov 4b71758
Address comments
DylanTinianov 8f78db8
Collect valid requests
DylanTinianov 472fd41
Verify sequence numbers
DylanTinianov c551eb6
Merge branch 'main' into CAPPL-902-don-time-plugin
DylanTinianov 741f7cc
Add Range test
DylanTinianov f7ac127
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov e5537c1
Update store_test.go
DylanTinianov d9a6a0b
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov 592e261
DontimePlugin
DylanTinianov d8f54cc
Add DonTimePlugin
DylanTinianov 13c473a
Fix naming
DylanTinianov 050b0fa
Export default timeout
DylanTinianov 3177456
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov 8418468
Fix tests
DylanTinianov f4f6fe2
Update store_test.go
DylanTinianov d0c19ef
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov d2bd602
Remove ctx when sending responses
DylanTinianov 0b3a882
Add optimization comment
DylanTinianov 1710351
Remove consensus on Finished Executions
DylanTinianov 0f65579
Add batching test
DylanTinianov 9ab2496
Fix tests
DylanTinianov 5b16fad
Trigger CI
DylanTinianov 7af3786
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov eec86b0
Implement pollOneoff
DylanTinianov 1691120
Merge branch 'main' into CAPPL-902-don-time-plugin
DylanTinianov 44c8dea
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov 3517ae0
Fix generics
DylanTinianov 56fa544
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov f1e3140
Update store.go
DylanTinianov 1b47971
Update store.go
DylanTinianov 9e5ebb9
Merge branch 'CAPPL-902-don-time-plugin' of https://github.com/smartc…
DylanTinianov add6f06
Merge branch 'main' of https://github.com/smartcontractkit/chainlink-…
DylanTinianov 27dcee2
Fix naming
DylanTinianov 147af5e
Remove batch size
DylanTinianov b0f24dc
Merge branch 'main' into CAPPL-903-module-time-hook
DylanTinianov 8c7a60f
Rename
DylanTinianov 4cf1220
Merge branch 'CAPPL-903-module-time-hook' of https://github.com/smart…
DylanTinianov d208d52
Create provider.go
DylanTinianov 2db04d9
Update provider.go
DylanTinianov 9f72dc5
Merge branch 'main' into CAPPL-903-module-time-hook
DylanTinianov 5f4c0b7
Merge branch 'main' into CAPPL-903-module-time-hook
DylanTinianov adbd2d4
Remove trap
DylanTinianov 79e3dcf
Merge branch 'CAPPL-903-module-time-hook' of https://github.com/smart…
DylanTinianov ebed436
Merge branch 'main' into CAPPL-903-module-time-hook
DylanTinianov 017d9e3
Merge branch 'main' into CAPPL-903-module-time-hook
DylanTinianov f9e2142
Create time fetcher and mock time calls
DylanTinianov a962b78
Update time.go
DylanTinianov 39f2a19
Optional time calls
DylanTinianov f7d7fed
Update execution.go
DylanTinianov fa9f13a
add comment
DylanTinianov 435030f
Add baseTime and fix tests
DylanTinianov 1220c7a
Update tests
DylanTinianov dad9bc0
Verify time call sequence
DylanTinianov e3e05aa
Merge branch 'main' of https://github.com/smartcontractkit/chainlink-…
DylanTinianov b8f9758
Update standard_test.go
DylanTinianov f2e4dfa
Update standard_test.go
DylanTinianov 1a04fce
Merge branch 'main' into CAPPL-903-module-time-hook
nolag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,45 @@ | ||
| package dontime | ||
|
|
||
| import ( | ||
| "context" | ||
|
|
||
| "github.com/smartcontractkit/chainlink-common/pkg/services" | ||
| "github.com/smartcontractkit/libocr/offchainreporting2plus/ocr3types" | ||
| ) | ||
|
|
||
| // Provider wraps an existing OCR3 plugin provider (from the relayer) | ||
| // and overrides the plugin factory and contract transmitter for DonTime. | ||
| type Provider struct { | ||
| Factory ocr3types.ReportingPluginFactory[struct{}] | ||
| Transmitter ocr3types.ContractTransmitter[struct{}] | ||
| } | ||
|
|
||
| var _ services.Service = &Provider{} | ||
|
|
||
| func (p *Provider) Start(_ context.Context) error { | ||
| return nil | ||
| } | ||
|
|
||
| func (p *Provider) Close() error { | ||
| return nil | ||
| } | ||
|
|
||
| func (p *Provider) Name() string { | ||
| return "DonTimeOCR3Provider" | ||
| } | ||
|
|
||
| func (p *Provider) HealthReport() map[string]error { | ||
| return map[string]error{p.Name(): nil} | ||
| } | ||
|
|
||
| func (p *Provider) Ready() error { | ||
| return nil | ||
| } | ||
|
|
||
| func (p *Provider) ReportingPluginFactory() ocr3types.ReportingPluginFactory[struct{}] { | ||
| return p.Factory | ||
| } | ||
|
|
||
| func (p *Provider) ContractTransmitter() ocr3types.ContractTransmitter[struct{}] { | ||
| return p.Transmitter | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's needed for initializing the plugin since we create a custom transmitter.