From 2e6d59fb98d5f33d55e48dbcf07d60b518302f2e Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Sun, 3 Dec 2023 11:59:19 +0100 Subject: [PATCH 1/2] change migrated gateway project --- package.json | 1 + src/hooks/token.ts | 2 +- yarn.lock | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index aab17f9a..2093b1d3 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "@safe-global/safe-apps-provider": "^0.18.0", "@safe-global/safe-apps-react-sdk": "^4.6.4", "@safe-global/safe-apps-sdk": "^8.1.0", + "@safe-global/safe-gateway-typescript-sdk": "^3.13.2", "@safe-global/safe-react-components": "2.0.5", "ace-builds": "^1.15.0", "bignumber.js": "^9.1.1", diff --git a/src/hooks/token.ts b/src/hooks/token.ts index d055c3b7..0a945bf1 100644 --- a/src/hooks/token.ts +++ b/src/hooks/token.ts @@ -1,6 +1,6 @@ -import { SafeBalanceResponse } from "@gnosis.pm/safe-react-gateway-sdk"; import { SafeAppProvider } from "@safe-global/safe-apps-provider"; import { useSafeAppsSDK } from "@safe-global/safe-apps-react-sdk"; +import { SafeBalanceResponse } from "@safe-global/safe-gateway-typescript-sdk"; import { ethers, utils } from "ethers"; import xdaiTokens from "honeyswap-default-token-list"; import { useState, useEffect, useMemo } from "react"; diff --git a/yarn.lock b/yarn.lock index ef3fab71..933c3eaf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2750,6 +2750,11 @@ "@safe-global/safe-gateway-typescript-sdk" "^3.5.3" viem "^1.0.0" +"@safe-global/safe-gateway-typescript-sdk@^3.13.2": + version "3.13.2" + resolved "https://registry.yarnpkg.com/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.13.2.tgz#f03884c7eb766f5508085d95ab96063a28e20920" + integrity sha512-kGlJecJHBzGrGTq/yhLANh56t+Zur6Ubpt+/w03ARX1poDb4TM8vKU3iV8tuYpk359PPWp+Qvjnqb9oW2YQcYw== + "@safe-global/safe-gateway-typescript-sdk@^3.5.3": version "3.7.0" resolved "https://registry.yarnpkg.com/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.7.0.tgz#2af52f1bc73759b1b6a549fed598781c8c5fce72" From f02a359b158e11eb62f20db6eda8a2d7826fc113 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Sun, 3 Dec 2023 12:03:10 +0100 Subject: [PATCH 2/2] remove other dependency --- package.json | 1 - tsconfig.json | 1 - 2 files changed, 2 deletions(-) diff --git a/package.json b/package.json index 2093b1d3..e82b8550 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "@emotion/react": "^11.11.1", "@emotion/server": "^11.11.0", "@emotion/styled": "^11.11.0", - "@gnosis.pm/safe-react-gateway-sdk": "^3.5.2", "@mui/icons-material": "^5.14.11", "@mui/material": "^5.14.11", "@mui/styles": "^5.14.4", diff --git a/tsconfig.json b/tsconfig.json index 26788bae..5fca4a8f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,7 +22,6 @@ "noUnusedLocals": false, "skipLibCheck": true, "strictNullChecks": true, - "suppressImplicitAnyIndexErrors": true, "types": ["jest", "node"], "baseUrl": ".", "strict": true,