generated from public-assembly/assemble-package
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from public-assembly/0xTranqui/Add-ZoraTestne…
…t-Support just published 0.1.15 which adds support for zora testnet chainId 999
- Loading branch information
Showing
11 changed files
with
298 additions
and
668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
NEXT_PUBLIC_ALCHEMY_API_KEY= | ||
NEXT_PUBLIC_WALLET_CONNECT= | ||
NEXT_PUBLIC_TOKEN_ADDRESS= | ||
NEXT_PUBLIC_CHAIN_ID= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export const PUBLIC_SUBGRAPH_URL = { | ||
1: 'https://api.thegraph.com/subgraphs/name/neokry/nouns-builder-mainnet', | ||
5: 'https://api.thegraph.com/subgraphs/name/neokry/nouns-builder-goerli', | ||
999: 'https://api.goldsky.com/api/public/project_clkk1ucdyf6ak38svcatie9tf/subgraphs/nouns-builder-zora-testnet/stable/gn', | ||
}[process.env.NEXT_PUBLIC_CHAIN_ID || 1] as string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
import { createPublicClient, http } from 'viem' | ||
import { mainnet, goerli } from 'viem/chains' | ||
import type { PublicClient } from 'viem' | ||
import { mainnet, goerli, zoraTestnet } from 'viem/chains' | ||
import type { PublicClient, Chain } from 'viem' | ||
|
||
export const mainnetClient: PublicClient = createPublicClient({ | ||
batch: { | ||
multicall: true, | ||
}, | ||
chain: mainnet, | ||
chain: mainnet as Chain, | ||
transport: http(process.env.NEXT_PUBLIC_MAINNET_ALCHEMY_ENDPOINT), | ||
}) | ||
|
||
export const goerliClient: PublicClient = createPublicClient({ | ||
batch: { | ||
multicall: true, | ||
}, | ||
chain: goerli, | ||
chain: goerli as Chain, | ||
transport: http(process.env.NEXT_PUBLIC_GOERLI_ALCHEMY_ENDPOINT), | ||
}) | ||
|
||
export const zoraTestnetClient: PublicClient = createPublicClient({ | ||
batch: { | ||
multicall: true, | ||
}, | ||
chain: zoraTestnet as Chain, | ||
transport: http('https://testnet.rpc.zora.co/'), | ||
}) | ||
|
||
export const viemClient: PublicClient | undefined = | ||
process.env.NEXT_PUBLIC_CHAIN_ID == '5' ? goerliClient : mainnetClient | ||
process.env.NEXT_PUBLIC_CHAIN_ID == '5' | ||
? goerliClient | ||
: process.env.NEXT_PUBLIC_CHAIN_ID == '1' | ||
? mainnetClient | ||
: zoraTestnetClient |
Oops, something went wrong.
de21088
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
builder-utils – ./
builder-utils-public-assembly.vercel.app
builder-utils-git-main-public-assembly.vercel.app
builder-utils.vercel.app