Canto is written in Go. We prefer to use the latest version of go because this will prevent mixed runtimes, and thus, errors.
- go v1.20.0
- golangci-lint
- Visual Studio Code
- Mac or Linux, no Windows
git clone https://github.com/Canto-Network/Canto
cd Canto
go install ./...
code .- Each major version of canto should change the module path in go.mod.
- branches should be created for each non-state-breaking release, eg release/v5.0.x
There are three PR templates. The default template is for types fix, feat, and refactor. We also have a docs template for documentation changes and an other template for changes that do not affect production code. When previewing a PR before it has been opened, you can change the template by adding one of the following parameters to the url:
template=docs.mdtemplate=other.md
Ensure that you base and target your PR on the main branch.
All feature additions and all bug fixes must be targeted against main. Exception is for bug fixes which are only related to a released version. In that case, the related bug fix PRs must target against the release branch.