Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support boltz-client as backend #488

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
{
files: ["**/lazy/**/*", "test/**/*"],
rules: {
"no-restricted-imports": "off",
},
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-empty": "off",
"no-useless-escape": "off",
"no-case-declarations": "off",
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["**/lazy/**"],
message:
"These modules have to be imported lazily due to big dependencies",
},
{
group: [
"boltz-core",
"bitcoinjs-lib",
"liquidjs-lib",
"bolt11",
"@vulpemventures/secp256k1-zkp",
"@bitcoinerlab/secp256k1",
],
message:
"These modules are only allowed to be imported within /lazy directories",
},
],
},
],
"prefer-const": "off",
},
};
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ jobs:
- run: npm run prettier-check
- run: npm run test
- run: npm run tsc
- run: npm run lint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ tags
.vscode/

*.log
public/config.json
dist/
ts-out/
coverage/
node_modules/
src/config.ts
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
<body class="loading">
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script>
fetch("/config.json")
.then((response) => {
return response.json();
})
.then((config) => {
window.config = config;
window.dispatchEvent(new Event("config"));
});
</script>
<script src="/src/index.tsx" type="module"></script>
<script
src="/node_modules/iframe-resizer/js/iframeResizer.contentWindow.js"
Expand Down
Loading
Loading