* Remove old registry * also this one * Not removing from old registry anymore * merge registry files * wip works * Refactor city * Fix build * One more thing * Prettier? * ??? * This should work * My prettier is broken * Can't live like this * Resolve comments * Abstract * Sure * Should use this * Remove unused * change approach * Delete graphql/generated.ts Signed-off-by: Nacho Iacovino <[email protected]> * also remove deprecated mainnets * Wip - failed build * Define dashboard chain * format * Latest * latest * Remove log * Not sure why we need this * Back to this --------- Signed-off-by: Nacho Iacovino <[email protected]> Co-authored-by: Jonas Daniels <[email protected]>
24 lines
563 B
TypeScript
24 lines
563 B
TypeScript
import type { ValidContractInstance } from "@thirdweb-dev/sdk";
|
|
import type { ExtensionDetectedState } from "components/buttons/ExtensionDetectButton";
|
|
import type { ComponentType } from "react";
|
|
|
|
// We're using it everywhere.
|
|
type PotentialContractInstance =
|
|
| ValidContractInstance
|
|
| null
|
|
| undefined;
|
|
|
|
export type EnhancedRoute<T = any> = {
|
|
title: string;
|
|
path: string;
|
|
isDefault?: true;
|
|
isBeta?: true;
|
|
isEnabled?: ExtensionDetectedState;
|
|
component: ComponentType<T>;
|
|
};
|
|
|
|
export type BasicContract = {
|
|
chainId: number;
|
|
address: string;
|
|
}
|