Releases: wannabet-cc/wannabet
Releases · wannabet-cc/wannabet
1.1.0 - Add farcaster names & deploy bot
Added
- Farcaster names and pfps in the app
- A status dialog for the bet creation flow
- USDC balance and allowance check in bet creation to make the flow significantly more seamless
Changed
- Small UI tweaks to improve mobile experience and signing transactions
Fixed
- Several breaking bot bugs; Repaired and re-deployed
1.0.0 - Web app
Added
- Major feature: Web app for more reliable performance & faster updates
- Explore bets you are a party in
- Explore all recent bets
- Accept/decline/retrieve funds/settle bets in app
- Form for creating new bets
- Major feature: Ponder indexer
- Add contract fees and ownership
Changed
- Rename "arbitrator" to "judge"
- Use ReentrancyGuard and SafeERC20 libraries to improve contract security and flexibility
- Improve frame usability
0.6.0 - Build bot and deploy frame
Added
- Bot casting and webhook logic
Changed
- Improve frame usability
- Smart contract: change some var names to improve naming consistency
- Smart contract: change event topics to make it easy to find the new bet contracts
Fixed
- Frame transactions work now
- Prep frame to deploy (e.g. set env vars correctly, clean up code, and other small fixes)
0.5.0 - Add contract status (& other small changes)
Added
- Status enum & getStatus function
- Function for getting all bet details at once, 'getBetDetails'
- Custom errors for gas efficiency
- Bet id state to each contract
Changed
- Immutable contract vars changed from public to private for gas efficiency and simplicity; data can be fetched from 'getBetDetails' function
- 'require' statements changed to 'if / revert' for gas efficiency
- 'isOfferExpired' changed to 'isExpired'
Removed
- Status boolean variables & return functions (i.e. 'accepted', 'settled', and 'isBetActive'); replaced with one 'getStatus' function
0.4.0 - Frame bet info and transactions
Added
- Bet homepage
- Frame transactions for creating, accepting, declining, and settling a bet
- Frame transaction for authorizing a transfer of tokens to the bet contract
- Frame transaction for recovering your funds if a bet offer expires
0.3.0 - Expanded contract logic for app usage
Added
- Bet expiration contract logic
- Function for retrieving funds if the bet expires
- Function for checking if the bet is currently active
- Custom error for when attempting to run a function where you aren't the designated party
Changed
- BetFactory state now has 3 main functions: one for getting contract addresses, one for getting a bet id from a contract address, and one for getting all bets related to a specific user
- Improve readability of some function requirements
Removed
- Redundant state in BetFactory (i.e. bet creator, participant, amount, etc.)
0.2.0 - Added user input and usdc auth in frame
Added
- Frog frame that...
- takes essential user input required for creating a new bet
- validates that input
- allows users to authorize the bet factory contract to transfer the bet amount
0.1.0 - Added base smart contract functionality
Added
- Readme, license, and changelog
- Created
BetFactory.sol
... key features:- can read all bets based on chronological creation or based on user address'
- can create new instances of
Bet.sol
- Created
Bet.sol
... key features:- can read all relevant details of the bet, including the bet creator, participant, arbitrator, bet amount, attached message stating the bet terms, whether it has been accepted or settled yet, and if there is a winner, who it is
- can accept or decline a bet as the bet participant
- can settle a bet, selecting a winner or tie, as the bet arbitrator