As explained by the MASSA doc: "Massa is a truly decentralized blockchain controlled by thousands of people. With the breakthrough multithreaded technology, we’re set for mass adoption."
First, install general tools for node dev:
- Install
nvm(NVM | GitHub). Usecurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bashto do so. Don't forget to open a new terminal after or runsource ~/.bashrcto make the new command available. - Use
nvm install nodeto install the latest version ofnode. Or usenvm install --ltsto install the latest LTS ofnode. npm i yarn -g: installyarn(package manager similar tonpmbut more recent). No need to install manuallynpxsince it comes withnpm.
Once the necessary tooling have been installed, install MASSA specific libs. We instead of npm:
If using this repository, just run
npm installinsidehello_world/subdirectory.
npm install --save-dev @as-pect/cli massa-sc-std massa-sc-scripts using npm (recommended).
yarn add @as-pect/cli massa-sc-std massa-sc-scripts --dev using yarn
send_smart_contract 2J3v9G2D9FAEjm3Khnj2W54ns9sZ6Zqgb4zkdHaP8zuTt5DY5c /home/onyr/Documents/code/massa/tic_tac_toe_front/build/website.wasm 1000000 0 0 0: deploy smart contract
get_operations 6LKALebFTHjFCPngt4aBJgcUDTmPdgermh5b57S6PWpGhBVfq: verify smart contract infos and check deployment.
get_filtered_sc_output_event caller_address=2J3v9G2D9FAEjm3Khnj2W54ns9sZ6Zqgb4zkdHaP8zuTt5DY5c:
npx massa-sc-create tictactoe-sc: inside an already initialized project, create a new MASSA hello world project.
./massa-client call_smart_contract 2J3v9G2D9FAEjm3Khnj2W54ns9sZ6Zqgb4zkdHaP8zuTt5DY5c 2R4zRvGc5GcX4eCWrM5zsboFKodCUuWa7X8biiDBQMoLohwH4N setResolver '{"name": "massadventure", "address": "2J3v9G2D9FAEjm3Khnj2W54ns9sZ6Zqgb4zkdHaP8zuTt5DY5c"}' 1000000000 0 0 0