Skip to content

Commit 0227527

Browse files
authored
Merge pull request #197 from KeystoneHQ/refactor-build-system
add keystone usb keyring
2 parents d1c118a + a2cf928 commit 0227527

File tree

35 files changed

+636
-55
lines changed

35 files changed

+636
-55
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"publishConfig": {
44
"access": "public"
55
},
6-
"packageManager": "[email protected]",
6+
"workspaces": [
7+
"packages/**"
8+
],
79
"scripts": {
810
"clean": "./scripts/clean.sh",
911
"bootstrap": "pnpm clean && pnpm install",

packages/aptos-keyring/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
],
1010
"scripts": {
1111
"clean": "rm -rf ./dist",
12-
"start": "tsdx watch",
13-
"build": "tsdx build"
12+
"build": "pnpm ts-bridge --project tsconfig.build.json --verbose --clean"
1413
},
1514
"publishConfig": {
1615
"access": "public"

packages/arweave-keyring/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
],
1010
"scripts": {
1111
"clean": "rm -rf ./dist",
12-
"start": "tsdx watch",
13-
"build": "tsdx build"
12+
"build": "pnpm ts-bridge --project tsconfig.build.json --verbose --clean"
1413
},
1514
"publishConfig": {
1615
"access": "public"

packages/base-eth-keyring/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@keystonehq/base-eth-keyring",
3-
"version": "0.15.1",
3+
"version": "0.16.0-alpha.0",
44
"description": "base eth keyring",
55
"author": "aaronisme <[email protected]>",
66
"homepage": "https://github.com/KeystoneHQ/keystone-airgaped-base#readme",
@@ -22,8 +22,7 @@
2222
},
2323
"scripts": {
2424
"clean": "rm -rf ./dist",
25-
"start": "tsdx watch",
26-
"build": "tsdx build"
25+
"build": "pnpm ts-bridge --project tsconfig.build.json --verbose --clean"
2726
},
2827
"dependencies": {
2928
"@ethereumjs/rlp": "^4.0.1",

packages/base-eth-keyring/src/InteractionProvider.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@ import {
55
CryptoAccount,
66
} from "@keystonehq/bc-ur-registry-eth";
77

8+
export type EthAccount = {
9+
xpub: string;
10+
path: string;
11+
}
12+
13+
export type EthAddress = {
14+
address: string;
15+
path: string;
16+
}
17+
818
export interface InteractionProvider {
919
readCryptoHDKeyOrCryptoAccount: () => Promise<CryptoHDKey | CryptoAccount>;
1020
requestSignature: (
1121
signRequest: EthSignRequest,
1222
requestTitle?: string,
1323
requestDescription?: string
1424
) => Promise<ETHSignature>;
25+
requestAccounts: () => Promise<EthAccount[]>;
1526
}

packages/cosmos-keyring/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
],
1010
"scripts": {
1111
"clean": "rm -rf ./dist",
12-
"start": "tsdx watch",
13-
"build": "tsdx build"
12+
"build": "pnpm ts-bridge --project tsconfig.build.json --verbose --clean"
1413
},
1514
"publishConfig": {
1615
"access": "public"

packages/eth-keyring/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
],
1010
"scripts": {
1111
"clean": "rm -rf ./dist",
12-
"start": "tsdx watch",
13-
"build": "tsdx build"
12+
"build": "pnpm ts-bridge --project tsconfig.build.json --verbose --clean"
1413
},
1514
"publishConfig": {
1615
"access": "public"

packages/evm-keyring/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
],
1010
"scripts": {
1111
"clean": "rm -rf ./dist",
12-
"start": "tsdx watch",
13-
"build": "tsdx build"
12+
"build": "pnpm ts-bridge --project tsconfig.build.json --verbose --clean"
1413
},
1514
"publishConfig": {
1615
"access": "public"

packages/metamask-airgapped-keyring/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
},
2323
"scripts": {
2424
"clean": "rm -rf ./dist",
25-
"start": "tsdx watch",
26-
"build": "tsdx build"
25+
"build": "pnpm ts-bridge --project tsconfig.build.json --verbose --clean"
2726
},
2827
"dependencies": {
2928
"@ethereumjs/rlp": "^4.0.1",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# `metamask-airgapped-keyring`
2+
3+
## This package is still Working in Progress.
4+
5+
This package is the Keystone implementation of `MetaMaskKeyring` which used in MetaMask Extension.
6+
7+
## Install
8+
9+
```bash
10+
yarn add @keystonehq/metamask-airgapped-keyring
11+
```
12+
13+
```base
14+
npm install --save @keystonehq/metamask-airgapped-keyring
15+
```

0 commit comments

Comments
 (0)