[
 {
  "type": "constructor",
  "inputs": [
   {
    "name": "owner_",
    "type": "address",
    "internalType": "address"
   },
   {
    "name": "feed_",
    "type": "address",
    "internalType": "contract PriceFeed"
   },
   {
    "name": "treasury_",
    "type": "address",
    "internalType": "address"
   },
   {
    "name": "guardian_",
    "type": "address",
    "internalType": "address"
   },
   {
    "name": "p",
    "type": "tuple",
    "internalType": "struct ShortBook.Params",
    "components": [
     {
      "name": "minStake",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "minDeposit",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "bookCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "globalCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "reserveFloor",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "walletCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "oiCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsShort",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsLong",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premBaseBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premSlopeBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "utilCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum1hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum6hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentumCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "withdrawDelay",
      "type": "uint32",
      "internalType": "uint32"
     },
     {
      "name": "minSamples",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "maxGap",
      "type": "uint16",
      "internalType": "uint16"
     }
    ]
   }
  ],
  "stateMutability": "nonpayable"
 },
 {
  "type": "receive",
  "stateMutability": "payable"
 },
 {
  "type": "function",
  "name": "MAX_SLICES",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "ROUND",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "TERM_LONG",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "TERM_SHORT",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "WINDOW",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "books",
  "inputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "totalFree",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "totalLocked",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "openStake",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "head",
    "type": "uint64",
    "internalType": "uint64"
   },
   {
    "name": "tail",
    "type": "uint64",
    "internalType": "uint64"
   },
   {
    "name": "paused",
    "type": "bool",
    "internalType": "bool"
   },
   {
    "name": "pauseEpoch",
    "type": "uint32",
    "internalType": "uint32"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "claim",
  "inputs": [],
  "outputs": [
   {
    "name": "amount",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "claimable",
  "inputs": [
   {
    "name": "",
    "type": "address",
    "internalType": "address"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "deposit",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "id",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "payable"
 },
 {
  "type": "function",
  "name": "feed",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "address",
    "internalType": "contract PriceFeed"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "getBook",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "tuple",
    "internalType": "struct ShortBook.Book",
    "components": [
     {
      "name": "totalFree",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "totalLocked",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "openStake",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "head",
      "type": "uint64",
      "internalType": "uint64"
     },
     {
      "name": "tail",
      "type": "uint64",
      "internalType": "uint64"
     },
     {
      "name": "paused",
      "type": "bool",
      "internalType": "bool"
     },
     {
      "name": "pauseEpoch",
      "type": "uint32",
      "internalType": "uint32"
     }
    ]
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "getParams",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "tuple",
    "internalType": "struct ShortBook.Params",
    "components": [
     {
      "name": "minStake",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "minDeposit",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "bookCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "globalCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "reserveFloor",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "walletCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "oiCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsShort",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsLong",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premBaseBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premSlopeBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "utilCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum1hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum6hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentumCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "withdrawDelay",
      "type": "uint32",
      "internalType": "uint32"
     },
     {
      "name": "minSamples",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "maxGap",
      "type": "uint16",
      "internalType": "uint16"
     }
    ]
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "getPosition",
  "inputs": [
   {
    "name": "id",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "tuple",
    "internalType": "struct ShortBook.Position",
    "components": [
     {
      "name": "owner",
      "type": "address",
      "internalType": "address"
     },
     {
      "name": "market",
      "type": "uint32",
      "internalType": "uint32"
     },
     {
      "name": "depositedAt",
      "type": "uint40",
      "internalType": "uint40"
     },
     {
      "name": "free",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "locked",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "deposited",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "withdrawn",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "prev",
      "type": "uint64",
      "internalType": "uint64"
     },
     {
      "name": "next",
      "type": "uint64",
      "internalType": "uint64"
     },
     {
      "name": "listed",
      "type": "bool",
      "internalType": "bool"
     }
    ]
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "getTicket",
  "inputs": [
   {
    "name": "id",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "tuple",
    "internalType": "struct ShortBook.Ticket",
    "components": [
     {
      "name": "shorter",
      "type": "address",
      "internalType": "address"
     },
     {
      "name": "market",
      "type": "uint32",
      "internalType": "uint32"
     },
     {
      "name": "openedAt",
      "type": "uint40",
      "internalType": "uint40"
     },
     {
      "name": "expiry",
      "type": "uint40",
      "internalType": "uint40"
     },
     {
      "name": "pauseEpoch",
      "type": "uint32",
      "internalType": "uint32"
     },
     {
      "name": "status",
      "type": "uint8",
      "internalType": "enum ShortBook.Status"
     },
     {
      "name": "stake",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "premium",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "fee",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "payout",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "strike",
      "type": "uint256",
      "internalType": "uint256"
     },
     {
      "name": "settlePrice",
      "type": "uint256",
      "internalType": "uint256"
     }
    ]
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "guardian",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "address",
    "internalType": "address"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "momentum",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "r1",
    "type": "int256",
    "internalType": "int256"
   },
   {
    "name": "r6",
    "type": "int256",
    "internalType": "int256"
   },
   {
    "name": "active",
    "type": "bool",
    "internalType": "bool"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "openShort",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "term",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "stake",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "id",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "payable"
 },
 {
  "type": "function",
  "name": "owner",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "address",
    "internalType": "address"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "params",
  "inputs": [],
  "outputs": [
   {
    "name": "minStake",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "minDeposit",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "bookCap",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "globalCap",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "reserveFloor",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "walletCapBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "oiCapBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "feeBpsShort",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "feeBpsLong",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "premBaseBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "premSlopeBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "utilCapBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "momentum1hBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "momentum6hBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "momentumCapBps",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "withdrawDelay",
    "type": "uint32",
    "internalType": "uint32"
   },
   {
    "name": "minSamples",
    "type": "uint16",
    "internalType": "uint16"
   },
   {
    "name": "maxGap",
    "type": "uint16",
    "internalType": "uint16"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "paused",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "bool",
    "internalType": "bool"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "positionCount",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "positions",
  "inputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "owner",
    "type": "address",
    "internalType": "address"
   },
   {
    "name": "market",
    "type": "uint32",
    "internalType": "uint32"
   },
   {
    "name": "depositedAt",
    "type": "uint40",
    "internalType": "uint40"
   },
   {
    "name": "free",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "locked",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "deposited",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "withdrawn",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "prev",
    "type": "uint64",
    "internalType": "uint64"
   },
   {
    "name": "next",
    "type": "uint64",
    "internalType": "uint64"
   },
   {
    "name": "listed",
    "type": "bool",
    "internalType": "bool"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "positionsOf",
  "inputs": [
   {
    "name": "a",
    "type": "address",
    "internalType": "address"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "uint256[]",
    "internalType": "uint256[]"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "quote",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "term",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "stake",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "ok",
    "type": "bool",
    "internalType": "bool"
   },
   {
    "name": "premium",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "fee",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "strike",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "expiry",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "premiumBps",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "renounceOwnership",
  "inputs": [],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "setGuardian",
  "inputs": [
   {
    "name": "g",
    "type": "address",
    "internalType": "address"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "setMarketPaused",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "p",
    "type": "bool",
    "internalType": "bool"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "setParams",
  "inputs": [
   {
    "name": "p",
    "type": "tuple",
    "internalType": "struct ShortBook.Params",
    "components": [
     {
      "name": "minStake",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "minDeposit",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "bookCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "globalCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "reserveFloor",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "walletCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "oiCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsShort",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsLong",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premBaseBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premSlopeBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "utilCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum1hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum6hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentumCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "withdrawDelay",
      "type": "uint32",
      "internalType": "uint32"
     },
     {
      "name": "minSamples",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "maxGap",
      "type": "uint16",
      "internalType": "uint16"
     }
    ]
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "setPaused",
  "inputs": [
   {
    "name": "p",
    "type": "bool",
    "internalType": "bool"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "setTreasury",
  "inputs": [
   {
    "name": "t",
    "type": "address",
    "internalType": "address"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "settle",
  "inputs": [
   {
    "name": "id",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "slicesOf",
  "inputs": [
   {
    "name": "id",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "tuple[]",
    "internalType": "struct ShortBook.Slice[]",
    "components": [
     {
      "name": "position",
      "type": "uint64",
      "internalType": "uint64"
     },
     {
      "name": "amount",
      "type": "uint128",
      "internalType": "uint128"
     }
    ]
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "ticketCount",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "tickets",
  "inputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "shorter",
    "type": "address",
    "internalType": "address"
   },
   {
    "name": "market",
    "type": "uint32",
    "internalType": "uint32"
   },
   {
    "name": "openedAt",
    "type": "uint40",
    "internalType": "uint40"
   },
   {
    "name": "expiry",
    "type": "uint40",
    "internalType": "uint40"
   },
   {
    "name": "pauseEpoch",
    "type": "uint32",
    "internalType": "uint32"
   },
   {
    "name": "status",
    "type": "uint8",
    "internalType": "enum ShortBook.Status"
   },
   {
    "name": "stake",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "premium",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "fee",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "payout",
    "type": "uint128",
    "internalType": "uint128"
   },
   {
    "name": "strike",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "settlePrice",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "ticketsOf",
  "inputs": [
   {
    "name": "a",
    "type": "address",
    "internalType": "address"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "uint256[]",
    "internalType": "uint256[]"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "totalClaimable",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "totalHeld",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "totalTicketEscrow",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "transferOwnership",
  "inputs": [
   {
    "name": "newOwner",
    "type": "address",
    "internalType": "address"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "function",
  "name": "treasury",
  "inputs": [],
  "outputs": [
   {
    "name": "",
    "type": "address",
    "internalType": "address"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "utilisationBps",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "walletOpenStake",
  "inputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "",
    "type": "address",
    "internalType": "address"
   }
  ],
  "outputs": [
   {
    "name": "",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "stateMutability": "view"
 },
 {
  "type": "function",
  "name": "withdraw",
  "inputs": [
   {
    "name": "id",
    "type": "uint256",
    "internalType": "uint256"
   },
   {
    "name": "amount",
    "type": "uint256",
    "internalType": "uint256"
   }
  ],
  "outputs": [],
  "stateMutability": "nonpayable"
 },
 {
  "type": "event",
  "name": "Claimed",
  "inputs": [
   {
    "name": "account",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "amount",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "Deposited",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "position",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "owner",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "amount",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "GuardianSet",
  "inputs": [
   {
    "name": "guardian",
    "type": "address",
    "indexed": false,
    "internalType": "address"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "MarketPaused",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "paused",
    "type": "bool",
    "indexed": false,
    "internalType": "bool"
   },
   {
    "name": "epoch",
    "type": "uint32",
    "indexed": false,
    "internalType": "uint32"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "OwnershipTransferred",
  "inputs": [
   {
    "name": "previousOwner",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "newOwner",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "ParamsSet",
  "inputs": [
   {
    "name": "params",
    "type": "tuple",
    "indexed": false,
    "internalType": "struct ShortBook.Params",
    "components": [
     {
      "name": "minStake",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "minDeposit",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "bookCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "globalCap",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "reserveFloor",
      "type": "uint128",
      "internalType": "uint128"
     },
     {
      "name": "walletCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "oiCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsShort",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "feeBpsLong",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premBaseBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "premSlopeBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "utilCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum1hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentum6hBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "momentumCapBps",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "withdrawDelay",
      "type": "uint32",
      "internalType": "uint32"
     },
     {
      "name": "minSamples",
      "type": "uint16",
      "internalType": "uint16"
     },
     {
      "name": "maxGap",
      "type": "uint16",
      "internalType": "uint16"
     }
    ]
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "Paused",
  "inputs": [
   {
    "name": "paused",
    "type": "bool",
    "indexed": false,
    "internalType": "bool"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "ShortOpened",
  "inputs": [
   {
    "name": "ticket",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "market",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "shorter",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "term",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "stake",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "premium",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "fee",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "strike",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "expiry",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "ShortSettled",
  "inputs": [
   {
    "name": "ticket",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "market",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "shorter",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "settlePrice",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "payout",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "backersReceive",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   },
   {
    "name": "treasuryFee",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "ShortVoided",
  "inputs": [
   {
    "name": "ticket",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "market",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "shorter",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "reason",
    "type": "uint8",
    "indexed": false,
    "internalType": "uint8"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "SliceLocked",
  "inputs": [
   {
    "name": "ticket",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "position",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "amount",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "SliceReleased",
  "inputs": [
   {
    "name": "ticket",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "position",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "credited",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "TreasurySet",
  "inputs": [
   {
    "name": "treasury",
    "type": "address",
    "indexed": false,
    "internalType": "address"
   }
  ],
  "anonymous": false
 },
 {
  "type": "event",
  "name": "Withdrawn",
  "inputs": [
   {
    "name": "market",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "position",
    "type": "uint256",
    "indexed": true,
    "internalType": "uint256"
   },
   {
    "name": "owner",
    "type": "address",
    "indexed": true,
    "internalType": "address"
   },
   {
    "name": "amount",
    "type": "uint256",
    "indexed": false,
    "internalType": "uint256"
   }
  ],
  "anonymous": false
 },
 {
  "type": "error",
  "name": "BadParams",
  "inputs": []
 },
 {
  "type": "error",
  "name": "BadTerm",
  "inputs": []
 },
 {
  "type": "error",
  "name": "BelowMin",
  "inputs": []
 },
 {
  "type": "error",
  "name": "CapExceeded",
  "inputs": []
 },
 {
  "type": "error",
  "name": "IsPaused",
  "inputs": []
 },
 {
  "type": "error",
  "name": "NotEnoughBackers",
  "inputs": []
 },
 {
  "type": "error",
  "name": "NotGuardian",
  "inputs": []
 },
 {
  "type": "error",
  "name": "NotListed",
  "inputs": []
 },
 {
  "type": "error",
  "name": "NotOpen",
  "inputs": []
 },
 {
  "type": "error",
  "name": "NotOwner",
  "inputs": []
 },
 {
  "type": "error",
  "name": "OwnableInvalidOwner",
  "inputs": [
   {
    "name": "owner",
    "type": "address",
    "internalType": "address"
   }
  ]
 },
 {
  "type": "error",
  "name": "OwnableUnauthorizedAccount",
  "inputs": [
   {
    "name": "account",
    "type": "address",
    "internalType": "address"
   }
  ]
 },
 {
  "type": "error",
  "name": "PriceNotReady",
  "inputs": []
 },
 {
  "type": "error",
  "name": "ReentrancyGuardReentrantCall",
  "inputs": []
 },
 {
  "type": "error",
  "name": "ReserveTooLow",
  "inputs": []
 },
 {
  "type": "error",
  "name": "TooEarly",
  "inputs": []
 },
 {
  "type": "error",
  "name": "TooMuch",
  "inputs": []
 },
 {
  "type": "error",
  "name": "TransferFailed",
  "inputs": []
 },
 {
  "type": "error",
  "name": "Underpaid",
  "inputs": []
 },
 {
  "type": "error",
  "name": "ZeroAddress",
  "inputs": []
 }
]
