-
Notifications
You must be signed in to change notification settings - Fork 6
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 #105 from VoiceDeck/feat/upgrade-hypercerts
WIP Feat/upgrade hypercerts
- Loading branch information
Showing
26 changed files
with
1,607 additions
and
348 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { optimism, sepolia } from "viem/chains"; | ||
import { Chain } from "viem"; | ||
import { Environment } from "@hypercerts-org/sdk"; | ||
|
||
export const WC_PROJECT_ID = process.env.NEXT_PUBLIC_WC_PROJECT_ID; | ||
export const ENVIRONMENT = process.env.NEXT_PUBLIC_ENVIRONMENT as Environment; | ||
|
||
export const testNetChains = [sepolia] as const; | ||
export const prodNetChains = [optimism] as const; | ||
|
||
export const SUPPORTED_CHAINS = ( | ||
ENVIRONMENT === "production" ? prodNetChains : testNetChains | ||
) as readonly [Chain, ...Chain[]]; | ||
const allChains = [ | ||
...testNetChains.map((x) => x.id), | ||
...prodNetChains.map((x) => x.id), | ||
] as const; | ||
|
||
export type SupportedChainIdType = (typeof allChains)[number]; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { parseUnits } from "viem"; | ||
import { CONSTANTS } from "@hypercerts-org/sdk"; | ||
import { ENVIRONMENT } from "@/config/constants"; | ||
|
||
const HYPERCERT_API_URL = | ||
CONSTANTS.ENDPOINTS[ENVIRONMENT as keyof typeof CONSTANTS.ENDPOINTS]; | ||
|
||
export const HYPERCERTS_API_URL_REST = `${HYPERCERT_API_URL}/v1`; | ||
export const HYPERCERTS_API_URL_GRAPH = `${HYPERCERT_API_URL}/v1/graphql`; | ||
|
||
export const DEFAULT_NUM_FRACTIONS = parseUnits("1", 8); | ||
|
||
export const DEFAULT_DISPLAY_CURRENCY = "usd"; |
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
Oops, something went wrong.