-
Notifications
You must be signed in to change notification settings - Fork 47
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
AVS-507: Integration test scaffold: add anvil chain with deployed contracts to be able to test sdk features like bindings, txmgr, etc #176
Conversation
083bd7f
to
a6de9e1
Compare
this requires the changes in Layr-Labs/eigenlayer-contracts#495 to be merged first make generate-bindings exit on error update eigenlayer-middleware to head of dev branch make bindings
2bff649
to
64198d5
Compare
…nager, one for registries)
// just copied this file from an eigencert deployment and hardcoded addrs below | ||
// TODO(samlaf): eventually we should make updating this file automated | ||
anvilStateFileName = "eigenlayer-and-registries-deployed-anvil-state.json" | ||
serviceManagerAddr = "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F" | ||
registryCoordinatorAddr = "0x09635F643e140090A9A8Dcd712eD6285858ceBef" |
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.
addresses are no longer hardcoded. We get them from the ContractsRegistry that is deployed as part of the integration test deployment.
Erc20MockStrategy common.Address | ||
} | ||
|
||
func GetContractAddressesFromContractRegistry(ethHttpUrl string) (mockAvsContracts ContractAddresses) { |
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.
This function reads all important contract addresses from the ContractsRegistry contract deployed. We can then use these addresses to build sdk clients.
Ready for review.
TODO: