Skip to content

Commit

Permalink
code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
krehermann committed Dec 18, 2024
1 parent c6f4799 commit 274f5a9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 8 deletions.
45 changes: 38 additions & 7 deletions deployment/keystone/changeset/compatiblity.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,77 @@ package changeset

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

type GetContractSetsRequest = internal.GetContractSetsRequest
type GetContractSetsResponse = internal.GetContractSetsResponse
//TODO: KS-673 refactor internal package to reduce and remove the duplication

var GetContractSets = internal.GetContractSets

// func GetContractSets internal.GetContractSets
// OracleConfig is the configuration for an oracle
type OracleConfig = internal.OracleConfig

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

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

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

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

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

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

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

// RegisterCapabilities registers capabilities
var RegisterCapabilities = internal.RegisterCapabilities

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

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

// RegisterNOPS registers NOPS
var RegisterNOPS = internal.RegisterNOPS

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

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

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

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

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

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

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

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

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

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

// ConfigureContractsResponse is a response to configure ALL the contracts
type ConfigureContractsResponse = internal.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 = internal.DonCapabilities

//var DeployForwarder = internal.DeployForwarder
1 change: 0 additions & 1 deletion deployment/keystone/changeset/internal/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,6 @@ type RegisterNodesResponse struct {

// registerNodes registers the nodes with the registry. it assumes that the deployer key in the Chain
// can sign the transactions update the contract state
// TODO: 467 refactor to support MCMS. Specifically need to separate the call data generation from the actual contract call
func RegisterNodes(lggr logger.Logger, req *RegisterNodesRequest) (*RegisterNodesResponse, error) {
registry, registryChain, err := GetRegistryContract(req.Env, req.RegistryChainSelector)
if err != nil {
Expand Down

0 comments on commit 274f5a9

Please sign in to comment.