-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 75296a4
Showing
151 changed files
with
21,141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist/ | ||
docs_generated/ | ||
_typedoc/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module", | ||
"tsconfigRootDir": "./" | ||
}, | ||
"settings": { | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true, | ||
"project": ["tsconfig.json"] | ||
} | ||
} | ||
}, | ||
"extends": ["eslint:recommended", "plugin:import/errors"], | ||
"plugins": ["@typescript-eslint", "import", "simple-import-sort", "prettier"], | ||
"rules": { | ||
"indent": 2, | ||
"semi": ["error", "never"], | ||
"simple-import-sort/imports": "warn", | ||
"no-unused-vars": "off", | ||
"comma-dangle": "off", | ||
"@typescript-eslint/comma-dangle": ["error", "always-multiline"], | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"varsIgnorePattern": "^_", | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"warn", | ||
{ "prefer": "type-imports" } | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["src/**/*.ts"], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": ["example-node/**/*.js", "test/**/*.ts"], | ||
"rules": { | ||
"no-unused-vars": ["off"] | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[ignore] | ||
|
||
[include] | ||
|
||
[untyped] | ||
|
||
[libs] | ||
|
||
[lints] | ||
|
||
[options] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
dist | ||
node_modules | ||
.vscode | ||
docs_generated/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
tabWidth: 2, | ||
singleQuote: false | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### Fio | ||
|
||
JS Library for communication with Ledger Hardware Wallets. | ||
This library is compatible with the FIO Ledger Application. | ||
|
||
### Example code | ||
|
||
Demo app code interacting with `hw-app-fio` is provided in `example-node` directory. You can execute it with the `yarn run-example` command. | ||
|
||
### Tests | ||
|
||
Automated tests are provided. There are two types of tests | ||
|
||
1. `yarn test-integration`. Tests integration of JS api with the ledger app. | ||
2. `yarn device-self-test`. Runs unnit tests on ledger (development build required). | ||
|
||
Note that for these tests it is advisable to install the developer build of the FIO app with _headless_ mode enabled unless you want to verify the UI flows, otherwise you will need a significant amount of time to manually confirm all prompts on the device. | ||
|
||
### Documentation | ||
|
||
- you can build the docs by running `yarn gen-docs` and then navigate to docs_generated/index.html | ||
|
Oops, something went wrong.