Gnosis Developer Portal Conditional Tokens

Gnosis Developer Portal Conditional Tokens

  • Introduction
  • Use Case
  • Documentation
  • Tutorials
  • Support

›Conditional Tokes Tutorial

Conditional Tokes Tutorial

  • Introduction
  • Setup
  • Conditions
  • Bit Arrays
  • Basic Outcome Collections
  • Positions
  • Splitting From Collateral
  • Splitting Unions
  • Combining Outcome Collections
  • Splitting to Deeper Positions
  • Merging Positions
  • Transferring to EOA addresses
  • Transferring to Contract Addresses
  • Reporting Payouts
  • Basic Redemption
  • Deeper Redemptions
  • Reporting Scalar markets
  • Scalar Redemptions

Introduction


Welcome to the conditional tokens tutorial. In this tutorial we will use remix (a browser based integrated development environment tailored for ethereum development) and this gist to explore the conditional tokens contracts. Along the way, we will explain some of the design choices that were made and what conditional tokens allow you to do.

This tutorial will take about an hour and a half. There is also a follow along video at the top of each page.

Introduction

First off, what are conditional tokens?

In a nut shell conditional tokens enable prediction markets; markets about the outcome of any future event. They allow agents to aggregate beliefs about the future.

Conditional tokens also enable combinatorial prediction markets. These are prediction markets with a deeper structure than what one might typically encounter as prediction markets, allowing you to express more complex logic between combinations of markets.

There may use cases that are enabled by conditional tokens, but today will only be exploring the basic mechanics around the conditional tokens. If you would like more information, please consult the docs.

Resources

  • Remix
  • GitHub Gist

Let's go ahead and get set up!

Setup →
  • Introduction
  • Resources
Gnosis Ltd.
ImprintCopyright
© 2020 Gnosis LTD
Privacy Policy
Copyright © 2025 Gnosis LTD