@zondax/ledger-cosmos-js 2.1.8 → 3.0.0
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/LICENSE +1 -1
- package/README.md +39 -7
- package/dist/commandsV1.d.ts +4 -0
- package/dist/commandsV1.js +129 -0
- package/dist/commandsV1.js.map +1 -0
- package/dist/commandsV2.d.ts +4 -0
- package/dist/commandsV2.js +104 -0
- package/dist/commandsV2.js.map +1 -0
- package/dist/common.d.ts +39 -0
- package/dist/common.js +143 -132
- package/dist/common.js.map +1 -0
- package/dist/cosmosApp.d.ts +19 -0
- package/dist/cosmosApp.js +377 -0
- package/dist/cosmosApp.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +17 -608
- package/dist/index.js.map +1 -0
- package/package.json +64 -50
- package/yarn.lock +6661 -0
- package/.babelrc +0 -13
- package/.circleci/config.yml +0 -62
- package/.editorconfig +0 -14
- package/.eslintrc.json +0 -31
- package/.idea/codeStyles/Project.xml +0 -57
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/jsLibraryMappings.xml +0 -6
- package/.idea/ledger-cosmos-js.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -57
- package/.prettierrc.json +0 -4
- package/certs/.gitkeep +0 -0
- package/certs/openssl.cnf +0 -12
- package/dist/helperV1.js +0 -127
- package/dist/helperV2.js +0 -97
- package/docs/example.png +0 -0
- package/jest.config.integration.js +0 -9
- package/jest.config.js +0 -32
- package/jest.config.unit.js +0 -9
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/common.js +0 -114
- package/src/helperV1.js +0 -73
- package/src/helperV2.js +0 -44
- package/src/index.js +0 -336
- package/tests/basic.ispec.js +0 -390
- package/tests/basic.spec.js +0 -8
- package/tests/jest.js +0 -2
- package/vue.config.js +0 -11
- package/vue_example/App.vue +0 -29
- package/vue_example/assets/logo.png +0 -0
- package/vue_example/components/LedgerExample.vue +0 -252
- package/vue_example/main.js +0 -9
package/package.json
CHANGED
|
@@ -1,84 +1,98 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zondax/ledger-cosmos-js",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"author": "ZondaX AG",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"version": "3.0.0",
|
|
6
|
+
"description": "Node API for Cosmos App (Ledger Nano S/S+/X)",
|
|
5
7
|
"main": "./dist/index.js",
|
|
8
|
+
"typings": "./dist/index.d.ts",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
6
10
|
"repository": {
|
|
7
11
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
12
|
+
"url": "git+https://github.com/cosmos/ledger-cosmos-js.git"
|
|
9
13
|
},
|
|
10
14
|
"keywords": [
|
|
11
15
|
"Ledger",
|
|
12
|
-
"
|
|
16
|
+
"Typescript",
|
|
13
17
|
"Tendermint",
|
|
14
18
|
"Cosmos"
|
|
15
19
|
],
|
|
16
|
-
"author": "ZondaX GmbH",
|
|
17
|
-
"license": "Apache-2.0",
|
|
18
20
|
"bugs": {
|
|
19
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "https://github.com/cosmos/ledger-cosmos-js/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://github.com/cosmos/ledger-cosmos-js",
|
|
24
|
+
"resolutions": {
|
|
25
|
+
"@ledgerhq/hw-transport": "6.27.1",
|
|
26
|
+
"@ledgerhq/devices": "6.27.1",
|
|
27
|
+
"@ledgerhq/hw-transport-node-hid": "6.27.1",
|
|
28
|
+
"@ledgerhq/hw-transport-node-hid-noevents": "6.27.1"
|
|
20
29
|
},
|
|
21
|
-
"homepage": "https://github.com/zondax/ledger-cosmos-js",
|
|
22
30
|
"dependencies": {
|
|
23
|
-
"@babel/runtime": "^7.
|
|
24
|
-
"@ledgerhq/hw-transport": "
|
|
31
|
+
"@babel/runtime": "^7.14.8",
|
|
32
|
+
"@ledgerhq/hw-transport": "6.27.1",
|
|
25
33
|
"bech32": "^1.1.4",
|
|
26
34
|
"ripemd160": "^2.0.2"
|
|
27
35
|
},
|
|
28
36
|
"devDependencies": {
|
|
29
|
-
"@babel/cli": "^7.
|
|
30
|
-
"@babel/core": "^7.
|
|
31
|
-
"@babel/node": "^7.10
|
|
32
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
33
|
-
"@babel/preset-env": "^7.
|
|
34
|
-
"@ledgerhq/hw-transport-node-hid": "
|
|
35
|
-
"@ledgerhq/hw-transport-
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"babel-eslint": "^10.1.0",
|
|
42
|
-
"babel-jest": "^26.3.0",
|
|
37
|
+
"@babel/cli": "^7.18.10",
|
|
38
|
+
"@babel/core": "^7.18.10",
|
|
39
|
+
"@babel/node": "^7.18.10",
|
|
40
|
+
"@babel/plugin-transform-runtime": "^7.18.9",
|
|
41
|
+
"@babel/preset-env": "^7.18.9",
|
|
42
|
+
"@ledgerhq/hw-transport-node-hid": "6.27.1",
|
|
43
|
+
"@ledgerhq/hw-transport-webusb": "6.27.1",
|
|
44
|
+
"@swc/core": "^1.2.237",
|
|
45
|
+
"@types/jest": "^26.0.24",
|
|
46
|
+
"@types/ledgerhq__hw-transport": "4.21.4",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
|
48
|
+
"@typescript-eslint/parser": "^5.33.1",
|
|
43
49
|
"bip32": "2.0.6",
|
|
44
50
|
"bip39": "3.0.2",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"eslint
|
|
51
|
-
"eslint-
|
|
52
|
-
"eslint-plugin-
|
|
53
|
-
"eslint-plugin-
|
|
54
|
-
"
|
|
55
|
-
"jest": "^26
|
|
56
|
-
"jest-serial-runner": "^1.
|
|
57
|
-
"prettier": "^2.
|
|
51
|
+
"copyfiles": "^2.4.1",
|
|
52
|
+
"babel-eslint": "^10.1.0",
|
|
53
|
+
"babel-jest": "^28.1.3",
|
|
54
|
+
"core-js": "^3.15.2",
|
|
55
|
+
"crypto-js": "4.1.1",
|
|
56
|
+
"eslint": "^8.22.0",
|
|
57
|
+
"eslint-config-prettier": "^8.5.0",
|
|
58
|
+
"eslint-plugin-import": "^2.26.0",
|
|
59
|
+
"eslint-plugin-jest": "^26.8.3",
|
|
60
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
61
|
+
"jest": "^26",
|
|
62
|
+
"jest-serial-runner": "^1.2.0",
|
|
63
|
+
"prettier": "^2.3.2",
|
|
58
64
|
"secp256k1": "^4.0.2",
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
"scripts": {
|
|
63
|
-
"build": "babel src --out-dir dist",
|
|
64
|
-
"test:unit": "jest -c jest.config.unit.js",
|
|
65
|
-
"test:integration": "jest -c jest.config.integration.js --runInBand --detectOpenHandles",
|
|
66
|
-
"serve": "openssl req -nodes -new -x509 -config certs/openssl.cnf -keyout certs/server.key -out certs/server.cert; openssl x509 -in certs/server.cert -out certs/cert.pem -outform PEM; vue-cli-service serve vue_example/main.js"
|
|
65
|
+
"ts-jest": "26",
|
|
66
|
+
"ts-node": "^10.8.1",
|
|
67
|
+
"typescript": "^4.7.4"
|
|
67
68
|
},
|
|
68
69
|
"moduleDirectories": [
|
|
69
70
|
"node_modules",
|
|
70
71
|
"dist"
|
|
71
72
|
],
|
|
72
|
-
"postcss": {
|
|
73
|
-
"plugins": {
|
|
74
|
-
"autoprefixer": {}
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
73
|
"browserslist": [
|
|
78
74
|
"> 1%",
|
|
79
75
|
"last 2 versions"
|
|
80
76
|
],
|
|
77
|
+
"files": [
|
|
78
|
+
"dist/*",
|
|
79
|
+
"LICENSE",
|
|
80
|
+
"yarn.lock"
|
|
81
|
+
],
|
|
81
82
|
"publishConfig": {
|
|
82
83
|
"access": "public"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"@babel/core": "^7.17.5",
|
|
87
|
+
"@types/node": "^17.0.21"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "tsc && yarn copy-files",
|
|
91
|
+
"copy-files": "copyfiles -u 0 src/**/*.proto dist/",
|
|
92
|
+
"test:integration": "yarn build && jest -t 'Integration'",
|
|
93
|
+
"test:unit": "yarn build && jest tests/basic_unit.test.ts",
|
|
94
|
+
"serve": "openssl req -nodes -new -x509 -config certs/openssl.cnf -keyout certs/server.key -out certs/server.cert; openssl x509 -in certs/server.cert -out certs/cert.pem -outform PEM; vue-cli-service serve vue_example/main.js",
|
|
95
|
+
"linter": "eslint --ext .ts,.tsx,.js,.jsx --ignore-path .eslintignore . --max-warnings 0",
|
|
96
|
+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\""
|
|
83
97
|
}
|
|
84
98
|
}
|