Smart Contract

Simulation Testing (Rust)

To Share and +4 nLEARNs NEAR Wallet Before we Start This article do not show the possibilities a simulation testing framework can do; it discusses about how to create an MVP simulation testing framework for your project. For more advanced changes, do your own research (DYOR) and check out some links one included in this article. NOTE: Simulation …

Simulation Testing (Rust) Read More »

NEAR Live Contract Review | Part 3: Whitelist and Staking Pool Factory

To Share and +4 nLEARNs NEAR Wallet Introduction Hello, everyone. Today we’re going to review 2 contracts instead of 1. We will include contracts that involve cross contract calls, and talk about promises, and how they work at NEAR. If you want to learn more about how composability works this is a good session to …

NEAR Live Contract Review | Part 3: Whitelist and Staking Pool Factory Read More »

Learn NEAR Club banner

NEAR Smart Contracts in RUST – Best Practices

To Share and +4 nLEARNs NEAR Wallet Init once Make sure you check that state doesn’t exists in init using assert!(!env::state_exists(), “The contract is already initialized”); Prevent Default By default near_sdk allows contract to be initialized with default state. Usually, if you have a constructor, you want to prevent default state initialization. impl Default for Contract { fn default() …

NEAR Smart Contracts in RUST – Best Practices Read More »

Scroll to Top