-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add solana log polling and integration tests #154
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
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
d3f295f
wip: splitting solana worker and evm worker
ecPablo 97f618e
wip: refactoring solana worker
ecPablo 760b02a
Merge branch 'develop' into ecpablo/add-solana-worker-type
ecPablo b7d109e
feat: add log polling func and initial unit tests
ecPablo 36f2d46
feat: added unit tests for log polling
ecPablo e72a61e
fix: comments
ecPablo 06795b1
feat: added integration tests setup and initial log decoding logic.
ecPablo 5dc365d
fix: add correct folder for compilation
ecPablo f4fd105
feat: add log polling and event handlers for sending to scheduler. ad…
ecPablo c024dff
fix: remove ptr int func
ecPablo 26fb2df
Merge branch 'develop' into ecpablo/add-solana-log-polling
ecPablo 84ef1f7
fix: merge conflicts, fix unit tests and linting
ecPablo 13f24d4
fix: update CI with ctf config
ecPablo 524ece3
fix: update CI with ctf config
ecPablo 47e5abd
fix: dir ctf config
ecPablo 55a7430
fix: dir ctf config
ecPablo 36a0e78
fix: add program compilation CI
ecPablo c055262
fix: add program compilation CI
ecPablo 798f4c1
fix: update perms compile programs
ecPablo f5c6453
fix: update perms compile programs
ecPablo 859a8cf
fix: update compiling script
ecPablo d70594d
fix: paths for compiled programs
ecPablo 20e8219
fix: paths for compiled programs
ecPablo cbec0cb
fix: unit tests
ecPablo fd28b96
fix: unit tests
ecPablo 8979f90
fix: unit tests
ecPablo 53e89ef
fix: move up cache calculation to improve workflow performance by ski…
ecPablo e0f608f
fix: gitignore
ecPablo dd3b7f0
Merge branch 'develop' into ecpablo/add-solana-log-polling
ecPablo 89fd5b3
fix: replacer infof with infow in logs and fix event types after rebase
ecPablo 46e76c4
fix: unit tests for get parsed transaction after develop rebase
ecPablo 6df424e
fix: rename solana_utils
ecPablo 8ee2819
fix: refactor mock solana rpc server
ecPablo 88a7142
fix: refactor mock solana rpc server
ecPablo 1389b05
fix: change interface{} to any
ecPablo 8a719e4
fix: update comment
ecPablo 1943312
fix: remove logpolling test file
ecPablo 104f45c
fix: use s.T().Context()
ecPablo c36f0c8
feat: add scheduler calls, mocks and unit tests on solana worker
ecPablo 7901beb
Update pkg/timelock/worker_solana.go
ecPablo d149089
feat: add better retry mechanisms for tx fetching.
ecPablo 93d0a1f
fix: remove func call inside require.NoError to improve code readability
ecPablo 964ccc2
Update pkg/timelock/worker_solana_test.go
ecPablo b056f31
fix: linting
ecPablo 4f07ca9
fix: move tx assertions into helper function for better readability
ecPablo e917379
fix: use unit test context
ecPablo deb892c
fix: remove mock assert expectations
ecPablo 391a679
fix: typo
ecPablo e89faed
fix: cleanup and add mocks
ecPablo 4f18a4d
fix: use existing retry function
ecPablo 00021bb
fix: rpcErrorOrDefault rename and remove timeout error
ecPablo 39cc04d
fix: make startPolling private
ecPablo 51d502c
fix: change interface{} to any
ecPablo 34ecfb6
fix: add t.fatal when no signatures are found
ecPablo fdf219c
feat: expose commitment type as param
ecPablo 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,3 +32,4 @@ testdata/ | |
| .vscode/ | ||
|
|
||
|
|
||
| tests/integration/solana/artifacts/ | ||
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 |
|---|---|---|
| @@ -1,23 +1,16 @@ | ||
| # Mockery configuration file | ||
|
|
||
| # All interfaces in a package are generated by default. You can set this to false in the config of | ||
| # of each package to disable this behavior. | ||
| all: false | ||
| with-expecter: true | ||
| # The name of the mock file to be generated is the snake cased interface name. | ||
| filename: "{{.InterfaceName | snakecase | lower}}.go" | ||
| # Creates the mocks in a `mocks` dir inside the package containing the interfaces. | ||
| dir: "{{.InterfaceDir}}/mocks" | ||
| # The name of the mock struct is the interface name. | ||
| mockname: "{{.InterfaceName}}" | ||
| # Places the mock package in the same package as the interface. | ||
| outpkg: "mocks" | ||
|
|
||
| packages: | ||
| github.com/smartcontractkit/timelock-worker/pkg/timelock: | ||
| interfaces: | ||
| Scheduler: | ||
| config: | ||
| dir: "./pkg/timelock" | ||
| filename: "scheduler_mock.go" | ||
|
|
||
| github.com/ethereum/go-ethereum/accounts/abi/bind: | ||
| interfaces: | ||
| ContractBackend: | ||
| config: | ||
| # inpackage: false | ||
| filename: "{{.InterfaceName | snakecase}}.go" | ||
| # mockname: "{{.InterfaceName}}" | ||
| dir: "./pkg/timelock/mocks" | ||
| filename: "contract_backend.go" |
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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| golang 1.24.3 | ||
| golangci-lint 1.64.8 | ||
| task 3.40.0 | ||
| mockery 2.50.0 | ||
| mockery 3.3.2 |
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.
Uh oh!
There was an error while loading. Please reload this page.