f48ae0170b
* sell bet * dev mode * single-pot no-refund payoff; bet selling * Increase default fetch size 25 -> 99 * Fix about page numbering * Don't flash no markets when loading on tag page. * Change Title to use body font * Make a bunch of predictions at once (#9) * Set up a page to make bulk predictions * Integrate preview into the same card * List created predictions * Make changes per James's comments * Increase the starting balance (#11) * Remove references to paying for our Mantic Dollars * Update simulator to use new calculations * Change simulator random to be evenly random again * Sell bet UI * Migrate contracts and bets script * Add comment to script * bets => trades; exclude sold bets * change sale formula * Change current value to uncapped sell value. * Disable sell button while selling * Update some 'bet' to 'trade' Co-authored-by: Austin Chen <akrolsmir@gmail.com> Co-authored-by: jahooma <jahooma@gmail.com>
28 lines
645 B
JSON
28 lines
645 B
JSON
{
|
|
"name": "functions",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"watch": "tsc -w",
|
|
"serve": "yarn build && firebase emulators:start --only functions",
|
|
"shell": "yarn build && firebase functions:shell",
|
|
"start": "yarn shell",
|
|
"deploy": "firebase deploy --only functions",
|
|
"logs": "firebase functions:log"
|
|
},
|
|
"engines": {
|
|
"node": "14"
|
|
},
|
|
"main": "lib/index.js",
|
|
"dependencies": {
|
|
"fetch": "1.1.0",
|
|
"firebase-admin": "10.0.0",
|
|
"firebase-functions": "3.16.0",
|
|
"lodash": "4.17.21"
|
|
},
|
|
"devDependencies": {
|
|
"firebase-functions-test": "0.3.3",
|
|
"typescript": "4.5.3"
|
|
},
|
|
"private": true
|
|
}
|