-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Use observed home chain reader in CCIP #15628
Conversation
t *testing.T, | ||
cr types.ContractReader, | ||
ccAddress common.Address, | ||
chainID string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is chainID
? (evm) Maybe we want to (also) use chainSelector
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be anything that is an identifier (for evm it's going to be integer). ChainSelectors doesn't make sense for monitoring, because they are randomized and very hard to analyze dashboards with chainSelectors instead of chainID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have common.Address
here, so no need to make it agnostic at this stage. This is also used only in test code
hcr := ccipreader.NewObservedHomeChainReader( | ||
cr, | ||
logger.TestLogger(t), | ||
50*time.Millisecond, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: You can define 50ms
in a const. While going through the PR I have to go the actual method to understand what this is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only fixed formatting here :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
* Switching to the observed version * Switching to the observed version
Requires
Supports