mars-v2-frontend/package.json
Gustavo Mauricio 1deba2059e
MP-1699: Trade on Margin Account (#52)
* update generated types

* added CRO to token info

* update contract addresses to match latest deployment

* feat: token prices fetched from oracle contract

* trade page initial commit

* trade asset action hook

* extract max swap amount logic into custom hook

* trade component ui adjustments

* trade container min-width and some styling improvements

* trade success message and loading indicator

* normalize naming conventions on trading

* max swap amount formula adjustments

* trade execute msg with borrow. code cleanup

* fix: click max update tokenOut amount. remove wallet from fund denom

* delay token amount decimal conversion. input formatting

* increase hardcoded gas

* renamed max swappable amount hook

* display token prices and market information on landing page

* reset trade amounts when selected account change

* max trade amount cleanup and minor performance optimizations

* fix: liabilities value with 1 hour interest buffer for trade action

* add token symbol to wallet and account labels

* swap trade pairs icon and basic functionality

* remove unnecessary optional chaining. comment adjusted

* refactor useTokenPrices to build query dynamically on tokens data

* extracted trade container and respective functionality into separate file

* fix: properly calculate positions after full swap

* mp-1218: trading using wallet
2022-11-22 10:14:12 +01:00

55 lines
1.6 KiB
JSON

{
"name": "mars-v2-frontend",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"format": "eslint . --ext=ts,tsx --fix && prettier --write ./**/*.ts ./**/*.tsx",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@cosmjs/cosmwasm-stargate": "^0.29.0",
"@cosmjs/stargate": "^0.29.0",
"@headlessui/react": "^1.7.0",
"@heroicons/react": "^2.0.11",
"@keplr-wallet/cosmos": "^0.10.24",
"@metamask/detect-provider": "^1.2.0",
"@radix-ui/react-slider": "^1.0.0",
"@sentry/nextjs": "^7.12.1",
"@tanstack/react-query": "^4.3.4",
"@tanstack/react-query-devtools": "^4.12.0",
"@tanstack/react-table": "^8.5.15",
"@tippyjs/react": "^4.2.6",
"bech32": "^2.0.0",
"bignumber.js": "^9.1.0",
"ethereumjs-util": "^7.1.5",
"graphql": "^16.6.0",
"graphql-request": "^5.0.0",
"next": "12.3.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-number-format": "^5.1.0",
"react-toastify": "^9.0.8",
"use-local-storage-state": "^18.1.1",
"zustand": "^4.1.1"
},
"devDependencies": {
"@keplr-wallet/types": "^0.10.24",
"@svgr/webpack": "^6.4.0",
"@types/node": "18.7.14",
"@types/react": "18.0.18",
"@types/react-dom": "18.0.6",
"autoprefixer": "^10.4.13",
"eslint": "8.23.0",
"eslint-config-next": "12.3.1",
"eslint-plugin-import": "^2.26.0",
"postcss": "^8.4.16",
"prettier": "^2.7.1",
"prettier-plugin-tailwindcss": "^0.1.13",
"tailwindcss": "^3.2.1",
"typescript": "4.8.2"
}
}