-
Notifications
You must be signed in to change notification settings - Fork 54
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
Configure NonceManager for chain reader and CCIPReader. #1359
Conversation
winder
commented
Aug 23, 2024
•
edited
Loading
edited
- Unit test for CCIPReader Nonces function.
- Configure NonceManager in the chain reader.
21a8eef
to
29267b2
Compare
29267b2
to
f15ae71
Compare
LCOV of commit
|
go.mod
Outdated
@@ -74,7 +74,7 @@ require ( | |||
github.com/shopspring/decimal v1.4.0 | |||
github.com/smartcontractkit/chain-selectors v1.0.21 | |||
github.com/smartcontractkit/chainlink-automation v1.0.4 | |||
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240827164549-33f5819d7ddc | |||
github.com/smartcontractkit/chainlink-ccip v0.0.0-20240828135226-207ea3027224 |
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.
TODO: switch this to ccip-develop once the branch has been merged.
d826b13
to
080c523
Compare
080c523
to
2ba7364
Compare
@@ -9,6 +9,7 @@ contract CCIPReaderTester { | |||
|
|||
mapping(uint64 sourceChainSelector => OffRamp.SourceChainConfig sourceChainConfig) internal s_sourceChainConfigs; | |||
mapping(uint64 destChainSelector => uint64 sequenceNumber) internal s_destChainSeqNrs; | |||
mapping(uint64 sourceChainSelector => mapping(bytes sender => uint64 nonce)) internal s_senderNonce; |
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 think in this particular instance we can actually just deploy the NonceManager contract directly - it doesn't seem to have any dependents and is basically standalone. You only have to reference the authorized callers which would be the address of the private key generated in the test.
The advantage of this is we're testing against the same contract that is going to be deployed in prod so any breakages in ABI there will end up breaking the test, forcing us to fix it.
WIP Nonces test. Update ccip reader nonce tests. Point chainlink-ccip dep to my branch. Remove TODO that has been completed. go mod tidy Change chainlink-ccip dep back to develop branch.
21831ba
to
f32661d
Compare
Quality Gate failedFailed conditions See analysis details on SonarQube Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |