mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
fix lint
This commit is contained in:
parent
59e2accf68
commit
c4921d129b
@ -26,12 +26,11 @@ export interface ServiceAccessAttributes extends ServiceCommonAttributes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
export interface ServiceComputePrivacy {
|
export interface ServiceComputePrivacy {
|
||||||
allowRawAlgorithm: boolean,
|
allowRawAlgorithm: boolean
|
||||||
allowNetworkAccess: boolean,
|
allowNetworkAccess: boolean
|
||||||
trustedAlgorithms: string[]
|
trustedAlgorithms: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export interface ServiceComputeAttributes extends ServiceCommonAttributes {
|
export interface ServiceComputeAttributes extends ServiceCommonAttributes {
|
||||||
main: {
|
main: {
|
||||||
creator: string
|
creator: string
|
||||||
|
@ -272,7 +272,7 @@ export class OceanCompute extends Instantiable {
|
|||||||
const { templates } = this.ocean.keeper
|
const { templates } = this.ocean.keeper
|
||||||
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
|
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
|
||||||
const name = 'dataAssetComputingServiceAgreement'
|
const name = 'dataAssetComputingServiceAgreement'
|
||||||
let service={
|
const service = {
|
||||||
type: 'compute',
|
type: 'compute',
|
||||||
index: 3,
|
index: 3,
|
||||||
serviceEndpoint: this.ocean.brizo.getComputeEndpoint(),
|
serviceEndpoint: this.ocean.brizo.getComputeEndpoint(),
|
||||||
@ -288,8 +288,7 @@ export class OceanCompute extends Instantiable {
|
|||||||
serviceAgreementTemplate
|
serviceAgreementTemplate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (computePrivacy)
|
if (computePrivacy) service.attributes.main.privacy = computePrivacy
|
||||||
service['attributes']['main']['privacy'] = computePrivacy
|
|
||||||
return service as ServiceCompute
|
return service as ServiceCompute
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -230,7 +230,7 @@ describe('Asset Owners', () => {
|
|||||||
let serviceIndex = null
|
let serviceIndex = null
|
||||||
|
|
||||||
for (let index = 0; index < oldDDO.service.length; index++) {
|
for (let index = 0; index < oldDDO.service.length; index++) {
|
||||||
if (oldDDO.service[index].type == 'compute') serviceIndex = index
|
if (oldDDO.service[index].type === 'compute') serviceIndex = index
|
||||||
}
|
}
|
||||||
|
|
||||||
await ocean.assets.updateComputePrivacy(
|
await ocean.assets.updateComputePrivacy(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user