@brinkninja/node-anvil
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

node-anvil

Node.js utility for Foundry's anvil process

Use

Install

npm install --save-dev @brinkninja/node-anvil

Import startAnvil

import { startAnvil } from '@brinkninja/node-anvil'

Use startAnvil to start and kill the anvil process. Provide any anvil command line args as camelCase.

  const anvil = await startAnvil({ forkUrl: '<MY_RPC_URL>', port: 8546 })

  anvil.kill()

Build and Test

  1. Install Docker Desktop for your system (Mac, Linux)
  2. Create a .env file with RPC_URL set to a mainnet (chainId=1) RPC URL.
  3. Run npm run docker to test

Readme

Keywords

none

Package Sidebar

Install

npm i @brinkninja/node-anvil

Weekly Downloads

40

Version

0.1.7

License

GPL-3.0-or-later

Unpacked Size

51 kB

Total Files

17

Last publish

Collaborators

  • shouming_jiang
  • pvlc
  • phanpak
  • jacobdcastro
  • evf2430
  • dduhovic
  • movejasmith
  • mfcalvanese
  • komodoman