-
Notifications
You must be signed in to change notification settings - Fork 25
[CRE-491] Move chainaccessor event ccip types to chainlink-common. #1724
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
Conversation
✅ API Diff Results - No breaking changes |
|
This PR is stale because it has been open 30 days with no activity. |
d8557cf to
153e7e9
Compare
153e7e9 to
756eed4
Compare
756eed4 to
555a1fc
Compare
555a1fc to
5ea9354
Compare
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.
Pull request overview
This PR moves CCIP chain accessor event types from the chainlink-ccip repository to chainlink-common, making them available as shared types. The changes include renaming PriceUpdates to AccessorPriceUpdates to avoid package name collision and inlining chainAddressNonce to its single usage location.
- Introduces new event types (
SendRequestedEvent,CommitReportAcceptedEvent,ExecutionStateChangedEvent) and their supporting structures - Renames
PriceUpdatestoAccessorPriceUpdatesto prevent naming conflicts
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ) | ||
|
|
||
| // --------------------------------------------------- | ||
| // The following types match the structs defined in the EVM contracts are used to decode these |
Copilot
AI
Jan 7, 2026
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.
Grammatical error in comment. Should read 'The following types match the structs defined in the EVM contracts and are used to decode these'.
| // The following types match the structs defined in the EVM contracts are used to decode these | |
| // The following types match the structs defined in the EVM contracts and are used to decode these |
| MessageHash Bytes32 | ||
| State uint8 | ||
| ReturnData Bytes | ||
| GasUsed big.Int |
Copilot
AI
Jan 7, 2026
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.
The GasUsed field should be a pointer *big.Int instead of big.Int to be consistent with other big.Int fields in this file (UsdPerToken and UsdPerUnitGas) and to avoid copying large values.
| GasUsed big.Int | |
| GasUsed *big.Int |
Supports smartcontractkit/chainlink-ccip#1530
Also:
chainAddressNonceto the only place where it is usedPriceUpdates->AccessorPriceUpdatesdue to name collision in the packagegithub.com/smartcontractkit/chainlink-common/pkg/types/ccipocr3