1.6 KiB
1.6 KiB
Ghost DAO protocol
ghostDAO is a decentralized multi-chain reserve currency protocol. ghostDAO protocol is powered by GHOST native blockchain enabling anonymous cross-chain transactions of GHST. Each eGHST token is backed by a basket of stablecoins in the ghostDAO treasury, giving it an intrinsic value that it cannot fall below.
Usage
You need to install foundry or use contracts from /src
folder with any tool you are comfortable with.
Clone
$ git clone https://git.ghostchain.io/ghostchain/ghost-dao-contracts.git
Foundry preparation
$ git submodule init
$ git submodule update
$ forge soldeer install
Build contracts
$ forge build
Test contracts
$ forge test
Environment
$ cp .env.template .env
# populate the .env file with specific values for environment variables
Local deployment
# in first terminal
$ anvil
# in second terminal
$ ./deployer.sh --network anvil-localnet
Deployer help
$ ./deployer.sh --help
Technologies Used
Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
Foundry consists of:
- Forge: Ethereum testing framework (like Truffle, Hardhat and DappTools).
- Cast: Swiss army knife for interacting with EVM smart contracts, sending transactions and getting chain data.
- Anvil: Local Ethereum node, akin to Ganache, Hardhat Network.
- Chisel: Fast, utilitarian, and verbose solidity REPL.