Skip to content

fix(provider): resolve bids from sibling wallets sharing a hostUri#25

Open
baktun14 wants to merge 1 commit into
mainfrom
fix/provider-dedup-alias-resolution
Open

fix(provider): resolve bids from sibling wallets sharing a hostUri#25
baktun14 wants to merge 1 commit into
mainfrom
fix/provider-dedup-alias-resolution

Conversation

@baktun14

@baktun14 baktun14 commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Why

When multiple Provider wallets share the same hostUri on-chain, the API's deduped provider list (/v1/providers) only includes one canonical wallet per hostUri. Bids on the chain can be submitted by any of the sibling wallets, but the prior providers.find(p => p.owner === bid.provider) lookup returned undefined for non-canonical wallets — leaving empty rows in the bid list, breaking the audited/search filters, and throwing "Cannot find bid provider" on manifest send.

This is the console-air mirror of the fix landing in akash-network/console (which adds the API-side aliasOwners field). Once the API change is deployed, console-air consumes the new field via the existing /v1/providers call — no client API change is needed here, only the UI resolution + filter.

Fixes CON-375

What

  • Add aliasOwners: string[] to ApiProviderList (matches the API contract change in the main console repo).
  • Add findProviderForBidProvider(providers, bidProvider) to providerUtils.ts — resolves a bid's provider by owner OR by aliasOwners.
  • Use the helper in BidGroup.tsx (display) and CreateLease.tsx (manifest send + search filter + audited filter).
  • Filter the bid list so providers that are offline or on an invalid version are not rendered as empty rows.
  • Update buildProvider test seeder + add focused unit tests for the helper.

When multiple Provider wallets share the same hostUri, the deduped
provider list returned by the API only includes one canonical wallet.
Bids on the chain can be submitted by any of the sibling wallets, so
the prior `providers.find(p => p.owner === bid.provider)` lookup
returned undefined for non-canonical wallets, leaving empty rows in
the bid list and breaking manifest send.

Resolve bids via owner OR the new `aliasOwners` field on the canonical
row, and filter the bid list to providers that are online and on a
valid version so users no longer see unselectable empty rows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant