Before running the project, ensure you have the following installed:
yarn add @triadxyz/triad-protocol
The Triad Protocol is built on Solana using the Anchor framework.
programs/triad-protocol/src/)lib.rs: Entry point defining the program ID and instruction constructs.instructions/: Contains the logic for all protocol operations.
create_market, update_market_*, create_pool.place_bid_order, place_ask_order, cancel_*_order,deposit, withdraw, create_predictor.state/: Defines the data structures (accounts) stored on-chain.
Market, Order, User, Customer, etc.The Triad Protocol supports a wide range of operations for markets, betting, earning yield, and liquidity management.
create_market: Initialize a new prediction market.create_pool: Create a liquidity pool for a market.