Skip to content

ilyar/near-rust-intro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Develop

make fix 
make qa
make build
make clean

Run CI local

Installation act:

brew install act

Setup env vars:

echo "GITHUB_TOKEN=%GITHUB_TOKEN%" | tee .secrets

Run

act --help

Deploy test

make build
near dev-deploy
contractName=$(cat neardev/dev-account)
near state $contractName

Usage

accountId=ilyar.testnet
contractName=$(cat neardev/dev-account)
near view $contractName get_num
near call $contractName increment --accountId $accountId
near view $contractName get_num
near call $contractName decrement --accountId $accountId
near view $contractName get_num
near delete $contractName $accountId