A beta version of the Moonbeam Truffle Box.
To get started, clone this repository
git clone https://github.com/albertov19/moonbeam_box
Afterwards, install all the dependencies:
npm install
The dependencies installed are the following:
- EthereumJS wallet: a lightweight wallet implementation.
- Minimist: TODO
- Web3 Provider Engine: tool for composing custom Web3 providers.
- Truffle: this is not needed if you have installed it globally.
- Moonbeam Truffle Plugin: tool to easily create your own standalone Moonbeam node for development (uses Docker).
Moonbeam Truffle Box is pre-configured with two networks: standalone and TestNet. To deploy in the standalone network please check the Moonbeam Truffle Pluggin section to install and start your own local node.
node_modules/.bin/truffle migrate --network development
node_modules/.bin/truffle migrate --network testnet
Note: if you have Truffle installed globally, you can replace node_modules/.bin/truffle
for truffle
.
The Plugin is used to get you started with a local standalone Moonbeam node quickly, the following commands are available:
In this context, installing means downloading the Docker image of the Moonbeam standalone node (requires Docker to be installed).
node_modules/.bin/truffle run moonbeam install
Start the standalone Moonbeam node.
node_modules/.bin/truffle run moonbeam start
Stop the standalone Moonbeam node. This will remove the container, thus purging the chain.
node_modules/.bin/truffle run moonbeam stop
Pause the standalone Moonbeam node.
node_modules/.bin/truffle run moonbeam pause
Unpause the standalone Moonbeam node.
node_modules/.bin/truffle run moonbeam unpause
Shows the status of the standalone Moonbeam node.
node_modules/.bin/truffle run moonbeam status
We welcome any feedback, so feel free to reach out through our official Discord Channel.