πŸš€ Production Ready

Neo N3 Rust Smart Contract Framework

Enterprise-grade framework for building secure, efficient, and standards-compliant smart contracts for Neo N3 blockchain using Rust. Complete toolchain from development to deployment.

13
Examples
100%
Success Rate
8K+
Lines of Code
hello_world.rs
use neo_contract::prelude::*;

#[neo_contract]
pub struct HelloWorld;

#[neo_contract_impl]
impl HelloWorld {
    pub fn deploy(&self) -> bool {
        rt::log("Hello, Neo N3!");
        true
    }
    
    #[safe]
    pub fn say_hello(&self, name: String) -> String {
        format!("Hello, {}!", name)
    }
}

Why Choose Neo N3 Rust Framework?

Built for developers who demand safety, performance, and comprehensive tooling

Memory Safety & Performance

Zero-cost abstractions with Rust's ownership system. Compile-time safety preventing common smart contract vulnerabilities.

  • Compile-time memory safety
  • Optimal gas usage
  • Zero-cost abstractions

Comprehensive Learning Path

13 complete examples from basic storage to enterprise DeFi applications. Progressive complexity designed for developers at all levels.

  • Beginner to expert examples
  • Real-world patterns
  • Best practices embedded

Complete Development Toolchain

Rust-to-WASM compilation with optimized build pipeline. WASM-to-NEF compiler for Neo N3 deployment with automatic manifest generation.

  • Optimized build pipeline
  • Automatic manifest generation
  • NEP standard detection

Standards Compliance

Full support for NEP-17 (tokens), NEP-11 (NFTs), and NEP-24 (royalties). Automatic standard detection based on method signatures.

  • NEP-17, NEP-11, NEP-24
  • Automatic detection
  • Standards-compliant ABI

Production Ready

100% build success rate across all examples. Comprehensive security features and gas optimization patterns used in production.

  • 100% success rate
  • Security-first approach
  • Gas optimization

Modular Architecture

Enterprise-scale modular design patterns. Clean separation of concerns with reusable components for complex applications.

  • Enterprise patterns
  • Modular design
  • Reusable components

Framework Architecture

Complete toolchain from Rust development to Neo N3 deployment

Rust Smart Contract

Write type-safe contracts with our framework

WebAssembly

Compile to optimized WASM bytecode

NEF Binary

Transform to Neo Executable Format

Neo N3 Network

Deploy to Neo N3 blockchain

neo-contract

Core Rust framework library

βœ… Production

neo-contract-proc-macros

Procedural macros & attributes

βœ… Production

neo-wasm

WASM→NEF compiler (Go)

βœ… Production

Examples Library

13 comprehensive examples

βœ… Production

Complete Example Library

13 production-ready examples from beginner to enterprise level

01
🟒 Beginner

Hello World

Contract basics with storage, events, and authorization

Storage Events Authorization
02
🟒 Beginner

Simple Storage

Advanced storage with multiple data types and serialization

Data Types Serialization Storage
03
🟑 Intermediate

Counter

State management with access control and statistics

State Management Access Control Statistics
04
🟑 Intermediate

NEP-17 Token

Full NEP-17 compliant fungible token implementation

NEP-17 Fungible Token Standards
05
🟑 Intermediate

NEP-11 NFT

Complete NEP-11 non-fungible token implementation

NEP-11 NFT Metadata
06
🟠 Advanced

NEP-24 Royalty NFT

NFT with NEP-24 royalty distribution system

NEP-24 Royalties Distribution
07
🟠 Advanced

Crowdfunding

DeFi crowdfunding with goal-based funding and refunds

DeFi Funding Refunds
08
πŸ”΄ Expert

Staking

Multi-pool staking system with yield farming

Staking Yield Farming Multi-pool
09
πŸ”΄ Expert

Simple DEX

Decentralized exchange with AMM and liquidity pools

DEX AMM Liquidity
10
πŸ”΄ Expert

Multisig Wallet

Enterprise security with M-of-N signatures and governance

Multisig Governance Security
11
πŸ”΄ Expert

Governance

DAO governance with token-weighted voting system

DAO Voting Governance
12
πŸ”΄ Expert

Oracle Price Feed

External data integration with oracle systems

Oracle Price Feed External Data
13
πŸ”΄ Expert

NFT Marketplace

Enterprise NFT marketplace with modular architecture

Marketplace Modular Enterprise

Getting Started

Get up and running with your first Neo N3 smart contract in minutes

1

Prerequisites

Install Rust nightly and Go for the complete toolchain

# Install Rust nightly
rustup install nightly
rustup default nightly
rustup target add wasm32-unknown-unknown

# Install Go 1.23+
# Visit https://golang.org/dl/
2

Clone & Build

Clone the repository and build the compiler

# Clone the repository
git clone https://github.com/your-org/neo-contract-rs
cd neo-contract-rs

# Build the compiler
cd neo-wasm
go build -o neo-wasm .
cd ..
3

Your First Contract

Try the hello-world example to verify everything works

# Navigate to hello-world example
cd examples/01-hello-world

# Build everything
make all

# Files generated:
# β”œβ”€β”€ target/wasm32-unknown-unknown/release/hello_world.wasm
# β”œβ”€β”€ build/hello_world.nef
# └── build/hello_world.manifest.json

Hello World Contract

A simple contract to get you started

src/lib.rs
use neo_contract::prelude::*;

#[neo_contract]
pub struct HelloWorld {
    owner: H160,
}

#[neo_contract_impl]
impl HelloWorld {
    pub fn deploy(&self, owner: H160) -> bool {
        self.owner.set(owner);
        rt::log("HelloWorld deployed!");
        true
    }
    
    #[safe]
    pub fn get_owner(&self) -> H160 {
        self.owner.get()
    }
    
    pub fn say_hello(&self, name: String) -> String {
        format!("Hello, {}!", name)
    }
}

Documentation & Resources

Comprehensive guides, API documentation, and learning resources

βœ… Production Ready

Ready for Production Use

100% build success rate across all examples. Comprehensive security features, gas optimization, and standards compliance make this framework ready for production deployment.

100%
Build Success
3
NEP Standards
8K+
Lines Tested
13
Examples