Skip to content

Commit

Permalink
feat: add metamask sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
EdouardBougon committed Dec 10, 2024
1 parent 1fe488a commit e13ed39
Show file tree
Hide file tree
Showing 24 changed files with 460 additions and 438 deletions.
2 changes: 1 addition & 1 deletion examples/with-create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"typescript": "5.5.2",
"util": "0.12.5",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-app-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-custom-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-mint-nft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-rainbow-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-siwe-iron-session/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-siwe-next-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-wallet-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17",
"wagmi": "^2.13.3",
"@tanstack/react-query": "^5.55.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"typescript": "5.5.2",
"viem": "2.17.0",
"vitest": "2.0.5",
"wagmi": "^2.12.17"
"wagmi": "^2.13.3"
},
"packageManager": "[email protected]",
"pnpm": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rainbowkit/generated-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17"
"wagmi": "^2.13.3"
},
"devDependencies": {
"@types/node": "^20.14.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-rainbowkit/templates/next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17"
"wagmi": "^2.13.3"
},
"devDependencies": {
"@types/node": "^20.14.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"viem": "2.17.0",
"wagmi": "^2.12.17"
"wagmi": "^2.13.3"
},
"scripts": {
"dev": "next dev",
Expand Down
2 changes: 1 addition & 1 deletion packages/rainbow-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"react": ">=18",
"react-dom": ">=18",
"viem": "2.x",
"wagmi": "^2.9.0"
"wagmi": "^2.13.3"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/rainbowkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"react": ">=18",
"react-dom": ">=18",
"viem": "2.x",
"wagmi": "^2.9.0"
"wagmi": "^2.13.3"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/rainbowkit/src/components/QRCode/QRCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function QRCode({
const dots: ReactElement[] = [];
const matrix = generateMatrix(uri, ecl);
const cellSize = size / matrix.length;
const dotZize = cellSize / (matrix.length < 70 ? 3 : 2); // calculate size of single dots
const qrList = [
{ x: 0, y: 0 },
{ x: 1, y: 0 },
Expand Down Expand Up @@ -102,7 +103,7 @@ export function QRCode({
cy={j * cellSize + cellSize / 2}
fill="black"
key={`circle-${i}-${j}`}
r={cellSize / 3} // calculate size of single dots
r={dotZize}
/>,
);
}
Expand Down
Loading

0 comments on commit e13ed39

Please sign in to comment.