-
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.
resurrect update don changeset (#15112)
* resurrect update don changeset * fix setup * refactor test suite setup * make update don work * code cleanup
- Loading branch information
1 parent
04a4075
commit c6ad7b2
Showing
15 changed files
with
842 additions
and
196 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,32 @@ | ||
package clo | ||
|
||
import ( | ||
jd "github.com/smartcontractkit/chainlink-protos/job-distributor/v1/node" | ||
"github.com/smartcontractkit/chainlink/deployment/environment/clo/models" | ||
) | ||
|
||
// NewChainConfig creates a new JobDistributor ChainConfig from a clo model NodeChainConfig | ||
func NewChainConfig(chain *models.NodeChainConfig) *jd.ChainConfig { | ||
return &jd.ChainConfig{ | ||
Chain: &jd.Chain{ | ||
Id: chain.Network.ChainID, | ||
Type: jd.ChainType_CHAIN_TYPE_EVM, // TODO: support other chain types | ||
}, | ||
|
||
AccountAddress: chain.AccountAddress, | ||
AdminAddress: chain.AdminAddress, | ||
Ocr2Config: &jd.OCR2Config{ | ||
Enabled: chain.Ocr2Config.Enabled, | ||
P2PKeyBundle: &jd.OCR2Config_P2PKeyBundle{ | ||
PeerId: chain.Ocr2Config.P2pKeyBundle.PeerID, | ||
PublicKey: chain.Ocr2Config.P2pKeyBundle.PublicKey, | ||
}, | ||
OcrKeyBundle: &jd.OCR2Config_OCRKeyBundle{ | ||
BundleId: chain.Ocr2Config.OcrKeyBundle.BundleID, | ||
OnchainSigningAddress: chain.Ocr2Config.OcrKeyBundle.OnchainSigningAddress, | ||
OffchainPublicKey: chain.Ocr2Config.OcrKeyBundle.OffchainPublicKey, | ||
ConfigPublicKey: chain.Ocr2Config.OcrKeyBundle.ConfigPublicKey, | ||
}, | ||
}, | ||
} | ||
} |
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.