Mind marketplace is a marketplace protocol for safely and efficiently buying and selling data uploaded in Greenfield.
To install dependencies:
git clone --recurse-submodules https://github.com/bnb-chain/novel-contract.git && cd novel-contract
yarn install
forge install
- Copy
.env.example
and setupOP_PRIVATE_KEY
andOWNER_PRIVATE_KEY
in.env
.
cp .env[foundry.toml](foundry.toml).example .env
- Deploy with foundry.
forge script ./script/1-deploy.s.sol --rpc-url ${RPC_LOCAL} --legacy --broadcast --private-key ${OP_PRIVATE_KEY}
Test with foundry after deploying:
forge test