2020-07-14 13:01:24 +02:00
|
|
|
import { DDO } from '@oceanprotocol/lib'
|
2020-05-07 08:03:30 +02:00
|
|
|
|
|
|
|
const ddo: Partial<DDO> = {
|
|
|
|
'@context': 'https://w3id.org/did/v1',
|
2020-09-22 14:25:15 +02:00
|
|
|
id: 'did:op:7b4e90b05ec243dbaaca2a503fdde119706577f9645b45b9ab65cf2c3970f757',
|
2020-05-07 08:03:30 +02:00
|
|
|
publicKey: [
|
|
|
|
{
|
2021-05-20 00:44:51 +02:00
|
|
|
id: 'did:op:7b4e90b05ec243dbaaca2a503fdde119706577f9645b45b9ab65cf2c3970f757',
|
2020-05-07 08:03:30 +02:00
|
|
|
type: 'EthereumECDSAKey',
|
2020-09-22 14:25:15 +02:00
|
|
|
owner: '0x4D156A2ef69ffdDC55838176C6712C90f60a2285'
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
authentication: [
|
|
|
|
{
|
|
|
|
type: 'RsaSignatureAuthentication2018',
|
|
|
|
publicKey:
|
2020-09-22 14:25:15 +02:00
|
|
|
'did:op:7b4e90b05ec243dbaaca2a503fdde119706577f9645b45b9ab65cf2c3970f757'
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
service: [
|
|
|
|
{
|
|
|
|
type: 'metadata',
|
2020-09-22 14:25:15 +02:00
|
|
|
attributes: {
|
2020-05-07 08:03:30 +02:00
|
|
|
main: {
|
|
|
|
type: 'dataset',
|
2020-09-22 14:25:15 +02:00
|
|
|
name: 'Endangered coral reefs',
|
|
|
|
dateCreated: '2020-09-21T09:58:35Z',
|
|
|
|
author: 'me',
|
|
|
|
license:
|
|
|
|
'CC BY-NC-SA: Attribution-NonCommercial-ShareAlike 4.0 International',
|
2020-05-07 08:03:30 +02:00
|
|
|
files: [
|
|
|
|
{
|
2020-09-22 14:25:15 +02:00
|
|
|
contentLength: '1256',
|
|
|
|
contentType: 'text/html',
|
|
|
|
index: 0
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
2020-09-22 14:25:15 +02:00
|
|
|
],
|
|
|
|
datePublished: '2020-09-21T09:59:07Z'
|
2020-05-07 08:03:30 +02:00
|
|
|
},
|
|
|
|
additionalInformation: {
|
2020-09-22 14:25:15 +02:00
|
|
|
description: 'test',
|
|
|
|
copyrightHolder: '',
|
|
|
|
tags: ['coral'],
|
2020-05-07 08:03:30 +02:00
|
|
|
links: [
|
|
|
|
{
|
2020-09-22 14:25:15 +02:00
|
|
|
contentLength: '1256',
|
|
|
|
contentType: 'text/html',
|
|
|
|
url: 'https://www.example.com'
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
termsAndConditions: true,
|
2020-09-22 14:25:15 +02:00
|
|
|
priceType: 'fixed'
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
|
|
|
},
|
2020-09-22 14:25:15 +02:00
|
|
|
index: 0
|
2020-05-07 08:03:30 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'access',
|
2020-09-22 14:25:15 +02:00
|
|
|
index: 1,
|
2020-05-07 08:03:30 +02:00
|
|
|
serviceEndpoint:
|
2020-09-22 14:25:15 +02:00
|
|
|
'https://provider.rinkeby.v3.dev-ocean.com/api/v1/services/consume',
|
2020-05-07 08:03:30 +02:00
|
|
|
attributes: {
|
|
|
|
main: {
|
2020-09-22 14:25:15 +02:00
|
|
|
creator: '0x4D156A2ef69ffdDC55838176C6712C90f60a2285',
|
|
|
|
datePublished: '2020-09-21T09:58:35Z',
|
|
|
|
cost: '1000000000000000000',
|
|
|
|
timeout: 0,
|
|
|
|
name: 'dataAssetAccess'
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
2020-09-22 14:25:15 +02:00
|
|
|
}
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
|
|
|
],
|
2020-09-22 14:25:15 +02:00
|
|
|
dataToken: '0x932c3937cBc983790e67A258Cb6F8959F2466407',
|
|
|
|
created: '2020-09-21T09:59:01Z',
|
2020-05-07 08:03:30 +02:00
|
|
|
proof: {
|
2020-09-22 14:25:15 +02:00
|
|
|
created: '2020-09-21T09:59:06Z',
|
|
|
|
creator: '0x4D156A2ef69ffdDC55838176C6712C90f60a2285',
|
2020-05-07 08:03:30 +02:00
|
|
|
type: 'DDOIntegritySignature',
|
|
|
|
signatureValue:
|
2020-09-22 14:25:15 +02:00
|
|
|
'0xc2157630d4f15d1575f1320ee1ea8007c750e8b06f5866941cc8372596cde39424dff2a75c2b9ac16683add2c2d1972f77953f207239191c7a48af64c4deb8c21c'
|
|
|
|
},
|
|
|
|
updated: '2020-09-21T09:59:01Z'
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export default ddo
|