Skip to content

kalmiallc/fuel-booth-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

UI OnChain Racing Score Board

BC Fuel-contracts

the contract to store and give data about the scores users have accomplished in the game repository

Game Version:

change in Forc.toml under entry

v1: Current HighScore Only: high_score.sw & a_player.sw
v2: Full all games for user: race_board.sw & ...

Fuel Documentation

Getting started

  • work, test and do your thing on the develop branch !
  • git clone, use ssh if you don't have account password (for Bitbucket)
  • fuelup --version should give you a verison
  • use cargo for testing
  • forc build to build contracts for testing

local wallet & account

  • Read and use forc wallet
  • check that you have at least 1 address. forc-wallet accounts
  • if not create using forc-wallet new

testing with cargo

  • first time ever? please install cargo install cargo-generate (a tool for testing)
  • no test file in project? make one with: cargo generate --init fuellabs/sway templates/sway-test-rs --name game-score-contracts
  • write your tests in /tests/harness.rs
  • cargo test to run test script(s) (make sure to use forc build to have latest changes from smart contract before running tests). For displaying println!("{:?}", obj); run: cargo test -- --nocapture

deploy:

  • first get some free gas money Faucet test tokens
  • build contracts via forc build
  • deploy using forc deploy --testnet and follow prompt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published