Copy the .env.sample
to .env
.
Update the API_HOST
variable
Install:
npm i -g c2wasm-cli
Use:
c2wasm-cli contracts build
This will build the
contracts
directory and output the wasm files into thebuild
directory.
npm install c2wasm-cli
import { buildDir } from "c2wasm-cli";
const dirPath = "my/path/to/hooks/root/dir"
const outDir = "my/build/wasm/directory"
await buildDir(dirPath, outDir);
yarn run build
pkg .
npm publish