Skip to content

Commit

Permalink
event loader with event watch and backfill (#911)
Browse files Browse the repository at this point in the history
* event loader with event watch and backfill

* increase test coverage for log parsing

* fix: handle new contracts (#940)

---------

Co-authored-by: Aaron Lu <[email protected]>
  • Loading branch information
EasterTheBunny and aalu1418 authored Nov 22, 2024
1 parent 4047dd3 commit c9ef4b3
Show file tree
Hide file tree
Showing 25 changed files with 3,862 additions and 896 deletions.
5 changes: 4 additions & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ packages:
SimpleKeystore:
config:
filename: simple_keystore.go
case: underscore
case: underscore
github.com/smartcontractkit/chainlink-solana/pkg/solana/logpoller:
interfaces:
RPCClient:
12 changes: 9 additions & 3 deletions contracts/Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
[toolchain]
anchor_version = "0.29.0"

[features]
seeds = false
skip-lint = false

[registry]
url = "https://anchor.projectserum.com"

[provider]
cluster = "localnet"
# wallet = "~/.config/solana/id.json"
wallet = "id.json"
# wallet = "~/.config/solana/id.json"

[scripts]
test = "pnpm run test"
Expand All @@ -21,6 +26,7 @@ test = "pnpm run test"
# TODO: add pubkeys

[programs.localnet]
ocr_2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ" # need to rename the idl to satisfy anchor.js...
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
log-read-test = "J1zQwrBNBngz26jRPNWsUSZMHJwBwpkoDitXRV95LdK4"
ocr_2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ" # need to rename the idl to satisfy anchor.js...
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
7 changes: 7 additions & 0 deletions contracts/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

146 changes: 146 additions & 0 deletions contracts/generated/log_read_test/CreateLog.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions contracts/generated/log_read_test/CreateLog_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions contracts/generated/log_read_test/accounts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions contracts/generated/log_read_test/instructions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions contracts/generated/log_read_test/testing_utils.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions contracts/generated/log_read_test/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c9ef4b3

Please sign in to comment.