bodega-market
About this Protocol
Prediction markets on Cardano with AMM pricing and licensed batcher
Parties
The participants involved in this protocol's transactions.
Environment
Configuration values required to execute this protocol's transactions.
Transactions
The transactions defined in this protocol, with their parameters, inputs, and outputs.
create_market
Deploy a new prediction market: mint info/prediction NFTs, lock BODEGA pledge, pay open fee.
Diagram
Parameters
Inputs
Outputs
submit_reward_yes
Lock YES share tokens as a RewardPos so the batcher can burn them and pay out the reward.
Diagram
Parameters
Inputs
Outputs
buy_position_yes
Submit a BuyPos position on the YES candidate; batcher will later mint and deliver shares.
Diagram
Parameters
Inputs
Outputs
buy_position_no
Submit a BuyPos position on the NO candidate; batcher will later mint and deliver shares.
Diagram
Parameters
Inputs
Outputs
sell_position_yes
Submit a RefundPos (Sell Position) on YES so the batcher buys back shares at the AMM price.
Diagram
Parameters
Inputs
Outputs
submit_reward_no
Lock NO share tokens as a RewardPos so the batcher can burn them and pay out the reward.
Diagram
Parameters
Inputs
Outputs
sell_position_no
Submit a RefundPos (Sell Position) on NO so the batcher buys back shares at the AMM price.
Diagram
Parameters
Inputs
Outputs
Profiles
Pre-configured sets of environment and party values for different deployment targets.