Swaplace
  • About Swaplace
    • Manifesto
    • Overview
    • Roadmap
    • Tokenomics (🚧)
    • Start swaping with Swaplace
    • Marketplace
    • Call for contributors
      • ✧ How to start
      • ✧ Incentives
    • Community & Links
  • Developers
    • Guides
      • ✧ Overview
      • ✧ Setting up your local environment
      • ✧ Preparing
        • Encode config
        • Encode ERC1155 Asset
        • Make Swap
      • ✧ Creating
        • ERC20/ERC721
        • ERC1155
        • Native Ether
      • ✧ Accepting
      • ✧ Canceling
    • Technical Reference
      • ✧ Overview
      • ✧ Swaplace
      • ✧ SwapFactory
      • ✧ Interfaces
        • ✧ IERC165
        • ✧ IErrors
        • ✧ ISwap
        • ✧ ISwapFactory
        • ✧ ISwaplace
    • Deployments
Powered by GitBook
On this page
  • Asset{ }
  • Swap{ }
  1. Developers
  2. Technical Reference
  3. ✧ Interfaces

✧ ISwap

Previous✧ IErrorsNext✧ ISwapFactory

Last updated 12 months ago

Interface for the Swap Struct, used in the {Swaplace} implementation.

Asset{ }

struct Asset {
  address addr;
  uint256 amountOrId;
}

Swap{ }

struct Swap {
  address owner;
  uint256 config;
  struct ISwap.Asset[] biding;
  struct ISwap.Asset[] asking;
}
Source Code