1. The Sway Programming Language
  2. 1. Introduction
    1. 1.1. Installation
    2. 1.2. Getting Started
    3. 1.3. The Sway Toolchain
    4. 1.4. A Forc Project
    5. 1.5. Standard Library
  3. 2. Examples
    1. 2.1. Counter
    2. 2.2. Subcurrency
    3. 2.3. FizzBuzz
    4. 2.4. Wallet Smart Contract
  4. 3. Program Types
    1. 3.1. Contracts
    2. 3.2. Libraries
    3. 3.3. Scripts
    4. 3.4. Predicates
  5. 4. Sway Language Basics
    1. 4.1. Variables
    2. 4.2. Built-in Types
    3. 4.3. Blockchain Types
    4. 4.4. Functions
    5. 4.5. Structs, Tuples, and Enums
    6. 4.6. Methods and Associated Functions
    7. 4.7. Comments and Logging
    8. 4.8. Control Flow
  6. 5. Blockchain Development with Sway
    1. 5.1. Hashing and Cryptography
    2. 5.2. Contract Storage
    3. 5.3. Function Purity
    4. 5.4. Identifiers
    5. 5.5. Native Assets
    6. 5.6. Access Control
    7. 5.7. Calling Contracts
  7. 6. Advanced Concepts
    1. 6.1. Generic Types
    2. 6.2. Traits
    3. 6.3. Trait Constraints
    4. 6.4. Assembly
  8. 7. Testing
    1. 7.1. Testing with Rust
  9. 8. Application Frontend
    1. 8.1. TypeScript SDK
  10. 9. Sway Reference
    1. 9.1. Style Guide
    2. 9.2. Known Issues and Workarounds
    3. 9.3. Differences From Solidity
    4. 9.4. Differences From Rust
    5. 9.5. Contributing To Sway
  11. 10. Forc Reference
    1. 10.1. Manifest Reference
    2. 10.2. Dependencies
    3. 10.3. Commands
      1. 10.3.1. forc addr2line
      2. 10.3.2. forc build
      3. 10.3.3. forc check
      4. 10.3.4. forc clean
      5. 10.3.5. forc completions
      6. 10.3.6. forc deploy
      7. 10.3.7. forc init
      8. 10.3.8. forc json-abi
      9. 10.3.9. forc parse-bytecode
      10. 10.3.10. forc plugins
      11. 10.3.11. forc run
      12. 10.3.12. forc test
      13. 10.3.13. forc update
      14. 10.3.14. forc template
    4. 10.4. Plugins
      1. 10.4.1. forc explore
      2. 10.4.2. forc fmt
      3. 10.4.3. forc lsp

The Sway Programming Language

Application Frontend Development

  • TypeScript SDK