Docs Category: 2.develop

Unit Testing

To Share and +4 nLEARNs Login with NEARimport {CodeTabs, Language, Github} from "@site/components/codetabs" Unit tests allow you to test the contract methods individually. They are suitable to check the storage is updated correctly, and that methods return their expected values. They are written in the contract’s language and execute locally. If you used one of …

Unit Testing Read More »

Integration Test

To Share and +4 nLEARNs Login with NEARimport {CodeTabs, Language, Github} from "@site/components/codetabs" Integration tests enable to deploy your contract in the NEAR testnet or a local sandbox, and create test-users to interact with it. In this way, you can thoroughly test your contract in a realistic environment. Moreover, when using the local sandbox you …

Integration Test Read More »

Oracles

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Oracles are smart contracts that enable you to query the current price of an asset. Since smart contracts cannot connect to internet and pull information, Oracles rely on having someone constantly updating their prices. Because of that, be mindful when …

Oracles Read More »

Non Fungible Tokens

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; In contrast with fungible tokens, non-fungible tokens (NFT) are unitary and therefore unique. This makes NFTs ideal to represent ownership of assets such as a piece of digital content, or a ticket for an event. As with fungible tokens, NFTs …

Non Fungible Tokens Read More »

Fungible Tokens

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; Besides the native NEAR token, NEAR accounts have access to a multitude of fungible tokens (e.g. these whitelisted tokens). Moreover, it is even possible for users to create their own fungible tokens. In contrast with the NEAR native token, fungible …

Fungible Tokens Read More »

Prerequisites

To Share and +4 nLEARNs Login with NEARIn order to develop smart contracts you will need Node.js for javascript, and the rust toolchain for Rust. Developing Contracts in Rust Follow these instructions for setting up Rust. Then, add the wasm32-unknown-unknown toolchain which enables compiling Rust to Web Assembly (wasm), the low-level language used by the …

Prerequisites Read More »

Scroll to Top
Report a bug👀