UNPKG

@kazeblockchain/krypton-js

Version:

Javascript libraries for kaze wallet using https://github.com/kazechainio/kazewallet/blob/master/js/wallet.js as the original source.

33 lines (29 loc) 833 B
import semanticApi, * as api from './api' import semanticRpc, * as rpc from './rpc' import * as CONST from './consts' import semanticSc, * as sc from './sc' import semanticTx, * as tx from './transactions' import semanticWallet, * as wallet from './wallet' import * as u from './utils' import semanticSettings, * as settings from './settings' import * as logging from './logging' const mods = [semanticSc, semanticTx, semanticWallet, semanticApi, semanticRpc, semanticSettings] const Krypton = mods.reduce((krypton, mod) => { Object.keys(mod).map((key) => { if (krypton[key]) Object.assign(krypton[key], mod[key]) else krypton[key] = mod[key] }) return krypton }, { CONST, u }) export default Krypton export { api, rpc, sc, tx, wallet, u, CONST, settings, logging }