This is a community-run subgraph for the 0x Exchange proxy with aim of supporting all current networks from the 0x protocol with focus on nft and limit order trading. At its current state, it aims to support the following networks: ETH, Optimism, BSC, Polygon, Arbitrum, Fantom, Avalanche, Base, and Celo.
This is a fork from [https://github.com/0xProject/ep-subgraph] .
Features
- ERC721 NFT fills
- ERC1155 NFT fills
- Limit order fills
- Collection volume
- Collection volume per token
- NFT volume
- NFT volume per token
- Start by installing dependencies.
yarn
- Generate code for subgraph
yarn codegen
- Build subgraph for a specific network
yarn build --network <network>
where represents the supported subgraph networks: mainnet, optimism, bsc, matic, fantom, avalanche, base, arbitrum-one, celo.
For any network supported by the protocol,
source .env; yarn codegen; yarn build --network <network>; yarn deploy --product hosted-service dexkit/0x-nft-v4 --access-token $ACCESS_TOKEN
replace with the target network.
For instance, for Ethereum network:
source .env; yarn codegen; yarn build --network mainnet; yarn deploy --product hosted-service dexkit/0x-nft-v4-eth --access-token $ACCESS_TOKEN
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-eth
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-op
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-arb
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-bsc
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-mumbai
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-poly
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-fantom
Hosted service endpoint: https://api.thegraph.com/subgraphs/name/dexkit/0x-nft-v4-avax
To add a new network to this graph, fill in networks.json with the respective exchange proxy address and start blocks. Next, in src/constants/network, add the network to the namespace and fill in addresses for WETH.
Use as source these up-to-date list of addresses
- Deployments on the Graph decentralized network
- More documentation