Skip to content

utnet-org/contract-new-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

contract-new-project-name

contracts template

Quickstart Guide

You can start coding on the Utility Rust stack in less than a minute, thanks to Utility Devcontainers. How?

  1. Click Use this template > Create a new repository

Create a new repository

  1. In your newly created repo, click Code > Codespaces > Create codespace on main

Create Codespace

Where to Get Started?

Start writing your contract logic in src/lib.rs and integration tests in tests/test_basics.rs.

How to Build Locally?

Install unc and run:

# use root account if dev-containers environment
sudo su -
cd <contracts template> # cd social-web3

unc dev-tool build

How to Test Locally?

cargo nextest run --nocapture  # cargo test

How to Deploy?

Deployment is automated with GitHub Actions CI/CD pipeline. To deploy manually, install unc and run:

unc dev-tool deploy <account-id>

Useful Links

  • unc CLI - Iteract with Utility blockchain from command line