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: merge main into l10n_main #321

Merged
merged 17 commits into from
Oct 30, 2024
Merged
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
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,31 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [3.9.0](https://github.com/lifinance/widget/compare/v3.8.2...v3.9.0) (2024-10-28)


### Features

* add active account tracking to the internal wallet management ([0872fe2](https://github.com/lifinance/widget/commit/0872fe2da2d2b3bd450d4cad181f5b50dd064c41))
* add support for okx bitcoin wallet ([175c5fb](https://github.com/lifinance/widget/commit/175c5fb6b251dd591d14530303aeb8f41788f071))
* try to auto-populate destination address for cross-ecosystem transfers ([323d3a1](https://github.com/lifinance/widget/commit/323d3a16255763e44caa0b3126641bb92a320da2))


### Bug Fixes

* always update the destination chain to match the source one ([4d428ea](https://github.com/lifinance/widget/commit/4d428ea566763e77fdbde73c0bd78f6adea41e67))
* make destination address required if source address is a smart contract wallet ([34d8528](https://github.com/lifinance/widget/commit/34d8528a770198132b67d4af373961dce5d0ebe5))

### [3.8.2](https://github.com/lifinance/widget/compare/v3.8.1...v3.8.2) (2024-10-24)


### Bug Fixes

* avoid gas check for smart contract wallets ([1bd956d](https://github.com/lifinance/widget/commit/1bd956d93d1bceb5c27b64e7ca2c8777d5b9ee7a))
* improve safe wallet connectivity ([df5ded3](https://github.com/lifinance/widget/commit/df5ded3e4f195ac96090509e3e54933a45232c97))
* replace first-child with first-of-type to avoid warning ([d098a7c](https://github.com/lifinance/widget/commit/d098a7cc78e3e9aacf1bf10c5652b0ef60e638ee))
* solana providers doesn't update accounts sometimes ([e911bea](https://github.com/lifinance/widget/commit/e911beaa43ceaf39a8d88e22f166db876174da10))

### [3.8.1](https://github.com/lifinance/widget/compare/v3.8.0...v3.8.1) (2024-10-21)


Expand Down
7 changes: 4 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"ignoreUnknown": false,
"ignore": ["*.md", "*.lock"]
"ignore": ["*.md", "*.lock", "*.svelte", "*.vue"]
},
"formatter": {
"enabled": true,
Expand All @@ -25,8 +25,9 @@
"noForEach": "off"
},
"correctness": {
"noUnusedLabels": "warn",
"noUnusedVariables": "warn",
"noUnusedLabels": "error",
"noUnusedVariables": "error",
"noUnusedImports": "error",
"useExhaustiveDependencies": "error",
"useHookAtTopLevel": "error"
},
Expand Down
16 changes: 8 additions & 8 deletions examples/deposit-flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@
"preview": "vite preview"
},
"dependencies": {
"@lifi/sdk": "^3.3.0",
"@lifi/sdk": "^3.4.0",
"@lifi/widget": "workspace:^",
"@mui/material": "^5.16.7",
"@tanstack/react-query": "^5.59.15",
"@tanstack/react-query": "^5.59.16",
"events": "^3.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "^2.21.29",
"wagmi": "^2.12.19"
"viem": "^2.21.35",
"wagmi": "^2.12.25"
},
"devDependencies": {
"@types/events": "^3.0.3",
"@types/node": "^22.7.6",
"@types/react": "^18.3.3",
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.3",
"typescript": "^5.5.4",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-plugin-node-polyfills": "^0.22.0"
}
}
19 changes: 10 additions & 9 deletions examples/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,30 @@
"preview": "vite preview"
},
"dependencies": {
"@dynamic-labs/ethereum": "^2.3.8",
"@dynamic-labs/sdk-react-core": "^2.3.8",
"@dynamic-labs/solana": "^2.3.8",
"@dynamic-labs/wagmi-connector": "^2.3.8",
"@dynamic-labs/bitcoin": "^3.4.4",
"@dynamic-labs/ethereum": "^3.4.4",
"@dynamic-labs/sdk-react-core": "^3.4.4",
"@dynamic-labs/solana": "^3.4.4",
"@dynamic-labs/wagmi-connector": "^3.4.4",
"@lifi/wallet-management": "workspace:^",
"@lifi/widget": "workspace:^",
"@mui/material": "^5.16.7",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.95.4",
"@tanstack/react-query": "^5.59.15",
"@tanstack/react-query": "^5.59.16",
"mitt": "^3.0.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "^2.21.29",
"wagmi": "^2.12.19"
"viem": "^2.21.35",
"wagmi": "^2.12.25"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"globals": "^15.9.0",
"typescript": "^5.5.4",
"vite": "^5.4.9"
"vite": "^5.4.10"
}
}
1 change: 1 addition & 0 deletions examples/dynamic/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export function App() {
[ChainId.SOL]: [
// Replace with your private Solana RPC
'https://chaotic-restless-putty.solana-mainnet.quiknode.pro/',
'https://dacey-pp61jd-fast-mainnet.helius-rpc.com/',
],
},
},
Expand Down
4 changes: 2 additions & 2 deletions examples/nextjs-page-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^22.7.6",
"@types/react": "^18.3.3",
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"typescript": "^5.5.4"
}
Expand Down
8 changes: 4 additions & 4 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"start": "next start"
},
"dependencies": {
"@lifi/sdk": "^3.3.0",
"@lifi/sdk": "^3.4.0",
"@lifi/widget": "workspace:^",
"next": "^14.2.15",
"next": "^14.2.16",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^22.7.6",
"@types/react": "^18.3.3",
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"typescript": "^5.5.4"
}
Expand Down
10 changes: 5 additions & 5 deletions examples/rainbowkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
"dependencies": {
"@lifi/widget": "workspace:^",
"@rainbow-me/rainbowkit": "^2.2.0",
"@tanstack/react-query": "^5.59.15",
"@tanstack/react-query": "^5.59.16",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "^2.21.29",
"wagmi": "^2.12.19"
"viem": "^2.21.35",
"wagmi": "^2.12.25"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"typescript": "^5.5.4",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-plugin-node-polyfills": "^0.22.0"
}
}
4 changes: 2 additions & 2 deletions examples/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
},
"devDependencies": {
"@remix-run/dev": "^2.13.1",
"@types/react": "^18.3.3",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"typescript": "^5.5.4",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-tsconfig-paths": "^5.0.1"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions examples/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@tsconfig/svelte": "^5.0.4",
"@types/events": "^3.0.3",
"@types/node": "^22.7.6",
"@types/react": "^18.3.3",
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"svelte": "^4.2.18",
"svelte-check": "^4.0.5",
"svelte-preprocess": "^6.0.2",
"tslib": "^2.8.0",
"typescript": "^5.5.4",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-plugin-node-polyfills": "^0.22.0"
},
"dependencies": {
Expand Down
14 changes: 7 additions & 7 deletions examples/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
"preview": "vite preview"
},
"dependencies": {
"@lifi/sdk": "^3.3.0",
"@lifi/sdk": "^3.4.0",
"@lifi/widget": "workspace:^",
"@mui/material": "^5.16.5",
"@tanstack/react-query": "^5.59.15",
"@tanstack/react-query": "^5.59.16",
"events": "^3.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"wagmi": "^2.12.19"
"wagmi": "^2.12.25"
},
"devDependencies": {
"@types/events": "^3.0.3",
"@types/node": "^22.7.6",
"@types/react": "^18.3.3",
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.3",
"typescript": "^5.5.4",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-plugin-node-polyfills": "^0.22.0"
}
}
6 changes: 3 additions & 3 deletions examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"vue": "^3.5.12"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-vue": "^5.1.1",
"@vitejs/plugin-vue-jsx": "^4.0.0",
"typescript": "^5.5.4",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-plugin-node-polyfills": "^0.22.0",
"vue-tsc": "^2.0.29"
"vue-tsc": "^2.1.8"
}
}
10 changes: 5 additions & 5 deletions examples/zustand-widget-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"dependencies": {
"@lifi/widget": "workspace:^",
"@mui/material": "^5.16.7",
"@tanstack/react-query": "^5.59.15",
"@tanstack/react-query": "^5.59.16",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"wagmi": "^2.12.19",
"wagmi": "^2.12.25",
"zustand": "^4.5.5"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.3",
"globals": "^15.9.0",
"typescript": "^5.5.3",
"vite": "^5.4.9",
"vite": "^5.4.10",
"vite-plugin-node-polyfills": "^0.22.0"
}
}
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.8.1",
"version": "3.9.0",
"private": true,
"sideEffects": false,
"type": "module",
Expand All @@ -23,6 +23,8 @@
"check:write:unsafe": "biome check --write --unsafe",
"check:types": "pnpm -r --parallel check:types",
"check:circular-deps": "pnpm -r --parallel check:circular-deps",
"link:bigmi": "pnpm -r --parallel link:bigmi",
"unlink:bigmi": "pnpm -r --parallel unlink:bigmi",
"link:sdk": "pnpm -r --parallel link:sdk",
"unlink:sdk": "pnpm -r --parallel unlink:sdk",
"pre-commit": "pnpm check && pnpm check:types && pnpm check:circular-deps",
Expand All @@ -47,8 +49,8 @@
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/events": "^3.0.3",
"@types/node": "^22.7.6",
"@types/react": "^18.3.11",
"@types/node": "^22.8.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"cpy-cli": "^5.0.0",
"fs-extra": "^11.2.0",
Expand Down
24 changes: 12 additions & 12 deletions packages/wallet-management/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/wallet-management",
"version": "3.3.0",
"version": "3.4.0",
"description": "LI.FI Wallet Management solution.",
"type": "module",
"main": "./src/index.ts",
Expand All @@ -18,6 +18,8 @@
"check:types": "tsc --noEmit",
"check:circular-deps": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx')",
"check:circular-deps-graph": "madge --circular $(find ./src -name '*.ts' -o -name '*.tsx') --image graph.svg",
"link:bigmi": "pnpm link --global @bigmi/client",
"unlink:bigmi": "pnpm link --global @bigmi/client",
"link:sdk": "pnpm link --global @lifi/sdk",
"unlink:sdk": "pnpm link --global @lifi/sdk"
},
Expand Down Expand Up @@ -46,29 +48,27 @@
"lifi"
],
"dependencies": {
"@bigmi/client": "^0.0.2",
"@bigmi/core": "^0.0.2",
"@bigmi/react": "^0.0.2",
"@bigmi/client": "^0.0.4",
"@bigmi/core": "^0.0.4",
"@bigmi/react": "^0.0.4",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@lifi/sdk": "^3.3.0",
"@lifi/sdk": "^3.4.0",
"@mui/icons-material": "^5.16.7",
"@mui/lab": "^5.0.0-alpha.173",
"@mui/material": "^5.16.7",
"@mui/system": "^5.16.7",
"@safe-global/safe-apps-provider": "^0.18.3",
"@safe-global/safe-apps-sdk": "^9.1.0",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.95.4",
"@wagmi/core": "^2.13.8",
"i18next": "^23.16.0",
"@wagmi/core": "^2.14.1",
"i18next": "^23.16.4",
"mitt": "^3.0.1",
"react": "^18.3.1",
"react-i18next": "^15.0.3",
"react-i18next": "^15.1.0",
"use-sync-external-store": "^1.2.2",
"viem": "^2.21.29",
"wagmi": "^2.12.19",
"viem": "^2.21.35",
"wagmi": "^2.12.25",
"zustand": "^4.5.5"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useLastConnectedAccount } from '../hooks/useAccount.js'
import { useWalletManagementEvents } from '../hooks/useWalletManagementEvents.js'
import { WalletManagementEvent } from '../types/events.js'
import { getConnectorIcon } from '../utils/getConnectorIcon.js'
import { isWalletInstalledAsync } from '../utils/isWalletInstalledAsync.js'
import { isWalletInstalled } from '../utils/isWalletInstalled.js'
import type { WalletListItemButtonProps } from './types.js'

interface EVMListItemButtonProps extends WalletListItemButtonProps {
Expand All @@ -37,9 +37,7 @@ export const EVMListItemButton = ({

const handleEVMConnect = async () => {
try {
const identityCheckPassed = await isWalletInstalledAsync(
(connector as Connector).id
)
const identityCheckPassed = isWalletInstalled((connector as Connector).id)
if (!identityCheckPassed) {
onNotInstalled?.(connector as Connector)
return
Expand Down
Loading