💻
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
  • Installing nodejs and npm
  • Installing mxpy
  • Choosing a IDE
  • Next up
  1. The Flip Smart Contract

The Flip Smart Contract part 1 : Setting up the development environment

Before writing anything we need to prepare the ground

PreviousThe Flip Smart Contract : IntroductionNextThe Flip Smart Contract part 2 : Think about the contract and the game mechanisms

Last updated 1 year ago

Installing nodejs and npm

AssemblyScript use npm, the same package manager than nodejs, you can install nodejs and npm by the way you prefer.

This tutorial works for node v18.12.1, other versions have not been tested.

Installing mxpy

In order to build AssemblyScript smart contracts you should have erdpy installed. To do so you can check the .

Install mxpy using the mxpy-up or pip method, this ensures that it will be installed in the default path

Choosing a IDE

There is plenty code editors that allow you to code in AssemblyScript since any TypeScript editor works. The most popular one is . If you already have a JetBrains licence, is also an excellent choice.

Next up

The setting up part of this tutorial is finished. You have now an fully working development environment for writing AssemblyScript smart contracts. In the next part we will discuss about the flip.

official documentation
VSCode
WebStorm