Skip to content

Commit

Permalink
Merge pull request #445 from safe-global/feature/wagmi-upgrade
Browse files Browse the repository at this point in the history
Feature: upgrade `wagmi` package to support wagmi `0.8.x`
  • Loading branch information
mmv08 authored Jan 27, 2023
2 parents 506b465 + f53a45b commit 8a1d38b
Show file tree
Hide file tree
Showing 9 changed files with 2,407 additions and 1,457 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-trainers-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@gnosis.pm/safe-apps-wagmi': major
---

This version is bumping versions of wagmi in order to work with wagmi0.10.10
8 changes: 4 additions & 4 deletions examples/wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"@gnosis.pm/safe-apps-provider": "^0.15.0",
"@gnosis.pm/safe-apps-sdk": "^7.7.0",
"@gnosis.pm/safe-apps-wagmi": "1.2.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@wagmi/core": "^0.7.6",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@wagmi/core": "^0.8.19",
"buffer": "^6.0.3",
"ethers": "^5.7.2",
"events": "^3.3.0",
Expand All @@ -17,7 +17,7 @@
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"util": "^0.12.5",
"wagmi": "^0.8.7",
"wagmi": "^0.10.15",
"web-vitals": "^3.1.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/wagmi/src/components/Connect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function Connect() {
const { disconnect } = useDisconnect();
const { config } = usePrepareSendTransaction({
request: {
to: 'awkweb.eth',
to: '0x000000000000000000000000000000000000beef',
value: '0',
},
});
Expand Down
4 changes: 3 additions & 1 deletion examples/wagmi/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom/client';

import { WagmiConfig, configureChains, createClient, defaultChains } from 'wagmi';
import { WagmiConfig, configureChains, createClient } from 'wagmi';
import { mainnet, goerli } from 'wagmi/chains';
import { alchemyProvider } from 'wagmi/providers/alchemy';
import { SafeConnector } from '@gnosis.pm/safe-apps-wagmi';
import { InjectedConnector } from 'wagmi/connectors/injected';
Expand All @@ -18,6 +19,7 @@ if (!window.Buffer) {
window.Buffer = Buffer;
}

const defaultChains = [mainnet, goerli];
const alchemyId = process.env.REACT_APP_ALCHEMY_ID || 'UuUIg4H93f-Bz5qs91SuBrro7TW3UShO';

const { chains, provider } = configureChains(defaultChains, [alchemyProvider({ apiKey: alchemyId })]);
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
]
},
"devDependencies": {
"@changesets/cli": "^2.25.2",
"@types/jest": "^29.2.6",
"@changesets/cli": "^2.26.0",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.18",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"eslint": "8.28.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"eslint": "8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "29.3.1",
"jest-environment-jsdom": "^29.3.1",
"lerna": "^6.0.3",
"prettier": "^2.8.0",
"jest": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"lerna": "^6.4.1",
"prettier": "^2.8.3",
"ts-jest": "^29.0.5",
"typescript": "^4.9.4"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/safe-apps-react-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"react": "16.x.x || 17.x.x || 18.x.x"
},
"devDependencies": {
"@types/react": "^18.0.23",
"@types/react-dom": "^18.0.5",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/safe-apps-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@testing-library/user-event": "^14.2.1",
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/styled-components": "^5.1.25",
"bignumber.js": "^9.0.2",
"ethers": "^5.7.1",
Expand Down
10 changes: 5 additions & 5 deletions packages/safe-apps-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
"author": "Safe (https://safe.global)",
"license": "MIT",
"dependencies": {
"@gnosis.pm/safe-apps-provider": "^0.15.0",
"@gnosis.pm/safe-apps-sdk": "^7.7.0"
"@gnosis.pm/safe-apps-provider": "^0.15.1",
"@gnosis.pm/safe-apps-sdk": "^7.8.0"
},
"peerDependencies": {
"@wagmi/core": ">= 0.3.8 < 0.8.0"
"@wagmi/core": "^0.8.3"
},
"devDependencies": {
"@wagmi/core": "^0.7.6",
"ethers": "^5.7.1"
"ethers": "^5.7.2",
"@wagmi/core": "^0.8.18"
},
"repository": {
"type": "git",
Expand Down
3,809 changes: 2,376 additions & 1,433 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 8a1d38b

Please sign in to comment.