-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update EigenDA proxy to match OP v1.7.6 client behaviors
- Loading branch information
Showing
11 changed files
with
145 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule operator-setup
updated
6 files
+3 −6 | holesky/.env.example | |
+1 −1 | holesky/run.sh | |
+3 −3 | mainnet/.env.example | |
+1 −1 | mainnet/run.sh | |
+ − | resources/g1_abbr.point | |
+ − | resources/g2_abbv.point.powerOf2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package server | ||
|
||
import ( | ||
"fmt" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package server | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/Layr-Labs/eigenda-proxy/store" | ||
"github.com/Layr-Labs/eigenda-proxy/verify" | ||
"github.com/Layr-Labs/eigenda/api/clients" | ||
"github.com/ethereum/go-ethereum/log" | ||
) | ||
|
||
func LoadStore(cfg CLIConfig, ctx context.Context, log log.Logger) (store.Store, error) { | ||
log.Info("Using eigenda backend") | ||
daCfg := cfg.EigenDAConfig | ||
|
||
verifier, err := verify.NewVerifier(daCfg.KzgConfig()) | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
maxBlobLength, err := daCfg.GetMaxBlobLength() | ||
if err != nil { | ||
return nil, err | ||
} | ||
|
||
if cfg.MemStoreCfg.Enabled { | ||
log.Info("Using memstore backend") | ||
return store.NewMemStore(ctx, &cfg.MemStoreCfg, verifier, log, maxBlobLength) | ||
} | ||
|
||
client, err := clients.NewEigenDAClient(log, daCfg.ClientConfig) | ||
if err != nil { | ||
return nil, err | ||
} | ||
return store.NewEigenDAStore( | ||
ctx, | ||
client, | ||
verifier, | ||
maxBlobLength, | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.