{
  "schema": "edition-checkout/2",
  "chainId": 56,
  "address": "0xA8D0cc271b441c9F41797391557952c16c04Ed30",
  "status": "verified",
  "enabled": true,
  "name": "Pocket Press",
  "currency": "BNB",
  "decimals": 18,
  "art": "./art/manifest.json",
  "contract": "./deployment.json",
  "products": [
    {
      "sku": 1,
      "name": {
        "zh-Hant": "摺出八頁",
        "zh-Hans": "折出八页",
        "en": "Fold eight pages"
      },
      "preview": "files/1.webp",
      "download": "files/1.zip",
      "unitWei": "1000000000000000",
      "stock": 16,
      "metadataSha256": "0x29c21f572cb3f6d607ec222d311b76d681d8ff74fbe78eb11ee9c560f9f15bfc"
    },
    {
      "sku": 2,
      "name": {
        "zh-Hant": "定版心與字級",
        "zh-Hans": "定版心与字号",
        "en": "Set type and margins"
      },
      "preview": "files/2.webp",
      "download": "files/2.zip",
      "unitWei": "1000000000000000",
      "stock": 16,
      "metadataSha256": "0xe44ac3c285937b6fe41e1a4cea82c410ef67921f15cc2854ace3a7cf940f787b"
    },
    {
      "sku": 3,
      "name": {
        "zh-Hant": "安排頁序與留白",
        "zh-Hans": "安排页序与留白",
        "en": "Sequence eight pages"
      },
      "preview": "files/3.webp",
      "download": "files/3.zip",
      "unitWei": "1000000000000000",
      "stock": 16,
      "metadataSha256": "0xe909fcc9a9b8915dfacb69234b547609c0666d0a50bd3162d42951c03f001cc3"
    },
    {
      "sku": 4,
      "name": {
        "zh-Hant": "紙色與灰階試印",
        "zh-Hans": "纸色与灰度试印",
        "en": "Proof paper and tone"
      },
      "preview": "files/4.webp",
      "download": "files/4.zip",
      "unitWei": "1000000000000000",
      "stock": 16,
      "metadataSha256": "0x2ccbb2788c4bdbf55af3f88cc7d6e7db55a0ebcf058209b0949718dd90dbaae8"
    },
    {
      "sku": 5,
      "name": {
        "zh-Hant": "折綁與三孔縫",
        "zh-Hans": "折订与三孔线装",
        "en": "Bind three holes"
      },
      "preview": "files/5.webp",
      "download": "files/5.zip",
      "unitWei": "1000000000000000",
      "stock": 16,
      "metadataSha256": "0xd31b3cc6b26c09e88bc861070a72f2c3f89ccaf9497a5d84619a58f7c874e731"
    },
    {
      "sku": 6,
      "name": {
        "zh-Hant": "輸出與最後檢查",
        "zh-Hans": "输出与最后检查",
        "en": "Proof the final export"
      },
      "preview": "files/6.webp",
      "download": "files/6.zip",
      "unitWei": "1000000000000000",
      "stock": 16,
      "metadataSha256": "0xafb4ee413e1472ccf30c60d71d3e7e2a55ea3d64d49849d364626c0289125dec"
    },
    {
      "sku": 101,
      "unitWei": "4200000000000000",
      "includes": [
        1,
        2,
        3,
        4,
        5,
        6
      ]
    }
  ],
  "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",
      "1000000000000000",
      3,
      "<deadline>"
    ],
    "feeMustBeEstimated": true,
    "valueWei": "3500000000000000",
    "expectedQuantity": 3,
    "refundWei": "500000000000000"
  }
}
