lib/contracts/repository.js
/**
   * Get contract API by it's name
   * @param {string} name
   * @todo Think on importing apis's from a predefined mapping
   */
Get contract API by it's name
@param {string} name
@todo Think on importing apis's from a predefined mapping
Get contract API by it ' s name @param { string } name @todo Think on importing apis ' s from a predefined mapping
api(name) {
    if (!this._apis.hasOwnProperty(name)) {
      try {
        const Api = require(`./api/${name}`);
        this._apis[name] = new Api(this);
      } catch (_) {
        throw new MissingApiError(name);
      }
    }
    return this._apis[name];
  }
api ( name ) { if ( ! this . _apis . hasOwnProperty ( name ) ) { try { const Api = require ( ` ${ name } ` ) ; this . _apis [ name ] = new Api ( this ) ; } catch ( _ ) { throw new MissingApiError ( name ) ; } } return this . _apis [ name ] ; }
Get contract API by it's name
 @param {string} name
 @todo Think on importing apis's from a predefined mapping
Get contract API by it ' s name @param { string } name @todo Think on importing apis ' s from a predefined mapping
// @todo Check if it extends BaseApi