Template contract
Do not run this code, it is meant as a starter for you.
- copy this to another directory
- change the name in the source code
- run
Please replace you desired name everywhere you see foobar
cp -r template foobar
cd foobar
sed -i"" -e 's/TEMPLATE/foobar/' makefile
sed -i"" -e 's/TEMPLATE/foobar/' integration/integration_test.go
Once that is working, you should be able to compile the contract and run tests:
# fast pure go tests
make unit-test
# compile the contract with tinygo (needs docker)
make build
# compile the contract and run all tests (including integration tests on the compiled wasm)
make test