Edit the entrypoint _start which can be found in ./assembly/index.ts
Metaprotocols built with metashrew-cli use AssemblyScript as a compiler. This is the same compiler used for building subgraphs, for developers coming from Ethereum development. Refer to the AssemblyScript docs here:
You don't have to build metaprotocls in AssemblyScript alone. The WASM builds can link to Rust sources built with no_std with wasm-pack or similar WASM build crates.
Anything that compiles to WASM can link to the binaries produced with this CLI.
Testing
The boilerplate project generated by this CLI includes metashrew-test which is a mock runtime for metashrew. This allows you to write test cases with mock block data and check your key-value pairs after program run. More complex testing can be accomplished using this IndexerProgram class.