Links

How to place ERC-1271 (Smart Contract) Orders

The following section is intended as a guide on hot to place Smart Contract orders with ERC-1271.
All the code needed to implement such feature can be found in the following Github: https://github.com/nlordell/dappcon-2022-smart-orders​

Intro

A sample CoW protocol smart order contract.
CoW protocol supports ERC-1271 signatures. While this is typically thought of as a way for Smart Contract wallets to sign things, we can leverage this standard for creating special order types on CoW with custom validation logic.

Overview

  • The Basics
    • CoW Protocol orders: signing of typed data
    • ERC-1271: signature validation standard
  • Smart Contract Wallet Orders
    • Safe: How to trade without gas fees
  • Smart Orders
    • Good After Time Orders
    • Additional Use Cases