Skip to content

Commit

Permalink
Feat/ethers v6 migration moo (#2424)
Browse files Browse the repository at this point in the history
Co-authored-by: zaid.arain <zaid.arain@immutable.com>
Co-authored-by: Luã de Souza <eumesmo.ht@gmail.com>
  • Loading branch information
3 people committed Nov 27, 2024
1 parent 550384f commit bdafd2d
Show file tree
Hide file tree
Showing 12 changed files with 914 additions and 148 deletions.
2 changes: 1 addition & 1 deletion packages/checkout/sdk-sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@biom3/design-tokens": "^0.4.5",
"@biom3/react": "^0.28.6",
"@biom3/react": "^0.28.7",
"@imtbl/checkout-sdk": "workspace:*",
"@imtbl/checkout-widgets": "workspace:*",
"@imtbl/config": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/checkout/widgets-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@0xsquid/sdk": "^2.8.25",
"@biom3/design-tokens": "^0.4.5",
"@biom3/react": "^0.28.6",
"@biom3/react": "^0.28.7",
"@emotion/react": "^11.13.5",
"@imtbl/bridge-sdk": "workspace:*",
"@imtbl/checkout-sdk": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, BoxProps, DeeplyNestedSx } from '@biom3/react';
import { Box, BoxProps } from '@biom3/react';
import { merge } from 'ts-deepmerge';
import {
simpleLayoutStyle,
Expand Down Expand Up @@ -35,7 +35,7 @@ export function SimpleLayout({
}: SimpleLayoutProps) {
return (
<Box sx={responsiveStyles} testId="simpleLayout">
<Box testId={testId} sx={merge(simpleLayoutStyle, containerSx) as DeeplyNestedSx}>
<Box testId={testId} sx={merge(simpleLayoutStyle, containerSx)}>
{header && (
<Box sx={headerStyle(floatHeader)} testId="header">
{header}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
Body,
Box,
Button,
DeeplyNestedSx,
Divider,
Icon,
MenuItem,
Expand Down Expand Up @@ -140,7 +139,7 @@ export function TransactionItemWithdrawPending({
pr: 'base.spacing.x10',
},
borderTopRightRadius: '0',
} as unknown as DeeplyNestedSx}
}}
onExpandChange={
(expanded) => expanded
&& track({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function SquidIcon({
<SvgIcon
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
sx={merge({ w: '100%' }, sx) as DeeplyNestedSx}
sx={merge({ w: '100%' }, sx)}
className={className}
>
<rect width="24" height="24" fill="#E6FA36" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Checkout, TokenFilterTypes, TokenInfo } from '@imtbl/checkout-sdk';
import {
Box,
ButtCon,
DeeplyNestedSx,
Drawer,
FramedImage,
MenuItem,
Expand Down Expand Up @@ -229,7 +228,7 @@ export function TokenDrawerMenu({
'&:hover': {
boxShadow: ({ base }) => `0 0 0 ${base.border.size[200]} ${base.color.text.body.primary}`,
},
} as unknown as DeeplyNestedSx}
}}
/>
</SmartClone>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
Body,
ButtCon,
Button,
DeeplyNestedSx,
EllipsizedText,
FramedIcon,
FramedImage,
Expand Down Expand Up @@ -742,7 +741,7 @@ export function Review({
top: '-14px',
h: 'base.spacing.x10',
},
} as unknown as DeeplyNestedSx}
}}
/>
{/*
Expand Down Expand Up @@ -804,7 +803,7 @@ export function Review({
top: '-26px',
h: 'base.spacing.x10',
},
} as unknown as DeeplyNestedSx}
}}
/>
{/*
Expand Down Expand Up @@ -882,7 +881,7 @@ export function Review({
top: '-8px',
h: 'base.spacing.x5',
},
} as unknown as DeeplyNestedSx}
}}
/>
{/*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
Body, Box, Button, DeeplyNestedSx, FramedImage, Heading, Logo, useTheme,
Body, Box, Button, FramedImage, Heading, Logo, useTheme,
} from '@biom3/react';
import {
ChainId, EIP6963ProviderDetail, WrappedBrowserProvider, WalletProviderRdns,
Expand Down Expand Up @@ -80,7 +80,7 @@ export function WalletNetworkButton({
return (
<Box
testId={`${testId}-${walletProviderDetail?.info.rdns}-${chainId}-button-wrapper`}
sx={walletButtonOuterStyles as unknown as DeeplyNestedSx}
sx={walletButtonOuterStyles}
onClick={onWalletClick}
>
{isWalletConnect && walletLogoUrl ? (
Expand Down
2 changes: 1 addition & 1 deletion packages/checkout/widgets-sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@biom3/design-tokens": "^0.4.5",
"@biom3/react": "^0.28.6",
"@biom3/react": "^0.28.7",
"@imtbl/checkout-sdk": "workspace:*",
"@imtbl/checkout-widgets": "workspace:*",
"@imtbl/config": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/passport/sdk-sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"dependencies": {
"@biom3/design-tokens": "^0.4.5",
"@biom3/react": "^0.28.6",
"@biom3/react": "^0.28.7",
"@imtbl/blockchain-data": "workspace:*",
"@imtbl/config": "workspace:*",
"@imtbl/generated-clients": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-provider/src/sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
]
},
"dependencies": {
"@biom3/react": "^0.28.6",
"@biom3/react": "^0.28.7",
"@imtbl/sdk": "workspace:*",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
Expand Down
Loading

0 comments on commit bdafd2d

Please sign in to comment.