Skip to content

bnb-chain/mindpress-data-marketplace-smart-contract

Repository files navigation

Mind Marketplace Contract

Mind marketplace is a marketplace protocol for safely and efficiently buying and selling data uploaded in Greenfield.

Features

Create Space: Create a collection to sell your work. List Objects: List your artwork uploaded on Greenfield to sell. Buy Objects: Buy artworks and get download access.

Environment Support

  • BNB Greenfield Mainnet
  • BNB Greenfield Testnet

Technical Design

Architecture Diagram

Workflow

Create Space: create a bucket for listing artworks by sending a greenfield cross-chain transaction List Objects: create a group and create a policy to bind the group and object for listing by sending two greenfield cross-chain transactions Buy Objects: add buyer into the group by sending a greenfield cross-chain transaction

Install

To install dependencies:

git clone --recurse-submodules https://github.com/bnb-chain/mind-marketplace-contract.git && cd mind-marketplace-contract
yarn install
forge install

Deploy

  1. Copy .env.example and setup OP_PRIVATE_KEY and OWNER_PRIVATE_KEY in .env.
cp .env.example .env
  1. Deploy with hardhat.
npx hardhat run scripts/1-deploy.ts --network bsc-testnet 

Documentation

Description
BNB greenfield official website
Guide to BNB Greenfield
Discord of BNB Greenfield
Forum of bnbchain
Guide to BNB Greenfield

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published