Skip to content

Commit

Permalink
rm proverpool address
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Aug 28, 2023
1 parent 65eb3d0 commit 229c51b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
14 changes: 6 additions & 8 deletions packages/eventindexer/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ func Run(
EthClient: ethClient,
RPCClient: rpcClient,
SrcTaikoAddress: common.HexToAddress(os.Getenv("L1_TAIKO_ADDRESS")),
ProverPoolAddress: common.HexToAddress(os.Getenv("PROVER_POOL_ADDRESS")),
SrcBridgeAddress: common.HexToAddress(os.Getenv("BRIDGE_ADDRESS")),
SrcSwapAddresses: stringsToAddresses(strings.Split(os.Getenv("SWAP_ADDRESSES"), ",")),
BlockBatchSize: uint64(blockBatchSize),
Expand Down Expand Up @@ -283,13 +282,12 @@ func newHTTPServer(db eventindexer.DB, l1EthClient *ethclient.Client) (*http.Ser
}

srv, err := http.NewServer(http.NewServerOpts{
EventRepo: eventRepo,
StatRepo: statRepo,
NFTBalanceRepo: nftBalanceRepo,
Echo: echo.New(),
CorsOrigins: strings.Split(os.Getenv("CORS_ORIGINS"), ","),
EthClient: l1EthClient,
ProverPoolAddress: common.HexToAddress(os.Getenv("PROVER_POOL_ADDRESS")),
EventRepo: eventRepo,
StatRepo: statRepo,
NFTBalanceRepo: nftBalanceRepo,
Echo: echo.New(),
CorsOrigins: strings.Split(os.Getenv("CORS_ORIGINS"), ","),
EthClient: l1EthClient,
})
if err != nil {
return nil, err
Expand Down
14 changes: 6 additions & 8 deletions packages/eventindexer/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"os"
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/labstack/echo/v4/middleware"
"github.com/patrickmn/go-cache"
Expand All @@ -26,13 +25,12 @@ type Server struct {
}

type NewServerOpts struct {
Echo *echo.Echo
EventRepo eventindexer.EventRepository
StatRepo eventindexer.StatRepository
NFTBalanceRepo eventindexer.NFTBalanceRepository
ProverPoolAddress common.Address
EthClient *ethclient.Client
CorsOrigins []string
Echo *echo.Echo
EventRepo eventindexer.EventRepository
StatRepo eventindexer.StatRepository
NFTBalanceRepo eventindexer.NFTBalanceRepository
EthClient *ethclient.Client
CorsOrigins []string
}

func (opts NewServerOpts) Validate() error {
Expand Down

0 comments on commit 229c51b

Please sign in to comment.