[
{
"type": "constructor",
"inputs": [
{
"name": "_ctf",
"type": "address",
"internalType": "address"
},
{
"name": "_pyth",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"name": "AccessControlBadConfirmation",
"type": "error",
"inputs": []
},
{
"name": "AccessControlUnauthorizedAccount",
"type": "error",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "neededRole",
"type": "bytes32",
"internalType": "bytes32"
}
]
},
{
"name": "AlreadyInitialized",
"type": "error",
"inputs": []
},
{
"name": "DeadlineNotPassed",
"type": "error",
"inputs": []
},
{
"name": "Flagged",
"type": "error",
"inputs": []
},
{
"name": "InvalidDeadline",
"type": "error",
"inputs": []
},
{
"name": "InvalidExpo",
"type": "error",
"inputs": []
},
{
"name": "InvalidPayouts",
"type": "error",
"inputs": []
},
{
"name": "InvalidPayoutsPrice",
"type": "error",
"inputs": []
},
{
"name": "InvalidPrice",
"type": "error",
"inputs": []
},
{
"name": "InvalidPriceFeed",
"type": "error",
"inputs": []
},
{
"name": "NotFlagged",
"type": "error",
"inputs": []
},
{
"name": "NotInitialized",
"type": "error",
"inputs": []
},
{
"name": "NotPaused",
"type": "error",
"inputs": []
},
{
"name": "NotReadyToResolve",
"type": "error",
"inputs": []
},
{
"name": "Paused",
"type": "error",
"inputs": []
},
{
"name": "PriceNotAvailable",
"type": "error",
"inputs": []
},
{
"name": "PriceOutdated",
"type": "error",
"inputs": []
},
{
"name": "Resolved",
"type": "error",
"inputs": []
},
{
"name": "SafetyPeriodNotPassed",
"type": "error",
"inputs": []
},
{
"name": "SafetyPeriodPassed",
"type": "error",
"inputs": []
},
{
"name": "QuestionEmergencyResolved",
"type": "event",
"inputs": [
{
"name": "questionId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "payouts",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
}
],
"anonymous": false
},
{
"name": "QuestionFlagged",
"type": "event",
"inputs": [
{
"name": "questionId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "QuestionInitialized",
"type": "event",
"inputs": [
{
"name": "questionId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "creator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "priceFeedId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "requestTimestamp",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "price",
"type": "int64",
"indexed": false,
"internalType": "int64"
},
{
"name": "expo",
"type": "int32",
"indexed": false,
"internalType": "int32"
},
{
"name": "confTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "QuestionReset",
"type": "event",
"inputs": [
{
"name": "questionId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "QuestionResolved",
"type": "event",
"inputs": [
{
"name": "questionId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "settledPrice",
"type": "int256",
"indexed": true,
"internalType": "int256"
},
{
"name": "expo",
"type": "int32",
"indexed": false,
"internalType": "int32"
},
{
"name": "payouts",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
},
{
"name": "publishTime",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "QuestionUnflagged",
"type": "event",
"inputs": [
{
"name": "questionId",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"name": "RoleAdminChanged",
"type": "event",
"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
},
{
"name": "RoleGranted",
"type": "event",
"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
},
{
"name": "RoleRevoked",
"type": "event",
"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
},
{
"name": "ADMIN_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "DEFAULT_ADMIN_ROLE",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "EMERGENCY_SAFETY_PERIOD",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "addAdmin",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "ctf",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IConditionalTokens"
}
],
"stateMutability": "view"
},
{
"name": "emergencyResolve",
"type": "function",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payouts",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "flag",
"type": "function",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "getRoleAdmin",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"name": "grantRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "hasRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "initialize",
"type": "function",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "priceFeedID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "price",
"type": "int64",
"internalType": "int64"
},
{
"name": "expo",
"type": "int32",
"internalType": "int32"
},
{
"name": "confAge",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "isAdmin",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "isOwner",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "parseFeedUniqueAndResolve",
"type": "function",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "updateData",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"name": "pyth",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IPyth"
}
],
"stateMutability": "view"
},
{
"name": "questions",
"type": "function",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "requestTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "price",
"type": "int64",
"internalType": "int64"
},
{
"name": "expo",
"type": "int32",
"internalType": "int32"
},
{
"name": "confAge",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "emergencyResolutionTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "priceFeedId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "initialized",
"type": "bool",
"internalType": "bool"
},
{
"name": "resolved",
"type": "bool",
"internalType": "bool"
},
{
"name": "creator",
"type": "address",
"internalType": "address"
},
{
"name": "winningIndex",
"type": "int16",
"internalType": "int16"
},
{
"name": "settledPrice",
"type": "int64",
"internalType": "int64"
},
{
"name": "settledExpo",
"type": "int32",
"internalType": "int32"
},
{
"name": "publishTime",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "removeAdmin",
"type": "function",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "renounceRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "callerConfirmation",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "resolve",
"type": "function",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "revokeRole",
"type": "function",
"inputs": [
{
"name": "role",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "supportsInterface",
"type": "function",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"name": "transferOwnership",
"type": "function",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "unflag",
"type": "function",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]