Sail
  • Sail Suite
    • Sail Products
  • SailorSwap
    • Overview
      • Depositors
      • Swappers
    • Creating a Pool
    • Depositing
    • Swapping
      • Fees
    • Claiming
    • Withdrawing
  • Blackbeard
    • Overview
    • Getting Started
      • Generate Blackbeard Wallet
      • Deposit and Withdraw
    • Creating an Order
    • Managing Orders
    • Manage Purchased NFTs
  • Sail Protocol
    • Sail Protocol
      • Ships, Captains, and Sailors
      • Fees
      • Background
    • Captains
      • Overview
      • Launching a Ship
      • Buying NFTs
      • Listing NFTs
    • Ships
      • $SHIP Token (Deprecated)
      • Boarding Pass NFT
      • Lifecycle of a Ship
        • Building
        • Sailing
        • Docked
        • Abandoned
    • Sailors
      • Overview
      • Contributing ETH
      • Claiming ETH
      • Veto Listings
      • Propose and Vote on Listings (Coming Soon)
    • Smart Contracts
      • Sail Contract Architecture
      • Ship Module
      • Specific Contracts
      • Zodiac Modules
      • Third Party Contracts
      • Interfaces
      • Audit
  • Legal
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  1. Sail Protocol
  2. Smart Contracts

Sail Contract Architecture

Leveraging existing systems and building with modularity in mind.

PreviousSmart ContractsNextShip Module

Last updated 2 years ago

The most important contract to recognize in the repo is the Ship Module contract. All logic is contained in this contract for each ship. They are separated in the repo to ensure clarity and add specific functions to the Gnosis Zodiac ecosystem.

image

Smart contracts developed for Sail can be broken into the following categories:

Sail Specific Contracts - these contracts are built for Sail but do not follow the Zodiac module requirements.

Gnosis Zodiac Modules - these contracts are built for specific functions within Sail and do follow the Zodiac module requirements.

Contract Interfaces - these interfaces act as a logic check as contracts compile.

Third Party Integrations - Sail interacts with third party smart contracts such as OpenSea's SeaPort to facilitate the needs of ships and their crew.

The Ship Module stands alone in it's importance and complexity, so it gets its own section.