Skip to content

Commit 54b09d7

Browse files
committed
move kms client to devenv
1 parent 924add7 commit 54b09d7

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

deployment/environment/devenv/chain.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
cldf_tron "github.com/smartcontractkit/chainlink-deployments-framework/chain/tron"
3838
tronprovider "github.com/smartcontractkit/chainlink-deployments-framework/chain/tron/provider"
3939
cldf_chain_utils "github.com/smartcontractkit/chainlink-deployments-framework/chain/utils"
40-
"github.com/smartcontractkit/chainlink/deployment"
40+
"github.com/smartcontractkit/chainlink/deployment/environment/devenv/internal/kms"
4141
)
4242

4343
const (
@@ -118,15 +118,15 @@ func (c *ChainConfig) SetDeployerKey(pvtKeyStr *string) error {
118118
c.DeployerKey = deployer
119119
return nil
120120
}
121-
kmsConfig, err := deployment.KMSConfigFromEnvVars()
121+
kmsConfig, err := kms.KMSConfigFromEnvVars()
122122
if err != nil {
123123
return fmt.Errorf("failed to get kms config from env vars: %w", err)
124124
}
125-
kmsClient, err := deployment.NewKMSClient(kmsConfig)
125+
kmsClient, err := kms.NewKMSClient(kmsConfig)
126126
if err != nil {
127127
return fmt.Errorf("failed to create KMS client: %w", err)
128128
}
129-
evmKMSClient := deployment.NewEVMKMSClient(kmsClient, kmsConfig.KmsDeployerKeyId)
129+
evmKMSClient := kms.NewEVMKMSClient(kmsClient, kmsConfig.KmsDeployerKeyId)
130130
chainID, success := new(big.Int).SetString(c.ChainID, 10)
131131
if !success {
132132
return fmt.Errorf("invalid chainID %s", c.ChainID)

deployment/evm_kmsclient.go renamed to deployment/environment/devenv/internal/kms/kms_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package deployment
1+
package kms
22

33
import (
44
"bytes"

deployment/evm_kmsclient_test.go renamed to deployment/environment/devenv/internal/kms/kms_client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package deployment
1+
package kms
22

33
import (
44
"encoding/hex"

0 commit comments

Comments
 (0)