2022-04-22 12:22:17 +00:00
|
|
|
{
|
2022-12-13 15:03:34 +00:00
|
|
|
"name": "@cerc-io/laconic-registry-cli",
|
Add pagination to list records CLI (#82)
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8)
Requires https://git.vdb.to/cerc-io/registry-sdk/pulls/27
Example CLI commands with changes:
```bash
laconic registry record list --type WebsiteRegistrationRecord --all true | jq 'length'
# 16
laconic registry record list --limit 4 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]'
# [
# {
# "id": "bafyreifmjc7kc76ihrolzqhynwrebjyr7bw7pstlv2lcdq5qu4cleql7ke",
# "createTime": "2024-09-05T13:25:46Z"
# },
# {
# "id": "bafyreifipscluxu43nx5frx54tyxnkkki2edsw3jydgexfjsluq674esfa",
# "createTime": "2024-09-05T13:25:49Z"
# },
# {
# "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy",
# "createTime": "2024-09-05T13:25:52Z"
# },
# {
# "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe",
# "createTime": "2024-09-05T13:25:55Z"
# }
# ]
laconic registry record list --limit 4 --offset 2 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]'
# [
# {
# "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy",
# "createTime": "2024-09-05T13:25:52Z"
# },
# {
# "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe",
# "createTime": "2024-09-05T13:25:55Z"
# },
# {
# "id": "bafyreieku22he546fsxrgwxd3mfpbtcobwjasl6zimkizl65rwvybwerci",
# "createTime": "2024-09-05T13:25:58Z"
# },
# {
# "id": "bafyreia4zjuap7v3tnilersrzsht75mqf3mhzsk72jgpcct7u6lj54zwyq",
# "createTime": "2024-09-05T13:26:01Z"
# }
# ]
```
Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: https://git.vdb.to/cerc-io/laconic-registry-cli/pulls/82
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-09-05 13:51:42 +00:00
|
|
|
"version": "0.2.7",
|
2022-04-22 12:22:17 +00:00
|
|
|
"main": "index.js",
|
2022-12-13 15:03:34 +00:00
|
|
|
"repository": "git@github.com:cerc-io/laconic-registry-cli.git",
|
2022-04-22 12:22:17 +00:00
|
|
|
"author": "",
|
|
|
|
"license": "UNLICENSED",
|
|
|
|
"devDependencies": {
|
2022-04-26 06:57:02 +00:00
|
|
|
"@types/fs-extra": "^9.0.13",
|
2024-01-29 04:46:32 +00:00
|
|
|
"@types/jest": "^27.4.1",
|
2022-04-25 06:27:40 +00:00
|
|
|
"@types/js-yaml": "^4.0.5",
|
|
|
|
"@types/lodash": "^4.14.182",
|
2022-04-22 12:22:17 +00:00
|
|
|
"@types/node": "^17.0.25",
|
|
|
|
"@types/yargs": "^17.0.10",
|
2024-01-29 05:21:34 +00:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.47.1",
|
|
|
|
"@typescript-eslint/parser": "^5.47.1",
|
|
|
|
"dotenv": "^16.3.2",
|
|
|
|
"eslint": "^8.35.0",
|
|
|
|
"eslint-config-semistandard": "^15.0.1",
|
|
|
|
"eslint-config-standard": "^16.0.3",
|
|
|
|
"eslint-plugin-import": "^2.27.5",
|
|
|
|
"eslint-plugin-node": "^11.1.0",
|
|
|
|
"eslint-plugin-promise": "^5.1.0",
|
|
|
|
"eslint-plugin-standard": "^5.0.0",
|
|
|
|
"husky": "^9.0.2",
|
2024-01-29 04:46:32 +00:00
|
|
|
"jest": "29.0.0",
|
|
|
|
"ts-jest": "^29.0.2",
|
2024-05-09 10:35:54 +00:00
|
|
|
"ts-node": "^10.2.1",
|
2022-04-22 12:22:17 +00:00
|
|
|
"typescript": "^4.6.3"
|
|
|
|
},
|
|
|
|
"dependencies": {
|
Add pagination to list records CLI (#82)
Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8)
Requires https://git.vdb.to/cerc-io/registry-sdk/pulls/27
Example CLI commands with changes:
```bash
laconic registry record list --type WebsiteRegistrationRecord --all true | jq 'length'
# 16
laconic registry record list --limit 4 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]'
# [
# {
# "id": "bafyreifmjc7kc76ihrolzqhynwrebjyr7bw7pstlv2lcdq5qu4cleql7ke",
# "createTime": "2024-09-05T13:25:46Z"
# },
# {
# "id": "bafyreifipscluxu43nx5frx54tyxnkkki2edsw3jydgexfjsluq674esfa",
# "createTime": "2024-09-05T13:25:49Z"
# },
# {
# "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy",
# "createTime": "2024-09-05T13:25:52Z"
# },
# {
# "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe",
# "createTime": "2024-09-05T13:25:55Z"
# }
# ]
laconic registry record list --limit 4 --offset 2 --type WebsiteRegistrationRecord --all true | jq '[.[] | {id, createTime}]'
# [
# {
# "id": "bafyreidco4d3pjro2fp6rinlazm3xcsnfm2ibzeigsqwlmmtvne25ukpjy",
# "createTime": "2024-09-05T13:25:52Z"
# },
# {
# "id": "bafyreigqoz4ffaqod5fut3rebrtctnp3ktvph46fgocmgmfqbkofnmombe",
# "createTime": "2024-09-05T13:25:55Z"
# },
# {
# "id": "bafyreieku22he546fsxrgwxd3mfpbtcobwjasl6zimkizl65rwvybwerci",
# "createTime": "2024-09-05T13:25:58Z"
# },
# {
# "id": "bafyreia4zjuap7v3tnilersrzsht75mqf3mhzsk72jgpcct7u6lj54zwyq",
# "createTime": "2024-09-05T13:26:01Z"
# }
# ]
```
Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: https://git.vdb.to/cerc-io/laconic-registry-cli/pulls/82
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-09-05 13:51:42 +00:00
|
|
|
"@cerc-io/registry-sdk": "^0.2.8",
|
2024-08-23 07:03:47 +00:00
|
|
|
"@cosmjs/stargate": "^0.32.2",
|
2024-01-29 04:46:32 +00:00
|
|
|
"fs-extra": "^10.1.0",
|
2022-09-28 19:35:51 +00:00
|
|
|
"js-yaml": "^3.14.1",
|
2022-04-25 06:27:40 +00:00
|
|
|
"lodash": "^4.17.21",
|
|
|
|
"lodash-clean": "^2.2.3",
|
2022-04-22 12:22:17 +00:00
|
|
|
"yargs": "^17.4.1"
|
|
|
|
},
|
|
|
|
"scripts": {
|
2024-01-29 04:46:32 +00:00
|
|
|
"test": "jest --runInBand --verbose test/cli.test.ts",
|
2022-04-22 12:22:17 +00:00
|
|
|
"lint": "eslint .",
|
|
|
|
"clean": "rm -rf ./dist",
|
2024-01-29 05:21:34 +00:00
|
|
|
"build": "tsc",
|
|
|
|
"prepare": "husky"
|
2022-04-22 12:22:17 +00:00
|
|
|
},
|
|
|
|
"bin": {
|
2022-09-28 19:31:20 +00:00
|
|
|
"laconic": "bin/laconic"
|
2022-04-22 12:22:17 +00:00
|
|
|
}
|
2024-03-18 13:58:52 +00:00
|
|
|
}
|