Skip to content

Commit

Permalink
[ECO-2254] Update deps (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBl69 authored Oct 9, 2024
1 parent 81a233e commit d46820d
Show file tree
Hide file tree
Showing 7 changed files with 1,791 additions and 1,599 deletions.
56 changes: 28 additions & 28 deletions src/typescript/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,64 +18,64 @@
"@econia-labs/emojicoin-sdk": "workspace:*",
"@emoji-mart/data": "https://github.com/econia-labs/emoji-mart/raw/emojicoin-dot-fun/packages/emoji-mart-data/emoji-mart-data-v1.2.1.tgz",
"@emoji-mart/react": "https://github.com/econia-labs/emoji-mart/raw/emojicoin-dot-fun/packages/emoji-mart-react/emoji-mart-react-v1.1.1.tgz",
"@emotion/is-prop-valid": "^1.2.2",
"@headlessui/react": "^2.1.1",
"@emotion/is-prop-valid": "^1.3.1",
"@headlessui/react": "^2.1.9",
"@headlessui/tailwindcss": "^0.2.1",
"@martianwallet/aptos-wallet-adapter": "^0.0.5",
"@next/bundle-analyzer": "^14.2.4",
"@noble/hashes": "^1.4.0",
"@next/bundle-analyzer": "^14.2.15",
"@noble/hashes": "^1.5.0",
"@pontem/wallet-adapter-plugin": "^0.2.1",
"@popperjs/core": "^2.11.8",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@radix-ui/react-tooltip": "^1.1.3",
"@rise-wallet/wallet-adapter": "^0.1.2",
"@tanstack/react-query": "^5.49.2",
"@tanstack/react-query": "^5.59.3",
"@types/semver": "^7.5.8",
"big.js": "^6.2.1",
"big.js": "^6.2.2",
"clsx": "^2.1.1",
"emoji-mart": "https://github.com/econia-labs/emoji-mart/raw/emojicoin-dot-fun/packages/emoji-mart/emoji-mart-v5.6.0.tgz",
"emoji-regex": "^10.3.0",
"framer-motion": "^11.3.21",
"emoji-regex": "^10.4.0",
"framer-motion": "^11.11.4",
"immer": "^10.1.1",
"lodash": "^4.17.21",
"lucide-react": "^0.400.0",
"next": "^14.2.4",
"next": "^14.2.15",
"react": "^18.3.1",
"react-confetti": "^6.1.0",
"react-device-detect": "^2.2.3",
"react-dom": "^18.3.1",
"react-popper": "^2.3.0",
"react-toastify": "^9.1.3",
"react-use": "^17.5.1",
"semver": "^7.6.2",
"semver": "^7.6.3",
"server-only": "^0.0.1",
"sharp": "^0.33.4",
"styled-components": "^6.1.11",
"sharp": "^0.33.5",
"styled-components": "^6.1.13",
"styled-system": "^5.1.5",
"stylis": "^4.3.2",
"tailwind-merge": "^2.4.0",
"stylis": "^4.3.4",
"tailwind-merge": "^2.5.3",
"use-scramble": "^2.2.15",
"zustand": "^4.5.4"
"zustand": "^4.5.5"
},
"devDependencies": {
"@playwright/test": "^1.45.3",
"@playwright/test": "^1.48.0",
"@types/big.js": "^6.2.2",
"@types/lodash": "^4.17.6",
"@types/node": "^20.14.9",
"@types/react": "^18.3.3",
"@types/lodash": "^4.17.10",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@types/styled-system": "^5.1.22",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"autoprefixer": "^10.4.19",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.4",
"eslint-config-next": "^14.2.15",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"postcss": "^8.4.39",
"prettier": "^3.3.2",
"tailwindcss": "^3.4.4",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"tailwindcss": "^3.4.13",
"typescript": "5.6.2"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const PrettyHex = ({
text: prettifyHex(hex),
overdrive: false,
overflow: true,
speed: typeof scramble === "undefined" ? 0 : scrambleProps.speed ?? 0.6,
speed: typeof scramble === "undefined" ? 0 : (scrambleProps.speed ?? 0.6),
playOnMount: true,
...scrambleProps,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ const Liquidity: React.FC<LiquidityProps> = ({ market, geoblocked }) => {
type={direction === "add" ? "number" : "text"}
disabled={direction === "remove"}
value={
direction === "add" ? liquidity : fmtCoin(removeLiquidityResult?.quote_amount) ?? "..."
direction === "add"
? liquidity
: (fmtCoin(removeLiquidityResult?.quote_amount) ?? "...")
}
></input>
</Column>
Expand All @@ -212,8 +214,8 @@ const Liquidity: React.FC<LiquidityProps> = ({ market, geoblocked }) => {
}}
value={
direction === "add"
? fmtCoin(provideLiquidityResult?.base_amount) ?? "..."
: fmtCoin(removeLiquidityResult?.base_amount) ?? "..."
? (fmtCoin(provideLiquidityResult?.base_amount) ?? "...")
: (fmtCoin(removeLiquidityResult?.base_amount) ?? "...")
}
type="text"
disabled
Expand All @@ -240,7 +242,7 @@ const Liquidity: React.FC<LiquidityProps> = ({ market, geoblocked }) => {
color: direction === "add" ? theme.colors.lightGray + "99" : "white",
}}
value={
direction === "add" ? fmtCoin(provideLiquidityResult?.lp_coin_amount) ?? "..." : lp
direction === "add" ? (fmtCoin(provideLiquidityResult?.lp_coin_amount) ?? "...") : lp
}
type={direction === "add" ? "text" : "number"}
onChange={(e) => setLP(e.target.value === "" ? "" : Number(e.target.value))}
Expand Down Expand Up @@ -352,7 +354,7 @@ const Liquidity: React.FC<LiquidityProps> = ({ market, geoblocked }) => {
<AptosInputLabel />

<Text textScale={{ _: "bodySmall", tablet: "bodyLarge" }} textTransform="uppercase">
{market ? fmtCoin(market.state.cpammRealReserves.quote) ?? loadingComponent : "-"}
{market ? (fmtCoin(market.state.cpammRealReserves.quote) ?? loadingComponent) : "-"}
</Text>
</Flex>

Expand All @@ -364,7 +366,7 @@ const Liquidity: React.FC<LiquidityProps> = ({ market, geoblocked }) => {
<EmojiInputLabel emoji={market ? market.market.symbolData.symbol : "-"} />

<Text textScale={{ _: "bodySmall", tablet: "bodyLarge" }} textTransform="uppercase">
{market ? fmtCoin(market.state.cpammRealReserves.base) ?? loadingComponent : "-"}
{market ? (fmtCoin(market.state.cpammRealReserves.base) ?? loadingComponent) : "-"}
</Text>
</Flex>
</StyledAddLiquidityWrapper>
Expand Down
2 changes: 1 addition & 1 deletion src/typescript/frontend/src/lib/routes/home-page-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export const toHomePageParamsWithDefault = (searchParams: HomePageSearchParams |
// Converts a bare `0x` and a `null` input to undefined. If it's already undefined, it remains so.
// Otherwise, return the value.
export const handleEmptySearchBytes = (searchBytes?: string | null) => {
return searchBytes === "0x" ? undefined : searchBytes ?? undefined;
return searchBytes === "0x" ? undefined : (searchBytes ?? undefined);
};
8 changes: 4 additions & 4 deletions src/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"dependencies": {
"@types/node": "^20.14.9"
"@types/node": "^20.16.11"
},
"devDependencies": {
"@types/node": "^20.14.1",
"dotenv-cli": "^7.4.2",
"prettier": "^3.3.2",
"tsx": "^4.16.0",
"turbo": "^2.0.6"
"prettier": "^3.3.3",
"tsx": "^4.19.1",
"turbo": "^2.1.3"
},
"license": "Apache-2.0",
"name": "@econia-labs/emojicoin",
Expand Down
Loading

0 comments on commit d46820d

Please sign in to comment.