Skip to content

Commit 0d7e5f2

Browse files
authored
Migrated Gateway Dependency (#571)
In response to deprecation notice (https://www.npmjs.com/package/@gnosis.pm/safe-react-gateway-sdk). Also removed a deprecated TS config.
1 parent 047fd5e commit 0d7e5f2

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@emotion/react": "^11.11.1",
2222
"@emotion/server": "^11.11.0",
2323
"@emotion/styled": "^11.11.0",
24-
"@gnosis.pm/safe-react-gateway-sdk": "^3.5.2",
2524
"@mui/icons-material": "^5.14.11",
2625
"@mui/material": "^5.14.11",
2726
"@mui/styles": "^5.14.4",
@@ -30,6 +29,7 @@
3029
"@safe-global/safe-apps-provider": "^0.18.0",
3130
"@safe-global/safe-apps-react-sdk": "^4.6.4",
3231
"@safe-global/safe-apps-sdk": "^8.1.0",
32+
"@safe-global/safe-gateway-typescript-sdk": "^3.13.2",
3333
"@safe-global/safe-react-components": "2.0.5",
3434
"ace-builds": "^1.15.0",
3535
"bignumber.js": "^9.1.1",

src/hooks/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { SafeBalanceResponse } from "@gnosis.pm/safe-react-gateway-sdk";
21
import { SafeAppProvider } from "@safe-global/safe-apps-provider";
32
import { useSafeAppsSDK } from "@safe-global/safe-apps-react-sdk";
3+
import { SafeBalanceResponse } from "@safe-global/safe-gateway-typescript-sdk";
44
import { ethers, utils } from "ethers";
55
import xdaiTokens from "honeyswap-default-token-list";
66
import { useState, useEffect, useMemo } from "react";

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"noUnusedLocals": false,
2323
"skipLibCheck": true,
2424
"strictNullChecks": true,
25-
"suppressImplicitAnyIndexErrors": true,
2625
"types": ["jest", "node"],
2726
"baseUrl": ".",
2827
"strict": true,

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,6 +2750,11 @@
27502750
"@safe-global/safe-gateway-typescript-sdk" "^3.5.3"
27512751
viem "^1.0.0"
27522752

2753+
"@safe-global/safe-gateway-typescript-sdk@^3.13.2":
2754+
version "3.13.2"
2755+
resolved "https://registry.yarnpkg.com/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.13.2.tgz#f03884c7eb766f5508085d95ab96063a28e20920"
2756+
integrity sha512-kGlJecJHBzGrGTq/yhLANh56t+Zur6Ubpt+/w03ARX1poDb4TM8vKU3iV8tuYpk359PPWp+Qvjnqb9oW2YQcYw==
2757+
27532758
"@safe-global/safe-gateway-typescript-sdk@^3.5.3":
27542759
version "3.7.0"
27552760
resolved "https://registry.yarnpkg.com/@safe-global/safe-gateway-typescript-sdk/-/safe-gateway-typescript-sdk-3.7.0.tgz#2af52f1bc73759b1b6a549fed598781c8c5fce72"

0 commit comments

Comments
 (0)