manifold/functions/src
TrueMilli a3663d03e8
Automated market resolution (#404)
* Added radio buttons to market creation (non functional)

* Ignoring vs code files

Should this be done in the repo or should everyone using VS Code do that himself globally on his machine(s)?

* Removed 'automatic' resolution

* added union type for resolution

* revert: resolution could be anything here (non binary markets)

* Expanded ChoicesToggleGroup for string choices

* Added combined resolution and required buttons to market creation

* restricted automatic resolution to binary markets

* added automatic resolution to contract

* added automatic resolution to contract overview

* string or number array to mixed array

* created const for resolutions

* Added comments for leading semicolons

* configuration of auto resolution on market creation

* v1.22.19

* v1.0.0

* v0.0.0

* v1.0.0

* v1.22.19

* Mock display automatic resolution

* Revert changes to market creation

* Revert "v1.22.19"

This reverts commit 22f59adc9c.

* Removed resolutiontype from contract creation

* Added auto resolution time to contract

* Auto resolution date editable

* refactoring

* Editable interface for auto resolution

* New edit interface for auto resolution

* Setting of auto resolve date when changing close date

* prohibited changing other peoples markets

* removed unnecessary export

* refactoring

(cherry picked from commit 4de86d5b08)

* Added comments for leading semicolons

(cherry picked from commit 60739c7853)

* Ignoring vs code files

Should this be done in the repo or should everyone using VS Code do that himself globally on his machine(s)?

(cherry picked from commit 944de9398a)

* removed unused imports and variables

* added type for binary resolution

* Prettier

* const for binary resolutions

* using the type "resolution"

* Prettier

* Re-added comment

* Update functions/src/create-contract.ts

* Revert "Ignoring vs code files"

This reverts commit 09aea5c207.

* launch config for debugging with vs code WIP

* "Launch Chrome" does not work since login via google is not possible in debugger-chrome
* Breakpoints are unbound when attached to chrome

* Revert "Added comments for leading semicolons"

* prettier

* linebreak crlf

* vscode settings

* correct linebreaks
* search exclusion
* automatic prettifier

* vscode settings

* correct linebreaks
* search exclusion
* automatic prettifier

* Working debugger config

* fix merge

* Removed comments, default resolution MKT

* removed vscode from gitignore

* refactoring description update

* Added auto resolution to LiteMarket

* fix date, setDate mutates object

* fixed firestore.rules

* script to add auto resolution to all markets

* regularely auto resolve markets

* fix description error

* moved calculate ts for access in firebase

* Revert "moved calculate ts for access in firebase"

This reverts commit 8380bf4f72.

* fix reference to calculate for firebase

* fixed references to time

* renamed function

* added description

* added auto resolution to description

* direct bool check instead of != null

* direct bool check instead of != undefined

* remove explicit type

* Fix free response markets

* removed contract from functionname

* interval set to 1h

* query instead of filter

* folds ~> contracts

* query instead of filter

* promise.all instead of foreach

* removed contractDoc from function header

* removed autoResolution from function header

* batchedWaitAll instead of promise.all

* removed unused parameter

* replaced auto resolution with constant

* suggestions from PR

* fix comment

* removed unused imports

* added scripts to add close dates on prod

* optimization

* removed test script

* security: only auto resolve markets which are closed

* consistency checks

* re-added type check for binary markets
* moved check of probability into switch case block

* removed unused import

* auto resolution every minute

* auto resolution time optional

* pr fixes
2022-06-14 15:01:32 -05:00
..
email-templates Update welcome.html (#465) 2022-06-08 21:28:29 +01:00
scripts Automated market resolution (#404) 2022-06-14 15:01:32 -05:00
add-liquidity.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
api.ts Implement really obvious optimizations on placebet, sellbet, sellshares (#452) 2022-06-10 17:51:55 -07:00
backup-db.ts Ratchet up linting for functions package a little bit (#431) 2022-06-05 22:50:27 -07:00
call-cloud-function.ts Ratchet up linting for functions package a little bit (#431) 2022-06-05 22:50:27 -07:00
change-user-info.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
create-answer.ts Switch to Google Secret Manager for function secrets (#418) 2022-06-04 14:39:25 -07:00
create-contract.ts Automated market resolution (#404) 2022-06-14 15:01:32 -05:00
create-fold.ts Ratchet up linting for functions package a little bit (#431) 2022-06-05 22:50:27 -07:00
create-notification.ts Notifications for liquidity proiders/provisions (#478) 2022-06-10 16:48:28 -06:00
create-user.ts Switch to Google Secret Manager for function secrets (#418) 2022-06-04 14:39:25 -07:00
emails.ts Ratchet up linting for functions package a little bit (#431) 2022-06-05 22:50:27 -07:00
fetch.ts keep awake cloud functions 2021-12-17 20:13:20 -06:00
get-feed-data.ts Make feed updating do much less work (#455) 2022-06-09 15:13:06 -07:00
health.ts Implement really obvious optimizations on placebet, sellbet, sellshares (#452) 2022-06-10 17:51:55 -07:00
index.ts Simply do not update the feed (#474) 2022-06-10 20:55:51 -07:00
keep-awake.ts turn keep awake on 2021-12-24 16:14:02 -05:00
market-close-notifications.ts Notifications for liquidity proiders/provisions (#478) 2022-06-10 16:48:28 -06:00
on-create-answer.ts Speed up notification loading by prepopulating relevant info (#453) 2022-06-08 08:43:24 -06:00
on-create-bet.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
on-create-comment.ts Speed up notification loading by prepopulating relevant info (#453) 2022-06-08 08:43:24 -06:00
on-create-contract.ts Notifications for liquidity proiders/provisions (#478) 2022-06-10 16:48:28 -06:00
on-create-liquidity-provision.ts Ignore manifold as lp for now 2022-06-10 17:23:17 -06:00
on-fold-delete.ts Ratchet up linting for functions package a little bit (#431) 2022-06-05 22:50:27 -07:00
on-fold-follow.ts Compute fold follower count from cloud function. 2022-01-26 14:27:16 -06:00
on-follow-user.ts Speed up notification loading by prepopulating relevant info (#453) 2022-06-08 08:43:24 -06:00
on-update-contract.ts Notifications for liquidity proiders/provisions (#478) 2022-06-10 16:48:28 -06:00
on-view.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
place-bet.ts Implement really obvious optimizations on placebet, sellbet, sellshares (#452) 2022-06-10 17:51:55 -07:00
redeem-shares.ts Refactor contract typing to be more concise and more correct (#355) 2022-05-31 19:42:35 -07:00
resolve-market.ts Automated market resolution (#404) 2022-06-14 15:01:32 -05:00
sell-bet.ts Implement really obvious optimizations on placebet, sellbet, sellshares (#452) 2022-06-10 17:51:55 -07:00
sell-shares.ts check if shares below min pool qty for sales 2022-06-13 21:14:52 -05:00
send-email.ts Switch to Google Secret Manager for function secrets (#418) 2022-06-04 14:39:25 -07:00
stripe.ts Fix secret access for some email sending functions (#449) 2022-06-07 13:31:08 -07:00
transact.ts Revert "Make absolute imports work with functions project (#168)" 2022-05-15 13:39:42 -04:00
unsubscribe.ts Ratchet up linting for functions package a little bit (#431) 2022-06-05 22:50:27 -07:00
update-contract-metrics.ts Improve visibility of updateFooMetrics functions behavior (#485) 2022-06-12 16:22:29 -07:00
update-feed.ts Make feed updating do much less work (#455) 2022-06-09 15:13:06 -07:00
update-recommendations.ts Change lodash stuff so that it can be tree-shaken out of build (#233) 2022-05-22 01:36:05 -07:00
update-user-metrics.ts Improve visibility of updateFooMetrics functions behavior (#485) 2022-06-12 16:22:29 -07:00
utils.ts Improve visibility of updateFooMetrics functions behavior (#485) 2022-06-12 16:22:29 -07:00
withdraw-liquidity.ts withdraw liquidity: redeem surplus shares, adjust total depostits, adjust amount for current prob, set isLiquidityProvision for surplus bets, error handling 2022-06-09 12:47:02 -05:00