@kazeblockchain/kazejs
Version:
Javascript libraries for Kaze wallet
33 lines (29 loc) • 826 B
JavaScript
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 Kazejs = mods.reduce((Kazejs, mod) => {
Object.keys(mod).map((key) => {
if (Kazejs[key]) Object.assign(Kazejs[key], mod[key])
else Kazejs[key] = mod[key]
})
return Kazejs
}, { CONST, u })
export default Kazejs
export {
api,
rpc,
sc,
tx,
wallet,
u,
CONST,
settings,
logging
}