Greenfield-data-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/data-marketplace-contracts.git && cd greenfield-contracts
yarn install
forge install
- Copy
.env.example
and setupOP_PRIVATE_KEY
andOWNER_PRIVATE_KEY
in.env
.
cp .env.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 --rpc-url ${RPC_LOCAL}
The data marketplace contracts (i.e. all code inside the contracts
directory) are licensed under the
GNU Affero General Public License v3.0, also
included in our repository in the COPYING
file.
The software and related documentation are under active development, all subject to potential future change without notification and not ready for production use. The code and security audit have not been fully completed and not ready for any bug bounty. We advise you to be careful and experiment on the network at your own risk. Stay safe out there.