sway

🌴 Empowering everyone to build reliable and efficient smart contracts.

24 articles 61.9k View on GitHub ↗
24 articles
How to Use `forc update` to Manage Dependencies in Sway

Learn to manage Sway project dependencies with forc update. This command finds the latest compatible versions and updates Forc.lock for reproducible builds.

how-to-guide
Mar 5, 2026
How Sway's Inline IR Optimization Pass Improves Performance: A Deep Dive

Discover how Sway's inline IR optimization pass boosts performance by eliminating call overhead and enabling further optimizations. Learn more about this deep dive into FuelLabs/sway.

deep-dive
Mar 5, 2026
How to Write and Run Unit Tests with `forc test` in Sway

Learn to write and run unit tests in Sway using forc test. Discover how this command compiles and executes your tests on the Fuel VM, providing detailed results.

how-to-guide
Mar 5, 2026
How Sway Handles Storage Read and Write Operations: VM Intrinsics and Type Safety

Discover how Sway handles storage read and write operations using VM intrinsics and type safety for secure blockchain state management. Learn about compile-time slot calculation and purity enforcement

internals
Mar 5, 2026
How to Configure Build Profiles and Optimization Levels in Sway: A Complete Guide

Learn to configure Sway build profiles and optimization levels in Forc.toml, disabling IR passes for faster builds or enabling full optimizations for production.

how-to-guide
Mar 4, 2026
How to Use ABI Encoding and Decoding for Contract Interaction in Sway

Learn ABI encoding and decoding in Sway for seamless contract interaction. Sway automatically handles data serialization for calls logs and SDK communication.

how-to-guide
Mar 4, 2026
How Sway's IR Verification Pass Validates Compiled Code: A Deep Dive into the Module Verifier

Learn how Sway's IR verification pass validates compiled code by checking modules, functions, and instructions for structural integrity and type safety. Get detailed diagnostics before code generation.

deep-dive
Mar 4, 2026
How to Use `forc clean` to Clear Build Artifacts in Sway Projects

Learn how to use forc clean to clear build artifacts in Sway projects. Ensure fresh builds by removing compiler generated bytecode and JSON ABIs using this essential command.

how-to-guide
Mar 4, 2026
How Sway's Namespace and Module System Works: A Deep Dive into the Compiler Architecture

Explore Sway's namespace and module system. Understand how packages, modules, and scopes create a hierarchical tree for symbol resolution, imports, and visibility in this deep dive into compiler architecture.

deep-dive
Mar 4, 2026
How to Use External Contract Calls in Sway: ABI and Proxy Patterns Explained

Master external contract calls in Sway using ABI and proxy patterns. Explore typed calls and run_external for efficient bytecode execution and interaction with Fuel smart contracts.

tutorial
Mar 4, 2026
How Sway Type System Performs Type Unification: A Deep Dive into the Compiler

Discover how Sway type system performs unification with UnifyCheck and Unifier in sway-core for robust type compatibility and substitution.

deep-dive
Mar 4, 2026
How to Use the forc template Command for Sway Project Scaffolding

Learn to use the forc template command to scaffold new Sway projects. This tool clones Git repos, extracts files, and updates manifest data for your project.

how-to-guide
Mar 4, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →