manifold/common
Ian Philips 798253f887
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 15:27:02 -06:00
..
envs Allow environments to override the referral bonus 2022-07-18 23:29:32 -07:00
util Add @ mentions to editor (#670) 2022-07-23 20:37:34 -07:00
.eslintrc.js Fix up lint configuration, lint line endings (#615) 2022-07-05 12:25:44 -07:00
.gitignore Typescript project references take 2 (#586) 2022-06-27 13:32:24 -07:00
.yarnrc when adding package, don't put ^ before version (#645) 2022-07-13 15:14:06 -07:00
add-liquidity.ts Refactor contract typing to be more concise and more correct (#355) 2022-05-31 19:42:35 -07:00
answer.ts Revert "Represent DB avatar URLs as non-null (#128)" 2022-05-06 14:29:15 -04:00
antes.ts Multiple choice markets (#698) 2022-07-27 21:40:33 -05:00
api.ts Revamp backend code to support good local function development (#657) 2022-07-24 00:26:38 -07:00
bet.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
calculate-cpmm.ts Range limit orders (#655) 2022-07-22 00:57:56 -05:00
calculate-dpm.ts Categories to groups (#641) 2022-07-13 15:11:22 -06:00
calculate-fixed-payouts.ts Refactor contract typing to be more concise and more correct (#355) 2022-05-31 19:42:35 -07:00
calculate.ts Multiple choice markets (#698) 2022-07-27 21:40:33 -05:00
categories.ts Convert world and culture categories 2022-07-22 08:12:40 -06:00
challenge.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
charity.ts Update charity.ts (#695) 2022-07-26 11:10:22 +09:00
comment.ts Groups (#510) 2022-06-22 11:35:50 -05:00
contract.ts Multiple choice markets (#698) 2022-07-27 21:40:33 -05:00
feed.ts Categories (#132) 2022-05-12 10:07:10 -05:00
fees.ts eliminate platform, liquidty fees 2022-06-16 12:46:34 -05:00
follow.ts Create Top Followed Users leaderboard (#531) 2022-06-22 11:05:54 -05:00
group.ts Backfill and forward fill contracts with group info (#686) 2022-07-22 16:28:53 -06:00
liquidity-provision.ts Cfmm (#64) 2022-03-15 17:27:51 -05:00
manalink.ts Manalink: Send mana to anyone via link (#114) 2022-06-23 01:07:52 -07:00
new-bet.ts Multiple choice markets (#698) 2022-07-27 21:40:33 -05:00
new-contract.ts Multiple choice markets (#698) 2022-07-27 21:40:33 -05:00
notification.ts Challenge Bets (#679) 2022-08-04 15:27:02 -06:00
numeric-constants.ts Bonus=>10 2022-07-21 15:33:21 -06:00
package.json Add @ mentions to editor (#670) 2022-07-23 20:37:34 -07:00
payouts-dpm.ts Multiple choice markets (#698) 2022-07-27 21:40:33 -05:00
payouts-fixed.ts return creator liquidity after resolution 2022-07-09 13:53:50 -04:00
payouts.ts Multiple choice markets (#698) 2022-07-27 21:40:33 -05:00
pseudo-numeric.ts Fix infinite loop in numeric limit bet 2022-07-22 21:03:08 -05:00
quadratic-funding.ts Add quadratic matching to Manifold for Charity (#486) 2022-06-13 20:53:29 -07:00
recommended-contracts.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
redeem.ts Redemption refactoring (#614) 2022-07-05 12:35:39 -07:00
scoring.ts Finalize v2 resolvemarket migration (#598) 2022-06-29 16:47:06 -07:00
sell-bet.ts 🧾 Limit orders! (#495) 2022-07-10 13:05:44 -05:00
stats.ts Compute stats in Firebase instead of Vercel (#584) 2022-06-26 14:42:42 -07:00
tracking.ts Track latency of feed and portfolio page. 2022-04-21 01:00:08 -05:00
tsconfig.json Typescript project references take 2 (#586) 2022-06-27 13:32:24 -07:00
txn.ts Enable tipping on group chats w/ notif (#629) 2022-07-07 17:23:13 -06:00
user.ts 500 mana email (#687) 2022-08-04 13:03:02 -05:00
yarn.lock Add package.json to common directory, and lodash dependency 2022-02-01 12:59:51 -06:00