-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrading sdk version to 0.1.12 (#86)
* Upgrading sdk version i go.mod and go.sum * upgrade go-ethereum in go.sum * fixing some compilation errors * fixing challenger.go * config.go upgraded * BuildAvsSubscriber fixed * adding missing parameter to Send * changing to logger := testutils.GetTestLogger() * challenger fixed * hashFunction in aggregator.go * MockBlsAggregationService in aggregator_test.go * fixing config.go * fixing avs_reader avs_writer y bindings * fixing avs writer and reader * AvsWriterer and AvsReaderer fixed * operator.go fixed * registration.go fixed * aggregator.go fixed * RegisterOperatorInQuorumWithAVSRegistryCoordinator in main.go fixed * main.go fixed * integration_test.go fixed * challenger fixed * Adding interface EthClientInterface * fix errors with pointers * aggregator hash function fixed to match the one used by the operator * removing extra if err != nil * try 3 times to get responses from task manager * pin foundry version for tests * fix aggregator task response processing * fix aggregator test --------- Co-authored-by: tomasarrachea <[email protected]>
- Loading branch information
1 parent
83e64c8
commit a7cc616
Showing
19 changed files
with
421 additions
and
109 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,34 @@ | ||
package common | ||
|
||
import ( | ||
"context" | ||
_ "embed" | ||
"math/big" | ||
|
||
"github.com/Layr-Labs/eigensdk-go/chainio/clients/wallet" | ||
"github.com/ethereum/go-ethereum" | ||
"github.com/ethereum/go-ethereum/common" | ||
"github.com/ethereum/go-ethereum/core/types" | ||
) | ||
|
||
//go:embed abis/IncredibleSquaringTaskManager.json | ||
var IncredibleSquaringTaskManagerAbi []byte | ||
|
||
type EthClientInterface interface { | ||
wallet.EthBackend | ||
TransactionByHash(context.Context, common.Hash) (*types.Transaction, bool, error) | ||
ChainID(ctx context.Context) (*big.Int, error) | ||
|
||
SuggestGasTipCap(ctx context.Context) (*big.Int, error) | ||
HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) | ||
EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error) | ||
CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error) | ||
BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error) | ||
BlockNumber(ctx context.Context) (uint64, error) | ||
CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) | ||
PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) | ||
FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error) | ||
PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) | ||
SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error) | ||
SuggestGasPrice(ctx context.Context) (*big.Int, error) | ||
} |
Oops, something went wrong.