[
{
"type": "constructor",
"inputs": [
{
"name": "admin",
"type": "address",
"internalType": "address"
},
{
"name": "_orderBook",
"type": "address",
"internalType": "address"
},
{
"name": "_vault",
"type": "address",
"internalType": "address"
},
{
"name": "_outcomeToken",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "DEFAULT_ADMIN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "OPERATOR_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "SETTLE_CHUNK_SIZE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "batchResults",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "marketId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "batchId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "clearingTick",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "matchedLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "totalBidLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "totalAskLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "timestamp",
"type": "uint40",
"internalType": "uint40"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "clearBatch",
"inputs": [
{
"name": "marketId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "result",
"type": "tuple",
"internalType": "struct BatchResult",
"components": [
{
"name": "marketId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "batchId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "clearingTick",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "matchedLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "totalBidLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "totalAskLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "timestamp",
"type": "uint40",
"internalType": "uint40"
}
]
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "feeModel",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract FeeModel"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getBatchResult",
"inputs": [
{
"name": "marketId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "batchId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct BatchResult",
"components": [
{
"name": "marketId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "batchId",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "clearingTick",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "matchedLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "totalBidLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "totalAskLots",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "timestamp",
"type": "uint40",
"internalType": "uint40"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getRoleAdmin",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "grantRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "hasRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isBatchFullySettled",
"inputs": [
{
"name": "marketId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "batchId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "orderBook",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract OrderBook"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "outcomeToken",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract OutcomeToken"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "renounceRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "callerConfirmation",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "revokeRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "settledUpTo",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "vault",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract Vault"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "BatchCleared",
"inputs": [
{
"name": "marketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "batchId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "clearingTick",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "matchedLots",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "GtcAutoCancelled",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OrderSettled",
"inputs": [
{
"name": "orderId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "filledLots",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "collateralReleased",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleAdminChanged",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "previousAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "newAdminRole",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleGranted",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RoleRevoked",
"inputs": [
{
"name": "role",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AccessControlBadConfirmation",
"inputs": []
},
{
"type": "error",
"name": "AccessControlUnauthorizedAccount",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "neededRole",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"type": "error",
"name": "ReentrancyGuardReentrantCall",
"inputs": []
}
]