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

[feat] Zora Support #501

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/providers/v3/subgraph-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const SUBGRAPH_URL_BY_CHAIN: { [chainId in ChainId]?: string } = {
'https://api.thegraph.com/subgraphs/name/lynnshaoyu/uniswap-v3-avax',
[ChainId.BASE]:
'https://api.studio.thegraph.com/query/48211/uniswap-v3-base/version/latest',
[ChainId.ZORA]: 'https://api.goldsky.com/api/public/project_clhk16b61ay9t49vm6ntn4mkz/subgraphs/uniswap-zora-mainnet/v1.0.0/gn'
};

const PAGE_SIZE = 1000; // 1k is max possible query size from subgraph.
Expand Down
10 changes: 10 additions & 0 deletions src/util/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const V3_CORE_FACTORY_ADDRESSES: AddressMap = {
[ChainId.BASE_GOERLI]:
CHAIN_TO_ADDRESSES_MAP[ChainId.BASE_GOERLI].v3CoreFactoryAddress,
[ChainId.BASE]: CHAIN_TO_ADDRESSES_MAP[ChainId.BASE].v3CoreFactoryAddress,
[ChainId.ZORA]: CHAIN_TO_ADDRESSES_MAP[ChainId.ZORA].v3CoreFactoryAddress,
// TODO: Gnosis + Moonbeam contracts to be deployed
};

Expand All @@ -55,6 +56,7 @@ export const QUOTER_V2_ADDRESSES: AddressMap = {
[ChainId.BASE_GOERLI]:
CHAIN_TO_ADDRESSES_MAP[ChainId.BASE_GOERLI].quoterAddress,
[ChainId.BASE]: CHAIN_TO_ADDRESSES_MAP[ChainId.BASE].quoterAddress,
[ChainId.ZORA]: CHAIN_TO_ADDRESSES_MAP[ChainId.ZORA].quoterAddress,
// TODO: Gnosis + Moonbeam contracts to be deployed
};

Expand Down Expand Up @@ -85,6 +87,7 @@ export const UNISWAP_MULTICALL_ADDRESSES: AddressMap = {
[ChainId.BASE_GOERLI]:
CHAIN_TO_ADDRESSES_MAP[ChainId.BASE_GOERLI].multicallAddress,
[ChainId.BASE]: CHAIN_TO_ADDRESSES_MAP[ChainId.BASE].multicallAddress,
[ChainId.ZORA]: CHAIN_TO_ADDRESSES_MAP[ChainId.ZORA].multicallAddress,
// TODO: Gnosis + Moonbeam contracts to be deployed
};

Expand Down Expand Up @@ -212,6 +215,13 @@ export const WETH9: {
'WETH',
'Wrapped Ether'
),
[ChainId.ZORA]: new Token(
ChainId.ZORA,
'0x4200000000000000000000000000000000000006',
18,
'WETH',
'Wrapped Ether'
),
};

export const BEACON_CHAIN_DEPOSIT_ADDRESS =
Expand Down
Loading