Skip to content

Commit

Permalink
Made suggested change
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Littley <[email protected]>
  • Loading branch information
cody-littley committed Jan 9, 2025
1 parent 6003a89 commit 8cbdd60
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions inabox/deploy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ func (env *Config) GenerateAllVariables() {
// hardcode graphurl for now
graphUrl := "http://localhost:8000/subgraphs/name/Layr-Labs/eigenda-operator-state"

env.localstackEndpoint = "http://localhost:4570"
env.localstackRegion = "us-east-1"

// Create envs directory
createDirectory(env.Path + "/envs")
changeDirectory(env.rootPath + "/inabox")
Expand Down
3 changes: 3 additions & 0 deletions inabox/deploy/config_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ type Config struct {
Controller ControllerVars
Relays []RelayVars

localstackEndpoint string
localstackRegion string

// DisperserAddress is the address of disperser 0 (aka the only disperser at the current time)
DisperserAddress common.Address

Expand Down
4 changes: 2 additions & 2 deletions inabox/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ func (env *Config) GenerateDisperserKeypair() error {
// Generate a keypair in AWS KMS

keyManager := kms.New(kms.Options{
Region: "us-east-1",
BaseEndpoint: aws.String("http://localhost:4570"), // TODO don't hard code this
Region: env.localstackRegion,
BaseEndpoint: aws.String(env.localstackEndpoint),
})

createKeyOutput, err := keyManager.CreateKey(context.Background(), &kms.CreateKeyInput{
Expand Down

0 comments on commit 8cbdd60

Please sign in to comment.