Skip to content

Commit

Permalink
Updated TestChainComponents to enable Batch/GetLatestValue tests (#993)
Browse files Browse the repository at this point in the history
* Added Address searcher for decoded data

* Introduced new Solana config

* Completed iteration of ChainWriter config

* Created sample configuration for execute method

* Cleaned up exec config and added comments

* Added commit report config example

* Updated ChainWriter implementation to reflect new design changes

* Added codec implementation

* updated CCIP example

* 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

* updated comments and slight tweaks

* Got ChainComponentsTests working with ChainWriter

* Updated interface tests to use unique PDA per test (#1027)

* Updated interface tests to initialize ContractReader and ContractWriter configs with a test index as a PDA seed

* Disabled tests that require a second program

* Updated contract reader test programs to enable interface tests

* Add Test Struct PDA

* Fixed interface tests for the latest ChainWriter changes

* Enabled test struct interface test

* Added store test struct method to secondary contract

* Enabled test struct batch interface test

* Enabled multi contract interface tests

* Removed failing Solana specific tests

* Removed Solana byte string modifier zero-value check

* Fixed rust linting

* Fixed Solana address modifier test

* Fixed rust linting

* Fixed interface tests on loop

---------

Co-authored-by: ilija <[email protected]>

* Disabled interface loop test

* Regenerated ts pnpm lock file with compatible version

* Regenerated example helloworld pnpm lock file with compatible version

* Fix merge conflicts

* Fixed interface tests after merge conflict

---------

Co-authored-by: amit-momin <[email protected]>
Co-authored-by: amit-momin <[email protected]>
Co-authored-by: ilija <[email protected]>
  • Loading branch information
4 people authored Feb 7, 2025
1 parent b0ef82e commit f1e0ecf
Show file tree
Hide file tree
Showing 27 changed files with 6,205 additions and 2,970 deletions.
1 change: 1 addition & 0 deletions contracts/Anchor.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ test = "pnpm run test"
[programs.localnet]
access_controller = "9xi644bRR8birboDGdTiwBq3C7VEeR7VuamRYYXCubUW"
contract-reader-interface = "6AfuXF6HapDUhQfE4nQG9C1SGtA1YjP3icaJyRfU4RyE"
contract-reader-interface-secondary = "9SFyk8NmGYh5D612mJwUYhguCRY9cFgaS2vksrigepjf"
log-read-test = "J1zQwrBNBngz26jRPNWsUSZMHJwBwpkoDitXRV95LdK4"
ocr_2 = "cjg3oHmg9uuPsP8D6g29NWvhySJkdYdAo9D25PRbKXJ" # need to rename the idl to satisfy anchor.js...
store = "HEvSKofvBgfaexv23kMabbYqxasxU3mQ4ibBMEmJWHny"
11 changes: 11 additions & 0 deletions contracts/Cargo.lock

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

1,503 changes: 835 additions & 668 deletions contracts/examples/hello-world/pnpm-lock.yaml

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions contracts/generated/contract_reader_interface/Initialize.go

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

188 changes: 188 additions & 0 deletions contracts/generated/contract_reader_interface/Store.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/contract_reader_interface/Store_test.go

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

Loading

0 comments on commit f1e0ecf

Please sign in to comment.