Move Playground allows you to build, test and run Move language packages in browser.
The playground utilizing both Dove Light and Move VM built for WASM to work directly from your browser.
- Go to Move Playground and create new project (by click on "+" near "Projects").
- Put name of project into appeared input.
- Click on created project.
- Add new module to project by clicking on "+" near
sources
folder. - Put name of the module in appeared input, e.g.
test_module.move
(file extension is must). - Put there your Move code, e.g.:
module 0x01::TestModule {
}
Click on first button in the top menu (hammer and wrench) to build new module, close console.
- Create new script similar to module (but in script folder), e.g.
test_script.move
. - Put there following code:
script {
fun test_script(val: u128) {
assert!(val == 15, 101);
}
}
- Build it.
- Navigate to
Run
section in left menu. - In the bottom of the screen you can put script command to execute, e.g.:
test_script(100)
. - Enjoy playing with arguments :)
- You can add custom addresses.
- You can send transactions (i think we need few days to complete functional), yet only for Pontem network, but we are planning to support other networks as well.
- Dependencies fetching directly from blockchain node (it's almost done, but we need time to test it, etc).
- Support of other networks.
- Allow to launch tests.
- Allow to watch resources.
- Allow to run prove.