Add a query to list authorities #42

Merged
nabarun merged 4 commits from pm-list-authorities into main 2024-07-24 09:14:40 +00:00
Member

Part of Add a CLI query to list all authorities with owner filter

Usage:

$ laconicd query registry list-authorities -h
List authorities (optionally by owner)
Usage:
  laconicd query registry list-authorities [flags]
Flags:
      --grpc-addr string   the gRPC endpoint to use for this chain
      --grpc-insecure      allow gRPC over insecure channels, if not the server must use TLS
      --height int         Use a specific height to query state at (this can error if the node is pruning state)
  -h, --help               help for list-authorities
      --no-indent          Do not indent JSON output
      --node string        <host>:<port> to CometBFT RPC interface for this chain (default "tcp://localhost:26657")
  -o, --output string      Output format (text|json) (default "text")
      --owner string       Owner to get the authorities for

Example:

# Without owner filter
$ laconicd query registry list-authorities
authorities:
- entry:
    expiry_time: "2024-07-26T06:54:28.491158167Z"
    height: "247"
    owner_address: laconic1e23vfttpvk045pqeydr4mujmlemx8hf9zjm7h2
    owner_public_key: A6RlTGLIpyA8nnEQN4V3sz3uaLMY0fHtB7aS7u1zTOdD
    status: active
  name: cerc
- entry:
    expiry_time: "2024-07-26T06:47:58.971429925Z"
    height: "118"
    owner_address: laconic10ztdu07xn7rracvzvehelgwvsytqlrvj6pvput
    owner_public_key: AvBxGIXBFmWCF+OHFwydqEtp2bfP+aimObO3teunbve7
    status: active
  name: laconic

# With owner filter
$ laconicd query registry list-authorities --owner laconic1e23vfttpvk045pqeydr4mujmlemx8hf9zjm7h2
authorities:
- entry:
    expiry_time: "2024-07-26T06:54:28.491158167Z"
    height: "247"
    owner_address: laconic1e23vfttpvk045pqeydr4mujmlemx8hf9zjm7h2
    owner_public_key: A6RlTGLIpyA8nnEQN4V3sz3uaLMY0fHtB7aS7u1zTOdD
    status: active
  name: cerc
Part of [Add a CLI query to list all authorities with owner filter](https://git.vdb.to/cerc-io/laconicd/issues/41) Usage: ```bash $ laconicd query registry list-authorities -h List authorities (optionally by owner) Usage: laconicd query registry list-authorities [flags] Flags: --grpc-addr string the gRPC endpoint to use for this chain --grpc-insecure allow gRPC over insecure channels, if not the server must use TLS --height int Use a specific height to query state at (this can error if the node is pruning state) -h, --help help for list-authorities --no-indent Do not indent JSON output --node string <host>:<port> to CometBFT RPC interface for this chain (default "tcp://localhost:26657") -o, --output string Output format (text|json) (default "text") --owner string Owner to get the authorities for ``` Example: ```bash # Without owner filter $ laconicd query registry list-authorities authorities: - entry: expiry_time: "2024-07-26T06:54:28.491158167Z" height: "247" owner_address: laconic1e23vfttpvk045pqeydr4mujmlemx8hf9zjm7h2 owner_public_key: A6RlTGLIpyA8nnEQN4V3sz3uaLMY0fHtB7aS7u1zTOdD status: active name: cerc - entry: expiry_time: "2024-07-26T06:47:58.971429925Z" height: "118" owner_address: laconic10ztdu07xn7rracvzvehelgwvsytqlrvj6pvput owner_public_key: AvBxGIXBFmWCF+OHFwydqEtp2bfP+aimObO3teunbve7 status: active name: laconic # With owner filter $ laconicd query registry list-authorities --owner laconic1e23vfttpvk045pqeydr4mujmlemx8hf9zjm7h2 authorities: - entry: expiry_time: "2024-07-26T06:54:28.491158167Z" height: "247" owner_address: laconic1e23vfttpvk045pqeydr4mujmlemx8hf9zjm7h2 owner_public_key: A6RlTGLIpyA8nnEQN4V3sz3uaLMY0fHtB7aS7u1zTOdD status: active name: cerc ```
prathamesh added 2 commits 2024-07-24 07:13:11 +00:00
Implement query to list authorities
All checks were successful
Protobuf / lint (pull_request) Successful in 26s
Integration Tests / test-integration (pull_request) Successful in 3m10s
Build / build (pull_request) Successful in 3m23s
E2E Tests / test-e2e (pull_request) Successful in 4m51s
Unit Tests / test-unit (pull_request) Successful in 2m12s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 9m7s
SDK Tests / sdk_tests (pull_request) Successful in 9m59s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m35s
be3bcf9687
prathamesh added 1 commit 2024-07-24 07:26:44 +00:00
Fix typos in the proto files
All checks were successful
Protobuf / lint (pull_request) Successful in 14s
Integration Tests / test-integration (pull_request) Successful in 3m14s
Build / build (pull_request) Successful in 3m25s
E2E Tests / test-e2e (pull_request) Successful in 4m33s
Unit Tests / test-unit (pull_request) Successful in 2m11s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 8m45s
SDK Tests / sdk_tests (pull_request) Successful in 9m32s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m16s
245ce01b37
prathamesh added 1 commit 2024-07-24 08:48:37 +00:00
Use flag instead of positional arg for owner
All checks were successful
Protobuf / lint (pull_request) Successful in 22s
Build / build (pull_request) Successful in 3m12s
Integration Tests / test-integration (pull_request) Successful in 3m10s
E2E Tests / test-e2e (pull_request) Successful in 4m39s
Unit Tests / test-unit (pull_request) Successful in 2m11s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Successful in 8m31s
SDK Tests / sdk_tests (pull_request) Successful in 8m18s
SDK Tests / sdk_tests_auctions (pull_request) Successful in 14m1s
e9c85e63aa
nabarun merged commit ec6e2f3776 into main 2024-07-24 09:14:40 +00:00
nabarun deleted branch pm-list-authorities 2024-07-24 09:14:41 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd#42
No description provided.