Skip to content

Commit

Permalink
Solana ChainWriter (#935)
Browse files Browse the repository at this point in the history
* Starting mapping out Solana ChainWriter

* Added Address searcher for decoded data

* Introduced new Solana config

* Completed iteration of ChainWriter config

* Refactored lookup tables

* Created sample configuration for execute method

* Update chain_writer_test.go

* Cleaned up exec config and added comments

* Removed ValueSeeds and consolidated into a single Seeds array

* Added decode location

* Added commit report config example

* Slight changes to IDL and codec

* Updated ChainWriter implementation to reflect new design changes

* Added codec implementation

* updated CCIP example

* Moved lookups logic to separate file

* unit tests for lookups

* Added utils to their own package

* Updated lookup tests and helpers

* Removed helpers_test

* refactored ccip example

* Completed chained lookup integration test

* ChainWriter unit tests  (#948)

* Added ChainWriter unit tests for GetFeeComponents and GetTransactionStatus

* Created SubmitTransaction tests

* Created SubmitTransaction tests

* Moved txm utils into own package and generated txm mock

* Updated chain writer tests to use txm mock

* Added GetAddresses unit test and fixed SubmitTransaction unit test

* Fixed linting and removed file read for IDL

* Fixed filter lookup table error case and fixed linting

* Added filter lookup table addresses unit tests

* Added new test case and fixed formatting issues

* Addressed golang lint suggestions

* Cleaned out unused dependency and fixed remaining golang lint errors

* Added derived lookup table indeces unit tests

---------

Co-authored-by: Silas Lenihan <[email protected]>

* merged with develop

* Removed write_test and moved logic to contract_reader_interface test program

* addressed feedback comments

* solved conflicts between TXM changes and unit test changes

* updated comments and slight tweaks

* Updated PDALookups Seeds field and fixed default accounts

* Updated codec usage

---------

Co-authored-by: pablolagreca <[email protected]>
Co-authored-by: amit-momin <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2025
1 parent 2e24ead commit 319e58e
Show file tree
Hide file tree
Showing 31 changed files with 4,479 additions and 1,380 deletions.
1 change: 1 addition & 0 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ packages:
config:
filename: simple_keystore.go
case: underscore
TxManager:
github.com/smartcontractkit/chainlink-solana/pkg/solana/logpoller:
interfaces:
RPCClient:
174 changes: 174 additions & 0 deletions contracts/generated/contract_reader_interface/InitializeLookupTable.go

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

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

76 changes: 76 additions & 0 deletions contracts/generated/contract_reader_interface/accounts.go

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

7 changes: 7 additions & 0 deletions contracts/generated/contract_reader_interface/instructions.go

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

Loading

0 comments on commit 319e58e

Please sign in to comment.