From 68b6b7ff91064769d9caf1f580715c8f8e9000ff Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 9 Sep 2021 11:45:37 +0200 Subject: [PATCH] include dist files --- packages/safe-apps-sdk/dist/package.json | 8 ++++---- packages/safe-apps-sdk/dist/src/safe/index.d.ts | 4 ++-- packages/safe-apps-sdk/dist/src/safe/index.js.map | 2 +- packages/safe-apps-sdk/dist/src/safe/signatures.d.ts | 3 +-- packages/safe-apps-sdk/dist/src/safe/signatures.js | 5 +---- packages/safe-apps-sdk/dist/src/safe/signatures.js.map | 2 +- packages/safe-apps-sdk/dist/src/txs/index.d.ts | 4 ++-- packages/safe-apps-sdk/dist/src/txs/index.js.map | 2 +- packages/safe-apps-sdk/dist/src/types/sdk.d.ts | 4 +--- 9 files changed, 14 insertions(+), 20 deletions(-) diff --git a/packages/safe-apps-sdk/dist/package.json b/packages/safe-apps-sdk/dist/package.json index a61a3584..4ff628f0 100644 --- a/packages/safe-apps-sdk/dist/package.json +++ b/packages/safe-apps-sdk/dist/package.json @@ -1,6 +1,6 @@ { "name": "@gnosis.pm/safe-apps-sdk", - "version": "4.3.0-next.0", + "version": "4.3.0-next.1", "description": "SDK developed to integrate third-party apps with Safe-Multisig app.", "main": "dist/src/index.js", "typings": "dist/src/index.d.ts", @@ -27,9 +27,9 @@ }, "devDependencies": { "@types/jest": "^27.0.1", - "@types/node": "^16.7.2", - "@typescript-eslint/eslint-plugin": "^4.29.3", - "@typescript-eslint/parser": "^4.29.3", + "@types/node": "^16.9.0", + "@typescript-eslint/eslint-plugin": "^4.31.0", + "@typescript-eslint/parser": "^4.31.0", "rimraf": "^3.0.2" }, "repository": { diff --git a/packages/safe-apps-sdk/dist/src/safe/index.d.ts b/packages/safe-apps-sdk/dist/src/safe/index.d.ts index f71e3a91..db6b1dd2 100644 --- a/packages/safe-apps-sdk/dist/src/safe/index.d.ts +++ b/packages/safe-apps-sdk/dist/src/safe/index.d.ts @@ -1,4 +1,4 @@ -import { Communicator, SafeInfo, SafeBalances, GetBalanceParams, BytesLike } from '../types'; +import { Communicator, SafeInfo, SafeBalances, GetBalanceParams } from '../types'; declare class Safe { private readonly communicator; constructor(communicator: Communicator); @@ -6,7 +6,7 @@ declare class Safe { experimental_getBalances({ currency }?: GetBalanceParams): Promise; private check1271Signature; private check1271SignatureBytes; - isMessageSigned(message: BytesLike, signature?: string): Promise; + isMessageSigned(message: string, signature?: string): Promise; isMessageHashSigned(messageHash: string, signature?: string): Promise; } export { Safe }; diff --git a/packages/safe-apps-sdk/dist/src/safe/index.js.map b/packages/safe-apps-sdk/dist/src/safe/index.js.map index 45b8dbee..a63f1ee3 100644 --- a/packages/safe-apps-sdk/dist/src/safe/index.js.map +++ b/packages/safe-apps-sdk/dist/src/safe/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/safe/index.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAChC,6CAMsB;AACtB,sDAAmD;AACnD,gDAA6C;AAW7C,MAAM,IAAI;IAGR,YAAY,YAA0B;QACpC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAC3C,iBAAO,CAAC,WAAW,EACnB,SAAS,CACV,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,oGAAoG;IACpG,KAAK,CAAC,wBAAwB,CAAC,EAAE,QAAQ,GAAG,KAAK,KAAuB,EAAE;QACxE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAC3C,iBAAO,CAAC,eAAe,EACvB;YACE,QAAQ;SACT,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,WAAmB,EAAE,SAAS,GAAG,IAAI;QACpE,MAAM,QAAQ,GAAG,MA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E;gBACX,OAAO,IAAI,CAAC;aACb;SACF;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAEQ,oBAAI"} \ No newline at end of file diff --git a/packages/safe-apps-sdk/dist/src/safe/signatures.d.ts b/packages/safe-apps-sdk/dist/src/safe/signatures.d.ts index 5eb39a23..f370a962 100644 --- a/packages/safe-apps-sdk/dist/src/safe/signatures.d.ts +++ b/packages/safe-apps-sdk/dist/src/safe/signatures.d.ts @@ -1,8 +1,7 @@ import { ethers } from 'ethers'; -import { BytesLike } from '../types'; declare const MAGIC_VALUE = "0x1626ba7e"; declare const MAGIC_VALUE_BYTES = "0x20c13b0b"; declare const EIP_1271_INTERFACE: ethers.utils.Interface; declare const EIP_1271_BYTES_INTERFACE: ethers.utils.Interface; -declare const calculateMessageHash: (message: BytesLike) => string; +declare const calculateMessageHash: (message: string) => string; export { EIP_1271_INTERFACE, EIP_1271_BYTES_INTERFACE, MAGIC_VALUE, MAGIC_VALUE_BYTES, calculateMessageHash }; diff --git a/packages/safe-apps-sdk/dist/src/safe/signatures.js b/packages/safe-apps-sdk/dist/src/safe/signatures.js index eaa8bc86..f1593293 100644 --- a/packages/safe-apps-sdk/dist/src/safe/signatures.js +++ b/packages/safe-apps-sdk/dist/src/safe/signatures.js @@ -15,10 +15,7 @@ const EIP_1271_BYTES_INTERFACE = new ethers_1.ethers.utils.Interface([ ]); exports.EIP_1271_BYTES_INTERFACE = EIP_1271_BYTES_INTERFACE; const calculateMessageHash = (message) => { - if (typeof message === 'string') { - message = ethers_1.ethers.utils.toUtf8Bytes(message); - } - return ethers_1.ethers.utils.keccak256(message); + return ethers_1.ethers.utils.hashMessage(message); }; exports.calculateMessageHash = calculateMessageHash; //# sourceMappingURL=signatures.js.map \ No newline at end of file diff --git a/packages/safe-apps-sdk/dist/src/safe/signatures.js.map b/packages/safe-apps-sdk/dist/src/safe/signatures.js.map index 7b343009..37a18eba 100644 --- a/packages/safe-apps-sdk/dist/src/safe/signatures.js.map +++ b/packages/safe-apps-sdk/dist/src/safe/signatures.js.map @@ -1 +1 @@ -{"version":3,"file":"signatures.js","sourceRoot":"","sources":["../../../src/safe/signatures.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAGhC,MAAM,WAAW,GAAG,YAAY,CAAC;AAkBsB,kCAAW;AAjBlE,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAiB6B,8CAAiB;AAfrF,MAAM,kBAAkB,GAAG,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC;IACpD,uFAAuF;CACxF,CAAC,CAAC;AAaM,gDAAkB;AAZ3B,MAAM,wBAAwB,GAAG,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC;IAC1D,wFAAwF;CACzF,CAAC,CAAC;AAU0B,4DAAwB;AARrD,MAAM,oBAAoB,GAAG,CAAC,OAAkB,EAAU,EAAE;IAC1D,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO,GAAG,eAAM,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KAC7C;IAED,OAAO,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AACzC,CAAC,CAAC;AAEqF,oDAAoB"} \ No newline at end of file +{"version":3,"file":"signatures.js","sourceRoot":"","sources":["../../../src/safe/signatures.ts"],"names":[],"mappings":";;;AAAA,mCAAgC;AAEhC,MAAM,WAAW,GAAG,YAAY,CAAC;AAcsB,kCAAW;AAblE,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAa6B,8CAAiB;AAXrF,MAAM,kBAAkB,GAAG,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC;IACpD,uFAAuF;CACxF,CAAC,CAAC;AASM,gDAAkB;AAR3B,MAAM,wBAAwB,GAAG,IAAI,eAAM,CAAC,KAAK,CAAC,SAAS,CAAC;IAC1D,wFAAwF;CACzF,CAAC,CAAC;AAM0B,4DAAwB;AAJrD,MAAM,oBAAoB,GAAG,CAAC,OAAe,EAAU,EAAE;IACvD,OAAO,eAAM,CAAC,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC,CAAC;AAEqF,oDAAoB"} \ No newline at end of file diff --git a/packages/safe-apps-sdk/dist/src/txs/index.d.ts b/packages/safe-apps-sdk/dist/src/txs/index.d.ts index c3d186ca..cf3dd6b3 100644 --- a/packages/safe-apps-sdk/dist/src/txs/index.d.ts +++ b/packages/safe-apps-sdk/dist/src/txs/index.d.ts @@ -1,9 +1,9 @@ -import { GatewayTransactionDetails, SendTransactionsParams, Communicator, SendTransactionsResponse, BytesLike } from '../types'; +import { GatewayTransactionDetails, SendTransactionsParams, Communicator, SendTransactionsResponse } from '../types'; declare class TXs { private readonly communicator; constructor(communicator: Communicator); getBySafeTxHash(safeTxHash: string): Promise; - signMessage(message: BytesLike): Promise; + signMessage(message: string): Promise; send({ txs, params }: SendTransactionsParams): Promise; } export { TXs }; diff --git a/packages/safe-apps-sdk/dist/src/txs/index.js.map b/packages/safe-apps-sdk/dist/src/txs/index.js.map index 9293576d..b4cd09a5 100644 --- a/packages/safe-apps-sdk/dist/src/txs/index.js.map +++ b/packages/safe-apps-sdk/dist/src/txs/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/txs/index.ts"],"names":[],"mappings":";;;AAAA,sDAAmD;AAWnD,MAAM,GAAG;IAGP,YAAY,YAA0B;QACpC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,UAAkB;QACtC,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;SACvC;QAED,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAI3C,iBAAO,CAAC,iBAAiB,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;QAE7C,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,K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QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAC3C,iBAAO,CAAC,WAAW,EACnB,cAAc,CACf,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,MAAM,EAA0B;QAChD,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,MAAM,cAAc,GAAG;YACrB,GAAG;YACH,MAAM;SACP,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,CAI3C,iBAAO,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;QAE5C,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF;AAEQ,kBAAG"} \ No newline at end of file diff --git a/packages/safe-apps-sdk/dist/src/types/sdk.d.ts b/packages/safe-apps-sdk/dist/src/types/sdk.d.ts index 44780bf8..9e4a8b7f 100644 --- a/packages/safe-apps-sdk/dist/src/types/sdk.d.ts +++ b/packages/safe-apps-sdk/dist/src/types/sdk.d.ts @@ -3,8 +3,6 @@ export declare type BaseTransaction = { value: string; data: string; }; -export declare type Bytes = ArrayLike; -export declare type BytesLike = Bytes | string; export declare type GetTxBySafeTxHashParams = { safeTxHash: string; }; @@ -19,7 +17,7 @@ export declare type GetBalanceParams = { currency?: string; }; export declare type SignMessageParams = { - message: BytesLike; + message: string; }; export declare type SendTransactionsResponse = { safeTxHash: string;