NFT Marketplace + Auction for Tezos
The solution consists of 3 types of contracts:
FA2
- NFT Token contract;Auction
- contract for interaction with the auction;Market
- contract for interaction with the marketplace.
.
├── contracts/ # contracts
|──────── main/ # the contracts to be compiled
|──────── partial/ # the code parts imported by main contracts
├── scripts/sandbox # cli for test and deployment addresses
├── README.md # current file
├── .gitignore
└── package.json
-
Installed NodeJS (tested with NodeJS v12+)
-
Installed Yarn (NPM isn't working properly with
ganache-cli@6.12.0-tezos.0
) -
Installed Ligo:
curl https://gitlab.com/ligolang/ligo/raw/dev/scripts/installer.sh | bash -s "next"
- Installed node modules:
cd blockchain_ua_2021 && yarn
- Configure
truffle-config.js
if needed.
To compile and deploy contracts to EdoNet
yarn migrate-edonet
For other networks:
yarn migrate --network NAME # other networks
Contracts are processed in the following stages:
- Compilation
- Deployment
- Configuration
- Interactions on-chain
To compile the contracts run:
yarn compile
Artifacts are stored in the build/contracts
directory.
For deployment step the following command should be used:
yarn migrate
Addresses of deployed contracts are displayed in terminal