Skip to content

Commit

Permalink
Inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Jun 30, 2023
0 parents commit ecf5ddc
Show file tree
Hide file tree
Showing 23 changed files with 1,914 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules*
dist
public
*.local
bun.lockb

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
docs
node_modules
package.json
package-lock.json
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"proseWrap": "always",
"semi": true,
"trailingComma": "all"
}
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2023 jojobyte
Copyright (c) 2023 Dash Incubator

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Wallet UI

A Graphical User Interface (GUI) for
[DashWallet.js](https://github.com/dashhive/DashWallet.js)


## Roadmap
### Stage 1
- [x] Initial Project Setup
- [ ] Implementation of `dashsight` & `dashwallet` modules
- [ ] To [generate a new wallet](https://github.com/dashhive/DashWallet.js#walletgeneratewalletinfo)
- [ ] To restore an existing wallet via recovery phrase and/or WIFs
- [ ] To [get balance of wallet](https://github.com/dashhive/DashWallet.js#walletbalances)
- [ ] Add Usage Controls
- [ ] [Share Pairing Contact Info](https://github.com/dashhive/DashWallet.js#walletbefriendfrienddetails)
- [ ] Add a Contact
- [ ] Request Funds
- [DashWallet.js#walletfindchangewalletfriendopts](https://github.com/dashhive/DashWallet.js#walletfindchangewalletfriendopts)
- [ ] Send Funds
- [DashWallet.js#walletfindfriendfriendopts](https://github.com/dashhive/DashWallet.js#walletfindfriendfriendopts)
- [ ] Display List of Contacts
- [ ] Send
- [ ] Request
- [ ] Edit
- [ ] Remove

### Stage 2
- [ ] Backup Wallet & Contacts
- [ ] Encrypt wallet data in local storage
- [ ] Transactions view
- [ ] Table with filter/sort
- [ ] Select & Copy as CSV
- [ ] Display Wallet balance in desired fiat currency
- [ ] Settings
- [ ] Select Wallet (multiple accounts)
- [ ] Set Alias for selected wallet
- [ ] Preferred fiat Currency
- USD
- GBP
- EUR
- etc
- [ ] Contact/Payment Share Features
- [ ] SMS
- [ ] Email
- [ ] QR Image
- [ ] Set Fund Denomination for Send & Request payments

### Stage 3
- [ ] Cash Drawer to display coins separated by denomination
- [ ] View & manage addresses associated with Wallet
- [ ] Add side-by-side view for contacts to display the XPubs that represent both you & the contact in the connection
- [ ] Gift card integration
- [ ] DashDirect
- [ ] BitRefill

### Stage 4
- [ ] Savings account (Investing) Integration
- [ ] CrowdNode
- [ ] THORChain / Maya
- [ ] Subscriptions
- [ ] If possible, automate `befriend` process with blockchain messaging.

### Stage 5
- [ ] Tauri Wrapper
- [ ] Mobile App
69 changes: 69 additions & 0 deletions imports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// @ts-nocheck

/**
* Use IIFE modules in browser that do not provide
*
* `export default`
* or
* `export let rabbit = 'hole'`
*
* and preserve JSDoc type hinting.
*
* See https://github.com/jojobyte/browser-import-rabbit-hole
*/

import './node_modules/dashwallet/dashwallet.js';
import './node_modules/dashkeys/dashkeys.js';
import './node_modules/dashhd/dashhd.js';
import './node_modules/dashphrase/dashphrase.js';
import './node_modules/dashsight/dashsight.js';
import './node_modules/dashsight/dashsocket.js';
import './node_modules/@dashincubator/secp256k1/secp256k1.js';
import './node_modules/@dashincubator/base58check/base58check.js';
import './node_modules/crypticstorage/crypticstorage.js';

import * as DashWalletTypes from './node_modules/dashwallet/dashwallet.js';
import * as DashKeysTypes from './node_modules/dashkeys/dashkeys.js';
import * as DashHDTypes from './node_modules/dashhd/dashhd.js';
import * as DashPhraseTypes from './node_modules/dashphrase/dashphrase.js';
import * as DashSightTypes from './node_modules/dashsight/dashsight.js';
import * as DashSocketTypes from './node_modules/dashsight/dashsocket.js';
import * as Secp256k1Types from './node_modules/@dashincubator/secp256k1/secp256k1.js';
import * as Base58CheckTypes from './node_modules/@dashincubator/base58check/base58check.js';
import * as RIPEMD160Types from './node_modules/@dashincubator/ripemd160/ripemd160.js';
import * as CrypticStorageTypes from './node_modules/crypticstorage/crypticstorage.js';

/** @type {DashWalletTypes} */
export let DashWallet = window?.Wallet || globalThis?.Wallet;
/** @type {DashKeysTypes} */
export let DashKeys = window?.DashKeys || globalThis?.DashKeys;
/** @type {DashHDTypes} */
export let DashHd = window?.DashHd || globalThis?.DashHd;
/** @type {DashPhraseTypes} */
export let DashPhrase = window?.DashPhrase || globalThis?.DashPhrase;
/** @type {DashSightTypes} */
export let DashSight = window?.DashSight || globalThis?.DashSight;
/** @type {DashSocketTypes} */
export let DashSocket = window?.DashSocket || globalThis?.DashSocket;
/** @type {Secp256k1Types} */
export let Secp256k1 = window?.nobleSecp256k1 || globalThis?.nobleSecp256k1;
/** @type {Base58CheckTypes} */
export let Base58Check = window?.Base58Check || globalThis?.Base58Check;
/** @type {RIPEMD160Types} */
export let RIPEMD160 = window?.RIPEMD160 || globalThis?.RIPEMD160;
/** @type {CrypticStorageTypes} */
export let CrypticStorage =
window?.CrypticStorage || globalThis?.CrypticStorage;

export default {
DashWallet,
DashHd,
DashPhrase,
DashKeys,
DashSight,
DashSocket,
Secp256k1,
Base58Check,
RIPEMD160,
CrypticStorage,
};
41 changes: 41 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"compilerOptions": {
"baseUrl": ".",
"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"maxNodeModuleJsDepth": 20,
"allowSyntheticDefaultImports": true,
"lib": [
"DOM",
"DOM.Iterable",
"ESNext",
"WebWorker"
],
"declaration": true,
"declarationDir": ".",
"declarationMap": true,
"allowJs": true,
"checkJs": true,
"noEmit": true,
"esModuleInterop": true,
"skipLibCheck": true,
"types": [
"node",
],
"typeRoots": [
"typings",
"node_modules/@types",
]
},
"include": [
"types.js",
"*.js",
"bin/**/*.js",
"lib/**/*.js",
"src/**/*.js"
],
"exclude": [
"node_modules"
]
}
Loading

0 comments on commit ecf5ddc

Please sign in to comment.