-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate EigenSDK wallet in batcher #348
Conversation
@@ -482,7 +491,7 @@ func serializeProof(proof *merkletree.Proof) []byte { | |||
return proofBytes | |||
} | |||
|
|||
func (b *Batcher) parseBatchIDFromReceipt(ctx context.Context, txReceipt *types.Receipt) (uint32, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context isn't used here
@@ -140,7 +140,7 @@ func mustNewSimulatedBackend() (client SimulatedBackend, deployerAddr common.Add | |||
balance.SetString("10000000000000000000", 10) // 10 eth in wei | |||
|
|||
deployerAddr = auth.From | |||
genesisAlloc := map[common.Address]core.GenesisAccount{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core.GenesisAccount
has been deprecated
8b9c30d
to
635c50e
Compare
Looks good to me |
disperser/cmd/batcher/main.go
Outdated
len(config.FireblocksConfig.VaultAccountName) > 0 { | ||
secretKey, err := os.ReadFile(config.FireblocksConfig.SecretKeyPath) | ||
if err != nil { | ||
return fmt.Errorf("Cannot read fireblocks secret from %s: %w", config.FireblocksConfig.SecretKeyPath, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: lower case to "cannot.."
common/fireblocks_config.go
Outdated
return []cli.Flag{ | ||
cli.StringFlag{ | ||
Name: PrefixFlag(flagPrefix, FireblocksAPIKeyFlagName), | ||
Usage: "Fireblocks API Key. To configure Fireblocks MPC wallet, this field is required.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment that they can be empty string, in which case it'll fallback to private key wallet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an optional parameter, so empty string doesn't need to be passed in to fall back to private key wallet.
I'll comment that it will fall back to private key wallet if not configured.
f33fd8f
to
4f920b7
Compare
Why are these changes needed?
Integrates EigenSDK wallet interface for sending transactions and retrieving receipts from chain.
This will allow using both private key EOA and Fireblocks MPC wallet to send transactions with a single interface.
Checks