Description
Component
Forge
Describe the feature you would like
I would like to be able to download forge as a binary npm package for easier integration into Frontend and Node applications. I am unclear on if it is even possible to package up forge as a standalone binary
Additional context
I would like to be able to download forge as a binary npm package for easier integration into Frontend and Node applications. As an example, if forge is a part of a build pipeline it becomes very awkward to integrate it into a vercel build.
I am happy to contribute to making this happen but I would need some guidance on
- Is it even possible to package up forge into a binary? Would I have to try to package up foundry-up and then execute foundry-up?
- A pointer to where to look in foundry to get started
My specific use case is Iam working to build a forge inspired ethers.js alternative. User would be able to write forge scripts. The API is similar to this
import { mutate } from 'ts-sol'
import { TransferEntireBalance } from './ERC20.s.sol'
....
<button onClick={() => mutate(TransferEntireBalance, { signer })} />
I want to reuse forge as much as possible but if I can't find a way to get forge on NPM I'm likely going to be forced to reimplement cheat codes into a javascript based VM or hardhat.
Metadata
Metadata
Labels
Type
Projects
Status