Ethereum development, dapphub-style.
Usage: dapp <command> [<args>] or: dapp help <command> Build, test, deploy and transact with Ethereum contracts from the comfort of your command line. Commands: address determine address of newly generated contract build compile the source code clean remove compiled source directory clone clone a github repo create deploy a compiled contract (--verify on Etherscan) debug start an interactive debugger for unit tests (hevm) help print help about dapp(1) or one of its subcommands init bootstrap a new dapp install install a smart contract library pkg use the dapp package manager test run the test suite testnet launch a testnet uninstall remove a smart contract library update fetch all upstream lib changes upgrade pull & commit all upstream lib changes
These variables can be set at the prompt or in a
||Installed location of tools|
||Project Solidity source directory|
||Directory for installed Dapp packages|
||Directory for compilation artifacts|
||n/a||Solidity compiler version to use|
||n/a||Avoid compiling this time|
||Compile with libraries|
||Attempt Etherscan verification|
||n/a||Compilation flags passed to
A global (always loaded) config file is located in
.dapprc can also be defined in your project's root, which overrides variables in the global config.
dapp is distrubuted as part of the Dapp tools suite.
If you don't want to use Nix, we provide an alternative installation mechanism using
Please make sure you have:
- Bash 4
and then run:
make link install dapp(1) into /usr/local make uninstall uninstall dapp(1) from /usr/local
Dockerfile is based on the
docker build -t dapp . build the Docker image docker run -it -v `pwd`:/src dapp run `dapp test' on the current directory