Commit Graph

25 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
mantikoros
b8bb184ff9 market share row 2022-08-04 21:30:15 -07:00
Ian Philips
88c6c1f793 Spacing of switch button 2022-08-04 15:07:09 -06:00
Ian Philips
5890673b01 Changes to contract buttons and create challenge modal 2022-08-04 14:43:21 -06:00
mantikoros
40b7877f1d qr codes! 2022-08-04 12:25:51 -07:00
Ian Philips
a38e06c16c Lint 2022-08-04 06:55:22 -06:00
Ian Philips
4dbabd2a77 Add challenge slug to bet and filter by it 2022-08-04 05:53:35 -06:00
Ian Philips
903264b9be New create challenge panel 2022-08-03 10:46:50 -06:00
Ian Philips
4252157290 Your outcome/cost=> acceptorOutcome/cost 2022-08-03 08:57:09 -06:00
mantikoros
5cb6f44c9c create challenge screen 2022-08-02 17:49:08 -07:00
mantikoros
a16814b9c7 accept challenge button 2022-08-02 16:44:05 -07:00
Ian Philips
754d4cb489 Accepted challenge sharing card, fix accept bet call 2022-08-02 16:37:57 -06:00
mantikoros
7acac0a5d6 beautify accept bet screen 2022-08-01 17:11:02 -07:00
mantikoros
c0a5b6fd1c share text 2022-07-26 18:23:00 -07:00
mantikoros
c8cf94f1ff challenge form 2022-07-26 18:05:04 -07:00
Ian Philips
5d48530421 Remove s from property, replace prob with outcome 2022-07-26 18:03:51 -07:00
mantikoros
043717b399 challenge button styling 2022-07-26 17:21:31 -07:00
mantikoros
776e0cd86d challenge button (WIP) 2022-07-22 17:48:28 -05:00
Ian Philips
8017f83735 Probability of bet is set to market 2022-07-21 16:16:35 -06:00
Ian Philips
71d8ffcee5 pretty 2022-07-21 15:43:51 -06:00
Ian Philips
fbd1bb21be Fix share challenge link 2022-07-21 15:42:26 -06:00
Ian Philips
13aa1f9540 Set shares to equal each other 2022-07-21 15:15:15 -06:00
Ian Philips
1b1affe1d9 pretty 2022-07-21 14:51:47 -06:00
Ian Philips
0d6b18877f Check balance before creation 2022-07-21 14:24:31 -06:00
Ian Philips
2ce508382a Challenge bets 2022-07-21 10:08:50 -06:00