This repository aims to create the Soroban Contract with the smallest WASM size for the Fast, Cheap, and Out of Control's Asteroids Game.
Try checking out solution.wat for understanding more about the WebAssembly stack machine.
This repository highly utilizes make
and other Linux programs for building and testing. You also need to install the Rust toolchain to be able to compile and test these contracts. Additionally, you need to install the WebAssembly Binary Toolkit for binary modifications and add the binary files to your PATH.
-
make build
to create an optimized contract and convert it into solution.wat file for further WebAssembly modification.
-
make test
to test your Rust contract's logic.
-
make wasm
to convert your solution.wat file into solution.wasm and append the required
contractenvmetav0
extension to your WASM file for submission. -
make test-wasm
to test your solution.wat file's budget and logic.