💻
mx-sdk-as
  • MultiversX WASM AssemblyScript (Proof of concept)
  • The Crowdfunding Smart Contract
    • The Crowdfunding Smart Contract (part 1)
    • The Crowdfunding Smart Contract (part 2)
  • The Flip Smart Contract
    • The Flip Smart Contract : Introduction
    • The Flip Smart Contract part 1 : Setting up the development environment
    • The Flip Smart Contract part 2 : Think about the contract and the game mechanisms
    • The Flip Smart Contract part 3 : Setting up the project
    • The Flip Smart Contract part 4 : Writing the contract storage
    • The Flip Smart Contract part 5 : Contract administration
    • The Flip Smart Contract part 6 : Bet logic
    • The Flip Smart Contract part 7 : Make the flip
    • The Flip Smart Contract part 8 : Bounty endpoint
    • The Flip Smart Contract part 9 : Testing the contract
  • 💡How to
    • Model classes
    • Enums
    • Modules
Powered by GitBook
On this page
  1. The Flip Smart Contract

The Flip Smart Contract : Introduction

Write, build and deploy a simple smart contract written in AssemblyScript

PreviousThe Crowdfunding Smart Contract (part 2)NextThe Flip Smart Contract part 1 : Setting up the development environment

Last updated 1 year ago

This is the second AssemblyScript smart contract tutorial, the first is .

This tutorial will show you how to write a simple MultiversX Flip smart contract using AssemblyScript.

The contract we will write here is about a simple "Double or nothing" bet game 🎲 Here is what we will see in this guide :

Are you ready ? I am 😎

This tutorial assume that you have good knowledge about object oriented programming, especially in TypeScript. Make sure to follow first the previous tutorial about the crowdfunding contract, which is way more detailled and beginner friendly.

here
Part 1 : Setting up the development environment
Part 2 : Think about the contract and the game mechanisms
Part 3 : Setting up the project
Part 4 : Writing the contract storage
Part 5 : Contract administration
Part 6 : Bet logic
Part 7 : Make the flip
Part 8 : Bounty endpoint
Part 9 : Testing the contract