Skip to content

Commit

Permalink
missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
krehermann committed Dec 20, 2024
1 parent 955f10c commit 34ab33a
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-hairs-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal depreciate keystone deployment library
1 change: 1 addition & 0 deletions core/scripts/keystone/src/01_deploy_contracts_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
)

type deployedContracts struct {
OCRContract common.Address `json:"ocrContract"`
ForwarderContract common.Address `json:"forwarderContract"`
// The block number of the transaction that set the config on the OCR3 contract. We use this to replay blocks from this point on
// when we load the OCR3 job specs on the nodes.
Expand Down
2 changes: 1 addition & 1 deletion deployment/keystone/changeset/accept_ownership_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestAcceptAllOwnership(t *testing.T) {
},
{
Changeset: commonchangeset.WrapChangeSet(changeset.DeployForwarder),
Config: registrySel,
Config: changeset.DeployForwarderRequest{},
},
{
Changeset: commonchangeset.WrapChangeSet(changeset.DeployFeedsConsumer),
Expand Down
15 changes: 0 additions & 15 deletions deployment/keystone/changeset/internal/contract_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,6 @@ func DeployCapabilitiesRegistry(chain deployment.Chain, ab deployment.AddressBoo
return capabilitiesRegistryResp, nil
}

// DeployWorkflowRegistry deploys the WorkflowRegistry contract to the chain
// and saves the address in the address book. This mutates the address book.
func DeployWorkflowRegistry(chain deployment.Chain, ab deployment.AddressBook) (*DeployResponse, error) {
deployer, err := NewWorkflowRegistryDeployer()
resp, err := deployer.Deploy(DeployRequest{Chain: chain})
if err != nil {
return nil, fmt.Errorf("failed to deploy WorkflowRegistry: %w", err)
}
err = ab.Save(chain.Selector, resp.Address.String(), resp.Tv)
if err != nil {
return nil, fmt.Errorf("failed to save WorkflowRegistry: %w", err)
}
return resp, nil
}

// DeployOCR3 deploys the OCR3Capability contract to the chain
// and saves the address in the address book. This mutates the address book.
func DeployOCR3(chain deployment.Chain, ab deployment.AddressBook) (*DeployResponse, error) {
Expand Down
95 changes: 95 additions & 0 deletions deployment/keystone/depreciated.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
package keystone

import "github.com/smartcontractkit/chainlink/deployment/keystone/changeset"

//TODO: delete this after the downstream migration is done

// OracleConfig is the configuration for an oracle
type OracleConfig = changeset.OracleConfig

// OCR3OnchainConfig is the onchain configuration of an OCR2 contract
type OCR2OracleConfig = changeset.OCR3OnchainConfig

// NodeKeys is a set of public keys for a node
type NodeKeys = changeset.NodeKeys

// TopLevelConfigSource is the top level configuration source
type TopLevelConfigSource = changeset.TopLevelConfigSource

// GenerateOCR3Config generates an OCR3 config
var GenerateOCR3Config = changeset.GenerateOCR3Config

// FeedConsumer is a feed consumer contract type
var FeedConsumer = changeset.FeedConsumer

// KeystoneForwarder is a keystone forwarder contract type
var KeystoneForwarder = changeset.KeystoneForwarder

// GetContractSetsRequest is a request to get contract sets
type GetContractSetsRequest = changeset.GetContractSetsRequest

// GetContractSetsResponse is a response to get contract sets
type GetContractSetsResponse = changeset.GetContractSetsResponse

// GetContractSets gets contract sets
var GetContractSets = changeset.GetContractSets

// RegisterCapabilitiesRequest is a request to register capabilities
type RegisterCapabilitiesRequest = changeset.RegisterCapabilitiesRequest

// RegisterCapabilitiesResponse is a response to register capabilities
type RegisterCapabilitiesResponse = changeset.RegisterCapabilitiesResponse

// RegisterCapabilities registers capabilities
var RegisterCapabilities = changeset.RegisterCapabilities

// RegisterNOPSRequest is a request to register NOPS
type RegisterNOPSRequest = changeset.RegisterNOPSRequest

// RegisterNOPSResponse is a response to register NOPS
type RegisterNOPSResponse = changeset.RegisterNOPSResponse

// RegisterNOPS registers NOPS
var RegisterNOPS = changeset.RegisterNOPS

// RegisterNodesRequest is a request to register nodes with the capabilities registry
type RegisterNodesRequest = changeset.RegisterNodesRequest

// RegisterNodesResponse is a response to register nodes with the capabilities registry
type RegisterNodesResponse = changeset.RegisterNodesResponse

// RegisterNodes registers nodes with the capabilities registry
var RegisterNodes = changeset.RegisterNodes

// RegisteredCapability is a wrapper of a capability and its ID
type RegisteredCapability = changeset.RegisteredCapability

// FromCapabilitiesRegistryCapability converts a capabilities registry capability to a registered capability
var FromCapabilitiesRegistryCapability = changeset.FromCapabilitiesRegistryCapability

// RegisterDonsRequest is a request to register Dons with the capabilities registry
type RegisterDonsRequest = changeset.RegisterDonsRequest

// RegisterDonsResponse is a response to register Dons with the capabilities registry
type RegisterDonsResponse = changeset.RegisterDonsResponse

// RegisterDons registers Dons with the capabilities registry
var RegisterDons = changeset.RegisterDons

// DONToRegister is the minimal information needed to register a DON with the capabilities registry
type DONToRegister = changeset.DONToRegister

// ConfigureContractsRequest is a request to configure ALL the contracts
type ConfigureContractsRequest = changeset.ConfigureContractsRequest

// ConfigureContractsResponse is a response to configure ALL the contracts
type ConfigureContractsResponse = changeset.ConfigureContractsResponse

// DonCapabilities is a set of capabilities hosted by a set of node operators
// in is in a convenient form to handle the CLO representation of the nop data
type DonCapabilities = changeset.DonCapabilities

type DeployRequest = changeset.DeployRequest
type DeployResponse = changeset.DeployResponse

type ContractSet = changeset.ContractSet

0 comments on commit 34ab33a

Please sign in to comment.