-
Notifications
You must be signed in to change notification settings - Fork 39
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
Integration tests idea #1
Comments
That's a great issue! Hmmm, it's an option to use anvil. Corrent me if I'm wrong, but both hardhat and anvil do not support gRPC endpoints. But I think it's fine to start with JSON RPC calls to either hardhat or anvil (we can reuse/start hardhat setup from here, no need to add the setup here at the beginning) with ethers-rs. This way, we do not have to worry about the wallet side and smart contracts (and deploying them). gRPC would come into play when bundler is integrated into the execution client and would have direct access to the blockchain state and EVM. Similar to how stackup-bundler connect to Ethereum node with ethclient (geth). At later stages we could develop some client SDK and tests for client side also. What do you think? @zsluedem |
Both hardhat and anvil support eth JSON RPC endpoint(not gRPC, my bad) -> hardhat JSON RPC and Anvil JSON.
Yes. I was exploring using ethers-rs for setting up the smart contract yesterday.
I think I misunderstood your idea on gRPC in the very first place. Thanks for correcting me! We n
Got it! Thanks~ |
#26 closing this now because anvil is successfully landed |
Problem
We need a local Ethereum network tool like Hardhat tests. They should provide enough
gRPCJSON endpoint and correct EVM execution. The bundler could be able to integrate with the local test network.Proposed solution
I suggest we used the anvil tool. It is written in Rust and it is light enough for tests.
@Vid201 Please let me know if you have some other options to choose.
Goal
The goal here is to achieve 1 and 2.
The text was updated successfully, but these errors were encountered: