0.9.0 • Published 1 year ago

@0xmetropolis/metal v0.9.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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/metal

Development

The first time you set up metal for local development, you will need to run a setup script via:

yarn run dev

Whenever adding new features to metal, it can be helpful to auto-recompile the app:

yarn watch

In a new terminal, you can then issue commands to your local metal repo with the mdev command:

mdev help

Usage

Generate A Preview

In the directory of your Foundry project, run the following command:

metal preview --chain-id 1 $PATH_TO_DEPLOY_SCRIPT

NOTE: 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

Integration Tests 🌁

Getting Help

If you run into problems or find a bug, consider opening an issue.

0.9.0

1 year ago

0.8.3

1 year ago

0.8.2

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.7.10

2 years ago

0.7.9

2 years ago

0.7.8

2 years ago

0.7.7

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago