Lesson 1 - Fundamental structure of smartcontract of near protocol

Overview

NEAR CONTRACT

dev-1672293046853-49717456344735
pnpm run deploy
> [email protected] deploy /Users/vudangquang/Courses/VBI-Courses/rs-contract
> cd contract && ./deploy.sh
>> Building contract
>> Deploying contract
Starting deployment. Account id: dev-1672293046853-49717456344735, node: https://rpc.testnet.near.org, helper: https://helper.testnet.near.org, file: ./target/wasm32-unknown-unknown/release/hello_near.wasm
Transaction Id 7qxnVKMzcQ8nLa1QRPPXFaQ8Grck4aYYHz6a2bkDkTg8
To see the transaction in the transaction explorer, please open this url in your browser
https://explorer.testnet.near.org/transactions/7qxnVKMzcQ8nLa1QRPPXFaQ8Grck4aYYHz6a2bkDkTg8
Done deploying to dev-1672293046853-49717456344735
near call dev-1672293046853-49717456344735 get_total_token --accountId dev-1672293046853-49717456344735
Scheduling a call: dev-1672293046853-49717456344735.get_total_token()
Doing account.functionCall()
Transaction Id AUAwgBgxTVuyQSsgaDK6DGaLmvyZPQFaAeY1orHgqDmx
To see the transaction in the transaction explorer, please open this url in your browser
https://explorer.testnet.near.org/transactions/AUAwgBgxTVuyQSsgaDK6DGaLmvyZPQFaAeY1orHgqDmx
100000
near call dev-1672293046853-49717456344735 get_token_account '{"account_id": "dev-1672293046853-49717456344745"}' --accountId dev-1672293046853-49717456344735
Scheduling a call: dev-1672293046853-49717456344735.get_token_account({"account_id": "dev-1672293046853-49717456344745"})
Doing account.functionCall()
Transaction Id 3qqVW7Zg26vCbDoL4p87Kha8pgssRAoiqXLqgh2iuEAe
To see the transaction in the transaction explorer, please open this url in your browser
https://explorer.testnet.near.org/transactions/3qqVW7Zg26vCbDoL4p87Kha8pgssRAoiqXLqgh2iuEAe
null
You might also like...
evm2near compiles Solidity contracts into NEAR WebAssembly contracts.

EVM → NEAR evm2near is a project for compiling EVM bytecode into wasm bytecode, with the particular goal of having that wasm artifact be executable on

Prefix tree (ordered map and set) data structure using 100% safe Rust

PFX: A 100% safe, blob-oriented prefix tree This crate provides a prefix tree map and set data structure, implemented purely in safe Rust. The API is

Minimal implementation of the Mimblewimble protocol.

Grin Grin is an in-progress implementation of the Mimblewimble protocol. Many characteristics are still undefined but the following constitutes a firs

Official Rust implementation of the Nimiq protocol
Official Rust implementation of the Nimiq protocol

Nimiq Core implementation in Rust (core-rs) Rust implementation of the Nimiq Blockchain Core Nimiq is a frictionless payment protocol for the web. Thi

Rust implementation of Zcash protocol

The Parity Zcash client. Gitter Blog: Parity teams up with Zcash Foundation for Parity Zcash client Installing from source Installing the snap Running

An implementation of the OPAQUE password-authenticated key exchange protocol

The OPAQUE key exchange protocol OPAQUE is an asymmetric password-authenticated key exchange protocol. It allows a client to authenticate to a server

Kerberos protocol attacker

Cerbero Kerberos protocol attacker. Tool to perform several tasks related with Kerberos protocol in an Active Directory pentest. Installation From cra

A prototype implementation of the Host Identity Protocol v2 for bare-metal systems, written in pure-rust.
A prototype implementation of the Host Identity Protocol v2 for bare-metal systems, written in pure-rust.

Host Identity Protocol for bare-metal systems, using Rust I've been evaluating TLS replacements in constrained environments for a while now. Embedded

A substrate pallet that enables Manta's decentialized anynonymous payment (DAP) protocol.
A substrate pallet that enables Manta's decentialized anynonymous payment (DAP) protocol.

This is a pallet that enables decentialized anynonymous payment (DAP) protocol. The best way to use this repo is to invoke it with a manta-runtime, available from either manta-node or cumulus.

Owner
Dang Quang Vu
Lecture Blockchain at Vietnam Blockchain Innovation (VBI), love Training & Shared knowledge about technology.
Dang Quang Vu
A PoC backbone for NFT Marketplaces on NEAR Protocol

NFT Market Reference Implementation A PoC backbone for NFT Marketplaces on NEAR Protocol. Reference Changelog Changelog Progress: basic purchase of NF

null 9 May 26, 2022
Reference client for NEAR Protocol

Reference implementation of NEAR Protocol About NEAR NEAR's purpose is to enable community-driven innovation to benefit people around the world. To ac

NEAR 2k Jan 4, 2023
A tutorial for an NFT Market Place Built with Near Protocol and React.js

nft-marketplace-part-1 A tutorial for an NFT Market Place built using Near Protocol and React.js. Preview To run this app locally, follow below steps:

Kohwo Orien 5 Jun 29, 2022
Durudex Near Protocol Token.

Durudex Near Token ?? Prerequisites Rust Near CLI ⚙️ Build To build a token you will need to use this: cargo build --all --target wasm32-unknown-unkno

Durudex 2 May 31, 2022
Helpful functions and macros for developing smart contracts on NEAR Protocol.

near-contract-tools Helpful functions and macros for developing smart contracts on NEAR Protocol. This package is a collection of common tools and pat

Jacob 27 Dec 17, 2022
Helpful functions and macros for developing smart contracts on NEAR Protocol.

near-contract-tools Helpful functions and macros for developing smart contracts on NEAR Protocol. This package is a collection of common tools and pat

NEARFoundation 9 Aug 3, 2022
Confidential credit scores and loan disbursal, powered by zkSNARKs and NEAR Protocol

zkLoans zkLoans brings confidential Credit Scores. It proves to a counterparty if you meet threshold requirements for a credit score without revealing

Anirudha Bose 2 Sep 13, 2022
Near contract collection for story-arc.io

arc-near-contracts TBD Development Setup Make sure to format code using defaults before every commit or set up the environment to handle this for you.

null 2 Mar 14, 2022
USN - the first NEAR-native stablecoin

USN USN is a NEAR-native USD stable coin. The contract implements fungible token API according to the following standards: NEP-141 (ERC-20 fashioned)

DecentralBank 52 Nov 2, 2022
A tool to help with estimating NEAR gas spent by transactions on Aurora.

Aurora Gas Estimator A tool to help with estimating NEAR gas spent by transactions on Aurora. Building from source Prerequisites Rust GNU Make (3.81+)

Michael Birch 4 Aug 23, 2022