Global

Methods

exportModule(…names)

Export modules names after linking them to config.

Source:
Parameters:
Name Type Attributes Description
names String <repeatable>

Module names

withConfig() → {Object}

Create a clone of the library with an alternative config object derived from params. Fields which are not defined in params stay in sync with parent configuration.

Source:
Returns:
Type:
Object

A clone of cosmicLib

Example
const testnet = cosmicLib.withConfig({ network: 'test' })
const account = await testnet.resolve.account('tips*cosmic.link')