diff --git a/README.md b/README.md index 5b630186..7e6a57d7 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Developer tools to integrate third-party applications (Safe Apps) with Safe Multisig (https://gnosis-safe.io/app/). +You can find more resources on Safe Apps in the [Gnosis Safe Developer Portal](https://docs.gnosis.io/safe/docs/sdks_safe_apps/). + ## Packages | Package | Description | diff --git a/packages/safe-apps-sdk/package.json b/packages/safe-apps-sdk/package.json index 13424718..c1e60c6d 100644 --- a/packages/safe-apps-sdk/package.json +++ b/packages/safe-apps-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@gnosis.pm/safe-apps-sdk", - "version": "1.0.1", + "version": "1.0.2", "description": "SDK developed to integrate third-party apps with Safe-Multisig app.", "main": "dist/src/index.js", "typings": "dist/src/index.d.ts", diff --git a/packages/safe-apps-sdk/src/sdk.ts b/packages/safe-apps-sdk/src/sdk.ts index b22fcee9..2e34bd02 100644 --- a/packages/safe-apps-sdk/src/sdk.ts +++ b/packages/safe-apps-sdk/src/sdk.ts @@ -1,5 +1,5 @@ import { METHODS } from './communication'; -import { Communicator, SafeInfo, EnvInfo } from './types'; +import { Communicator, SafeInfoV1, EnvInfo } from './types'; import InterfaceCommunicator from './communication'; import { TXs } from './txs'; import { Eth } from './eth'; @@ -42,8 +42,11 @@ class SafeAppsSDK { return response.data; } - async getSafeInfo(): Promise { - const response = await this.#communicator.send<'getSafeInfo', undefined, SafeInfo>(METHODS.getSafeInfo, undefined); + async getSafeInfo(): Promise { + const response = await this.#communicator.send<'getSafeInfo', undefined, SafeInfoV1>( + METHODS.getSafeInfo, + undefined, + ); if (!response.success) { throw new Error(response.error); diff --git a/packages/safe-apps-sdk/src/types.ts b/packages/safe-apps-sdk/src/types.ts index 4c6a1673..c8da472a 100644 --- a/packages/safe-apps-sdk/src/types.ts +++ b/packages/safe-apps-sdk/src/types.ts @@ -63,6 +63,11 @@ export interface SafeInfo { network: LowercaseNetworks; } +export interface SafeInfoV1 { + safeAddress: string; + network: UppercaseNetworks; +} + export type Methods = keyof typeof METHODS; export type SDKRequestData = {