laconicd/x/registry
Prathamesh Musale ec6e2f3776
All checks were successful
Integration Tests / test-integration (push) Successful in 2m40s
E2E Tests / test-e2e (push) Successful in 3m59s
Unit Tests / test-unit (push) Successful in 2m8s
Publish on release / Run docker build and publish (release) Successful in 2m51s
SDK Tests / sdk_tests_nameservice_expiry (push) Successful in 8m38s
SDK Tests / sdk_tests (push) Successful in 8m37s
SDK Tests / sdk_tests_auctions (push) Successful in 13m48s
Add a query to list authorities (#42)
Part of [Add a CLI query to list all authorities with owner filter](#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
```

Reviewed-on: #42
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2024-07-24 09:14:39 +00:00
..
client/cli Rename laconic2d to laconicd (#26) 2024-04-01 09:57:26 +00:00
helpers Rename laconic2d to laconicd (#26) 2024-04-01 09:57:26 +00:00
keeper Add a query to list authorities (#42) 2024-07-24 09:14:39 +00:00
module Add a query to list authorities (#42) 2024-07-24 09:14:39 +00:00
codec.go Rename RPC method to reserve authority and fix proto lint errors (#17) 2024-03-07 11:25:15 +00:00
events.go Rename RPC method to reserve authority and fix proto lint errors (#17) 2024-03-07 11:25:15 +00:00
genesis.go Setup and plumbing for registry module (#4) 2024-02-15 07:08:32 +00:00
genesis.pb.go Rename laconic2d to laconicd (#26) 2024-04-01 09:57:26 +00:00
keys.go Setup integration tests and CI (#11) 2024-02-29 11:54:35 +00:00
msgs.go Rename RPC method to reserve authority and fix proto lint errors (#17) 2024-03-07 11:25:15 +00:00
params.go Setup and plumbing for registry module (#4) 2024-02-15 07:08:32 +00:00
query.pb.go Add a query to list authorities (#42) 2024-07-24 09:14:39 +00:00
query.pb.gw.go Add a query to list authorities (#42) 2024-07-24 09:14:39 +00:00
registry.pb.go Rename laconic2d to laconicd (#26) 2024-04-01 09:57:26 +00:00
tx.pb.go Rename laconic2d to laconicd (#26) 2024-04-01 09:57:26 +00:00
tx.pb.gw.go Rename RPC method to reserve authority and fix proto lint errors (#17) 2024-03-07 11:25:15 +00:00
types.go Rename laconic2d to laconicd (#26) 2024-04-01 09:57:26 +00:00