Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
added block tracker contract to main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikelle committed Apr 10, 2024
1 parent a56afca commit 1829544
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ var (
Value: contracts.TestnetContracts.PreconfCommitmentStore,
})

optionBlockTrackerAddr = altsrc.NewStringFlag(&cli.StringFlag{
Name: "block-tracker-contract",
Usage: "address of the block tracker contract",
EnvVars: []string{"MEV_COMMIT_BLOCK_TRACKER_ADDR"},
Value: contracts.TestnetContracts.BlockTracker,

Check failure on line 207 in cmd/main.go

View workflow job for this annotation

GitHub Actions / release

contracts.TestnetContracts.BlockTracker undefined (type "github.com/primevprotocol/contracts-abi/config".Contracts has no field or method BlockTracker)
})

optionSettlementRPCEndpoint = altsrc.NewStringFlag(&cli.StringFlag{
Name: "settlement-rpc-endpoint",
Usage: "rpc endpoint of the settlement layer",
Expand Down Expand Up @@ -254,6 +261,7 @@ func main() {
optionBidderRegistryAddr,
optionProviderRegistryAddr,
optionPreconfStoreAddr,
optionBlockTrackerAddr,
optionSettlementRPCEndpoint,
optionNATAddr,
optionNATPort,
Expand Down Expand Up @@ -339,6 +347,7 @@ func launchNodeWithConfig(c *cli.Context) error {
PreconfContract: c.String(optionPreconfStoreAddr.Name),
ProviderRegistryContract: c.String(optionProviderRegistryAddr.Name),
BidderRegistryContract: c.String(optionBidderRegistryAddr.Name),
BlockTrackerContract: c.String(optionBlockTrackerAddr.Name),
RPCEndpoint: c.String(optionSettlementRPCEndpoint.Name),
NatAddr: natAddr,
TLSCertificateFile: crtFile,
Expand Down

0 comments on commit 1829544

Please sign in to comment.