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
4 changed files with 29 additions and 2 deletions
Showing only changes of commit 9f094ec9d4 - Show all commits

View File

@ -549,10 +549,16 @@ $ laconic registry bond records reassociate --old-bond-id 5c40abd336ae1561f2a1b5
* Create and populate `config.yml`
* Publish records from [`endpoint-records`](./endpoint-records):
* Publish watcher records from [`records/watcher`](./records/watcher):
```bash
yarn ts-node src/publish-endponit-records.ts -c config.yml -r endpoint-records
yarn ts-node src/publish-endponit-records.ts -c config.yml -r records/watcher
```
* Publish watcher deployment records from [`records/watcher-deployments`](./records/watcher-deployments):
```bash
yarn ts-node src/publish-endponit-records.ts -c config.yml -r records/watcher-deployments
```
* View the records at <http://localhost:9473>:

View File

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

View File

@ -0,0 +1,11 @@
{
"type": "WatcherRecord",
"version": "0.0.1",
"schema_id": "watcher-record-schema-id",
"name": "ajna-watcher",
"repository": "https://git.vdb.to/cerc-io/ajna-watcher-ts",
"repository_ref": "66b8d96308eacab1ef6a4f3cb74a0f28fb18dc67",
"watcher_version": "0.1.3",
"is_subgraph_watcher": true,
"chain": "filecoin"
}