Skip to content
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

Chain fee integration tests #14829

Merged
merged 11 commits into from
Oct 22, 2024
Merged

Chain fee integration tests #14829

merged 11 commits into from
Oct 22, 2024

Conversation

asoliman92
Copy link
Contributor

@asoliman92 asoliman92 commented Oct 17, 2024

  • Add FeeQuoter to SourceChain config
  • Add assertions to make sure that in the initial_deploy_test we update the gas fees
  • Clean up token assertions in initial_deploy_test

corresponding change on chainlink-ccip:

Copy link
Contributor

github-actions bot commented Oct 18, 2024

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@asoliman92 asoliman92 marked this pull request as ready for review October 21, 2024 10:36
@asoliman92 asoliman92 requested review from a team as code owners October 21, 2024 10:36
mateusz-sekara
mateusz-sekara previously approved these changes Oct 21, 2024
winder
winder previously approved these changes Oct 21, 2024
@asoliman92 asoliman92 enabled auto-merge October 21, 2024 13:33
@asoliman92 asoliman92 dismissed stale reviews from winder and mateusz-sekara via 1adc8c0 October 21, 2024 13:39
makramkd
makramkd previously approved these changes Oct 21, 2024
@asoliman92 asoliman92 requested review from a team as code owners October 21, 2024 14:30
@asoliman92 asoliman92 requested a review from jmank88 October 21, 2024 14:30
@asoliman92 asoliman92 changed the title Add FeeQuoter to SourceConfig Chain fee integration tests Oct 21, 2024
Add missing function from DestConfig

Debugging

Fix OnRamp.GetDestChainConfig

All destChain configs have same Router address which is the same as the chainSel.

We just need to call with a different destChainSelector

Cleaning

Clean contract configs

Clean contract configs

Add Gas Price test in initial_deploy_test.go

Bump chainlink-ccip

Bump chainlink-ccip

cleaning cmoments

linting

skip failing test for now

unskip
Copy link
Contributor

@AnieeG AnieeG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future please create tickets for each TODO

@cl-sonarqube-production
Copy link

@@ -32,6 +33,7 @@ func (tc *TokenConfig) UpsertTokenInfo(
func (tc *TokenConfig) GetTokenInfo(
lggr logger.Logger,
linkToken *burn_mint_erc677.BurnMintERC677,
wethToken *weth9.WETH9,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with this code but is this TokenConfig struct really needed? We should use the existing offchain config types directly where possible to reduce this churn of code that wraps other stuff IMO. The more "glue code" there is for the tests the less likely it is devs would be effectively working on them. That's an issue with the integration-tests code today as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used to initiate offchain config. Just getting the correct addresses and returning them in a correct format.

deployFunc func(deployment.Chain) ContractDeploy[*aggregator_v3_interface.AggregatorV3Interface],
symbol TokenSymbol,
) (common.Address, string, error) {
//tokenTV := deployment.NewTypeAndVersion(PriceFeed, deployment.Version1_0_0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete commented line

Copy link
Collaborator

@timweri timweri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go.mod and go.sum files ✅

@asoliman92 asoliman92 added this pull request to the merge queue Oct 22, 2024
Merged via the queue into develop with commit 83c3a32 Oct 22, 2024
147 checks passed
@asoliman92 asoliman92 deleted the fix-fee-quoter branch October 22, 2024 18:17
0xsuryansh pushed a commit that referenced this pull request Oct 23, 2024
* Add FeeQuoter to SourceConfig

Add missing function from DestConfig

Debugging

Fix OnRamp.GetDestChainConfig

All destChain configs have same Router address which is the same as the chainSel.

We just need to call with a different destChainSelector

Cleaning

Clean contract configs

Clean contract configs

Add Gas Price test in initial_deploy_test.go

Bump chainlink-ccip

Bump chainlink-ccip

cleaning cmoments

linting

skip failing test for now

unskip

* Bump chainlink-ccip

* Remove deprecated thing.

* Remove replacement.

* gomodtidy

* skip TestAddChainInbound

* Add weth feed

* Comment assertions to use better ones in a subsequent PR

* Address review comments

* cleaning

* linting

---------

Co-authored-by: Will Winder <[email protected]>
momentmaker added a commit that referenced this pull request Oct 23, 2024
* develop:
  rm gethwrappers from codeowners offchain (#14919)
  CCIP-3899 fix sender encoding (#14877)
  ccip: use unknown address type. (#14836)
  [chore] Add changeset entry for RequestRoundTracker fix (#14912)
  various Solidity Foundry updates (#14866)
  CCIP-3710 create new custom calldata L1 (DA) gas oracle (#14710)
  CCIP owns smoke test (#14906)
  core/services/ocr2/plugins/ccip/internal/ccipdata/factory: check error from TypeAndVersion (#14861)
  CCIP-3730 Misc ccip onchain changes (#14845)
  Chain fee integration tests (#14829)
  release/2.17.0 -> develop (#14721)
  Solana: re-enable disabled test with updated version (#14892)
cedric-cordenier pushed a commit that referenced this pull request Oct 24, 2024
* Add FeeQuoter to SourceConfig

Add missing function from DestConfig

Debugging

Fix OnRamp.GetDestChainConfig

All destChain configs have same Router address which is the same as the chainSel.

We just need to call with a different destChainSelector

Cleaning

Clean contract configs

Clean contract configs

Add Gas Price test in initial_deploy_test.go

Bump chainlink-ccip

Bump chainlink-ccip

cleaning cmoments

linting

skip failing test for now

unskip

* Bump chainlink-ccip

* Remove deprecated thing.

* Remove replacement.

* gomodtidy

* skip TestAddChainInbound

* Add weth feed

* Comment assertions to use better ones in a subsequent PR

* Address review comments

* cleaning

* linting

---------

Co-authored-by: Will Winder <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants