Skip to content
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

event loader with event watch and backfill #911

Open
wants to merge 19 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
43 changes: 43 additions & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
dir: "{{ .InterfaceDir }}/mocks"
mockname: "{{ .InterfaceName }}"
outpkg: mocks
filename: "{{ .InterfaceName | snakecase }}.go"
packages:
github.com/smartcontractkit/chainlink-solana/pkg/monitoring:
interfaces:
ChainReader:
github.com/smartcontractkit/chainlink-solana/pkg/monitoring/metrics:
interfaces:
FeedBalances:
Fees:
config:
filename: "Fees.go"
NetworkFees:
NodeBalances:
NodeSuccess:
ReportObservations:
SlotHeight:
github.com/smartcontractkit/chainlink-solana/pkg/solana/client:
interfaces:
ReaderWriter:
github.com/smartcontractkit/chainlink-solana/pkg/solana/config:
interfaces:
Config:
config:
filename: config.go
case: underscore
github.com/smartcontractkit/chainlink-solana/pkg/solana/logpoller:
interfaces:
RPCClient:
ProgramEventProcessor:
github.com/smartcontractkit/chainlink-solana/pkg/solana/fees:
interfaces:
Estimator:
config:
filename: "Estimator.go"
github.com/smartcontractkit/chainlink-solana/pkg/solana/txm:
interfaces:
SimpleKeystore:
config:
filename: simple_keystore.go
case: underscore
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ gomodtidy: gomods
.PHONY: mockery
mockery: $(mockery) ## Install mockery.
go install github.com/vektra/mockery/[email protected]
mockery

.PHONY: rm-mocked
rm-mocked:
Expand Down
29 changes: 12 additions & 17 deletions contracts/Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
anchor_version = "0.29.0"
[toolchain]

[features]
seeds = false
skip-lint = false

[programs.localnet]
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
log-read-test = "J1zQwrBNBngz26jRPNWsUSZMHJwBwpkoDitXRV95LdK4"
ocr_2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ"
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"

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

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

[scripts]
test = "pnpm run test"

# [programs.mainnet]
# TODO: add pubkeys

# [programs.testnet]
# TODO: add pubkeys

# [programs.devnet]
# TODO: add pubkeys

[programs.localnet]
ocr_2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ" # need to rename the idl to satisfy anchor.js...
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
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.

Loading
Loading