diff --git a/.changeset/metal-numbers-sit.md b/.changeset/metal-numbers-sit.md new file mode 100644 index 00000000..eca47745 --- /dev/null +++ b/.changeset/metal-numbers-sit.md @@ -0,0 +1,5 @@ +--- +'@gnosis.pm/safe-apps-sdk': minor +--- + +Add owners and threshold to SafeInfo type" diff --git a/packages/safe-apps-provider/dist/provider.js b/packages/safe-apps-provider/dist/provider.js index 95e70de2..ddae38bb 100644 --- a/packages/safe-apps-provider/dist/provider.js +++ b/packages/safe-apps-provider/dist/provider.js @@ -69,6 +69,8 @@ class SafeAppProvider { return this.sdk.eth.getBalance([utils_1.getLowerCase(params[0]), params[1]]); case 'eth_getCode': return this.sdk.eth.getCode([utils_1.getLowerCase(params[0]), params[1]]); + case 'eth_getTransactionCount': + return this.sdk.eth.getTransactionCount([utils_1.getLowerCase(params[0]), params[1]]); case 'eth_getStorageAt': return this.sdk.eth.getStorageAt([utils_1.getLowerCase(params[0]), params[1], params[2]]); case 'eth_getBlockByNumber': diff --git a/packages/safe-apps-provider/dist/provider.js.map b/packages/safe-apps-provider/dist/provider.js.map index 375922ff..6bc3702d 100644 --- a/packages/safe-apps-provider/dist/provider.js.map +++ b/packages/safe-apps-provider/dist/provider.js.map @@ -1 +1 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":";;;AACA,mCAAsC;AAEtC,mCAAuC;AAEvC,+GAA+G;AAC/G,MAAa,eAAe;IAM1B,YAAY,IAAc,EAAE,GAAgB;QAHpC,iBAAY,GAAG,IAAI,GAAG,EAAiC,CAAC;QACxD,WAAM,GAAG,IAAI,qBAAY,EAAE,CAAC;QAGlC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CA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AO,CAAC,CAAC;aACV;YAED,KAAK,UAAU,CAAC,CAAC;gBACf,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aAClD;YAED,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAE/C;gBACE,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,MAAM,mBAAmB,CAAC,CAAC;SACtD;IACH,CAAC;IAED,sCAAsC;IACtC,iIAAiI;IACjI,IAAI,CAAC,OAAY,EAAE,QAA8C;QAC/D,IAAI,CAAC,OAAO;YAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;aAClB,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;aAC5E,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IAC7C,CAAC;CACF;AA9JD,0CA8JC"} \ No newline at end of file diff --git a/packages/safe-apps-sdk/dist/package.json b/packages/safe-apps-sdk/dist/package.json index 7ebec842..3002e174 100644 --- a/packages/safe-apps-sdk/dist/package.json +++ b/packages/safe-apps-sdk/dist/package.json @@ -1,38 +1,41 @@ { - "name": "@gnosis.pm/safe-apps-sdk", - "version": "4.0.0", - "description": "SDK developed to integrate third-party apps with Safe-Multisig app.", - "main": "dist/src/index.js", - "typings": "dist/src/index.d.ts", - "_files": [ - "dist/**/*", - "README.md" - ], - "keywords": [ - "Gnosis", - "sdk", - "apps" - ], - "scripts": { - "test": "jest", - "format-dist": "sed -i '' 's/\"files\":/\"_files\":/' dist/package.json", - "build": "yarn rimraf dist && tsc && yarn format-dist", - "lint": "tslint -p tsconfig.json" - }, - "author": "Gnosis (https://gnosis.io)", - "license": "MIT", - "dependencies": {}, - "devDependencies": { - "@types/jest": "^26.0.24", - "@types/node": "^16.3.2", - "rimraf": "^3.0.2" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/gnosis/safe-apps-sdk.git" - }, - "bugs": { - "url": "https://github.com/gnosis/safe-apps-sdk/issues" - }, - "homepage": "https://github.com/gnosis/safe-apps-sdk#readme" + "name": "@gnosis.pm/safe-apps-sdk", + "version": "4.1.0-next.0", + "description": "SDK developed to integrate third-party apps with Safe-Multisig app.", + "main": "dist/src/index.js", + "typings": "dist/src/index.d.ts", + "_files": [ + "dist/**/*", + "README.md" + ], + "keywords": [ + "Gnosis", + "sdk", + "apps" + ], + "scripts": { + "test": "jest", + "format-dist": "sed -i '' 's/\"files\":/\"_files\":/' dist/package.json", + "build": "yarn rimraf dist && tsc && yarn format-dist", + "lint": "tslint -p tsconfig.json" + }, + "author": "Gnosis (https://gnosis.io)", + "license": "MIT", + "dependencies": {}, + "devDependencies": { + "@types/jest": "^26.0.24", + "@types/node": "^16.3.3", + "rimraf": "^3.0.2" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/gnosis/safe-apps-sdk.git" + }, + "bugs": { + "url": "https://github.com/gnosis/safe-apps-sdk/issues" + }, + "homepage": "https://github.com/gnosis/safe-apps-sdk#readme", + "publishConfig": { + "access": "public" + } } 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 1ae2fd04..96338e15 100644 --- a/packages/safe-apps-sdk/dist/src/types/sdk.d.ts +++ b/packages/safe-apps-sdk/dist/src/types/sdk.d.ts @@ -22,4 +22,6 @@ export declare type SendTransactionsResponse = { export declare type SafeInfo = { safeAddress: string; chainId: number; + threshold: number; + owners: string[]; };