Docs Category: Contracts

Reentrancy Attacks

To Share and +4 nLEARNs Login with NEARBetween a cross-contract call and its callback any method of your contract can be executed. Not taking this into account is one of the main sources of exploits. It is so common that it has its own name: reentrancy attacks. Always make sure to keep your state in …

Reentrancy Attacks Read More »

Bug Bounty Program

To Share and +4 nLEARNs Login with NEARNEAR has a revamped bug bounty program! Hackers – help audit, test, and toughen NEAR up, starting with bounties in the protocol category, and soon expanding to wallet, web, console, and smart contracts

Audit Program

To Share and +4 nLEARNs Login with NEARPagoda’s Smart Contract Audit Program is an important step in expanding smart contract audits and enhancing ecosystem security. It allows projects to get an audit with a vetted firm in a timely manner. Pagoda works with selected auditors and has experienced firms on a retainer with pre-paid slots …

Audit Program Read More »

Notes on Serialization

To Share and +4 nLEARNs Login with NEARSmart contracts need to be able to communicate complex data in a simple way, while also reading and storing such data into their states efficiently. To achieve such simple communication and efficient storage, smart contracts morph the data from their complex representation into simpler ones. This process of …

Notes on Serialization Read More »

Modules, Types & Structs

To Share and +4 nLEARNs Login with NEARimport Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’; import {CodeTabs, Language, Github} from "@site/components/codetabs" When writing smart contracts you will leverage common programming concepts such: Modules Data types & Collections Classes & Structures Modules Modules help you to organize your code and reuse third-party libraries. The main module …

Modules, Types & Structs Read More »

table-func

To Share and +4 nLEARNs Login with NEAR | Function Name | SDK method | Description | | ———————- | ——————————- | ———————————————————————- | | SHA 256 | `env::sha256(value)` | Hashes a sequence of bytes using sha256. | | Keccak 256 | `env::keccak256(value)` | Hashes a sequence of bytes using keccak256. | | Keccak 512 …

table-func Read More »

Scroll to Top