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

Add support for custom bridge tokens in bidirectional CCIP test setup #50

Merged
merged 3 commits into from
Aug 17, 2023

Conversation

kidambisrinivas
Copy link
Collaborator

Motivation

  • Support for custom ERC20 bridge tokens to be used in CCIP integration tests

Solution

  • Add a list of blockchain.ContractDeployer in the CCIPDefaultTestSetUp function to be used for deploying token contracts during lane setup. Call chain:
    • AddLanesForNetworkPair
    • lane.DeployNewCCIPLane
    • sourceLane.DeployContracts and destLane.DeployContracts
    • CCIPCommon.DeployContracts
    • ContractDeployer.DeployLinkTokenContract
  • The same list of ERC20 tokens are deployed on both the forward and reverse lanes, in the case of bidirectional lane setup

Test Plan

$ cd integration-tests
$ make build_docker_image image=chainlink_ccip tag=local_dev
$ make test_smoke_ccip_simulated_local image=chainlink_ccip tag=local_dev
...
16:49:12.03 INF Phase Stats for Lane 2337 To 1337 Average Duration for Successful Requests=107.00 Lane=dest-chain-->source-chain Max Duration for Successful Requests=107.0
0 Min Duration for Successful Requests=107.00 Phase=Commit-ReportAccepted Successful Count=1 env=
16:49:12.03 INF Phase Stats for Lane 2337 To 1337 Lane=dest-chain-->source-chain Phase=ReportBlessedByARM env=
16:49:12.03 INF Phase Stats for Lane 2337 To 1337 Average Duration for Successful Requests=30.00 Lane=dest-chain-->source-chain Max Duration for Successful Requests=30.00
Min Duration for Successful Requests=30.00 Phase=ExecutionStateChanged Successful Count=1 env=
--- PASS: TestSmokeCCIPForBidirectionalLane (179.65s)
    --- PASS: TestSmokeCCIPForBidirectionalLane/CCIP_message_transfer_from_network_source-chain_to_network_dest-chain (137.55s)
    --- PASS: TestSmokeCCIPForBidirectionalLane/CCIP_message_transfer_from_network_dest-chain_to_network_source-chain (139.54s)
PASS
ok      github.com/smartcontractkit/chainlink/integration-tests/smoke   320.506s

@kidambisrinivas kidambisrinivas requested a review from a team as a code owner August 17, 2023 18:25
@kidambisrinivas kidambisrinivas merged commit 9e0546d into ccip-develop Aug 17, 2023
@kidambisrinivas kidambisrinivas deleted the custom-bridge-tokens branch August 17, 2023 19:02
ilanolkies added a commit that referenced this pull request Oct 9, 2024
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.

2 participants