{
  "_format": "hh-sol-artifact-1",
  "contractName": "IMarketHubEntryOnly",
  "sourceName": "contracts/interfaces/IMarketHub.sol",
  "abi": [
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "user",
          "type": "bytes26"
        },
        {
          "components": [
            {
              "internalType": "MarketId",
              "name": "marketId",
              "type": "uint24"
            },
            {
              "components": [
                {
                  "internalType": "enum TimeInForce",
                  "name": "tif",
                  "type": "uint8"
                },
                {
                  "internalType": "enum Side",
                  "name": "side",
                  "type": "uint8"
                },
                {
                  "internalType": "uint256[]",
                  "name": "sizes",
                  "type": "uint256[]"
                },
                {
                  "internalType": "int16[]",
                  "name": "limitTicks",
                  "type": "int16[]"
                }
              ],
              "internalType": "struct LongShort",
              "name": "orders",
              "type": "tuple"
            },
            {
              "components": [
                {
                  "internalType": "OrderId[]",
                  "name": "ids",
                  "type": "uint64[]"
                },
                {
                  "internalType": "bool",
                  "name": "isAll",
                  "type": "bool"
                },
                {
                  "internalType": "bool",
                  "name": "isStrict",
                  "type": "bool"
                }
              ],
              "internalType": "struct CancelData",
              "name": "cancelData",
              "type": "tuple"
            }
          ],
          "internalType": "struct BulkOrder[]",
          "name": "bulks",
          "type": "tuple[]"
        }
      ],
      "name": "bulkOrders",
      "outputs": [
        {
          "components": [
            {
              "internalType": "Trade",
              "name": "matched",
              "type": "uint256"
            },
            {
              "internalType": "uint256",
              "name": "takerFee",
              "type": "uint256"
            }
          ],
          "internalType": "struct BulkOrderResult[]",
          "name": "results",
          "type": "tuple[]"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketId",
          "name": "marketId",
          "type": "uint24"
        },
        {
          "internalType": "MarketAcc",
          "name": "user",
          "type": "bytes26"
        },
        {
          "components": [
            {
              "internalType": "OrderId[]",
              "name": "ids",
              "type": "uint64[]"
            },
            {
              "internalType": "bool",
              "name": "isAll",
              "type": "bool"
            },
            {
              "internalType": "bool",
              "name": "isStrict",
              "type": "bool"
            }
          ],
          "internalType": "struct CancelData",
          "name": "cancelData",
          "type": "tuple"
        }
      ],
      "name": "cancel",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "root",
          "type": "address"
        },
        {
          "internalType": "TokenId",
          "name": "tokenId",
          "type": "uint16"
        }
      ],
      "name": "cancelVaultWithdrawal",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "from",
          "type": "bytes26"
        },
        {
          "internalType": "MarketAcc",
          "name": "to",
          "type": "bytes26"
        },
        {
          "internalType": "int256",
          "name": "amount",
          "type": "int256"
        }
      ],
      "name": "cashTransfer",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "from",
          "type": "bytes26"
        },
        {
          "internalType": "MarketAcc",
          "name": "to",
          "type": "bytes26"
        }
      ],
      "name": "cashTransferAll",
      "outputs": [
        {
          "internalType": "int256",
          "name": "amountOut",
          "type": "int256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "user",
          "type": "bytes26"
        },
        {
          "internalType": "MarketId",
          "name": "marketId",
          "type": "uint24"
        }
      ],
      "name": "enterMarket",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "user",
          "type": "bytes26"
        },
        {
          "internalType": "MarketId",
          "name": "marketId",
          "type": "uint24"
        }
      ],
      "name": "exitMarket",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "root",
          "type": "address"
        },
        {
          "internalType": "TokenId",
          "name": "tokenId",
          "type": "uint16"
        }
      ],
      "name": "finalizeVaultWithdrawal",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "uint32",
          "name": "globalCooldown",
          "type": "uint32"
        }
      ],
      "name": "initialize",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketId",
          "name": "marketId",
          "type": "uint24"
        },
        {
          "internalType": "MarketAcc",
          "name": "liq",
          "type": "bytes26"
        },
        {
          "internalType": "MarketAcc",
          "name": "vio",
          "type": "bytes26"
        },
        {
          "internalType": "int256",
          "name": "sizeToLiq",
          "type": "int256"
        }
      ],
      "name": "liquidate",
      "outputs": [
        {
          "internalType": "Trade",
          "name": "liqTrade",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "liqFee",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketId",
          "name": "marketId",
          "type": "uint24"
        },
        {
          "internalType": "MarketAcc",
          "name": "user",
          "type": "bytes26"
        },
        {
          "components": [
            {
              "internalType": "enum TimeInForce",
              "name": "tif",
              "type": "uint8"
            },
            {
              "internalType": "enum Side",
              "name": "side",
              "type": "uint8"
            },
            {
              "internalType": "uint256[]",
              "name": "sizes",
              "type": "uint256[]"
            },
            {
              "internalType": "int16[]",
              "name": "limitTicks",
              "type": "int16[]"
            }
          ],
          "internalType": "struct LongShort",
          "name": "orders",
          "type": "tuple"
        },
        {
          "components": [
            {
              "internalType": "OrderId[]",
              "name": "ids",
              "type": "uint64[]"
            },
            {
              "internalType": "bool",
              "name": "isAll",
              "type": "bool"
            },
            {
              "internalType": "bool",
              "name": "isStrict",
              "type": "bool"
            }
          ],
          "internalType": "struct CancelData",
          "name": "cancelData",
          "type": "tuple"
        },
        {
          "components": [
            {
              "internalType": "MarketAcc",
              "name": "counter",
              "type": "bytes26"
            },
            {
              "internalType": "Trade",
              "name": "trade",
              "type": "uint256"
            },
            {
              "internalType": "int256",
              "name": "cashToCounter",
              "type": "int256"
            }
          ],
          "internalType": "struct OTCTrade[]",
          "name": "OTCs",
          "type": "tuple[]"
        }
      ],
      "name": "orderAndOtc",
      "outputs": [
        {
          "internalType": "Trade",
          "name": "bookMatched",
          "type": "uint256"
        },
        {
          "internalType": "uint256",
          "name": "totalTakerOtcFee",
          "type": "uint256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "user",
          "type": "bytes26"
        },
        {
          "internalType": "uint256",
          "name": "amount",
          "type": "uint256"
        }
      ],
      "name": "payTreasury",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "root",
          "type": "address"
        },
        {
          "internalType": "TokenId",
          "name": "tokenId",
          "type": "uint16"
        },
        {
          "internalType": "uint256",
          "name": "unscaledAmount",
          "type": "uint256"
        }
      ],
      "name": "requestVaultWithdrawal",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "user",
          "type": "bytes26"
        },
        {
          "internalType": "enum GetRequest",
          "name": "req",
          "type": "uint8"
        },
        {
          "internalType": "MarketId",
          "name": "marketId",
          "type": "uint24"
        }
      ],
      "name": "settleAllAndGet",
      "outputs": [
        {
          "internalType": "int256",
          "name": "cash",
          "type": "int256"
        },
        {
          "internalType": "VMResult",
          "name": "totalVM",
          "type": "uint256"
        },
        {
          "internalType": "int256",
          "name": "signedSize",
          "type": "int256"
        }
      ],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "acc",
          "type": "bytes26"
        },
        {
          "internalType": "int256",
          "name": "amount",
          "type": "int256"
        }
      ],
      "name": "simulateTransfer",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "MarketAcc",
          "name": "acc",
          "type": "bytes26"
        },
        {
          "internalType": "uint256",
          "name": "unscaledAmount",
          "type": "uint256"
        }
      ],
      "name": "vaultDeposit",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "inputs": [
        {
          "internalType": "address",
          "name": "root",
          "type": "address"
        },
        {
          "internalType": "TokenId",
          "name": "tokenId",
          "type": "uint16"
        },
        {
          "internalType": "uint256",
          "name": "unscaled",
          "type": "uint256"
        }
      ],
      "name": "vaultPayTreasury",
      "outputs": [],
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "bytecode": "0x",
  "deployedBytecode": "0x",
  "linkReferences": {},
  "deployedLinkReferences": {}
}
