Skip to content

Commit

Permalink
Release v1.x of nft-hooks (#97)
Browse files Browse the repository at this point in the history
* wip

* updating datatype transformations

* updates to add new strategies

* large types update

* adding asks support

* fix strategies

* update for strategies

* test different hook strategies

* usenft

* update hooks

* integrating new hooks in

* adding in minter field

* updating auction data source

* auction info stuff

* build hooks context

* updating package tree

* add zdk alpha strategy

* major refactor

* updates

* exports updates

* backend update

* latest update

* updating backends for fetching data from zora indexer v1

* v1 indexing improvements

* update zdk-alpha types

* Adds EditionLike to MarketModule (#83)

* Adds EditionLike to MarketModule

* Creates market types enum / fixes typo

* Updates backends to use Market Types enum

* update query interface

* Remove offset from opensea api (#84)

* package update across the board

* fix build

* moving to enums

* fetch strategy updates

* new pre-release projects

* getAddress fix

* Artiva app fix auctions (moving from #85) (#86)

* Fixes issues with auction status and auction duration

* Fixes issues with graph auctions / opensea data

* Fixes issues with opensea data

* Fixes issue with cancelled auctions

* Fixes issues with ended auctions on graph data

* new pre-release projects

* getAddress fix

Co-authored-by: Neokry <[email protected]>

* V1 impl interface updates (#87)

* new pre-release projects

* getAddress fix

* [v1 impl] interface typing updates

* release

* Refactor media handling types v1 (#90)

* refactor media handling types

* fix ens parsing

* refactor types for querying, objects etc

* fix asks querying v3 (#92)

* Fix querying asks v3 (#93)

* fix asks querying v3

* fixing ask querying and package dep types

* fix rest of types according to updated ZDK

* review fixes: address separator, types

* Fixes fetching issues (#94)

* Fixes fetching issues

* Removes dev logging

* zdk 0.0.15 and corresponding type fixes

* initial clean up for tests

* Branch for adding useNFTQuery hook

* tsc fixes & minor stuff

* Artiva Fixes (#95)

* Fixes fetching issues

* Removes dev logging

* Passes current data to secondary data function. Fixes small import bugs.

* Fixes issue where canceled auctions would appear as pending (#96)

* bump prerelease version

* Adds media to ZoraIndexerV1DataSource (#99)

* exporting further properties and allowing usage of transformNFT outside of module context (#100)

* set a default strategy of zorav2 (#101)

* publishing pre-release

* zdk to 0.0.22

* Fixes bug where ens names would not resolve properly (#102)

* standardize date types (#103)

* add events to ZDK

* commit to update after explaination

* add address to market types, remove usage of Nullable<> types (#105)

* Upgrade deps (#106)

* deps upgrade

* upgrade deps

* Upgrade deps and fix package issues (#107)

* deps upgrade

* upgrade deps

* cleanup deps for create-react-app

* wip events

* more work on unified events

* sdk update for evnets

* updating imports

* fix data source

* merge

* fixed typo in v1 data source

* v1.0.16

* TokensResponseItem import fix

* v1.0.18

* adding new package updates to zdk (#108)

* adding market new source data from zdk (#109)

* remove const enums (#110)

* release

* use string time

* use zdk-alpha v0.0.32

* v1.0.23

* v 1.0.24

* new media field: poster, large

* Adds foundation market source (#112)

* V3AskFilledEventProperties: added buyer and seller addresses

* fix expiration date for auction (#116)

* v1 data unix time (#115)

* add auctionId

* v1.0.28

* add seller field for fixed price events

* v1.0.v29

* v1.0.v29

* Fix hooks tests (#119)

* fix hooks tests

* update circleci version of node

* circleci node version

* move to lts

* update circleci config

* update package json

* node package version install

* fix build docker image

* fix hook tests

* fix snapshots

* zora indexer v1

* fixes

* disable flaky test

* update zdk (#120)

* add content field to nftinterface

* v1.0.30

* version bump

* add usd pricing data on events, zdk data source refac

* review feedback: better data shape

* fix tests (#125)

Co-authored-by: Neokry
Co-authored-by: Oleg Akbarov
  • Loading branch information
iainnash authored May 31, 2022
1 parent 9ef439b commit 6f0b963
Show file tree
Hide file tree
Showing 107 changed files with 11,264 additions and 19,418 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
env_defaults: &env_defaults
working_directory: ~
docker:
- image: circleci/node:14.15.1
- image: cimg/node:16.10.0

version: 2.1
jobs:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## V1
- Add strategies
- Add ether.actor strategy
- Add new zdk-alpha strategy
- Build new unified data model

## Unreleased
- Small fixes for multinetwork support and more URLs for media

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ function MyNFT() {
| Hook | Usage |
| -- | -- |
| [useNFT](docs/useNFT.md) | Fetches on-chain NFT data for either zora or non-zora NFTs |
| [useZNFT](docs/useZNFT.md) | Fetches on-chain zora zNFT data (most likely want to use useNFT) |
| [useAuctions](docs/useAuctions.md) | Fetches list of auctions given one or more curators from the Zora auction house |
| [useNFTMetadata](docs/useNFTMetadata.md) | Fetches NFT metadata from a URL |
| [useNFTQuery](docs/useZNFTQuery.md) | Fetches on-chain zora zNFT data (most likely want to use useNFT) |
| [useNFTContent](docs/useNFTContent.md) | Fetches text content from server for rendering from content URL |

### Configuration:
Expand Down
12 changes: 6 additions & 6 deletions codegen.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"generates": {
"./src/graph-queries/zora-graph-types.ts": {
"./src/backends/zora-graph/zora-graph-types.ts": {
"schema": "./graph-schemas/zora-graph.graphql",
"documents": "./src/graph-queries/zora-graph.ts",
"documents": "./src/backends/zora-graph/zora-graph.ts",
"plugins": ["typescript", "typescript-operations"]
},
"./src/graph-queries/zora-indexer-types.ts": {
"./src/backends/zora-indexer-v1/zora-indexer-types.ts": {
"schema": "./graph-schemas/zora-indexer.graphql",
"documents": "./src/graph-queries/zora-indexer.ts",
"documents": "./src/backends/zora-indexer-v1/zora-indexer.ts",
"plugins": ["typescript", "typescript-operations"]
},
"./src/graph-queries/uniswap-types.ts": {
"./src/backends/currency/uniswap-types.ts": {
"schema": "./graph-schemas/uniswap.graphql",
"documents": "./src/graph-queries/uniswap.ts",
"documents": "./src/backends/currency/uniswap.ts",
"plugins": ["typescript", "typescript-operations"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/useAuctions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type useAuctions = {
curators: string[];
approved: true | false | undefined;
}

type useAuctionsResponse = {
loading: boolean;
error: ResponseError | undefined;
Expand Down
Loading

0 comments on commit 6f0b963

Please sign in to comment.