From f6740904de2d021ab9133a383ac21b0f67eef23d Mon Sep 17 00:00:00 2001 From: lukasschor Date: Wed, 16 Dec 2020 15:02:18 +0100 Subject: [PATCH 1/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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 | From 63bfdd0d5db1639aef70b7c9b4b7efdfe64e1c41 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Fri, 18 Dec 2020 17:39:43 +0400 Subject: [PATCH 2/3] Fix network type in safe info --- packages/safe-apps-sdk/src/sdk.ts | 9 ++++++--- packages/safe-apps-sdk/src/types.ts | 5 +++++ 2 files changed, 11 insertions(+), 3 deletions(-) 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 = { From ca9af6b004a1eb9d54064e15769f0c897197f54f Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Fri, 18 Dec 2020 17:56:31 +0400 Subject: [PATCH 3/3] Update safe-apps-sdk version --- packages/safe-apps-sdk/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",