Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: add Permit (ERC-2612), Permit2 and Wallet Call API (EIP-5792) support #331

Merged
merged 30 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
cb8cd45
feat: add Permit/Permit2 support
chybisov Dec 10, 2024
4181723
Merge branch 'main' into permits
chybisov Jan 7, 2025
9d6b411
feat: improve relayer quote flow
chybisov Jan 9, 2025
0032afd
chore: switch to production endpoint
chybisov Jan 14, 2025
0020ce5
chore: bump packages
chybisov Jan 14, 2025
f4eae15
feat: improve relayer support
chybisov Jan 14, 2025
0035db9
fix: improve relay support
chybisov Jan 15, 2025
f20ccb5
chore(release): 3.14.0-beta.0
chybisov Jan 15, 2025
d7a44a2
fix: reduce relay quotes
chybisov Jan 20, 2025
44fedba
chore: bump bigmi peer deps
chybisov Jan 20, 2025
1728a7a
Merge branch 'main' into permits
chybisov Jan 24, 2025
8b1993f
fix: improve relayed quote handling
chybisov Jan 28, 2025
f1eab97
Merge branch 'main' into permits
chybisov Feb 5, 2025
7f5c595
fix: wait for contract to load
chybisov Feb 6, 2025
32b7e6d
chore: bump packages
chybisov Feb 11, 2025
91d841f
feat: add transaction rejected error handling
chybisov Mar 3, 2025
cbc6e95
fix: improve permits handling
chybisov Mar 3, 2025
fd167f1
fix: update metamask icon
chybisov Mar 3, 2025
57ac4d0
Merge branch 'main' into permits
chybisov Mar 3, 2025
cc717bd
chore: bump packages
chybisov Mar 4, 2025
101e1f8
fix: enable gasless txs only when relayer is supported
chybisov Mar 4, 2025
7a6749f
Merge branch 'main' into permits
chybisov Mar 4, 2025
ceded4d
chore: remove unused keys
chybisov Mar 4, 2025
def045b
chore: switch to staging
chybisov Mar 4, 2025
1fa534c
chore: bump packages
chybisov Mar 6, 2025
51ace2c
fix: metamask icon
chybisov Mar 6, 2025
750e983
chore: bump packages
chybisov Mar 7, 2025
7f82dc4
fix: should not fetch relayer quote when batching is supported
chybisov Mar 10, 2025
8caa350
Merge branch 'main' into permits
chybisov Mar 10, 2025
a4641bb
chore: bump packages
chybisov Mar 10, 2025
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
14 changes: 7 additions & 7 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.5.4",
"@lifi/sdk": "^3.6.0",
"@lifi/widget": "workspace:^",
"@mui/material": "^6.4.6",
"@tanstack/react-query": "^5.66.9",
"@mui/material": "^6.4.7",
"@tanstack/react-query": "^5.67.2",
"events": "^3.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.23.5",
"viem": "^2.23.9",
"wagmi": "^2.14.12"
},
"devDependencies": {
"@types/events": "^3.0.3",
"@types/node": "^22.13.5",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"typescript": "^5.8.2",
"vite": "^6.2.1",
"vite-plugin-node-polyfills": "^0.23.0"
}
}
20 changes: 10 additions & 10 deletions examples/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@
"preview": "vite preview"
},
"dependencies": {
"@dynamic-labs/bitcoin": "^3.9.7",
"@dynamic-labs/ethereum": "^3.9.7",
"@dynamic-labs/sdk-react-core": "^3.9.7",
"@dynamic-labs/solana": "^3.9.7",
"@dynamic-labs/wagmi-connector": "^3.9.7",
"@dynamic-labs/bitcoin": "^3.9.13",
"@dynamic-labs/ethereum": "^3.9.13",
"@dynamic-labs/sdk-react-core": "^3.9.13",
"@dynamic-labs/solana": "^3.9.13",
"@dynamic-labs/wagmi-connector": "^3.9.13",
"@lifi/wallet-management": "workspace:^",
"@lifi/widget": "workspace:^",
"@mui/material": "^6.4.6",
"@mui/material": "^6.4.7",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.98.0",
"@tanstack/react-query": "^5.66.9",
"@tanstack/react-query": "^5.67.2",
"mitt": "^3.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.23.5",
"viem": "^2.23.9",
"wagmi": "^2.14.12"
},
"devDependencies": {
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react-swc": "^3.8.0",
"globals": "^16.0.0",
"typescript": "^5.7.3",
"vite": "^6.2.0"
"typescript": "^5.8.2",
"vite": "^6.2.1"
}
}
6 changes: 3 additions & 3 deletions examples/nextjs-page-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
},
"dependencies": {
"@lifi/widget": "^3.17.1",
"next": "^15.1.7",
"next": "^15.2.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/node": "^22.13.5",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"typescript": "^5.7.3"
"typescript": "^5.8.2"
}
}
8 changes: 4 additions & 4 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"start": "next start"
},
"dependencies": {
"@lifi/sdk": "^3.5.4",
"@lifi/sdk": "^3.6.0",
"@lifi/widget": "^3.17.1",
"@mui/material-nextjs": "^6.4.3",
"next": "^15.1.7",
"next": "^15.2.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/node": "^22.13.5",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"typescript": "^5.7.3"
"typescript": "^5.8.2"
}
}
2 changes: 1 addition & 1 deletion examples/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@lifi/widget": "^3.17.1",
"nuxt": "3.15.4",
"nuxt": "3.16.0",
"veaury": "^2.6.2",
"vite-plugin-node-polyfills": "^0.23.0",
"vue": "^3.5.13",
Expand Down
18 changes: 9 additions & 9 deletions examples/privy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,31 @@
"@lifi/wallet-management": "^3.6.2",
"@lifi/widget": "^3.17.1",
"@mui/icons-material": "6.0.2",
"@mui/material": "^6.4.6",
"@privy-io/react-auth": "^2.5.0",
"@mui/material": "^6.4.7",
"@privy-io/react-auth": "^2.6.2",
"@privy-io/wagmi": "^1.0.3",
"@solana/wallet-adapter-base": "^0.9.23",
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/web3.js": "^1.98.0",
"@tanstack/react-query": "^5.66.9",
"@tanstack/react-query": "^5.67.2",
"mitt": "^3.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.23.5",
"viem": "^2.23.9",
"wagmi": "^2.14.12"
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@eslint/js": "^9.22.0",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.21.0",
"eslint": "^9.22.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.18",
"globals": "^16.0.0",
"typescript": "~5.7.2",
"typescript-eslint": "^8.22.0",
"vite": "^6.2.0",
"typescript": "~5.8.2",
"typescript-eslint": "^8.26.0",
"vite": "^6.2.1",
"vite-plugin-node-polyfills": "^0.23.0"
}
}
8 changes: 4 additions & 4 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.4",
"@tanstack/react-query": "^5.66.9",
"@tanstack/react-query": "^5.67.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.23.5",
"viem": "^2.23.9",
"wagmi": "^2.14.12"
},
"devDependencies": {
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react-swc": "^3.8.0",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"typescript": "^5.8.2",
"vite": "^6.2.1",
"vite-plugin-node-polyfills": "^0.23.0"
}
}
16 changes: 8 additions & 8 deletions examples/remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
},
"dependencies": {
"@lifi/widget": "^3.17.1",
"@remix-run/css-bundle": "^2.15.3",
"@remix-run/node": "^2.15.3",
"@remix-run/react": "^2.15.3",
"@remix-run/serve": "^2.15.3",
"@remix-run/css-bundle": "^2.16.0",
"@remix-run/node": "^2.16.0",
"@remix-run/react": "^2.16.0",
"@remix-run/serve": "^2.16.0",
"isbot": "^5.1.23",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"remix-utils": "^8.1.0"
"remix-utils": "^8.2.0"
},
"devDependencies": {
"@remix-run/dev": "^2.15.3",
"@remix-run/dev": "^2.16.0",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"typescript": "^5.8.2",
"vite": "^6.2.1",
"vite-tsconfig-paths": "^5.1.4"
},
"engines": {
Expand Down
10 changes: 5 additions & 5 deletions examples/reown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@lifi/wallet-management": "^3.6.2",
"@lifi/widget": "^3.17.1",
"@mui/material": "^6.4.6",
"@mui/material": "^6.4.7",
"@reown/appkit": "^1.6.9",
"@reown/appkit-adapter-bitcoin": "^1.6.9",
"@reown/appkit-adapter-solana": "^1.6.9",
Expand All @@ -22,19 +22,19 @@
"@solana/wallet-adapter-react": "^0.15.35",
"@solana/wallet-adapter-wallets": "^0.19.32",
"@solana/web3.js": "^1.98.0",
"@tanstack/react-query": "^5.66.9",
"@tanstack/react-query": "^5.67.2",
"mitt": "^3.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.23.5",
"viem": "^2.23.9",
"wagmi": "^2.14.12"
},
"devDependencies": {
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"globals": "^16.0.0",
"typescript": "~5.7.2",
"vite": "^6.2.0"
"typescript": "~5.8.2",
"vite": "^6.2.1"
}
}
10 changes: 5 additions & 5 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": "^5.0.3",
"@tsconfig/svelte": "^5.0.4",
"@types/events": "^3.0.3",
"@types/node": "^22.13.5",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"svelte": "^5.20.1",
"svelte-check": "^4.1.4",
"svelte": "^5.22.6",
"svelte-check": "^4.1.5",
"svelte-preprocess": "^6.0.2",
"tslib": "^2.8.1",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"typescript": "^5.8.2",
"vite": "^6.2.1",
"vite-plugin-node-polyfills": "^0.23.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,26 +10,26 @@
"preview": "vite preview"
},
"dependencies": {
"@lifi/sdk": "^3.5.4",
"@lifi/sdk": "^3.6.0",
"@lifi/wallet-management": "^3.6.2",
"@lifi/widget": "^3.17.1",
"@mui/material": "^6.4.6",
"@tanstack/react-query": "^5.66.9",
"@mui/material": "^6.4.7",
"@tanstack/react-query": "^5.67.2",
"@wagmi/connectors": "^5.7.8",
"events": "^3.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"viem": "^2.23.5",
"viem": "^2.23.9",
"wagmi": "^2.14.12"
},
"devDependencies": {
"@types/events": "^3.0.3",
"@types/node": "^22.13.5",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"typescript": "^5.8.2",
"vite": "^6.2.1",
"vite-plugin-node-polyfills": "^0.23.0"
}
}
4 changes: 2 additions & 2 deletions examples/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"typescript": "^5.8.2",
"vite": "^6.2.1",
"vite-plugin-node-polyfills": "^0.23.0",
"vue-tsc": "^2.2.2"
}
Expand Down
8 changes: 4 additions & 4 deletions examples/zustand-widget-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"@lifi/widget": "workspace:^",
"@mui/material": "^6.4.6",
"@tanstack/react-query": "^5.66.9",
"@mui/material": "^6.4.7",
"@tanstack/react-query": "^5.67.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"wagmi": "^2.14.12",
Expand All @@ -22,8 +22,8 @@
"@types/react-dom": "^19.0.4",
"@vitejs/plugin-react": "^4.3.4",
"globals": "^16.0.0",
"typescript": "^5.7.3",
"vite": "^6.2.0",
"typescript": "^5.8.2",
"vite": "^6.2.1",
"vite-plugin-node-polyfills": "^0.23.0"
}
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,30 @@
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@commitlint/cli": "^19.7.1",
"@commitlint/config-conventional": "^19.7.1",
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^14.6.1",
"@types/events": "^3.0.3",
"@types/node": "^22.13.5",
"@types/node": "^22.13.10",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"cpy-cli": "^5.0.0",
"fs-extra": "^11.3.0",
"husky": "^9.1.7",
"lerna": "8.2.0",
"lerna": "8.2.1",
"lint-staged": "^15.4.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"standard-version": "^9.5.0",
"typescript": "^5.7.3"
"typescript": "^5.8.2"
},
"pnpm": {
"overrides": {
"bs58": ">=4.0.1"
}
},
"packageManager": "pnpm@9.15.1"
"packageManager": "pnpm@9.15.5"
}
Loading
Loading