Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating Profilepage, Positions, Capability to Sell Shares (openpredi…
…ctionmarkets#61) * Updating selling logic, math libraries so that we can implement selling. * Fixed placebet.go. * Updating, attempting to implement selling and position calculations, README.md thinking. * Update with github compatible math. * Update, adding .md * Adding tick marks math to attempt to display properly. * Update, attempting to render formula with skipped lines. * Attempt to use align to keep each line aligned properly. * Attempt to use f alignment. * Sepearte equation from definitions. * Attempting to add math tag to math blocks. * Adding horizontal rule. * Tweaking title and horz rule. * Update, adding S calcuations. * Update. * Attempting to fix formula. * Update. * Fixing align. * Fixing align. * Fixing falign. * Update dividing up market pool shares. * Updating introducing course payout. * Updating. * Updating, attempting to format correctly. * Debugging _ in math mode error. * Removing $ from R - p * Attempging to realign equations. * Further formatting. * Update. * Update. * Update formatting and top paragraph. * Update. * Update. * Update. * Update, clarifiying. * Update. * Update again, correcting. * Attempting to fix again. * Fixing equivalency, introduce D variable. * Hopefully final cleanup. * Reorganization, adding functions for dbpm * Reorganization, adding functions for dbpm * Theoretically complete market positions handler. * Fixing bugs in dbpm calculation. * Updating conventions, changing bets to integers. * Converting all currency stuff to int64 * Converting all currency stuff to int64 * Update again, just cleaning up integers. * Update, ironing out ints problem. * Finished refactoring to use int64 as base currency, however market position calculations not working, slice not lined up * Updated market payout information, however final payout still not calculating properly. * Fixing low shares problem. * Updating, working adjusted market positions. * Updating readme. * Further updates, including the capability to sell shares as a function of buying. * Updating, attempting to play around with debugging math for selling positions. * Update, improving buying with liquidating shares, proper logic. * Update profile, attempting to fix bet sell shres rule. * Attempting to fix problems again. * setup Vite instead of CRA * Update placebethandler, marketpositionshandler, dbpm_marketshares to calculate positions as an aggregate net. * Update sellpositionhandler. * Draft: Creating branch to update node such that vite will work. (openpredictionmarkets#62) * Creating branch to update node such that vite will work. * Noop modification to frontend.Dockerfile to allow packages to install properly. You have to make a modification to the Dockerfile above where the step you're trying to update is in order for Docker to pick up that part of the file. * fix: changed the file extension to match Vite 5.x version * Attempting to fix ports so works with nginx. * Got it working. needed to add --host flag after vite command on package.json. * Fixing networking, ensuring that frontend serves on a static network within docker so that we can allow it within CORS configuration. Upgrading to Node 21. * Update, making compose-dev universal --------- Co-authored-by: Marko Kovač <[email protected]> * Frontend/folder restructure (openpredictionmarkets#65) * complete folder restructure of the project * rest of the folder setup * complete folder restructure of the project * rest of the folder setup * fix for isLoggedIn default state * Profilepage sellshares (openpredictionmarkets#66) * Update capability to sell position handler, still working on it. * Update, fixing import cycles. * Moving MarketDetails to pages/ rather than components/ (openpredictionmarkets#73) * Blk system dependencies upgrade (openpredictionmarkets#75) * Update having added to dependencies: blk-design-system-react: github:creativetimofficial/blk-design-system-react#1.2.2, * implemented the theme, added needed dependencies for it * Adding reactstrap to package.json and package-lock.json. --------- Co-authored-by: Marko Kovač <[email protected]> * Revert "Blk system dependencies upgrade (openpredictionmarkets#75)" This reverts commit 9f98611. * Tailwind setup * Stylepage to Hold Individual Elements (openpredictionmarkets#102) * Adding test button to start style page. * Adding bet no and bet yes buttons to style page. * Attempting to centralize colors and refactor to simplify repeatable elements of buttons. * Update. * Converting colors.jsx to tailwind.config.js * Converting colors.jsx to tailwind.config.js * Updated to use tailwind as central place for colors and styles. * Removing Colors.jsx as central styling location, migrating everything to tailwind.config.js * Adding resolve button. * Update further. * Stripping off App.css to attempt to use nothing but tailwind and build up from there. * Updating with tweaks to sidebar, color, etc. * Various styling updates. * Updating various styling, breaking down MarketDetails. * Adding sitebuttons, inputbar, loginmodal, index, etc. * Reorganizing to make new marketdetails styling work. * Updating fees. * Working line chart with d3.js * Updating, area step chart with d3js. * Responsive graph, expands with window expansion. * Working zoomable area fill step chart. * Update, ensuring that canvasjs is installed. * Updating button colors to abide by color scheme from colors.co * Updating Markets.jsx, throwing out old. * Fully deleting Markets.jsx old page and css. * Updating Create.jsx with new button and form. * Fix API_URL error. However still have Error reading request body * Updating, attempting to fix login. * Allow login modal to show up on center of DOM via adding modal div within index.html and changing how login modal rendered. * Moving toward getting login flow working. * Noop test change. * Succesful login with new method. * Attempting to pull routes out of App.jsx to clean up further. * Update frontend routing, ensuring styling fits together. * Login/logout working, showing expanded sidebar. * Got full login working again. * Got create functionality to the point where now date is picking up as end of today, but user not being passed. * Update. * Update InputBar and InputBox such that they can both accept input and have no default value. * Updating footer copyright date to 2024. * Adding check for update on login state within Auth to keep user logged in when checking endpoints. * Starting to update marketdetails page. * Updating. * Fixing charts and tables so test data populates through. * Updating to make workable. * Rearranging marketdetails layout, including calculation of current proabbility. * Simplifying authorization as it relates to secure actions. * Slight tweaks to simplify login process. * Redirect to same page after login. * Updating. * Added modal draft. * Update, resolve modal working. * Adding isResolved logic. * Adding placebet modal button. * Tweaking, updating bet buttons. * Updating bet modal and buttons. * Fixing loginmodal. * No longer working, messing with hooks to try to make marketdetails reload upon successful bet. * Updating page working. * Updating chart with currentProbability, starting ActivityModal. * Setting up activity tabs, hack for login and reloading of isLoggedIn. * Bet layout grid working. * Attempting to update positions display. * Showing positions. * Update, adding trading tabs. * Working tabs for betting modal. * Adding coin in bets activity. * Update API to include /v0/markets/positions/{marketId}/{username} * Adding sell shares capability to modal. * Updating sell buttons, navbar, sidebar. * Updating column headers. * Update, populating market table with actual market details from each market. * Adding functionality to be able to toggle between full and partial description display. * Adding validation on sell and buy side. * Updating state so that market chart updates with trades. * Update. * Fix sell button so that maximum sell can't be more than shares owned. * Update, adding tests to fix divide by zero calculations problem. * Fix kill market with back and fourth trades. * Fix testing, restrict title and description length. * Updating with public profile information. * Update frontend stuff, profile things. --------- Co-authored-by: Marko Kovač <[email protected]>
- Loading branch information