KotanKotan
Docs

Deposit Wallet onboarding

A step-by-step breakdown of what Kotan does while deploying the Deposit Wallet and setting up Polymarket trading.

Back to docs

Account setup flow

Follow these steps to prepare your account for Polymarket trading. Setup does not place an order, and the last two steps are optional.

  1. 1

    Create your Deposit Wallet

    Kotan deploys the on-chain wallet that holds your funds and Polymarket positions. If your wallet is already deployed and verified, it is reused.

  2. 2

    Approve Polymarket

    An on-chain transaction grants the Polymarket contracts the token permissions needed to trade. These approvals are granted to Polymarket, not Kotan; review the risks below.

  3. 3

    Create your API key

    Sign a wallet message to create or recover your Polymarket API key. The credentials are encrypted on Kotan's backend. This step does not need an on-chain transaction.

  4. 4

    Enable trading

    Authorize Kotan's Polymarket trading policy and sign a message to enable trading in this browser for up to 14 days. Follow any wallet signing or MFA prompts. No order is placed during setup.

  5. 5

    Enable 2FA (optional)

    Privy opens its two-factor authentication prompt. Complete enrollment to enable 2FA, or choose Not Now to continue without it.

  6. 6

    Link Telegram (optional)

    Link your Telegram account when prompted, or skip this step and finish setup without linking it.

Approval risk and bounty coverage

Setup grants seven Polymarket contracts unlimited pUSD allowances, not allowances to Kotan. Five of those contracts also receive operator permission over CTF outcome tokens; ExchangeV3 receives operator permission over PositionManager positions. Operator permission lets the approved contract move any tokens held by the Deposit Wallet on that token contract. A buggy or compromised approved contract can therefore expose your funds or positions.

Coverage check as of October 27, 2026: all seven approval recipients, plus the underlying pUSD and PositionManager token contracts, are listed by exact address in the Cantina bug bounty scope. Each row links to its scope tier. Listed does not mean every vulnerability is eligible or that funds are insured; Cantina's exclusions, known issues, and tier rules still apply. Coverage is unconfirmed wherever an exact-address listing cannot be verified. See also Polymarket's contract docs.

Setup does not grant AutoRedeemer or legacy CtfAutoRedeem permission. CollateralOnramp and CollateralOfframp approvals are for exact amounts within deposit or withdrawal batches, not standing setup allowances. Router operator permission, when needed for Protocol V2 redemption, is included in the user-signed redemption batch rather than onboarding. The PositionManager and pUSD rows below disclose underlying token risk; they are not additional approval recipients.

  • Approval
    pUSD spender and PositionManager operator
    Risk
    Can transfer pUSD and Protocol V2 positions for matched orders. ExchangeV3 and PositionManager are upgradeable contracts; their upgrade authorities are part of the trust model. Optional AutoRedeemer permission is not granted by trading setup.
    Bounty check
    Exact address listed in the Cantina bounty as Exchange (the contract Kotan calls ExchangeV3). View Cantina scope
  • Conditional Tokens (CTF)

    Non-Upgradeable
    0x4D97DCd97eC945f40cF65F87097ACe5EA0476045
    Listed
    Approval
    pUSD spender
    Risk
    Can receive approved pUSD through CTF split, merge, and redemption paths. A contract bug could affect collateral accounting.
    Bounty check
    Listed in the Cantina bounty as ConditionalTokens. The scope says third-party CTF bugs are covered only when they arise from Polymarket integration patterns. View Cantina scope
  • Listed
    Approval
    pUSD spender and CTF operator
    Risk
    Can transfer pUSD and CTF positions as part of matched standard-market orders.
    Bounty check
    Listed in the Cantina bounty as CTFExchangeV2. View Cantina scope
  • Neg Risk CTF Exchange

    Non-Upgradeable
    0xe2222d279d744050d28e00520010520000310F59
    Listed
    Approval
    pUSD spender and CTF operator
    Risk
    Can transfer pUSD and CTF positions as part of matched negative-risk orders.
    Bounty check
    Listed in the Cantina bounty as NegRiskCtfExchangeV2. View Cantina scope
  • Neg Risk Adapter

    Non-Upgradeable
    0xd91E80cF2E7be2e162c6513ceD06f1dD0dA35296
    Listed
    Approval
    pUSD spender and CTF operator
    Risk
    Can transfer pUSD and CTF positions while adapting negative-risk market collateral flows. The CTF operator role is required so the adapter can split and merge ERC-1155 outcome tokens on the Deposit Wallet's behalf during neg-risk market conversions.
    Bounty check
    Listed in the Cantina bounty as NegRiskAdapter. View Cantina scope
  • CtfCollateralAdapter

    Non-Upgradeable
    0xAdA100Db00Ca00073811820692005400218FcE1f
    Listed
    Approval
    pUSD spender and CTF operator
    Risk
    Can move pUSD and CTF positions while bridging standard markets into the pUSD collateral layer.
    Bounty check
    Exact address listed in the Cantina bounty as CtfCollateralAdapter 2. View Cantina scope
  • NegRiskCtfCollateralAdapter

    Non-Upgradeable
    0xadA2005600Dec949baf300f4C6120000bDB6eAab
    Listed
    Approval
    pUSD spender and CTF operator
    Risk
    Can move pUSD and CTF positions while bridging negative-risk markets into the pUSD collateral layer.
    Bounty check
    Exact address listed in the Cantina bounty as NegRiskCtfCollateralAdapter 2. View Cantina scope
  • Approval
    Underlying Protocol V2 position token contract, not an approval recipient. Setup calls setApprovalForAll here to grant ExchangeV3 operator permission.
    Risk
    ExchangeV3 can move Protocol V2 positions held by the Deposit Wallet. PositionManager's implementation and upgrade authority are also part of the position-token trust model.
    Bounty check
    Exact address listed in the Cantina bounty as PositionManager. View Cantina scope
  • Approval
    Underlying collateral token held by the Deposit Wallet. Not granted approval directly; instead it is the asset that Polymarket spenders are approved to move.
    Risk
    pUSD is an upgradeable token contract. A malicious or compromised upgrade could affect all pUSD balances held by the Deposit Wallet, independent of the per-spender approvals listed above.
    Bounty check
    Exact address listed in the Cantina bounty as CollateralToken / pUSD proxy. Both proxy and implementation are in scope. View Cantina scope

Privy policy references

Current policy template (v6)

This template mirrors the backend's v6 Privy policy: Polymarket L1 credential derivation, CTF exchange order signing (domain 2), and ExchangeV3 order signing (domain 3), all on Polygon (chain 137). The policy name uses the owner's lowercase wallet address; Privy assigns policy and rule IDs, and ownership is set to the authenticated user during creation. Those user-specific values are not shown here. This is not a live read of any user's installed policy.

The v6 Privy policy does not include a builder-code condition. The backend separately validates builder IDs, the exact domain name/version/exchange combination, the wallet binding, and the browser-authorized trading scope before signing.

View v6 policy template JSON
{
  "version": "1.0",
  "name": "pm-v6-<lowercase-owner-wallet-address>",
  "chain_type": "ethereum",
  "rules": [
    {
      "name": "Polymarket L1 credential derivation",
      "method": "eth_signTypedData_v4",
      "action": "ALLOW",
      "conditions": [
        {
          "field_source": "ethereum_typed_data_domain",
          "field": "chainId",
          "operator": "eq",
          "value": "137"
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "message",
          "operator": "eq",
          "value": "This message attests that I control the given wallet",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                }
              ],
              "ClobAuth": [
                {
                  "name": "address",
                  "type": "address"
                },
                {
                  "name": "timestamp",
                  "type": "string"
                },
                {
                  "name": "nonce",
                  "type": "uint256"
                },
                {
                  "name": "message",
                  "type": "string"
                }
              ]
            },
            "primary_type": "ClobAuth"
          }
        }
      ]
    },
    {
      "name": "Polymarket DepositWallet order signing domain 2",
      "method": "eth_signTypedData_v4",
      "action": "ALLOW",
      "conditions": [
        {
          "field_source": "ethereum_typed_data_domain",
          "field": "chainId",
          "operator": "eq",
          "value": "137"
        },
        {
          "field_source": "ethereum_typed_data_domain",
          "field": "verifyingContract",
          "operator": "in",
          "value": [
            "0xE111180000d2663C0091e4f400237545B87B996B",
            "0xe2222d279d744050d28e00520010520000310F59"
          ]
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "contents.signatureType",
          "operator": "eq",
          "value": "3",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "name",
          "operator": "eq",
          "value": "DepositWallet",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "version",
          "operator": "eq",
          "value": "1",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "chainId",
          "operator": "eq",
          "value": "137",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "salt",
          "operator": "eq",
          "value": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        }
      ]
    },
    {
      "name": "Polymarket DepositWallet order signing domain 3",
      "method": "eth_signTypedData_v4",
      "action": "ALLOW",
      "conditions": [
        {
          "field_source": "ethereum_typed_data_domain",
          "field": "chainId",
          "operator": "eq",
          "value": "137"
        },
        {
          "field_source": "ethereum_typed_data_domain",
          "field": "verifyingContract",
          "operator": "in",
          "value": [
            "0xe3333700cA9d93003F00f0F71f8515005F6c00Aa"
          ]
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "contents.signatureType",
          "operator": "eq",
          "value": "3",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "name",
          "operator": "eq",
          "value": "DepositWallet",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "version",
          "operator": "eq",
          "value": "1",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "chainId",
          "operator": "eq",
          "value": "137",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        },
        {
          "field_source": "ethereum_typed_data_message",
          "field": "salt",
          "operator": "eq",
          "value": "0x0000000000000000000000000000000000000000000000000000000000000000",
          "typed_data": {
            "types": {
              "EIP712Domain": [
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                }
              ],
              "Order": [
                {
                  "name": "salt",
                  "type": "uint256"
                },
                {
                  "name": "maker",
                  "type": "address"
                },
                {
                  "name": "signer",
                  "type": "address"
                },
                {
                  "name": "tokenId",
                  "type": "uint256"
                },
                {
                  "name": "makerAmount",
                  "type": "uint256"
                },
                {
                  "name": "takerAmount",
                  "type": "uint256"
                },
                {
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "name": "signatureType",
                  "type": "uint8"
                },
                {
                  "name": "timestamp",
                  "type": "uint256"
                },
                {
                  "name": "metadata",
                  "type": "bytes32"
                },
                {
                  "name": "builder",
                  "type": "bytes32"
                }
              ],
              "TypedDataSign": [
                {
                  "name": "contents",
                  "type": "Order"
                },
                {
                  "name": "name",
                  "type": "string"
                },
                {
                  "name": "version",
                  "type": "string"
                },
                {
                  "name": "chainId",
                  "type": "uint256"
                },
                {
                  "name": "verifyingContract",
                  "type": "address"
                },
                {
                  "name": "salt",
                  "type": "bytes32"
                }
              ]
            },
            "primary_type": "TypedDataSign"
          }
        }
      ]
    }
  ]
}

Become a Ninja

Open Kotan in your browser or Telegram.