@metamask-previews/eth-trezor-keyring 6.0.1-fb72e65 → 6.1.0-41bce29

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/CHANGELOG.md CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.1.0]
11
+
12
+ ### Added
13
+
14
+ - Add new dedicated `OneKeyKeyring` keyring ([#175](https://github.com/MetaMask/accounts/pull/175))
15
+ - This keyring is similar to the `TrezorKeyring` but will allow to distinguish both types of devices, the transport layer (bridge) remains the same.
16
+
17
+ ## [6.0.2]
18
+
19
+ ### Changed
20
+
21
+ - Bump `@metamask/eth-sig-util` dependency from `^8.0.0` to `8.2.0` ([#177](https://github.com/MetaMask/accounts/pull/177)), ([#134](https://github.com/MetaMask/accounts/pull/134))
22
+
10
23
  ## [6.0.1]
11
24
 
12
25
  ### Changed
@@ -148,7 +161,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
148
161
 
149
162
  - Support new versions of ethereumjs/tx ([#88](https://github.com/metamask/eth-trezor-keyring/pull/88))
150
163
 
151
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-trezor-keyring@6.0.1...HEAD
164
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/eth-trezor-keyring@6.1.0...HEAD
165
+ [6.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-trezor-keyring@6.0.2...@metamask/eth-trezor-keyring@6.1.0
166
+ [6.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/eth-trezor-keyring@6.0.1...@metamask/eth-trezor-keyring@6.0.2
152
167
  [6.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/eth-trezor-keyring@6.0.0...@metamask/eth-trezor-keyring@6.0.1
153
168
  [6.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-trezor-keyring@5.0.0...@metamask/eth-trezor-keyring@6.0.0
154
169
  [5.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/eth-trezor-keyring@4.0.0...@metamask/eth-trezor-keyring@5.0.0
package/dist/index.cjs CHANGED
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./trezor-keyring.cjs"), exports);
18
+ __exportStar(require("./onekey-keyring.cjs"), exports);
18
19
  __exportStar(require("./trezor-connect-bridge.cjs"), exports);
19
20
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAiC;AAEjC,8DAAwC","sourcesContent":["export * from './trezor-keyring';\nexport type * from './trezor-bridge';\nexport * from './trezor-connect-bridge';\n"]}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAiC;AACjC,uDAAiC;AAEjC,8DAAwC","sourcesContent":["export * from './trezor-keyring';\nexport * from './onekey-keyring';\nexport type * from './trezor-bridge';\nexport * from './trezor-connect-bridge';\n"]}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./trezor-keyring.cjs";
2
+ export * from "./onekey-keyring.cjs";
2
3
  export type * from "./trezor-bridge.cjs";
3
4
  export * from "./trezor-connect-bridge.cjs";
4
5
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,yCAAqC;AACrC,4CAAwC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,qCAAiC;AACjC,yCAAqC;AACrC,4CAAwC"}
package/dist/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./trezor-keyring.mjs";
2
+ export * from "./onekey-keyring.mjs";
2
3
  export type * from "./trezor-bridge.mjs";
3
4
  export * from "./trezor-connect-bridge.mjs";
4
5
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,yCAAqC;AACrC,4CAAwC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,qCAAiC;AACjC,yCAAqC;AACrC,4CAAwC"}
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./trezor-keyring.mjs";
2
+ export * from "./onekey-keyring.mjs";
2
3
  export * from "./trezor-connect-bridge.mjs";
3
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AAEjC,4CAAwC","sourcesContent":["export * from './trezor-keyring';\nexport type * from './trezor-bridge';\nexport * from './trezor-connect-bridge';\n"]}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAAiC;AACjC,qCAAiC;AAEjC,4CAAwC","sourcesContent":["export * from './trezor-keyring';\nexport * from './onekey-keyring';\nexport type * from './trezor-bridge';\nexport * from './trezor-connect-bridge';\n"]}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OneKeyKeyring = void 0;
4
+ const trezor_keyring_1 = require("./trezor-keyring.cjs");
5
+ const oneKeyKeyringType = 'OneKey Hardware';
6
+ class OneKeyKeyring extends trezor_keyring_1.TrezorKeyring {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.type = oneKeyKeyringType;
10
+ }
11
+ }
12
+ exports.OneKeyKeyring = OneKeyKeyring;
13
+ OneKeyKeyring.type = oneKeyKeyringType;
14
+ //# sourceMappingURL=onekey-keyring.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onekey-keyring.cjs","sourceRoot":"","sources":["../src/onekey-keyring.ts"],"names":[],"mappings":";;;AAAA,yDAAiD;AAEjD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAE5C,MAAa,aAAc,SAAQ,8BAAa;IAAhD;;QAGW,SAAI,GAAW,iBAAiB,CAAC;IAC5C,CAAC;;AAJD,sCAIC;AAHQ,kBAAI,GAAW,iBAAiB,AAA5B,CAA6B","sourcesContent":["import { TrezorKeyring } from './trezor-keyring';\n\nconst oneKeyKeyringType = 'OneKey Hardware';\n\nexport class OneKeyKeyring extends TrezorKeyring {\n static type: string = oneKeyKeyringType;\n\n readonly type: string = oneKeyKeyringType;\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import { TrezorKeyring } from "./trezor-keyring.cjs";
2
+ export declare class OneKeyKeyring extends TrezorKeyring {
3
+ static type: string;
4
+ readonly type: string;
5
+ }
6
+ //# sourceMappingURL=onekey-keyring.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onekey-keyring.d.cts","sourceRoot":"","sources":["../src/onekey-keyring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,6BAAyB;AAIjD,qBAAa,aAAc,SAAQ,aAAa;IAC9C,MAAM,CAAC,IAAI,EAAE,MAAM,CAAqB;IAExC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAqB;CAC3C"}
@@ -0,0 +1,6 @@
1
+ import { TrezorKeyring } from "./trezor-keyring.mjs";
2
+ export declare class OneKeyKeyring extends TrezorKeyring {
3
+ static type: string;
4
+ readonly type: string;
5
+ }
6
+ //# sourceMappingURL=onekey-keyring.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onekey-keyring.d.mts","sourceRoot":"","sources":["../src/onekey-keyring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,6BAAyB;AAIjD,qBAAa,aAAc,SAAQ,aAAa;IAC9C,MAAM,CAAC,IAAI,EAAE,MAAM,CAAqB;IAExC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAqB;CAC3C"}
@@ -0,0 +1,10 @@
1
+ import { TrezorKeyring } from "./trezor-keyring.mjs";
2
+ const oneKeyKeyringType = 'OneKey Hardware';
3
+ export class OneKeyKeyring extends TrezorKeyring {
4
+ constructor() {
5
+ super(...arguments);
6
+ this.type = oneKeyKeyringType;
7
+ }
8
+ }
9
+ OneKeyKeyring.type = oneKeyKeyringType;
10
+ //# sourceMappingURL=onekey-keyring.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onekey-keyring.mjs","sourceRoot":"","sources":["../src/onekey-keyring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,6BAAyB;AAEjD,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAc,SAAQ,aAAa;IAAhD;;QAGW,SAAI,GAAW,iBAAiB,CAAC;IAC5C,CAAC;;AAHQ,kBAAI,GAAW,iBAAiB,AAA5B,CAA6B","sourcesContent":["import { TrezorKeyring } from './trezor-keyring';\n\nconst oneKeyKeyringType = 'OneKey Hardware';\n\nexport class OneKeyKeyring extends TrezorKeyring {\n static type: string = oneKeyKeyringType;\n\n readonly type: string = oneKeyKeyringType;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/eth-trezor-keyring",
3
- "version": "6.0.1-fb72e65",
3
+ "version": "6.1.0-41bce29",
4
4
  "description": "A MetaMask compatible keyring, for trezor hardware wallets",
5
5
  "keywords": [
6
6
  "ethereum",
@@ -17,7 +17,6 @@
17
17
  "url": "https://github.com/MetaMask/eth-trezor-keyring.git"
18
18
  },
19
19
  "license": "ISC",
20
- "author": "Bruno Barbieri",
21
20
  "exports": {
22
21
  ".": {
23
22
  "import": {
@@ -49,10 +48,11 @@
49
48
  "dependencies": {
50
49
  "@ethereumjs/tx": "^4.2.0",
51
50
  "@ethereumjs/util": "^8.1.0",
52
- "@metamask/eth-sig-util": "^8.0.0",
51
+ "@metamask/eth-sig-util": "^8.2.0",
53
52
  "@trezor/connect-plugin-ethereum": "^9.0.3",
54
53
  "@trezor/connect-web": "^9.1.11",
55
- "hdkey": "^2.1.0"
54
+ "hdkey": "^2.1.0",
55
+ "tslib": "^2.6.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@ethereumjs/common": "^3.2.0",
@@ -75,13 +75,9 @@
75
75
  "sinon": "^19.0.2",
76
76
  "ts-jest": "^29.0.5",
77
77
  "ts-node": "^10.9.2",
78
- "tslib": "^2.6.2",
79
78
  "typedoc": "^0.25.13",
80
79
  "typescript": "~5.6.3"
81
80
  },
82
- "peerDependencies": {
83
- "tslib": "^2.6.2"
84
- },
85
81
  "engines": {
86
82
  "node": "^18.18 || >=20"
87
83
  },