Skip to content

Latest commit

 

History

History
124 lines (80 loc) · 3.76 KB

CHANGELOG.md

File metadata and controls

124 lines (80 loc) · 3.76 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog (github)

[1.1.0] - 2024-07-14

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] - 2024-07-05

Added

  • Major feature: Web app for more reliable performance & feature iteration
    • Form for creating new bets
    • Explore bets you are a party in
    • Explore all recent bets
    • Accept/decline/retrieve funds/settle bets in app
  • 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] - 2024-06-15

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] - 2024-06-07

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] - 2024-06-06

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] - 2024-06-03

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] - 2024-06-03

Added

  • Created a 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] - 2024-05-31

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