Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

versus-flow/auction-flow-contract

 
 

Repository files navigation

Versus Flow Auction Contract

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.

Prerequisites

  1. Ensure Go is installed on your machine recommended version 1.16^
  2. Install the Flow CLI
  3. Run $ git clone https://github.com/versus-flow/auction-flow-contract in a terminal window
  4. Change to the project directory cd auction-flow-contract

How to run the sample

Start two terminals. Both from the root directory.

  • flow emulator -v
  • make demo

What happends in the sample

  1. install all the contracts
  2. setup an artist with a wallet to receive his share
  3. setup a marketplace and put a single 1 vs 10 auction active. Marketplace cut is 15%
  4. setup bidder1
  5. have bidder1 bid on the auction
  6. 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
  7. tick the clock and settle the auction
  8. settle the auction
  9. check all the accounts

Deploy to testnet

  1. flow keys generate
  2. flow accounts create --host access.devnet.nodes.onflow.org:9000 --results --config-path ~/.flow-dev.json --key <pk from step 1>
  3. edit flow-testnet.json add an testnet-account with pk from step 1 and account from step 4
  4. transfer flow to account
  5. flow project deploy -f ~/.flow-testnet.json

Repeat step 1-4 for the versus account that is going to hold the marketplace

About

Cadence contracts for the versus auction syustem.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.4%
  • Makefile 6.9%
  • Shell 2.7%