-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15876 from smartcontractkit/NONEVM-933/add-chain-…
…reader-config-to-plugin-creator Add Solana chain reader config to plugin creator
- Loading branch information
Showing
13 changed files
with
172 additions
and
164 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 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
add solana chain reader config support to plugin creator, remove evm specific code #added |
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,20 @@ | ||
package solana | ||
|
||
import ( | ||
"github.com/smartcontractkit/chainlink-solana/pkg/solana/config" | ||
) | ||
|
||
var HomeChainReaderConfigRaw = config.ContractReader{} // TODO update the home chain reader configuration | ||
var DestReaderConfig = config.ContractReader{} // TODO update the Dest chain reader configuration | ||
var SourceReaderConfig = config.ContractReader{} // TODO update the Source chain reader configuration | ||
|
||
func MergeReaderConfigs(configs ...config.ContractReader) config.ContractReader { | ||
allNamespaces := make(map[string]config.ChainContractReader) | ||
for _, c := range configs { | ||
for namespace, method := range c.Namespaces { | ||
allNamespaces[namespace] = method | ||
} | ||
} | ||
|
||
return config.ContractReader{Namespaces: allNamespaces} | ||
} |
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.