-
Notifications
You must be signed in to change notification settings - Fork 373
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
RPC #927
Conversation
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
@rappie you might be interested in trying this out |
Awesome, thanks! I'm definatly interested in this :) I will do some tests soon. |
I'm getting a segfault 😞
|
You can use ganache --fork https://bsc-mainnet.nodereal.io/v1/<token>
export ECHIDNA_RPC_URL="http://127.0.0.1:8545/" (mind the |
arcz
force-pushed
the
queries
branch
3 times, most recently
from
February 21, 2023 20:43
963bc63
to
68c04e5
Compare
arcz
force-pushed
the
queries
branch
4 times, most recently
from
February 24, 2023 00:39
72ddcd2
to
dc4bb35
Compare
RPC test More complex RPC example, metadata memo and logging Display the number of fetched contracts/slots Fetched contracts popup RPC errors WIP Show fetch errors to the user Move metadata cache to IORef
Basic logging for Etherscan fetches Fix fetch cache populated from constructor Persist and load fetch cache Save fetch cache per block Code cleanup Fetch contract name from Etherscan
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a very early RPC preview.
Set required config (the exact block number required for mint() in the example contract below to work):
export ECHIDNA_RPC_BLOCK=15947726
export ECHIDNA_RPC_URL="https://eth-mainnet.alchemyapi.io/v2/<token>"
Other providers, such as Infura should also work although I haven't tested it.
Check out this example contract: https://github.com/crytic/echidna/blob/d9e832c3464eb9478a7389cb535287e9a39344e2/tests/solidity/rpc/rpc.sol.
Running with
--format text
will print fetch queries (HTTP requests) as they happen that are not in the cache.echidna-test tests/solidity/rpc/rpc.sol --contract TestRPC --format text