diff --git a/packages/lib/src/index.js b/packages/lib/src/index.js index 04e16da18..054b754d1 100644 --- a/packages/lib/src/index.js +++ b/packages/lib/src/index.js @@ -24,7 +24,7 @@ import Package from './package/Package' import ImplementationDirectory from './directory/ImplementationDirectory' import FreezableImplementationDirectory from './directory/FreezableImplementationDirectory' import UpgradeabilityProxyFactory from './factory/UpgradeabilityProxyFactory' -import PackageProject from './project/PackageProject' +import BasePackageProject from './project/BasePackageProject' import LibProject from './project/LibProject' import AppProject from './project/AppProject' @@ -47,7 +47,7 @@ export { FreezableImplementationDirectory, UpgradeabilityProxyFactory, Package, - PackageProject, + BasePackageProject, LibProject, AppProject } diff --git a/packages/lib/src/project/AppProject.js b/packages/lib/src/project/AppProject.js index 4f1ab5772..f33b618bd 100644 --- a/packages/lib/src/project/AppProject.js +++ b/packages/lib/src/project/AppProject.js @@ -1,9 +1,9 @@ -import PackageProject from "./PackageProject"; +import BasePackageProject from "./BasePackageProject"; import VersionedApp from "../app/VersionedApp"; import Package from "../package/Package"; import _ from 'lodash'; -export default class AppProject extends PackageProject { +export default class AppProject extends BasePackageProject { static async fetch(appAddress, name, txParams) { const app = await VersionedApp.fetch(appAddress, txParams) const packageInfo = await app.getPackage(name) diff --git a/packages/lib/src/project/PackageProject.js b/packages/lib/src/project/BasePackageProject.js similarity index 97% rename from packages/lib/src/project/PackageProject.js rename to packages/lib/src/project/BasePackageProject.js index ef19155b3..6f81eeb42 100644 --- a/packages/lib/src/project/PackageProject.js +++ b/packages/lib/src/project/BasePackageProject.js @@ -3,7 +3,7 @@ import Logger from "../utils/Logger"; const log = new Logger('PackageProject') -export default class PackageProject { +export default class BasePackageProject { constructor(txParams) { this.txParams = txParams diff --git a/packages/lib/src/project/LibProject.js b/packages/lib/src/project/LibProject.js index 794bc3743..d24646b0e 100644 --- a/packages/lib/src/project/LibProject.js +++ b/packages/lib/src/project/LibProject.js @@ -1,7 +1,7 @@ -import PackageProject from "./PackageProject"; +import BasePackageProject from "./BasePackageProject"; import Package from "../package/Package"; -export default class LibProject extends PackageProject { +export default class LibProject extends BasePackageProject { static async fetch(packageAddress, version = '0.1.0', txParams) { const thepackage = await Package.fetch(packageAddress, txParams) return new this(thepackage, version, txParams)