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
@ -261,7 +261,7 @@ export class Aquarius {
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Update Compute Privacy
|
||||
* @param {DID | string} did DID of the asset to update.
|
||||
* @param {number } serviceIndex Service index
|
||||
|
@ -25,13 +25,12 @@ export interface ServiceAccessAttributes extends ServiceCommonAttributes {
|
||||
timeout: number
|
||||
}
|
||||
}
|
||||
export interface ServiceComputePrivacy{
|
||||
allowRawAlgorithm: boolean,
|
||||
allowNetworkAccess: boolean,
|
||||
export interface ServiceComputePrivacy {
|
||||
allowRawAlgorithm: boolean
|
||||
allowNetworkAccess: boolean
|
||||
trustedAlgorithms: string[]
|
||||
}
|
||||
|
||||
|
||||
export interface ServiceComputeAttributes extends ServiceCommonAttributes {
|
||||
main: {
|
||||
creator: string
|
||||
|
@ -272,7 +272,7 @@ export class OceanCompute extends Instantiable {
|
||||
const { templates } = this.ocean.keeper
|
||||
const serviceAgreementTemplate = await templates.escrowComputeExecutionTemplate.getServiceAgreementTemplate()
|
||||
const name = 'dataAssetComputingServiceAgreement'
|
||||
let service={
|
||||
const service = {
|
||||
type: 'compute',
|
||||
index: 3,
|
||||
serviceEndpoint: this.ocean.brizo.getComputeEndpoint(),
|
||||
@ -288,8 +288,7 @@ export class OceanCompute extends Instantiable {
|
||||
serviceAgreementTemplate
|
||||
}
|
||||
}
|
||||
if (computePrivacy)
|
||||
service['attributes']['main']['privacy'] = computePrivacy
|
||||
if (computePrivacy) service.attributes.main.privacy = computePrivacy
|
||||
return service as ServiceCompute
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ describe('Asset Owners', () => {
|
||||
let serviceIndex = null
|
||||
|
||||
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user