-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ccipdata): don't use generated types in OffRampReader (#416)
## Motivation Currently, the `OffRampReader` interface uses the `evm_2_evm_offramp.RateLimiterTokenBucket` type, a generated version-dependent type. The interface abstracts the rest of the system from the version-specific components, so using generated types in its methods is inappropriate. ## Solution This change updates the interface to use the `ccipdata.TokenBucketRateLimit` type (equivalent to `evm_2_evm_offramp.RateLimiterTokenBucket`) instead. Another interface method, `GetTokenPoolsRateLimits`, already used the version-independent type; this change makes the interface more consistent.
- Loading branch information
1 parent
b96150b
commit 1a4020f
Showing
8 changed files
with
33 additions
and
29 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
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
12 changes: 5 additions & 7 deletions
12
core/services/ocr2/plugins/ccip/internal/ccipdata/mocks/offramp_reader_mock.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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