This is a git repo for the cadence contrats for versus@flow. Follow the guide below to set it up and test locally in the terminal.
This project started as a collaboration with 0xAlchemist in his repo https://github.com/0xAlchemist/flow-auction
- Ensure Go is installed on your machine
recommended version 1.16^
- Install the Flow CLI
- Run
$ git clone https://github.com/versus-flow/versus-contracts
in a terminal window - Change to the project directory
cd versus-contracts
Start a terminal and run make demo
- install all the contracts
- setup an artist with a wallet to receive his share
- setup a marketplace and put a single 1 vs 10 auction active. Marketplace cut is 15%
- setup bidder1
- have bidder1 bid on the auction
- if you want to you can now start the webpage from the https://github.com/versus-flow/versus-action-website repo to explore the web side
- tick the clock and settle the auction
- settle the auction
- check all the accounts
Run testnet.sh
three times and replace the address for testnet-versus, testnet-admin, testnet-artist with the given addresses. Put the keys safe and export env vars where appropriate
All user facing paths must be incremented for this to work if not old collections that point to old data will be used.
- Art
- Marketplace
- Profile
run make deploy-testnet
and make testnet