Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Commit

Permalink
fix: update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Jun 7, 2022
1 parent d793c9a commit 49e7afc
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@gnosis.pm/safe-deployments": "^1.8.0",
"@gnosis.pm/safe-modules-deployments": "^1.0.0",
"@gnosis.pm/safe-react-components": "^1.1.2",
"@gnosis.pm/safe-react-gateway-sdk": "^3.0.1",
"@gnosis.pm/safe-react-gateway-sdk": "^3.1.1",
"@gnosis.pm/safe-web3-lib": "^1.0.0",
"@material-ui/core": "^4.12.3",
"@material-ui/icons": "^4.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/logic/safe/utils/mocks/getChainsConfigMock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChainListResponse } from '@gnosis.pm/safe-react-gateway-sdk'
import mockData from './remoteConfig.json'

export const mockGetChainsConfigResponse = mockData as ChainListResponse
export const mockGetChainsConfigResponse = mockData as unknown as ChainListResponse
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactElement } from 'react'
import { Control, FieldValues, Path, useController, UseControllerProps } from 'react-hook-form'
import Autocomplete from '@material-ui/lab/Autocomplete/Autocomplete'
import TextField from '@material-ui/core/TextField/TextField'
import { SettingsInfo } from '@gnosis.pm/safe-react-gateway-sdk'
import { SettingsInfo, SettingsInfoType } from '@gnosis.pm/safe-react-gateway-sdk'

type Props<T> = {
name: Path<T>
Expand All @@ -14,43 +14,43 @@ type Props<T> = {
// TODO: Create enum in the types for these types
const MODULES: { label: string; type: SettingsInfo['type'] }[] = [
{
type: 'SET_FALLBACK_HANDLER',
type: SettingsInfoType.SET_FALLBACK_HANDLER,
label: 'Set fallback handler',
},
{
type: 'ADD_OWNER',
type: SettingsInfoType.ADD_OWNER,
label: 'Add owner',
},
{
type: 'REMOVE_OWNER',
type: SettingsInfoType.REMOVE_OWNER,
label: 'Remove owner',
},
{
type: 'SWAP_OWNER',
type: SettingsInfoType.SWAP_OWNER,
label: 'Swap owner',
},
{
type: 'CHANGE_THRESHOLD',
type: SettingsInfoType.CHANGE_THRESHOLD,
label: 'Change required confirmations',
},
{
type: 'CHANGE_IMPLEMENTATION',
type: SettingsInfoType.CHANGE_IMPLEMENTATION,
label: 'Change implementation',
},
{
type: 'ENABLE_MODULE',
type: SettingsInfoType.ENABLE_MODULE,
label: 'Enable module',
},
{
type: 'DISABLE_MODULE',
type: SettingsInfoType.DISABLE_MODULE,
label: 'Disable module',
},
{
type: 'SET_GUARD',
type: SettingsInfoType.SET_GUARD,
label: 'Set guard',
},
{
type: 'DELETE_GUARD',
type: SettingsInfoType.DELETE_GUARD,
label: 'Delete guard',
},
]
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1906,10 +1906,10 @@
dependencies:
isomorphic-unfetch "^3.1.0"

"@gnosis.pm/safe-react-gateway-sdk@^3.0.1":
version "3.0.1"
resolved "https://registry.yarnpkg.com/@gnosis.pm/safe-react-gateway-sdk/-/safe-react-gateway-sdk-3.0.1.tgz#0588072cf8aa4d83d46d12ff8d94e2ea7d29ad38"
integrity sha512-k4SgNW2VmODHFfd+sRd5Zuh3KVvSyD/EGqms87PnaW5bkerfl49stsW2F1hnO6hMaJDEKcgpzds7UjDHLLZ6OQ==
"@gnosis.pm/safe-react-gateway-sdk@^3.1.1":
version "3.1.1"
resolved "https://registry.yarnpkg.com/@gnosis.pm/safe-react-gateway-sdk/-/safe-react-gateway-sdk-3.1.1.tgz#e8968317d4684c4c796691b642212155a3858be8"
integrity sha512-Vw8efr9tgSsAYEAV5nMy+LRwP5CqdRMysyYEGcRlvzeKChggC0L0O6b8ucjhu8QhjpVLCNaaavLxZLUAr4tlhg==
dependencies:
cross-fetch "^3.1.5"

Expand Down

0 comments on commit 49e7afc

Please sign in to comment.