Add a script to publish records from a given directory #62
10
README.md
10
README.md
@ -549,10 +549,16 @@ $ laconic registry bond records reassociate --old-bond-id 5c40abd336ae1561f2a1b5
|
|||||||
|
|
||||||
* Create and populate `config.yml`
|
* Create and populate `config.yml`
|
||||||
|
|
||||||
* Publish records from [`endpoint-records`](./endpoint-records):
|
* Publish watcher records from [`records/watcher`](./records/watcher):
|
||||||
|
|
||||||
```bash
|
```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 the records at <http://localhost:9473>:
|
||||||
|
10
records/watcher-deployments/AjnaWatcherDeploymentRecord.json
Normal file
10
records/watcher-deployments/AjnaWatcherDeploymentRecord.json
Normal 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"
|
||||||
|
}
|
11
records/watcher/AjnaWatcherRecord.json
Normal file
11
records/watcher/AjnaWatcherRecord.json
Normal 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"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user