Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show bid history on auction #6

Open
volkyeth opened this issue Jan 22, 2023 · 3 comments
Open

Show bid history on auction #6

volkyeth opened this issue Jan 22, 2023 · 3 comments

Comments

@volkyeth
Copy link
Contributor

Like the one on nouns.build:
image

@volkyeth
Copy link
Contributor Author

Guess that wasn't included bc it would need a subgraph or some other chain indexing, right? 🤔

@volkyeth
Copy link
Contributor Author

Reached Zora support

It can be fetched from:
https://api.zora.co/graphql

E.g.:

query MyQuery {
  nouns {
    nounsEvents(
      filter: {nounsBuilderAuctionEventType: NOUNS_BUILDER_AUCTION_AUCTION_BID_EVENT, nounsEventTypes: NOUNS_BUILDER_AUCTION_EVENT}, where:{collectionAddresses: "0xdf9b7d26c8fc806b1ae6273684556761ff02d422"}
    ) {
      nodes {
        eventType
        transactionInfo{
          blockTimestamp
        }
        properties {
          ... on NounsBuilderAuctionEvent {
            __typename
            properties {
              ... on NounsBuilderAuctionAuctionBidEventProperties {
                __typename
                amount
                bidder
              }
            }
          }
        }
      }
    }
  }
}

Leaving this here as reference. I'll implement it when I got some spare time :D

@neokry
Copy link
Owner

neokry commented Jan 23, 2023

Yea just didn't want to make the core functionality of the app reliant on an external api or subgraph so haven't included that yet. Think for something like this a zora api call if fine though.

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

No branches or pull requests

2 participants