Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/replace OceanCompute with Compute #22

Merged
merged 1 commit into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/brizo/Brizo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { noZeroX } from '../utils'
import { Instantiable, InstantiableConfig } from '../Instantiable.abstract'
import { DDO } from '../ddo/DDO'
import { ServiceType } from '../ddo/Service'
import { ComputeJob, Output } from '../ocean/OceanCompute'
import { ComputeJob, Output } from '../ocean/Compute'

const apiPath = '/api/v1/brizo/services'

Expand Down
2 changes: 1 addition & 1 deletion src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export * from './ddo/DDO'
export * from './ddo/MetaData'

export { CreateProgressStep } from './ocean/OceanAssets'
export { ComputeJob, ComputeJobStatus } from './ocean/OceanCompute'
export { ComputeJob, ComputeJobStatus } from './ocean/Compute'
export { OrderProgressStep } from './ocean/utils/ServiceUtils'
export {
OceanPlatformTechStatus,
Expand Down
10 changes: 5 additions & 5 deletions src/ocean/OceanCompute.ts → src/ocean/Compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ export interface ComputeJob {
/**
* Compute submodule of Ocean Protocol.
*/
export class OceanCompute extends Instantiable {
export class Compute extends Instantiable {
/**
* Returns the instance of OceanCompute.
* @return {Promise<OceanCompute>}
* Returns the instance of Compute.
* @return {Promise<Compute>}
*/
public static async getInstance(config: InstantiableConfig): Promise<OceanCompute> {
const instance = new OceanCompute()
public static async getInstance(config: InstantiableConfig): Promise<Compute> {
const instance = new Compute()
instance.setInstanceConfig(config)

return instance
Expand Down
8 changes: 4 additions & 4 deletions src/ocean/Ocean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { OceanAccounts } from './OceanAccounts'

import { Assets } from './Assets'
import { OceanAuth } from './OceanAuth'
import { OceanCompute } from './OceanCompute'
import { Compute } from './Compute'

import { OceanTokens } from './OceanTokens'
import { OceanVersions } from './OceanVersions'
Expand Down Expand Up @@ -48,7 +48,7 @@ export class Ocean extends Instantiable {
instance.accounts = await OceanAccounts.getInstance(instanceConfig)
instance.auth = await OceanAuth.getInstance(instanceConfig)
instance.assets = await OceanAssets.getInstance(instanceConfig)
instance.compute = await OceanCompute.getInstance(instanceConfig)
instance.compute = await Compute.getInstance(instanceConfig)
instance.datatokens = new DataTokens(
instanceConfig.config.factoryAddress,
instanceConfig.config.factoryABI,
Expand Down Expand Up @@ -93,9 +93,9 @@ export class Ocean extends Instantiable {

/**
* Ocean compute submodule
* @type {OceanCompute}
* @type {Compute}
*/
public compute: OceanCompute
public compute: Compute

/**
* Ocean secretStore submodule
Expand Down