Add a script to publish records from a given directory #62

Merged
ashwin merged 20 commits from deep-stack/laconic-registry-cli:pm-endpoint-records into laconic2 2024-05-09 10:35:55 +00:00
10 changed files with 76 additions and 9 deletions
Showing only changes of commit 5584290e5a - Show all commits

View File

@ -561,7 +561,7 @@ $ laconic registry bond records reassociate --old-bond-id 5c40abd336ae1561f2a1b5
yarn ts-node src/publish-endponit-records.ts -c config.yml -r records/watcher-deployments
```
* View the records at <http://localhost:9473>:
* View the records at laconicd GQL endpoint <http://localhost:9473>:
```gql
{

View File

@ -1,7 +1,7 @@
{
"type": "WatcherRecord",
"version": "0.0.1",
"schema_id": "watcher-record-schema-id",
"version": "0.1.0",
"schema": "",
"name": "ajna-watcher",
"repository": "https://git.vdb.to/cerc-io/ajna-watcher-ts",
"repository_ref": "66b8d96308eacab1ef6a4f3cb74a0f28fb18dc67",

View File

@ -0,0 +1,11 @@
{
"type": "WatcherRecord",
"version": "0.1.0",
"schema": "",
"name": "azimuth-watcher",
"repository": "https://github.com/cerc-io/azimuth-watcher-ts",
"repository_ref": "ffd8baa4bcdd0b0fff701d942de572b7ddf33191",
"watcher_version": "0.1.3",
"is_subgraph_watcher": false,
"chain": "ethereum"
}

View File

@ -0,0 +1,11 @@
{
"type": "WatcherRecord",
"version": "0.1.0",
"schema": "",
"name": "merkl-sushiswap-v3-watcher",
"repository": "https://github.com/cerc-io/merkl-sushiswap-v3-watcher-ts",
"repository_ref": "b7cf79883e73400ad064b0357208c167795ab521",
"watcher_version": "0.1.9",
"is_subgraph_watcher": true,
"chain": "filecoin"
}

View File

@ -0,0 +1,11 @@
{
"type": "WatcherRecord",
"version": "0.1.0",
"schema": "",
"name": "sushiswap-v3-watcher",
"repository": "https://github.com/cerc-io/sushiswap-v3-watcher-ts",
"repository_ref": "2f9f4d1ca191805922a51d1e3b471c06314fbc64",
"watcher_version": "0.1.9",
"is_subgraph_watcher": true,
"chain": "filecoin"
}

View File

@ -1,10 +1,11 @@
{
"type": "WatcherDeploymentRecord",
"version": "0.0.1",
"schema_id": "watcher-deployment-record-schema-id",
"name": "ajna-watcher",
"watcher": "watcher-record-id",
"version": "0.1.0",
"schema": "",
"request": "",
"name": "ajna-watcher",
"watcher": "<watcher-record-id>",
"kind": "active",
"url": "https://ajna-watcher-endpoint.example.com",
"kind": "active"
"requires_api_key": "true"
}

View File

@ -0,0 +1,11 @@
{
"type": "WatcherDeploymentRecord",
"version": "0.1.0",
"schema": "",
"request": "",
"name": "azimuth-watcher",
"watcher": "<watcher-record-id>",
"kind": "active",
"url": "https://azimuth-watcher-endpoint.example.com",
"requires_api_key": "false"
}

View File

@ -0,0 +1,11 @@
{
"type": "WatcherDeploymentRecord",
"version": "0.1.0",
"schema": "",
"request": "",
"name": "merkl-sushiswap-v3-watcher",
"watcher": "<watcher-record-id>",
"kind": "active",
"url": "https://merkl-sushiswap-v3-watcher-endpoint.example.com",
"requires_api_key": "false"
}

View File

@ -0,0 +1,11 @@
{
"type": "WatcherDeploymentRecord",
"version": "0.1.0",
"schema": "",
"request": "",
"name": "sushiswap-v3-watcher",
"watcher": "<watcher-record-id>",
"kind": "active",
"url": "https://sushiswap-v3-watcher-endpoint.example.com",
"requires_api_key": "false"
}

View File

@ -72,6 +72,6 @@ main()
.catch(err => {
console.error(err);
})
.then(() => {
.finally(() => {
console.log('Done');
});