Skip to content

Commit 28b9881

Browse files
Merge pull request #249 from SwissBitcoinPay/proof-of-funds
Proof of funds
2 parents bf3c6a7 + 6333e38 commit 28b9881

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2554
-388
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION=2.3.8
1+
APP_VERSION=2.4.0
22

3-
APP_BUILD_NUMBER=421
3+
APP_BUILD_NUMBER=422

.eslintrc.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import moduleResolver from "eslint-plugin-module-resolver";
4+
import tsParser from "@typescript-eslint/parser";
5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all
16+
});
17+
18+
export default [
19+
{
20+
ignores: [
21+
"**/webpack.config.ts",
22+
"**/react-native.config.js",
23+
"**/metro.config.js",
24+
"**/jest.config.js",
25+
"**/index.js",
26+
"**/babel.config.js",
27+
"**/.eslintrc.js"
28+
]
29+
},
30+
...fixupConfigRules(
31+
compat.extends(
32+
"eslint:recommended",
33+
"@react-native",
34+
"plugin:@typescript-eslint/recommended",
35+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
36+
"plugin:react/recommended",
37+
"plugin:react-hooks/recommended",
38+
"prettier"
39+
)
40+
),
41+
{
42+
plugins: {
43+
"@typescript-eslint": fixupPluginRules(typescriptEslint),
44+
"module-resolver": moduleResolver
45+
},
46+
47+
languageOptions: {
48+
parser: tsParser,
49+
ecmaVersion: 5,
50+
sourceType: "script",
51+
52+
parserOptions: {
53+
tsconfigRootDir: "/home/swiss-bitcoin-pay/sbp/app",
54+
project: ["./tsconfig.json"]
55+
}
56+
},
57+
58+
settings: {
59+
react: {
60+
version: "detect"
61+
},
62+
63+
"import/resolver": {
64+
"babel-module": {}
65+
}
66+
},
67+
68+
rules: {
69+
"@typescript-eslint/no-unsafe-assignment": "off",
70+
"@typescript-eslint/no-unsafe-member-access": "off",
71+
"@typescript-eslint/ban-ts-comment": "off",
72+
"@typescript-eslint/no-floating-promises": "off",
73+
"@typescript-eslint/no-misused-promises": "off",
74+
"react/display-name": "off",
75+
"react-native/no-inline-styles": "off",
76+
"react/react-in-jsx-scope": "off",
77+
"react-hooks/exhaustive-deps": ["warn"],
78+
radix: "off",
79+
80+
"@typescript-eslint/no-unused-vars": [
81+
"warn",
82+
{
83+
argsIgnorePattern: "^_",
84+
varsIgnorePattern: "^_",
85+
caughtErrorsIgnorePattern: "^_"
86+
}
87+
],
88+
89+
"no-void": [
90+
"error",
91+
{
92+
allowAsStatement: true
93+
}
94+
],
95+
96+
"no-console": [
97+
"error",
98+
{
99+
allow: ["error", "warn"]
100+
}
101+
]
102+
}
103+
}
104+
];

package-lock.json

Lines changed: 35 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@
140140
"@babel/plugin-transform-export-namespace-from": "7.25.9",
141141
"@babel/preset-env": "7.26.9",
142142
"@babel/runtime": "7.26.9",
143+
"@eslint/compat": "1.2.7",
144+
"@eslint/eslintrc": "3.3.0",
145+
"@eslint/js": "9.21.0",
143146
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
144147
"@react-native-community/cli": "15.1.3",
145148
"@react-native-community/cli-platform-android": "15.1.3",

src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212
PayoutConfigScreen,
1313
EmailLogin,
1414
SignatureLogin,
15-
Invoice
15+
Invoice,
16+
Aml
1617
} from "@screens";
1718
import {
1819
useAccountConfig,
@@ -83,6 +84,7 @@ const App = () => {
8384
<Route path="history" element={<History />} />
8485
<Route path="connect/:id" element={<Connect />} />
8586
<Route path="invoice/:id?" element={<Invoice />} />
87+
<Route path="aml/:id?" element={<Aml />} />
8688
</Routes>
8789
</ErrorBoundary>
8890
<TopLeftLogo />

0 commit comments

Comments
 (0)