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.
- Ensure Go is installed on your machine
recommended version 1.16^
- Install the Flow CLI
- Run
$ git clone https://github.com/versus-flow/auction-flow-contract
in a terminal window - Change to the project directory
cd auction-flow-contract
Start two terminals. Both from the root directory.
flow emulator -v
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
flow keys generate
flow accounts create --host access.devnet.nodes.onflow.org:9000 --results --config-path ~/.flow-dev.json --key <pk from step 1>
- edit flow-testnet.json add an testnet-account with pk from step 1 and account from step 4
- transfer flow to account
- flow project deploy -f ~/.flow-testnet.json
Repeat step 1-4 for the versus account that is going to hold the marketplace