Skip to content

Commit

Permalink
add Chainlink Node config to TOML (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel authored May 10, 2024
1 parent 5de277d commit da80c0d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/node.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package config

type NodeConfig struct {
BaseConfigTOML string `toml:",omitempty"`
CommonChainConfigTOML string `toml:",omitempty"`
ChainConfigTOMLByChainID map[string]string `toml:",omitempty"` // key is chainID
}
5 changes: 5 additions & 0 deletions config/testconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ func (c *TestConfig) GetLoggingConfig() *LoggingConfig {
return c.Logging
}

func (c *TestConfig) GetNodeConfig() *NodeConfig {
return c.NodeConfig
}

func (c TestConfig) GetNetworkConfig() *NetworkConfig {
return c.Network
}
Expand All @@ -33,4 +37,5 @@ type TestConfig struct {
PrivateEthereumNetwork *EthereumNetworkConfig `toml:"PrivateEthereumNetwork"`
WaspConfig *WaspAutoBuildConfig `toml:"WaspAutoBuild"`
Seth *seth.Config `toml:"Seth"`
NodeConfig *NodeConfig `toml:"NodeConfig"`
}
1 change: 1 addition & 0 deletions config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ type GlobalTestConfig interface {
GetNetworkConfig() *NetworkConfig
GetPrivateEthereumNetworkConfig() *EthereumNetworkConfig
GetPyroscopeConfig() *PyroscopeConfig
GetNodeConfig() *NodeConfig
SethConfig
}

0 comments on commit da80c0d

Please sign in to comment.