flashbots / flashbots/ethers-provider-flashbots-bundle
browser version
- Dominant language
- TypeScript
- Stars
- 566
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
Hey everyone,
I have been trying to experiment with a browser-friendly version of this, using tools such as `browserify`.
Up to this point, I have been unsuccessful. Things I have tried:
- compile typescript in javascript and then create a standalone file with `browserify -p esmify --standalone flashbots_old.js -o flashbots.js`
- use it directly on the typescript file: `browserify index.ts -p [ tsify --noImplicitAny esmify ] > bundle.js`
- use it on a file that imports and exports the library.
I want to make a nice little tool for https://ethtools.odyslam.com
EDIT: After several hours, I manually edited the output bundle.js and managed to make the Flashbots objects available in `window`. Will update this issue when I have a working PoC. Might be interesting.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with index.ts and reproduce the browserify commands shown in the issue, including the tsify and esmify variants. Check whether the resulting bundle exposes the Flashbots objects in window, as described in the update; a working browser-friendly bundle would mark the experiment complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100