Conditional tokens framework
All outcomes on Ruckusmarket are tokenized on the Polygon network. Specifically, Ruckusmarket represents binary outcomes ("YES" and "NO") using Gnosis' Conditional Token Framework (CTF).
These binary outcome tokens, known as "positionIds" in Gnosis' documentation, are ERC1155 tokens backed by collateral and related to a parent condition. Each positionId is derived from a collateral token and a distinct "collectionId". The collectionId is derived from a parentCollectionId (always bytes32(0) in our case), a conditionId, and a unique indexSet.
The indexSet is a 256-bit array that indicates which outcome slots are included in an outcome collection. For binary outcomes, there are two indexSets: one for the first outcome (0b01) and one for the second outcome (0b10).
The parent conditionId, which is shared by both collectionIds and positionIds, is derived from a questionId (a hash of the UMA ancillary data), an oracle address (the UMA adapter V2), and an outcomeSlotCount (always 2 in the binary case).