Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Filter auditor based on selection #29

Open
jtary opened this issue Jan 30, 2023 · 5 comments
Open

Filter auditor based on selection #29

jtary opened this issue Jan 30, 2023 · 5 comments

Comments

@jtary
Copy link
Contributor

jtary commented Jan 30, 2023

Is your feature request related to a problem? Please describe.
We currently don't allow filtering on providers based on Auditor selection. The goal of this task is to add support for being able to select an auditor and then update the SDL and subsequently filter the list of providers based on the selected filter.

Describe the solution you'd like

When the user selects a template right now, the configuration screen has no auditor selection
Screen Shot 2023-02-23 at 9 54 54 AM

The goal is to add an option to select an auditor, apply the selection to the SDL and then include this in the bid request, so that only providers audited by the selected auditor are included in the bids

Screen Shot 2023-02-23 at 9 51 47 AM

@anilmurty anilmurty changed the title [OC MVP+] Filter auditor based on selection Filter auditor based on selection Jan 31, 2023
@anilmurty anilmurty removed the post-ga label Feb 15, 2023
@anilmurty
Copy link
Contributor

updated description with some additional info, @jtary - please feel free to update with any additional info

@anilmurty anilmurty added the good first issue Good for newcomers label Feb 23, 2023
@gtquiroga
Copy link

Hi. How do I fetch the auditors?

@anilmurty
Copy link
Contributor

hey @gtquiroga - You'd have to request that using the akash-api https://github.com/akash-network/akash-api/blob/main/proto/node/akash/audit/v1beta3/query.proto

@jtary - can we point to an example for @gtquiroga ?

@gtquiroga
Copy link

@anilmurty on that link I didn't find a query to fetch all the auditors.

@jtary
Copy link
Contributor Author

jtary commented May 19, 2023

Hey @gtquiroga,

Right now I don't think there is an automated way to pull down a list of auditors. This is the config we are using in console right now:

const auditors = {
  akash18qa2a2ltfyvkyj0ggj3hkvuj6twzyumuaru9s4: {
    name: 'Moultrie Audits Bronze',
    website: 'https://www.moultrieaudits.com/',
    logo: () => <img src={moultireLogo} alt="Moultire" />,
  },
  akash17fqxak4kprh2rlatjlv9w04s9ugl7mn32ckut3: {
    name: 'Moultrie Audits Silver',
    website: 'https://www.moultrieaudits.com/',
    logo: () => <img src={moultireLogo} alt="Moultire" />,
  },
  akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63: {
    name: 'Overclock Labs',
    website: 'https://akash.network',
    logo: () => <img src={ovrclkLogo} alt="Overlck" />,
  },
};

This is inside the Bid.tsx component, but would probably make sense to relocate to a utility file or hook if you want to use it elsewhere. Hope that helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants