-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BCFR-203] Improve CR value comparator querying (topics and data word…
…s) by doing encoding in the relayer (#14207) * Add EVM CR topic and data words types to codec for QueryKey filtering * temp * Update Chain Reader Tester contract to match common testing structs * Fix codecEntry ToNative() method bad error message * Add support for filtering over indexed topics with query key * Remove the need for Chain Reader Config InputFields - Params are typed into all topics and checked for nil - Allows for searching same read with diff params - Allows to query filter and GetLatestValue same event * Implement Chain Reader data words types init and packing * cleanup changes * Implement querying by data words with value comparators as any * Fix CR topic querying and simplify value comparator encoding * Simplify CR event topic and data words typing * Refactor CR topic encoding a bit to be simpler * Fix lint, changeset and correct a minor test failure * [Bot] Update changeset file with jira issue * Add changeset * Update changesets * lint * Separate loop and non loop CR tests, bump go mod and minor fix * Fix rebase issues * Handle CR value comparator Querying codec type creation and lookup * Update changeset associated ticket numbers * lint * Add todos * Remove unused indexes from ChainReader DataWords config * Update common * Bump common --------- Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d64834a
commit 328b62a
Showing
32 changed files
with
701 additions
and
539 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
#internal Implement EVM ChainReader ValueComparator filtering by non-indexed event data. Right now only simple non indexed data where byte offsets don't exist is supported. | ||
|
||
BCFR-203 |
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@chainlink/contracts': minor | ||
--- | ||
|
||
#internal Change Chain Reader testing contract Triggered event for easier testing of filtering by non indexed evm data. | ||
|
||
|
||
BCFR-203 |
This file contains 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 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 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 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 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
22 changes: 11 additions & 11 deletions
22
core/gethwrappers/generated/chain_reader_tester/chain_reader_tester.go
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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.