Desktop wallet to interact with the Decent.bet token contract on the Vechain / Ethereum mainnet.
- Enable CORS:
thor solo --on-demand --verbosity 9 --api-cors http://localhost:3100
- Configure proper networks to use updated contracts
- Run with environment variable:
export THOR_URL=http://localhost:8669;npm start
- Wallet login using Ethereum private keys/mnemonics.
- Create new wallets using a random mnemonic generator (Using Ethers).
- View DBET balances, transactions and send DBETs to other addresses.
Built initially with Truffle Box and Electron, then migrated to use react-scripts-ts. Uses Ethers for Wallet creation/verfication and parts of Web3 1.0 for account management.
- Clone this repository
- Install dependencies with
npm install
- Rebuild scrypt
npm rebuild
The mainnet token contract ABIs are included in the build/contracts folder, which would mean that you wouldn't have to migrate any contracts to your local network. For development,
-
Run the webpack server for front-end hot reloading.
npm start
-
To build the application for production/working with electron, use the build command. A production build will be created in the build folder.
npm run build
-
Deploy the build files using a simple express server and pm2/serve or create a packaged electron based executable file using the instructions below.
DBET Wallet uses electron-builder to build and create installers across all operating systems.
Make sure you run npm run build
and have the build
folder in the wallet's root
directory. Once available, simply call:
- Windows
npm run dist:windows
- Linux
npm run dist:linux
- MacOs
npm run dist:mac
- All
npm run dist:all
DBET Wallet uses GitHub releases.
Make sure you run npm run build
and have the build
folder in the wallet's root
directory. Once available, change the package.json version and call:
npm run release
A new release will be created on releases.
Uncaught exceptions are logged with electron-log.
The settings for each environment can be found in Config.ts