Skip to content

DSRV-DevGuild/near-counter-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

near-counter-example

Git clone

git clone https://github.com/DSRV-DevGuild/near-counter-example.git

Set up environments

Install Rust

# install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# configure your current shell
source $HOME/.cargo/env
# add wasm target to your toolchain
rustup target add wasm32-unknown-unknown

Install near-cli

npm install -g near-cli

Login

If you do not have a NEAR account, please create one with NEAR Wallet.

near login

Compile

# AssemblyScript
cd AssemblyScript && yarn install
yarn asb

# Rust
cd Rust
cargo build --target wasm32-unknown-unknown --release

Deploy

# near deploy
## AssemblyScript
near deploy --wasmFile build/release/counter_contract.wasm --accountId YOUR_ACCOUNT_HERE
## Rust
near deploy --wasmFile target/wasm32-unknown-unknown/release/counter_contract.wasm --accountId YOUR_ACCOUNT_HERE

# near dev-deploy (testnet only)
## AssemblyScript
near dev-deploy build/release/counter_contract.wasm
## Rust
near dev-deploy target/wasm32-unknown-unknown/release/counter_contract.wasm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published