Skip to content

Commit deea5da

Browse files
committed
chore: add test case
1 parent 04710f6 commit deea5da

8 files changed

Lines changed: 2122 additions & 120 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
### Changed
11+
12+
- Bump axios
13+
- Init Project
14+
15+
[Unreleased]: https://github.com/MetaMask/accounts/

packages/keyring-eth-onekey/jest.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ module.exports = merge(baseConfig, {
2323
// An object that configures minimum threshold enforcement for coverage results
2424
coverageThreshold: {
2525
global: {
26-
branches: 52.38,
27-
functions: 91.22,
28-
lines: 90.15,
29-
statements: 90.35,
26+
branches: 74.2,
27+
functions: 91.25,
28+
lines: 92.78,
29+
statements: 92.83,
3030
},
3131
},
3232
});

packages/keyring-eth-onekey/package.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "eth-onekey-bridge-keyring",
3-
"version": "0.3.5",
2+
"name": "@metamask/eth-onekey-keyring",
3+
"version": "0.1.0",
44
"description": "A MetaMask compatible keyring, for onekey hardware wallets",
55
"keywords": [
66
"ethereum",
@@ -38,10 +38,10 @@
3838
"build": "ts-bridge --project tsconfig.build.json --no-references",
3939
"build:clean": "yarn build --clean",
4040
"build:docs": "typedoc",
41-
"changelog:update": "../../scripts/update-changelog.sh @metamask/eth-trezor-keyring",
42-
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/eth-trezor-keyring",
43-
"publish:preview": "yarn npm publish --tag preview",
41+
"changelog:update": "../../scripts/update-changelog.sh @metamask/eth-onekey-keyring",
42+
"changelog:validate": "../../scripts/validate-changelog.sh @metamask/eth-onekey-keyring",
4443
"publish": "yarn npm publish",
44+
"publish:preview": "yarn npm publish --tag preview",
4545
"test": "jest && jest-it-up",
4646
"test:clean": "jest --clearCache",
4747
"test:watch": "jest --watch"
@@ -50,23 +50,18 @@
5050
"@ethereumjs/tx": "^5.4.0",
5151
"@ethereumjs/util": "^9.1.0",
5252
"@metamask/eth-sig-util": "^8.2.0",
53-
"@metamask/utils": "^11.1.0",
5453
"@noble/hashes": "^1.7.0",
55-
"@onekeyfe/hd-core": "1.1.6-patch.1",
56-
"@onekeyfe/hd-shared": "1.1.6-patch.1",
57-
"@onekeyfe/hd-transport": "1.1.6-patch.1",
58-
"@onekeyfe/hd-web-sdk": "1.1.6-patch.1",
59-
"bytebuffer": "^5.0.1",
60-
"hdkey": "^2.1.0",
61-
"ripple-address-codec": "^5.0.0",
62-
"tslib": "^2.6.2"
54+
"@onekeyfe/hd-core": "1.1.6-patch.4",
55+
"@onekeyfe/hd-shared": "1.1.6-patch.4",
56+
"@onekeyfe/hd-transport": "1.1.6-patch.4",
57+
"@onekeyfe/hd-web-sdk": "1.1.6-patch.4",
58+
"hdkey": "^2.1.0"
6359
},
6460
"devDependencies": {
6561
"@ethereumjs/common": "^4.4.0",
6662
"@lavamoat/allow-scripts": "^3.2.1",
6763
"@lavamoat/preinstall-always-fail": "^2.1.0",
6864
"@metamask/auto-changelog": "^3.4.4",
69-
"@metamask/keyring-utils": "workspace:^",
7065
"@ts-bridge/cli": "^0.6.3",
7166
"@types/bytebuffer": "^5.0.49",
7267
"@types/ethereumjs-tx": "^1.0.1",

0 commit comments

Comments
 (0)