@0xmetropolis/metal v0.9.0
Metal CLI
by @0xmetropolis
Metal is a smart contract visualization tool. This repo contains the CLI for Metal.
Getting Started
Dependencies
Installation
# with npm
npm install -g @0xmetropolis/metal
# with yarn
yarn global add @0xmetropolis/metalDevelopment
The first time you set up metal for local development, you will need to run a setup script via:
yarn run devWhenever adding new features to metal, it can be helpful to auto-recompile the app:
yarn watchIn a new terminal, you can then issue commands to your local metal repo with the mdev command:
mdev helpUsage
Generate A Preview
In the directory of your Foundry project, run the following command:
metal preview --chain-id 1 $PATH_TO_DEPLOY_SCRIPTNOTE: Metal wraps around forge commands, but metal preview does not send any deployment
transactions.
This will compile your contracts and start a deployment simulation. Once the simulation is done, your browser will open to display the results of the simulation.
Setting the Chain Id
The --chain-id flag allows you to choose the network to preview your deployment on.
Testing
Getting Help
If you run into problems or find a bug, consider opening an issue.
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago