Skip to content

[Supplier] Query onchain supplier by --owner-address OR --operator--address #1830

@Olshansk

Description

@Olshansk

Objective

Make it easy to query a specific list of suppliers by owner or operator via pocketd

Origin Document

There are MANY suppliers onchain with LOTS of configs require a lot of pagination overhead when doing pocketd query supplier list-suppliers

kubectx config use-context <k8s_cluster>

kubectl port-forward pods/<full_node> 26658:26657 9091:9090 -n mainnet

pocketd query supplier list-suppliers --node=http://localhost:26658 --dehydrated  --page-limit=100000000000 >> /tmp/suppliers

Goals

  • Enable easily querying a specific list of owner/operator addresses
  • Avoid pagination complexity

Deliverables

  • Add an optional --owner-address flag to pocketd query supplier list-suppliers to provide a comma separated list of addresses
  • Add an optional --operator-address flag to pocketd query supplier list-suppliers to provide a comma separated list of addresses
  • Implement support for both of the above in x/supplier/keeper/query_supplier.go or related sections
  • Add unit, integration, localnet, ..., tests to validate this

Creator: @Olshansk
Co-Owners: @red-0ne

Metadata

Metadata

Assignees

Labels

supplierChanges related to the Supplier actor

Projects

Status

🔖 Ready

Relationships

None yet

Development

No branches or pull requests

Issue actions