[
{
"type": "constructor",
"inputs": [
{
"name": "admin",
"type": "address",
"internalType": "address"
},
{
"name": "_orderBook",
"type": "address",
"internalType": "address"
},
{
"name": "_outcomeToken",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "ADMIN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "DEFAULT_ADMIN_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MARKET_CREATOR_ROLE",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "activeMarkets",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "cancelMarket",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "closeMarket",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "closedMarkets",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "createMarket",
"inputs": [
{
"name": "priceId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "strikePrice",
"type": "int64",
"internalType": "int64"
},
{
"name": "expiryTime",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "batchInterval",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minLots",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createMarketWithPositions",
"inputs": [
{
"name": "priceId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "strikePrice",
"type": "int64",
"internalType": "int64"
},
{
"name": "expiryTime",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "batchInterval",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minLots",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "defaultBatchInterval",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "defaultMinLots",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint128",
"internalType": "uint128"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getActiveMarketCount",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getClosedMarketCount",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getMarketState",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "enum MarketState"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getResolvedMarketCount",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"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": "marketMeta",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "priceId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "strikePrice",
"type": "int64",
"internalType": "int64"
},
{
"name": "expiryTime",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "creator",
"type": "address",
"internalType": "address"
},
{
"name": "state",
"type": "uint8",
"internalType": "enum MarketState"
},
{
"name": "outcomeYes",
"type": "bool",
"internalType": "bool"
},
{
"name": "settlementPrice",
"type": "int64",
"internalType": "int64"
},
{
"name": "orderBookMarketId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "useInternalPositions",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "nextFactoryMarketId",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"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": "pauseFactory",
"inputs": [
{
"name": "_paused",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "paused",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"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": "resolvedMarkets",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "revokeRole",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setDefaultParams",
"inputs": [
{
"name": "_batchInterval",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_minLots",
"type": "uint128",
"internalType": "uint128"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setResolved",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "outcomeYes",
"type": "bool",
"internalType": "bool"
},
{
"name": "settlementPrice",
"type": "int64",
"internalType": "int64"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setResolving",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "DefaultParamsUpdated",
"inputs": [
{
"name": "batchInterval",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "minLots",
"type": "uint128",
"indexed": false,
"internalType": "uint128"
}
],
"anonymous": false
},
{
"type": "event",
"name": "FactoryPaused",
"inputs": [
{
"name": "paused",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "event",
"name": "MarketClosed",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "MarketCreated",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "orderBookMarketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "priceId",
"type": "bytes32",
"indexed": false,
"internalType": "bytes32"
},
{
"name": "strikePrice",
"type": "int64",
"indexed": false,
"internalType": "int64"
},
{
"name": "expiryTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "creator",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "MarketStateChanged",
"inputs": [
{
"name": "factoryMarketId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "newState",
"type": "uint8",
"indexed": false,
"internalType": "enum MarketState"
}
],
"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": []
}
]