Milli
4de86d5b08
refactoring
2022-05-31 17:43:21 +02:00
Milli
727cf5df66
Auto resolution date editable
2022-05-29 23:35:12 +02:00
Milli
9c6c082de7
Added auto resolution time to contract
2022-05-29 21:41:33 +02:00
Milli
41a6ee6056
Removed resolutiontype from contract creation
2022-05-29 21:41:09 +02:00
Milli
08ea8a0fe0
Revert "v1.22.19"
...
This reverts commit 22f59adc9c
.
2022-05-29 21:27:26 +02:00
Milli
a5b60d29fa
Revert changes to market creation
2022-05-29 21:22:16 +02:00
Milli
cf99ba1a83
Merge remote-tracking branch 'upstream/main' into automated-market-resolution
2022-05-29 21:15:55 +02:00
James Grugett
23944bf47a
Filter redemption bets out of market 'Bets' tab
2022-05-28 15:57:12 -05:00
James Grugett
90a8de09d7
Ask a question => Create a question
2022-05-28 15:48:08 -05:00
James Grugett
4c81106612
Don't show quick bet when signed out, or for numeric markets
2022-05-28 15:36:16 -05:00
Milli
e1e194005c
Mock display automatic resolution
2022-05-28 22:34:30 +02:00
James Grugett
29a05ffff2
Disable quick bet for resolved markets
2022-05-28 15:27:01 -05:00
Milli
fe2c90d011
Merge remote-tracking branch 'upstream/main' into automated-market-resolution
2022-05-28 22:22:44 +02:00
Marshall Polaris
c3a5205d8e
Use cross-env for things that set environment variables ( #359 )
2022-05-28 13:21:05 -07:00
mantikoros
9076b625e3
numeric bet ante provided by house
2022-05-28 13:43:57 -05:00
Milli
22f59adc9c
v1.22.19
2022-05-28 20:10:36 +02:00
Milli
2f7ed609ff
v1.0.0
2022-05-28 20:10:25 +02:00
Milli
638094aafd
v0.0.0
2022-05-28 20:10:14 +02:00
Milli
1aa4301840
v1.0.0
2022-05-28 19:57:10 +02:00
Milli
5fe4105dba
v1.22.19
2022-05-28 19:56:56 +02:00
Milli
26b7ec9f66
Merge branch 'main' into automated-market-resolution
2022-05-28 16:03:13 +02:00
James Grugett
45f92379bc
Portfolio: Fix calculation of whether you sold all your shares
2022-05-28 00:18:09 -05:00
Austin Chen
2ea7ddc1aa
Hide mobile bottom bar if Manifold is iframed
2022-05-27 21:27:37 -07:00
Milli
e1591fd0a9
configuration of auto resolution on market creation
2022-05-28 04:19:23 +02:00
Milli
60739c7853
Added comments for leading semicolons
2022-05-28 01:06:49 +02:00
Milli
50cee1a6d3
Merge branch 'main' into automated-market-resolution
...
# Conflicts:
# common/contract.ts
# functions/src/create-contract.ts
# web/pages/create.tsx
2022-05-28 00:41:38 +02:00
Marshall Polaris
80d5607984
Revert fishy change regarding payouts
2022-05-27 14:24:49 -07:00
Milli
f0dc00e6ad
Merge branch 'main' into automated-market-resolution
...
# Conflicts:
# web/components/choices-toggle-group.tsx
# web/pages/create.tsx
2022-05-27 23:11:22 +02:00
Marshall Polaris
86625798cd
Clean up some mess related to nullable collectedFees
( #352 )
...
* contract.collectedFees is no longer sometimes nonexistent
* Fix typing issues around payouts code
2022-05-27 14:02:02 -07:00
James Grugett
279b139556
Add 'sold' filter option in portfolio page
2022-05-27 15:51:55 -05:00
James Grugett
15d203977a
Portfolio: Consistently filter out contracts you have sold out of.
2022-05-27 15:40:52 -05:00
Marshall Polaris
e5ce17c2ad
Fix up backfill script (and I ran it)
2022-05-27 13:11:32 -07:00
Marshall Polaris
3e25faf74c
Add script to backfill contract collectedFees
2022-05-26 22:07:56 -07:00
Forrest Wolf
1e0845f4b9
Replace some uses of any
with more specific types ( #344 )
...
* Add tsconfig.json for common
* Prefer `const` over `let` over `var`
* Kill dead code
* Fix some trivial Typescript issues
* Turn on Typescript linting in common except for no-explicit-any
* Correctly specify tsconfig dir name in functions eslintrc
* Give react children explicit types
* Add explicit types to removeUndefinedProps
* Create StripeSession type
* Give event in Dropdown an explicit type
* Revert "Give event in Dropdown an explicit type"
This reverts commit 80604310f2
.
* Give bids in NewBidTable an explicit type
* Cast results of removeUndefinedProps when neccessary
* Fix type of JoinSpans
* Revert "Cast results of removeUndefinedProps when neccessary"
This reverts commit 5541617bc8
.
* Revert "Add explicit types to removeUndefinedProps"
This reverts commit ccf8ffb0b5
.
* Give React children types everywhere
* Give event a type
* Give event correct type
* Lint
* Standardize React import
Co-authored-by: Marshall Polaris <marshall@pol.rs>
2022-05-26 15:22:44 -07:00
Marshall Polaris
420ea9e90e
Add more linting to web
package ( #343 )
...
* Import React a lot
* Fix misc. linting concerns
* Turn on many recommended lints for `web` package
2022-05-26 14:41:24 -07:00
Marshall Polaris
5217270073
Serious business API validation & big cleanup of createContract
, placeBet
( #302 )
...
* Add the great Zod as a dependency to help us
* Tweak eslint
* Rewrite a ton of stuff in createContract and placeBet
* Clean up error reporting in API
* Make sure the UI is enforcing validated limits on lengths
* Remove unnecessary Math.abs
* Better type on `BetInfo`
* Kill `manaLimitPerUser`
* Clean up hacky parameters on bet info functions
* Validate `closeTime` as a valid timestamp in the future
2022-05-26 14:37:51 -07:00
Ian Philips
09e93779fb
Use today's 4pm utc if past already
2022-05-26 10:29:46 -06:00
mantikoros
7b0be014eb
show resolved n/a for numeric markets
2022-05-26 09:39:14 -05:00
Milli
a618a43071
created const for resolutions
2022-05-26 14:57:59 +02:00
Milli
66971ed204
string or number array to mixed array
2022-05-26 14:47:32 +02:00
Ian Philips
6f23c16df7
Show up arrow if shares in numeric markets
2022-05-26 06:23:22 -06:00
Milli
5f8031c155
Merge branch 'main' into automated-market-resolution
2022-05-26 13:03:58 +02:00
Sinclair Chen
38fa58406d
Fix embeds on incognito (blocked localStorage)
2022-05-25 22:30:03 -07:00
Austin Chen
eb68d059e2
Extend analytics to 90 days
2022-05-25 19:22:50 -07:00
Marshall Polaris
b8b1c0d056
Add tsconfig, more linting to common
package ( #324 )
...
* Add tsconfig.json for common
* Prefer `const` over `let` over `var`
* Kill dead code
* Fix some trivial Typescript issues
* Turn on Typescript linting in common except for no-explicit-any
* Correctly specify tsconfig dir name in functions eslintrc
2022-05-25 17:12:36 -07:00
Ian Philips
0c3fa9f065
Handle free response outcomes for yes/no shares ( #338 )
2022-05-25 16:51:33 -06:00
Ian Philips
1334840ee0
Fix comment links from /activity & add to emails ( #320 )
2022-05-25 16:47:08 -06:00
Ian Philips
f0d44be2f4
Clean up time diff code
2022-05-25 16:04:14 -06:00
Ian Philips
f3be3b1f3c
Maybe free market countdown will work now, beats me
2022-05-25 15:55:50 -06:00
Milli
f73883c29a
added automatic resolution to contract overview
2022-05-25 22:19:23 +02:00