This repository contains the smart contracts of Everbloom platform. All the contracts are deployed on Flow blockchain.
Everbloom is the NFT platform for the 99%, a mobile-first, one-stop shop that helps anyone create, connect, collect, and build a community around NFTs.
Everbloom was founded with the mission of enabling anyone to express themselves and monetize through creativity.
- Before you start, install the Flow command-line interface (CLI).
- Clone this repository:
$ git clone https://github.com/StruccAB/Everbloom-Smart-Contracts-Review
- Change to the project directory:
$ cd Everbloom-Smart-Contracts-Review
- Change to the tests directory:
$ cd tests
- Install tests dependencies:
$ yarn
- Run the tests:
$ yarn tests
- Deploy the contracts. Everbloom Contract Init method handles logic for creating Admin resource
- Create a
Minter
resource and store it in account storage
- Create a
User
resource instance and store it in account storage. - get
Minter
capability from Admin and store it inUser
resource - Create a
Gallery
resource instance and store it inUser
resource - Create an
Art
and store it inGallery
resource - (Everbloom only)Create an
Edition
struct instance insideArt
resource - Mint a
Print
(NFT) under an edition in an Art
- Execute
setup-collection.cdc
transaction
- Testnet
0x84d3e0bf16529c09
- Mainnet
0xe703f7fee6400754
- Start the emulator:
$ flow emulator start
- Deploy the contracts:
$ flow project deploy -n emulator