Skip to content

Commit

Permalink
fix: integration test v2 payment table deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Dec 18, 2024
1 parent 2ef01d5 commit 73f2d9d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inabox/deploy/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ func (env *Config) generateDisperserV2Vars(ind int, logPath, dbPath, grpcPort st
DISPERSER_SERVER_BLS_OPERATOR_STATE_RETRIVER: env.EigenDA.OperatorStateRetreiver,
DISPERSER_SERVER_EIGENDA_SERVICE_MANAGER: env.EigenDA.ServiceManager,
DISPERSER_SERVER_DISPERSER_VERSION: "2",
DISPERSER_SERVER_ENABLE_PAYMENT_METERER: "true",

DISPERSER_SERVER_ENABLE_PAYMENT_METERER: "true",
DISPERSER_SERVER_RESERVATIONS_TABLE_NAME: "e2e-v2-reservation",
DISPERSER_SERVER_ON_DEMAND_TABLE_NAME: "e2e-v2-ondemand",
DISPERSER_SERVER_GLOBAL_RATE_TABLE_NAME: "e2e-v2-global-reservation",
}

env.applyDefaults(&v, "DISPERSER_SERVER", "dis", ind)
Expand Down
19 changes: 19 additions & 0 deletions inabox/deploy/localstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

"github.com/Layr-Labs/eigenda/common/aws"
"github.com/Layr-Labs/eigenda/common/store"
"github.com/Layr-Labs/eigenda/core/meterer"
"github.com/Layr-Labs/eigenda/disperser/common/blobstore"
blobstorev2 "github.com/Layr-Labs/eigenda/disperser/common/v2/blobstore"
"github.com/ory/dockertest/v3"
Expand Down Expand Up @@ -142,6 +143,24 @@ func DeployResources(
}
}

v2PaymentName := "e2e_v2_"
// create payment related tables
err = meterer.CreateReservationTable(cfg, v2PaymentName+"reservation")
if err != nil {
fmt.Println("err", err)
return err
}
err = meterer.CreateOnDemandTable(cfg, v2PaymentName+"ondemand")
if err != nil {
fmt.Println("err", err)
return err
}
err = meterer.CreateGlobalReservationTable(cfg, v2PaymentName+"global_reservation")
if err != nil {
fmt.Println("err", err)
return err
}

return err

}
Expand Down

0 comments on commit 73f2d9d

Please sign in to comment.