@tezos-x/octez.connect-blockchain-substrate 1.0.0 → 4.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,5 +19,3 @@ const client = new DAppClient({
19
19
  const substrateBlockchain = new SubstrateBlockchain()
20
20
  client.addBlockchain(substrateBlockchain)
21
21
  ```
22
-
23
- Check our documentation for more information. [Documentation](https://octez-connect.tezos.com)
@@ -1,4 +1,4 @@
1
- import { Blockchain, BlockchainMessage, ResponseInput, ExtensionApp, DesktopApp, WebApp, App, Network, PermissionScope } from '@tezos-x/octez.connect-types';
1
+ import { Blockchain, BlockchainMessage, ResponseInput, ExtensionApp, DesktopApp, WebApp, App } from '@tezos-x/octez.connect-types';
2
2
  import { SubstratePermissionResponse } from './types/messages/permission-response';
3
3
  export declare class SubstrateBlockchain implements Blockchain {
4
4
  readonly identifier: string;
@@ -14,7 +14,5 @@ export declare class SubstrateBlockchain implements Blockchain {
14
14
  accountId: string;
15
15
  address: string;
16
16
  publicKey: string;
17
- network?: Network;
18
- scopes: PermissionScope[];
19
17
  }[]>;
20
18
  }
@@ -8,14 +8,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
11
  Object.defineProperty(exports, "__esModule", { value: true });
15
12
  exports.SubstrateBlockchain = void 0;
16
- const substrate_json_1 = __importDefault(require("@tezos-x/octez.connect-ui/data/substrate.json"));
17
- const octez_connect_utils_1 = require("@tezos-x/octez.connect-utils");
18
- const { desktopList, extensionList, iOSList, webList } = (0, octez_connect_utils_1.loadWalletLists)(substrate_json_1.default);
13
+ const wallet_lists_1 = require("./ui/alert/wallet-lists");
19
14
  class SubstrateBlockchain {
20
15
  constructor() {
21
16
  this.identifier = 'substrate';
@@ -39,10 +34,10 @@ class SubstrateBlockchain {
39
34
  getWalletLists() {
40
35
  return __awaiter(this, void 0, void 0, function* () {
41
36
  return {
42
- extensionList: extensionList,
43
- desktopList: desktopList,
44
- webList: webList,
45
- iOSList: iOSList
37
+ extensionList: wallet_lists_1.extensionList,
38
+ desktopList: wallet_lists_1.desktopList,
39
+ webList: wallet_lists_1.webList,
40
+ iOSList: wallet_lists_1.iOSList
46
41
  };
47
42
  });
48
43
  }
@@ -51,9 +46,7 @@ class SubstrateBlockchain {
51
46
  return permissionResponse.blockchainData.accounts.map((account) => ({
52
47
  accountId: account.accountId,
53
48
  address: account.address,
54
- publicKey: account.publicKey,
55
- network: account.network,
56
- scopes: permissionResponse.blockchainData.scopes
49
+ publicKey: account.publicKey
57
50
  }));
58
51
  });
59
52
  }
@@ -1 +1 @@
1
- {"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../src/blockchain.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAYA,mGAAoF;AACpF,sEAA8D;AAE9D,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,IAAA,qCAAe,EAAC,wBAAwB,CAAC,CAAA;AAElG,MAAa,mBAAmB;IAAhC;QACkB,eAAU,GAAW,WAAW,CAAA;IA8ClD,CAAC;IA5CO,eAAe,CAAC,KAAwB;;YAC5C,mBAAmB;YACnB,IAAI,KAAK,EAAE,CAAC;gBACV,OAAM;YACR,CAAC;QACH,CAAC;KAAA;IACK,cAAc,CAAC,KAAoB;;YACvC,mBAAmB;YACnB,IAAI,KAAK,EAAE,CAAC;gBACV,OAAM;YACR,CAAC;QACH,CAAC;KAAA;IAEK,cAAc;;YAMlB,OAAO;gBACL,aAAa,EAAE,aAAa;gBAC5B,WAAW,EAAE,WAAW;gBACxB,OAAO,EAAE,OAAO;gBAChB,OAAO,EAAE,OAAO;aACjB,CAAA;QACH,CAAC;KAAA;IAEK,qCAAqC,CACzC,kBAA+C;;YA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 -1,4 +1,4 @@
1
- import { Blockchain, BlockchainMessage, ResponseInput, ExtensionApp, DesktopApp, WebApp, App, Network, PermissionScope } from '@tezos-x/octez.connect-types';
1
+ import { Blockchain, BlockchainMessage, ResponseInput, ExtensionApp, DesktopApp, WebApp, App } from '@tezos-x/octez.connect-types';
2
2
  import { SubstratePermissionResponse } from './types/messages/permission-response';
3
3
  export declare class SubstrateBlockchain implements Blockchain {
4
4
  readonly identifier: string;
@@ -14,7 +14,5 @@ export declare class SubstrateBlockchain implements Blockchain {
14
14
  accountId: string;
15
15
  address: string;
16
16
  publicKey: string;
17
- network?: Network;
18
- scopes: PermissionScope[];
19
17
  }[]>;
20
18
  }
@@ -1,6 +1,4 @@
1
- import bundledSubstrateRegistry from '@tezos-x/octez.connect-ui/data/substrate.json';
2
- import { loadWalletLists } from '@tezos-x/octez.connect-utils';
3
- const { desktopList, extensionList, iOSList, webList } = loadWalletLists(bundledSubstrateRegistry);
1
+ import { extensionList, desktopList, webList, iOSList } from './ui/alert/wallet-lists';
4
2
  export class SubstrateBlockchain {
5
3
  identifier = 'substrate';
6
4
  async validateRequest(input) {
@@ -27,9 +25,7 @@ export class SubstrateBlockchain {
27
25
  return permissionResponse.blockchainData.accounts.map((account) => ({
28
26
  accountId: account.accountId,
29
27
  address: account.address,
30
- publicKey: account.publicKey,
31
- network: account.network,
32
- scopes: permissionResponse.blockchainData.scopes
28
+ publicKey: account.publicKey
33
29
  }));
34
30
  }
35
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../src/blockchain.ts"],"names":[],"mappings":"AAYA,OAAO,wBAAwB,MAAM,+CAA+C,CAAA;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAE9D,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAA;AAElG,MAAM,OAAO,mBAAmB;IACd,UAAU,GAA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AK,CAAC,cAAc;QAMlB,OAAO;YACL,aAAa,EAAE,aAAa;YAC5B,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,OAAO;SACjB,CAAA;IACH,CAAC;IAED,KAAK,CAAC,qCAAqC,CACzC,kBAA+C;QAE/C,OAAO,kBAAkB,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAClE,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,SAAS,EAAE,OAAO,CAAC,SAAS;SAC7B,CAAC,CAAC,CAAA;IACL,CAAC;CACF"}
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@tezos-x/octez.connect-blockchain-substrate",
3
- "version": "1.0.0",
3
+ "version": "4.8.1",
4
4
  "description": "This package adds support for `substrate` based blockchains. It can be used in combination with the `@tezos-x/octez.connect-dapp` or `@tezos-x/octez.connect-wallet` packages.",
5
- "author": "Blockchain Infra <blockchain.infra@trili.tech>",
6
- "homepage": "https://octez-connect.tezos.com",
5
+ "author": "Andreas Gassmann <a.gassmann@papers.ch>",
7
6
  "license": "ISC",
8
7
  "main": "dist/cjs/index.js",
9
8
  "module": "dist/esm/index.js",
@@ -24,17 +23,17 @@
24
23
  },
25
24
  "repository": {
26
25
  "type": "git",
27
- "url": "git+https://github.com/trilitech/octez.connect.git"
26
+ "url": "git+https://github.com/trilitech/octez.connect-sdk.git"
28
27
  },
29
28
  "scripts": {
30
29
  "tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json"
31
30
  },
32
31
  "bugs": {
33
- "url": "https://github.com/trilitech/octez.connect/issues"
32
+ "url": "https://github.com/trilitech/octez.connect-sdk/issues"
34
33
  },
35
34
  "dependencies": {
36
- "@tezos-x/octez.connect-types": "1.0.0",
37
- "@tezos-x/octez.connect-ui": "1.0.0"
35
+ "@tezos-x/octez.connect-types": "4.8.1",
36
+ "@tezos-x/octez.connect-ui": "4.8.1"
38
37
  },
39
- "gitHead": "d04a0d92e4b26162eb9a9a9911fb54331320db00"
38
+ "gitHead": "d2293b27e30276d33ddc9562689162bcf8c6ba2f"
40
39
  }