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

Web based PoS #55

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5f28852
Delete some Electron stuff
msafi Jul 26, 2020
d33ee57
Move everything inside renderer to root `src`
msafi Jul 26, 2020
31a0947
Get the app to compile with inlining
msafi Jul 26, 2020
f5a0239
Add CSS Module support
msafi Jul 26, 2020
c5d36df
Style title
msafi Jul 26, 2020
710619c
Delete more obsolete files
msafi Jul 26, 2020
ee566b9
Remove `createExecutable` references
msafi Jul 27, 2020
b3f80b8
Display master public key
msafi Aug 21, 2020
fcf6a45
Query blockchain service
msafi Aug 21, 2020
7407806
Display wallet initial state
msafi Aug 21, 2020
706319a
Implement receiving
msafi Aug 21, 2020
417f8bd
Improve naming
msafi Aug 22, 2020
c6d6bbb
Clean up old code
msafi Aug 24, 2020
bcc821e
Style menu
msafi Aug 25, 2020
9e11611
Implement wallet create secret page
msafi Aug 25, 2020
a2d4207
Create the general layout of the secret confirm page
msafi Aug 25, 2020
e2fabad
Add validation to confirm secret page
msafi Aug 26, 2020
b05f2e9
Implement error for entered mnemonic
msafi Aug 26, 2020
ab18613
Implement wallet import page
msafi Aug 26, 2020
f170220
Implement redirection to wallet page
msafi Aug 26, 2020
970c507
Fetch transactions
msafi Aug 28, 2020
232ebdb
Calculate relevant balance in each transaction
msafi Aug 28, 2020
4d6bde7
Remove `global.css`. Use one CSS file, `styles.css`
msafi Aug 29, 2020
5240dc8
Refactor styles
msafi Aug 30, 2020
ab1495d
Style homepage
msafi Aug 30, 2020
4c64b0e
Style menu and settings pages
msafi Aug 30, 2020
ba6c0e4
Style textarea
msafi Aug 30, 2020
75bf2be
Style wallet import page
msafi Aug 30, 2020
4dbe16c
Persist redux state
msafi Aug 30, 2020
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
24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@ module.exports = {
"react/destructuring-assignment": "off", // to allow `props.whateverProp`
"arrow-body-style": ["error", "as-needed"],
"no-console": "error",
"no-plusplus": "off",
"no-await-in-loop": "off",
camelcase: [
"error",
{
allow: [
"chain_stats",
"funded_txo_count",
"funded_txo_sum",
"spent_txo_count",
"spent_txo_sum",
"tx_count",
"mempool_stats",
"block_height",
"block_hash",
"block_time",
"scriptpubkey_asm",
"scriptpubkey_type",
"scriptpubkey_address",
"scriptsig_asm",
"is_coinbase",
],
},
],
"import/no-extraneous-dependencies": "off",
"react/display-name": "error",
"react-hooks/rules-of-hooks": "error",
Expand Down
17 changes: 0 additions & 17 deletions .github/action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,3 @@ To compile the bundle, run
```bash
NODE_ENV=production npm run build-action
```

## Building an executable locally

If you need to build an executable locally for your operating system, you can
run the command

```bash
npm run create-executable
```

This command will run the script
[`.github/action/createExecutable.ts`](../action/createExecutable.ts), which
will generate an executable targeted to your operating system. You will find the
executable at `artifacts/electronPackager`.

`createExecutable.ts` can run on a local development environment in addition to
running on a GitHub Action machine.
5 changes: 0 additions & 5 deletions .github/action/action.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as core from "@actions/core";
import bluebird from "bluebird";
import { createExecutable } from "./createExecutable";
import { execWithErrorMessage } from "./utils";
import { draftRelease } from "./draftRelease";

Expand All @@ -13,10 +12,6 @@ const action = async () => {

const task = core.getInput("task");

if (task === "create-executable") {
return await createExecutable();
}

if (task === "draft-release") {
return await draftRelease();
}
Expand Down
111 changes: 0 additions & 111 deletions .github/action/createExecutable.ts

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage
node_modules
artifacts
*.css.d.ts
1 change: 0 additions & 1 deletion .nonce

This file was deleted.

2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"files": "*.md",
"options": {
"proseWrap": "always",
"printWidth": 80
"printWidth": 50
}
}
]
Expand Down
19 changes: 0 additions & 19 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
"outFiles": ["${workspaceRoot}/artifacts/webpack/main/main.js"],
"sourceMaps": true,
// "args": ["./artifacts/webpack"],
"args": ["./artifacts/webpack", "--args", "--testnet"],
"outputCapture": "std",
"preLaunchTask": "_webpack-build-main",
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Debug Jest Tests",
"type": "node",
Expand Down
10 changes: 9 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,25 @@
"Mempool",
"SCROLLABLE",
"Satoshi",
"Utxo",
"Utxos",
"bitcoind",
"btcd",
"clsx",
"formik",
"sats",
"start",
"testid"
"testid",
"txid",
"vout"
],
"editor.formatOnSave": true,
"editor.rulers": [80],
"rewrap.wrappingColumn": 80,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[markdown]": {
"editor.rulers": [50]
}
}
83 changes: 0 additions & 83 deletions SECURITY.md

This file was deleted.

3 changes: 0 additions & 3 deletions __mocks__/child_process.ts

This file was deleted.

1 change: 0 additions & 1 deletion __mocks__/electron-devtools-installer.ts

This file was deleted.

16 changes: 0 additions & 16 deletions __mocks__/electron/BrowserWindow.ts

This file was deleted.

16 changes: 0 additions & 16 deletions __mocks__/electron/WebContents.ts

This file was deleted.

11 changes: 0 additions & 11 deletions __mocks__/electron/app.ts

This file was deleted.

7 changes: 0 additions & 7 deletions __mocks__/electron/dialog.ts

This file was deleted.

Loading