Comments (9)
@liamzebedee Hi Liam. You should be able to reproduce easily using Alchemy.
Also a sidebar question. Have you thought about turning this project into a local txn simulator? I built one using ethereumjs' VM library but eth-verifiable-rpc approaches it in a different way and I really like it.
from eth-verifiable-rpc.
I'll try a repro when I get a spare moment this week.
@jim380 oh yeah! @shazow suggested this to me a few weeks back. It wouldn't be that difficult, happy to help out / guide you on how could could build it.
from eth-verifiable-rpc.
@jim380 I think that's how a lot of OSS code evolves, someone stumbles on a cool idea and makes a trimmed-down and tweaked version of it, shares it in public (preferably with a permissive license), then someone else stumbles on that... repeat, until we arrive at our Utopian future! :)
from eth-verifiable-rpc.
@jim380 I think that's how a lot of OSS code evolves, someone stumbles on a cool idea and makes a trimmed-down and tweaked version of it, shares it in public (preferably with a permissive license), then someone else stumbles on that... repeat, until we arrive at our Utopian future! :)
I updated my original thread with the link to the repo I borrowed the idea from. Check it out.
from eth-verifiable-rpc.
Hey @jim380, can you provide some details so I can reproduce locally? Cheers
from eth-verifiable-rpc.
@liamzebedee I actually built one using a much lower version of ethereumjs haha.
from eth-verifiable-rpc.
@jim380 Is yours public? Would love to check it out. :) It's on my list of things to prototype but not very high up the list right now. -_-
from eth-verifiable-rpc.
@shazow I took the base from this repo, trimmed it down and tweaked some of the VM settings to make it all work for my needs (i.e. I was having nonce issues etc.). We can collab and make it better. Sound good? Cc: @liamzebedee too here.
A couple of things:
- I had to disable the nonce check in the local VM as it only works somtimes. The other times, the nonce in the local VM just goes bunkers and resets to zero
- Remember to lock down the ethereumjs versions. Otherwise the imports from hardhat would break
- I got rid of all sourcify related stuff as those don't really suit my needs
from eth-verifiable-rpc.
I have been running this simulator PoC against ethereum/polygon mainnet as a dry-run. By dry-run I mean that I catch the errors from the simulator itself and only log out the simulation result. This way the errors don't get bubbled up and mess up the critical code paths.
It mostly works but can be finicky at times. In my logs I would see bursts of failed simulations (i.e. successful simulations with failed results) due to either revert or out-of-gas, but the actual txns I broadcast to the network all went through.
from eth-verifiable-rpc.
Related Issues (2)
- Build ethers provider HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eth-verifiable-rpc.