{
  "schema": "edition-checkout/2",
  "chainId": 56,
  "address": "0xEDe694b49DE6BC274D79B4a35a2DE95c0148a2d1",
  "status": "verified",
  "enabled": true,
  "name": "Last Train to the Sea",
  "currency": "BNB",
  "decimals": 18,
  "art": "./art/manifest.json",
  "contract": "./deployment.json",
  "products": [
    {
      "sku": 1,
      "name": {
        "zh-Hant": "留下｜留聲的候車室",
        "zh-Hans": "留下｜留声的候车室",
        "en": "Stay | The Waiting Room"
      },
      "preview": "files/1.webp",
      "download": "files/1.zip",
      "unitWei": "2700000000000000",
      "stock": 16,
      "metadataSha256": "0xf9ed6f0c851fd3ecdc742b237215101de58241aba241aa70af2203466e941728"
    },
    {
      "sku": 2,
      "name": {
        "zh-Hant": "離開｜兩次日出",
        "zh-Hans": "离开｜两次日出",
        "en": "Leave | Two Sunrises"
      },
      "preview": "files/2.webp",
      "download": "files/2.zip",
      "unitWei": "2700000000000000",
      "stock": 16,
      "metadataSha256": "0xe2a66b131f7b8e0c2d53634ff0183233b77855f766e439e50980b7725e58879e"
    },
    {
      "sku": 101,
      "unitWei": "4600000000000000",
      "includes": [
        1,
        2
      ],
      "download": "files/101.zip"
    }
  ],
  "options": "0x",
  "maxItemsPerTransaction": 8,
  "nakedTransfer": false,
  "defaultSKU": null,
  "checkout": [
    {
      "type": "function",
      "name": "claimRefund",
      "inputs": [
        {
          "name": "recipient",
          "type": "address",
          "internalType": "address payable"
        }
      ],
      "outputs": [],
      "stateMutability": "nonpayable"
    },
    {
      "type": "function",
      "name": "mint",
      "inputs": [],
      "outputs": [
        {
          "name": "tokenIds",
          "type": "uint256[]",
          "internalType": "uint256[]"
        }
      ],
      "stateMutability": "payable"
    },
    {
      "type": "function",
      "name": "mint",
      "inputs": [
        {
          "name": "sku",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "quantity",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "tokenIds",
          "type": "uint256[]",
          "internalType": "uint256[]"
        }
      ],
      "stateMutability": "payable"
    },
    {
      "type": "function",
      "name": "purchase",
      "inputs": [
        {
          "name": "sku",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "quantity",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "recipient",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "options",
          "type": "bytes",
          "internalType": "bytes"
        },
        {
          "name": "maxUnitPrice",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "deadline",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "tokenIds",
          "type": "uint256[]",
          "internalType": "uint256[]"
        }
      ],
      "stateMutability": "payable"
    },
    {
      "type": "function",
      "name": "purchaseByBudget",
      "inputs": [
        {
          "name": "sku",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "recipient",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "options",
          "type": "bytes",
          "internalType": "bytes"
        },
        {
          "name": "maxUnitPrice",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "minQuantity",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "deadline",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "tokenIds",
          "type": "uint256[]",
          "internalType": "uint256[]"
        }
      ],
      "stateMutability": "payable"
    },
    {
      "type": "function",
      "name": "purchaseCart",
      "inputs": [
        {
          "name": "lines",
          "type": "tuple[]",
          "internalType": "struct EditionDesk.Line[]",
          "components": [
            {
              "name": "sku",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "quantity",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "maxUnitPrice",
              "type": "uint256",
              "internalType": "uint256"
            }
          ]
        },
        {
          "name": "recipient",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "maxTotal",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "deadline",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "tokenIds",
          "type": "uint256[]",
          "internalType": "uint256[]"
        }
      ],
      "stateMutability": "payable"
    },
    {
      "type": "function",
      "name": "quote",
      "inputs": [
        {
          "name": "",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "sku",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "quantity",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "unit",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "total",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "available",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "quoteBudget",
      "inputs": [
        {
          "name": "buyer",
          "type": "address",
          "internalType": "address"
        },
        {
          "name": "sku",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "budget",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "unit",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "quantity",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "paidWei",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "refundWei",
          "type": "uint256",
          "internalType": "uint256"
        },
        {
          "name": "available",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "quoteCart",
      "inputs": [
        {
          "name": "lines",
          "type": "tuple[]",
          "internalType": "struct EditionDesk.Line[]",
          "components": [
            {
              "name": "sku",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "quantity",
              "type": "uint256",
              "internalType": "uint256"
            },
            {
              "name": "maxUnitPrice",
              "type": "uint256",
              "internalType": "uint256"
            }
          ]
        }
      ],
      "outputs": [
        {
          "name": "total",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "refundCredit",
      "inputs": [
        {
          "name": "buyer",
          "type": "address",
          "internalType": "address"
        }
      ],
      "outputs": [
        {
          "name": "weiAmount",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "remaining",
      "inputs": [
        {
          "name": "sku",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "outputs": [
        {
          "name": "available",
          "type": "uint256",
          "internalType": "uint256"
        }
      ],
      "stateMutability": "view"
    },
    {
      "type": "function",
      "name": "saleActive",
      "inputs": [],
      "outputs": [
        {
          "name": "",
          "type": "bool",
          "internalType": "bool"
        }
      ],
      "stateMutability": "view"
    }
  ],
  "events": [
    {
      "type": "event",
      "name": "GalleryPurchase",
      "inputs": [
        {
          "name": "buyer",
          "type": "address",
          "indexed": true,
          "internalType": "address"
        },
        {
          "name": "recipient",
          "type": "address",
          "indexed": true,
          "internalType": "address"
        },
        {
          "name": "skus",
          "type": "uint256[]",
          "indexed": false,
          "internalType": "uint256[]"
        },
        {
          "name": "tokenIds",
          "type": "uint256[]",
          "indexed": false,
          "internalType": "uint256[]"
        },
        {
          "name": "paidWei",
          "type": "uint256",
          "indexed": false,
          "internalType": "uint256"
        }
      ],
      "anonymous": false
    },
    {
      "type": "event",
      "name": "RefundClaimed",
      "inputs": [
        {
          "name": "buyer",
          "type": "address",
          "indexed": true,
          "internalType": "address"
        },
        {
          "name": "recipient",
          "type": "address",
          "indexed": true,
          "internalType": "address"
        },
        {
          "name": "amount",
          "type": "uint256",
          "indexed": false,
          "internalType": "uint256"
        }
      ],
      "anonymous": false
    },
    {
      "type": "event",
      "name": "RefundCredited",
      "inputs": [
        {
          "name": "buyer",
          "type": "address",
          "indexed": true,
          "internalType": "address"
        },
        {
          "name": "amount",
          "type": "uint256",
          "indexed": false,
          "internalType": "uint256"
        }
      ],
      "anonymous": false
    }
  ],
  "example": {
    "function": "purchaseByBudget",
    "args": [
      1,
      "<recipient>",
      "0x",
      "2700000000000000",
      3,
      "<deadline>"
    ],
    "feeMustBeEstimated": true,
    "valueWei": "9450000000000000",
    "expectedQuantity": 3,
    "refundWei": "1350000000000000"
  }
}
