Skip to content

Instantly share code, notes, and snippets.

@PaulLaux
PaulLaux / eth-hot-wallet-generateWallet.js
Created August 28, 2018 10:34
Generating new wallet params
/**
* Generate new seed and password
* https://github.com/PaulLaux/eth-hot-wallet/blob/master/app/containers/HomePage/saga.js#L69
*/
export function* generateWallet() {
try {
const password = generateString(generatedPasswordLength);
const extraEntropy = generateString(generatedPasswordLength);
const seed = lightwallet.keystore.generateRandomSeed(extraEntropy);
@PaulLaux
PaulLaux / eth-hot-wallet-Saga.js
Last active April 29, 2019 17:48
eth-hot-wallet Saga.js usage example
/**
* Saga.js usage example
* The mental model is that a saga is like a separate thread in your application
* that's solely responsible for side effects. redux-saga is a redux middleware,
* which means this thread can be started, paused and cancelled from the main
* application with normal redux actions, it has access to the full redux application
* state and it can dispatch redux actions as well.
*/
export function* checkFaucetApi() {
const requestURL = checkFaucetAddress;
@PaulLaux
PaulLaux / MonetaryCoin-token-abi.js
Created July 6, 2018 22:55
MonetaryCoin token contract ABI
/*
MonetaryCoinEro token contract ABI
0x227412a7d92bca453b5e2f790fc8282ca2e1a686
MonetaryCoinChi token contract ABI
0x6644fc3e5224d28ba9172bfaa21359d43bbd4190
Gdp oracle, PoS forging and optional m5 token
Verified code:
https://etherscan.io/address/0x227412a7d92bca453b5e2f790fc8282ca2e1a686#code
Source:
https://github.com/Monetary-Foundation/MonetaryCoin