Logic behind the ghostDAO protocol
Go to file
Uncle Fatso 8e9374b2d0
small fixes in a readme file
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
2025-07-23 22:32:02 +03:00
.github/workflows chore: forge init 2024-09-12 15:21:57 +03:00
dependencies initial push for smart-contracts 2025-04-28 14:17:04 +03:00
lib forge install: forge-std 2024-09-12 15:22:04 +03:00
src new tests for gatekeeper on staking 2025-07-22 16:12:52 +03:00
test test for events for gatekeeper 2025-07-22 16:48:01 +03:00
.env.template make gatekeeper part of the deployment strategy 2025-07-23 22:28:44 +03:00
.gitignore initial push for smart-contracts 2025-04-28 14:17:04 +03:00
.gitmodules change back slash to forward slash to make git submodule work 2025-06-29 14:54:40 +03:00
deployer.sh make gatekeeper part of the deployment strategy 2025-07-23 22:28:44 +03:00
foundry.toml optimizer added explicitly 2025-05-11 16:33:19 +03:00
README.md small fixes in a readme file 2025-07-23 22:32:02 +03:00
remappings.txt initial push for smart-contracts 2025-04-28 14:17:04 +03:00
soldeer.lock initial push for smart-contracts 2025-04-28 14:17:04 +03:00

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.