github repository for near meetup in boomlabs
- Cheat Sheet for Near Protocol Hands-on workshop.
- [NEAR 102] Part 1: Understanding Near Protocols — Mainnet Architecture and RPC Calls: DSRV medium post written in Korean corresponding to Day 1.
- [NEAR 102] Part 2: Understanding Near Protocols — Smart Contract Patterns: DSRV medium post written in Korean corresponding to Day 2.
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 |
brew install node
npm install --global yarn
# 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
# node version should be above 12
npm install -g near-cli
npm i --save near-api-js
npm install -g typescript
npm install -g ts-node