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 and Tuples
    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. Forc
    1. 6.1. Manifest Reference
    2. 6.2. Dependencies
    3. 6.3. Commands
      1. 6.3.1. forc addr2line
      2. 6.3.2. forc build
      3. 6.3.3. forc clean
      4. 6.3.4. forc completions
      5. 6.3.5. forc deploy
      6. 6.3.6. forc init
      7. 6.3.7. forc json-abi
      8. 6.3.8. forc parse-bytecode
      9. 6.3.9. forc plugins
      10. 6.3.10. forc run
      11. 6.3.11. forc test
      12. 6.3.12. forc update
      13. 6.3.13. forc template
    4. 6.4. Plugins
      1. 6.4.1. forc explore
      2. 6.4.2. forc fmt
      3. 6.4.3. forc lsp
  8. 7. Testing
    1. 7.1. Testing with Rust
  9. 8. Advanced Concepts
    1. 8.1. Generic Types
    2. 8.2. Traits
    3. 8.3. Trait Constraints
    4. 8.4. Assembly
  10. 9. Application Frontend
    1. 9.1. TypeScript SDK
  11. 10. Reference
    1. 10.1. Style Guide
    2. 10.2. Temporary Workarounds
    3. 10.3. Differences From Solidity
    4. 10.4. Differences From Rust
    5. 10.5. Contributing To Sway

The Sway Programming Language

Here are a list of commands available to forc:

  • forc addr2line
  • forc build
  • forc clean
  • forc completions
  • forc deploy
  • forc init
  • forc json-abi
  • forc parse-bytecode
  • forc plugins
  • forc run
  • forc test
  • forc update
  • forc template