Skip to content

boomlabs-web3/learn-near-in-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

near_meetup

github repository for near meetup in boomlabs

Additional Material

Overview

Branch Docs Tutorial Description Reference
Day 1
1.rpc/near-api-js Create a Transaction Interact with NEAR blockchain by sending 1 NEAR in 3 ways (by using near-cli, near-api-js, near-api-js & postman) near-examples/transaction-examples
2.contract/template Structure of a Contract Learn about basic NEAR contract structure written in rust. near-examples/rust-counter
3.contract/simple-ft Fungible Tokens Deploy & Initialize simple fungible token contract in NEAR testnet. near-examples/FT
Day 2
4.contract/upgraded-ft Schema Migration Upgrade previously deployed FT contract in 3rd branch, and learn about schema migration.
5.contract/cross-contract-call Cross-Contract Calls Learn cross-contract calls by deploying vending-machine contract which interacts with FT contract above. near-examples/docs-examples
6.contract/test Test Learn unit test & integration test in NEAR. Learn how to mock blockchain environment in local environment, spooning contracts from testnet or mainnet. near/workspaces-rs

Prerequisites

Install Node.js

brew install node
npm install --global yarn

Install Rust & Wasm

# Install Rust
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
source $HOME/.cargo/env

# Add Wasm toolchain
rustup target add wasm32-unknown-unknown

Install near-cli

# node version should be above 12
npm install -g near-cli

Install near-api-js

npm i --save near-api-js

Install ts-node

npm install -g typescript
npm install -g ts-node

Releases

No releases published

Packages

No packages published