Skip to content

Commit

Permalink
Fix/remove wsl check (#337)
Browse files Browse the repository at this point in the history
* add failure condition test

* Add test for HandleHTTPError (#278)

* add test for HandleHTTPError

undelete

* more verbose http codes

* Update Dockerfile

Now using go 1.23! Tested this on dev, it works

* Update compose_dev.sh

Prints initial settings as defined in setup.yaml. Added for usability reasons - users keep getting confused about account balance and maximum allowable debt

* add failure condition test

* formatting and test standards

---------

Co-authored-by: Osnat Katz Moon <137817983+astrosnat@users.noreply.github.com>

* add failure condition test (#282)

* Creation of Market Price Projection API (#277)

* Moving test to appropriate location.

* Updating, including moving test location. Test not passing due to precision error but generally passing on the terminal up to 6 dits.

* market projection handler, not working.

* Update market projected probability.

* Safe uint conversion.

* Updating, adding noop change to push into pipeline.

* Update, test passing.

* Update, attempting to solve type converstion uint problem.

* Adding projected market layout.

* Update, still have react JSON parse error but layout added to buyshares.

* Market projection updates on buy shares side, upon button press.

* Update, change printf to print.

* Create SECURITY.md

* Adding Fees to Buying and Selling Bets (#287)

* Drafting out fees deduction functions and capability.

* Attempting working version of initialBetFee function.

* Draft adding fees.

* Update, adding tests.

* Adding working test for GetBetsForMarket

* Successful fee util test.

* Fees added on backend, tests passing.

* Updating such that user record submitted. However fee summing not working yet evidently.

* Working fees, at least initial fees.

* Updating test scenario passing, made more clear.

* Update Dockerfile

We need to switch to 3.0.14-1~deb12u2

* Removing logging.

* Adding fees, including communicating fees on front end.

* totalBetCount to userBetCount so as not to misconstrue meaning.

* Simplifying function, test passed.

* Simplifying naming.

* Updating new function name in test

* Changing test to got before want convention.

* Update marketid variable

* Add combined fee structure for more througough test.

* Reverting sale amount to 1 share.

* Reversing got want

---------

Co-authored-by: Osnat Katz Moon <137817983+astrosnat@users.noreply.github.com>

* Frontend fixes (#286)

* fix: fixed the market buttons not showing on mobile

* fix: removed trade button on closed market

---------

Co-authored-by: Patrick Delaney <patrick.del@gmail.com>

* Attempting toa ddress cors related security concern. (#298)

* Drafting out reporting stats.

* Add support for dependency injection to setup (#301)

* Make EconomicsConfig from component structs

Auto initialize config
Add support to inject config
Add support for testing the setup through test doubles
Use new fee for placing bets (EachBetFee)

* remove wsl check

* remove watcher

---------

Co-authored-by: Osnat Katz Moon <137817983+astrosnat@users.noreply.github.com>
Co-authored-by: Patrick Delaney <patrick.del@gmail.com>
Co-authored-by: Marko Kovač <124689071+markokovac16@users.noreply.github.com>
Co-authored-by: Arthur <25300182+ajlacey@users.noreply.github.com>
  • Loading branch information
5 people authored Sep 23, 2024
1 parent 1f5393b commit a9095c2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 87 deletions.
76 changes: 0 additions & 76 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"devDependencies": {
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.17",
"is-wsl": "^3.1.0",
"postcss": "^8.4.35",
"tailwindcss": "^3.4.1",
"vite": "^5.1.7"
Expand Down
10 changes: 0 additions & 10 deletions frontend/vite.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import { defineConfig } from 'vite';
import isWsl from 'is-wsl';
import react from '@vitejs/plugin-react';

export default defineConfig(() => {
let watchWSL = isWsl ? {
watch: {
usePolling: true,
interval: 500,
binaryInterval: 1000,
}
} : null;

return {
build: {
outDir: 'build',
},
plugins: [react()],
server: watchWSL,
};
});

0 comments on commit a9095c2

Please sign in to comment.