template

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

Template contract

Do not run this code, it is meant as a starter for you.

  1. copy this to another directory
  2. change the name in the source code
  3. 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL