-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ac05d7
commit 2c93e6a
Showing
14 changed files
with
138 additions
and
53 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,37 @@ | ||
package ccipdeployment | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/smartcontractkit/chainlink/v2/core/logger" | ||
) | ||
|
||
// TestAddLane covers the workflow of adding a lane | ||
// between existing supported chains in CCIP. | ||
func TestAddLane(t *testing.T) { | ||
e := NewEnvironmentWithCR(t, logger.TestLogger(t), 3) | ||
// Here we have CR + nodes set up, but no CCIP contracts deployed. | ||
state, err := LoadOnchainState(e.Env, e.Ab) | ||
require.NoError(t, err) | ||
// Set up CCIP contracts and a DON per chain. | ||
ab, err := DeployCCIPContracts(e.Env, DeployCCIPContractConfig{ | ||
HomeChainSel: e.HomeChainSel, | ||
CCIPOnChainState: state, | ||
}) | ||
require.NoError(t, err) | ||
require.NoError(t, ab.Merge(e.Ab)) | ||
|
||
// We expect no lanes available on any chain. | ||
state, err = LoadOnchainState(e.Env, e.Ab) | ||
require.NoError(t, err) | ||
for _, chain := range state.Chains { | ||
offRamps, err := chain.Router.GetOffRamps(nil) | ||
require.NoError(t, err) | ||
require.Len(t, offRamps, 0) | ||
} | ||
|
||
// Add one lane and send traffic. | ||
//from, to := e.Env.AllChainSelectors()[0], e.Env.AllChainSelectors()[1] | ||
} |
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
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
Oops, something went wrong.