From 2a8d60739dc636aab5d2537cfc0c0e6933f2e4a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Guti=C3=A9rrez?= Date: Fri, 18 Jan 2019 17:35:04 +0100 Subject: [PATCH 01/36] add squid-js documentation #45 --- content/references/squid-py.md | 2 +- data/repositories.yml | 3 + data/sidebars/references.yml | 8 +- data/squid-js.json | 21927 ++++++++++++++++++++++++++++ gatsby-node.js | 25 + src/templates/Typedoc.jsx | 381 + src/templates/Typedoc.module.scss | 151 + 7 files changed, 22492 insertions(+), 5 deletions(-) create mode 100644 data/squid-js.json create mode 100644 src/templates/Typedoc.jsx create mode 100644 src/templates/Typedoc.module.scss diff --git a/content/references/squid-py.md b/content/references/squid-py.md index 266104dd..1af4f744 100644 --- a/content/references/squid-py.md +++ b/content/references/squid-py.md @@ -1,6 +1,6 @@ --- title: API Reference -description: +description: --- ReadTheDocs hosts the [squid-py API Reference Docs](https://squid-py.readthedocs.io/en/latest/). diff --git a/data/repositories.yml b/data/repositories.yml index 76b40b6b..51cacd00 100644 --- a/data/repositories.yml +++ b/data/repositories.yml @@ -20,6 +20,9 @@ - group: Libraries items: - name: squid-js + links: + - name: API reference + url: /references/squid-js/ - name: squid-py - name: squid-java diff --git a/data/sidebars/references.yml b/data/sidebars/references.yml index 10a4448f..0d5556d5 100644 --- a/data/sidebars/references.yml +++ b/data/sidebars/references.yml @@ -3,10 +3,10 @@ - title: API References link: /references/introduction/ -# - group: squid-js -# items: -# - title: API Reference -# link: /references/squid-js/ +- group: squid-js + items: + - title: API Reference + link: /references/squid-js/ - group: squid-py items: diff --git a/data/squid-js.json b/data/squid-js.json new file mode 100644 index 00000000..0253b846 --- /dev/null +++ b/data/squid-js.json @@ -0,0 +1,21927 @@ +{ + "info": { + "description": "JavaScript client library for Ocean Protocol.", + "title": "Squid-js API reference", + "version": "0.2.7", + "sourceUrl": "https://github.com/oceanprotocol/squid-js/tree/develop/src/" + }, + "id": 0, + "name": "@oceanprotocol/squid", + "kind": 0, + "flags": {}, + "children": [ + { + "id": 13, + "name": "\"ConfigProvider\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ConfigProvider.ts", + "children": [ + { + "id": 14, + "name": "ConfigProvider", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Stores the configuration of the library." + }, + "children": [ + { + "id": 20, + "name": "config", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "comment": { + "shortText": "Library config.", + "tags": [ + { + "tag": "type", + "text": "{Config}\n" + } + ] + }, + "sources": [ + { + "fileName": "ConfigProvider.ts", + "line": 26, + "character": 25 + } + ], + "type": { + "type": "reference", + "name": "Config", + "id": 2 + } + }, + { + "id": 15, + "name": "getConfig", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 16, + "name": "getConfig", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "returns": "Library config.\n" + }, + "type": { + "type": "reference", + "name": "Config", + "id": 2 + } + } + ], + "sources": [ + { + "fileName": "ConfigProvider.ts", + "line": 11, + "character": 27 + } + ] + }, + { + "id": 17, + "name": "setConfig", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 18, + "name": "setConfig", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": {}, + "parameters": [ + { + "id": 19, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Config", + "id": 2 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "ConfigProvider.ts", + "line": 18, + "character": 27 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 20 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 15, + 17 + ] + } + ], + "sources": [ + { + "fileName": "ConfigProvider.ts", + "line": 6, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 14 + ] + } + ], + "sources": [ + { + "fileName": "ConfigProvider.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 225, + "name": "\"aquarius/Aquarius\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/Aquarius.ts", + "children": [ + { + "id": 226, + "name": "Aquarius", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Provides a interface with Aquarius.\nAquarius provides an off-chain database store for metadata about data assets." + }, + "children": [ + { + "id": 228, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 229, + "name": "new Aquarius", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 230, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Config", + "id": 2 + } + } + ], + "type": { + "type": "reference", + "name": "Aquarius", + "id": 226 + } + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 16, + "character": 23 + } + ] + }, + { + "id": 227, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 16, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 231, + "name": "getAccessUrl", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 232, + "name": "getAccessUrl", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 233, + "name": "accessToken", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 234, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 22, + "character": 29 + } + ] + }, + { + "id": 247, + "name": "getServiceEndpoint", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 248, + "name": "getServiceEndpoint", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 249, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 159, + "character": 29 + } + ] + }, + { + "id": 235, + "name": "queryMetadata", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 236, + "name": "queryMetadata", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Search over the DDOs using a query.", + "returns": "\n" + }, + "parameters": [ + { + "id": 237, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Query to filter the DDOs." + }, + "type": { + "type": "reference", + "name": "SearchQuery", + "id": 219 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 49, + "character": 30 + } + ] + }, + { + "id": 238, + "name": "queryMetadataByText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 239, + "name": "queryMetadataByText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Search over the DDOs using a query.", + "returns": "\n" + }, + "parameters": [ + { + "id": 240, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Query to filter the DDOs." + }, + "type": { + "type": "reference", + "name": "SearchQuery", + "id": 219 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 77, + "character": 36 + } + ] + }, + { + "id": 244, + "name": "retrieveDDO", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 245, + "name": "retrieveDDO", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Retrieves a DDO by DID.", + "returns": "DDO of the asset.\n" + }, + "parameters": [ + { + "id": 246, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "DID of the asset." + }, + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "DDO", + "id": 123 + } + ] + } + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 137, + "character": 28 + } + ] + }, + { + "id": 241, + "name": "storeDDO", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 242, + "name": "storeDDO", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Stores a DDO in Aquarius.", + "returns": "Final DDO.\n" + }, + "parameters": [ + { + "id": 243, + "name": "ddo", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "DDO to be stored." + }, + "type": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "DDO", + "id": 123 + } + ] + } + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 110, + "character": 25 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 228 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 227 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 231, + 247, + 235, + 238, + 244, + 241 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 15, + "character": 29 + } + ] + }, + { + "id": 250, + "name": "apiPath", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 9, + "character": 13 + } + ], + "type": { + "type": "stringLiteral", + "value": "/api/v1/aquarius/assets/ddo" + }, + "defaultValue": "\"/api/v1/aquarius/assets/ddo\"" + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 226 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 250 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/Aquarius.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 251, + "name": "\"aquarius/AquariusProvider\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/AquariusProvider.ts", + "children": [ + { + "id": 252, + "name": "AquariusProvider", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Provides the Aquarius instance." + }, + "children": [ + { + "id": 258, + "name": "aquarius", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "comment": { + "shortText": "Aquarius instance.", + "tags": [ + { + "tag": "type", + "text": "{Aquarius}\n" + } + ] + }, + "sources": [ + { + "fileName": "aquarius/AquariusProvider.ts", + "line": 32, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "Aquarius", + "id": 226 + }, + "defaultValue": " null" + }, + { + "id": 256, + "name": "getAquarius", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 257, + "name": "getAquarius", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns Acuarius instance. It creates a new one if it's not defined.", + "returns": "Aquarius instance.\n" + }, + "type": { + "type": "reference", + "name": "Aquarius", + "id": 226 + } + } + ], + "sources": [ + { + "fileName": "aquarius/AquariusProvider.ts", + "line": 21, + "character": 29 + } + ] + }, + { + "id": 253, + "name": "setAquarius", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 254, + "name": "setAquarius", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Set an Aquarius instance." + }, + "parameters": [ + { + "id": 255, + "name": "aquarius", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "New Aquarius instance.\n" + }, + "type": { + "type": "reference", + "name": "Aquarius", + "id": 226 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "aquarius/AquariusProvider.ts", + "line": 13, + "character": 29 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 258 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 256, + 253 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/AquariusProvider.ts", + "line": 7, + "character": 37 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 252 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/AquariusProvider.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 212, + "name": "\"aquarius/query/Query\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/query/Query.ts", + "children": [ + { + "id": 213, + "name": "Query", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 214, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/query/Query.ts", + "line": 2, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 214 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/query/Query.ts", + "line": 1, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 213 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/query/Query.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 218, + "name": "\"aquarius/query/SearchQuery\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/query/SearchQuery.ts", + "children": [ + { + "id": 219, + "name": "SearchQuery", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 220, + "name": "offset", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/query/SearchQuery.ts", + "line": 5, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "100" + }, + { + "id": 221, + "name": "page", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/query/SearchQuery.ts", + "line": 6, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 222, + "name": "query", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/query/SearchQuery.ts", + "line": 7, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "Query", + "id": 213 + }, + "defaultValue": " {\n value: 1,\n } as Query" + }, + { + "id": 223, + "name": "sort", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/query/SearchQuery.ts", + "line": 10, + "character": 15 + } + ], + "type": { + "type": "reference", + "name": "Sort", + "id": 216 + }, + "defaultValue": " {\n value: 1,\n } as Sort" + }, + { + "id": 224, + "name": "text", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/query/SearchQuery.ts", + "line": 13, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"Office\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 220, + 221, + 222, + 223, + 224 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/query/SearchQuery.ts", + "line": 4, + "character": 32 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 219 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/query/SearchQuery.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 215, + "name": "\"aquarius/query/Sort\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/query/Sort.ts", + "children": [ + { + "id": 216, + "name": "Sort", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 217, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "aquarius/query/Sort.ts", + "line": 2, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 217 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/query/Sort.ts", + "line": 1, + "character": 25 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 216 + ] + } + ], + "sources": [ + { + "fileName": "aquarius/query/Sort.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 259, + "name": "\"brizo/Brizo\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/brizo/Brizo.ts", + "children": [ + { + "id": 260, + "name": "Brizo", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Provides a interface with Brizo.\nBrizo is the technical component executed by the Publishers allowing to them to provide extended data services." + }, + "children": [ + { + "id": 262, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 263, + "name": "new Brizo", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 264, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Config", + "id": 2 + } + } + ], + "type": { + "type": "reference", + "name": "Brizo", + "id": 260 + } + } + ], + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 11, + "character": 23 + } + ] + }, + { + "id": 261, + "name": "url", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 11, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 269, + "name": "getComputeEndpoint", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 270, + "name": "getComputeEndpoint", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 271, + "name": "pubKey", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 272, + "name": "serviceId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 273, + "name": "algo", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 274, + "name": "container", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 25, + "character": 29 + } + ] + }, + { + "id": 267, + "name": "getConsumeEndpoint", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 268, + "name": "getConsumeEndpoint", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 21, + "character": 29 + } + ] + }, + { + "id": 265, + "name": "getPurchaseEndpoint", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 266, + "name": "getPurchaseEndpoint", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 17, + "character": 30 + } + ] + }, + { + "id": 275, + "name": "initializeServiceAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 276, + "name": "initializeServiceAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 277, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 278, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 279, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 280, + "name": "signature", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 281, + "name": "consumerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 30, + "character": 43 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 262 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 261 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 269, + 267, + 265, + 275 + ] + } + ], + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 10, + "character": 26 + } + ] + }, + { + "id": 282, + "name": "apiPath", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 4, + "character": 13 + } + ], + "type": { + "type": "stringLiteral", + "value": "/api/v1/brizo/services" + }, + "defaultValue": "\"/api/v1/brizo/services\"" + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 260 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 282 + ] + } + ], + "sources": [ + { + "fileName": "brizo/Brizo.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 283, + "name": "\"brizo/BrizoProvider\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/brizo/BrizoProvider.ts", + "children": [ + { + "id": 284, + "name": "BrizoProvider", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Provides the Brizo instance." + }, + "children": [ + { + "id": 290, + "name": "brizo", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "comment": { + "shortText": "Brizo instance.", + "tags": [ + { + "tag": "type", + "text": "{Brizo}\n" + } + ] + }, + "sources": [ + { + "fileName": "brizo/BrizoProvider.ts", + "line": 32, + "character": 24 + } + ], + "type": { + "type": "reference", + "name": "Brizo", + "id": 260 + }, + "defaultValue": " null" + }, + { + "id": 288, + "name": "getBrizo", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 289, + "name": "getBrizo", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns Acuarius instance. It creates a new one if it's not defined.", + "returns": "brizo instance.\n" + }, + "type": { + "type": "reference", + "name": "Brizo", + "id": 260 + } + } + ], + "sources": [ + { + "fileName": "brizo/BrizoProvider.ts", + "line": 21, + "character": 26 + } + ] + }, + { + "id": 285, + "name": "setBrizo", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 286, + "name": "setBrizo", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Set an Brizo instance." + }, + "parameters": [ + { + "id": 287, + "name": "brizo", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "New Brizo instance.\n" + }, + "type": { + "type": "reference", + "name": "Brizo", + "id": 260 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "brizo/BrizoProvider.ts", + "line": 13, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 290 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 288, + 285 + ] + } + ], + "sources": [ + { + "fileName": "brizo/BrizoProvider.ts", + "line": 7, + "character": 34 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 284 + ] + } + ], + "sources": [ + { + "fileName": "brizo/BrizoProvider.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 71, + "name": "\"ddo/AdditionalInformation\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/AdditionalInformation.ts", + "children": [ + { + "id": 72, + "name": "AdditionalInformation", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Additional Information of Assets Metadata.", + "tags": [ + { + "tag": "see", + "text": "https://github.com/oceanprotocol/OEPs/tree/master/8#additional-information\n" + } + ] + }, + "children": [ + { + "id": 75, + "name": "checksum", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Checksum of attributes to be able to compare if there are changes in\nthe asset that you are purchasing.", + "tags": [ + { + "tag": "type", + "text": "{string}\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/AdditionalInformation.ts", + "line": 38, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 74, + "name": "structuredMarkup", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "A link to machine-readable structured markup (such as ttl/json-ld/rdf)\ndescribing the dataset.", + "tags": [ + { + "tag": "type", + "text": "{StructuredMarkup[]}\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/AdditionalInformation.ts", + "line": 22, + "character": 27 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "StructuredMarkup", + "id": 68 + } + }, + "defaultValue": " [\n {\n uri: \"http://skos.um.es/unescothes/C01194/jsonld\",\n mediaType: \"application/ld+json\",\n } as StructuredMarkup,\n {\n uri: \"http://skos.um.es/unescothes/C01194/turtle\",\n mediaType: \"text/turtle\",\n } as StructuredMarkup,\n ]" + }, + { + "id": 73, + "name": "updateFrecuency", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "An indication of update latency - i.e. How often are updates expected (seldom,\nannually, quarterly, etc.), or is the resource static that is never expected\nto get updated.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"yearly\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/AdditionalInformation.ts", + "line": 15, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"yearly\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 75, + 74, + 73 + ] + } + ], + "sources": [ + { + "fileName": "ddo/AdditionalInformation.ts", + "line": 7, + "character": 42 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 72 + ] + } + ], + "sources": [ + { + "fileName": "ddo/AdditionalInformation.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 21, + "name": "\"ddo/Authentication\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Authentication.ts", + "children": [ + { + "id": 22, + "name": "Authentication", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 24, + "name": "publicKey", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Authentication.ts", + "line": 3, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"did:op:123456789abcdefghi#keys-1\"" + }, + { + "id": 23, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Authentication.ts", + "line": 2, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"RsaSignatureAuthentication2018\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 24, + 23 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Authentication.ts", + "line": 1, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 22 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Authentication.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 51, + "name": "\"ddo/Condition\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Condition.ts", + "children": [ + { + "id": 52, + "name": "Condition", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 57, + "name": "conditionKey", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 10, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0x12122434\"" + }, + { + "id": 54, + "name": "contractName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 7, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"AccessCondition\"" + }, + { + "id": 60, + "name": "dependencies", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 13, + "character": 23 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Dependency", + "id": 33 + } + }, + "defaultValue": " []" + }, + { + "id": 59, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 12, + "character": 17 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + }, + { + "id": 55, + "name": "functionName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 8, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"lockPayment\"" + }, + { + "id": 61, + "name": "isTerminalCondition", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 14, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + }, + { + "id": 53, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 6, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 58, + "name": "parameters", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 11, + "character": 21 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Parameter", + "id": 47 + } + } + }, + { + "id": 56, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 9, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 57, + 54, + 60, + 59, + 55, + 61, + 53, + 58, + 56 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 5, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 52 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Condition.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 62, + "name": "\"ddo/Contract\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Contract.ts", + "children": [ + { + "id": 63, + "name": "Contract", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 64, + "name": "contractName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Contract.ts", + "line": 4, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 66, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Contract.ts", + "line": 6, + "character": 17 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + }, + { + "id": 65, + "name": "fulfillmentOperator", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Contract.ts", + "line": 5, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 64, + 66, + 65 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Contract.ts", + "line": 3, + "character": 29 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 63 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Contract.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 76, + "name": "\"ddo/Curation\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Curation.ts", + "children": [ + { + "id": 77, + "name": "Curation", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Curation attributes of Assets Metadata.", + "tags": [ + { + "tag": "see", + "text": "https://github.com/oceanprotocol/OEPs/tree/master/8#curation-attributes\n" + } + ] + }, + "children": [ + { + "id": 79, + "name": "numVotes", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Number of votes. 0 is the default value.", + "tags": [ + { + "tag": "type", + "text": "{number}" + }, + { + "tag": "example", + "text": "123\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/Curation.ts", + "line": 18, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "123" + }, + { + "id": 78, + "name": "rating", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Decimal value between 0 and 1. 0 is the default value.", + "tags": [ + { + "tag": "type", + "text": "{number}" + }, + { + "tag": "example", + "text": "0.93\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/Curation.ts", + "line": 11, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0.93" + }, + { + "id": 80, + "name": "schema", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Schema applied to calculate the rating.", + "tags": [ + { + "tag": "type", + "text": "{number}" + }, + { + "tag": "example", + "text": "\"Binary Votting\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/Curation.ts", + "line": 25, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"Binary Votting\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 79, + 78, + 80 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Curation.ts", + "line": 5, + "character": 29 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 77 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Curation.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 122, + "name": "\"ddo/DDO\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/DDO.ts", + "children": [ + { + "id": 123, + "name": "DDO", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "DID Descriptor Object.\nContains all the data related to an asset." + }, + "children": [ + { + "id": 135, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 136, + "name": "new DDO", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 137, + "name": "ddo", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 138, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "children": [ + { + "id": 141, + "name": "authentication", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 44, + "character": 22 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Authentication", + "id": 22 + } + } + }, + { + "id": 139, + "name": "id", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 42, + "character": 10 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 140, + "name": "publicKey", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 43, + "character": 17 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "PublicKey", + "id": 26 + } + } + }, + { + "id": 142, + "name": "service", + "kind": 32, + "kindString": "Variable", + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 45, + "character": 15 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Service", + "id": 112 + } + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 141, + 139, + 140, + 142 + ] + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 41, + "character": 28 + } + ] + } + } + } + ], + "type": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 39, + "character": 29 + } + ] + }, + { + "id": 130, + "name": "@context", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 31, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"https://w3id.org/future-method/v1\"" + }, + { + "id": 133, + "name": "authentication", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 38, + "character": 25 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Authentication", + "id": 22 + } + } + }, + { + "id": 131, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "DID, descentralized ID.", + "tags": [ + { + "tag": "type", + "text": "{string}\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 36, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 132, + "name": "publicKey", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 37, + "character": 20 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "PublicKey", + "id": 26 + } + } + }, + { + "id": 134, + "name": "service", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 39, + "character": 18 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Service", + "id": 112 + } + } + }, + { + "id": 143, + "name": "findServiceById", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 144, + "name": "findServiceById", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds a service of a DDO by ID.", + "returns": "Service.\n" + }, + "parameters": [ + { + "id": 145, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Service", + "id": 112 + } + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 58, + "character": 26 + } + ] + }, + { + "id": 146, + "name": "findServiceByType", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 147, + "name": "findServiceByType", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Finds a service of a DDO by type.", + "returns": "Service.\n" + }, + "parameters": [ + { + "id": 148, + "name": "serviceType", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service type." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Service", + "id": 112 + } + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 73, + "character": 28 + } + ] + }, + { + "id": 127, + "name": "deserialize", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 128, + "name": "deserialize", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Deserializes the DDO object.", + "returns": "DDO deserialized.\n" + }, + "parameters": [ + { + "id": 129, + "name": "ddoString", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 25, + "character": 29 + } + ] + }, + { + "id": 124, + "name": "serialize", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 125, + "name": "serialize", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Serializes the DDO object.", + "returns": "DDO serialized.\n" + }, + "parameters": [ + { + "id": 126, + "name": "ddo", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 16, + "character": 27 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 135 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 130, + 133, + 131, + 132, + 134 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 143, + 146, + 127, + 124 + ] + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 9, + "character": 24 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 123 + ] + } + ], + "sources": [ + { + "fileName": "ddo/DDO.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 32, + "name": "\"ddo/Dependency\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Dependency.ts", + "children": [ + { + "id": 33, + "name": "Dependency", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 34, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Dependency.ts", + "line": 2, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"lockPayment\"" + }, + { + "id": 35, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Dependency.ts", + "line": 3, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 34, + 35 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Dependency.ts", + "line": 1, + "character": 31 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 33 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Dependency.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 41, + "name": "\"ddo/Event\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Event.ts", + "children": [ + { + "id": 42, + "name": "Event", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 44, + "name": "actorType", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Event.ts", + "line": 5, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 45, + "name": "handler", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Event.ts", + "line": 6, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "EventHandler", + "id": 37 + } + }, + { + "id": 43, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Event.ts", + "line": 4, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 44, + 45, + 43 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Event.ts", + "line": 3, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 42 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Event.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 36, + "name": "\"ddo/EventHandler\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/EventHandler.ts", + "children": [ + { + "id": 37, + "name": "EventHandler", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 39, + "name": "functionName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/EventHandler.ts", + "line": 3, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"fulfillAgreement\"" + }, + { + "id": 38, + "name": "moduleName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/EventHandler.ts", + "line": 2, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"serviceAgreement\"" + }, + { + "id": 40, + "name": "version", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/EventHandler.ts", + "line": 4, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0.1\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 39, + 38, + 40 + ] + } + ], + "sources": [ + { + "fileName": "ddo/EventHandler.ts", + "line": 1, + "character": 33 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 37 + ] + } + ], + "sources": [ + { + "fileName": "ddo/EventHandler.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 100, + "name": "\"ddo/MetaData\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/MetaData.ts", + "children": [ + { + "id": 101, + "name": "MetaData", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 105, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 106, + "name": "new MetaData", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 107, + "name": "metaData", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "reference", + "name": "MetaData", + "id": 101 + } + } + ], + "type": { + "type": "reference", + "name": "MetaData", + "id": 101 + } + } + ], + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 58, + "character": 29 + } + ] + }, + { + "id": 102, + "name": "additionalInformation", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 56, + "character": 32 + } + ], + "type": { + "type": "reference", + "name": "AdditionalInformation", + "id": 72 + } + }, + { + "id": 103, + "name": "base", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 57, + "character": 15 + } + ], + "type": { + "type": "reference", + "name": "MetaDataBase", + "id": 82 + } + }, + { + "id": 104, + "name": "curation", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 58, + "character": 19 + } + ], + "type": { + "type": "reference", + "name": "Curation", + "id": 77 + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 105 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 102, + 103, + 104 + ] + } + ], + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 54, + "character": 29 + } + ] + }, + { + "id": 110, + "name": "additionalInformation", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 40, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "AdditionalInformation", + "id": 72 + }, + "defaultValue": " {\n updateFrecuency: \"yearly\",\n structuredMarkup: [\n {\n uri: \"http://skos.um.es/unescothes/C01194/jsonld\",\n mediaType: \"application/ld+json\",\n } as StructuredMarkup,\n {\n uri: \"http://skos.um.es/unescothes/C01194/turtle\",\n mediaType: \"text/turtle\",\n } as StructuredMarkup,\n ],\n} as AdditionalInformation" + }, + { + "id": 108, + "name": "base", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 6, + "character": 10 + } + ], + "type": { + "type": "reference", + "name": "MetaDataBase", + "id": 82 + }, + "defaultValue": " {\n name: \"UK Weather information 2011\",\n type: \"dataset\",\n description: \"Weather information of UK including temperature and humidity\",\n size: \"3.1gb\",\n dateCreated: \"2012-02-01T10:55:11+00:00\",\n author: \"Met Office\",\n license: \"CC-BY\",\n copyrightHolder: \"Met Office\",\n encoding: \"UTF-8\",\n compression: \"zip\",\n contentType: \"text/csv\",\n // tslint:disable-next-line\n workExample: \"stationId,latitude,longitude,datetime,temperature,humidity423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68\",\n contentUrls: [\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n ],\n links: [\n {sample1: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/\"},\n {sample2: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/\"},\n {fieldsDescription: \"http://data.ceda.ac.uk/badc/ukcp09/\"},\n ],\n inLanguage: \"en\",\n tags: \"weather, uk, 2011, temperature, humidity\",\n price: 10,\n} as MetaDataBase" + }, + { + "id": 109, + "name": "curation", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 34, + "character": 14 + } + ], + "type": { + "type": "reference", + "name": "Curation", + "id": 77 + }, + "defaultValue": " {\n rating: 0.93,\n numVotes: 123,\n schema: \"Binary Votting\",\n} as Curation" + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 101 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 110, + 108, + 109 + ] + } + ], + "sources": [ + { + "fileName": "ddo/MetaData.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 81, + "name": "\"ddo/MetaDataBase\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/MetaDataBase.ts", + "children": [ + { + "id": 82, + "name": "MetaDataBase", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Base attributes of Assets Metadata.", + "tags": [ + { + "tag": "see", + "text": "https://github.com/oceanprotocol/OEPs/tree/master/8#base-attributes\n" + } + ] + }, + "children": [ + { + "id": 88, + "name": "author", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Name of the entity generating this data (e.g. Tfl, Disney Corp, etc.).", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"Met Office\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 49, + "character": 17 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"Met Office\"" + }, + { + "id": 92, + "name": "compression", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "File compression (e.g. no, gzip, bzip2, etc).", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"zip\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 78, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"zip\"" + }, + { + "id": 93, + "name": "contentType", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "File format, if applicable.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"text/csv\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 85, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"text/csv\"" + }, + { + "id": 95, + "name": "contentUrls", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "List of content URLs resolving the Asset files.", + "tags": [ + { + "tag": "type", + "text": "{string | string[]}" + }, + { + "tag": "example", + "text": "\"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 100, + "character": 22 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + "defaultValue": " [\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n ]" + }, + { + "id": 90, + "name": "copyrightHolder", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The party holding the legal copyright. Empty by default.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"Met Office\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 64, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"Met Office\"" + }, + { + "id": 86, + "name": "dateCreated", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "The date on which the asset was created or was added.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"2012-10-10T17:00:000Z\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 35, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"2012-10-10T17:00:000Z\"" + }, + { + "id": 85, + "name": "description", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Details of what the resource is. For a dataset, this attribute\nexplains what the data represents and what it can be used for.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"Weather information of UK including temperature and humidity\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 28, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"Weather information of UK including temperature and humidity\"" + }, + { + "id": 91, + "name": "encoding", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "File encoding.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"UTF-8\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 71, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"UTF-8\"" + }, + { + "id": 97, + "name": "inLanguage", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "The language of the content. Please use one of the language\ncodes from the {@link https://tools.ietf.org/html/bcp47 IETF BCP 47 standard}.", + "tags": [ + { + "tag": "type", + "text": "{String}" + }, + { + "tag": "example", + "text": "\"en\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 131, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"en\"" + }, + { + "id": 89, + "name": "license", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Short name referencing the license of the asset (e.g. Public Domain, CC-0, CC-BY, No License Specified, etc. ).\nIf it's not specified, the following value will be added: \"No License Specified\".", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"CC-BY\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 57, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"CC-BY\"" + }, + { + "id": 96, + "name": "links", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Mapping of links for data samples, or links to find out more information.\nLinks may be to either a URL or another Asset. We expect marketplaces to\nconverge on agreements of typical formats for linked data: The Ocean Protocol\nitself does not mandate any specific formats as these requirements are likely\nto be domain-specific.", + "tags": [ + { + "tag": "type", + "text": "{any[]}\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 113, + "character": 16 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "defaultValue": " [\n {\n sample1: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/\",\n },\n {\n sample2: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/\",\n },\n {\n fieldsDescription: \"http://data.ceda.ac.uk/badc/ukcp09/\",\n },\n ]" + }, + { + "id": 83, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Descriptive name of the Asset.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"UK Weather information 2011\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 12, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"UK Weather information 2011\"" + }, + { + "id": 99, + "name": "price", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Price of the asset.", + "tags": [ + { + "tag": "type", + "text": "{String}" + }, + { + "tag": "example", + "text": "10\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 146, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10" + }, + { + "id": 87, + "name": "size", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Size of the asset (e.g. 18MB). In the absence of a unit (MB, kB etc.), kB will be assumed.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"3.1gb\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 42, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"3.1gb\"" + }, + { + "id": 98, + "name": "tags", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Keywords or tags used to describe this content. Multiple entries in a keyword\nlist are typically delimited by commas. Empty by default.", + "tags": [ + { + "tag": "type", + "text": "{String}" + }, + { + "tag": "example", + "text": "\"weather, uk, 2011, temperature, humidity\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 139, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"weather, uk, 2011, temperature, humidity\"" + }, + { + "id": 84, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Type of the Asset. Helps to filter by the type of asset,\ninitially (\"dataset\", \"algorithm\", \"container\", \"workflow\", \"other\").", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"dataset\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 20, + "character": 15 + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "stringLiteral", + "value": "dataset" + }, + { + "type": "stringLiteral", + "value": "algorithm" + }, + { + "type": "stringLiteral", + "value": "container" + }, + { + "type": "stringLiteral", + "value": "workflow" + }, + { + "type": "stringLiteral", + "value": "other" + } + ] + }, + "defaultValue": "\"dataset\"" + }, + { + "id": 94, + "name": "workExample", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "comment": { + "shortText": "Example of the concept of this asset. This example is part\nof the metadata, not an external link.", + "tags": [ + { + "tag": "type", + "text": "{string}" + }, + { + "tag": "example", + "text": "\"423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68\"\n" + } + ] + }, + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 93, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 88, + 92, + 93, + 95, + 90, + 86, + 85, + 91, + 97, + 89, + 96, + 83, + 99, + 87, + 98, + 84, + 94 + ] + } + ], + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 5, + "character": 33 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 82 + ] + } + ], + "sources": [ + { + "fileName": "ddo/MetaDataBase.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 46, + "name": "\"ddo/Parameter\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Parameter.ts", + "children": [ + { + "id": 47, + "name": "Parameter", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 48, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Parameter.ts", + "line": 2, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 49, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Parameter.ts", + "line": 3, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 50, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Parameter.ts", + "line": 4, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 48, + 49, + 50 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Parameter.ts", + "line": 1, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 47 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Parameter.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 25, + "name": "\"ddo/PublicKey\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/PublicKey.ts", + "children": [ + { + "id": 26, + "name": "PublicKey", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 27, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/PublicKey.ts", + "line": 2, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"did:op:123456789abcdefghi#keys-1\"" + }, + { + "id": 29, + "name": "owner", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/PublicKey.ts", + "line": 4, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"did:op:123456789abcdefghi\"" + }, + { + "id": 31, + "name": "publicKeyBase58", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/PublicKey.ts", + "line": 6, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV\"" + }, + { + "id": 30, + "name": "publicKeyPem", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/PublicKey.ts", + "line": 5, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n\"" + }, + { + "id": 28, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/PublicKey.ts", + "line": 3, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"Ed25519VerificationKey2018\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 27, + 29, + 31, + 30, + 28 + ] + } + ], + "sources": [ + { + "fileName": "ddo/PublicKey.ts", + "line": 1, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 26 + ] + } + ], + "sources": [ + { + "fileName": "ddo/PublicKey.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 111, + "name": "\"ddo/Service\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Service.ts", + "children": [ + { + "id": 112, + "name": "Service", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 121, + "name": "conditions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 14, + "character": 21 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Condition", + "id": 52 + } + }, + "defaultValue": " []" + }, + { + "id": 118, + "name": "description", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 11, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"My public social inbox\"" + }, + { + "id": 119, + "name": "metadata", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 12, + "character": 19 + } + ], + "type": { + "type": "reference", + "name": "MetaData", + "id": 101 + }, + "defaultValue": " {} as MetaData" + }, + { + "id": 117, + "name": "purchaseEndpoint", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 10, + "character": 27 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 120, + "name": "serviceAgreementContract", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 13, + "character": 35 + } + ], + "type": { + "type": "reference", + "name": "Contract", + "id": 63 + } + }, + { + "id": 114, + "name": "serviceDefinitionId", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 7, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 116, + "name": "serviceEndpoint", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 9, + "character": 26 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"https://openid.example.com/\"" + }, + { + "id": 115, + "name": "templateId", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 8, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 113, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 6, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"OpenIdConnectVersion1.0Service\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 121, + 118, + 119, + 117, + 120, + 114, + 116, + 115, + 113 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 5, + "character": 28 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 112 + ] + } + ], + "sources": [ + { + "fileName": "ddo/Service.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 67, + "name": "\"ddo/StructuredMarkup\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/StructuredMarkup.ts", + "children": [ + { + "id": 68, + "name": "StructuredMarkup", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 70, + "name": "mediaType", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/StructuredMarkup.ts", + "line": 3, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"application/ld+json\"" + }, + { + "id": 69, + "name": "uri", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ddo/StructuredMarkup.ts", + "line": 2, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"http://skos.um.es/unescothes/C01194/jsonld\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 70, + 69 + ] + } + ], + "sources": [ + { + "fileName": "ddo/StructuredMarkup.ts", + "line": 1, + "character": 37 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 68 + ] + } + ], + "sources": [ + { + "fileName": "ddo/StructuredMarkup.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1059, + "name": "\"examples/BuyAsset\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/BuyAsset.ts", + "sources": [ + { + "fileName": "examples/BuyAsset.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1060, + "name": "\"examples/ExecuteAgreement\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/ExecuteAgreement.ts", + "sources": [ + { + "fileName": "examples/ExecuteAgreement.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1061, + "name": "\"examples/GetAccounts\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GetAccounts.ts", + "sources": [ + { + "fileName": "examples/GetAccounts.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1062, + "name": "\"examples/GetBalance\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GetBalance.ts", + "sources": [ + { + "fileName": "examples/GetBalance.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1063, + "name": "\"examples/GetHDWalletAccounts\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GetHDWalletAccounts.ts", + "sources": [ + { + "fileName": "examples/GetHDWalletAccounts.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1064, + "name": "\"examples/GrantAccess\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GrantAccess.ts", + "sources": [ + { + "fileName": "examples/GrantAccess.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1065, + "name": "\"examples/InitializeAgreement\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/InitializeAgreement.ts", + "sources": [ + { + "fileName": "examples/InitializeAgreement.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1066, + "name": "\"examples/Listener\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/Listener.ts", + "children": [ + { + "id": 1067, + "name": "event", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "examples/Listener.ts", + "line": 10, + "character": 11 + } + ], + "type": { + "type": "reference", + "name": "Event", + "id": 792 + }, + "defaultValue": " EventListener.subscribe(\"OceanToken\", \"Transfer\", {})" + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 1067 + ] + } + ], + "sources": [ + { + "fileName": "examples/Listener.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1068, + "name": "\"examples/RegisterAsset\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/RegisterAsset.ts", + "sources": [ + { + "fileName": "examples/RegisterAsset.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1069, + "name": "\"examples/RegisterServiceAgreementTemplates\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/RegisterServiceAgreementTemplates.ts", + "sources": [ + { + "fileName": "examples/RegisterServiceAgreementTemplates.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1070, + "name": "\"examples/Search\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/Search.ts", + "sources": [ + { + "fileName": "examples/Search.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1071, + "name": "\"examples/SignAgreement\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/SignAgreement.ts", + "sources": [ + { + "fileName": "examples/SignAgreement.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1058, + "name": "\"examples/config\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/config.ts", + "sources": [ + { + "fileName": "examples/config.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1057, + "name": "\"examples/config/config\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true, + "isExternal": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/config/config.json", + "sources": [ + { + "fileName": "examples/config/config.json", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 303, + "name": "\"keeper/ContractHandler\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/ContractHandler.ts", + "children": [ + { + "id": 304, + "name": "ContractHandler", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 315, + "name": "contracts", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/ContractHandler.ts", + "line": 27, + "character": 28 + } + ], + "type": { + "type": "reference", + "name": "Map", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "name": "Contract", + "id": 63 + } + ] + }, + "defaultValue": " new Map()" + }, + { + "id": 305, + "name": "get", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 306, + "name": "get", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 307, + "name": "what", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Contract", + "id": 63 + } + } + ], + "sources": [ + { + "fileName": "keeper/ContractHandler.ts", + "line": 9, + "character": 27 + } + ] + }, + { + "id": 312, + "name": "has", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 313, + "name": "has", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 314, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "keeper/ContractHandler.ts", + "line": 23, + "character": 24 + } + ] + }, + { + "id": 316, + "name": "load", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 317, + "name": "load", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 318, + "name": "what", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 319, + "name": "where", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Contract", + "id": 63 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/ContractHandler.ts", + "line": 29, + "character": 29 + } + ] + }, + { + "id": 308, + "name": "set", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 309, + "name": "set", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 310, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 311, + "name": "contractInstance", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Contract", + "id": 63 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "keeper/ContractHandler.ts", + "line": 19, + "character": 24 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 315 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 305, + 312, + 316, + 308 + ] + } + ], + "sources": [ + { + "fileName": "keeper/ContractHandler.ts", + "line": 7, + "character": 36 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 304 + ] + } + ], + "sources": [ + { + "fileName": "keeper/ContractHandler.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 903, + "name": "\"keeper/ContractReflector\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/ContractReflector.ts", + "children": [ + { + "id": 904, + "name": "ContractReflector", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 905, + "name": "reflectContractMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 906, + "name": "reflectContractMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 907, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 908, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "MethodReflection", + "id": 587 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/ContractReflector.ts", + "line": 6, + "character": 45 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 905 + ] + } + ], + "sources": [ + { + "fileName": "keeper/ContractReflector.ts", + "line": 4, + "character": 38 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 904 + ] + } + ], + "sources": [ + { + "fileName": "keeper/ContractReflector.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 791, + "name": "\"keeper/Event\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/Event.ts", + "children": [ + { + "id": 792, + "name": "Event", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 796, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 800, + "name": "new Event", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 801, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 802, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 803, + "name": "filter", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Event", + "id": 792 + } + } + ], + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 10, + "character": 34 + } + ] + }, + { + "id": 797, + "name": "contractName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 12, + "character": 36 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 798, + "name": "eventName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 13, + "character": 33 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 799, + "name": "filter", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 14, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 795, + "name": "interval", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 10, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "200" + }, + { + "id": 794, + "name": "lastBlock", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 9, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + }, + { + "id": 793, + "name": "poller", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 8, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null" + }, + { + "id": 812, + "name": "handler", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 813, + "name": "handler", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 814, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 40, + "character": 25 + } + ] + }, + { + "id": 806, + "name": "listen", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 807, + "name": "listen", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 808, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 23, + "character": 23 + } + ] + }, + { + "id": 809, + "name": "listenOnce", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 810, + "name": "listenOnce", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 811, + "name": "callback", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 31, + "character": 21 + } + ] + }, + { + "id": 804, + "name": "stopListen", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 805, + "name": "stopListen", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 18, + "character": 21 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 796 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 797, + 798, + 799, + 795, + 794, + 793 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 812, + 806, + 809, + 804 + ] + } + ], + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 6, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 792 + ] + } + ], + "sources": [ + { + "fileName": "keeper/Event.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 778, + "name": "\"keeper/EventListener\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/EventListener.ts", + "children": [ + { + "id": 779, + "name": "EventListener", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 790, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/EventListener.ts", + "line": 28, + "character": 25 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 792 + } + }, + "defaultValue": " []" + }, + { + "id": 788, + "name": "count", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 789, + "name": "count", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "keeper/EventListener.ts", + "line": 24, + "character": 23 + } + ] + }, + { + "id": 780, + "name": "subscribe", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 781, + "name": "subscribe", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 782, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 783, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 784, + "name": "filter", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Event", + "id": 792 + } + } + ], + "sources": [ + { + "fileName": "keeper/EventListener.ts", + "line": 5, + "character": 27 + } + ] + }, + { + "id": 785, + "name": "unsubscribe", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 786, + "name": "unsubscribe", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 787, + "name": "event", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "sources": [ + { + "fileName": "keeper/EventListener.ts", + "line": 15, + "character": 29 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 790 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 788, + 780, + 785 + ] + } + ], + "sources": [ + { + "fileName": "keeper/EventListener.ts", + "line": 3, + "character": 34 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 779 + ] + } + ], + "sources": [ + { + "fileName": "keeper/EventListener.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 693, + "name": "\"keeper/Keeper\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/Keeper.ts", + "children": [ + { + "id": 694, + "name": "Keeper", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Interface with Ocean Keeper contracts.\nOcean Keeper implementation where we put the following modules together:\n- TCRs: users create challenges and resolve them through voting to maintain registries.\n- Ocean Tokens: the intrinsic tokens circulated inside Ocean network, which is used in the voting of TCRs.\n- Marketplace: the core marketplace where people can transact with each other with Ocean tokens." + }, + "children": [ + { + "id": 702, + "name": "accessConditions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Access conditions smart contract instance.", + "tags": [ + { + "tag": "type", + "text": "{AccessConditions}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 74, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "AccessConditions", + "id": 403 + } + }, + { + "id": 700, + "name": "auth", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Ocean Auth smart contract instance.", + "tags": [ + { + "tag": "type", + "text": "{OceanAuth}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 62, + "character": 15 + } + ], + "type": { + "type": "reference", + "name": "OceanAuth", + "id": 356 + } + }, + { + "id": 704, + "name": "didRegistry", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "DID registry smart contract instance.", + "tags": [ + { + "tag": "type", + "text": "{DIDRegistry}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 86, + "character": 22 + } + ], + "type": { + "type": "reference", + "name": "DIDRegistry", + "id": 485 + } + }, + { + "id": 699, + "name": "market", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Ocean Market smart contract instance.", + "tags": [ + { + "tag": "type", + "text": "{OceanMarket}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 56, + "character": 17 + } + ], + "type": { + "type": "reference", + "name": "OceanMarket", + "id": 530 + } + }, + { + "id": 703, + "name": "paymentConditions", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Payment conditions smart contract instance.", + "tags": [ + { + "tag": "type", + "text": "{PaymentConditions}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 80, + "character": 28 + } + ], + "type": { + "type": "reference", + "name": "PaymentConditions", + "id": 441 + } + }, + { + "id": 701, + "name": "serviceAgreement", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Service agreement smart contract instance.", + "tags": [ + { + "tag": "type", + "text": "{ServiceAgreement}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 68, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "ServiceAgreement", + "id": 594 + } + }, + { + "id": 698, + "name": "token", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "comment": { + "shortText": "Ocean Token smart contract instance.", + "tags": [ + { + "tag": "type", + "text": "{OceanToken}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 50, + "character": 16 + } + ], + "type": { + "type": "reference", + "name": "OceanToken", + "id": 654 + } + }, + { + "id": 697, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "comment": { + "shortText": "Keeper instance.", + "tags": [ + { + "tag": "type", + "text": "{Keeper}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 44, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "Keeper", + "id": 694 + }, + "defaultValue": " null" + }, + { + "id": 705, + "name": "getNetworkName", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 706, + "name": "getNetworkName", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the network by name.", + "returns": "Network name.\n" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 92, + "character": 31 + } + ] + }, + { + "id": 695, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 696, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns Keeper instance.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Keeper", + "id": 694 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 24, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 702, + 700, + 704, + 699, + 703, + 701, + 698, + 697 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 705, + 695 + ] + } + ], + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 18, + "character": 27 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 694 + ] + } + ], + "sources": [ + { + "fileName": "keeper/Keeper.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 298, + "name": "\"keeper/Web3Provider\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/Web3Provider.ts", + "children": [ + { + "id": 299, + "name": "Web3Provider", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 302, + "name": "web3", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "comment": { + "shortText": "Web3 instance.", + "tags": [ + { + "tag": "type", + "text": "{Web3}\n" + } + ] + }, + "sources": [ + { + "fileName": "keeper/Web3Provider.ts", + "line": 23, + "character": 23 + } + ], + "type": { + "type": "reference", + "name": "Web3" + }, + "defaultValue": " null" + }, + { + "id": 300, + "name": "getWeb3", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 301, + "name": "getWeb3", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns Web3 instance.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "Web3" + } + } + ], + "sources": [ + { + "fileName": "keeper/Web3Provider.ts", + "line": 10, + "character": 25 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 302 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 300 + ] + } + ], + "sources": [ + { + "fileName": "keeper/Web3Provider.ts", + "line": 4, + "character": 33 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 299 + ] + } + ], + "sources": [ + { + "fileName": "keeper/Web3Provider.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 355, + "name": "\"keeper/contracts/Auth\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/Auth.ts", + "children": [ + { + "id": 356, + "name": "OceanAuth", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 375, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 376, + "name": "new OceanAuth", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 377, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "OceanAuth", + "id": 356 + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 374, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 397, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 398, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 399, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 400, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 401, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 369, + "name": "deliverAccessToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 370, + "name": "deliverAccessToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 371, + "name": "orderId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 372, + "name": "accessToken", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 373, + "name": "publisherAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Auth.ts", + "line": 30, + "character": 35 + } + ] + }, + { + "id": 382, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 383, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 362, + "name": "getEncryptedAccessToken", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 363, + "name": "getEncryptedAccessToken", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 364, + "name": "orderId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 365, + "name": "consumerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Auth.ts", + "line": 22, + "character": 40 + } + ] + }, + { + "id": 378, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 379, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 380, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 381, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 387, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 388, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 389, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 359, + "name": "getOrderStatus", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 360, + "name": "getOrderStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 361, + "name": "orderId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "AccessStatus", + "id": 292 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Auth.ts", + "line": 13, + "character": 31 + } + ] + }, + { + "id": 384, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 385, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 386, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 366, + "name": "getTempPubKey", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 367, + "name": "getTempPubKey", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 368, + "name": "orderId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Auth.ts", + "line": 26, + "character": 30 + } + ] + }, + { + "id": 390, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 391, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 392, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 393, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 394, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 395, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 396, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 357, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 358, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "OceanAuth", + "id": 356 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Auth.ts", + "line": 7, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 375 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 374 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 397, + 369, + 382, + 362, + 378, + 387, + 359, + 384, + 366, + 390, + 392, + 357 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Auth.ts", + "line": 5, + "character": 30 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 356 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Auth.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 320, + "name": "\"keeper/contracts/ContractBase\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/ContractBase.ts", + "children": [ + { + "id": 321, + "name": "ContractBase", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true, + "isAbstract": true + }, + "children": [ + { + "id": 325, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 326, + "name": "new ContractBase", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 327, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ] + }, + { + "id": 323, + "name": "contract", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 11, + "character": 20 + } + ], + "type": { + "type": "reference", + "name": "Contract", + "id": 63 + }, + "defaultValue": " null" + }, + { + "id": 324, + "name": "contractName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 24 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 322, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null" + }, + { + "id": 347, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 348, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 349, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 350, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 351, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ] + }, + { + "id": 332, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 333, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ] + }, + { + "id": 328, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 329, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 330, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 331, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ] + }, + { + "id": 337, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 338, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 339, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ] + }, + { + "id": 334, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 335, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 336, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ] + }, + { + "id": 340, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 341, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ] + }, + { + "id": 352, + "name": "searchMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 353, + "name": "searchMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 354, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 86, + "character": 24 + } + ] + }, + { + "id": 342, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 343, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 344, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 345, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 346, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 325 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 323, + 324, + 322 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 347, + 332, + 328, + 337, + 334, + 340, + 352, + 342 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 7, + "character": 42 + } + ], + "extendedBy": [ + { + "type": "reference", + "name": "OceanAuth", + "id": 356 + }, + { + "type": "reference", + "name": "AccessConditions", + "id": 403 + }, + { + "type": "reference", + "name": "PaymentConditions", + "id": 441 + }, + { + "type": "reference", + "name": "DIDRegistry", + "id": 485 + }, + { + "type": "reference", + "name": "OceanMarket", + "id": 530 + }, + { + "type": "reference", + "name": "ServiceAgreement", + "id": 594 + }, + { + "type": "reference", + "name": "OceanToken", + "id": 654 + }, + { + "type": "reference", + "name": "GenericContract", + "id": 746 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 321 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 484, + "name": "\"keeper/contracts/DIDRegistry\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/DIDRegistry.ts", + "children": [ + { + "id": 485, + "name": "DIDRegistry", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 502, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 503, + "name": "new DIDRegistry", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 504, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "DIDRegistry", + "id": 485 + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 501, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 524, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 525, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 526, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 527, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 528, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 509, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 510, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 505, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 506, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 507, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 508, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 514, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 515, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 516, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 495, + "name": "getOwner", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 496, + "name": "getOwner", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 497, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/DIDRegistry.ts", + "line": 22, + "character": 25 + } + ] + }, + { + "id": 511, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 512, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 513, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 498, + "name": "getUpdateAt", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 499, + "name": "getUpdateAt", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 500, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/DIDRegistry.ts", + "line": 29, + "character": 28 + } + ] + }, + { + "id": 517, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 518, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 488, + "name": "registerAttribute", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 489, + "name": "registerAttribute", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 490, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 491, + "name": "type", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "ValueType", + "id": 479 + } + }, + { + "id": 492, + "name": "key", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 493, + "name": "value", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 494, + "name": "ownerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/DIDRegistry.ts", + "line": 14, + "character": 34 + } + ] + }, + { + "id": 519, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 520, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 521, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 522, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 523, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 486, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 487, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "DIDRegistry", + "id": 485 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/DIDRegistry.ts", + "line": 8, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 502 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 501 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 524, + 509, + 505, + 514, + 495, + 511, + 498, + 517, + 488, + 519, + 486 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/DIDRegistry.ts", + "line": 6, + "character": 32 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 485 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/DIDRegistry.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 745, + "name": "\"keeper/contracts/GenericContract\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/GenericContract.ts", + "children": [ + { + "id": 746, + "name": "GenericContract", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 750, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 751, + "name": "new GenericContract", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 752, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "GenericContract", + "id": 746 + }, + "overwrites": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/GenericContract.ts", + "line": 9, + "character": 5 + } + ], + "overwrites": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 753, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 773, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 774, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 775, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 776, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 777, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 758, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 759, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 754, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 755, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 756, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 757, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 763, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 764, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 765, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 760, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 761, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 762, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 766, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 767, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 768, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 769, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 770, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 771, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 772, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 747, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 748, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 749, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/GenericContract.ts", + "line": 5, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 750 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 753 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 773, + 758, + 754, + 763, + 760, + 766, + 768, + 747 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/GenericContract.ts", + "line": 3, + "character": 36 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 746 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/GenericContract.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 529, + "name": "\"keeper/contracts/Market\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/Market.ts", + "children": [ + { + "id": 530, + "name": "OceanMarket", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 555, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 556, + "name": "new OceanMarket", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 557, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "OceanMarket", + "id": 530 + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 554, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 577, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 578, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 579, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 580, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 581, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 546, + "name": "generateId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 547, + "name": "generateId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 548, + "name": "input", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 31, + "character": 27 + } + ] + }, + { + "id": 562, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 563, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 539, + "name": "getAssetPrice", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 540, + "name": "getAssetPrice", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 541, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 22, + "character": 30 + } + ] + }, + { + "id": 558, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 559, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 560, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 561, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 567, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 568, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 569, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 564, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 565, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 566, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 570, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 571, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 533, + "name": "isAssetActive", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 534, + "name": "isAssetActive", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 535, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 14, + "character": 30 + } + ] + }, + { + "id": 549, + "name": "register", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 550, + "name": "register", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 551, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 552, + "name": "price", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 553, + "name": "publisherAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 35, + "character": 25 + } + ] + }, + { + "id": 542, + "name": "requestTokens", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 543, + "name": "requestTokens", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 544, + "name": "amount", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 545, + "name": "receiverAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 27, + "character": 30 + } + ] + }, + { + "id": 572, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 573, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 574, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 575, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 576, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 536, + "name": "verifyOrderPayment", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 537, + "name": "verifyOrderPayment", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 538, + "name": "orderId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 18, + "character": 35 + } + ] + }, + { + "id": 531, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 532, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "OceanMarket", + "id": 530 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 7, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 555 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 554 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 577, + 546, + 562, + 539, + 558, + 567, + 564, + 570, + 533, + 549, + 542, + 572, + 536, + 531 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 5, + "character": 32 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 530 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Market.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 593, + "name": "\"keeper/contracts/ServiceAgreement\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/ServiceAgreement.ts", + "children": [ + { + "id": 594, + "name": "ServiceAgreement", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 626, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 627, + "name": "new ServiceAgreement", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 628, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "ServiceAgreement", + "id": 594 + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 625, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 648, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 649, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 650, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 651, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 652, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 615, + "name": "executeAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 616, + "name": "executeAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 617, + "name": "serviceAgreementTemplateId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 618, + "name": "serviceAgreementSignatureHash", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 619, + "name": "consumerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 620, + "name": "valueHashes", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 621, + "name": "timeoutValues", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + }, + { + "id": 622, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 623, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + }, + { + "id": 624, + "name": "publisherAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 46, + "character": 33 + } + ] + }, + { + "id": 633, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 634, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 612, + "name": "getAgreementStatus", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 613, + "name": "getAgreementStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 614, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 41, + "character": 35 + } + ] + }, + { + "id": 629, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 630, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 631, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 632, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 638, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 639, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 640, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 635, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 636, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 637, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 609, + "name": "getTemplateOwner", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 610, + "name": "getTemplateOwner", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 611, + "name": "templateId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 36, + "character": 33 + } + ] + }, + { + "id": 606, + "name": "getTemplateStatus", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 607, + "name": "getTemplateStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 608, + "name": "templateId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 31, + "character": 34 + } + ] + }, + { + "id": 641, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 642, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 643, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 644, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 645, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 646, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 647, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 597, + "name": "setupAgreementTemplate", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 598, + "name": "setupAgreementTemplate", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 599, + "name": "templateId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 600, + "name": "methodReflections", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "MethodReflection", + "id": 587 + } + } + }, + { + "id": 601, + "name": "dependencyMatrix", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + }, + { + "id": 602, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 603, + "name": "fulfillmentIndices", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + }, + { + "id": 604, + "name": "fulfillmentOperator", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 605, + "name": "ownerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 14, + "character": 39 + } + ] + }, + { + "id": 595, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 596, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "ServiceAgreement", + "id": 594 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 8, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 626 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 625 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 648, + 615, + 633, + 612, + 629, + 638, + 635, + 609, + 606, + 641, + 643, + 597, + 595 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 6, + "character": 37 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 594 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ServiceAgreement.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 653, + "name": "\"keeper/contracts/Token\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/Token.ts", + "children": [ + { + "id": 654, + "name": "OceanToken", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 666, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 667, + "name": "new OceanToken", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 668, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "OceanToken", + "id": 654 + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 665, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 657, + "name": "approve", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 658, + "name": "approve", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 659, + "name": "marketAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 660, + "name": "price", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 661, + "name": "buyerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Token.ts", + "line": 13, + "character": 24 + } + ] + }, + { + "id": 662, + "name": "balanceOf", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 663, + "name": "balanceOf", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 664, + "name": "address", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Token.ts", + "line": 17, + "character": 26 + } + ] + }, + { + "id": 688, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 689, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 690, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 691, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 692, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 673, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 674, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 669, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 670, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 671, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 672, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 678, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 679, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 680, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 675, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 676, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 677, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 681, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 682, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 683, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 684, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 685, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 686, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 687, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 655, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 656, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "OceanToken", + "id": 654 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Token.ts", + "line": 7, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 666 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 665 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 657, + 662, + 688, + 673, + 669, + 678, + 675, + 681, + 683, + 655 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Token.ts", + "line": 5, + "character": 31 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 654 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/Token.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 402, + "name": "\"keeper/contracts/conditions/AccessConditions\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/conditions/AccessConditions.ts", + "children": [ + { + "id": 403, + "name": "AccessConditions", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 413, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 414, + "name": "new AccessConditions", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 415, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "AccessConditions", + "id": 403 + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 412, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 435, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 436, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 437, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 438, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 439, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 420, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 421, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 416, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 417, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 418, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 419, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 425, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 426, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 427, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 422, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 423, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 424, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 406, + "name": "grantAccess", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 407, + "name": "grantAccess", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 408, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 409, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 410, + "name": "documentKeyId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 411, + "name": "publisherAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/AccessConditions.ts", + "line": 14, + "character": 28 + } + ] + }, + { + "id": 428, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 429, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 430, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 431, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 432, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 433, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 434, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 404, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 405, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "AccessConditions", + "id": 403 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/AccessConditions.ts", + "line": 6, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 413 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 412 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 435, + 420, + 416, + 425, + 422, + 406, + 428, + 430, + 404 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/AccessConditions.ts", + "line": 4, + "character": 37 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 403 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/AccessConditions.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 440, + "name": "\"keeper/contracts/conditions/PaymentConditions\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/conditions/PaymentConditions.ts", + "children": [ + { + "id": 441, + "name": "PaymentConditions", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 451, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 452, + "name": "new PaymentConditions", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 453, + "name": "contractName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "PaymentConditions", + "id": 441 + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 12, + "character": 32 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.__constructor", + "id": 325 + } + }, + { + "id": 450, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 9, + "character": 29 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": " null", + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.instance", + "id": 322 + } + }, + { + "id": 473, + "name": "call", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 474, + "name": "call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 475, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 476, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 477, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 72, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.call", + "id": 347 + } + }, + { + "id": 458, + "name": "getAddress", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 459, + "name": "getAddress", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 25, + "character": 21 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getAddress", + "id": 332 + } + }, + { + "id": 454, + "name": "getEventData", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 455, + "name": "getEventData", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 456, + "name": "eventName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 457, + "name": "options", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 18, + "character": 29 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getEventData", + "id": 328 + } + }, + { + "id": 463, + "name": "getInputsOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 464, + "name": "getInputsOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 465, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 34, + "character": 28 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getInputsOfMethod", + "id": 337 + } + }, + { + "id": 460, + "name": "getSignatureOfMethod", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 461, + "name": "getSignatureOfMethod", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 462, + "name": "methodName", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 29, + "character": 31 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.getSignatureOfMethod", + "id": 334 + } + }, + { + "id": 466, + "name": "init", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 467, + "name": "init", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 39, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.init", + "id": 340 + } + }, + { + "id": 444, + "name": "lockPayment", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 445, + "name": "lockPayment", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 446, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 447, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 448, + "name": "price", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 449, + "name": "consumerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/PaymentConditions.ts", + "line": 12, + "character": 28 + } + ] + }, + { + "id": 468, + "name": "send", + "kind": 2048, + "kindString": "Method", + "flags": { + "isProtected": true, + "isExported": true + }, + "signatures": [ + { + "id": 469, + "name": "send", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 470, + "name": "name", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 471, + "name": "from", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 472, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Receipt" + } + ] + }, + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/ContractBase.ts", + "line": 43, + "character": 24 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "ContractBase.send", + "id": 342 + } + }, + { + "id": 442, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 443, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "PaymentConditions", + "id": 441 + } + ] + } + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/PaymentConditions.ts", + "line": 6, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 451 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 450 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 473, + 458, + 454, + 463, + 460, + 466, + 444, + 468, + 442 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/PaymentConditions.ts", + "line": 4, + "character": 38 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "ContractBase", + "id": 321 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 441 + ] + } + ], + "sources": [ + { + "fileName": "keeper/contracts/conditions/PaymentConditions.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 291, + "name": "\"models/AccessStatus\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/models/AccessStatus.ts", + "children": [ + { + "id": 292, + "name": "AccessStatus", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 294, + "name": "Committed", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/AccessStatus.ts", + "line": 3, + "character": 13 + } + ] + }, + { + "id": 295, + "name": "Delivered", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/AccessStatus.ts", + "line": 4, + "character": 13 + } + ] + }, + { + "id": 293, + "name": "Requested", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/AccessStatus.ts", + "line": 2, + "character": 13 + } + ] + }, + { + "id": 297, + "name": "Revoked", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/AccessStatus.ts", + "line": 6, + "character": 11 + } + ] + }, + { + "id": 296, + "name": "Verified", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/AccessStatus.ts", + "line": 5, + "character": 12 + } + ] + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 294, + 295, + 293, + 297, + 296 + ] + } + ], + "sources": [ + { + "fileName": "models/AccessStatus.ts", + "line": 1, + "character": 17 + } + ] + } + ], + "groups": [ + { + "title": "Enumerations", + "kind": 4, + "children": [ + 292 + ] + } + ], + "sources": [ + { + "fileName": "models/AccessStatus.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 707, + "name": "\"models/Balance\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/models/Balance.ts", + "children": [ + { + "id": 708, + "name": "Balance", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 709, + "name": "eth", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Balance.ts", + "line": 2, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 710, + "name": "ocn", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Balance.ts", + "line": 3, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 709, + 710 + ] + } + ], + "sources": [ + { + "fileName": "models/Balance.ts", + "line": 1, + "character": 28 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 708 + ] + } + ], + "sources": [ + { + "fileName": "models/Balance.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1, + "name": "\"models/Config\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/models/Config.ts", + "children": [ + { + "id": 2, + "name": "Config", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 10, + "name": "address", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 24, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 3, + "name": "aquariusUri", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 4, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 4, + "name": "brizoUri", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 8, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5, + "name": "nodeUri", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 12, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 8, + "name": "parityUri", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 20, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9, + "name": "password", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 22, + "character": 19 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 7, + "name": "secretStoreUri", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 18, + "character": 25 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 11, + "name": "threshold", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 26, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 12, + "name": "verbose", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 29, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + }, + { + "id": 6, + "name": "web3Provider", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "models/Config.ts", + "line": 14, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 10, + 3, + 4, + 5, + 8, + 9, + 7, + 11, + 12, + 6 + ] + } + ], + "sources": [ + { + "fileName": "models/Config.ts", + "line": 1, + "character": 27 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 2 + ] + } + ], + "sources": [ + { + "fileName": "models/Config.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 582, + "name": "\"models/InputType\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/models/InputType.ts", + "children": [ + { + "id": 583, + "name": "InputType", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 584, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/InputType.ts", + "line": 2, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 585, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/InputType.ts", + "line": 3, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 584, + 585 + ] + } + ], + "sources": [ + { + "fileName": "models/InputType.ts", + "line": 1, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 583 + ] + } + ], + "sources": [ + { + "fileName": "models/InputType.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 586, + "name": "\"models/MethodReflection\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/models/MethodReflection.ts", + "children": [ + { + "id": 587, + "name": "MethodReflection", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 590, + "name": "address", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/MethodReflection.ts", + "line": 6, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 588, + "name": "contractName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/MethodReflection.ts", + "line": 4, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 592, + "name": "inputs", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/MethodReflection.ts", + "line": 8, + "character": 17 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "InputType", + "id": 583 + } + } + }, + { + "id": 589, + "name": "methodName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/MethodReflection.ts", + "line": 5, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 591, + "name": "signature", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/MethodReflection.ts", + "line": 7, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 590, + 588, + 592, + 589, + 591 + ] + } + ], + "sources": [ + { + "fileName": "models/MethodReflection.ts", + "line": 3, + "character": 37 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 587 + ] + } + ], + "sources": [ + { + "fileName": "models/MethodReflection.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 823, + "name": "\"models/ValuePair\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/models/ValuePair.ts", + "children": [ + { + "id": 824, + "name": "ValuePair", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 825, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/ValuePair.ts", + "line": 2, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 826, + "name": "value", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "models/ValuePair.ts", + "line": 3, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 825, + 826 + ] + } + ], + "sources": [ + { + "fileName": "models/ValuePair.ts", + "line": 1, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 824 + ] + } + ], + "sources": [ + { + "fileName": "models/ValuePair.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 478, + "name": "\"models/ValueType\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/models/ValueType.ts", + "children": [ + { + "id": 479, + "name": "ValueType", + "kind": 4, + "kindString": "Enumeration", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 483, + "name": "DDO", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/ValueType.ts", + "line": 5, + "character": 7 + } + ] + }, + { + "id": 480, + "name": "DID", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/ValueType.ts", + "line": 2, + "character": 7 + } + ] + }, + { + "id": 481, + "name": "DIDRef", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/ValueType.ts", + "line": 3, + "character": 10 + } + ] + }, + { + "id": 482, + "name": "URL", + "kind": 16, + "kindString": "Enumeration member", + "flags": { + "isExported": true + }, + "sources": [ + { + "fileName": "models/ValueType.ts", + "line": 4, + "character": 7 + } + ] + } + ], + "groups": [ + { + "title": "Enumeration members", + "kind": 16, + "children": [ + 483, + 480, + 481, + 482 + ] + } + ], + "sources": [ + { + "fileName": "models/ValueType.ts", + "line": 1, + "character": 14 + } + ] + } + ], + "groups": [ + { + "title": "Enumerations", + "kind": 4, + "children": [ + 479 + ] + } + ], + "sources": [ + { + "fileName": "models/ValueType.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 722, + "name": "\"ocean/Account\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/Account.ts", + "children": [ + { + "id": 723, + "name": "Account", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Account information." + }, + "children": [ + { + "id": 737, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 738, + "name": "new Account", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 739, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "Account", + "id": 723 + }, + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.__constructor", + "id": 714 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 3, + "character": 25 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.__constructor", + "id": 714 + } + }, + { + "id": 724, + "name": "balance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 12, + "character": 19 + } + ], + "type": { + "type": "reference", + "name": "Balance", + "id": 708 + } + }, + { + "id": 736, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 3, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0x00\"", + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.id", + "id": 713 + } + }, + { + "id": 729, + "name": "getBalance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 730, + "name": "getBalance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Balances of Ether and Ocean Token.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Balance", + "id": 708 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 42, + "character": 27 + } + ] + }, + { + "id": 727, + "name": "getEtherBalance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 728, + "name": "getEtherBalance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Balance of Ether.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 26, + "character": 32 + } + ] + }, + { + "id": 740, + "name": "getId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 741, + "name": "getId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.getId", + "id": 717 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 11, + "character": 16 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.getId", + "id": 717 + } + }, + { + "id": 725, + "name": "getOceanBalance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 726, + "name": "getOceanBalance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Balance of Ocean Token.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 18, + "character": 32 + } + ] + }, + { + "id": 734, + "name": "getPublicKey", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 735, + "name": "getPublicKey", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the account public key.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 70, + "character": 29 + } + ] + }, + { + "id": 731, + "name": "requestTokens", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 732, + "name": "requestTokens", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Request Ocean Tokens.", + "returns": "\n" + }, + "parameters": [ + { + "id": 733, + "name": "amount", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Tokens to be requested." + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 59, + "character": 30 + } + ] + }, + { + "id": 742, + "name": "setId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 743, + "name": "setId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 744, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.setId", + "id": 719 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 15, + "character": 16 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.setId", + "id": 719 + } + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 737 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 724, + 736 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 729, + 727, + 740, + 725, + 734, + 731, + 742 + ] + } + ], + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 11, + "character": 28 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "OceanBase", + "id": 712 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 723 + ] + } + ], + "sources": [ + { + "fileName": "ocean/Account.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 153, + "name": "\"ocean/DID\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/DID.ts", + "children": [ + { + "id": 154, + "name": "DID", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Decentralized ID." + }, + "children": [ + { + "id": 161, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 162, + "name": "new DID", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 163, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + } + ], + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 43, + "character": 22 + } + ] + }, + { + "id": 160, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "comment": { + "shortText": "ID.", + "tags": [ + { + "tag": "type", + "text": "{string}\n" + } + ] + }, + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 43, + "character": 14 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 164, + "name": "getDid", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 165, + "name": "getDid", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the DID.", + "returns": "\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 53, + "character": 17 + } + ] + }, + { + "id": 166, + "name": "getId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 167, + "name": "getId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the ID.", + "returns": "\n" + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 61, + "character": 16 + } + ] + }, + { + "id": 158, + "name": "generate", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 159, + "name": "generate", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns a new DID.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + } + ], + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 35, + "character": 26 + } + ] + }, + { + "id": 155, + "name": "parse", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 156, + "name": "parse", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Parses a DID from a string.", + "returns": "\n" + }, + "parameters": [ + { + "id": 157, + "name": "didString", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "DID in string." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + } + ], + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 15, + "character": 23 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 161 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 160 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 164, + 166, + 158, + 155 + ] + } + ], + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 8, + "character": 24 + } + ] + }, + { + "id": 168, + "name": "prefix", + "kind": 32, + "kindString": "Variable", + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 3, + "character": 12 + } + ], + "type": { + "type": "stringLiteral", + "value": "did:op:" + }, + "defaultValue": "\"did:op:\"" + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 154 + ] + }, + { + "title": "Variables", + "kind": 32, + "children": [ + 168 + ] + } + ], + "sources": [ + { + "fileName": "ocean/DID.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 149, + "name": "\"ocean/IdGenerator\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/IdGenerator.ts", + "children": [ + { + "id": 150, + "name": "IdGenerator", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 151, + "name": "generateId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 152, + "name": "generateId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ocean/IdGenerator.ts", + "line": 4, + "character": 28 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 151 + ] + } + ], + "sources": [ + { + "fileName": "ocean/IdGenerator.ts", + "line": 3, + "character": 32 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 150 + ] + } + ], + "sources": [ + { + "fileName": "ocean/IdGenerator.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 991, + "name": "\"ocean/Ocean\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/Ocean.ts", + "children": [ + { + "id": 992, + "name": "Ocean", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Main interface for Ocean Protocol." + }, + "children": [ + { + "id": 998, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 999, + "name": "new Ocean", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Ocean", + "id": 992 + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 62, + "character": 26 + } + ] + }, + { + "id": 997, + "name": "keeper", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true + }, + "comment": { + "shortText": "Keeper instance.", + "tags": [ + { + "tag": "type", + "text": "{Keeper}\n" + } + ] + }, + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 62, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "Keeper", + "id": 694 + } + }, + { + "id": 996, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "comment": { + "shortText": "Ocean instance.", + "tags": [ + { + "tag": "type", + "text": "{Ocean}\n" + } + ] + }, + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 56, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "Ocean", + "id": 992 + }, + "defaultValue": " null" + }, + { + "id": 1033, + "name": "executeServiceAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 1034, + "name": "executeServiceAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Executes a service agreement.", + "returns": "\n" + }, + "parameters": [ + { + "id": 1035, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Decentralized ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1036, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service definition ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1037, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service agreement ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1038, + "name": "serviceAgreementSignature", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service agreement signature." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1039, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Consumer account." + }, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + }, + { + "id": 1040, + "name": "publisher", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Publisher account." + }, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "ServiceAgreement", + "id": 828 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 339, + "character": 40 + } + ] + }, + { + "id": 1000, + "name": "getAccounts", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 1001, + "name": "getAccounts", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the list of accounts.", + "returns": "\n" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 71, + "character": 28 + } + ] + }, + { + "id": 1022, + "name": "initializeServiceAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 1023, + "name": "initializeServiceAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": { + "isPrivate": true + }, + "comment": { + "shortText": "Creates a new service agreement." + }, + "parameters": [ + { + "id": 1024, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Decentralized ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1025, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service definition ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1026, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service agreement ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1027, + "name": "serviceAgreementSignature", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service agreement signature." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1028, + "name": "cb", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Callback executen when the access is granted." + }, + "type": { + "type": "reflection", + "declaration": { + "id": 1029, + "name": "__type", + "kind": 65536, + "kindString": "Type literal", + "flags": {}, + "signatures": [ + { + "id": 1030, + "name": "__call", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 1031, + "name": "files", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 287, + "character": 11 + } + ] + } + } + }, + { + "id": 1032, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Consumer account.\n" + }, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 282, + "character": 43 + } + ] + }, + { + "id": 1017, + "name": "purchaseAssetService", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 1018, + "name": "purchaseAssetService", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Signs a service agreement by DID.", + "returns": "\n" + }, + "parameters": [ + { + "id": 1019, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Decentralized ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1020, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service definition ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1021, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Consumer account." + }, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 222, + "character": 37 + } + ] + }, + { + "id": 1008, + "name": "registerAsset", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 1009, + "name": "registerAsset", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Registers a new DDO.", + "returns": "\n" + }, + "parameters": [ + { + "id": 1010, + "name": "metadata", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "DDO metadata." + }, + "type": { + "type": "reference", + "name": "MetaData", + "id": 101 + } + }, + { + "id": 1011, + "name": "publisher", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Publicher account." + }, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "DDO", + "id": 123 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 106, + "character": 30 + } + ] + }, + { + "id": 1005, + "name": "resolveAssetDID", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 1006, + "name": "resolveAssetDID", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns a DDO by DID.", + "returns": "\n" + }, + "parameters": [ + { + "id": 1007, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Decentralized ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "DDO", + "id": 123 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 95, + "character": 32 + } + ] + }, + { + "id": 1002, + "name": "resolveDID", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "decorators": [ + { + "name": "deprecated", + "type": { + "type": "reference", + "name": "deprecated" + }, + "arguments": { + "alternative": "'resolveAssetDID'" + } + } + ], + "signatures": [ + { + "id": 1003, + "name": "resolveDID", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns a DDO by DID.", + "returns": "\n", + "tags": [ + { + "tag": "deprecated", + "text": "Replace by {@link #resolveAssetDID}" + } + ] + }, + "parameters": [ + { + "id": 1004, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Decentralized ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "DDO", + "id": 123 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 86, + "character": 27 + } + ] + }, + { + "id": 1041, + "name": "searchAssets", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 1042, + "name": "searchAssets", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Search over the assets using a query.", + "returns": "\n" + }, + "parameters": [ + { + "id": 1043, + "name": "query", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Query to filter the assets." + }, + "type": { + "type": "reference", + "name": "SearchQuery", + "id": 219 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 368, + "character": 29 + } + ] + }, + { + "id": 1044, + "name": "searchAssetsByText", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 1045, + "name": "searchAssetsByText", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Search over the assets using a keyword.", + "returns": "\n" + }, + "parameters": [ + { + "id": 1046, + "name": "text", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Text to filter the assets." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "DDO", + "id": 123 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 378, + "character": 35 + } + ] + }, + { + "id": 1012, + "name": "signServiceAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "decorators": [ + { + "name": "deprecated", + "type": { + "type": "reference", + "name": "deprecated" + }, + "arguments": { + "alternative": "'purchaseAssetService'" + } + } + ], + "signatures": [ + { + "id": 1013, + "name": "signServiceAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Signs a service agreement by DID.", + "returns": "\n\n", + "tags": [ + { + "tag": "deprecated", + "text": "Replace by {@link #purchaseAssetService}" + } + ] + }, + "parameters": [ + { + "id": 1014, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Decentralized ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1015, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Service definition ID." + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1016, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Consumer account." + }, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 207, + "character": 37 + } + ] + }, + { + "id": 993, + "name": "getInstance", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 994, + "name": "getInstance", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "Returns the instance of Ocean.", + "returns": "\n" + }, + "parameters": [ + { + "id": 995, + "name": "config", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "comment": { + "text": "Ocean instance configuration." + }, + "type": { + "type": "reference", + "name": "Config", + "id": 2 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Ocean", + "id": 992 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 42, + "character": 35 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 998 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 997, + 996 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 1033, + 1000, + 1022, + 1017, + 1008, + 1005, + 1002, + 1041, + 1044, + 1012, + 993 + ] + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 35, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 992 + ] + } + ], + "sources": [ + { + "fileName": "ocean/Ocean.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 711, + "name": "\"ocean/OceanBase\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/OceanBase.ts", + "children": [ + { + "id": 712, + "name": "OceanBase", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true, + "isAbstract": true + }, + "children": [ + { + "id": 714, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 715, + "name": "new OceanBase", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 716, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "name": "OceanBase", + "id": 712 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 3, + "character": 25 + } + ] + }, + { + "id": 713, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 3, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0x00\"" + }, + { + "id": 717, + "name": "getId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 718, + "name": "getId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 11, + "character": 16 + } + ] + }, + { + "id": 719, + "name": "setId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 720, + "name": "setId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 721, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 15, + "character": 16 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 714 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 713 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 717, + 719 + ] + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 1, + "character": 39 + } + ], + "extendedBy": [ + { + "type": "reference", + "name": "Account", + "id": 723 + }, + { + "type": "reference", + "name": "ServiceAgreement", + "id": 828 + }, + { + "type": "reference", + "name": "ServiceAgreementTemplate", + "id": 951 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 712 + ] + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 913, + "name": "\"ocean/ServiceAgreements/Condition\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Condition.ts", + "children": [ + { + "id": 914, + "name": "Condition", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 916, + "name": "condtionKey", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 7, + "character": 22 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 917, + "name": "dependencies", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 8, + "character": 23 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 918, + "name": "dependencyTimeoutFlags", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 9, + "character": 33 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + }, + { + "id": 921, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 12, + "character": 17 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 42 + } + } + }, + { + "id": 919, + "name": "isTerminalCondition", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 10, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 915, + "name": "methodReflection", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 6, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "MethodReflection", + "id": 587 + } + }, + { + "id": 922, + "name": "parameters", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 13, + "character": 21 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Parameter", + "id": 910 + } + } + }, + { + "id": 920, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 11, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 916, + 917, + 918, + 921, + 919, + 915, + 922, + 920 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 5, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 914 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Condition.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 928, + "name": "\"ocean/ServiceAgreements/Event\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Event.ts", + "children": [ + { + "id": 929, + "name": "Event", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 931, + "name": "actorType", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Event.ts", + "line": 5, + "character": 20 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"publisher\"" + }, + { + "id": 932, + "name": "handler", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Event.ts", + "line": 6, + "character": 18 + } + ], + "type": { + "type": "reference", + "name": "EventHandler", + "id": 924 + } + }, + { + "id": 930, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Event.ts", + "line": 4, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"PaymentLocked\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 931, + 932, + 930 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Event.ts", + "line": 3, + "character": 26 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 929 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Event.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 923, + "name": "\"ocean/ServiceAgreements/EventHandler\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/EventHandler.ts", + "children": [ + { + "id": 924, + "name": "EventHandler", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 926, + "name": "functionName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/EventHandler.ts", + "line": 3, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"grantAccess\"" + }, + { + "id": 925, + "name": "moduleName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/EventHandler.ts", + "line": 2, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"accessControl\"" + }, + { + "id": 927, + "name": "version", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/EventHandler.ts", + "line": 4, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0.1\"" + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 926, + 925, + 927 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/EventHandler.ts", + "line": 1, + "character": 33 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 924 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/EventHandler.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 933, + "name": "\"ocean/ServiceAgreements/Method\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Method.ts", + "children": [ + { + "id": 934, + "name": "Method", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 936, + "name": "contractName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 6, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 941, + "name": "dependencies", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 11, + "character": 23 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 942, + "name": "dependencyTimeoutFlags", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 12, + "character": 33 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + }, + { + "id": 940, + "name": "events", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 10, + "character": 17 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Event", + "id": 929 + } + } + }, + { + "id": 943, + "name": "isTerminalCondition", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 13, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 937, + "name": "methodName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 7, + "character": 21 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 935, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 5, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 939, + "name": "parameters", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 9, + "character": 21 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Parameter", + "id": 910 + } + } + }, + { + "id": 938, + "name": "timeout", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 8, + "character": 18 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 936, + 941, + 942, + 940, + 943, + 937, + 935, + 939, + 938 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 4, + "character": 27 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 934 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Method.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 909, + "name": "\"ocean/ServiceAgreements/Parameter\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Parameter.ts", + "children": [ + { + "id": 910, + "name": "Parameter", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 911, + "name": "name", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Parameter.ts", + "line": 2, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 912, + "name": "type", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Parameter.ts", + "line": 3, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 911, + 912 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Parameter.ts", + "line": 1, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 910 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Parameter.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 827, + "name": "\"ocean/ServiceAgreements/ServiceAgreement\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/ServiceAgreement.ts", + "children": [ + { + "id": 828, + "name": "ServiceAgreement", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 882, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isExported": true + }, + "signatures": [ + { + "id": 883, + "name": "new ServiceAgreement", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 884, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "ServiceAgreement", + "id": 828 + }, + "overwrites": { + "type": "reference", + "name": "OceanBase.__constructor", + "id": 714 + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 214, + "character": 5 + } + ], + "overwrites": { + "type": "reference", + "name": "OceanBase.__constructor", + "id": 714 + } + }, + { + "id": 897, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 3, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0x00\"", + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.id", + "id": 713 + } + }, + { + "id": 898, + "name": "getId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 899, + "name": "getId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.getId", + "id": 717 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 11, + "character": 16 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.getId", + "id": 717 + } + }, + { + "id": 895, + "name": "getStatus", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 896, + "name": "getStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 241, + "character": 26 + } + ] + }, + { + "id": 890, + "name": "grantAccess", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 891, + "name": "grantAccess", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 892, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 893, + "name": "documentId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 894, + "name": "publisher", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 232, + "character": 28 + } + ] + }, + { + "id": 885, + "name": "payAsset", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 886, + "name": "payAsset", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 887, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 888, + "name": "price", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 889, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 220, + "character": 25 + } + ] + }, + { + "id": 900, + "name": "setId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 901, + "name": "setId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 902, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.setId", + "id": 719 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 15, + "character": 16 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.setId", + "id": 719 + } + }, + { + "id": 844, + "name": "createSAHashSignature", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 845, + "name": "createSAHashSignature", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 846, + "name": "service", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Service", + "id": 112 + } + }, + { + "id": 847, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 848, + "name": "valueHashes", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 849, + "name": "timeoutValues", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + }, + { + "id": 850, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 64, + "character": 46 + } + ] + }, + { + "id": 862, + "name": "createValueHashes", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 863, + "name": "createValueHashes", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 864, + "name": "parameterValuePairs", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "name": "ValuePair", + "id": 824 + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 145, + "character": 36 + } + ] + }, + { + "id": 851, + "name": "executeAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 852, + "name": "executeAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 853, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + }, + { + "id": 854, + "name": "ddo", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DDO", + "id": 123 + } + }, + { + "id": 855, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 856, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 857, + "name": "valueHashes", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 858, + "name": "timeoutValues", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + }, + { + "id": 859, + "name": "serviceAgreementHashSignature", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 860, + "name": "consumerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 861, + "name": "publisher", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "ServiceAgreement", + "id": 828 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 101, + "character": 41 + } + ] + }, + { + "id": 835, + "name": "executeServiceAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 836, + "name": "executeServiceAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 837, + "name": "did", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DID", + "id": 154 + } + }, + { + "id": 838, + "name": "ddo", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DDO", + "id": 123 + } + }, + { + "id": 839, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 840, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 841, + "name": "serviceAgreementHashSignature", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 842, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + }, + { + "id": 843, + "name": "publisher", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "ServiceAgreement", + "id": 828 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 39, + "character": 47 + } + ] + }, + { + "id": 875, + "name": "getTimeoutValuesFromService", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 876, + "name": "getTimeoutValuesFromService", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 877, + "name": "service", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Service", + "id": 112 + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 188, + "character": 46 + } + ] + }, + { + "id": 878, + "name": "getValuesFromService", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 879, + "name": "getValuesFromService", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 880, + "name": "service", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Service", + "id": 112 + } + }, + { + "id": 881, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "name": "ValuePair", + "id": 824 + } + } + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 196, + "character": 39 + } + ] + }, + { + "id": 868, + "name": "hashServiceAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 869, + "name": "hashServiceAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 870, + "name": "serviceAgreementTemplateId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 871, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 872, + "name": "conditionKeys", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 873, + "name": "valueHashes", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 874, + "name": "timeouts", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 172, + "character": 39 + } + ] + }, + { + "id": 865, + "name": "hashValuePairArray", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 866, + "name": "hashValuePairArray", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 867, + "name": "valuePairs", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "ValuePair", + "id": 824 + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 156, + "character": 37 + } + ] + }, + { + "id": 829, + "name": "signServiceAgreement", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 830, + "name": "signServiceAgreement", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 831, + "name": "ddo", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "DDO", + "id": 123 + } + }, + { + "id": 832, + "name": "serviceDefinitionId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 833, + "name": "serviceAgreementId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 834, + "name": "consumer", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "Account", + "id": 723 + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 15, + "character": 44 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 882 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 897 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 898, + 895, + 890, + 885, + 900, + 844, + 862, + 851, + 835, + 875, + 878, + 868, + 865, + 829 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 13, + "character": 37 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "OceanBase", + "id": 712 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 828 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 950, + "name": "\"ocean/ServiceAgreements/ServiceAgreementTemplate\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "children": [ + { + "id": 951, + "name": "ServiceAgreementTemplate", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 956, + "name": "constructor", + "kind": 512, + "kindString": "Constructor", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 958, + "name": "new ServiceAgreementTemplate", + "kind": 16384, + "kindString": "Constructor signature", + "flags": {}, + "parameters": [ + { + "id": 959, + "name": "template", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "TemplateBase", + "id": 945 + } + } + ], + "type": { + "type": "reference", + "name": "ServiceAgreementTemplate", + "id": 951 + }, + "overwrites": { + "type": "reference", + "name": "OceanBase.__constructor", + "id": 714 + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 28, + "character": 5 + } + ], + "overwrites": { + "type": "reference", + "name": "OceanBase.__constructor", + "id": 714 + } + }, + { + "id": 979, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isProtected": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 3, + "character": 16 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0x00\"", + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.id", + "id": 713 + } + }, + { + "id": 957, + "name": "template", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isExported": true, + "isConstructorProperty": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 30, + "character": 39 + } + ], + "type": { + "type": "reference", + "name": "TemplateBase", + "id": 945 + } + }, + { + "id": 971, + "name": "blendConditions", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 972, + "name": "blendConditions", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "Condition", + "id": 914 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 155, + "character": 33 + } + ] + }, + { + "id": 973, + "name": "compressDependencies", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 974, + "name": "compressDependencies", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 975, + "name": "dependencies", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + }, + { + "id": 976, + "name": "dependencyTimeoutFlags", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 180, + "character": 32 + } + ] + }, + { + "id": 967, + "name": "getConditions", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 968, + "name": "getConditions", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 969, + "name": "metadata", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "MetaData", + "id": 101 + } + }, + { + "id": 970, + "name": "assetId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "DDOCondition" + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 104, + "character": 30 + } + ] + }, + { + "id": 980, + "name": "getId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 981, + "name": "getId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.getId", + "id": 717 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 11, + "character": 16 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.getId", + "id": 717 + } + }, + { + "id": 977, + "name": "getMethodReflections", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 978, + "name": "getMethodReflections", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "array", + "elementType": { + "type": "reference", + "name": "MethodReflection", + "id": 587 + } + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 215, + "character": 38 + } + ] + }, + { + "id": 965, + "name": "getOwner", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 966, + "name": "getOwner", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Account", + "id": 723 + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 98, + "character": 25 + } + ] + }, + { + "id": 963, + "name": "getStatus", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 964, + "name": "getStatus", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "comment": { + "shortText": "gets the status of a service agreement template" + }, + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 93, + "character": 26 + } + ] + }, + { + "id": 960, + "name": "register", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 961, + "name": "register", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 962, + "name": "templateOwnerAddress", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 34, + "character": 25 + } + ] + }, + { + "id": 982, + "name": "setId", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 983, + "name": "setId", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 984, + "name": "id", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.setId", + "id": 719 + } + } + ], + "sources": [ + { + "fileName": "ocean/OceanBase.ts", + "line": 15, + "character": 16 + } + ], + "inheritedFrom": { + "type": "reference", + "name": "OceanBase.setId", + "id": 719 + } + }, + { + "id": 952, + "name": "generateConditionsKey", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 953, + "name": "generateConditionsKey", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 954, + "name": "serviceAgreementTemplateId", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 955, + "name": "methodReflection", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "MethodReflection", + "id": 587 + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 20, + "character": 40 + } + ] + } + ], + "groups": [ + { + "title": "Constructors", + "kind": 512, + "children": [ + 956 + ] + }, + { + "title": "Properties", + "kind": 1024, + "children": [ + 979, + 957 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 971, + 973, + 967, + 980, + 977, + 965, + 963, + 960, + 982, + 952 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 18, + "character": 45 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "OceanBase", + "id": 712 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 951 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 985, + "name": "\"ocean/ServiceAgreements/Templates/Access\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Templates/Access.ts", + "children": [ + { + "id": 986, + "name": "Access", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 989, + "name": "Methods", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/Access.ts", + "line": 11, + "character": 18 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Method", + "id": 934 + } + }, + "defaultValue": " [\n {\n name: \"lockPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"lockPayment\",\n timeout: 0,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter, {\n name: \"price\",\n type: \"uint256\",\n } as Parameter,\n ],\n events: [\n {\n name: \"PaymentLocked\",\n actorType: \"publisher\",\n handler: {\n moduleName: \"accessControl\",\n functionName: \"grantAccess\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [],\n dependencyTimeoutFlags: [],\n isTerminalCondition: false,\n } as Method, {\n name: \"grantAccess\",\n contractName: \"AccessConditions\",\n methodName: \"grantAccess\",\n timeout: 0,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter,\n {\n name: \"documentKeyId\",\n type: \"bytes32\",\n } as Parameter,\n ],\n events: [\n {\n name: \"AccessGranted\",\n actorType: \"publisher\",\n handler: {\n moduleName: \"payment\",\n functionName: \"releasePayment\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n {\n name: \"AccessGranted\",\n actorType: \"consumer\",\n handler: {\n moduleName: \"accessControl\",\n functionName: \"consumeAsset\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n {\n name: \"AccessTimeout\",\n actorType: \"consumer\",\n handler: {\n moduleName: \"payment\",\n functionName: \"refundPayment\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [\"lockPayment\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: false,\n } as Method, {\n name: \"releasePayment\",\n contractName: \"PaymentConditions\",\n methodName: \"releasePayment\",\n timeout: 0,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter, {\n name: \"price\",\n type: \"uint256\",\n } as Parameter,\n ],\n events: [\n {\n name: \"PaymentReleased\",\n actorType: \"consumer\",\n handler: {\n moduleName: \"serviceAgreement\",\n functionName: \"fulfillAgreement\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [\"grantAccess\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: true,\n } as Method, {\n name: \"refundPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"refundPayment\",\n timeout: 10 * 60,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter, {\n name: \"price\",\n type: \"uint256\",\n } as Parameter,\n ],\n events: [\n {\n name: \"PaymentRefund\",\n actorType: \"publisher\",\n handler: {\n moduleName: \"serviceAgreement\",\n functionName: \"terminateAgreement\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [\"lockPayment\", \"grantAccess\"],\n dependencyTimeoutFlags: [0, 1],\n isTerminalCondition: true,\n } as Method,\n ]", + "overwrites": { + "type": "reference", + "name": "TemplateBase.Methods", + "id": 946 + } + }, + { + "id": 990, + "name": "fulfillmentOperator", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 6, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1", + "inheritedFrom": { + "type": "reference", + "name": "TemplateBase.fulfillmentOperator", + "id": 948 + } + }, + { + "id": 988, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/Access.ts", + "line": 10, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d\"", + "overwrites": { + "type": "reference", + "name": "TemplateBase.id", + "id": 949 + } + }, + { + "id": 987, + "name": "templateName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/Access.ts", + "line": 9, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"Access\"", + "overwrites": { + "type": "reference", + "name": "TemplateBase.templateName", + "id": 947 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 989, + 990, + 988, + 987 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/Access.ts", + "line": 7, + "character": 27 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "TemplateBase", + "id": 945 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 986 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/Access.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1047, + "name": "\"ocean/ServiceAgreements/Templates/FitchainCompute\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Templates/FitchainCompute.ts", + "children": [ + { + "id": 1048, + "name": "FitchainCompute", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 1051, + "name": "Methods", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", + "line": 8, + "character": 18 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Method", + "id": 934 + } + }, + "defaultValue": " [\n {\n name: \"lockPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"lockPayment\",\n timeout: 0,\n dependencies: [],\n dependencyTimeoutFlags: [],\n isTerminalCondition: false,\n } as Method,\n {\n name: \"grantAccess\",\n contractName: \"AccessConditions\",\n methodName: \"grantAccess\",\n timeout: 10,\n dependencies: [\"lockPayment\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: false,\n } as Method,\n {\n name: \"releasePayment\",\n contractName: \"PaymentConditions\",\n methodName: \"releasePayment\",\n timeout: 10,\n dependencies: [\"grantAccess\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: true,\n } as Method,\n {\n name: \"refundPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"refundPayment\",\n timeout: 10,\n dependencies: [\"lockPayment\", \"grantAccess\"],\n dependencyTimeoutFlags: [0, 1],\n isTerminalCondition: true,\n } as Method,\n ]", + "overwrites": { + "type": "reference", + "name": "TemplateBase.Methods", + "id": 946 + } + }, + { + "id": 1052, + "name": "fulfillmentOperator", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 6, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1", + "inheritedFrom": { + "type": "reference", + "name": "TemplateBase.fulfillmentOperator", + "id": 948 + } + }, + { + "id": 1050, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", + "line": 7, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6\"", + "overwrites": { + "type": "reference", + "name": "TemplateBase.id", + "id": 949 + } + }, + { + "id": 1049, + "name": "templateName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", + "line": 6, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"FitchainCompute\"", + "overwrites": { + "type": "reference", + "name": "TemplateBase.templateName", + "id": 947 + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 1051, + 1052, + 1050, + 1049 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", + "line": 4, + "character": 36 + } + ], + "extendedTypes": [ + { + "type": "reference", + "name": "TemplateBase", + "id": 945 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 1048 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 944, + "name": "\"ocean/ServiceAgreements/Templates/TemplateBase\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Templates/TemplateBase.ts", + "children": [ + { + "id": 945, + "name": "TemplateBase", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true, + "isAbstract": true + }, + "children": [ + { + "id": 946, + "name": "Methods", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 4, + "character": 18 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "name": "Method", + "id": 934 + } + } + }, + { + "id": 948, + "name": "fulfillmentOperator", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 6, + "character": 30 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + }, + { + "id": 949, + "name": "id", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 7, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "\"0x00000000000000000000000000000000000000000000000000000000000000\"" + }, + { + "id": 947, + "name": "templateName", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPublic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 5, + "character": 23 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 946, + 948, + 949, + 947 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 3, + "character": 42 + } + ], + "extendedBy": [ + { + "type": "reference", + "name": "Access", + "id": 986 + }, + { + "type": "reference", + "name": "FitchainCompute", + "id": 1048 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 945 + ] + } + ], + "sources": [ + { + "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 815, + "name": "\"secretstore/SecretStoreProvider\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/secretstore/SecretStoreProvider.ts", + "children": [ + { + "id": 816, + "name": "SecretStoreProvider", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 822, + "name": "secretStore", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "secretstore/SecretStoreProvider.ts", + "line": 20, + "character": 30 + } + ], + "type": { + "type": "reference", + "name": "SecretStore" + } + }, + { + "id": 820, + "name": "getSecretStore", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 821, + "name": "getSecretStore", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "SecretStore" + } + } + ], + "sources": [ + { + "fileName": "secretstore/SecretStoreProvider.ts", + "line": 11, + "character": 32 + } + ] + }, + { + "id": 817, + "name": "setSecretStore", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 818, + "name": "setSecretStore", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 819, + "name": "secretStore", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "SecretStore" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "secretstore/SecretStoreProvider.ts", + "line": 6, + "character": 32 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 822 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 820, + 817 + ] + } + ], + "sources": [ + { + "fileName": "secretstore/SecretStoreProvider.ts", + "line": 4, + "character": 40 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 816 + ] + } + ], + "sources": [ + { + "fileName": "secretstore/SecretStoreProvider.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 1053, + "name": "\"squid\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/squid.ts", + "children": [ + { + "id": 1054, + "name": "Templates", + "kind": 2097152, + "kindString": "Object literal", + "flags": { + "isConst": true + }, + "children": [ + { + "id": 1055, + "name": "Access", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "squid.ts", + "line": 15, + "character": 25 + } + ], + "type": { + "type": "reference", + "name": "Access", + "id": 986 + } + }, + { + "id": 1056, + "name": "FitchainCompute", + "kind": 32, + "kindString": "Variable", + "flags": {}, + "sources": [ + { + "fileName": "squid.ts", + "line": 15, + "character": 42 + } + ], + "type": { + "type": "reference", + "name": "FitchainCompute", + "id": 1048 + } + } + ], + "groups": [ + { + "title": "Variables", + "kind": 32, + "children": [ + 1055, + 1056 + ] + } + ], + "sources": [ + { + "fileName": "squid.ts", + "line": 15, + "character": 15 + } + ], + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "groups": [ + { + "title": "Object literals", + "kind": 2097152, + "children": [ + 1054 + ] + } + ], + "sources": [ + { + "fileName": "squid.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 169, + "name": "\"utils/Logger\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/utils/Logger.ts", + "children": [ + { + "id": 170, + "name": "Logger", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 174, + "name": "debug", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 175, + "name": "debug", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 176, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "utils/Logger.ts", + "line": 6, + "character": 23 + } + ] + }, + { + "id": 183, + "name": "dispatch", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 184, + "name": "dispatch", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 185, + "name": "verb", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 186, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "utils/Logger.ts", + "line": 18, + "character": 27 + } + ] + }, + { + "id": 180, + "name": "error", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 181, + "name": "error", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 182, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "utils/Logger.ts", + "line": 14, + "character": 23 + } + ] + }, + { + "id": 171, + "name": "log", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 172, + "name": "log", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 173, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "utils/Logger.ts", + "line": 2, + "character": 21 + } + ] + }, + { + "id": 177, + "name": "warn", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 178, + "name": "warn", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 179, + "name": "args", + "kind": 32768, + "kindString": "Parameter", + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "utils/Logger.ts", + "line": 10, + "character": 22 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 174, + 183, + 180, + 171, + 177 + ] + } + ], + "sources": [ + { + "fileName": "utils/Logger.ts", + "line": 1, + "character": 27 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 170 + ] + } + ], + "sources": [ + { + "fileName": "utils/Logger.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 187, + "name": "\"utils/WebServiceConnector\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/utils/WebServiceConnector.ts", + "children": [ + { + "id": 188, + "name": "WebServiceConnector", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "comment": { + "shortText": "Provides a common interface to web services." + }, + "children": [ + { + "id": 200, + "name": "fetch", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPrivate": true, + "isExported": true + }, + "signatures": [ + { + "id": 201, + "name": "fetch", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 202, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 203, + "name": "opts", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "RequestInit" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Response" + } + ] + } + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnector.ts", + "line": 37, + "character": 23 + } + ] + }, + { + "id": 193, + "name": "get", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 194, + "name": "get", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 195, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Response" + } + ] + } + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnector.ts", + "line": 18, + "character": 20 + } + ] + }, + { + "id": 189, + "name": "post", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 190, + "name": "post", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 191, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 192, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "BodyInit" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Response" + } + ] + } + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnector.ts", + "line": 8, + "character": 21 + } + ] + }, + { + "id": 196, + "name": "put", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isExported": true + }, + "signatures": [ + { + "id": 197, + "name": "put", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 198, + "name": "url", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 199, + "name": "payload", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "BodyInit" + } + } + ], + "type": { + "type": "reference", + "name": "Promise", + "typeArguments": [ + { + "type": "reference", + "name": "Response" + } + ] + } + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnector.ts", + "line": 27, + "character": 20 + } + ] + } + ], + "groups": [ + { + "title": "Methods", + "kind": 2048, + "children": [ + 200, + 193, + 189, + 196 + ] + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnector.ts", + "line": 6, + "character": 40 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 188 + ] + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnector.ts", + "line": 1, + "character": 0 + } + ] + }, + { + "id": 204, + "name": "\"utils/WebServiceConnectorProvider\"", + "kind": 1, + "kindString": "External module", + "flags": { + "isExported": true + }, + "originalName": "/home/pedro/projects/ocean/squid-js/src/utils/WebServiceConnectorProvider.ts", + "children": [ + { + "id": 205, + "name": "WebServiceConnectorProvider", + "kind": 128, + "kindString": "Class", + "flags": { + "isExported": true + }, + "children": [ + { + "id": 211, + "name": "instance", + "kind": 1024, + "kindString": "Property", + "flags": { + "isPrivate": true, + "isStatic": true, + "isExported": true + }, + "sources": [ + { + "fileName": "utils/WebServiceConnectorProvider.ts", + "line": 18, + "character": 27 + } + ], + "type": { + "type": "reference", + "name": "WebServiceConnector", + "id": 188 + }, + "defaultValue": " null" + }, + { + "id": 209, + "name": "getConnector", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 210, + "name": "getConnector", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "type": { + "type": "reference", + "name": "WebServiceConnector", + "id": 188 + } + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnectorProvider.ts", + "line": 10, + "character": 30 + } + ] + }, + { + "id": 206, + "name": "setConnector", + "kind": 2048, + "kindString": "Method", + "flags": { + "isPublic": true, + "isStatic": true, + "isExported": true + }, + "signatures": [ + { + "id": 207, + "name": "setConnector", + "kind": 4096, + "kindString": "Call signature", + "flags": {}, + "parameters": [ + { + "id": 208, + "name": "connector", + "kind": 32768, + "kindString": "Parameter", + "flags": {}, + "type": { + "type": "reference", + "name": "WebServiceConnector", + "id": 188 + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnectorProvider.ts", + "line": 5, + "character": 30 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "kind": 1024, + "children": [ + 211 + ] + }, + { + "title": "Methods", + "kind": 2048, + "children": [ + 209, + 206 + ] + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnectorProvider.ts", + "line": 3, + "character": 48 + } + ] + } + ], + "groups": [ + { + "title": "Classes", + "kind": 128, + "children": [ + 205 + ] + } + ], + "sources": [ + { + "fileName": "utils/WebServiceConnectorProvider.ts", + "line": 1, + "character": 0 + } + ] + } + ], + "groups": [ + { + "title": "External modules", + "kind": 1, + "children": [ + 13, + 225, + 251, + 212, + 218, + 215, + 259, + 283, + 71, + 21, + 51, + 62, + 76, + 122, + 32, + 41, + 36, + 100, + 81, + 46, + 25, + 111, + 67, + 1059, + 1060, + 1061, + 1062, + 1063, + 1064, + 1065, + 1066, + 1068, + 1069, + 1070, + 1071, + 1058, + 1057, + 303, + 903, + 791, + 778, + 693, + 298, + 355, + 320, + 484, + 745, + 529, + 593, + 653, + 402, + 440, + 291, + 707, + 1, + 582, + 586, + 823, + 478, + 722, + 153, + 149, + 991, + 711, + 913, + 928, + 923, + 933, + 909, + 827, + 950, + 985, + 1047, + 944, + 815, + 1053, + 169, + 187, + 204 + ] + } + ] +} \ No newline at end of file diff --git a/gatsby-node.js b/gatsby-node.js index 7850bee1..fc7b5f4c 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -197,6 +197,31 @@ exports.createPages = ({ graphql, actions }) => { } }) + // + // Create pages from TypeDoc json files + // + const typedocTemplate = path.resolve( + './src/templates/Typedoc.jsx' + ) + + const squidJsSpecs = require('./data/squid-js.json') + const squidJsSlug = '/references/squid-js/' + + createPage({ + path: squidJsSlug, + component: typedocTemplate, + context: { + slug: squidJsSlug, + typedoc: squidJsSpecs, + classes: [ + 'ocean/Ocean', + 'ocean/Account', + 'ddo/DDO', + 'ddo/Service' + ] + } + }) + // // create redirects // diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc.jsx new file mode 100644 index 00000000..fe5522be --- /dev/null +++ b/src/templates/Typedoc.jsx @@ -0,0 +1,381 @@ +import React, { Component } from 'react' +import PropTypes from 'prop-types' +import { graphql } from 'gatsby' +import Helmet from 'react-helmet' +import slugify from 'slugify' +import Layout from '../components/Layout' +import Content from '../components/Content' +import HeaderSection from '../components/HeaderSection' +import Sidebar from '../components/Sidebar' +import DocHeader from '../components/DocHeader' +import SEO from '../components/Seo' +import stylesDoc from './Doc.module.scss' +import styles from './Typedoc.module.scss' + +const showKindOfProperty = ['Method', 'Property'] + +const toc = typedoc => { + const items = typedoc + .map( + ({ name }) => ` +
  • + + ${name} + +
  • + ` + ) + .join('') + + return `` +} + +const Type = ({ type }) => { + let isArray = false + if (type.type === 'array') { + isArray = true + type = type.elementType + } + const { name, type: typeOfType, typeArguments, id } = type + const isInternal = typeOfType === 'reference' && id + return ( + + + {isInternal && {type.name}} + {!isInternal && {type.name}} + + + {typeArguments && ( + + < + + {typeArguments.map((typeArgument, i) => ( + + {i !== 0 && ( + + ,{' '} + + )} + + + ))} + + > + + )} + + {isArray && []} + + ) +} + +Type.propTypes = { + type: PropTypes.object.isRequired +} + +const PropertyDetails = ({ property }) => { + const { type } = property + return ( +
    + Type: + +
    + ) +} + +PropertyDetails.propTypes = { + property: PropTypes.object +} + +const MethodDetails = ({ property }) => { + const signature = property.signatures[0] + const { parameters, type } = signature + return ( + <> + {parameters && parameters.length && ( +
    +

    Parameters

    + + {parameters.map(parameter => { + const { name, type, flags, comment } = parameter + const { isOptional } = flags + const description = + comment && (comment.text || comment.shortText) + return ( +
    +
    + {name} + {isOptional && ( + + ? + + )} +
    + + +

    {description}

    +
    + ) + })} +
    + )} + + {type && ( +
    +

    Returns

    + + +
    + )} + + ) +} + +MethodDetails.propTypes = { + property: PropTypes.object +} + +const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { + const { + name, + kindString, + flags, + signatures, + sources, + decorators + } = property + const { isPublic, isStatic } = flags + const signature = signatures && signatures[0] + const comment = (signature && signature.comment) || property.comment + const { fileName, line } = sources[0] + const deprecation = (decorators || []).filter( + ({ name }) => name === 'deprecated' + )[0] // Assuming deprecated annotation + let deprecatedUse + if (deprecation) { + deprecatedUse = deprecation.arguments.alternative.replace(/'/g, '') + } + const sourceLink = `${sourceUrl}${fileName}#L${line}` + return ( +
    +
    + {kindString} +
    + +

    {name}

    + + {isStatic &&
    static
    } + {!isPublic && ( +
    + private +
    + )} + + {fileName && ( + + source + + )} + + {!!deprecation && ( +
    + Deprecated: use{' '} + + {deprecatedUse} + {' '} + instead +
    + )} + + {comment && ( +
    + {comment.text || comment.shortText} +
    + )} + + {(() => { + switch (kindString) { + case 'Method': + return + case 'Property': + return + } + })()} +
    + ) +} + +PropertyWrapper.propTypes = { + property: PropTypes.object, + sourceUrl: PropTypes.string, + parentAnchor: PropTypes.string +} + +const Entity = ({ entities, sourceUrl }) => + entities.map(({ name, comment, children }) => ( +
    +

    + {name} +

    + + {comment && ( +
    + {comment.text || comment.shortText} +
    + )} + + {children + .filter(({ kindString }) => + showKindOfProperty.includes(kindString) + ) + .map(property => ( + + ))} +
    + )) + +Entity.propTypes = { + entities: PropTypes.array.isRequired, + sourceUrl: PropTypes.string +} + +export default class TypedocTemplate extends Component { + static propTypes = { + data: PropTypes.object.isRequired, + location: PropTypes.object.isRequired, + pageContext: PropTypes.object.isRequired + } + + componentWillMount() { + const { typedoc, classes } = this.props.pageContext + this.setState({ + typedocData: this.cleanTypedocData(typedoc, classes) + }) + } + + cleanTypedocData(data, useClasses) { + const nodes = data.children + const cleanData = nodes + .map(node => ({ + ...node, + name: node.name.replace(/"/g, ''), + child: node.children && node.children[0] + })) + .filter(({ name }) => (useClasses || []).includes(name)) + .sort( + (a, b) => + useClasses.indexOf(a.name) - useClasses.indexOf(b.name) + ) + .map(({ child }) => child) + .map(node => ({ + ...node, + children: node.children.sort((a, b) => a.id - b.id) + })) + + return cleanData + } + + render() { + const { location, data, pageContext } = this.props + const { typedocData } = this.state + const sections = data.allSectionsYaml.edges + const { typedoc } = pageContext + const { info } = typedoc + const { title, description, version, sourceUrl } = info + + // output section title as defined in sections.yml + const sectionTitle = sections.map(({ node }) => { + // compare section against section title from sections.yml + if (node.title.toLowerCase().includes('references')) { + return node.title + } + }) + + return ( + <> + + + + + + + + + + +
    + +
    + + {version} + + } + /> + + +
    +
    +
    +
    + + ) + } +} + +export const TypedocQuery = graphql` + query { + allSectionsYaml { + edges { + node { + title + description + link + } + } + } + } +` diff --git a/src/templates/Typedoc.module.scss b/src/templates/Typedoc.module.scss new file mode 100644 index 00000000..1a81ac6e --- /dev/null +++ b/src/templates/Typedoc.module.scss @@ -0,0 +1,151 @@ +@import 'variables'; + +.entityName { + font-size: $font-size-h3; + border-bottom: 1px solid $brand-grey-lighter; + padding-bottom: $spacer / 2; + margin-top: $spacer * 2; + margin-bottom: $spacer; + + code { + // stylelint-disable-next-line + background: none !important; + } +} + +.entityDescription { + padding-bottom: $spacer; + white-space: pre-line; +} + +.property { + padding: $spacer / 2; + border: 1px solid $brand-grey-lighter; + margin-bottom: $spacer; + border-radius: $border-radius; + position: relative; + + &[data-private='true'] { + background: rgba($brand-black, .06); + } + + &[data-deprecated='true'] { + background: rgba($brand-pink, .06); + } +} + +.propertyName, +.propertyType, +.propertyModifier { + font-size: $font-size-base; + font-family: $font-family-monospace; + margin-bottom: $spacer / 4; + margin-top: 0; + display: inline-block; + padding: $spacer / 8 $spacer / 3; + border-radius: $border-radius; + vertical-align: middle; +} + +.propertyType, +.propertyModifier { + font-size: $font-size-small; + line-height: 1.4em; + padding: $spacer / 16 $spacer / 6; +} + +.propertyType { + &[data-type='method'] { + background: rgba($green, .4); + } + + &[data-type='property'] { + background: rgba($brand-pink, .4); + } +} + +.propertyModifier { + background: rgba($red, .2); + padding: 0 $spacer / 6; + margin-right: $spacer / 3; + + &[data-secondary] { + background: rgba($brand-blue, .5); + color: $brand-white; + } +} + +.propertyDescription { + opacity: .6; + padding: $spacer / 6 0 $spacer / 3; +} + +.sourceLink { + position: absolute; + top: $spacer / 2; + right: $spacer / 2; +} + +.deprecation { + font-size: $font-size-small; + color: mix($brand-black, $brand-pink, 50%); +} + +.detailsLine { + .type { + margin-left: $spacer / 4; + } +} + +.type { + display: inline-block; + font-weight: $font-weight-base; + font-size: $font-size-small; + font-family: $font-family-title; + + &, + a { + color: $brand-grey-light; + } + + a { + &:hover { + opacity: .6; + } + } +} + +.typeSymbol { + opacity: .6; +} + +.subHeading { + font-size: $font-size-h5; +} + +.parameters { + margin-top: $spacer / 3; + + h5, + p { + margin: 0; + } + + h5 { + font-size: $font-size-small; + margin-bottom: $spacer / 4; + margin-right: $spacer / 4; + display: inline-block; + } + + code { + // stylelint-disable-next-line + background: rgba($brand-black, .08) !important; + } +} + +.parameterOptinal { + font-size: $font-size-small; + vertical-align: top; + color: $brand-purple; +} From 4834ebe4cb647880ad6df46629ebd46396a18f73 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 21 Jan 2019 13:37:24 +0100 Subject: [PATCH 02/36] style & typography tweaks --- src/templates/Typedoc.jsx | 13 ++++----- src/templates/Typedoc.module.scss | 45 +++++++++++++++++-------------- 2 files changed, 32 insertions(+), 26 deletions(-) diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc.jsx index fe5522be..201d9922 100644 --- a/src/templates/Typedoc.jsx +++ b/src/templates/Typedoc.jsx @@ -12,6 +12,7 @@ import SEO from '../components/Seo' import stylesDoc from './Doc.module.scss' import styles from './Typedoc.module.scss' +// more kinds: 'Property', 'Class' const showKindOfProperty = ['Method', 'Property'] const toc = typedoc => { @@ -38,8 +39,9 @@ const Type = ({ type }) => { } const { name, type: typeOfType, typeArguments, id } = type const isInternal = typeOfType === 'reference' && id + return ( - +
    {isInternal && {type.name}} {!isInternal && {type.name}} @@ -47,7 +49,7 @@ const Type = ({ type }) => { {typeArguments && ( - < + < {typeArguments.map((typeArgument, i) => ( @@ -65,7 +67,7 @@ const Type = ({ type }) => { )} {isArray && []} - +
    ) } @@ -76,8 +78,7 @@ Type.propTypes = { const PropertyDetails = ({ property }) => { const { type } = property return ( -
    - Type: +
    ) @@ -110,7 +111,7 @@ const MethodDetails = ({ property }) => { {name} {isOptional && ( ? diff --git a/src/templates/Typedoc.module.scss b/src/templates/Typedoc.module.scss index 1a81ac6e..a61c1d9e 100644 --- a/src/templates/Typedoc.module.scss +++ b/src/templates/Typedoc.module.scss @@ -1,7 +1,13 @@ @import 'variables'; +.version { + font-size: $font-size-base; + font-family: $font-family-monospace; + color: $brand-grey-light; +} + .entityName { - font-size: $font-size-h3; + font-size: $font-size-h2; border-bottom: 1px solid $brand-grey-lighter; padding-bottom: $spacer / 2; margin-top: $spacer * 2; @@ -47,6 +53,10 @@ vertical-align: middle; } +.propertyName { + font-size: $font-size-large; +} + .propertyType, .propertyModifier { font-size: $font-size-small; @@ -76,14 +86,17 @@ } .propertyDescription { - opacity: .6; padding: $spacer / 6 0 $spacer / 3; } .sourceLink { position: absolute; - top: $spacer / 2; + bottom: $spacer / 2; right: $spacer / 2; + font-size: $font-size-mini; + font-family: $font-family-button; + text-transform: uppercase; + color: $brand-grey-light; } .deprecation { @@ -91,22 +104,11 @@ color: mix($brand-black, $brand-pink, 50%); } -.detailsLine { - .type { - margin-left: $spacer / 4; - } -} - .type { display: inline-block; - font-weight: $font-weight-base; + color: $brand-grey; + font-family: $font-family-monospace; font-size: $font-size-small; - font-family: $font-family-title; - - &, - a { - color: $brand-grey-light; - } a { &:hover { @@ -121,10 +123,13 @@ .subHeading { font-size: $font-size-h5; + border-bottom: 1px solid $brand-grey-lighter; + padding-bottom: $spacer / 3; + margin-bottom: $spacer / 3; } .parameters { - margin-top: $spacer / 3; + margin-top: $spacer / 1.5; h5, p { @@ -135,16 +140,16 @@ font-size: $font-size-small; margin-bottom: $spacer / 4; margin-right: $spacer / 4; + margin-left: -(.2rem); display: inline-block; } code { - // stylelint-disable-next-line - background: rgba($brand-black, .08) !important; + padding: .2rem; } } -.parameterOptinal { +.parameterOptional { font-size: $font-size-small; vertical-align: top; color: $brand-purple; From 7913e6a065bbbf493523ce4e5d147e95361d3030 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 21 Jan 2019 16:39:16 +0100 Subject: [PATCH 03/36] typedoc styling updates, fix some props warnings --- content/references/squid-py.md | 3 +-- src/templates/Doc.jsx | 4 ++-- src/templates/Typedoc.jsx | 26 +++++++++++---------- src/templates/Typedoc.module.scss | 39 ++++++++++++++++++------------- 4 files changed, 40 insertions(+), 32 deletions(-) diff --git a/content/references/squid-py.md b/content/references/squid-py.md index 1af4f744..ca6c773b 100644 --- a/content/references/squid-py.md +++ b/content/references/squid-py.md @@ -1,6 +1,5 @@ --- -title: API Reference -description: +title: Squid-py API Reference --- ReadTheDocs hosts the [squid-py API Reference Docs](https://squid-py.readthedocs.io/en/latest/). diff --git a/src/templates/Doc.jsx b/src/templates/Doc.jsx index 37bfbd68..e8762621 100644 --- a/src/templates/Doc.jsx +++ b/src/templates/Doc.jsx @@ -26,8 +26,8 @@ const DocMain = ({ title, description, tableOfContents, post, single }) => ( DocMain.propTypes = { title: PropTypes.string.isRequired, - description: PropTypes.string.isRequired, - tableOfContents: PropTypes.string, + description: PropTypes.string, + tableOfContents: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), post: PropTypes.object.isRequired, single: PropTypes.bool } diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc.jsx index 201d9922..4b485b46 100644 --- a/src/templates/Typedoc.jsx +++ b/src/templates/Typedoc.jsx @@ -170,6 +170,8 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { data-private={!isPublic} data-deprecated={!!deprecation} > +

    {name}

    +
    { {kindString}
    -

    {name}

    - {isStatic &&
    static
    } {!isPublic && (
    @@ -197,22 +197,24 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { )} - {!!deprecation && ( -
    - Deprecated: use{' '} - - {deprecatedUse} - {' '} - instead -
    - )} - {comment && (
    {comment.text || comment.shortText}
    )} + {deprecation && ( +
    + Deprecated: use{' '} + + + {deprecatedUse} + + {' '} + instead +
    + )} + {(() => { switch (kindString) { case 'Method': diff --git a/src/templates/Typedoc.module.scss b/src/templates/Typedoc.module.scss index a61c1d9e..72cedb22 100644 --- a/src/templates/Typedoc.module.scss +++ b/src/templates/Typedoc.module.scss @@ -31,12 +31,14 @@ border-radius: $border-radius; position: relative; - &[data-private='true'] { - background: rgba($brand-black, .06); - } - &[data-deprecated='true'] { - background: rgba($brand-pink, .06); + > *:not(.deprecation) { + opacity: .4; + } + + .sourceLink { + display: none; + } } } @@ -48,45 +50,44 @@ margin-bottom: $spacer / 4; margin-top: 0; display: inline-block; - padding: $spacer / 8 $spacer / 3; + padding: 0 $spacer / 4; border-radius: $border-radius; vertical-align: middle; } .propertyName { font-size: $font-size-large; + padding: 0; + margin-right: $spacer / 3; } .propertyType, .propertyModifier { font-size: $font-size-small; - line-height: 1.4em; - padding: $spacer / 16 $spacer / 6; + color: $brand-grey; + margin-right: $spacer / 4; } .propertyType { &[data-type='method'] { - background: rgba($green, .4); + background: rgba($green, .3); } &[data-type='property'] { - background: rgba($brand-pink, .4); + background: rgba($yellow, .3); } } .propertyModifier { background: rgba($red, .2); - padding: 0 $spacer / 6; - margin-right: $spacer / 3; &[data-secondary] { - background: rgba($brand-blue, .5); - color: $brand-white; + background: rgba($brand-blue, .2); } } .propertyDescription { - padding: $spacer / 6 0 $spacer / 3; + margin-bottom: $spacer; } .sourceLink { @@ -101,7 +102,13 @@ .deprecation { font-size: $font-size-small; - color: mix($brand-black, $brand-pink, 50%); + padding: $spacer / 3; + border: 1px solid $red; + border-radius: $border-radius; + + strong { + color: $red; + } } .type { From 6bf055fea78e9325369106e5582ec6faffb9b858 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 21 Jan 2019 17:35:17 +0100 Subject: [PATCH 04/36] prototype typedoc generation from squid.js submodule --- .gitmodules | 3 +++ external/squid-js | 1 + package.json | 5 +++-- scripts/typedoc.sh | 7 +++++++ 4 files changed, 14 insertions(+), 2 deletions(-) create mode 160000 external/squid-js create mode 100755 scripts/typedoc.sh diff --git a/.gitmodules b/.gitmodules index e4e9225c..cf63a225 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,6 @@ path = external/dev-ocean url = https://github.com/oceanprotocol/dev-ocean branch = master +[submodule "external/squid-js"] + path = external/squid-js + url = https://github.com/oceanprotocol/squid-js.git diff --git a/external/squid-js b/external/squid-js new file mode 160000 index 00000000..69ed0428 --- /dev/null +++ b/external/squid-js @@ -0,0 +1 @@ +Subproject commit 69ed0428b175aaa7e821b4bee3c577fb6ba43f09 diff --git a/package.json b/package.json index c9ae8d3a..18eb23fc 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "gatsby-plugin-offline": "^2.0.19", "gatsby-plugin-react-helmet": "^3.0.4", "gatsby-plugin-sass": "^2.0.7", - "gatsby-plugin-sharp": "^2.0.15", + "gatsby-plugin-sharp": "^2.0.17", "gatsby-plugin-sitemap": "^2.0.3", "gatsby-plugin-svgr": "^2.0.1", "gatsby-remark-autolink-headers": "^2.0.12", @@ -77,7 +77,8 @@ "stylelint": "^9.9.0", "stylelint-config-bigchaindb": "^1.2.1", "stylelint-config-css-modules": "^1.3.0", - "stylelint-config-standard": "^18.2.0" + "stylelint-config-standard": "^18.2.0", + "typedoc": "^0.14.2" }, "repository": { "type": "git", diff --git a/scripts/typedoc.sh b/scripts/typedoc.sh new file mode 100755 index 00000000..8699a463 --- /dev/null +++ b/scripts/typedoc.sh @@ -0,0 +1,7 @@ + +./node_modules/typedoc/bin/typedoc \ + --json ./external/squid-js/squid-js.json ./external/squid-js/src/squid.ts \ + --excludePrivate \ + --excludeExternals \ + --excludeProtected \ + --target ES6 From 1f427aa3fe7ff2a3bd5d9c77d55ef14801a93dfc Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 10:44:58 +0100 Subject: [PATCH 05/36] more generic typedoc files inclusion --- gatsby-node.js | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index fc7b5f4c..135d380d 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -200,26 +200,38 @@ exports.createPages = ({ graphql, actions }) => { // // Create pages from TypeDoc json files // + const typeDocSpecs = ['./data/squid-js.json'] const typedocTemplate = path.resolve( './src/templates/Typedoc.jsx' ) - const squidJsSpecs = require('./data/squid-js.json') - const squidJsSlug = '/references/squid-js/' + typeDocSpecs.forEach(spec => { + const typedoc = require(spec) // eslint-disable-line - createPage({ - path: squidJsSlug, - component: typedocTemplate, - context: { - slug: squidJsSlug, - typedoc: squidJsSpecs, - classes: [ - 'ocean/Ocean', - 'ocean/Account', - 'ddo/DDO', - 'ddo/Service' - ] - } + const name = path + .basename(spec) + .split('.json') + .join('') + + const slug = `/references/${name}/` + + createPage({ + path: slug, + component: typedocTemplate, + context: { + slug, + typedoc, + // TODO: defining these classes for inclusion + // needs to be handled somewhere else to keep + // it generic for all TypeDoc specs + classes: [ + 'ocean/Ocean', + 'ocean/Account', + 'ddo/DDO', + 'ddo/Service' + ] + } + }) }) // From a86b5e435d3b7bf4d6fa327ae1f7f0585fffaa41 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 13:52:44 +0100 Subject: [PATCH 06/36] automate typedoc json generation for squid-js --- .gitignore | 1 + data/squid-js.json | 21927 ------------------------------------------- package.json | 7 +- scripts/typedoc.js | 62 + scripts/typedoc.sh | 7 - 5 files changed, 67 insertions(+), 21937 deletions(-) delete mode 100644 data/squid-js.json create mode 100644 scripts/typedoc.js delete mode 100755 scripts/typedoc.sh diff --git a/.gitignore b/.gitignore index adeedae8..4f88c408 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ yarn-error.log .DS_Store .env .env.* +data/squid-js.json diff --git a/data/squid-js.json b/data/squid-js.json deleted file mode 100644 index 0253b846..00000000 --- a/data/squid-js.json +++ /dev/null @@ -1,21927 +0,0 @@ -{ - "info": { - "description": "JavaScript client library for Ocean Protocol.", - "title": "Squid-js API reference", - "version": "0.2.7", - "sourceUrl": "https://github.com/oceanprotocol/squid-js/tree/develop/src/" - }, - "id": 0, - "name": "@oceanprotocol/squid", - "kind": 0, - "flags": {}, - "children": [ - { - "id": 13, - "name": "\"ConfigProvider\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ConfigProvider.ts", - "children": [ - { - "id": 14, - "name": "ConfigProvider", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Stores the configuration of the library." - }, - "children": [ - { - "id": 20, - "name": "config", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "comment": { - "shortText": "Library config.", - "tags": [ - { - "tag": "type", - "text": "{Config}\n" - } - ] - }, - "sources": [ - { - "fileName": "ConfigProvider.ts", - "line": 26, - "character": 25 - } - ], - "type": { - "type": "reference", - "name": "Config", - "id": 2 - } - }, - { - "id": 15, - "name": "getConfig", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 16, - "name": "getConfig", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "returns": "Library config.\n" - }, - "type": { - "type": "reference", - "name": "Config", - "id": 2 - } - } - ], - "sources": [ - { - "fileName": "ConfigProvider.ts", - "line": 11, - "character": 27 - } - ] - }, - { - "id": 17, - "name": "setConfig", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 18, - "name": "setConfig", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": {}, - "parameters": [ - { - "id": 19, - "name": "config", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Config", - "id": 2 - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "ConfigProvider.ts", - "line": 18, - "character": 27 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 20 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 15, - 17 - ] - } - ], - "sources": [ - { - "fileName": "ConfigProvider.ts", - "line": 6, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 14 - ] - } - ], - "sources": [ - { - "fileName": "ConfigProvider.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 225, - "name": "\"aquarius/Aquarius\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/Aquarius.ts", - "children": [ - { - "id": 226, - "name": "Aquarius", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides a interface with Aquarius.\nAquarius provides an off-chain database store for metadata about data assets." - }, - "children": [ - { - "id": 228, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 229, - "name": "new Aquarius", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 230, - "name": "config", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Config", - "id": 2 - } - } - ], - "type": { - "type": "reference", - "name": "Aquarius", - "id": 226 - } - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 16, - "character": 23 - } - ] - }, - { - "id": 227, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 16, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 231, - "name": "getAccessUrl", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 232, - "name": "getAccessUrl", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 233, - "name": "accessToken", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 234, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 22, - "character": 29 - } - ] - }, - { - "id": 247, - "name": "getServiceEndpoint", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 248, - "name": "getServiceEndpoint", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 249, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 159, - "character": 29 - } - ] - }, - { - "id": 235, - "name": "queryMetadata", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 236, - "name": "queryMetadata", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Search over the DDOs using a query.", - "returns": "\n" - }, - "parameters": [ - { - "id": 237, - "name": "query", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Query to filter the DDOs." - }, - "type": { - "type": "reference", - "name": "SearchQuery", - "id": 219 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 49, - "character": 30 - } - ] - }, - { - "id": 238, - "name": "queryMetadataByText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 239, - "name": "queryMetadataByText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Search over the DDOs using a query.", - "returns": "\n" - }, - "parameters": [ - { - "id": 240, - "name": "query", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Query to filter the DDOs." - }, - "type": { - "type": "reference", - "name": "SearchQuery", - "id": 219 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 77, - "character": 36 - } - ] - }, - { - "id": 244, - "name": "retrieveDDO", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 245, - "name": "retrieveDDO", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Retrieves a DDO by DID.", - "returns": "DDO of the asset.\n" - }, - "parameters": [ - { - "id": 246, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "DID of the asset." - }, - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "DDO", - "id": 123 - } - ] - } - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 137, - "character": 28 - } - ] - }, - { - "id": 241, - "name": "storeDDO", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 242, - "name": "storeDDO", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Stores a DDO in Aquarius.", - "returns": "Final DDO.\n" - }, - "parameters": [ - { - "id": 243, - "name": "ddo", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "DDO to be stored." - }, - "type": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "DDO", - "id": 123 - } - ] - } - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 110, - "character": 25 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 228 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 227 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 231, - 247, - 235, - 238, - 244, - 241 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 15, - "character": 29 - } - ] - }, - { - "id": 250, - "name": "apiPath", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 9, - "character": 13 - } - ], - "type": { - "type": "stringLiteral", - "value": "/api/v1/aquarius/assets/ddo" - }, - "defaultValue": "\"/api/v1/aquarius/assets/ddo\"" - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 226 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 250 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/Aquarius.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 251, - "name": "\"aquarius/AquariusProvider\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/AquariusProvider.ts", - "children": [ - { - "id": 252, - "name": "AquariusProvider", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides the Aquarius instance." - }, - "children": [ - { - "id": 258, - "name": "aquarius", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "comment": { - "shortText": "Aquarius instance.", - "tags": [ - { - "tag": "type", - "text": "{Aquarius}\n" - } - ] - }, - "sources": [ - { - "fileName": "aquarius/AquariusProvider.ts", - "line": 32, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "Aquarius", - "id": 226 - }, - "defaultValue": " null" - }, - { - "id": 256, - "name": "getAquarius", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 257, - "name": "getAquarius", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns Acuarius instance. It creates a new one if it's not defined.", - "returns": "Aquarius instance.\n" - }, - "type": { - "type": "reference", - "name": "Aquarius", - "id": 226 - } - } - ], - "sources": [ - { - "fileName": "aquarius/AquariusProvider.ts", - "line": 21, - "character": 29 - } - ] - }, - { - "id": 253, - "name": "setAquarius", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 254, - "name": "setAquarius", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Set an Aquarius instance." - }, - "parameters": [ - { - "id": 255, - "name": "aquarius", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "New Aquarius instance.\n" - }, - "type": { - "type": "reference", - "name": "Aquarius", - "id": 226 - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "aquarius/AquariusProvider.ts", - "line": 13, - "character": 29 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 258 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 256, - 253 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/AquariusProvider.ts", - "line": 7, - "character": 37 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 252 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/AquariusProvider.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 212, - "name": "\"aquarius/query/Query\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/query/Query.ts", - "children": [ - { - "id": 213, - "name": "Query", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 214, - "name": "value", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/query/Query.ts", - "line": 2, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "1" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 214 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/query/Query.ts", - "line": 1, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 213 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/query/Query.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 218, - "name": "\"aquarius/query/SearchQuery\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/query/SearchQuery.ts", - "children": [ - { - "id": 219, - "name": "SearchQuery", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 220, - "name": "offset", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/query/SearchQuery.ts", - "line": 5, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "100" - }, - { - "id": 221, - "name": "page", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/query/SearchQuery.ts", - "line": 6, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0" - }, - { - "id": 222, - "name": "query", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/query/SearchQuery.ts", - "line": 7, - "character": 16 - } - ], - "type": { - "type": "reference", - "name": "Query", - "id": 213 - }, - "defaultValue": " {\n value: 1,\n } as Query" - }, - { - "id": 223, - "name": "sort", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/query/SearchQuery.ts", - "line": 10, - "character": 15 - } - ], - "type": { - "type": "reference", - "name": "Sort", - "id": 216 - }, - "defaultValue": " {\n value: 1,\n } as Sort" - }, - { - "id": 224, - "name": "text", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/query/SearchQuery.ts", - "line": 13, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"Office\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 220, - 221, - 222, - 223, - 224 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/query/SearchQuery.ts", - "line": 4, - "character": 32 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 219 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/query/SearchQuery.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 215, - "name": "\"aquarius/query/Sort\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/aquarius/query/Sort.ts", - "children": [ - { - "id": 216, - "name": "Sort", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 217, - "name": "value", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "aquarius/query/Sort.ts", - "line": 2, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "1" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 217 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/query/Sort.ts", - "line": 1, - "character": 25 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 216 - ] - } - ], - "sources": [ - { - "fileName": "aquarius/query/Sort.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 259, - "name": "\"brizo/Brizo\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/brizo/Brizo.ts", - "children": [ - { - "id": 260, - "name": "Brizo", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides a interface with Brizo.\nBrizo is the technical component executed by the Publishers allowing to them to provide extended data services." - }, - "children": [ - { - "id": 262, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 263, - "name": "new Brizo", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 264, - "name": "config", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Config", - "id": 2 - } - } - ], - "type": { - "type": "reference", - "name": "Brizo", - "id": 260 - } - } - ], - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 11, - "character": 23 - } - ] - }, - { - "id": 261, - "name": "url", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 11, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 269, - "name": "getComputeEndpoint", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 270, - "name": "getComputeEndpoint", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 271, - "name": "pubKey", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 272, - "name": "serviceId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 273, - "name": "algo", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 274, - "name": "container", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 25, - "character": 29 - } - ] - }, - { - "id": 267, - "name": "getConsumeEndpoint", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 268, - "name": "getConsumeEndpoint", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 21, - "character": 29 - } - ] - }, - { - "id": 265, - "name": "getPurchaseEndpoint", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 266, - "name": "getPurchaseEndpoint", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 17, - "character": 30 - } - ] - }, - { - "id": 275, - "name": "initializeServiceAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 276, - "name": "initializeServiceAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 277, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 278, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 279, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 280, - "name": "signature", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 281, - "name": "consumerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 30, - "character": 43 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 262 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 261 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 269, - 267, - 265, - 275 - ] - } - ], - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 10, - "character": 26 - } - ] - }, - { - "id": 282, - "name": "apiPath", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 4, - "character": 13 - } - ], - "type": { - "type": "stringLiteral", - "value": "/api/v1/brizo/services" - }, - "defaultValue": "\"/api/v1/brizo/services\"" - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 260 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 282 - ] - } - ], - "sources": [ - { - "fileName": "brizo/Brizo.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 283, - "name": "\"brizo/BrizoProvider\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/brizo/BrizoProvider.ts", - "children": [ - { - "id": 284, - "name": "BrizoProvider", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides the Brizo instance." - }, - "children": [ - { - "id": 290, - "name": "brizo", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "comment": { - "shortText": "Brizo instance.", - "tags": [ - { - "tag": "type", - "text": "{Brizo}\n" - } - ] - }, - "sources": [ - { - "fileName": "brizo/BrizoProvider.ts", - "line": 32, - "character": 24 - } - ], - "type": { - "type": "reference", - "name": "Brizo", - "id": 260 - }, - "defaultValue": " null" - }, - { - "id": 288, - "name": "getBrizo", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 289, - "name": "getBrizo", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns Acuarius instance. It creates a new one if it's not defined.", - "returns": "brizo instance.\n" - }, - "type": { - "type": "reference", - "name": "Brizo", - "id": 260 - } - } - ], - "sources": [ - { - "fileName": "brizo/BrizoProvider.ts", - "line": 21, - "character": 26 - } - ] - }, - { - "id": 285, - "name": "setBrizo", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 286, - "name": "setBrizo", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Set an Brizo instance." - }, - "parameters": [ - { - "id": 287, - "name": "brizo", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "New Brizo instance.\n" - }, - "type": { - "type": "reference", - "name": "Brizo", - "id": 260 - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "brizo/BrizoProvider.ts", - "line": 13, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 290 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 288, - 285 - ] - } - ], - "sources": [ - { - "fileName": "brizo/BrizoProvider.ts", - "line": 7, - "character": 34 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 284 - ] - } - ], - "sources": [ - { - "fileName": "brizo/BrizoProvider.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 71, - "name": "\"ddo/AdditionalInformation\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/AdditionalInformation.ts", - "children": [ - { - "id": 72, - "name": "AdditionalInformation", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Additional Information of Assets Metadata.", - "tags": [ - { - "tag": "see", - "text": "https://github.com/oceanprotocol/OEPs/tree/master/8#additional-information\n" - } - ] - }, - "children": [ - { - "id": 75, - "name": "checksum", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Checksum of attributes to be able to compare if there are changes in\nthe asset that you are purchasing.", - "tags": [ - { - "tag": "type", - "text": "{string}\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/AdditionalInformation.ts", - "line": 38, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 74, - "name": "structuredMarkup", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "A link to machine-readable structured markup (such as ttl/json-ld/rdf)\ndescribing the dataset.", - "tags": [ - { - "tag": "type", - "text": "{StructuredMarkup[]}\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/AdditionalInformation.ts", - "line": 22, - "character": 27 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "StructuredMarkup", - "id": 68 - } - }, - "defaultValue": " [\n {\n uri: \"http://skos.um.es/unescothes/C01194/jsonld\",\n mediaType: \"application/ld+json\",\n } as StructuredMarkup,\n {\n uri: \"http://skos.um.es/unescothes/C01194/turtle\",\n mediaType: \"text/turtle\",\n } as StructuredMarkup,\n ]" - }, - { - "id": 73, - "name": "updateFrecuency", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "An indication of update latency - i.e. How often are updates expected (seldom,\nannually, quarterly, etc.), or is the resource static that is never expected\nto get updated.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"yearly\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/AdditionalInformation.ts", - "line": 15, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"yearly\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 75, - 74, - 73 - ] - } - ], - "sources": [ - { - "fileName": "ddo/AdditionalInformation.ts", - "line": 7, - "character": 42 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 72 - ] - } - ], - "sources": [ - { - "fileName": "ddo/AdditionalInformation.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 21, - "name": "\"ddo/Authentication\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Authentication.ts", - "children": [ - { - "id": 22, - "name": "Authentication", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 24, - "name": "publicKey", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Authentication.ts", - "line": 3, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"did:op:123456789abcdefghi#keys-1\"" - }, - { - "id": 23, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Authentication.ts", - "line": 2, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"RsaSignatureAuthentication2018\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 24, - 23 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Authentication.ts", - "line": 1, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 22 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Authentication.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 51, - "name": "\"ddo/Condition\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Condition.ts", - "children": [ - { - "id": 52, - "name": "Condition", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 57, - "name": "conditionKey", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 10, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0x12122434\"" - }, - { - "id": 54, - "name": "contractName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 7, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"AccessCondition\"" - }, - { - "id": 60, - "name": "dependencies", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 13, - "character": 23 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Dependency", - "id": 33 - } - }, - "defaultValue": " []" - }, - { - "id": 59, - "name": "events", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 12, - "character": 17 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - }, - { - "id": 55, - "name": "functionName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 8, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"lockPayment\"" - }, - { - "id": 61, - "name": "isTerminalCondition", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 14, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false" - }, - { - "id": 53, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 6, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 58, - "name": "parameters", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 11, - "character": 21 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Parameter", - "id": 47 - } - } - }, - { - "id": 56, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 9, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 57, - 54, - 60, - 59, - 55, - 61, - 53, - 58, - 56 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 5, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 52 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Condition.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 62, - "name": "\"ddo/Contract\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Contract.ts", - "children": [ - { - "id": 63, - "name": "Contract", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 64, - "name": "contractName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Contract.ts", - "line": 4, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 66, - "name": "events", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Contract.ts", - "line": 6, - "character": 17 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - }, - { - "id": 65, - "name": "fulfillmentOperator", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Contract.ts", - "line": 5, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 64, - 66, - 65 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Contract.ts", - "line": 3, - "character": 29 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 63 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Contract.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 76, - "name": "\"ddo/Curation\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Curation.ts", - "children": [ - { - "id": 77, - "name": "Curation", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Curation attributes of Assets Metadata.", - "tags": [ - { - "tag": "see", - "text": "https://github.com/oceanprotocol/OEPs/tree/master/8#curation-attributes\n" - } - ] - }, - "children": [ - { - "id": 79, - "name": "numVotes", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Number of votes. 0 is the default value.", - "tags": [ - { - "tag": "type", - "text": "{number}" - }, - { - "tag": "example", - "text": "123\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/Curation.ts", - "line": 18, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "123" - }, - { - "id": 78, - "name": "rating", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Decimal value between 0 and 1. 0 is the default value.", - "tags": [ - { - "tag": "type", - "text": "{number}" - }, - { - "tag": "example", - "text": "0.93\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/Curation.ts", - "line": 11, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0.93" - }, - { - "id": 80, - "name": "schema", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Schema applied to calculate the rating.", - "tags": [ - { - "tag": "type", - "text": "{number}" - }, - { - "tag": "example", - "text": "\"Binary Votting\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/Curation.ts", - "line": 25, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"Binary Votting\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 79, - 78, - 80 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Curation.ts", - "line": 5, - "character": 29 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 77 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Curation.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 122, - "name": "\"ddo/DDO\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/DDO.ts", - "children": [ - { - "id": 123, - "name": "DDO", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "DID Descriptor Object.\nContains all the data related to an asset." - }, - "children": [ - { - "id": 135, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 136, - "name": "new DDO", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 137, - "name": "ddo", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reflection", - "declaration": { - "id": 138, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "children": [ - { - "id": 141, - "name": "authentication", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 44, - "character": 22 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Authentication", - "id": 22 - } - } - }, - { - "id": 139, - "name": "id", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 42, - "character": 10 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 140, - "name": "publicKey", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 43, - "character": 17 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "PublicKey", - "id": 26 - } - } - }, - { - "id": 142, - "name": "service", - "kind": 32, - "kindString": "Variable", - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 45, - "character": 15 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Service", - "id": 112 - } - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 141, - 139, - 140, - 142 - ] - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 41, - "character": 28 - } - ] - } - } - } - ], - "type": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 39, - "character": 29 - } - ] - }, - { - "id": 130, - "name": "@context", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 31, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"https://w3id.org/future-method/v1\"" - }, - { - "id": 133, - "name": "authentication", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 38, - "character": 25 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Authentication", - "id": 22 - } - } - }, - { - "id": 131, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "DID, descentralized ID.", - "tags": [ - { - "tag": "type", - "text": "{string}\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 36, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 132, - "name": "publicKey", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 37, - "character": 20 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "PublicKey", - "id": 26 - } - } - }, - { - "id": 134, - "name": "service", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 39, - "character": 18 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Service", - "id": 112 - } - } - }, - { - "id": 143, - "name": "findServiceById", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 144, - "name": "findServiceById", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Finds a service of a DDO by ID.", - "returns": "Service.\n" - }, - "parameters": [ - { - "id": 145, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Service", - "id": 112 - } - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 58, - "character": 26 - } - ] - }, - { - "id": 146, - "name": "findServiceByType", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 147, - "name": "findServiceByType", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Finds a service of a DDO by type.", - "returns": "Service.\n" - }, - "parameters": [ - { - "id": 148, - "name": "serviceType", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service type." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Service", - "id": 112 - } - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 73, - "character": 28 - } - ] - }, - { - "id": 127, - "name": "deserialize", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 128, - "name": "deserialize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Deserializes the DDO object.", - "returns": "DDO deserialized.\n" - }, - "parameters": [ - { - "id": 129, - "name": "ddoString", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 25, - "character": 29 - } - ] - }, - { - "id": 124, - "name": "serialize", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 125, - "name": "serialize", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Serializes the DDO object.", - "returns": "DDO serialized.\n" - }, - "parameters": [ - { - "id": 126, - "name": "ddo", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 16, - "character": 27 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 135 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 130, - 133, - 131, - 132, - 134 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 143, - 146, - 127, - 124 - ] - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 9, - "character": 24 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 123 - ] - } - ], - "sources": [ - { - "fileName": "ddo/DDO.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 32, - "name": "\"ddo/Dependency\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Dependency.ts", - "children": [ - { - "id": 33, - "name": "Dependency", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 34, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Dependency.ts", - "line": 2, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"lockPayment\"" - }, - { - "id": 35, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Dependency.ts", - "line": 3, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 34, - 35 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Dependency.ts", - "line": 1, - "character": 31 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 33 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Dependency.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 41, - "name": "\"ddo/Event\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Event.ts", - "children": [ - { - "id": 42, - "name": "Event", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 44, - "name": "actorType", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Event.ts", - "line": 5, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 45, - "name": "handler", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Event.ts", - "line": 6, - "character": 18 - } - ], - "type": { - "type": "reference", - "name": "EventHandler", - "id": 37 - } - }, - { - "id": 43, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Event.ts", - "line": 4, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 44, - 45, - 43 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Event.ts", - "line": 3, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 42 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Event.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 36, - "name": "\"ddo/EventHandler\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/EventHandler.ts", - "children": [ - { - "id": 37, - "name": "EventHandler", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 39, - "name": "functionName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/EventHandler.ts", - "line": 3, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"fulfillAgreement\"" - }, - { - "id": 38, - "name": "moduleName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/EventHandler.ts", - "line": 2, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"serviceAgreement\"" - }, - { - "id": 40, - "name": "version", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/EventHandler.ts", - "line": 4, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0.1\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 39, - 38, - 40 - ] - } - ], - "sources": [ - { - "fileName": "ddo/EventHandler.ts", - "line": 1, - "character": 33 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 37 - ] - } - ], - "sources": [ - { - "fileName": "ddo/EventHandler.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 100, - "name": "\"ddo/MetaData\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/MetaData.ts", - "children": [ - { - "id": 101, - "name": "MetaData", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 105, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 106, - "name": "new MetaData", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 107, - "name": "metaData", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "name": "MetaData", - "id": 101 - } - } - ], - "type": { - "type": "reference", - "name": "MetaData", - "id": 101 - } - } - ], - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 58, - "character": 29 - } - ] - }, - { - "id": 102, - "name": "additionalInformation", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 56, - "character": 32 - } - ], - "type": { - "type": "reference", - "name": "AdditionalInformation", - "id": 72 - } - }, - { - "id": 103, - "name": "base", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 57, - "character": 15 - } - ], - "type": { - "type": "reference", - "name": "MetaDataBase", - "id": 82 - } - }, - { - "id": 104, - "name": "curation", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 58, - "character": 19 - } - ], - "type": { - "type": "reference", - "name": "Curation", - "id": 77 - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 105 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 102, - 103, - 104 - ] - } - ], - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 54, - "character": 29 - } - ] - }, - { - "id": 110, - "name": "additionalInformation", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 40, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "AdditionalInformation", - "id": 72 - }, - "defaultValue": " {\n updateFrecuency: \"yearly\",\n structuredMarkup: [\n {\n uri: \"http://skos.um.es/unescothes/C01194/jsonld\",\n mediaType: \"application/ld+json\",\n } as StructuredMarkup,\n {\n uri: \"http://skos.um.es/unescothes/C01194/turtle\",\n mediaType: \"text/turtle\",\n } as StructuredMarkup,\n ],\n} as AdditionalInformation" - }, - { - "id": 108, - "name": "base", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 6, - "character": 10 - } - ], - "type": { - "type": "reference", - "name": "MetaDataBase", - "id": 82 - }, - "defaultValue": " {\n name: \"UK Weather information 2011\",\n type: \"dataset\",\n description: \"Weather information of UK including temperature and humidity\",\n size: \"3.1gb\",\n dateCreated: \"2012-02-01T10:55:11+00:00\",\n author: \"Met Office\",\n license: \"CC-BY\",\n copyrightHolder: \"Met Office\",\n encoding: \"UTF-8\",\n compression: \"zip\",\n contentType: \"text/csv\",\n // tslint:disable-next-line\n workExample: \"stationId,latitude,longitude,datetime,temperature,humidity423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68\",\n contentUrls: [\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n ],\n links: [\n {sample1: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/\"},\n {sample2: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/\"},\n {fieldsDescription: \"http://data.ceda.ac.uk/badc/ukcp09/\"},\n ],\n inLanguage: \"en\",\n tags: \"weather, uk, 2011, temperature, humidity\",\n price: 10,\n} as MetaDataBase" - }, - { - "id": 109, - "name": "curation", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 34, - "character": 14 - } - ], - "type": { - "type": "reference", - "name": "Curation", - "id": 77 - }, - "defaultValue": " {\n rating: 0.93,\n numVotes: 123,\n schema: \"Binary Votting\",\n} as Curation" - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 101 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 110, - 108, - 109 - ] - } - ], - "sources": [ - { - "fileName": "ddo/MetaData.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 81, - "name": "\"ddo/MetaDataBase\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/MetaDataBase.ts", - "children": [ - { - "id": 82, - "name": "MetaDataBase", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Base attributes of Assets Metadata.", - "tags": [ - { - "tag": "see", - "text": "https://github.com/oceanprotocol/OEPs/tree/master/8#base-attributes\n" - } - ] - }, - "children": [ - { - "id": 88, - "name": "author", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Name of the entity generating this data (e.g. Tfl, Disney Corp, etc.).", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"Met Office\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 49, - "character": 17 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"Met Office\"" - }, - { - "id": 92, - "name": "compression", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "File compression (e.g. no, gzip, bzip2, etc).", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"zip\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 78, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"zip\"" - }, - { - "id": 93, - "name": "contentType", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "File format, if applicable.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"text/csv\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 85, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"text/csv\"" - }, - { - "id": 95, - "name": "contentUrls", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "List of content URLs resolving the Asset files.", - "tags": [ - { - "tag": "type", - "text": "{string | string[]}" - }, - { - "tag": "example", - "text": "\"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 100, - "character": 22 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - "defaultValue": " [\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n \"https://testocnfiles.blob.core.windows.net/testfiles/testzkp.zip\",\n ]" - }, - { - "id": 90, - "name": "copyrightHolder", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The party holding the legal copyright. Empty by default.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"Met Office\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 64, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"Met Office\"" - }, - { - "id": 86, - "name": "dateCreated", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "The date on which the asset was created or was added.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"2012-10-10T17:00:000Z\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 35, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"2012-10-10T17:00:000Z\"" - }, - { - "id": 85, - "name": "description", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Details of what the resource is. For a dataset, this attribute\nexplains what the data represents and what it can be used for.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"Weather information of UK including temperature and humidity\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 28, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"Weather information of UK including temperature and humidity\"" - }, - { - "id": 91, - "name": "encoding", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "File encoding.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"UTF-8\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 71, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"UTF-8\"" - }, - { - "id": 97, - "name": "inLanguage", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "The language of the content. Please use one of the language\ncodes from the {@link https://tools.ietf.org/html/bcp47 IETF BCP 47 standard}.", - "tags": [ - { - "tag": "type", - "text": "{String}" - }, - { - "tag": "example", - "text": "\"en\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 131, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"en\"" - }, - { - "id": 89, - "name": "license", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Short name referencing the license of the asset (e.g. Public Domain, CC-0, CC-BY, No License Specified, etc. ).\nIf it's not specified, the following value will be added: \"No License Specified\".", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"CC-BY\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 57, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"CC-BY\"" - }, - { - "id": 96, - "name": "links", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Mapping of links for data samples, or links to find out more information.\nLinks may be to either a URL or another Asset. We expect marketplaces to\nconverge on agreements of typical formats for linked data: The Ocean Protocol\nitself does not mandate any specific formats as these requirements are likely\nto be domain-specific.", - "tags": [ - { - "tag": "type", - "text": "{any[]}\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 113, - "character": 16 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "defaultValue": " [\n {\n sample1: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-daily/\",\n },\n {\n sample2: \"http://data.ceda.ac.uk/badc/ukcp09/data/gridded-land-obs/gridded-land-obs-averages-25km/\",\n },\n {\n fieldsDescription: \"http://data.ceda.ac.uk/badc/ukcp09/\",\n },\n ]" - }, - { - "id": 83, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Descriptive name of the Asset.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"UK Weather information 2011\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 12, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"UK Weather information 2011\"" - }, - { - "id": 99, - "name": "price", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Price of the asset.", - "tags": [ - { - "tag": "type", - "text": "{String}" - }, - { - "tag": "example", - "text": "10\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 146, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "10" - }, - { - "id": 87, - "name": "size", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Size of the asset (e.g. 18MB). In the absence of a unit (MB, kB etc.), kB will be assumed.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"3.1gb\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 42, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"3.1gb\"" - }, - { - "id": 98, - "name": "tags", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Keywords or tags used to describe this content. Multiple entries in a keyword\nlist are typically delimited by commas. Empty by default.", - "tags": [ - { - "tag": "type", - "text": "{String}" - }, - { - "tag": "example", - "text": "\"weather, uk, 2011, temperature, humidity\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 139, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"weather, uk, 2011, temperature, humidity\"" - }, - { - "id": 84, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Type of the Asset. Helps to filter by the type of asset,\ninitially (\"dataset\", \"algorithm\", \"container\", \"workflow\", \"other\").", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"dataset\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 20, - "character": 15 - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "stringLiteral", - "value": "dataset" - }, - { - "type": "stringLiteral", - "value": "algorithm" - }, - { - "type": "stringLiteral", - "value": "container" - }, - { - "type": "stringLiteral", - "value": "workflow" - }, - { - "type": "stringLiteral", - "value": "other" - } - ] - }, - "defaultValue": "\"dataset\"" - }, - { - "id": 94, - "name": "workExample", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "comment": { - "shortText": "Example of the concept of this asset. This example is part\nof the metadata, not an external link.", - "tags": [ - { - "tag": "type", - "text": "{string}" - }, - { - "tag": "example", - "text": "\"423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68\"\n" - } - ] - }, - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 93, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"423432fsd,51.509865,-0.118092,2011-01-01T10:55:11+00:00,7.2,68\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 88, - 92, - 93, - 95, - 90, - 86, - 85, - 91, - 97, - 89, - 96, - 83, - 99, - 87, - 98, - 84, - 94 - ] - } - ], - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 5, - "character": 33 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 82 - ] - } - ], - "sources": [ - { - "fileName": "ddo/MetaDataBase.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 46, - "name": "\"ddo/Parameter\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Parameter.ts", - "children": [ - { - "id": 47, - "name": "Parameter", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 48, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Parameter.ts", - "line": 2, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 49, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Parameter.ts", - "line": 3, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 50, - "name": "value", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Parameter.ts", - "line": 4, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 48, - 49, - 50 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Parameter.ts", - "line": 1, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 47 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Parameter.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 25, - "name": "\"ddo/PublicKey\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/PublicKey.ts", - "children": [ - { - "id": 26, - "name": "PublicKey", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 27, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/PublicKey.ts", - "line": 2, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"did:op:123456789abcdefghi#keys-1\"" - }, - { - "id": 29, - "name": "owner", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/PublicKey.ts", - "line": 4, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"did:op:123456789abcdefghi\"" - }, - { - "id": 31, - "name": "publicKeyBase58", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/PublicKey.ts", - "line": 6, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"H3C2AVvLMv6gmMNam3uVAjZpfkcJCwDwnZn6z3wXmqPV\"" - }, - { - "id": 30, - "name": "publicKeyPem", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/PublicKey.ts", - "line": 5, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"-----BEGIN PUBLIC KEY...END PUBLIC KEY-----\r\n\"" - }, - { - "id": 28, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/PublicKey.ts", - "line": 3, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"Ed25519VerificationKey2018\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 27, - 29, - 31, - 30, - 28 - ] - } - ], - "sources": [ - { - "fileName": "ddo/PublicKey.ts", - "line": 1, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 26 - ] - } - ], - "sources": [ - { - "fileName": "ddo/PublicKey.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 111, - "name": "\"ddo/Service\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/Service.ts", - "children": [ - { - "id": 112, - "name": "Service", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 121, - "name": "conditions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 14, - "character": 21 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Condition", - "id": 52 - } - }, - "defaultValue": " []" - }, - { - "id": 118, - "name": "description", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 11, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"My public social inbox\"" - }, - { - "id": 119, - "name": "metadata", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 12, - "character": 19 - } - ], - "type": { - "type": "reference", - "name": "MetaData", - "id": 101 - }, - "defaultValue": " {} as MetaData" - }, - { - "id": 117, - "name": "purchaseEndpoint", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 10, - "character": 27 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 120, - "name": "serviceAgreementContract", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 13, - "character": 35 - } - ], - "type": { - "type": "reference", - "name": "Contract", - "id": 63 - } - }, - { - "id": 114, - "name": "serviceDefinitionId", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 7, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 116, - "name": "serviceEndpoint", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 9, - "character": 26 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"https://openid.example.com/\"" - }, - { - "id": 115, - "name": "templateId", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 8, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 113, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 6, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"OpenIdConnectVersion1.0Service\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 121, - 118, - 119, - 117, - 120, - 114, - 116, - 115, - 113 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 5, - "character": 28 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 112 - ] - } - ], - "sources": [ - { - "fileName": "ddo/Service.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 67, - "name": "\"ddo/StructuredMarkup\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ddo/StructuredMarkup.ts", - "children": [ - { - "id": 68, - "name": "StructuredMarkup", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 70, - "name": "mediaType", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/StructuredMarkup.ts", - "line": 3, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"application/ld+json\"" - }, - { - "id": 69, - "name": "uri", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ddo/StructuredMarkup.ts", - "line": 2, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"http://skos.um.es/unescothes/C01194/jsonld\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 70, - 69 - ] - } - ], - "sources": [ - { - "fileName": "ddo/StructuredMarkup.ts", - "line": 1, - "character": 37 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 68 - ] - } - ], - "sources": [ - { - "fileName": "ddo/StructuredMarkup.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1059, - "name": "\"examples/BuyAsset\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/BuyAsset.ts", - "sources": [ - { - "fileName": "examples/BuyAsset.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1060, - "name": "\"examples/ExecuteAgreement\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/ExecuteAgreement.ts", - "sources": [ - { - "fileName": "examples/ExecuteAgreement.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1061, - "name": "\"examples/GetAccounts\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GetAccounts.ts", - "sources": [ - { - "fileName": "examples/GetAccounts.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1062, - "name": "\"examples/GetBalance\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GetBalance.ts", - "sources": [ - { - "fileName": "examples/GetBalance.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1063, - "name": "\"examples/GetHDWalletAccounts\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GetHDWalletAccounts.ts", - "sources": [ - { - "fileName": "examples/GetHDWalletAccounts.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1064, - "name": "\"examples/GrantAccess\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/GrantAccess.ts", - "sources": [ - { - "fileName": "examples/GrantAccess.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1065, - "name": "\"examples/InitializeAgreement\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/InitializeAgreement.ts", - "sources": [ - { - "fileName": "examples/InitializeAgreement.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1066, - "name": "\"examples/Listener\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/Listener.ts", - "children": [ - { - "id": 1067, - "name": "event", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "examples/Listener.ts", - "line": 10, - "character": 11 - } - ], - "type": { - "type": "reference", - "name": "Event", - "id": 792 - }, - "defaultValue": " EventListener.subscribe(\"OceanToken\", \"Transfer\", {})" - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 1067 - ] - } - ], - "sources": [ - { - "fileName": "examples/Listener.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1068, - "name": "\"examples/RegisterAsset\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/RegisterAsset.ts", - "sources": [ - { - "fileName": "examples/RegisterAsset.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1069, - "name": "\"examples/RegisterServiceAgreementTemplates\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/RegisterServiceAgreementTemplates.ts", - "sources": [ - { - "fileName": "examples/RegisterServiceAgreementTemplates.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1070, - "name": "\"examples/Search\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/Search.ts", - "sources": [ - { - "fileName": "examples/Search.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1071, - "name": "\"examples/SignAgreement\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/SignAgreement.ts", - "sources": [ - { - "fileName": "examples/SignAgreement.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1058, - "name": "\"examples/config\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/config.ts", - "sources": [ - { - "fileName": "examples/config.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1057, - "name": "\"examples/config/config\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true, - "isExternal": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/examples/config/config.json", - "sources": [ - { - "fileName": "examples/config/config.json", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 303, - "name": "\"keeper/ContractHandler\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/ContractHandler.ts", - "children": [ - { - "id": 304, - "name": "ContractHandler", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 315, - "name": "contracts", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/ContractHandler.ts", - "line": 27, - "character": 28 - } - ], - "type": { - "type": "reference", - "name": "Map", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "name": "Contract", - "id": 63 - } - ] - }, - "defaultValue": " new Map()" - }, - { - "id": 305, - "name": "get", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 306, - "name": "get", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 307, - "name": "what", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Contract", - "id": 63 - } - } - ], - "sources": [ - { - "fileName": "keeper/ContractHandler.ts", - "line": 9, - "character": 27 - } - ] - }, - { - "id": 312, - "name": "has", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 313, - "name": "has", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 314, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "keeper/ContractHandler.ts", - "line": 23, - "character": 24 - } - ] - }, - { - "id": 316, - "name": "load", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 317, - "name": "load", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 318, - "name": "what", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 319, - "name": "where", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Contract", - "id": 63 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/ContractHandler.ts", - "line": 29, - "character": 29 - } - ] - }, - { - "id": 308, - "name": "set", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 309, - "name": "set", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 310, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 311, - "name": "contractInstance", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Contract", - "id": 63 - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "keeper/ContractHandler.ts", - "line": 19, - "character": 24 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 315 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 305, - 312, - 316, - 308 - ] - } - ], - "sources": [ - { - "fileName": "keeper/ContractHandler.ts", - "line": 7, - "character": 36 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 304 - ] - } - ], - "sources": [ - { - "fileName": "keeper/ContractHandler.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 903, - "name": "\"keeper/ContractReflector\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/ContractReflector.ts", - "children": [ - { - "id": 904, - "name": "ContractReflector", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 905, - "name": "reflectContractMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 906, - "name": "reflectContractMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 907, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 908, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "MethodReflection", - "id": 587 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/ContractReflector.ts", - "line": 6, - "character": 45 - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 905 - ] - } - ], - "sources": [ - { - "fileName": "keeper/ContractReflector.ts", - "line": 4, - "character": 38 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 904 - ] - } - ], - "sources": [ - { - "fileName": "keeper/ContractReflector.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 791, - "name": "\"keeper/Event\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/Event.ts", - "children": [ - { - "id": 792, - "name": "Event", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 796, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 800, - "name": "new Event", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 801, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 802, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 803, - "name": "filter", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Event", - "id": 792 - } - } - ], - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 10, - "character": 34 - } - ] - }, - { - "id": 797, - "name": "contractName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 12, - "character": 36 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 798, - "name": "eventName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 13, - "character": 33 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 799, - "name": "filter", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 14, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 795, - "name": "interval", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 10, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "200" - }, - { - "id": 794, - "name": "lastBlock", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 9, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "0" - }, - { - "id": 793, - "name": "poller", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 8, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null" - }, - { - "id": 812, - "name": "handler", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 813, - "name": "handler", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 814, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 40, - "character": 25 - } - ] - }, - { - "id": 806, - "name": "listen", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 807, - "name": "listen", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 808, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 23, - "character": 23 - } - ] - }, - { - "id": 809, - "name": "listenOnce", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 810, - "name": "listenOnce", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 811, - "name": "callback", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 31, - "character": 21 - } - ] - }, - { - "id": 804, - "name": "stopListen", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 805, - "name": "stopListen", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 18, - "character": 21 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 796 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 797, - 798, - 799, - 795, - 794, - 793 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 812, - 806, - 809, - 804 - ] - } - ], - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 6, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 792 - ] - } - ], - "sources": [ - { - "fileName": "keeper/Event.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 778, - "name": "\"keeper/EventListener\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/EventListener.ts", - "children": [ - { - "id": 779, - "name": "EventListener", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 790, - "name": "events", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/EventListener.ts", - "line": 28, - "character": 25 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 792 - } - }, - "defaultValue": " []" - }, - { - "id": 788, - "name": "count", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 789, - "name": "count", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "keeper/EventListener.ts", - "line": 24, - "character": 23 - } - ] - }, - { - "id": 780, - "name": "subscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 781, - "name": "subscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 782, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 783, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 784, - "name": "filter", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Event", - "id": 792 - } - } - ], - "sources": [ - { - "fileName": "keeper/EventListener.ts", - "line": 5, - "character": 27 - } - ] - }, - { - "id": 785, - "name": "unsubscribe", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 786, - "name": "unsubscribe", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 787, - "name": "event", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "sources": [ - { - "fileName": "keeper/EventListener.ts", - "line": 15, - "character": 29 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 790 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 788, - 780, - 785 - ] - } - ], - "sources": [ - { - "fileName": "keeper/EventListener.ts", - "line": 3, - "character": 34 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 779 - ] - } - ], - "sources": [ - { - "fileName": "keeper/EventListener.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 693, - "name": "\"keeper/Keeper\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/Keeper.ts", - "children": [ - { - "id": 694, - "name": "Keeper", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Interface with Ocean Keeper contracts.\nOcean Keeper implementation where we put the following modules together:\n- TCRs: users create challenges and resolve them through voting to maintain registries.\n- Ocean Tokens: the intrinsic tokens circulated inside Ocean network, which is used in the voting of TCRs.\n- Marketplace: the core marketplace where people can transact with each other with Ocean tokens." - }, - "children": [ - { - "id": 702, - "name": "accessConditions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Access conditions smart contract instance.", - "tags": [ - { - "tag": "type", - "text": "{AccessConditions}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 74, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "AccessConditions", - "id": 403 - } - }, - { - "id": 700, - "name": "auth", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Ocean Auth smart contract instance.", - "tags": [ - { - "tag": "type", - "text": "{OceanAuth}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 62, - "character": 15 - } - ], - "type": { - "type": "reference", - "name": "OceanAuth", - "id": 356 - } - }, - { - "id": 704, - "name": "didRegistry", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "DID registry smart contract instance.", - "tags": [ - { - "tag": "type", - "text": "{DIDRegistry}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 86, - "character": 22 - } - ], - "type": { - "type": "reference", - "name": "DIDRegistry", - "id": 485 - } - }, - { - "id": 699, - "name": "market", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Ocean Market smart contract instance.", - "tags": [ - { - "tag": "type", - "text": "{OceanMarket}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 56, - "character": 17 - } - ], - "type": { - "type": "reference", - "name": "OceanMarket", - "id": 530 - } - }, - { - "id": 703, - "name": "paymentConditions", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Payment conditions smart contract instance.", - "tags": [ - { - "tag": "type", - "text": "{PaymentConditions}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 80, - "character": 28 - } - ], - "type": { - "type": "reference", - "name": "PaymentConditions", - "id": 441 - } - }, - { - "id": 701, - "name": "serviceAgreement", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Service agreement smart contract instance.", - "tags": [ - { - "tag": "type", - "text": "{ServiceAgreement}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 68, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "ServiceAgreement", - "id": 594 - } - }, - { - "id": 698, - "name": "token", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "comment": { - "shortText": "Ocean Token smart contract instance.", - "tags": [ - { - "tag": "type", - "text": "{OceanToken}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 50, - "character": 16 - } - ], - "type": { - "type": "reference", - "name": "OceanToken", - "id": 654 - } - }, - { - "id": 697, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "comment": { - "shortText": "Keeper instance.", - "tags": [ - { - "tag": "type", - "text": "{Keeper}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 44, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "Keeper", - "id": 694 - }, - "defaultValue": " null" - }, - { - "id": 705, - "name": "getNetworkName", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 706, - "name": "getNetworkName", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns the network by name.", - "returns": "Network name.\n" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 92, - "character": 31 - } - ] - }, - { - "id": 695, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 696, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns Keeper instance.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Keeper", - "id": 694 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 24, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 702, - 700, - 704, - 699, - 703, - 701, - 698, - 697 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 705, - 695 - ] - } - ], - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 18, - "character": 27 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 694 - ] - } - ], - "sources": [ - { - "fileName": "keeper/Keeper.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 298, - "name": "\"keeper/Web3Provider\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/Web3Provider.ts", - "children": [ - { - "id": 299, - "name": "Web3Provider", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 302, - "name": "web3", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "comment": { - "shortText": "Web3 instance.", - "tags": [ - { - "tag": "type", - "text": "{Web3}\n" - } - ] - }, - "sources": [ - { - "fileName": "keeper/Web3Provider.ts", - "line": 23, - "character": 23 - } - ], - "type": { - "type": "reference", - "name": "Web3" - }, - "defaultValue": " null" - }, - { - "id": 300, - "name": "getWeb3", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 301, - "name": "getWeb3", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns Web3 instance.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "Web3" - } - } - ], - "sources": [ - { - "fileName": "keeper/Web3Provider.ts", - "line": 10, - "character": 25 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 302 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 300 - ] - } - ], - "sources": [ - { - "fileName": "keeper/Web3Provider.ts", - "line": 4, - "character": 33 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 299 - ] - } - ], - "sources": [ - { - "fileName": "keeper/Web3Provider.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 355, - "name": "\"keeper/contracts/Auth\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/Auth.ts", - "children": [ - { - "id": 356, - "name": "OceanAuth", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 375, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 376, - "name": "new OceanAuth", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 377, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "OceanAuth", - "id": 356 - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 374, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 397, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 398, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 399, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 400, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 401, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 369, - "name": "deliverAccessToken", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 370, - "name": "deliverAccessToken", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 371, - "name": "orderId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 372, - "name": "accessToken", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 373, - "name": "publisherAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Auth.ts", - "line": 30, - "character": 35 - } - ] - }, - { - "id": 382, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 383, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 362, - "name": "getEncryptedAccessToken", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 363, - "name": "getEncryptedAccessToken", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 364, - "name": "orderId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 365, - "name": "consumerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Auth.ts", - "line": 22, - "character": 40 - } - ] - }, - { - "id": 378, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 379, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 380, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 381, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 387, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 388, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 389, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 359, - "name": "getOrderStatus", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 360, - "name": "getOrderStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 361, - "name": "orderId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "AccessStatus", - "id": 292 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Auth.ts", - "line": 13, - "character": 31 - } - ] - }, - { - "id": 384, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 385, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 386, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 366, - "name": "getTempPubKey", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 367, - "name": "getTempPubKey", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 368, - "name": "orderId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Auth.ts", - "line": 26, - "character": 30 - } - ] - }, - { - "id": 390, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 391, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 392, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 393, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 394, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 395, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 396, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 357, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 358, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "OceanAuth", - "id": 356 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Auth.ts", - "line": 7, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 375 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 374 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 397, - 369, - 382, - 362, - 378, - 387, - 359, - 384, - 366, - 390, - 392, - 357 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Auth.ts", - "line": 5, - "character": 30 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 356 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Auth.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 320, - "name": "\"keeper/contracts/ContractBase\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/ContractBase.ts", - "children": [ - { - "id": 321, - "name": "ContractBase", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isAbstract": true - }, - "children": [ - { - "id": 325, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 326, - "name": "new ContractBase", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 327, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ] - }, - { - "id": 323, - "name": "contract", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 11, - "character": 20 - } - ], - "type": { - "type": "reference", - "name": "Contract", - "id": 63 - }, - "defaultValue": " null" - }, - { - "id": 324, - "name": "contractName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 24 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 322, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null" - }, - { - "id": 347, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 348, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 349, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 350, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 351, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ] - }, - { - "id": 332, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 333, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ] - }, - { - "id": 328, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 329, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 330, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 331, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ] - }, - { - "id": 337, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 338, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 339, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ] - }, - { - "id": 334, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 335, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 336, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ] - }, - { - "id": 340, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 341, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ] - }, - { - "id": 352, - "name": "searchMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 353, - "name": "searchMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 354, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 86, - "character": 24 - } - ] - }, - { - "id": 342, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 343, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 344, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 345, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 346, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 325 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 323, - 324, - 322 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 347, - 332, - 328, - 337, - 334, - 340, - 352, - 342 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 7, - "character": 42 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "OceanAuth", - "id": 356 - }, - { - "type": "reference", - "name": "AccessConditions", - "id": 403 - }, - { - "type": "reference", - "name": "PaymentConditions", - "id": 441 - }, - { - "type": "reference", - "name": "DIDRegistry", - "id": 485 - }, - { - "type": "reference", - "name": "OceanMarket", - "id": 530 - }, - { - "type": "reference", - "name": "ServiceAgreement", - "id": 594 - }, - { - "type": "reference", - "name": "OceanToken", - "id": 654 - }, - { - "type": "reference", - "name": "GenericContract", - "id": 746 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 321 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 484, - "name": "\"keeper/contracts/DIDRegistry\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/DIDRegistry.ts", - "children": [ - { - "id": 485, - "name": "DIDRegistry", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 502, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 503, - "name": "new DIDRegistry", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 504, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "DIDRegistry", - "id": 485 - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 501, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 524, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 525, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 526, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 527, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 528, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 509, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 510, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 505, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 506, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 507, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 508, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 514, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 515, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 516, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 495, - "name": "getOwner", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 496, - "name": "getOwner", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 497, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/DIDRegistry.ts", - "line": 22, - "character": 25 - } - ] - }, - { - "id": 511, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 512, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 513, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 498, - "name": "getUpdateAt", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 499, - "name": "getUpdateAt", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 500, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/DIDRegistry.ts", - "line": 29, - "character": 28 - } - ] - }, - { - "id": 517, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 518, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 488, - "name": "registerAttribute", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 489, - "name": "registerAttribute", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 490, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 491, - "name": "type", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "ValueType", - "id": 479 - } - }, - { - "id": 492, - "name": "key", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 493, - "name": "value", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 494, - "name": "ownerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/DIDRegistry.ts", - "line": 14, - "character": 34 - } - ] - }, - { - "id": 519, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 520, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 521, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 522, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 523, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 486, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 487, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "DIDRegistry", - "id": 485 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/DIDRegistry.ts", - "line": 8, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 502 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 501 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 524, - 509, - 505, - 514, - 495, - 511, - 498, - 517, - 488, - 519, - 486 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/DIDRegistry.ts", - "line": 6, - "character": 32 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 485 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/DIDRegistry.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 745, - "name": "\"keeper/contracts/GenericContract\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/GenericContract.ts", - "children": [ - { - "id": 746, - "name": "GenericContract", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 750, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 751, - "name": "new GenericContract", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 752, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "GenericContract", - "id": 746 - }, - "overwrites": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/GenericContract.ts", - "line": 9, - "character": 5 - } - ], - "overwrites": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 753, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 773, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 774, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 775, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 776, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 777, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 758, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 759, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 754, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 755, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 756, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 757, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 763, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 764, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 765, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 760, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 761, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 762, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 766, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 767, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 768, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 769, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 770, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 771, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 772, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 747, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 748, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 749, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/GenericContract.ts", - "line": 5, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 750 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 753 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 773, - 758, - 754, - 763, - 760, - 766, - 768, - 747 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/GenericContract.ts", - "line": 3, - "character": 36 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 746 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/GenericContract.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 529, - "name": "\"keeper/contracts/Market\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/Market.ts", - "children": [ - { - "id": 530, - "name": "OceanMarket", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 555, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 556, - "name": "new OceanMarket", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 557, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "OceanMarket", - "id": 530 - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 554, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 577, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 578, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 579, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 580, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 581, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 546, - "name": "generateId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 547, - "name": "generateId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 548, - "name": "input", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 31, - "character": 27 - } - ] - }, - { - "id": 562, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 563, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 539, - "name": "getAssetPrice", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 540, - "name": "getAssetPrice", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 541, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 22, - "character": 30 - } - ] - }, - { - "id": 558, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 559, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 560, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 561, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 567, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 568, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 569, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 564, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 565, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 566, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 570, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 571, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 533, - "name": "isAssetActive", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 534, - "name": "isAssetActive", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 535, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 14, - "character": 30 - } - ] - }, - { - "id": 549, - "name": "register", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 550, - "name": "register", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 551, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 552, - "name": "price", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 553, - "name": "publisherAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 35, - "character": 25 - } - ] - }, - { - "id": 542, - "name": "requestTokens", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 543, - "name": "requestTokens", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 544, - "name": "amount", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 545, - "name": "receiverAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 27, - "character": 30 - } - ] - }, - { - "id": 572, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 573, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 574, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 575, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 576, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 536, - "name": "verifyOrderPayment", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 537, - "name": "verifyOrderPayment", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 538, - "name": "orderId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 18, - "character": 35 - } - ] - }, - { - "id": 531, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 532, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "OceanMarket", - "id": 530 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 7, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 555 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 554 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 577, - 546, - 562, - 539, - 558, - 567, - 564, - 570, - 533, - 549, - 542, - 572, - 536, - 531 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 5, - "character": 32 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 530 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Market.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 593, - "name": "\"keeper/contracts/ServiceAgreement\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/ServiceAgreement.ts", - "children": [ - { - "id": 594, - "name": "ServiceAgreement", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 626, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 627, - "name": "new ServiceAgreement", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 628, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "ServiceAgreement", - "id": 594 - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 625, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 648, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 649, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 650, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 651, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 652, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 615, - "name": "executeAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 616, - "name": "executeAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 617, - "name": "serviceAgreementTemplateId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 618, - "name": "serviceAgreementSignatureHash", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 619, - "name": "consumerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 620, - "name": "valueHashes", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 621, - "name": "timeoutValues", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 622, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 623, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - }, - { - "id": 624, - "name": "publisherAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 46, - "character": 33 - } - ] - }, - { - "id": 633, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 634, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 612, - "name": "getAgreementStatus", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 613, - "name": "getAgreementStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 614, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 41, - "character": 35 - } - ] - }, - { - "id": 629, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 630, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 631, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 632, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 638, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 639, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 640, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 635, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 636, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 637, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 609, - "name": "getTemplateOwner", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 610, - "name": "getTemplateOwner", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 611, - "name": "templateId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 36, - "character": 33 - } - ] - }, - { - "id": 606, - "name": "getTemplateStatus", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 607, - "name": "getTemplateStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 608, - "name": "templateId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 31, - "character": 34 - } - ] - }, - { - "id": 641, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 642, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 643, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 644, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 645, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 646, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 647, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 597, - "name": "setupAgreementTemplate", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 598, - "name": "setupAgreementTemplate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 599, - "name": "templateId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 600, - "name": "methodReflections", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "MethodReflection", - "id": 587 - } - } - }, - { - "id": 601, - "name": "dependencyMatrix", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 602, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 603, - "name": "fulfillmentIndices", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 604, - "name": "fulfillmentOperator", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 605, - "name": "ownerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 14, - "character": 39 - } - ] - }, - { - "id": 595, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 596, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "ServiceAgreement", - "id": 594 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 8, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 626 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 625 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 648, - 615, - 633, - 612, - 629, - 638, - 635, - 609, - 606, - 641, - 643, - 597, - 595 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 6, - "character": 37 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 594 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ServiceAgreement.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 653, - "name": "\"keeper/contracts/Token\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/Token.ts", - "children": [ - { - "id": 654, - "name": "OceanToken", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 666, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 667, - "name": "new OceanToken", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 668, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "OceanToken", - "id": 654 - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 665, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 657, - "name": "approve", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 658, - "name": "approve", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 659, - "name": "marketAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 660, - "name": "price", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 661, - "name": "buyerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Token.ts", - "line": 13, - "character": 24 - } - ] - }, - { - "id": 662, - "name": "balanceOf", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 663, - "name": "balanceOf", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 664, - "name": "address", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Token.ts", - "line": 17, - "character": 26 - } - ] - }, - { - "id": 688, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 689, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 690, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 691, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 692, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 673, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 674, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 669, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 670, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 671, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 672, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 678, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 679, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 680, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 675, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 676, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 677, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 681, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 682, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 683, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 684, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 685, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 686, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 687, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 655, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 656, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "OceanToken", - "id": 654 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Token.ts", - "line": 7, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 666 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 665 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 657, - 662, - 688, - 673, - 669, - 678, - 675, - 681, - 683, - 655 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Token.ts", - "line": 5, - "character": 31 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 654 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/Token.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 402, - "name": "\"keeper/contracts/conditions/AccessConditions\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/conditions/AccessConditions.ts", - "children": [ - { - "id": 403, - "name": "AccessConditions", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 413, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 414, - "name": "new AccessConditions", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 415, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "AccessConditions", - "id": 403 - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 412, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 435, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 436, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 437, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 438, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 439, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 420, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 421, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 416, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 417, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 418, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 419, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 425, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 426, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 427, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 422, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 423, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 424, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 406, - "name": "grantAccess", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 407, - "name": "grantAccess", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 408, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 409, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 410, - "name": "documentKeyId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 411, - "name": "publisherAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/AccessConditions.ts", - "line": 14, - "character": 28 - } - ] - }, - { - "id": 428, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 429, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 430, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 431, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 432, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 433, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 434, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 404, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 405, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "AccessConditions", - "id": 403 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/AccessConditions.ts", - "line": 6, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 413 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 412 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 435, - 420, - 416, - 425, - 422, - 406, - 428, - 430, - 404 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/AccessConditions.ts", - "line": 4, - "character": 37 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 403 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/AccessConditions.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 440, - "name": "\"keeper/contracts/conditions/PaymentConditions\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/keeper/contracts/conditions/PaymentConditions.ts", - "children": [ - { - "id": 441, - "name": "PaymentConditions", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 451, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 452, - "name": "new PaymentConditions", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 453, - "name": "contractName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "PaymentConditions", - "id": 441 - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 12, - "character": 32 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.__constructor", - "id": 325 - } - }, - { - "id": 450, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 9, - "character": 29 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - }, - "defaultValue": " null", - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.instance", - "id": 322 - } - }, - { - "id": 473, - "name": "call", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 474, - "name": "call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 475, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 476, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - }, - { - "id": 477, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 72, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.call", - "id": 347 - } - }, - { - "id": 458, - "name": "getAddress", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 459, - "name": "getAddress", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 25, - "character": 21 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getAddress", - "id": 332 - } - }, - { - "id": 454, - "name": "getEventData", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 455, - "name": "getEventData", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 456, - "name": "eventName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 457, - "name": "options", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 18, - "character": 29 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getEventData", - "id": 328 - } - }, - { - "id": 463, - "name": "getInputsOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 464, - "name": "getInputsOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 465, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 34, - "character": 28 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getInputsOfMethod", - "id": 337 - } - }, - { - "id": 460, - "name": "getSignatureOfMethod", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 461, - "name": "getSignatureOfMethod", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 462, - "name": "methodName", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 29, - "character": 31 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.getSignatureOfMethod", - "id": 334 - } - }, - { - "id": 466, - "name": "init", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 467, - "name": "init", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 39, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.init", - "id": 340 - } - }, - { - "id": 444, - "name": "lockPayment", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 445, - "name": "lockPayment", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 446, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 447, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 448, - "name": "price", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 449, - "name": "consumerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/PaymentConditions.ts", - "line": 12, - "character": 28 - } - ] - }, - { - "id": 468, - "name": "send", - "kind": 2048, - "kindString": "Method", - "flags": { - "isProtected": true, - "isExported": true - }, - "signatures": [ - { - "id": 469, - "name": "send", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 470, - "name": "name", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 471, - "name": "from", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 472, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Receipt" - } - ] - }, - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/ContractBase.ts", - "line": 43, - "character": 24 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "ContractBase.send", - "id": 342 - } - }, - { - "id": 442, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 443, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "PaymentConditions", - "id": 441 - } - ] - } - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/PaymentConditions.ts", - "line": 6, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 451 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 450 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 473, - 458, - 454, - 463, - 460, - 466, - 444, - 468, - 442 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/PaymentConditions.ts", - "line": 4, - "character": 38 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "ContractBase", - "id": 321 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 441 - ] - } - ], - "sources": [ - { - "fileName": "keeper/contracts/conditions/PaymentConditions.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 291, - "name": "\"models/AccessStatus\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/models/AccessStatus.ts", - "children": [ - { - "id": 292, - "name": "AccessStatus", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 294, - "name": "Committed", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/AccessStatus.ts", - "line": 3, - "character": 13 - } - ] - }, - { - "id": 295, - "name": "Delivered", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/AccessStatus.ts", - "line": 4, - "character": 13 - } - ] - }, - { - "id": 293, - "name": "Requested", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/AccessStatus.ts", - "line": 2, - "character": 13 - } - ] - }, - { - "id": 297, - "name": "Revoked", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/AccessStatus.ts", - "line": 6, - "character": 11 - } - ] - }, - { - "id": 296, - "name": "Verified", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/AccessStatus.ts", - "line": 5, - "character": 12 - } - ] - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 294, - 295, - 293, - 297, - 296 - ] - } - ], - "sources": [ - { - "fileName": "models/AccessStatus.ts", - "line": 1, - "character": 17 - } - ] - } - ], - "groups": [ - { - "title": "Enumerations", - "kind": 4, - "children": [ - 292 - ] - } - ], - "sources": [ - { - "fileName": "models/AccessStatus.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 707, - "name": "\"models/Balance\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/models/Balance.ts", - "children": [ - { - "id": 708, - "name": "Balance", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 709, - "name": "eth", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Balance.ts", - "line": 2, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 710, - "name": "ocn", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Balance.ts", - "line": 3, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 709, - 710 - ] - } - ], - "sources": [ - { - "fileName": "models/Balance.ts", - "line": 1, - "character": 28 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 708 - ] - } - ], - "sources": [ - { - "fileName": "models/Balance.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1, - "name": "\"models/Config\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/models/Config.ts", - "children": [ - { - "id": 2, - "name": "Config", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 10, - "name": "address", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 24, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 3, - "name": "aquariusUri", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 4, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 4, - "name": "brizoUri", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 8, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 5, - "name": "nodeUri", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 12, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 8, - "name": "parityUri", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 20, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 9, - "name": "password", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 22, - "character": 19 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 7, - "name": "secretStoreUri", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 18, - "character": 25 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 11, - "name": "threshold", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 26, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 12, - "name": "verbose", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 29, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false" - }, - { - "id": 6, - "name": "web3Provider", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "models/Config.ts", - "line": 14, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 10, - 3, - 4, - 5, - 8, - 9, - 7, - 11, - 12, - 6 - ] - } - ], - "sources": [ - { - "fileName": "models/Config.ts", - "line": 1, - "character": 27 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 2 - ] - } - ], - "sources": [ - { - "fileName": "models/Config.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 582, - "name": "\"models/InputType\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/models/InputType.ts", - "children": [ - { - "id": 583, - "name": "InputType", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 584, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/InputType.ts", - "line": 2, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 585, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/InputType.ts", - "line": 3, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 584, - 585 - ] - } - ], - "sources": [ - { - "fileName": "models/InputType.ts", - "line": 1, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 583 - ] - } - ], - "sources": [ - { - "fileName": "models/InputType.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 586, - "name": "\"models/MethodReflection\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/models/MethodReflection.ts", - "children": [ - { - "id": 587, - "name": "MethodReflection", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 590, - "name": "address", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/MethodReflection.ts", - "line": 6, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 588, - "name": "contractName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/MethodReflection.ts", - "line": 4, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 592, - "name": "inputs", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/MethodReflection.ts", - "line": 8, - "character": 17 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "InputType", - "id": 583 - } - } - }, - { - "id": 589, - "name": "methodName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/MethodReflection.ts", - "line": 5, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 591, - "name": "signature", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/MethodReflection.ts", - "line": 7, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 590, - 588, - 592, - 589, - 591 - ] - } - ], - "sources": [ - { - "fileName": "models/MethodReflection.ts", - "line": 3, - "character": 37 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 587 - ] - } - ], - "sources": [ - { - "fileName": "models/MethodReflection.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 823, - "name": "\"models/ValuePair\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/models/ValuePair.ts", - "children": [ - { - "id": 824, - "name": "ValuePair", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 825, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/ValuePair.ts", - "line": 2, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 826, - "name": "value", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "models/ValuePair.ts", - "line": 3, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 825, - 826 - ] - } - ], - "sources": [ - { - "fileName": "models/ValuePair.ts", - "line": 1, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 824 - ] - } - ], - "sources": [ - { - "fileName": "models/ValuePair.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 478, - "name": "\"models/ValueType\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/models/ValueType.ts", - "children": [ - { - "id": 479, - "name": "ValueType", - "kind": 4, - "kindString": "Enumeration", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 483, - "name": "DDO", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/ValueType.ts", - "line": 5, - "character": 7 - } - ] - }, - { - "id": 480, - "name": "DID", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/ValueType.ts", - "line": 2, - "character": 7 - } - ] - }, - { - "id": 481, - "name": "DIDRef", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/ValueType.ts", - "line": 3, - "character": 10 - } - ] - }, - { - "id": 482, - "name": "URL", - "kind": 16, - "kindString": "Enumeration member", - "flags": { - "isExported": true - }, - "sources": [ - { - "fileName": "models/ValueType.ts", - "line": 4, - "character": 7 - } - ] - } - ], - "groups": [ - { - "title": "Enumeration members", - "kind": 16, - "children": [ - 483, - 480, - 481, - 482 - ] - } - ], - "sources": [ - { - "fileName": "models/ValueType.ts", - "line": 1, - "character": 14 - } - ] - } - ], - "groups": [ - { - "title": "Enumerations", - "kind": 4, - "children": [ - 479 - ] - } - ], - "sources": [ - { - "fileName": "models/ValueType.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 722, - "name": "\"ocean/Account\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/Account.ts", - "children": [ - { - "id": 723, - "name": "Account", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Account information." - }, - "children": [ - { - "id": 737, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 738, - "name": "new Account", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 739, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "Account", - "id": 723 - }, - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.__constructor", - "id": 714 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 3, - "character": 25 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.__constructor", - "id": 714 - } - }, - { - "id": 724, - "name": "balance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 12, - "character": 19 - } - ], - "type": { - "type": "reference", - "name": "Balance", - "id": 708 - } - }, - { - "id": 736, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 3, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0x00\"", - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.id", - "id": 713 - } - }, - { - "id": 729, - "name": "getBalance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 730, - "name": "getBalance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Balances of Ether and Ocean Token.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Balance", - "id": 708 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 42, - "character": 27 - } - ] - }, - { - "id": 727, - "name": "getEtherBalance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 728, - "name": "getEtherBalance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Balance of Ether.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 26, - "character": 32 - } - ] - }, - { - "id": 740, - "name": "getId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 741, - "name": "getId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.getId", - "id": 717 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 11, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.getId", - "id": 717 - } - }, - { - "id": 725, - "name": "getOceanBalance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 726, - "name": "getOceanBalance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Balance of Ocean Token.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 18, - "character": 32 - } - ] - }, - { - "id": 734, - "name": "getPublicKey", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 735, - "name": "getPublicKey", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns the account public key.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 70, - "character": 29 - } - ] - }, - { - "id": 731, - "name": "requestTokens", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 732, - "name": "requestTokens", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Request Ocean Tokens.", - "returns": "\n" - }, - "parameters": [ - { - "id": 733, - "name": "amount", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Tokens to be requested." - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "number" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 59, - "character": 30 - } - ] - }, - { - "id": 742, - "name": "setId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 743, - "name": "setId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 744, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.setId", - "id": 719 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 15, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.setId", - "id": 719 - } - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 737 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 724, - 736 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 729, - 727, - 740, - 725, - 734, - 731, - 742 - ] - } - ], - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 11, - "character": 28 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "OceanBase", - "id": 712 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 723 - ] - } - ], - "sources": [ - { - "fileName": "ocean/Account.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 153, - "name": "\"ocean/DID\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/DID.ts", - "children": [ - { - "id": 154, - "name": "DID", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Decentralized ID." - }, - "children": [ - { - "id": 161, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 162, - "name": "new DID", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 163, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - } - ], - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 43, - "character": 22 - } - ] - }, - { - "id": 160, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "comment": { - "shortText": "ID.", - "tags": [ - { - "tag": "type", - "text": "{string}\n" - } - ] - }, - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 43, - "character": 14 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 164, - "name": "getDid", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 165, - "name": "getDid", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns the DID.", - "returns": "\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 53, - "character": 17 - } - ] - }, - { - "id": 166, - "name": "getId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 167, - "name": "getId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns the ID.", - "returns": "\n" - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 61, - "character": 16 - } - ] - }, - { - "id": 158, - "name": "generate", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 159, - "name": "generate", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns a new DID.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - } - ], - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 35, - "character": 26 - } - ] - }, - { - "id": 155, - "name": "parse", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 156, - "name": "parse", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Parses a DID from a string.", - "returns": "\n" - }, - "parameters": [ - { - "id": 157, - "name": "didString", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "DID in string." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - } - ], - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 15, - "character": 23 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 161 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 160 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 164, - 166, - 158, - 155 - ] - } - ], - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 8, - "character": 24 - } - ] - }, - { - "id": 168, - "name": "prefix", - "kind": 32, - "kindString": "Variable", - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 3, - "character": 12 - } - ], - "type": { - "type": "stringLiteral", - "value": "did:op:" - }, - "defaultValue": "\"did:op:\"" - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 154 - ] - }, - { - "title": "Variables", - "kind": 32, - "children": [ - 168 - ] - } - ], - "sources": [ - { - "fileName": "ocean/DID.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 149, - "name": "\"ocean/IdGenerator\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/IdGenerator.ts", - "children": [ - { - "id": 150, - "name": "IdGenerator", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 151, - "name": "generateId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 152, - "name": "generateId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ocean/IdGenerator.ts", - "line": 4, - "character": 28 - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 151 - ] - } - ], - "sources": [ - { - "fileName": "ocean/IdGenerator.ts", - "line": 3, - "character": 32 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 150 - ] - } - ], - "sources": [ - { - "fileName": "ocean/IdGenerator.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 991, - "name": "\"ocean/Ocean\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/Ocean.ts", - "children": [ - { - "id": 992, - "name": "Ocean", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Main interface for Ocean Protocol." - }, - "children": [ - { - "id": 998, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 999, - "name": "new Ocean", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Ocean", - "id": 992 - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 62, - "character": 26 - } - ] - }, - { - "id": 997, - "name": "keeper", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true - }, - "comment": { - "shortText": "Keeper instance.", - "tags": [ - { - "tag": "type", - "text": "{Keeper}\n" - } - ] - }, - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 62, - "character": 18 - } - ], - "type": { - "type": "reference", - "name": "Keeper", - "id": 694 - } - }, - { - "id": 996, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "comment": { - "shortText": "Ocean instance.", - "tags": [ - { - "tag": "type", - "text": "{Ocean}\n" - } - ] - }, - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 56, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "Ocean", - "id": 992 - }, - "defaultValue": " null" - }, - { - "id": 1033, - "name": "executeServiceAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 1034, - "name": "executeServiceAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Executes a service agreement.", - "returns": "\n" - }, - "parameters": [ - { - "id": 1035, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Decentralized ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1036, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service definition ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1037, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service agreement ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1038, - "name": "serviceAgreementSignature", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service agreement signature." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1039, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Consumer account." - }, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - }, - { - "id": 1040, - "name": "publisher", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Publisher account." - }, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "ServiceAgreement", - "id": 828 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 339, - "character": 40 - } - ] - }, - { - "id": 1000, - "name": "getAccounts", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 1001, - "name": "getAccounts", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns the list of accounts.", - "returns": "\n" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 71, - "character": 28 - } - ] - }, - { - "id": 1022, - "name": "initializeServiceAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 1023, - "name": "initializeServiceAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": { - "isPrivate": true - }, - "comment": { - "shortText": "Creates a new service agreement." - }, - "parameters": [ - { - "id": 1024, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Decentralized ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1025, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service definition ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1026, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service agreement ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1027, - "name": "serviceAgreementSignature", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service agreement signature." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1028, - "name": "cb", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Callback executen when the access is granted." - }, - "type": { - "type": "reflection", - "declaration": { - "id": 1029, - "name": "__type", - "kind": 65536, - "kindString": "Type literal", - "flags": {}, - "signatures": [ - { - "id": 1030, - "name": "__call", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 1031, - "name": "files", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 287, - "character": 11 - } - ] - } - } - }, - { - "id": 1032, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Consumer account.\n" - }, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 282, - "character": 43 - } - ] - }, - { - "id": 1017, - "name": "purchaseAssetService", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 1018, - "name": "purchaseAssetService", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Signs a service agreement by DID.", - "returns": "\n" - }, - "parameters": [ - { - "id": 1019, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Decentralized ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1020, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service definition ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1021, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Consumer account." - }, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 222, - "character": 37 - } - ] - }, - { - "id": 1008, - "name": "registerAsset", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 1009, - "name": "registerAsset", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Registers a new DDO.", - "returns": "\n" - }, - "parameters": [ - { - "id": 1010, - "name": "metadata", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "DDO metadata." - }, - "type": { - "type": "reference", - "name": "MetaData", - "id": 101 - } - }, - { - "id": 1011, - "name": "publisher", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Publicher account." - }, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "DDO", - "id": 123 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 106, - "character": 30 - } - ] - }, - { - "id": 1005, - "name": "resolveAssetDID", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 1006, - "name": "resolveAssetDID", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns a DDO by DID.", - "returns": "\n" - }, - "parameters": [ - { - "id": 1007, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Decentralized ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "DDO", - "id": 123 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 95, - "character": 32 - } - ] - }, - { - "id": 1002, - "name": "resolveDID", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "decorators": [ - { - "name": "deprecated", - "type": { - "type": "reference", - "name": "deprecated" - }, - "arguments": { - "alternative": "'resolveAssetDID'" - } - } - ], - "signatures": [ - { - "id": 1003, - "name": "resolveDID", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns a DDO by DID.", - "returns": "\n", - "tags": [ - { - "tag": "deprecated", - "text": "Replace by {@link #resolveAssetDID}" - } - ] - }, - "parameters": [ - { - "id": 1004, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Decentralized ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "DDO", - "id": 123 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 86, - "character": 27 - } - ] - }, - { - "id": 1041, - "name": "searchAssets", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 1042, - "name": "searchAssets", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Search over the assets using a query.", - "returns": "\n" - }, - "parameters": [ - { - "id": 1043, - "name": "query", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Query to filter the assets." - }, - "type": { - "type": "reference", - "name": "SearchQuery", - "id": 219 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 368, - "character": 29 - } - ] - }, - { - "id": 1044, - "name": "searchAssetsByText", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 1045, - "name": "searchAssetsByText", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Search over the assets using a keyword.", - "returns": "\n" - }, - "parameters": [ - { - "id": 1046, - "name": "text", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Text to filter the assets." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "DDO", - "id": 123 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 378, - "character": 35 - } - ] - }, - { - "id": 1012, - "name": "signServiceAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "decorators": [ - { - "name": "deprecated", - "type": { - "type": "reference", - "name": "deprecated" - }, - "arguments": { - "alternative": "'purchaseAssetService'" - } - } - ], - "signatures": [ - { - "id": 1013, - "name": "signServiceAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Signs a service agreement by DID.", - "returns": "\n\n", - "tags": [ - { - "tag": "deprecated", - "text": "Replace by {@link #purchaseAssetService}" - } - ] - }, - "parameters": [ - { - "id": 1014, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Decentralized ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1015, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Service definition ID." - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 1016, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Consumer account." - }, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 207, - "character": 37 - } - ] - }, - { - "id": 993, - "name": "getInstance", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 994, - "name": "getInstance", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "Returns the instance of Ocean.", - "returns": "\n" - }, - "parameters": [ - { - "id": 995, - "name": "config", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "comment": { - "text": "Ocean instance configuration." - }, - "type": { - "type": "reference", - "name": "Config", - "id": 2 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Ocean", - "id": 992 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 42, - "character": 35 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 998 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 997, - 996 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 1033, - 1000, - 1022, - 1017, - 1008, - 1005, - 1002, - 1041, - 1044, - 1012, - 993 - ] - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 35, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 992 - ] - } - ], - "sources": [ - { - "fileName": "ocean/Ocean.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 711, - "name": "\"ocean/OceanBase\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/OceanBase.ts", - "children": [ - { - "id": 712, - "name": "OceanBase", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isAbstract": true - }, - "children": [ - { - "id": 714, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 715, - "name": "new OceanBase", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 716, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "name": "OceanBase", - "id": 712 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 3, - "character": 25 - } - ] - }, - { - "id": 713, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 3, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0x00\"" - }, - { - "id": 717, - "name": "getId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 718, - "name": "getId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 11, - "character": 16 - } - ] - }, - { - "id": 719, - "name": "setId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 720, - "name": "setId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 721, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 15, - "character": 16 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 714 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 713 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 717, - 719 - ] - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 1, - "character": 39 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "Account", - "id": 723 - }, - { - "type": "reference", - "name": "ServiceAgreement", - "id": 828 - }, - { - "type": "reference", - "name": "ServiceAgreementTemplate", - "id": 951 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 712 - ] - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 913, - "name": "\"ocean/ServiceAgreements/Condition\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Condition.ts", - "children": [ - { - "id": 914, - "name": "Condition", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 916, - "name": "condtionKey", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 7, - "character": 22 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 917, - "name": "dependencies", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 8, - "character": 23 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 918, - "name": "dependencyTimeoutFlags", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 9, - "character": 33 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 921, - "name": "events", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 12, - "character": 17 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 42 - } - } - }, - { - "id": 919, - "name": "isTerminalCondition", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 10, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 915, - "name": "methodReflection", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 6, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "MethodReflection", - "id": 587 - } - }, - { - "id": 922, - "name": "parameters", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 13, - "character": 21 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Parameter", - "id": 910 - } - } - }, - { - "id": 920, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 11, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 916, - 917, - 918, - 921, - 919, - 915, - 922, - 920 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 5, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 914 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Condition.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 928, - "name": "\"ocean/ServiceAgreements/Event\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Event.ts", - "children": [ - { - "id": 929, - "name": "Event", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 931, - "name": "actorType", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Event.ts", - "line": 5, - "character": 20 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"publisher\"" - }, - { - "id": 932, - "name": "handler", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Event.ts", - "line": 6, - "character": 18 - } - ], - "type": { - "type": "reference", - "name": "EventHandler", - "id": 924 - } - }, - { - "id": 930, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Event.ts", - "line": 4, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"PaymentLocked\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 931, - 932, - 930 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Event.ts", - "line": 3, - "character": 26 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 929 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Event.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 923, - "name": "\"ocean/ServiceAgreements/EventHandler\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/EventHandler.ts", - "children": [ - { - "id": 924, - "name": "EventHandler", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 926, - "name": "functionName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/EventHandler.ts", - "line": 3, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"grantAccess\"" - }, - { - "id": 925, - "name": "moduleName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/EventHandler.ts", - "line": 2, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"accessControl\"" - }, - { - "id": 927, - "name": "version", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/EventHandler.ts", - "line": 4, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0.1\"" - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 926, - 925, - 927 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/EventHandler.ts", - "line": 1, - "character": 33 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 924 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/EventHandler.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 933, - "name": "\"ocean/ServiceAgreements/Method\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Method.ts", - "children": [ - { - "id": 934, - "name": "Method", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 936, - "name": "contractName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 6, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 941, - "name": "dependencies", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 11, - "character": 23 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 942, - "name": "dependencyTimeoutFlags", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 12, - "character": 33 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 940, - "name": "events", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 10, - "character": 17 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Event", - "id": 929 - } - } - }, - { - "id": 943, - "name": "isTerminalCondition", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 13, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - }, - { - "id": 937, - "name": "methodName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 7, - "character": 21 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 935, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 5, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 939, - "name": "parameters", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 9, - "character": 21 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Parameter", - "id": 910 - } - } - }, - { - "id": 938, - "name": "timeout", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 8, - "character": 18 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 936, - 941, - 942, - 940, - 943, - 937, - 935, - 939, - 938 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 4, - "character": 27 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 934 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Method.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 909, - "name": "\"ocean/ServiceAgreements/Parameter\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Parameter.ts", - "children": [ - { - "id": 910, - "name": "Parameter", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 911, - "name": "name", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Parameter.ts", - "line": 2, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 912, - "name": "type", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Parameter.ts", - "line": 3, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 911, - 912 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Parameter.ts", - "line": 1, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 910 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Parameter.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 827, - "name": "\"ocean/ServiceAgreements/ServiceAgreement\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/ServiceAgreement.ts", - "children": [ - { - "id": 828, - "name": "ServiceAgreement", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 882, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isExported": true - }, - "signatures": [ - { - "id": 883, - "name": "new ServiceAgreement", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 884, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "ServiceAgreement", - "id": 828 - }, - "overwrites": { - "type": "reference", - "name": "OceanBase.__constructor", - "id": 714 - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 214, - "character": 5 - } - ], - "overwrites": { - "type": "reference", - "name": "OceanBase.__constructor", - "id": 714 - } - }, - { - "id": 897, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 3, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0x00\"", - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.id", - "id": 713 - } - }, - { - "id": 898, - "name": "getId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 899, - "name": "getId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.getId", - "id": 717 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 11, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.getId", - "id": 717 - } - }, - { - "id": 895, - "name": "getStatus", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 896, - "name": "getStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 241, - "character": 26 - } - ] - }, - { - "id": 890, - "name": "grantAccess", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 891, - "name": "grantAccess", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 892, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 893, - "name": "documentId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 894, - "name": "publisher", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 232, - "character": 28 - } - ] - }, - { - "id": 885, - "name": "payAsset", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 886, - "name": "payAsset", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 887, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 888, - "name": "price", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 889, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 220, - "character": 25 - } - ] - }, - { - "id": 900, - "name": "setId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 901, - "name": "setId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 902, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.setId", - "id": 719 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 15, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.setId", - "id": 719 - } - }, - { - "id": 844, - "name": "createSAHashSignature", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 845, - "name": "createSAHashSignature", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 846, - "name": "service", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Service", - "id": 112 - } - }, - { - "id": 847, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 848, - "name": "valueHashes", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 849, - "name": "timeoutValues", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 850, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 64, - "character": 46 - } - ] - }, - { - "id": 862, - "name": "createValueHashes", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 863, - "name": "createValueHashes", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 864, - "name": "parameterValuePairs", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "array", - "elementType": { - "type": "reference", - "name": "ValuePair", - "id": 824 - } - } - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 145, - "character": 36 - } - ] - }, - { - "id": 851, - "name": "executeAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 852, - "name": "executeAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 853, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - }, - { - "id": 854, - "name": "ddo", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DDO", - "id": 123 - } - }, - { - "id": 855, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 856, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 857, - "name": "valueHashes", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 858, - "name": "timeoutValues", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 859, - "name": "serviceAgreementHashSignature", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 860, - "name": "consumerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 861, - "name": "publisher", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "ServiceAgreement", - "id": 828 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 101, - "character": 41 - } - ] - }, - { - "id": 835, - "name": "executeServiceAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 836, - "name": "executeServiceAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 837, - "name": "did", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DID", - "id": 154 - } - }, - { - "id": 838, - "name": "ddo", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DDO", - "id": 123 - } - }, - { - "id": 839, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 840, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 841, - "name": "serviceAgreementHashSignature", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 842, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - }, - { - "id": 843, - "name": "publisher", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "ServiceAgreement", - "id": 828 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 39, - "character": 47 - } - ] - }, - { - "id": 875, - "name": "getTimeoutValuesFromService", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 876, - "name": "getTimeoutValuesFromService", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 877, - "name": "service", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Service", - "id": 112 - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 188, - "character": 46 - } - ] - }, - { - "id": 878, - "name": "getValuesFromService", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 879, - "name": "getValuesFromService", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 880, - "name": "service", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Service", - "id": 112 - } - }, - { - "id": 881, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "array", - "elementType": { - "type": "array", - "elementType": { - "type": "reference", - "name": "ValuePair", - "id": 824 - } - } - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 196, - "character": 39 - } - ] - }, - { - "id": 868, - "name": "hashServiceAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 869, - "name": "hashServiceAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 870, - "name": "serviceAgreementTemplateId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 871, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 872, - "name": "conditionKeys", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 873, - "name": "valueHashes", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 874, - "name": "timeouts", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 172, - "character": 39 - } - ] - }, - { - "id": 865, - "name": "hashValuePairArray", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 866, - "name": "hashValuePairArray", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 867, - "name": "valuePairs", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "ValuePair", - "id": 824 - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 156, - "character": 37 - } - ] - }, - { - "id": 829, - "name": "signServiceAgreement", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 830, - "name": "signServiceAgreement", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 831, - "name": "ddo", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "DDO", - "id": 123 - } - }, - { - "id": 832, - "name": "serviceDefinitionId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 833, - "name": "serviceAgreementId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 834, - "name": "consumer", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "Account", - "id": 723 - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 15, - "character": 44 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 882 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 897 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 898, - 895, - 890, - 885, - 900, - 844, - 862, - 851, - 835, - 875, - 878, - 868, - 865, - 829 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 13, - "character": 37 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "OceanBase", - "id": 712 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 828 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreement.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 950, - "name": "\"ocean/ServiceAgreements/ServiceAgreementTemplate\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "children": [ - { - "id": 951, - "name": "ServiceAgreementTemplate", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 956, - "name": "constructor", - "kind": 512, - "kindString": "Constructor", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 958, - "name": "new ServiceAgreementTemplate", - "kind": 16384, - "kindString": "Constructor signature", - "flags": {}, - "parameters": [ - { - "id": 959, - "name": "template", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "TemplateBase", - "id": 945 - } - } - ], - "type": { - "type": "reference", - "name": "ServiceAgreementTemplate", - "id": 951 - }, - "overwrites": { - "type": "reference", - "name": "OceanBase.__constructor", - "id": 714 - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 28, - "character": 5 - } - ], - "overwrites": { - "type": "reference", - "name": "OceanBase.__constructor", - "id": 714 - } - }, - { - "id": 979, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isProtected": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 3, - "character": 16 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0x00\"", - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.id", - "id": 713 - } - }, - { - "id": 957, - "name": "template", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isExported": true, - "isConstructorProperty": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 30, - "character": 39 - } - ], - "type": { - "type": "reference", - "name": "TemplateBase", - "id": 945 - } - }, - { - "id": 971, - "name": "blendConditions", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 972, - "name": "blendConditions", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "Condition", - "id": 914 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 155, - "character": 33 - } - ] - }, - { - "id": 973, - "name": "compressDependencies", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 974, - "name": "compressDependencies", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 975, - "name": "dependencies", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - }, - { - "id": 976, - "name": "dependencyTimeoutFlags", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 180, - "character": 32 - } - ] - }, - { - "id": 967, - "name": "getConditions", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 968, - "name": "getConditions", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 969, - "name": "metadata", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "MetaData", - "id": 101 - } - }, - { - "id": 970, - "name": "assetId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "DDOCondition" - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 104, - "character": 30 - } - ] - }, - { - "id": 980, - "name": "getId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 981, - "name": "getId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.getId", - "id": 717 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 11, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.getId", - "id": 717 - } - }, - { - "id": 977, - "name": "getMethodReflections", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 978, - "name": "getMethodReflections", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "array", - "elementType": { - "type": "reference", - "name": "MethodReflection", - "id": 587 - } - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 215, - "character": 38 - } - ] - }, - { - "id": 965, - "name": "getOwner", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 966, - "name": "getOwner", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Account", - "id": 723 - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 98, - "character": 25 - } - ] - }, - { - "id": 963, - "name": "getStatus", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 964, - "name": "getStatus", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "comment": { - "shortText": "gets the status of a service agreement template" - }, - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 93, - "character": 26 - } - ] - }, - { - "id": 960, - "name": "register", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 961, - "name": "register", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 962, - "name": "templateOwnerAddress", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "intrinsic", - "name": "boolean" - } - ] - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 34, - "character": 25 - } - ] - }, - { - "id": 982, - "name": "setId", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 983, - "name": "setId", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 984, - "name": "id", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - }, - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.setId", - "id": 719 - } - } - ], - "sources": [ - { - "fileName": "ocean/OceanBase.ts", - "line": 15, - "character": 16 - } - ], - "inheritedFrom": { - "type": "reference", - "name": "OceanBase.setId", - "id": 719 - } - }, - { - "id": 952, - "name": "generateConditionsKey", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 953, - "name": "generateConditionsKey", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 954, - "name": "serviceAgreementTemplateId", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 955, - "name": "methodReflection", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "MethodReflection", - "id": 587 - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 20, - "character": 40 - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "kind": 512, - "children": [ - 956 - ] - }, - { - "title": "Properties", - "kind": 1024, - "children": [ - 979, - 957 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 971, - 973, - 967, - 980, - 977, - 965, - 963, - 960, - 982, - 952 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 18, - "character": 45 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "OceanBase", - "id": 712 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 951 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/ServiceAgreementTemplate.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 985, - "name": "\"ocean/ServiceAgreements/Templates/Access\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Templates/Access.ts", - "children": [ - { - "id": 986, - "name": "Access", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 989, - "name": "Methods", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/Access.ts", - "line": 11, - "character": 18 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Method", - "id": 934 - } - }, - "defaultValue": " [\n {\n name: \"lockPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"lockPayment\",\n timeout: 0,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter, {\n name: \"price\",\n type: \"uint256\",\n } as Parameter,\n ],\n events: [\n {\n name: \"PaymentLocked\",\n actorType: \"publisher\",\n handler: {\n moduleName: \"accessControl\",\n functionName: \"grantAccess\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [],\n dependencyTimeoutFlags: [],\n isTerminalCondition: false,\n } as Method, {\n name: \"grantAccess\",\n contractName: \"AccessConditions\",\n methodName: \"grantAccess\",\n timeout: 0,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter,\n {\n name: \"documentKeyId\",\n type: \"bytes32\",\n } as Parameter,\n ],\n events: [\n {\n name: \"AccessGranted\",\n actorType: \"publisher\",\n handler: {\n moduleName: \"payment\",\n functionName: \"releasePayment\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n {\n name: \"AccessGranted\",\n actorType: \"consumer\",\n handler: {\n moduleName: \"accessControl\",\n functionName: \"consumeAsset\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n {\n name: \"AccessTimeout\",\n actorType: \"consumer\",\n handler: {\n moduleName: \"payment\",\n functionName: \"refundPayment\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [\"lockPayment\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: false,\n } as Method, {\n name: \"releasePayment\",\n contractName: \"PaymentConditions\",\n methodName: \"releasePayment\",\n timeout: 0,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter, {\n name: \"price\",\n type: \"uint256\",\n } as Parameter,\n ],\n events: [\n {\n name: \"PaymentReleased\",\n actorType: \"consumer\",\n handler: {\n moduleName: \"serviceAgreement\",\n functionName: \"fulfillAgreement\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [\"grantAccess\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: true,\n } as Method, {\n name: \"refundPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"refundPayment\",\n timeout: 10 * 60,\n parameters: [\n {\n name: \"assetId\",\n type: \"bytes32\",\n } as Parameter, {\n name: \"price\",\n type: \"uint256\",\n } as Parameter,\n ],\n events: [\n {\n name: \"PaymentRefund\",\n actorType: \"publisher\",\n handler: {\n moduleName: \"serviceAgreement\",\n functionName: \"terminateAgreement\",\n version: \"0.1\",\n } as EventHandler,\n } as Event,\n ],\n dependencies: [\"lockPayment\", \"grantAccess\"],\n dependencyTimeoutFlags: [0, 1],\n isTerminalCondition: true,\n } as Method,\n ]", - "overwrites": { - "type": "reference", - "name": "TemplateBase.Methods", - "id": 946 - } - }, - { - "id": 990, - "name": "fulfillmentOperator", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 6, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "1", - "inheritedFrom": { - "type": "reference", - "name": "TemplateBase.fulfillmentOperator", - "id": 948 - } - }, - { - "id": 988, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/Access.ts", - "line": 10, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d\"", - "overwrites": { - "type": "reference", - "name": "TemplateBase.id", - "id": 949 - } - }, - { - "id": 987, - "name": "templateName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/Access.ts", - "line": 9, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"Access\"", - "overwrites": { - "type": "reference", - "name": "TemplateBase.templateName", - "id": 947 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 989, - 990, - 988, - 987 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/Access.ts", - "line": 7, - "character": 27 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "TemplateBase", - "id": 945 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 986 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/Access.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1047, - "name": "\"ocean/ServiceAgreements/Templates/FitchainCompute\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Templates/FitchainCompute.ts", - "children": [ - { - "id": 1048, - "name": "FitchainCompute", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 1051, - "name": "Methods", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", - "line": 8, - "character": 18 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Method", - "id": 934 - } - }, - "defaultValue": " [\n {\n name: \"lockPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"lockPayment\",\n timeout: 0,\n dependencies: [],\n dependencyTimeoutFlags: [],\n isTerminalCondition: false,\n } as Method,\n {\n name: \"grantAccess\",\n contractName: \"AccessConditions\",\n methodName: \"grantAccess\",\n timeout: 10,\n dependencies: [\"lockPayment\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: false,\n } as Method,\n {\n name: \"releasePayment\",\n contractName: \"PaymentConditions\",\n methodName: \"releasePayment\",\n timeout: 10,\n dependencies: [\"grantAccess\"],\n dependencyTimeoutFlags: [0],\n isTerminalCondition: true,\n } as Method,\n {\n name: \"refundPayment\",\n contractName: \"PaymentConditions\",\n methodName: \"refundPayment\",\n timeout: 10,\n dependencies: [\"lockPayment\", \"grantAccess\"],\n dependencyTimeoutFlags: [0, 1],\n isTerminalCondition: true,\n } as Method,\n ]", - "overwrites": { - "type": "reference", - "name": "TemplateBase.Methods", - "id": 946 - } - }, - { - "id": 1052, - "name": "fulfillmentOperator", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 6, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "1", - "inheritedFrom": { - "type": "reference", - "name": "TemplateBase.fulfillmentOperator", - "id": 948 - } - }, - { - "id": 1050, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", - "line": 7, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0xc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc6\"", - "overwrites": { - "type": "reference", - "name": "TemplateBase.id", - "id": 949 - } - }, - { - "id": 1049, - "name": "templateName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", - "line": 6, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"FitchainCompute\"", - "overwrites": { - "type": "reference", - "name": "TemplateBase.templateName", - "id": 947 - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 1051, - 1052, - 1050, - 1049 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", - "line": 4, - "character": 36 - } - ], - "extendedTypes": [ - { - "type": "reference", - "name": "TemplateBase", - "id": 945 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 1048 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/FitchainCompute.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 944, - "name": "\"ocean/ServiceAgreements/Templates/TemplateBase\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/ocean/ServiceAgreements/Templates/TemplateBase.ts", - "children": [ - { - "id": 945, - "name": "TemplateBase", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true, - "isAbstract": true - }, - "children": [ - { - "id": 946, - "name": "Methods", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 4, - "character": 18 - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "name": "Method", - "id": 934 - } - } - }, - { - "id": 948, - "name": "fulfillmentOperator", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 6, - "character": 30 - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "1" - }, - { - "id": 949, - "name": "id", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 7, - "character": 13 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "\"0x00000000000000000000000000000000000000000000000000000000000000\"" - }, - { - "id": 947, - "name": "templateName", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPublic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 5, - "character": 23 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 946, - 948, - 949, - 947 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 3, - "character": 42 - } - ], - "extendedBy": [ - { - "type": "reference", - "name": "Access", - "id": 986 - }, - { - "type": "reference", - "name": "FitchainCompute", - "id": 1048 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 945 - ] - } - ], - "sources": [ - { - "fileName": "ocean/ServiceAgreements/Templates/TemplateBase.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 815, - "name": "\"secretstore/SecretStoreProvider\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/secretstore/SecretStoreProvider.ts", - "children": [ - { - "id": 816, - "name": "SecretStoreProvider", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 822, - "name": "secretStore", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "secretstore/SecretStoreProvider.ts", - "line": 20, - "character": 30 - } - ], - "type": { - "type": "reference", - "name": "SecretStore" - } - }, - { - "id": 820, - "name": "getSecretStore", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 821, - "name": "getSecretStore", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "SecretStore" - } - } - ], - "sources": [ - { - "fileName": "secretstore/SecretStoreProvider.ts", - "line": 11, - "character": 32 - } - ] - }, - { - "id": 817, - "name": "setSecretStore", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 818, - "name": "setSecretStore", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 819, - "name": "secretStore", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "SecretStore" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "secretstore/SecretStoreProvider.ts", - "line": 6, - "character": 32 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 822 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 820, - 817 - ] - } - ], - "sources": [ - { - "fileName": "secretstore/SecretStoreProvider.ts", - "line": 4, - "character": 40 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 816 - ] - } - ], - "sources": [ - { - "fileName": "secretstore/SecretStoreProvider.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 1053, - "name": "\"squid\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/squid.ts", - "children": [ - { - "id": 1054, - "name": "Templates", - "kind": 2097152, - "kindString": "Object literal", - "flags": { - "isConst": true - }, - "children": [ - { - "id": 1055, - "name": "Access", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "squid.ts", - "line": 15, - "character": 25 - } - ], - "type": { - "type": "reference", - "name": "Access", - "id": 986 - } - }, - { - "id": 1056, - "name": "FitchainCompute", - "kind": 32, - "kindString": "Variable", - "flags": {}, - "sources": [ - { - "fileName": "squid.ts", - "line": 15, - "character": 42 - } - ], - "type": { - "type": "reference", - "name": "FitchainCompute", - "id": 1048 - } - } - ], - "groups": [ - { - "title": "Variables", - "kind": 32, - "children": [ - 1055, - 1056 - ] - } - ], - "sources": [ - { - "fileName": "squid.ts", - "line": 15, - "character": 15 - } - ], - "type": { - "type": "intrinsic", - "name": "object" - } - } - ], - "groups": [ - { - "title": "Object literals", - "kind": 2097152, - "children": [ - 1054 - ] - } - ], - "sources": [ - { - "fileName": "squid.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 169, - "name": "\"utils/Logger\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/utils/Logger.ts", - "children": [ - { - "id": 170, - "name": "Logger", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 174, - "name": "debug", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 175, - "name": "debug", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 176, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "utils/Logger.ts", - "line": 6, - "character": 23 - } - ] - }, - { - "id": 183, - "name": "dispatch", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 184, - "name": "dispatch", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 185, - "name": "verb", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 186, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "utils/Logger.ts", - "line": 18, - "character": 27 - } - ] - }, - { - "id": 180, - "name": "error", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 181, - "name": "error", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 182, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "utils/Logger.ts", - "line": 14, - "character": 23 - } - ] - }, - { - "id": 171, - "name": "log", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 172, - "name": "log", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 173, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "utils/Logger.ts", - "line": 2, - "character": 21 - } - ] - }, - { - "id": 177, - "name": "warn", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 178, - "name": "warn", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 179, - "name": "args", - "kind": 32768, - "kindString": "Parameter", - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "utils/Logger.ts", - "line": 10, - "character": 22 - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 174, - 183, - 180, - 171, - 177 - ] - } - ], - "sources": [ - { - "fileName": "utils/Logger.ts", - "line": 1, - "character": 27 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 170 - ] - } - ], - "sources": [ - { - "fileName": "utils/Logger.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 187, - "name": "\"utils/WebServiceConnector\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/utils/WebServiceConnector.ts", - "children": [ - { - "id": 188, - "name": "WebServiceConnector", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "comment": { - "shortText": "Provides a common interface to web services." - }, - "children": [ - { - "id": 200, - "name": "fetch", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPrivate": true, - "isExported": true - }, - "signatures": [ - { - "id": 201, - "name": "fetch", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 202, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 203, - "name": "opts", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "RequestInit" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Response" - } - ] - } - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnector.ts", - "line": 37, - "character": 23 - } - ] - }, - { - "id": 193, - "name": "get", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 194, - "name": "get", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 195, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Response" - } - ] - } - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnector.ts", - "line": 18, - "character": 20 - } - ] - }, - { - "id": 189, - "name": "post", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 190, - "name": "post", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 191, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 192, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "BodyInit" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Response" - } - ] - } - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnector.ts", - "line": 8, - "character": 21 - } - ] - }, - { - "id": 196, - "name": "put", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isExported": true - }, - "signatures": [ - { - "id": 197, - "name": "put", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 198, - "name": "url", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 199, - "name": "payload", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "BodyInit" - } - } - ], - "type": { - "type": "reference", - "name": "Promise", - "typeArguments": [ - { - "type": "reference", - "name": "Response" - } - ] - } - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnector.ts", - "line": 27, - "character": 20 - } - ] - } - ], - "groups": [ - { - "title": "Methods", - "kind": 2048, - "children": [ - 200, - 193, - 189, - 196 - ] - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnector.ts", - "line": 6, - "character": 40 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 188 - ] - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnector.ts", - "line": 1, - "character": 0 - } - ] - }, - { - "id": 204, - "name": "\"utils/WebServiceConnectorProvider\"", - "kind": 1, - "kindString": "External module", - "flags": { - "isExported": true - }, - "originalName": "/home/pedro/projects/ocean/squid-js/src/utils/WebServiceConnectorProvider.ts", - "children": [ - { - "id": 205, - "name": "WebServiceConnectorProvider", - "kind": 128, - "kindString": "Class", - "flags": { - "isExported": true - }, - "children": [ - { - "id": 211, - "name": "instance", - "kind": 1024, - "kindString": "Property", - "flags": { - "isPrivate": true, - "isStatic": true, - "isExported": true - }, - "sources": [ - { - "fileName": "utils/WebServiceConnectorProvider.ts", - "line": 18, - "character": 27 - } - ], - "type": { - "type": "reference", - "name": "WebServiceConnector", - "id": 188 - }, - "defaultValue": " null" - }, - { - "id": 209, - "name": "getConnector", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 210, - "name": "getConnector", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "type": { - "type": "reference", - "name": "WebServiceConnector", - "id": 188 - } - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnectorProvider.ts", - "line": 10, - "character": 30 - } - ] - }, - { - "id": 206, - "name": "setConnector", - "kind": 2048, - "kindString": "Method", - "flags": { - "isPublic": true, - "isStatic": true, - "isExported": true - }, - "signatures": [ - { - "id": 207, - "name": "setConnector", - "kind": 4096, - "kindString": "Call signature", - "flags": {}, - "parameters": [ - { - "id": 208, - "name": "connector", - "kind": 32768, - "kindString": "Parameter", - "flags": {}, - "type": { - "type": "reference", - "name": "WebServiceConnector", - "id": 188 - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnectorProvider.ts", - "line": 5, - "character": 30 - } - ] - } - ], - "groups": [ - { - "title": "Properties", - "kind": 1024, - "children": [ - 211 - ] - }, - { - "title": "Methods", - "kind": 2048, - "children": [ - 209, - 206 - ] - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnectorProvider.ts", - "line": 3, - "character": 48 - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "kind": 128, - "children": [ - 205 - ] - } - ], - "sources": [ - { - "fileName": "utils/WebServiceConnectorProvider.ts", - "line": 1, - "character": 0 - } - ] - } - ], - "groups": [ - { - "title": "External modules", - "kind": 1, - "children": [ - 13, - 225, - 251, - 212, - 218, - 215, - 259, - 283, - 71, - 21, - 51, - 62, - 76, - 122, - 32, - 41, - 36, - 100, - 81, - 46, - 25, - 111, - 67, - 1059, - 1060, - 1061, - 1062, - 1063, - 1064, - 1065, - 1066, - 1068, - 1069, - 1070, - 1071, - 1058, - 1057, - 303, - 903, - 791, - 778, - 693, - 298, - 355, - 320, - 484, - 745, - 529, - 593, - 653, - 402, - 440, - 291, - 707, - 1, - 582, - 586, - 823, - 478, - 722, - 153, - 149, - 991, - 711, - 913, - 928, - 923, - 933, - 909, - 827, - 950, - 985, - 1047, - 944, - 815, - 1053, - 169, - 187, - 204 - ] - } - ] -} \ No newline at end of file diff --git a/package.json b/package.json index 18eb23fc..7db010e5 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "author": "Ocean Protocol ", "license": "Apache-2.0", "scripts": { - "build": "gatsby build", - "start": "gatsby develop", + "build": "npm run typedoc && gatsby build", + "start": "npm run typedoc && gatsby develop", "ssr": "npm run build && serve -s public/", "format:js": "prettier --write '**/*.{js,jsx}'", "format:css": "prettier-stylelint --write --quiet 'src/**/*.{css,scss}'", @@ -19,7 +19,8 @@ "lint:yml": "prettier '**/*.{yml,yaml}' --list-different", "lint": "run-p --continue-on-error lint:js lint:css lint:md lint:yml", "test": "npm run lint", - "deploy": "./scripts/deploy.sh" + "deploy": "./scripts/deploy.sh", + "typedoc": "node ./scripts/typedoc.js" }, "dependencies": { "@oceanprotocol/art": "^2.1.0", diff --git a/scripts/typedoc.js b/scripts/typedoc.js new file mode 100644 index 00000000..bb9400ae --- /dev/null +++ b/scripts/typedoc.js @@ -0,0 +1,62 @@ +#!/usr/bin/env node + +/* eslint-disable no-console */ + +const fs = require('fs') +const typedoc = require('typedoc') +const typescript = require('typescript') +const squidJsPackage = require('../external/squid-js/package.json') +const { exec } = require('child_process') + +const { description, version } = squidJsPackage + +// Setup our paths, relative to project root +const outPath = './data/squid-js.json' +const files = ['./external/squid-js/src/squid.ts'] + +// specifically point to tsconfig, otherwise TypeDoc fails +const config = typescript.findConfigFile( + './external/squid-js', + typescript.sys.fileExists +) + +// npm install for squid-js +console.log('Installing submodule dependencies...') +const install = exec( + 'cd ./external/squid-js && npm i && git checkout package-lock.json' +) + +install.on('exit', () => { + generateJson() +}) + +const generateJson = () => { + console.log('Generating TypeDoc json...') + + // Setup our TypeDoc app + const app = new typedoc.Application({ + tsconfig: config + }) + + const src = app.expandInputFiles(files) + const project = app.convert(src) + + // Generate the JSON file + app.generateJson(project, outPath) + + // Parse and modify json output + const jsonOrig = JSON.parse(fs.readFileSync(outPath, 'utf8')) // eslint-disable-line + + const jsonFinal = { + info: { + title: 'Squid-js', + description, + version, + sourceUrl: + 'https://github.com/oceanprotocol/squid-js/tree/develop/src/' + }, + ...jsonOrig + } + + fs.writeFileSync(outPath, JSON.stringify(jsonFinal, null, 4)) // eslint-disable-line +} diff --git a/scripts/typedoc.sh b/scripts/typedoc.sh deleted file mode 100755 index 8699a463..00000000 --- a/scripts/typedoc.sh +++ /dev/null @@ -1,7 +0,0 @@ - -./node_modules/typedoc/bin/typedoc \ - --json ./external/squid-js/squid-js.json ./external/squid-js/src/squid.ts \ - --excludePrivate \ - --excludeExternals \ - --excludeProtected \ - --target ES6 From a7cc0cf099ffadea3cd18ce38483b9c16514aca3 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 13:59:43 +0100 Subject: [PATCH 07/36] document typedoc spec file generation --- README.md | 52 +++++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 48946997..739a9252 100644 --- a/README.md +++ b/README.md @@ -87,37 +87,37 @@ All Markdown files should use 1. The file must begin with a section called YAML frontmatter that looks like this: - ```md - --- - title: This is the Title in Title Case - description: A short description of the page. - --- +```md +--- +title: This is the Title in Title Case +description: A short description of the page. +--- - Markdown content begins here. - ``` +Markdown content begins here. +``` - For external documents in other repos, defining the `slug` and `section` is required: +For external documents in other repos, defining the `slug` and `section` is required: - ```md - --- - title: This is the Title in Title Case - description: A short description of the page. - slug: /concepts/architecture/ - section: concepts - --- +```md +--- +title: This is the Title in Title Case +description: A short description of the page. +slug: /concepts/architecture/ +section: concepts +--- - Markdown content begins here. - ``` +Markdown content begins here. +``` - Note: The `description` value will be rendered on-page below the title, and it will also be used for description tags in the HTML head. +Note: The `description` value will be rendered on-page below the title, and it will also be used for description tags in the HTML head. -2. Don't include the page title or description in the Markdown section. That is, don't begin the Markdown content with `# This is the Title in Title Case`. Just write as if that were already there. -3. start your heading levels with `h2`, so `## My heading` -4. Internal links to other docs pages should be: +1. Don't include the page title or description in the Markdown section. That is, don't begin the Markdown content with `# This is the Title in Title Case`. Just write as if that were already there. +2. start your heading levels with `h2`, so `## My heading` +3. Internal links to other docs pages should be: - to a absolute URL without the host, that looks like `/concepts/terminology/` with slashes on the beginning and end, and with no `.md` or `.html` at the end (before the last slash). - when linking from external repos, to the _full absolute URL_, such as `https://docs.oceanprotocol.com/hello/you-are-awesome/` -5. no TOC please, this will be generated automatically from all headings -6. for images and media, you can keep them in the original repo. Images will be automatically grabbed by the docs site on querying. When doing that, docs site will generate all sorts of image sizes to handle proper responsive images, so no need to keep an eye on image dimensions or file sizes +4. no TOC please, this will be generated automatically from all headings +5. for images and media, you can keep them in the original repo. Images will be automatically grabbed by the docs site on querying. When doing that, docs site will generate all sorts of image sizes to handle proper responsive images, so no need to keep an eye on image dimensions or file sizes **Have a look at [docs.oceanprotocol.com/test/](https://docs.oceanprotocol.com/test/) to see what content elements can be used in all Markdown files included in docs site.** @@ -212,9 +212,11 @@ For more information about stylistic issues, take a look at the section in the t #### TypeDoc specs -Reference pages based on generated `json` file from TypeDoc. +Reference pages based on generated `json` file from TypeDoc. TypeScript-based projects are included as git submodules under `./external`. -_Coming soon... see [#45](https://github.com/oceanprotocol/docs/issues/45)_ +On site build, TypeDoc will automatically generate the required `json` spec file into `./data/squid-js.json` and create pages from it. The data from these json files is then used by the TypeDoc template. + +To update the specs to the most recent version, the `./external/squid-js` submodule needs to be manuall updated. That's it, on next site build a new spec will be used. ## Development From c6b9cbb59e3216448675933e585d0bc73052d08f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 14:03:36 +0100 Subject: [PATCH 08/36] lint fix --- scripts/typedoc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/typedoc.js b/scripts/typedoc.js index bb9400ae..42443663 100644 --- a/scripts/typedoc.js +++ b/scripts/typedoc.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -/* eslint-disable no-console */ +/* eslint-disable no-console, security/detect-child-process */ const fs = require('fs') const typedoc = require('typedoc') From 0caf03e24ebd901b6dea5c1c3e36f7732352ee66 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 14:23:53 +0100 Subject: [PATCH 09/36] nicer source link --- src/templates/Typedoc.jsx | 24 +++++++++++++----------- src/templates/Typedoc.module.scss | 19 ++++++++++++++----- 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc.jsx index 4b485b46..2937d9d5 100644 --- a/src/templates/Typedoc.jsx +++ b/src/templates/Typedoc.jsx @@ -162,7 +162,9 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { if (deprecation) { deprecatedUse = deprecation.arguments.alternative.replace(/'/g, '') } + const sourceLink = `${sourceUrl}${fileName}#L${line}` + return (
    {
    )} - {fileName && ( - - source - - )} - {comment && (
    {comment.text || comment.shortText} @@ -223,6 +214,17 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { return } })()} + + {fileName && ( + + {`${fileName}#L${line}`} + + )}
    ) } diff --git a/src/templates/Typedoc.module.scss b/src/templates/Typedoc.module.scss index 72cedb22..0c52c5fa 100644 --- a/src/templates/Typedoc.module.scss +++ b/src/templates/Typedoc.module.scss @@ -91,13 +91,22 @@ } .sourceLink { - position: absolute; - bottom: $spacer / 2; - right: $spacer / 2; + display: block; font-size: $font-size-mini; - font-family: $font-family-button; - text-transform: uppercase; color: $brand-grey-light; + margin-top: $spacer / 2; + + &:hover, + &:focus { + transform: none; + } + + @media (min-width: $break-point--large) { + margin-top: 0; + position: absolute; + bottom: $spacer / 2; + right: $spacer / 2; + } } .deprecation { From 86471beb8dd88820a8ef2a25a091294e73594bc7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 15:36:59 +0100 Subject: [PATCH 10/36] output all entities in sidebar as menu items --- src/components/Sidebar.module.scss | 5 +++-- src/templates/Typedoc.jsx | 22 ++++++++++++++++++---- src/templates/Typedoc.module.scss | 4 +++- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/src/components/Sidebar.module.scss b/src/components/Sidebar.module.scss index 4fb09dc0..0f709c7f 100644 --- a/src/components/Sidebar.module.scss +++ b/src/components/Sidebar.module.scss @@ -85,10 +85,11 @@ .toc { ul { padding-left: 0; + margin: 0; ul { - padding-left: $spacer / 2; - margin: 0; + border-left: 1px solid $brand-grey-lighter; + margin-left: $spacer; } } diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc.jsx index 2937d9d5..bf06e3e1 100644 --- a/src/templates/Typedoc.jsx +++ b/src/templates/Typedoc.jsx @@ -17,15 +17,29 @@ const showKindOfProperty = ['Method', 'Property'] const toc = typedoc => { const items = typedoc - .map( - ({ name }) => ` + .map(({ name, children }) => { + const parentName = name + + return `
  • ${name} +
      + ${children + .map( + ({ name }) => + `
    • + + ${name} + +
    • ` + ) + .join('')} +
  • ` - ) + }) .join('') return `
      ${items}
    ` @@ -167,7 +181,7 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { return (
    Date: Tue, 22 Jan 2019 16:07:12 +0100 Subject: [PATCH 11/36] menu shuffling --- content/references/introduction.md | 2 +- data/sidebars/references.yml | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/content/references/introduction.md b/content/references/introduction.md index 0d43324f..6d818d9a 100644 --- a/content/references/introduction.md +++ b/content/references/introduction.md @@ -12,7 +12,7 @@ The following components expose a consumable REST API which are documented on th Those are sourced from their respective Swagger specs. On this site you can't execute the documented API calls yet. If you need this, you can run a component's local Swagger UI as outlined in the repository instructions on GitHub. -References of all the functions and methods used in our libraries are not yet integrated here. For now, have a look at the respective repos for more infos: +References of all the functions and methods used in our libraries: diff --git a/data/sidebars/references.yml b/data/sidebars/references.yml index 0d5556d5..87de05af 100644 --- a/data/sidebars/references.yml +++ b/data/sidebars/references.yml @@ -3,16 +3,6 @@ - title: API References link: /references/introduction/ -- group: squid-js - items: - - title: API Reference - link: /references/squid-js/ - -- group: squid-py - items: - - title: API Reference - link: /references/squid-py/ - - group: aquarius items: - title: API Reference @@ -22,3 +12,13 @@ items: - title: API Reference link: /references/brizo/ + +- group: squid-js + items: + - title: API Reference + link: /references/squid-js/ + +- group: squid-py + items: + - title: API Reference + link: /references/squid-py/ From 22bc0512ca75c2db838ea6d94909a372c673a4d4 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 16:17:13 +0100 Subject: [PATCH 12/36] minimize deprecated entities, spacing tweaks --- src/templates/Typedoc.jsx | 19 ++++++++++--------- src/templates/Typedoc.module.scss | 13 ++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc.jsx index bf06e3e1..a463ec8b 100644 --- a/src/templates/Typedoc.jsx +++ b/src/templates/Typedoc.jsx @@ -210,7 +210,7 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { {deprecation && ( )} - {(() => { - switch (kindString) { - case 'Method': - return - case 'Property': - return - } - })()} + {!deprecation && + (() => { + switch (kindString) { + case 'Method': + return + case 'Property': + return + } + })()} {fileName && ( *:not(.deprecation) { - opacity: .4; + opacity: .5; } .sourceLink { @@ -113,9 +113,7 @@ .deprecation { font-size: $font-size-small; - padding: $spacer / 3; - border: 1px solid $red; - border-radius: $border-radius; + margin-bottom: $spacer / 4; strong { color: $red; @@ -140,10 +138,11 @@ } .subHeading { - font-size: $font-size-h5; + font-size: $font-size-base; border-bottom: 1px solid $brand-grey-lighter; - padding-bottom: $spacer / 3; - margin-bottom: $spacer / 3; + padding-bottom: $spacer / 4; + margin-bottom: $spacer / 4; + color: $brand-grey; } .parameters { From a37ed4cb0e7f2b6bd25fa6703fdf861ef9080e98 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 16:48:15 +0100 Subject: [PATCH 13/36] output more classes --- gatsby-node.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gatsby-node.js b/gatsby-node.js index 135d380d..eefb490c 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -227,8 +227,18 @@ exports.createPages = ({ graphql, actions }) => { classes: [ 'ocean/Ocean', 'ocean/Account', + 'ocean/DID', + 'ocean/ServiceAgreements/ServiceAgreement', 'ddo/DDO', - 'ddo/Service' + 'ddo/Service', + 'aquarius/AquariusProvider', + 'aquarius/Aquarius', + 'aquarius/query/SearchQuery', + 'brizo/BrizoProvider', + 'brizo/Brizo', + 'keeper/Keeper', + 'keeper/Web3Provider', + 'secretstore/SecretStoreProvider' ] } }) From eaadda98a8d32dbb174f5d592e69e3d525687e2d Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 17:14:02 +0100 Subject: [PATCH 14/36] fixes --- src/templates/Doc.module.scss | 1 + src/templates/Typedoc.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templates/Doc.module.scss b/src/templates/Doc.module.scss index 47300dcb..d57dd8c9 100644 --- a/src/templates/Doc.module.scss +++ b/src/templates/Doc.module.scss @@ -14,6 +14,7 @@ @media (min-width: $break-point--medium) { width: 27%; margin-bottom: 0; + margin-top: 0; order: 1; + .main { diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc.jsx index a463ec8b..cd30dab0 100644 --- a/src/templates/Typedoc.jsx +++ b/src/templates/Typedoc.jsx @@ -212,7 +212,7 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
    Deprecated: use{' '} - + {deprecatedUse} {' '} From b89b7bddae5d5833f2ebbe08992de93004cd83a7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 22:06:06 +0100 Subject: [PATCH 15/36] refactor API reference templates, split up long template files --- gatsby-node.js | 4 +- package.json | 1 + scripts/typedoc.js | 14 +- src/templates/ApiSwagger.jsx | 321 ------------------ src/templates/Doc.jsx | 25 +- src/templates/Doc.module.scss | 6 + src/templates/Swagger/Paths.jsx | 151 ++++++++ .../Paths.module.scss} | 47 --- src/templates/Swagger/Toc.jsx | 19 ++ src/templates/Swagger/index.jsx | 152 +++++++++ src/templates/Swagger/index.module.scss | 42 +++ src/templates/Swagger/utils.js | 13 + .../{Typedoc.jsx => Typedoc/Entities.jsx} | 168 +-------- .../Entities.module.scss} | 6 - src/templates/Typedoc/Toc.jsx | 33 ++ src/templates/Typedoc/index.jsx | 107 ++++++ src/templates/Typedoc/utils.js | 19 ++ 17 files changed, 578 insertions(+), 550 deletions(-) delete mode 100644 src/templates/ApiSwagger.jsx create mode 100644 src/templates/Swagger/Paths.jsx rename src/templates/{ApiSwagger.module.scss => Swagger/Paths.module.scss} (65%) create mode 100644 src/templates/Swagger/Toc.jsx create mode 100644 src/templates/Swagger/index.jsx create mode 100644 src/templates/Swagger/index.module.scss create mode 100644 src/templates/Swagger/utils.js rename src/templates/{Typedoc.jsx => Typedoc/Entities.jsx} (59%) rename src/templates/{Typedoc.module.scss => Typedoc/Entities.module.scss} (96%) create mode 100644 src/templates/Typedoc/Toc.jsx create mode 100644 src/templates/Typedoc/index.jsx create mode 100644 src/templates/Typedoc/utils.js diff --git a/gatsby-node.js b/gatsby-node.js index eefb490c..c38c0f59 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -153,7 +153,7 @@ exports.createPages = ({ graphql, actions }) => { // Create pages from swagger json files // const apiSwaggerTemplate = path.resolve( - './src/templates/ApiSwagger.jsx' + './src/templates/Swagger/index.jsx' ) const petStoreSlug = '/references/petstore/' @@ -202,7 +202,7 @@ exports.createPages = ({ graphql, actions }) => { // const typeDocSpecs = ['./data/squid-js.json'] const typedocTemplate = path.resolve( - './src/templates/Typedoc.jsx' + './src/templates/Typedoc/index.jsx' ) typeDocSpecs.forEach(spec => { diff --git a/package.json b/package.json index 7db010e5..648b0a09 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "eslint-plugin-prettier": "^3.0.0", "markdownlint-cli": "^0.13.0", "npm-run-all": "^4.1.5", + "ora": "^3.0.0", "prettier": "^1.15.3", "prettier-stylelint": "^0.4.2", "stylelint": "^9.9.0", diff --git a/scripts/typedoc.js b/scripts/typedoc.js index 42443663..1953ddd8 100644 --- a/scripts/typedoc.js +++ b/scripts/typedoc.js @@ -1,10 +1,11 @@ #!/usr/bin/env node -/* eslint-disable no-console, security/detect-child-process */ +/* eslint-disable no-console, security/detect-child-process, security/detect-non-literal-fs-filename */ const fs = require('fs') const typedoc = require('typedoc') const typescript = require('typescript') +const ora = require('ora') const squidJsPackage = require('../external/squid-js/package.json') const { exec } = require('child_process') @@ -21,17 +22,18 @@ const config = typescript.findConfigFile( ) // npm install for squid-js -console.log('Installing submodule dependencies...') +const spinnerNpm = ora('Installing submodule dependencies...').start() const install = exec( 'cd ./external/squid-js && npm i && git checkout package-lock.json' ) install.on('exit', () => { + spinnerNpm.succeed('Installed submodule dependencies.') generateJson() }) const generateJson = () => { - console.log('Generating TypeDoc json...') + const spinnerTypedoc = ora('Generating TypeDoc json...').start() // Setup our TypeDoc app const app = new typedoc.Application({ @@ -45,7 +47,7 @@ const generateJson = () => { app.generateJson(project, outPath) // Parse and modify json output - const jsonOrig = JSON.parse(fs.readFileSync(outPath, 'utf8')) // eslint-disable-line + const jsonOrig = JSON.parse(fs.readFileSync(outPath, 'utf8')) const jsonFinal = { info: { @@ -58,5 +60,7 @@ const generateJson = () => { ...jsonOrig } - fs.writeFileSync(outPath, JSON.stringify(jsonFinal, null, 4)) // eslint-disable-line + fs.writeFileSync(outPath, JSON.stringify(jsonFinal, null, 4)) + + spinnerTypedoc.succeed('Generated TypeDoc json.') } diff --git a/src/templates/ApiSwagger.jsx b/src/templates/ApiSwagger.jsx deleted file mode 100644 index 1635122e..00000000 --- a/src/templates/ApiSwagger.jsx +++ /dev/null @@ -1,321 +0,0 @@ -import React, { Component } from 'react' -import PropTypes from 'prop-types' -import { graphql } from 'gatsby' -import Helmet from 'react-helmet' -import slugify from 'slugify' -import Layout from '../components/Layout' -import Content from '../components/Content' -import HeaderSection from '../components/HeaderSection' -import Sidebar from '../components/Sidebar' -import DocHeader from '../components/DocHeader' -import DocFooter from '../components/DocFooter' -import SEO from '../components/Seo' -import stylesDoc from './Doc.module.scss' -import styles from './ApiSwagger.module.scss' - -const cleanKey = key => { - let keyCleaned = key - - if (key.includes('aquarius')) { - keyCleaned = key.replace(/\/api\/v1\/aquarius/gi, '') - } - - if (key.includes('brizo')) { - keyCleaned = key.replace(/\/api\/v1\/brizo/gi, '') - } - - return keyCleaned -} - -const toc = api => { - const items = Object.keys(api.paths).map( - key => `
  • - ${cleanKey( - key - )} -
  • ` - ) - - return `
      ${items}
    ` -} - -const SwaggerMeta = ({ contact, license }) => ( - -) - -SwaggerMeta.propTypes = { - contact: PropTypes.object, - license: PropTypes.object -} - -const ParameterExample = ({ properties }) => ( - // - // HEADS UP! - // - // Constructing the example request body here based on the defined properties - // where `key` is the name of the property, and `properties[key].example` is - // the value for it. - // - // Making prism.js pick up on the strings only output didn't work out so well - // so the spans and classes this plugin would add are added manually here. Since we - // include the prism css file globally this is picked up by that. - // - // But this can only work if all keys and values are manually constructed here, which - // is almost impossible to do for deep nested objects or arrays as example value. Running - // that code through `JSON.stringify` won't syntax highlight that part of the code. - // -
    -        
    -            {'{'}
    -            {properties &&
    -                Object.keys(properties).map(key => (
    -                    
    - {` "${key}"`} - {`: `} - {properties[key].type === 'string' && ( - {`"${ - properties[key].example - }"`} - )} - {(properties[key].type === 'integer' || - properties[key].type === 'number') && ( - - {`${properties[key].example}`} - - )} - {(properties[key].type === 'array' || - properties[key].type === 'object') && - JSON.stringify(properties[key].example, null, 2)} - , -
    - ))} - {'}'} -
    -
    -) - -ParameterExample.propTypes = { - properties: PropTypes.object -} - -const Parameters = ({ parameters }) => ( - <> -

    Parameters

    - - {parameters.map(parameter => { - const { name, type, required, description, schema } = parameter - - return ( -
    -
    - {name} - {required && ( - - * - - )} - {type} -
    - -

    {description}

    - - {schema && ( - - )} -
    - ) - })} - -) - -const Responses = ({ responses }) => ( - <> -

    Responses

    - {Object.keys(responses).map(key => ( -
    - {key} {responses[key].description} -
    - ))} - -) - -const Method = ({ keyName, value }) => { - const { summary, description, parameters, responses } = value - - return ( -
    -

    - {keyName} -

    - -

    {summary}

    - - {description &&

    {description}

    } - - {/* - {consumes && - consumes.map((item, i) => ( -
    - {item} -
    - ))} - */} - - {parameters && parameters.length && ( - - )} - {responses && Object.keys(responses).length !== 0 && ( - - )} -
    - ) -} - -Method.propTypes = { - keyName: PropTypes.string, - value: PropTypes.object -} - -const Paths = ({ paths }) => - Object.entries(paths).map(([key, value]) => ( -
    -

    - {cleanKey(key)} -

    - - {Object.entries(value).map(([key, value]) => ( - - ))} -
    - )) - -const BasePath = ({ host, basePath }) => ( -
    -

    Base Path

    - - {host} - {basePath} - -
    -) - -BasePath.propTypes = { - host: PropTypes.string, - basePath: PropTypes.string -} - -export default class ApiSwaggerTemplate extends Component { - static propTypes = { - data: PropTypes.object.isRequired, - location: PropTypes.object.isRequired, - pageContext: PropTypes.object.isRequired - } - - render() { - const { location, data, pageContext } = this.props - const sections = data.allSectionsYaml.edges - const { api } = pageContext - const { host, basePath, info, paths } = api - const { title, description, version, license, contact } = info - - // output section title as defined in sections.yml - const sectionTitle = sections.map(({ node }) => { - // compare section against section title from sections.yml - if (node.title.toLowerCase().includes('references')) { - return node.title - } - }) - - return ( - <> - - - - - - - - - - -
    - -
    - - {version} - - } - /> - - {(contact || license) && ( - - )} - - {(host || basePath) && ( - - )} - - - - -
    -
    -
    -
    - - ) - } -} - -export const apiSwaggerQuery = graphql` - query { - allSectionsYaml { - edges { - node { - title - description - link - } - } - } - } -` diff --git a/src/templates/Doc.jsx b/src/templates/Doc.jsx index e8762621..d92cde7e 100644 --- a/src/templates/Doc.jsx +++ b/src/templates/Doc.jsx @@ -38,22 +38,25 @@ export default class DocTemplate extends Component { location: PropTypes.object.isRequired } + // output section title as defined in sections.yml + sectionTitle = this.props.data.allSectionsYaml.edges.map(({ node }) => { + // compare section against section title from sections.yml + if ( + node.title + .toLowerCase() + .includes(this.props.data.markdownRemark.fields.section) + ) { + return node.title + } + }) + render() { const { location } = this.props const post = this.props.data.markdownRemark - const sections = this.props.data.allSectionsYaml.edges const { section, slug } = post.fields const { title, description } = post.frontmatter const { tableOfContents } = post - // output section title as defined in sections.yml - const sectionTitle = sections.map(({ node }) => { - // compare section against section title from sections.yml - if (node.title.toLowerCase().includes(section)) { - return node.title - } - }) - const isApiSection = location.pathname.includes('/references/') return ( @@ -70,7 +73,9 @@ export default class DocTemplate extends Component { /> - + {section ? ( diff --git a/src/templates/Doc.module.scss b/src/templates/Doc.module.scss index d57dd8c9..6e8e7a9e 100644 --- a/src/templates/Doc.module.scss +++ b/src/templates/Doc.module.scss @@ -48,3 +48,9 @@ max-width: 73%; margin: auto; } + +.version { + font-size: $font-size-base; + font-family: $font-family-monospace; + color: $brand-grey-light; +} diff --git a/src/templates/Swagger/Paths.jsx b/src/templates/Swagger/Paths.jsx new file mode 100644 index 00000000..c5e2615c --- /dev/null +++ b/src/templates/Swagger/Paths.jsx @@ -0,0 +1,151 @@ +import React from 'react' +import PropTypes from 'prop-types' +import slugify from 'slugify' +import { cleanPathKey } from './utils' +import styles from './Paths.module.scss' + +const ParameterExample = ({ properties }) => ( + // + // HEADS UP! + // + // Constructing the example request body here based on the defined properties + // where `key` is the name of the property, and `properties[key].example` is + // the value for it. + // + // Making prism.js pick up on the strings only output didn't work out so well + // so the spans and classes this plugin would add are added manually here. Since we + // include the prism css file globally this is picked up by that. + // + // But this can only work if all keys and values are manually constructed here, which + // is almost impossible to do for deep nested objects or arrays as example value. Running + // that code through `JSON.stringify` won't syntax highlight that part of the code. + // +
    +        
    +            {'{'}
    +            {properties &&
    +                Object.keys(properties).map(key => (
    +                    
    + {` "${key}"`} + {`: `} + {properties[key].type === 'string' && ( + {`"${ + properties[key].example + }"`} + )} + {(properties[key].type === 'integer' || + properties[key].type === 'number') && ( + + {`${properties[key].example}`} + + )} + {(properties[key].type === 'array' || + properties[key].type === 'object') && + JSON.stringify(properties[key].example, null, 2)} + , +
    + ))} + {'}'} +
    +
    +) + +ParameterExample.propTypes = { + properties: PropTypes.object +} + +const Parameters = ({ parameters }) => ( + <> +

    Parameters

    + + {parameters.map(parameter => { + const { name, type, required, description, schema } = parameter + + return ( +
    +
    + {name} + {required && ( + + * + + )} + {type} +
    + +

    {description}

    + + {schema && ( + + )} +
    + ) + })} + +) + +const Responses = ({ responses }) => ( + <> +

    Responses

    + {Object.keys(responses).map(key => ( +
    + {key} {responses[key].description} +
    + ))} + +) + +const Method = ({ keyName, value }) => { + const { summary, description, parameters, responses } = value + + return ( +
    +

    + {keyName} +

    + +

    {summary}

    + + {description &&

    {description}

    } + + {/* + {consumes && + consumes.map((item, i) => ( +
    + {item} +
    + ))} + */} + + {parameters && parameters.length && ( + + )} + {responses && Object.keys(responses).length !== 0 && ( + + )} +
    + ) +} + +Method.propTypes = { + keyName: PropTypes.string, + value: PropTypes.object +} + +const Paths = ({ paths }) => + Object.entries(paths).map(([key, value]) => ( +
    +

    + {cleanPathKey(key)} +

    + + {Object.entries(value).map(([key, value]) => ( + + ))} +
    + )) + +export default Paths diff --git a/src/templates/ApiSwagger.module.scss b/src/templates/Swagger/Paths.module.scss similarity index 65% rename from src/templates/ApiSwagger.module.scss rename to src/templates/Swagger/Paths.module.scss index a029bcc6..9c48a7c4 100644 --- a/src/templates/ApiSwagger.module.scss +++ b/src/templates/Swagger/Paths.module.scss @@ -1,52 +1,5 @@ @import 'variables'; -.version { - font-size: $font-size-base; - font-family: $font-family-monospace; - color: $brand-grey-light; -} - -.swaggerMeta { - margin-top: -($spacer); - padding: 0; - font-size: $font-size-small; - - li { - display: inline-block; - margin-left: $spacer; - - &:first-child { - margin-left: 0; - } - - &:before { - display: none; - } - } -} - -.basePath { - margin-top: $spacer; - - h2 { - font-size: $font-size-h3; - border-bottom: 1px solid $brand-grey-lighter; - padding-bottom: $spacer / 2; - margin-top: $spacer * 2; - margin-bottom: $spacer; - } - - span { - color: $brand-grey-light; - } - - code { - // stylelint-disable-next-line - font-size: $font-size-large !important; - font-weight: $font-weight-bold; - } -} - .pathName { font-size: $font-size-h3; border-bottom: 1px solid $brand-grey-lighter; diff --git a/src/templates/Swagger/Toc.jsx b/src/templates/Swagger/Toc.jsx new file mode 100644 index 00000000..6b4df0a3 --- /dev/null +++ b/src/templates/Swagger/Toc.jsx @@ -0,0 +1,19 @@ +import slugify from 'slugify' +import { cleanPathKey } from './utils' + +const Toc = api => { + const items = Object.keys(api.paths) + .map( + key => + `
  • + + ${cleanPathKey(key)} + +
  • ` + ) + .join('') + + return `
      ${items}
    ` +} + +export default Toc diff --git a/src/templates/Swagger/index.jsx b/src/templates/Swagger/index.jsx new file mode 100644 index 00000000..10077944 --- /dev/null +++ b/src/templates/Swagger/index.jsx @@ -0,0 +1,152 @@ +import React, { Component } from 'react' +import PropTypes from 'prop-types' +import { graphql } from 'gatsby' +import Helmet from 'react-helmet' + +import Layout from '../../components/Layout' +import Content from '../../components/Content' +import HeaderSection from '../../components/HeaderSection' +import Sidebar from '../../components/Sidebar' +import DocHeader from '../../components/DocHeader' +import DocFooter from '../../components/DocFooter' +import SEO from '../../components/Seo' + +import Toc from './Toc' +import Paths from './Paths' + +import stylesDoc from '../Doc.module.scss' +import styles from './index.module.scss' + +const SwaggerMeta = ({ contact, license }) => ( + +) + +SwaggerMeta.propTypes = { + contact: PropTypes.object, + license: PropTypes.object +} + +const BasePath = ({ host, basePath }) => ( +
    +

    Base Path

    + + {host} + {basePath} + +
    +) + +BasePath.propTypes = { + host: PropTypes.string, + basePath: PropTypes.string +} + +export default class ApiSwaggerTemplate extends Component { + static propTypes = { + data: PropTypes.object.isRequired, + location: PropTypes.object.isRequired, + pageContext: PropTypes.object.isRequired + } + + // output section title as defined in sections.yml + sectionTitle = this.props.data.allSectionsYaml.edges.map(({ node }) => { + // compare section against section title from sections.yml + if (node.title.toLowerCase().includes('references')) { + return node.title + } + }) + + render() { + const { location, pageContext } = this.props + const { api } = pageContext + const { host, basePath, info, paths } = api + const { title, description, version, license, contact } = info + + return ( + <> + + + + + + + + + + +
    + +
    + + {version} + + } + /> + + {(contact || license) && ( + + )} + + {(host || basePath) && ( + + )} + + + + +
    +
    +
    +
    + + ) + } +} + +export const apiSwaggerQuery = graphql` + query { + allSectionsYaml { + edges { + node { + title + description + link + } + } + } + } +` diff --git a/src/templates/Swagger/index.module.scss b/src/templates/Swagger/index.module.scss new file mode 100644 index 00000000..5b40c0d6 --- /dev/null +++ b/src/templates/Swagger/index.module.scss @@ -0,0 +1,42 @@ +@import 'variables'; + +.swaggerMeta { + margin-top: -($spacer); + padding: 0; + font-size: $font-size-small; + + li { + display: inline-block; + margin-left: $spacer; + + &:first-child { + margin-left: 0; + } + + &:before { + display: none; + } + } +} + +.basePath { + margin-top: $spacer; + + h2 { + font-size: $font-size-h3; + border-bottom: 1px solid $brand-grey-lighter; + padding-bottom: $spacer / 2; + margin-top: $spacer * 2; + margin-bottom: $spacer; + } + + span { + color: $brand-grey-light; + } + + code { + // stylelint-disable-next-line + font-size: $font-size-large !important; + font-weight: $font-weight-bold; + } +} diff --git a/src/templates/Swagger/utils.js b/src/templates/Swagger/utils.js new file mode 100644 index 00000000..5f431dd3 --- /dev/null +++ b/src/templates/Swagger/utils.js @@ -0,0 +1,13 @@ +export const cleanPathKey = key => { + let keyCleaned = key + + if (key.includes('aquarius')) { + keyCleaned = key.replace(/\/api\/v1\/aquarius/gi, '') + } + + if (key.includes('brizo')) { + keyCleaned = key.replace(/\/api\/v1\/brizo/gi, '') + } + + return keyCleaned +} diff --git a/src/templates/Typedoc.jsx b/src/templates/Typedoc/Entities.jsx similarity index 59% rename from src/templates/Typedoc.jsx rename to src/templates/Typedoc/Entities.jsx index cd30dab0..f529598f 100644 --- a/src/templates/Typedoc.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -1,50 +1,11 @@ -import React, { Component } from 'react' +import React from 'react' import PropTypes from 'prop-types' -import { graphql } from 'gatsby' -import Helmet from 'react-helmet' import slugify from 'slugify' -import Layout from '../components/Layout' -import Content from '../components/Content' -import HeaderSection from '../components/HeaderSection' -import Sidebar from '../components/Sidebar' -import DocHeader from '../components/DocHeader' -import SEO from '../components/Seo' -import stylesDoc from './Doc.module.scss' -import styles from './Typedoc.module.scss' +import styles from './Entities.module.scss' // more kinds: 'Property', 'Class' const showKindOfProperty = ['Method', 'Property'] -const toc = typedoc => { - const items = typedoc - .map(({ name, children }) => { - const parentName = name - - return ` -
  • - - ${name} - -
      - ${children - .map( - ({ name }) => - `
    • - - ${name} - -
    • ` - ) - .join('')} -
    -
  • - ` - }) - .join('') - - return `
      ${items}
    ` -} - const Type = ({ type }) => { let isArray = false if (type.type === 'array') { @@ -116,6 +77,7 @@ const MethodDetails = ({ property }) => { const { isOptional } = flags const description = comment && (comment.text || comment.shortText) + return (
    +const Entities = ({ entities, sourceUrl }) => entities.map(({ name, comment, children }) => (

    @@ -264,6 +226,9 @@ const Entity = ({ entities, sourceUrl }) => )} {children + // TODO: this filter neeeds to be added in utils.js + // cleanTypedocData function to make content and + // sidebar TOC consistent .filter(({ kindString }) => showKindOfProperty.includes(kindString) ) @@ -278,124 +243,9 @@ const Entity = ({ entities, sourceUrl }) =>

    )) -Entity.propTypes = { +Entities.propTypes = { entities: PropTypes.array.isRequired, sourceUrl: PropTypes.string } -export default class TypedocTemplate extends Component { - static propTypes = { - data: PropTypes.object.isRequired, - location: PropTypes.object.isRequired, - pageContext: PropTypes.object.isRequired - } - - componentWillMount() { - const { typedoc, classes } = this.props.pageContext - this.setState({ - typedocData: this.cleanTypedocData(typedoc, classes) - }) - } - - cleanTypedocData(data, useClasses) { - const nodes = data.children - const cleanData = nodes - .map(node => ({ - ...node, - name: node.name.replace(/"/g, ''), - child: node.children && node.children[0] - })) - .filter(({ name }) => (useClasses || []).includes(name)) - .sort( - (a, b) => - useClasses.indexOf(a.name) - useClasses.indexOf(b.name) - ) - .map(({ child }) => child) - .map(node => ({ - ...node, - children: node.children.sort((a, b) => a.id - b.id) - })) - - return cleanData - } - - render() { - const { location, data, pageContext } = this.props - const { typedocData } = this.state - const sections = data.allSectionsYaml.edges - const { typedoc } = pageContext - const { info } = typedoc - const { title, description, version, sourceUrl } = info - - // output section title as defined in sections.yml - const sectionTitle = sections.map(({ node }) => { - // compare section against section title from sections.yml - if (node.title.toLowerCase().includes('references')) { - return node.title - } - }) - - return ( - <> - - - - - - - - - - -
    - -
    - - {version} - - } - /> - - -
    -
    -
    -
    - - ) - } -} - -export const TypedocQuery = graphql` - query { - allSectionsYaml { - edges { - node { - title - description - link - } - } - } - } -` +export default Entities diff --git a/src/templates/Typedoc.module.scss b/src/templates/Typedoc/Entities.module.scss similarity index 96% rename from src/templates/Typedoc.module.scss rename to src/templates/Typedoc/Entities.module.scss index 9bcecf8e..6ceff5ad 100644 --- a/src/templates/Typedoc.module.scss +++ b/src/templates/Typedoc/Entities.module.scss @@ -1,11 +1,5 @@ @import 'variables'; -.version { - font-size: $font-size-base; - font-family: $font-family-monospace; - color: $brand-grey-light; -} - .entityName { font-size: $font-size-h2; border-bottom: 1px solid $brand-grey-lighter; diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx new file mode 100644 index 00000000..97cac4c0 --- /dev/null +++ b/src/templates/Typedoc/Toc.jsx @@ -0,0 +1,33 @@ +import slugify from 'slugify' + +const Toc = typedoc => { + const subItems = (children, parentName) => + children + .map( + ({ name }) => + `
  • + + ${name} + +
  • ` + ) + .join('') + + const items = typedoc + .map( + ({ name, children }) => + `
  • + + ${name} + +
      + ${subItems(children, name)} +
    +
  • ` + ) + .join('') + + return `
      ${items}
    ` +} + +export default Toc diff --git a/src/templates/Typedoc/index.jsx b/src/templates/Typedoc/index.jsx new file mode 100644 index 00000000..a9b7ca6a --- /dev/null +++ b/src/templates/Typedoc/index.jsx @@ -0,0 +1,107 @@ +import React, { Component } from 'react' +import PropTypes from 'prop-types' +import { graphql } from 'gatsby' +import Helmet from 'react-helmet' +import Layout from '../../components/Layout' +import Content from '../../components/Content' +import HeaderSection from '../../components/HeaderSection' +import Sidebar from '../../components/Sidebar' +import DocHeader from '../../components/DocHeader' +import SEO from '../../components/Seo' +import { cleanTypedocData } from './utils' + +import Entities from './Entities' +import Toc from './Toc' + +import stylesDoc from '../Doc.module.scss' + +export default class TypedocTemplate extends Component { + static propTypes = { + data: PropTypes.object.isRequired, + location: PropTypes.object.isRequired, + pageContext: PropTypes.object.isRequired + } + + typedocCleaned = cleanTypedocData( + this.props.pageContext.typedoc, + this.props.pageContext.classes + ) + + // output section title as defined in sections.yml + sectionTitle = this.props.data.allSectionsYaml.edges.map(({ node }) => { + // compare section against section title from sections.yml + if (node.title.toLowerCase().includes('references')) { + return node.title + } + }) + + render() { + const { location, pageContext } = this.props + const { typedoc } = pageContext + const { info } = typedoc + const { title, description, version, sourceUrl } = info + + return ( + <> + + + + + + + + + + +
    + +
    + + {version} + + } + /> + + +
    +
    +
    +
    + + ) + } +} + +export const TypedocQuery = graphql` + query { + allSectionsYaml { + edges { + node { + title + description + link + } + } + } + } +` diff --git a/src/templates/Typedoc/utils.js b/src/templates/Typedoc/utils.js new file mode 100644 index 00000000..ec4fd515 --- /dev/null +++ b/src/templates/Typedoc/utils.js @@ -0,0 +1,19 @@ +export const cleanTypedocData = (data, useClasses) => { + const nodes = data.children + + const cleanData = nodes + .map(node => ({ + ...node, + name: node.name.replace(/"/g, ''), + child: node.children && node.children[0] + })) + .filter(({ name }) => (useClasses || []).includes(name)) + .sort((a, b) => useClasses.indexOf(a.name) - useClasses.indexOf(b.name)) + .map(({ child }) => child) + .map(node => ({ + ...node, + children: node.children.sort((a, b) => a.id - b.id) + })) + + return cleanData +} From 82569332a6edce8ea31f00d4b0af19bf886d08ad Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 22 Jan 2019 22:48:30 +0100 Subject: [PATCH 16/36] add link to squid-py reference page --- data/repositories.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/repositories.yml b/data/repositories.yml index 51cacd00..58e3199b 100644 --- a/data/repositories.yml +++ b/data/repositories.yml @@ -24,6 +24,9 @@ - name: API reference url: /references/squid-js/ - name: squid-py + links: + - name: API reference + url: /references/squid-py/ - name: squid-java - group: OceanDB From fa7037c419f300b97518e4f3d022411e72d5e81a Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 09:41:37 +0100 Subject: [PATCH 17/36] bump squid-js & dev-ocean submodules --- external/dev-ocean | 2 +- external/squid-js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/external/dev-ocean b/external/dev-ocean index 79786228..bb4bd802 160000 --- a/external/dev-ocean +++ b/external/dev-ocean @@ -1 +1 @@ -Subproject commit 79786228757f8e39092d9dd5adf387097f0b02f6 +Subproject commit bb4bd802b318f68b2f4a9568bbb0d25bde7e24a9 diff --git a/external/squid-js b/external/squid-js index 69ed0428..95a98daa 160000 --- a/external/squid-js +++ b/external/squid-js @@ -1 +1 @@ -Subproject commit 69ed0428b175aaa7e821b4bee3c577fb6ba43f09 +Subproject commit 95a98daa38acc8b57cdb47e037aad3cffcfc3404 From 160dc564baf096ab5cdf91c26cbdd9df13154fd8 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 10:00:06 +0100 Subject: [PATCH 18/36] sidebar TOC tweaks --- src/components/Sidebar.module.scss | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/components/Sidebar.module.scss b/src/components/Sidebar.module.scss index 0f709c7f..d5c76d73 100644 --- a/src/components/Sidebar.module.scss +++ b/src/components/Sidebar.module.scss @@ -79,6 +79,28 @@ &:focus { transform: none; color: $brand-purple; + + :global(.setup) & { + color: $brand-blue; + } + + :global(.tutorials) & { + color: $orange; + } + + :global(.references) & { + color: $green; + } + } +} + +.toc a { + padding-top: $spacer / 12; + padding-bottom: $spacer / 12; + + code { + background: none !important; // stylelint-disable-line + color: inherit !important; // stylelint-disable-line } } @@ -90,6 +112,7 @@ ul { border-left: 1px solid $brand-grey-lighter; margin-left: $spacer; + font-size: $font-size-small; } } @@ -112,4 +135,9 @@ color: $orange; border-left-color: $orange; } + + :global(.references) & { + color: $green; + border-left-color: $green; + } } From 3b97474d0ca282d39b6f4edf7fb3c63763720360 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 10:09:53 +0100 Subject: [PATCH 19/36] show only Methods --- src/templates/Typedoc/Entities.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index f529598f..51f3a21e 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -4,7 +4,7 @@ import slugify from 'slugify' import styles from './Entities.module.scss' // more kinds: 'Property', 'Class' -const showKindOfProperty = ['Method', 'Property'] +const showKindOfProperty = ['Method'] const Type = ({ type }) => { let isArray = false From b6498cbb184db05e15e60633279f0a73835c2c49 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 11:16:41 +0100 Subject: [PATCH 20/36] fix swagger TOC --- src/templates/Swagger/Toc.jsx | 27 +++++++++++++++------------ src/templates/Swagger/index.jsx | 2 +- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/templates/Swagger/Toc.jsx b/src/templates/Swagger/Toc.jsx index 6b4df0a3..42c4b68b 100644 --- a/src/templates/Swagger/Toc.jsx +++ b/src/templates/Swagger/Toc.jsx @@ -1,19 +1,22 @@ +import React from 'react' +import PropTypes from 'prop-types' import slugify from 'slugify' import { cleanPathKey } from './utils' -const Toc = api => { - const items = Object.keys(api.paths) - .map( - key => - `
  • - - ${cleanPathKey(key)} - -
  • ` - ) - .join('') +const Toc = ({ data }) => { + const items = Object.keys(data.paths).map(key => ( +
  • + + {cleanPathKey(key)} + +
  • + )) - return `
      ${items}
    ` + return
      {items}
    +} + +Toc.propTypes = { + data: PropTypes.array } export default Toc diff --git a/src/templates/Swagger/index.jsx b/src/templates/Swagger/index.jsx index 10077944..4cd75ad5 100644 --- a/src/templates/Swagger/index.jsx +++ b/src/templates/Swagger/index.jsx @@ -97,7 +97,7 @@ export default class ApiSwaggerTemplate extends Component { sidebar={'references'} collapsed toc - tableOfContents={Toc(api)} + tocComponent={} />
    From 09c8d41608114c40064a59e7fec804f0df452d51 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 11:42:32 +0100 Subject: [PATCH 21/36] toc as component, scrollspy prototype --- package.json | 1 + src/components/Sidebar.jsx | 21 +++----- src/components/Sidebar.module.scss | 7 +++ src/templates/Typedoc/Toc.jsx | 81 +++++++++++++++++++++--------- src/templates/Typedoc/index.jsx | 4 +- 5 files changed, 73 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index 648b0a09..d2c47b2f 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "react": "^16.6.3", "react-dom": "^16.6.3", "react-helmet": "^5.2.0", + "react-scrollspy": "^3.3.5", "rehype-react": "^3.1.0", "remark": "^10.0.1", "remark-react": "^5.0.0", diff --git a/src/components/Sidebar.jsx b/src/components/Sidebar.jsx index 9ef37a36..770a708d 100644 --- a/src/components/Sidebar.jsx +++ b/src/components/Sidebar.jsx @@ -34,13 +34,10 @@ SidebarLink.propTypes = { linkClasses: PropTypes.string } -const SidebarList = ({ items, location, toc, tableOfContents }) => ( +const SidebarList = ({ items, location, toc, tocComponent }) => (
    {toc ? ( -
    +
    {tocComponent}
    ) : (
      {items.map((item, j) => ( @@ -65,7 +62,7 @@ SidebarList.propTypes = { items: PropTypes.array.isRequired, location: PropTypes.object.isRequired, toc: PropTypes.bool, - tableOfContents: PropTypes.string + tocComponent: PropTypes.object } const SidebarGroupTitle = ({ group }) => ( @@ -104,19 +101,13 @@ export default class Sidebar extends Component { location: PropTypes.object.isRequired, collapsed: PropTypes.bool, toc: PropTypes.bool, - tableOfContents: PropTypes.string + tocComponent: PropTypes.element } static defaultProps = { location: { pathname: '/' } } render() { - const { - sidebar, - location, - collapsed, - toc, - tableOfContents - } = this.props + const { sidebar, location, collapsed, toc, tocComponent } = this.props if (sidebar) { try { @@ -143,7 +134,7 @@ export default class Sidebar extends Component { group={group} location={location} toc={toc} - tableOfContents={tableOfContents} + tocComponent={tocComponent} /> ) : ( diff --git a/src/components/Sidebar.module.scss b/src/components/Sidebar.module.scss index d5c76d73..2f664797 100644 --- a/src/components/Sidebar.module.scss +++ b/src/components/Sidebar.module.scss @@ -141,3 +141,10 @@ border-left-color: $green; } } + +.scrollspyActive { + > a { + color: $green; + border-left-color: $green; + } +} diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx index 97cac4c0..fdd2c47a 100644 --- a/src/templates/Typedoc/Toc.jsx +++ b/src/templates/Typedoc/Toc.jsx @@ -1,33 +1,64 @@ +import React from 'react' +import PropTypes from 'prop-types' import slugify from 'slugify' +import Scrollspy from 'react-scrollspy' +import stylesSidebar from '../../components/Sidebar.module.scss' -const Toc = typedoc => { +const Toc = ({ data }) => { const subItems = (children, parentName) => - children - .map( - ({ name }) => - `
    • - - ${name} - -
    • ` - ) - .join('') - - const items = typedoc - .map( - ({ name, children }) => - `
    • - - ${name} + children.map(({ name }) => { + return ( +
    • + + {name} -
        - ${subItems(children, name)} -
      -
    • ` - ) - .join('') + + ) + }) - return `
        ${items}
      ` + const items = data.map(({ name, children }) => { + // let subIds = [] + + // subIds.push( + // data.map(({ name, children }) => { + // const parentName = name + // let childId + + // children.map(({ name }) => { + // childId = `${parentName}-${slugify(name)}` + // }) + + // return childId + // }) + // ) + + // console.log(subIds) + + return ( +
    • + + {name} + +
        {subItems(children, name)}
      +
    • + ) + }) + + let Ids = [] + Ids.push(data.map(({ name }) => slugify(name))) + + return ( + + {items} + + ) +} + +Toc.propTypes = { + data: PropTypes.array } export default Toc diff --git a/src/templates/Typedoc/index.jsx b/src/templates/Typedoc/index.jsx index a9b7ca6a..a696578f 100644 --- a/src/templates/Typedoc/index.jsx +++ b/src/templates/Typedoc/index.jsx @@ -65,7 +65,9 @@ export default class TypedocTemplate extends Component { sidebar={'references'} collapsed toc - tableOfContents={Toc(this.typedocCleaned)} + tocComponent={ + + } />
      From 5a0f7eacc2e5c9bda5ee94a9f753a14938903f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Guti=C3=A9rrez?= Date: Mon, 28 Jan 2019 11:48:07 +0100 Subject: [PATCH 22/36] fixed deprecation links #45 --- gatsby-node.js | 3 +++ src/templates/Typedoc/Entities.jsx | 20 +++++++------------- src/templates/Typedoc/utils.js | 16 ++++++++++++++++ 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index c38c0f59..800a633f 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -226,6 +226,9 @@ exports.createPages = ({ graphql, actions }) => { // it generic for all TypeDoc specs classes: [ 'ocean/Ocean', + 'ocean/OceanAccounts', + 'ocean/OceanAssets', + 'ocean/OceanAgreements', 'ocean/Account', 'ocean/DID', 'ocean/ServiceAgreements/ServiceAgreement', diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index 51f3a21e..11dbd5a7 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -2,9 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import slugify from 'slugify' import styles from './Entities.module.scss' - -// more kinds: 'Property', 'Class' -const showKindOfProperty = ['Method'] +import { filterByKindOfProperty } from './utils' const Type = ({ type }) => { let isArray = false @@ -24,7 +22,7 @@ const Type = ({ type }) => { {typeArguments && ( - < + < {typeArguments.map((typeArgument, i) => ( @@ -134,9 +132,10 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { const deprecation = (decorators || []).filter( ({ name }) => name === 'deprecated' )[0] // Assuming deprecated annotation - let deprecatedUse + let deprecatedUse, deprecatedSlug if (deprecation) { - deprecatedUse = deprecation.arguments.alternative.replace(/'/g, '') + deprecatedUse = deprecation.arguments.alternative.replace(/('|")/g, '') + deprecatedSlug = slugify(deprecatedUse.replace('.', '-')) } const sourceLink = `${sourceUrl}${fileName}#L${line}` @@ -174,7 +173,7 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
      Deprecated: use{' '} - + {deprecatedUse} {' '} @@ -226,12 +225,7 @@ const Entities = ({ entities, sourceUrl }) => )} {children - // TODO: this filter neeeds to be added in utils.js - // cleanTypedocData function to make content and - // sidebar TOC consistent - .filter(({ kindString }) => - showKindOfProperty.includes(kindString) - ) + .filter(filterByKindOfProperty) .map(property => ( { return cleanData } + +// more kinds: 'Property', 'Class' +const showKindOfProperty = { + Method: true, + Property: {onlyPublic: true}, +} +export const filterByKindOfProperty = ({ kindString, flags }) => { + const config = showKindOfProperty[kindString] + if (!config) { + return + } + if (config.onlyPublic && !flags.isPublic) { + return + } + return true +} From 6c90d3767235bf76417dd39c9a8e1e9ce30dfda7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 11:59:40 +0100 Subject: [PATCH 23/36] scrollspy for sub items --- src/templates/Typedoc/Entities.jsx | 22 +++++------ src/templates/Typedoc/Toc.jsx | 59 ++++++++++++------------------ 2 files changed, 33 insertions(+), 48 deletions(-) diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index 11dbd5a7..451dc206 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -173,9 +173,7 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
      Deprecated: use{' '} - - {deprecatedUse} - + {deprecatedUse} {' '} instead
      @@ -224,16 +222,14 @@ const Entities = ({ entities, sourceUrl }) =>
      )} - {children - .filter(filterByKindOfProperty) - .map(property => ( - - ))} + {children.filter(filterByKindOfProperty).map(property => ( + + ))}
    )) diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx index fdd2c47a..43f0d25f 100644 --- a/src/templates/Typedoc/Toc.jsx +++ b/src/templates/Typedoc/Toc.jsx @@ -6,55 +6,44 @@ import stylesSidebar from '../../components/Sidebar.module.scss' const Toc = ({ data }) => { const subItems = (children, parentName) => - children.map(({ name }) => { - return ( -
  • - - {name} - -
  • - ) - }) + children.map(({ name }) => ( +
  • + + {name} + +
  • + )) const items = data.map(({ name, children }) => { - // let subIds = [] + let subIds = [] + const parentName = name - // subIds.push( - // data.map(({ name, children }) => { - // const parentName = name - // let childId - - // children.map(({ name }) => { - // childId = `${parentName}-${slugify(name)}` - // }) - - // return childId - // }) - // ) - - // console.log(subIds) + subIds.push( + children.map(({ name }) => { + return `${parentName}-${slugify(name)}` + }) + ) return (
  • {name} -
      {subItems(children, name)}
    + + {subItems(children, name)} +
  • ) }) - let Ids = [] - Ids.push(data.map(({ name }) => slugify(name))) + // let Ids = [] + // Ids.push(data.map(({ name }) => slugify(name))) - return ( - - {items} - - ) + return
      {items}
    } Toc.propTypes = { From 265921361669dfff077b0b81ad36131d0f4646ce Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 12:33:29 +0100 Subject: [PATCH 24/36] filter TOC data too, scrollspy everywhere --- src/templates/Swagger/Paths.jsx | 4 +-- src/templates/Swagger/Toc.jsx | 32 ++++++++++++++++------ src/templates/Typedoc/Entities.jsx | 4 +-- src/templates/Typedoc/Toc.jsx | 43 ++++++++++++++++++------------ src/templates/Typedoc/utils.js | 2 +- 5 files changed, 55 insertions(+), 30 deletions(-) diff --git a/src/templates/Swagger/Paths.jsx b/src/templates/Swagger/Paths.jsx index c5e2615c..b4583de5 100644 --- a/src/templates/Swagger/Paths.jsx +++ b/src/templates/Swagger/Paths.jsx @@ -137,8 +137,8 @@ Method.propTypes = { const Paths = ({ paths }) => Object.entries(paths).map(([key, value]) => ( -
    -

    +
    +

    {cleanPathKey(key)}

    diff --git a/src/templates/Swagger/Toc.jsx b/src/templates/Swagger/Toc.jsx index 42c4b68b..ad47d59a 100644 --- a/src/templates/Swagger/Toc.jsx +++ b/src/templates/Swagger/Toc.jsx @@ -1,18 +1,34 @@ import React from 'react' import PropTypes from 'prop-types' import slugify from 'slugify' +import Scrollspy from 'react-scrollspy' import { cleanPathKey } from './utils' +import stylesSidebar from '../../components/Sidebar.module.scss' const Toc = ({ data }) => { - const items = Object.keys(data.paths).map(key => ( -
  • - - {cleanPathKey(key)} - -
  • - )) + let Ids = [] - return
      {items}
    + const items = Object.keys(data.paths).map(key => { + Ids.push(slugify(cleanPathKey(key))) + + return ( +
  • + + {cleanPathKey(key)} + +
  • + ) + }) + + return ( + + {items} + + ) } Toc.propTypes = { diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index 451dc206..0a5b2799 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -211,8 +211,8 @@ PropertyWrapper.propTypes = { const Entities = ({ entities, sourceUrl }) => entities.map(({ name, comment, children }) => ( -
    -

    +
    +

    {name}

    diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx index 43f0d25f..6fef43b2 100644 --- a/src/templates/Typedoc/Toc.jsx +++ b/src/templates/Typedoc/Toc.jsx @@ -1,12 +1,17 @@ -import React from 'react' +import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import slugify from 'slugify' import Scrollspy from 'react-scrollspy' +import { filterByKindOfProperty } from './utils' import stylesSidebar from '../../components/Sidebar.module.scss' -const Toc = ({ data }) => { - const subItems = (children, parentName) => - children.map(({ name }) => ( +export default class Toc extends PureComponent { + static propTypes = { + data: PropTypes.array + } + + subItems = (children, parentName) => + children.filter(filterByKindOfProperty).map(({ name }) => (
  • {name} @@ -14,12 +19,12 @@ const Toc = ({ data }) => {
  • )) - const items = data.map(({ name, children }) => { + items = this.props.data.map(({ name, children }) => { let subIds = [] const parentName = name subIds.push( - children.map(({ name }) => { + children.filter(filterByKindOfProperty).map(({ name }) => { return `${parentName}-${slugify(name)}` }) ) @@ -32,22 +37,26 @@ const Toc = ({ data }) => { - {subItems(children, name)} + {this.subItems(children, name)} ) }) - // let Ids = [] - // Ids.push(data.map(({ name }) => slugify(name))) + render() { + let Ids = [] + Ids.push(this.props.data.map(({ name }) => name)) - return
      {items}
    + return ( + + {this.items} + + ) + } } - -Toc.propTypes = { - data: PropTypes.array -} - -export default Toc diff --git a/src/templates/Typedoc/utils.js b/src/templates/Typedoc/utils.js index bd5adfd1..582e4824 100644 --- a/src/templates/Typedoc/utils.js +++ b/src/templates/Typedoc/utils.js @@ -21,7 +21,7 @@ export const cleanTypedocData = (data, useClasses) => { // more kinds: 'Property', 'Class' const showKindOfProperty = { Method: true, - Property: {onlyPublic: true}, + Property: { onlyPublic: true } } export const filterByKindOfProperty = ({ kindString, flags }) => { const config = showKindOfProperty[kindString] From 16b0a2270f05d18c7b2bf1adf247f19c273493b1 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 12:40:12 +0100 Subject: [PATCH 25/36] scrollspy for sub items only --- src/templates/Typedoc/Entities.jsx | 8 ++++++-- src/templates/Typedoc/Toc.jsx | 15 ++------------- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index 0a5b2799..a49839e8 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -142,12 +142,16 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { return (
    -

    {name}

    +

    + {name} +

    {this.subItems(children, name)} @@ -46,17 +46,6 @@ export default class Toc extends PureComponent { }) render() { - let Ids = [] - Ids.push(this.props.data.map(({ name }) => name)) - - return ( - - {this.items} - - ) + return
      {this.items}
    } } From ad1fded323ae59079009758f53fc1292ab813232 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 13:42:50 +0100 Subject: [PATCH 26/36] fix TOC item clicks, dim deprecated items, minimal deprecated entities --- src/components/Sidebar.module.scss | 6 ++++++ src/templates/Typedoc/Entities.jsx | 10 +++------- src/templates/Typedoc/Entities.module.scss | 8 ++++++-- src/templates/Typedoc/Toc.jsx | 23 +++++++++++++++------- 4 files changed, 31 insertions(+), 16 deletions(-) diff --git a/src/components/Sidebar.module.scss b/src/components/Sidebar.module.scss index 2f664797..259095b2 100644 --- a/src/components/Sidebar.module.scss +++ b/src/components/Sidebar.module.scss @@ -148,3 +148,9 @@ border-left-color: $green; } } + +[data-deprecated='true'] { + code { + opacity: .5; + } +} diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index a49839e8..7ece9053 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -145,13 +145,9 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => { className={styles.property} data-private={!isPublic} data-deprecated={!!deprecation} + id={`${parentAnchor}-${slugify(name)}`} > -

    - {name} -

    +

    {name}

    {
    )} - {comment && ( + {comment && !deprecation && (
    {comment.text || comment.shortText}
    diff --git a/src/templates/Typedoc/Entities.module.scss b/src/templates/Typedoc/Entities.module.scss index 6ceff5ad..79f1dad0 100644 --- a/src/templates/Typedoc/Entities.module.scss +++ b/src/templates/Typedoc/Entities.module.scss @@ -32,6 +32,10 @@ opacity: .5; } + code { + opacity: 1; + } + .sourceLink { display: none; } @@ -107,10 +111,10 @@ .deprecation { font-size: $font-size-small; - margin-bottom: $spacer / 4; + margin-top: $spacer / 4; strong { - color: $red; + color: $brand-grey-light; } } diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx index e5121e45..baee0fa5 100644 --- a/src/templates/Typedoc/Toc.jsx +++ b/src/templates/Typedoc/Toc.jsx @@ -11,13 +11,22 @@ export default class Toc extends PureComponent { } subItems = (children, parentName) => - children.filter(filterByKindOfProperty).map(({ name }) => ( -
  • - - {name} - -
  • - )) + children.filter(filterByKindOfProperty).map(({ name, decorators }) => { + const deprecation = (decorators || []).filter( + ({ name }) => name === 'deprecated' + )[0] // Assuming deprecated annotation + + return ( +
  • + + {name} + +
  • + ) + }) items = this.props.data.map(({ name, children }) => { let subIds = [] From e8c16668c24af41ce2eec7d99446a482eec8c4ff Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 13:57:48 +0100 Subject: [PATCH 27/36] sidebar style cleanup --- src/components/Sidebar.module.scss | 34 ++++++++++++++---------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/src/components/Sidebar.module.scss b/src/components/Sidebar.module.scss index 259095b2..e8c3d50d 100644 --- a/src/components/Sidebar.module.scss +++ b/src/components/Sidebar.module.scss @@ -16,8 +16,8 @@ } &::-webkit-scrollbar { - width: 6px; - height: 6px; + width: 8px; + height: 8px; } &::-webkit-scrollbar-thumb { @@ -94,16 +94,6 @@ } } -.toc a { - padding-top: $spacer / 12; - padding-bottom: $spacer / 12; - - code { - background: none !important; // stylelint-disable-line - color: inherit !important; // stylelint-disable-line - } -} - .toc { ul { padding-left: 0; @@ -119,6 +109,20 @@ li { margin: 0; } + + a { + padding-top: $spacer / 12; + padding-bottom: $spacer / 12; + } + + code { + background: none !important; // stylelint-disable-line + color: inherit !important; // stylelint-disable-line + } + + [data-deprecated='true'] code { + opacity: .5; + } } .active { @@ -148,9 +152,3 @@ border-left-color: $green; } } - -[data-deprecated='true'] { - code { - opacity: .5; - } -} From 5fc4bec0f38e05ea10d729da4f5d04f90788f539 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 14:04:26 +0100 Subject: [PATCH 28/36] native smooth scrolling --- src/styles/global.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/styles/global.scss b/src/styles/global.scss index 30455358..1eb9b596 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -11,6 +11,7 @@ html { font-size: $font-size-root; + scroll-behavior: smooth; } body { From ffee29e8dbd0044c9bc80ed205d7d8f77f9cad56 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 15:12:12 +0100 Subject: [PATCH 29/36] smooth scrolling for everyone --- package.json | 1 + src/styles/global.scss | 1 - src/templates/Typedoc/Toc.jsx | 15 +++--- src/templates/Typedoc/TocScroll.jsx | 79 +++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+), 7 deletions(-) create mode 100644 src/templates/Typedoc/TocScroll.jsx diff --git a/package.json b/package.json index d2c47b2f..257b26fb 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "remark": "^10.0.1", "remark-react": "^5.0.0", "slugify": "^1.3.4", + "smoothscroll-polyfill": "^0.4.3", "swagger-client": "^3.8.22" }, "devDependencies": { diff --git a/src/styles/global.scss b/src/styles/global.scss index 1eb9b596..30455358 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -11,7 +11,6 @@ html { font-size: $font-size-root; - scroll-behavior: smooth; } body { diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx index baee0fa5..01f50d60 100644 --- a/src/templates/Typedoc/Toc.jsx +++ b/src/templates/Typedoc/Toc.jsx @@ -2,6 +2,7 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import slugify from 'slugify' import Scrollspy from 'react-scrollspy' +import TocScroll from './TocScroll' import { filterByKindOfProperty } from './utils' import stylesSidebar from '../../components/Sidebar.module.scss' @@ -18,12 +19,14 @@ export default class Toc extends PureComponent { return (
  • - {name} - +
  • ) }) @@ -40,9 +43,9 @@ export default class Toc extends PureComponent { return (
  • - + {name} - + { + e.preventDefault() + + let elem = 0 + let scroll = true + const { type, element, offset, timeout } = this.props + + if (type && element) { + switch (type) { + case 'class': + // eslint-disable-next-line prefer-destructuring + elem = document.getElementsByClassName(element)[0] + scroll = !!elem + break + case 'id': + elem = document.getElementById(element) + scroll = !!elem + break + default: + } + } + + scroll + ? this.scrollTo(elem, offset, timeout) + : console.log(`Element not found: ${element}`) // eslint-disable-line + } + + scrollTo(element, offSet = 0, timeout = null) { + const elemPos = element + ? element.getBoundingClientRect().top + window.pageYOffset + : 0 + + if (timeout) { + setTimeout(() => { + window.scroll({ + top: elemPos + offSet, + left: 0, + behavior: 'smooth' + }) + }, timeout) + } else { + window.scroll({ + top: elemPos + offSet, + left: 0, + behavior: 'smooth' + }) + } + } + + render() { + return ( + + {this.props.children} + + ) + } +} From 956fe45529ce617d162ba2433b4bdb5ffc8e3285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Guti=C3=A9rrez?= Date: Mon, 28 Jan 2019 15:26:02 +0100 Subject: [PATCH 30/36] improved scroll spy detection --- src/templates/Typedoc/Toc.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx index 01f50d60..9fc5b92e 100644 --- a/src/templates/Typedoc/Toc.jsx +++ b/src/templates/Typedoc/Toc.jsx @@ -49,7 +49,7 @@ export default class Toc extends PureComponent { {this.subItems(children, name)} From 7f555bbe115f3b885c6c91ccf5a6c17c6ae7ba73 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 15:38:53 +0100 Subject: [PATCH 31/36] update urls on TOC click --- src/templates/Typedoc/TocScroll.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/templates/Typedoc/TocScroll.jsx b/src/templates/Typedoc/TocScroll.jsx index 049e0d7e..c94ff3dc 100644 --- a/src/templates/Typedoc/TocScroll.jsx +++ b/src/templates/Typedoc/TocScroll.jsx @@ -41,6 +41,11 @@ export default class TocScroll extends React.Component { scroll ? this.scrollTo(elem, offset, timeout) : console.log(`Element not found: ${element}`) // eslint-disable-line + + // update browser url + if (typeof window !== 'undefined') { + window.history.pushState({}, null, `#${element}`) + } } scrollTo(element, offSet = 0, timeout = null) { From 8923f35d005ba9d37a700e024763ad5d8255549f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Mon, 28 Jan 2019 15:59:01 +0100 Subject: [PATCH 32/36] generalize scrolling component, use it in all the API docs --- .../TocScroll.jsx => components/Scroll.jsx} | 5 ++--- src/components/Sidebar.module.scss | 4 ++-- src/styles/global.scss | 8 ++++---- src/templates/Swagger/Toc.jsx | 11 ++++++++--- src/templates/Typedoc/Entities.jsx | 15 +++++++++++++-- src/templates/Typedoc/Entities.module.scss | 2 ++ src/templates/Typedoc/Toc.jsx | 12 ++++++------ 7 files changed, 37 insertions(+), 20 deletions(-) rename src/{templates/Typedoc/TocScroll.jsx => components/Scroll.jsx} (93%) diff --git a/src/templates/Typedoc/TocScroll.jsx b/src/components/Scroll.jsx similarity index 93% rename from src/templates/Typedoc/TocScroll.jsx rename to src/components/Scroll.jsx index c94ff3dc..e50270ab 100644 --- a/src/templates/Typedoc/TocScroll.jsx +++ b/src/components/Scroll.jsx @@ -8,8 +8,7 @@ export default class TocScroll extends React.Component { element: PropTypes.string, offset: PropTypes.number, timeout: PropTypes.number, - children: PropTypes.node.isRequired, - deprecation: PropTypes.bool + children: PropTypes.node.isRequired } componentDidMount() { @@ -75,7 +74,7 @@ export default class TocScroll extends React.Component { {this.props.children} diff --git a/src/components/Sidebar.module.scss b/src/components/Sidebar.module.scss index e8c3d50d..3b2ea2f4 100644 --- a/src/components/Sidebar.module.scss +++ b/src/components/Sidebar.module.scss @@ -116,8 +116,8 @@ } code { - background: none !important; // stylelint-disable-line - color: inherit !important; // stylelint-disable-line + background: none; + color: inherit; } [data-deprecated='true'] code { diff --git a/src/styles/global.scss b/src/styles/global.scss index 30455358..cc372c02 100644 --- a/src/styles/global.scss +++ b/src/styles/global.scss @@ -283,11 +283,11 @@ samp { } :not(pre) > code { - background: darken($brand-white, 5%) !important; - color: $brand-grey-dark !important; + background: darken($brand-white, 5%); + color: $brand-grey-dark; display: inline-block; - padding-left: .3rem !important; - padding-right: .3rem !important; + padding-left: .3rem; + padding-right: .3rem; } pre { diff --git a/src/templates/Swagger/Toc.jsx b/src/templates/Swagger/Toc.jsx index ad47d59a..c7e24cd4 100644 --- a/src/templates/Swagger/Toc.jsx +++ b/src/templates/Swagger/Toc.jsx @@ -2,6 +2,7 @@ import React from 'react' import PropTypes from 'prop-types' import slugify from 'slugify' import Scrollspy from 'react-scrollspy' +import Scroll from '../../components/Scroll' import { cleanPathKey } from './utils' import stylesSidebar from '../../components/Sidebar.module.scss' @@ -13,9 +14,13 @@ const Toc = ({ data }) => { return (
  • - + {cleanPathKey(key)} - +
  • ) }) @@ -32,7 +37,7 @@ const Toc = ({ data }) => { } Toc.propTypes = { - data: PropTypes.array + data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]) } export default Toc diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index 7ece9053..d2b0da69 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -1,6 +1,7 @@ import React from 'react' import PropTypes from 'prop-types' import slugify from 'slugify' +import Scroll from '../../components/Scroll' import styles from './Entities.module.scss' import { filterByKindOfProperty } from './utils' @@ -16,7 +17,11 @@ const Type = ({ type }) => { return (
    - {isInternal && {type.name}} + {isInternal && ( + + {type.name} + + )} {!isInternal && {type.name}} @@ -173,7 +178,13 @@ const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {
    Deprecated: use{' '} - {deprecatedUse} + + {deprecatedUse} + {' '} instead
    diff --git a/src/templates/Typedoc/Entities.module.scss b/src/templates/Typedoc/Entities.module.scss index 79f1dad0..3455e215 100644 --- a/src/templates/Typedoc/Entities.module.scss +++ b/src/templates/Typedoc/Entities.module.scss @@ -34,6 +34,8 @@ code { opacity: 1; + background: none; + padding: 0; } .sourceLink { diff --git a/src/templates/Typedoc/Toc.jsx b/src/templates/Typedoc/Toc.jsx index 9fc5b92e..d66d77c4 100644 --- a/src/templates/Typedoc/Toc.jsx +++ b/src/templates/Typedoc/Toc.jsx @@ -2,7 +2,7 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import slugify from 'slugify' import Scrollspy from 'react-scrollspy' -import TocScroll from './TocScroll' +import Scroll from '../../components/Scroll' import { filterByKindOfProperty } from './utils' import stylesSidebar from '../../components/Sidebar.module.scss' @@ -19,14 +19,14 @@ export default class Toc extends PureComponent { return (
  • - {name} - +
  • ) }) @@ -43,9 +43,9 @@ export default class Toc extends PureComponent { return (
  • - + {name} - + Date: Mon, 28 Jan 2019 16:55:00 +0100 Subject: [PATCH 33/36] only update url if element exists --- src/components/Scroll.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/Scroll.jsx b/src/components/Scroll.jsx index e50270ab..06fbfae4 100644 --- a/src/components/Scroll.jsx +++ b/src/components/Scroll.jsx @@ -37,13 +37,15 @@ export default class TocScroll extends React.Component { } } - scroll - ? this.scrollTo(elem, offset, timeout) - : console.log(`Element not found: ${element}`) // eslint-disable-line + if (scroll) { + this.scrollTo(elem, offset, timeout) - // update browser url - if (typeof window !== 'undefined') { - window.history.pushState({}, null, `#${element}`) + // update browser url + if (typeof window !== 'undefined') { + window.history.pushState({}, null, `#${element}`) + } + } else { + console.log(`Element not found: ${element}`) // eslint-disable-line } } From c45504ccc21cc558bce33a1e05a5e94ef21af090 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 29 Jan 2019 11:34:31 +0100 Subject: [PATCH 34/36] only show public methods --- src/templates/Typedoc/utils.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/templates/Typedoc/utils.js b/src/templates/Typedoc/utils.js index 582e4824..3b2be881 100644 --- a/src/templates/Typedoc/utils.js +++ b/src/templates/Typedoc/utils.js @@ -20,16 +20,15 @@ export const cleanTypedocData = (data, useClasses) => { // more kinds: 'Property', 'Class' const showKindOfProperty = { - Method: true, + Method: { onlyPublic: true }, Property: { onlyPublic: true } } + export const filterByKindOfProperty = ({ kindString, flags }) => { const config = showKindOfProperty[kindString] - if (!config) { - return - } - if (config.onlyPublic && !flags.isPublic) { - return - } + if (!config) return + + if (config.onlyPublic && !flags.isPublic) return + return true } From ed7695f1721e190f421f6008dfe221c7cdf027ac Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 29 Jan 2019 11:39:15 +0100 Subject: [PATCH 35/36] output some models --- gatsby-node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gatsby-node.js b/gatsby-node.js index 800a633f..6684049a 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -241,7 +241,9 @@ exports.createPages = ({ graphql, actions }) => { 'brizo/Brizo', 'keeper/Keeper', 'keeper/Web3Provider', - 'secretstore/SecretStoreProvider' + 'secretstore/SecretStoreProvider', + 'models/Config', + 'models/Balance' ] } }) From 7253a6aeb9c08890a3601021fd8d090b799ab548 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 29 Jan 2019 11:45:46 +0100 Subject: [PATCH 36/36] point to squid-js release branch --- external/squid-js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/squid-js b/external/squid-js index 95a98daa..89cd8fd7 160000 --- a/external/squid-js +++ b/external/squid-js @@ -1 +1 @@ -Subproject commit 95a98daa38acc8b57cdb47e037aad3cffcfc3404 +Subproject commit 89cd8fd744ad5c61273b5da595e33f3b80c29c4f