On-chain prediction markets such as Myriad have rapidly gained traction in recent years. Here’s how they work.