getCoreOptions

Source getCoreOptions
accountStore.getCoreOptions(CoreBundle, SmartContracts)

returns the coreOptions for creation a new bcc CoreBundle and SmartContracts object.

Parameters

  1. CoreBundle - CoreBundle : blockchain-core ipfs bundle import (System.import(‘bcc’))
  2. SmartContracts - SmartContracts: smart-contracts ipfs bundle import (System.import(‘smart-contracts’))

Returns

CoreBundle instance

Example

const options = await getCoreOptions(CoreBundle, SmartContracts);

getDomainName

Source getDomainName
getDomainName(domainConfig, ...subLabels);

builds full domain name based on the provided domain config a module initalization.

Parameters

  1. domainConfig - string[] | string: The domain configuration
  2. ...subLabels - string[]: array of domain elements to be looked up and added at the lefthand

Returns

string: the domain name

Example

const domain = nameResolver.getDomainName(['factory', 'root'], 'task');
// returns 'task.factory.evan';

getLatestKeyProvider

Source getLatestKeyProvider
getLatestKeyProvider()

Returns a new KeyProvider or a existing instance if another was created before

Returns

KeyProvider : KeyProvider instance

Example

const keyProvider = getLatestKeyProvider();

initializeEvanNetworkStructure

Source initializeEvanNetworkStructure
initializeEvanNetworkStructure()

Starts the whole dapp-browser. Imports the bcc and smart-contracts bundle, initializes them and the routing, queue and according things

Example

initializeEvanNetworkStructure()

Github Sample: initializeEvanNetworkStructure