Commit Graph

13 Commits

Author SHA1 Message Date
Ian Philips
7f007baba4 Challenge Bets (#679)
* Challenge bets

* Store avatar url

* Fix before and after probs

* Check balance before creation

* Calculate winning shares

* pretty

* Change winning value

* Set shares to equal each other

* Fix share challenge link

* pretty

* remove lib refs

* Probability of bet is set to market

* Remove peer pill

* Cleanup

* Button on contract page

* don't show challenge if not binary or if resolved

* challenge button (WIP)

* fix accept challenge: don't change pool/probability

* Opengraph preview [WIP]

* elim lib

* Edit og card props

* Change challenge text

* New card gen attempt

* Get challenge on server

* challenge button styling

* Use env domain

* Remove other window ref

* Use challenge creator as avatar

* Remove user name

* Remove s from property, replace prob with outcome

* challenge form

* share text

* Add in challenge parts to template and url

* Challenge url params optional

* Add challenge params to parse request

* Parse please

* Don't remove prob

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Challenge card styling

* Add to readme about how to dev og-image

* Add emojis

* button: gradient background, 2xl size

* beautify accept bet screen

* update question button

* Add separate challenge template

* Accepted challenge sharing card, fix accept bet call

* accept challenge button

* challenge winner page

* create challenge screen

* Your outcome/cost=> acceptorOutcome/cost

* New create challenge panel

* Fix main merge

* Add challenge slug to bet and filter by it

* Center title

* Add helper text

* Add FAQ section

* Lint

* Columnize the user areas in preview link too

* Absolutely position

* Spacing

* Orientation

* Restyle challenges list, cache contract name

* Make copying easy on mobile

* Link spacing

* Fix spacing

* qr codes!

* put your challenges first

* eslint

* Changes to contract buttons and create challenge modal

* Change titles around for current bet

* Add back in contract title after winning

* Cleanup

* Add challenge enabled flag

* Spacing of switch button

* Put sharing qr code  in modal

Co-authored-by: mantikoros <sgrugett@gmail.com>
2022-08-04 21:36:32 -07:00
Ian Philips
839f19520a Add challenge enabled flag 2022-08-04 15:05:50 -06:00
mantikoros
eeb50fe54a eslint 2022-08-04 13:39:39 -07:00
mantikoros
1e0feae186 put your challenges first 2022-08-04 12:28:26 -07:00
mantikoros
40b7877f1d qr codes! 2022-08-04 12:25:51 -07:00
Ian Philips
8b4bd64421 Fix spacing 2022-08-04 11:05:47 -06:00
Ian Philips
cd4051c082 Link spacing 2022-08-04 11:02:02 -06:00
Ian Philips
9c4191dc79 Make copying easy on mobile 2022-08-04 10:55:37 -06:00
Ian Philips
7cc4710ab1 Restyle challenges list, cache contract name 2022-08-04 10:25:35 -06:00
Ian Philips
595c3fddd2 Cleanup 2022-07-22 07:53:56 -06:00
Ian Philips
13aa1f9540 Set shares to equal each other 2022-07-21 15:15:15 -06:00
Ian Philips
6051d436b8 Store avatar url 2022-07-21 10:18:16 -06:00
Ian Philips
2ce508382a Challenge bets 2022-07-21 10:08:50 -06:00