predikt/oracle/web/lib/onchain/abi/UmaCtfAdapter.json
caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

988 lines
17 KiB
JSON

{
"abi": [
{
"type": "constructor",
"inputs": [
{
"name": "_ctf",
"type": "address",
"internalType": "address"
},
{
"name": "_finder",
"type": "address",
"internalType": "address"
},
{
"name": "_oo",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "MAX_ANCILLARY_DATA",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "SAFETY_PERIOD",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "YES_OR_NO_IDENTIFIER",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "addAdmin",
"inputs": [
{
"name": "admin",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "admins",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "collateralWhitelist",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IAddressWhitelist"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ctf",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IConditionalTokens"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "flag",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getExpectedPayouts",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getLatestUpdate",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct AncillaryDataUpdate",
"components": [
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "update",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getQuestion",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"internalType": "struct QuestionData",
"components": [
{
"name": "requestTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "reward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "proposalBond",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "liveness",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "manualResolutionTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "resolved",
"type": "bool",
"internalType": "bool"
},
{
"name": "paused",
"type": "bool",
"internalType": "bool"
},
{
"name": "reset",
"type": "bool",
"internalType": "bool"
},
{
"name": "refund",
"type": "bool",
"internalType": "bool"
},
{
"name": "rewardToken",
"type": "address",
"internalType": "address"
},
{
"name": "creator",
"type": "address",
"internalType": "address"
},
{
"name": "ancillaryData",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getUpdates",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "tuple[]",
"internalType": "struct AncillaryDataUpdate[]",
"components": [
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "update",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "ancillaryData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "rewardToken",
"type": "address",
"internalType": "address"
},
{
"name": "reward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "proposalBond",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "liveness",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "isAdmin",
"inputs": [
{
"name": "addr",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isFlagged",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "isInitialized",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "optimisticOracle",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IOptimisticOracleV2"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "pause",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "postUpdate",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "update",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "priceDisputed",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "ancillaryData",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "questions",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "requestTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "reward",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "proposalBond",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "liveness",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "manualResolutionTimestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "resolved",
"type": "bool",
"internalType": "bool"
},
{
"name": "paused",
"type": "bool",
"internalType": "bool"
},
{
"name": "reset",
"type": "bool",
"internalType": "bool"
},
{
"name": "refund",
"type": "bool",
"internalType": "bool"
},
{
"name": "rewardToken",
"type": "address",
"internalType": "address"
},
{
"name": "creator",
"type": "address",
"internalType": "address"
},
{
"name": "ancillaryData",
"type": "bytes",
"internalType": "bytes"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ready",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "removeAdmin",
"inputs": [
{
"name": "admin",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "renounceAdmin",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "reset",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "resolve",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "resolveManually",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "payouts",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "unflag",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "unpause",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updates",
"inputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "update",
"type": "bytes",
"internalType": "bytes"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "AncillaryDataUpdated",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "update",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewAdmin",
"inputs": [
{
"name": "admin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newAdminAddress",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionFlagged",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionInitialized",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "requestTimestamp",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "creator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "ancillaryData",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "rewardToken",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "reward",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "proposalBond",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionManuallyResolved",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "payouts",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionPaused",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionReset",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionResolved",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "settledPrice",
"type": "int256",
"indexed": true,
"internalType": "int256"
},
{
"name": "payouts",
"type": "uint256[]",
"indexed": false,
"internalType": "uint256[]"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionUnflagged",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "QuestionUnpaused",
"inputs": [
{
"name": "questionID",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RemovedAdmin",
"inputs": [
{
"name": "admin",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "removedAdmin",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "Flagged",
"inputs": []
},
{
"type": "error",
"name": "Initialized",
"inputs": []
},
{
"type": "error",
"name": "InvalidAncillaryData",
"inputs": []
},
{
"type": "error",
"name": "InvalidOOPrice",
"inputs": []
},
{
"type": "error",
"name": "InvalidPayouts",
"inputs": []
},
{
"type": "error",
"name": "NotAdmin",
"inputs": []
},
{
"type": "error",
"name": "NotFlagged",
"inputs": []
},
{
"type": "error",
"name": "NotInitialized",
"inputs": []
},
{
"type": "error",
"name": "NotOptimisticOracle",
"inputs": []
},
{
"type": "error",
"name": "NotReadyToResolve",
"inputs": []
},
{
"type": "error",
"name": "Paused",
"inputs": []
},
{
"type": "error",
"name": "PriceNotAvailable",
"inputs": []
},
{
"type": "error",
"name": "Resolved",
"inputs": []
},
{
"type": "error",
"name": "SafetyPeriodNotPassed",
"inputs": []
},
{
"type": "error",
"name": "SafetyPeriodPassed",
"inputs": []
},
{
"type": "error",
"name": "UnsupportedToken",
"inputs": []
}
]
}