Skip to content

Commit

Permalink
build: 📦 add npm modules needed for transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Oct 28, 2023
1 parent 6939240 commit b7ffe20
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
30 changes: 27 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@
"deploy": "node .github/workflows/deploy.js"
},
"dependencies": {
"@dashincubator/base58check": "^1.4.1",
"@dashincubator/ripemd160": "^3.0.0",
"@dashincubator/secp256k1": "^1.7.1-5",
"@zxing/library": "^0.20.0",
"crypticstorage": "^0.0.1-1",
"dashhd": "^3.2.0",
"dashkeys": "^1.0.1",
"dashphrase": "^1.3.9",
"dashsight": "^1.6.0",
"dashtx": "^0.13.1",
"dashwallet": "^0.6.0",
"html5-qrcode": "^2.3.8",
"idb": "^7.1.1",
Expand Down
15 changes: 15 additions & 0 deletions src/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,36 @@
*/

// import '../node_modules/dashwallet/dashwallet.js';
import '../node_modules/dashtx/dashtx.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/base58check/base58check.js';
import '../node_modules/@dashincubator/ripemd160/ripemd160.js';
import '../node_modules/@dashincubator/secp256k1/secp256k1.js';
import '../node_modules/crypticstorage/cryptic.js';
import '../node_modules/localforage/dist/localforage.js';

// import * as DashWalletTypes from '../node_modules/dashwallet/dashwallet.js';
import * as DashTxTypes from '../node_modules/dashtx/dashtx.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 Base58CheckTypes from '../node_modules/@dashincubator/base58check/base58check.js';
import * as RIPEMD160Types from '../node_modules/@dashincubator/ripemd160/ripemd160.js';
import * as Secp256k1Types from '../node_modules/@dashincubator/secp256k1/secp256k1.js';
import * as CrypticTypes from '../node_modules/crypticstorage/cryptic.js';
import * as CrypticStorageTypes from '../node_modules/crypticstorage/storage.js';
// import * as LocalForageTypes from '../node_modules/localforage/dist/localforage.js';

// /** @type {DashWalletTypes} */
// export let DashWallet = window?.Wallet || globalThis?.Wallet;
/** @type {DashTxTypes} */
export let DashTx = window?.DashTx || globalThis?.DashTx;
/** @type {DashKeysTypes} */
export let DashKeys = window?.DashKeys || globalThis?.DashKeys;
/** @type {DashHDTypes} */
Expand All @@ -45,6 +53,10 @@ export let DashPhrase = window?.DashPhrase || globalThis?.DashPhrase;
export let DashSight = window?.DashSight || globalThis?.DashSight;
/** @type {DashSocketTypes} */
export let DashSocket = window?.DashSocket || globalThis?.DashSocket;
/** @type {Base58CheckTypes} */
export let Base58Check = window?.Base58Check || globalThis?.Base58Check;
/** @type {RIPEMD160Types} */
export let RIPEMD160 = window?.RIPEMD160 || globalThis?.RIPEMD160;
/** @type {Secp256k1Types} */
export let Secp256k1 = window?.nobleSecp256k1 || globalThis?.nobleSecp256k1;
/** @type {CrypticTypes} */
Expand All @@ -59,11 +71,14 @@ export let localforage =

export default {
// DashWallet,
DashTx,
DashKeys,
DashHd,
DashPhrase,
DashSight,
DashSocket,
Base58Check,
RIPEMD160,
Secp256k1,
Cryptic,
CrypticStorage,
Expand Down

0 comments on commit b7ffe20

Please sign in to comment.