-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(solana): implement solana's SetConfig (#209)
Implement the `Configurer` component and associated `SetConfig` method in the `sdk.solana` package. It closely follows the reference "set config" integration test provided by the `chainlink-ccip` repository. Unlike the EVM implementation, Solana's set config requires multiple blockchain calls because the list of signers must be sent using multiple onchain calls: * `InitializeSigners()` * `for each batch { AppendSigners(batch) }` * `FinalizeSigners()` And only then: * `SetConfig()` This PR adds an e2e test for the SetConfig call and additionally reorganizes the folder layout, splitting evm and solana tests into their own subfolders. <!-- DON'T DELETE. add your comments above llm generated contents -->
- Loading branch information
1 parent
d316c57
commit a71dd79
Showing
34 changed files
with
1,392 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@smartcontractkit/mcms": minor | ||
--- | ||
|
||
Add the `Configurer` component and `SetConfig` call to the Solana SDK. |
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ go.work.sum | |
|
||
# env file | ||
e2e/custom_configs/.env | ||
e2e/artifacts/ | ||
|
||
# Editor config directories | ||
.idea/ | ||
|
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
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,24 +1,26 @@ | ||
//go:build e2e | ||
// +build e2e | ||
|
||
package e2e | ||
|
||
//go:generate ./compile-mcm-solana.sh | ||
package e2e_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/suite" | ||
|
||
"github.com/smartcontractkit/mcms/e2e/tests/evm" | ||
"github.com/smartcontractkit/mcms/e2e/tests/solana" | ||
) | ||
|
||
// Run the test suite | ||
func TestE2ESuite(t *testing.T) { | ||
t.Parallel() | ||
func TestEVMSuite(t *testing.T) { | ||
suite.Run(t, new(e2e_evm.InspectionTestSuite)) | ||
suite.Run(t, new(e2e_evm.ExecutionTestSuite)) | ||
suite.Run(t, new(e2e_evm.TimelockInspectionTestSuite)) | ||
suite.Run(t, new(e2e_evm.SetRootTestSuite)) | ||
suite.Run(t, new(e2e_evm.SigningTestSuite)) | ||
} | ||
|
||
suite.Run(t, new(TimelockInspectionTestSuite)) | ||
suite.Run(t, new(InspectionTestSuite)) | ||
suite.Run(t, new(ExecutionTestSuite)) | ||
suite.Run(t, new(SetRootTestSuite)) | ||
suite.Run(t, new(SigningTestSuite)) | ||
suite.Run(t, new(SolanaInspectionTestSuite)) | ||
//go:generate ./solana/compile-mcm-contracts.sh | ||
func TestSolanaSuite(t *testing.T) { | ||
suite.Run(t, new(e2e_solana.SolanaTestSuite)) | ||
} |
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.