Move Playground
Last updated
Last updated
The Move Playground is a web version of the Move VM, Move CLI and basic IDE. This allows developer to write, test, build their Smart Contracts in the browser.
Go to Move Playground and create a new project by clicking on "+" near "Projects".
Put the name of your project into the input field.
Click on the created project.
Add a new module to the project by clicking on "+" near the sources
folder.
Put the name of the module in the input field, e.g. test_module.move
(file extension is required).
Put your Move code inside, e.g.:
Click on the 🛠️ button in the top menu to build the new module then close the console.
Create a new script similarly to how you created a module (but inside the script folder), e.g. test_script.move
.
Put the following code inside:
Build it by clicking the 🛠️ button in the top menu.
Navigate to the Run
section in left menu.
In the bottom of the screen you can input a script command to execute, e.g.: test_script(100)
.
Enjoy experimenting with arguments 👩🔬
Click on the 🔗 icon in the left menu.
Add a new address by entering the name and address in the fields inside the popup.
Use the named address in your code.
Playground is currently in alpha stage. The current Roadmap is:
Tests in browser.
Allow watching a stored resource.
Add support for different Move VM networks.
Move Prover in browser.
Ability to save/share projects and code samples.
The Move Playground is possible due to:
Move VM WASM fork developed by our team.
Dove Light - Dove package manager built for Web.
Monaco Editor for frontend.