sway
🌴 Empowering everyone to build reliable and efficient smart contracts.
Learn to manage Sway project dependencies with forc update. This command finds the latest compatible versions and updates Forc.lock for reproducible builds.
How Sway's Inline IR Optimization Pass Improves Performance: A Deep DiveDiscover 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.
How to Write and Run Unit Tests with `forc test` in SwayLearn 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 Sway Handles Storage Read and Write Operations: VM Intrinsics and Type SafetyDiscover 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
How to Configure Build Profiles and Optimization Levels in Sway: A Complete GuideLearn 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 Use ABI Encoding and Decoding for Contract Interaction in SwayLearn ABI encoding and decoding in Sway for seamless contract interaction. Sway automatically handles data serialization for calls logs and SDK communication.
How Sway's IR Verification Pass Validates Compiled Code: A Deep Dive into the Module VerifierLearn 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.
How to Use `forc clean` to Clear Build Artifacts in Sway ProjectsLearn 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 Sway's Namespace and Module System Works: A Deep Dive into the Compiler ArchitectureExplore 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.
How to Use External Contract Calls in Sway: ABI and Proxy Patterns ExplainedMaster 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.
How Sway Type System Performs Type Unification: A Deep Dive into the CompilerDiscover how Sway type system performs unification with UnifyCheck and Unifier in sway-core for robust type compatibility and substitution.
How to Use the forc template Command for Sway Project ScaffoldingLearn 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.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →