Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump [email protected] #613

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contracts/predicate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"devDependencies": {
"dotenv": "16.4.1",
"fuels": "0.94.4",
"fuels": "0.95.0",
"vitest": "1.2.2",
"tsx": "4.7.1"
}
Expand Down
2 changes: 1 addition & 1 deletion docker/erc20-deployer/deployer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dependencies": {
"@fuel-bridge/test-utils": "0.6.0",
"ethers": "6.11.0",
"fuels": "0.94.4"
"fuels": "0.95.0"
},
"devDependencies": {
"ts-node": "^10.9.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/app-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"peerDependencies": {
"@fuels/ui": "workspace:*",
"ethers": "6.11.0",
"fuels": "0.94.4",
"fuels": "0.95.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwind-variants": "0.1.20",
Expand All @@ -27,7 +27,7 @@
"@types/react": "18.2.54",
"@types/react-dom": "18.2.22",
"ethers": "6.11.0",
"fuels": "0.94.4",
"fuels": "0.95.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwind-variants": "0.1.20",
Expand Down
4 changes: 2 additions & 2 deletions packages/app-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dayjs": "1.11.10",
"ethers": "6.11.0",
"framer-motion": "11.0.3",
"fuels": "0.94.4",
"fuels": "0.95.0",
"next-themes": "0.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down Expand Up @@ -53,7 +53,7 @@
"dayjs": "1.11.10",
"ethers": "6.11.0",
"framer-motion": "11.0.3",
"fuels": "0.94.4",
"fuels": "0.95.0",
"next-themes": "0.2.1",
"npm-run-all": "^4.1.5",
"postcss": "8.4.33",
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"devDependencies": {
"@fuels/playwright-utils": "0.20.0",
"@synthetixio/synpress": "https://github.com/LuizAsFight/synpress",
"fuels": "0.94.4",
"fuels": "0.95.0",
"app-commons": "workspace:*",
"viem": "2.20.1",
"wagmi": "2.12.7"
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"drizzle-orm": "^0.31.2",
"ethers": "^6.13.1",
"express": "5.0.0",
"fuels": "0.94.4",
"fuels": "0.95.0",
"graphql": "^16.9.0",
"graphql-yoga": "5.6.0",
"kafkajs": "2.2.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"generate:defs": "node scripts/create-defs.mjs"
},
"dependencies": {
"@fuel-ts/address": "0.76.0",
"@fuel-ts/math": "0.76.0",
"@fuel-ts/address": "0.95.0",
"@fuel-ts/math": "0.95.0",
"@fuels/assets": "0.20.0",
"@radix-ui/colors": "3.0.0",
"@radix-ui/react-accordion": "1.1.2",
Expand Down
10 changes: 7 additions & 3 deletions packages/ui/src/components/InputAmount/InputAmount.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { useContext, useEffect, useMemo, useState } from 'react';

import { type BN, type FormatConfig, bn } from '@fuel-ts/math';
import { DECIMAL_UNITS, DEFAULT_MIN_PRECISION } from '@fuel-ts/math/configs';
import {
DEFAULT_DECIMAL_UNITS,
DEFAULT_MIN_PRECISION,
DEFAULT_PRECISION,
} from '@fuel-ts/math/configs';

import { IconChevronDown } from '@tabler/icons-react';

Expand Down Expand Up @@ -46,8 +50,8 @@ export type InputAmountCoinSelectorProps = ButtonProps & {
};

const DEFAULT_FORMAT: FormatConfig = {
units: DECIMAL_UNITS,
precision: DECIMAL_UNITS,
units: DEFAULT_DECIMAL_UNITS,
precision: DEFAULT_PRECISION,
};

export const InputAmountRoot = createComponent<InputAmountProps, typeof VStack>(
Expand Down
7 changes: 5 additions & 2 deletions packages/ui/src/components/InputAmount/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bn } from '@fuel-ts/math';
import { DECIMAL_UNITS } from '@fuel-ts/math/configs';
import { DEFAULT_DECIMAL_UNITS } from '@fuel-ts/math/configs';

export function formatAmountLeadingZeros(text: string): string {
const valueWithoutLeadingZeros = text
Expand All @@ -16,7 +16,10 @@ export function formatAmountLeadingZeros(text: string): string {
return text;
}

export function createAmount(text: string, units: number = DECIMAL_UNITS) {
export function createAmount(
text: string,
units: number = DEFAULT_DECIMAL_UNITS,
) {
const textAmountFixed = formatAmountLeadingZeros(text);
return {
text: textAmountFixed,
Expand Down
Loading
Loading