Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 588 Bytes

solidity-scaffolding.md

File metadata and controls

24 lines (17 loc) · 588 Bytes

GameFarm Scaffolding

  1. The owner will create various farm rates that users can harvest

function createFarmRate(price, payout, blockCount) { // createFarmRate }

  1. Users will have to create a harvest on the contract to being playing the game

function createUserHarvest(farmRateId) { // createUserHarvest }

  1. Once mature, a user can complete the harvest and earn points

function claimHarvest(harvestId) { // claimHarvest }

  1. The contract owner is able to collect the fees earned by the contract for users playing

function withdrawal() { // withdrawal earned fees }