-
Notifications
You must be signed in to change notification settings - Fork 3
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
Initialize nonce manager. #77
Conversation
cc4684f
to
338b35f
Compare
return resp, nil | ||
} | ||
|
||
type offrampStaticChainConfig struct { |
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.
Can you put link to the offramp type? Will make it easier to find it.
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.
Yeah, what did you have in mind? A comment? I copied the pattern used for type sourceChainConfig struct {
, so I'll update that as well.
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.
A permalink to the solidity struct would be good enough IMO
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.
You can write an integration test to test that this works in the ccipreader_test.go file in chainlink/ccip. See TestCCIPReader_CommitReportsGTETimestamp
as an example.
ChainSelector uint64 `json:"chainSelector"` | ||
RmnProxy []byte `json:"rmnProxy"` | ||
TokenAdminRegistry []byte `json:"tokenAdminRegistry"` | ||
NonceManager []byte `json:"nonceManager"` |
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.
json
tags should not be required
338b35f
to
207ea30
Compare
Co-authored-by: Makram <[email protected]> Co-authored-by: Abdelrahman Soliman (Boda) <[email protected]>
return nil | ||
} | ||
|
||
func (r *CCIPChainReader) Sync(ctx context.Context) (bool, error) { |
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.
@dimkouv why the (bool, error)
return signature? I feel like error
is enough?
return resp, nil | ||
} | ||
|
||
type offrampStaticChainConfig struct { |
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.
A permalink to the solidity struct would be good enough IMO
Test Coverage
|
Add bindings for the NonceManager and finish implementing the CCIPReader.