This commit is contained in:
github-actions[bot]
2026-01-18 03:14:49 +00:00
commit f3ee114735
336 changed files with 42224 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import type { Group, IFavoriteChainProps, IFavoriteChainsStorage } from './types.js';
import React from 'react';
interface Props {
affinities: Record<string, string>;
apiUrl: string;
children?: React.ReactNode;
className?: string;
index: number;
isSelected: boolean;
favoriteChains: IFavoriteChainsStorage;
toggleFavoriteChain: (chainInfo: IFavoriteChainProps) => void;
setApiUrl: (network: string, apiUrl: string) => void;
setGroup: (groupIndex: number) => void;
value: Group;
highlightColor: string;
}
declare function GroupDisplay({ affinities, apiUrl, children, className, favoriteChains, highlightColor, index, isSelected, setApiUrl, setGroup, toggleFavoriteChain, value: { header, isSpaced, networks } }: Props): React.ReactElement<Props>;
declare const _default: React.MemoExoticComponent<typeof GroupDisplay>;
export default _default;
+14
View File
@@ -0,0 +1,14 @@
import type { IFavoriteChainProps, Network } from './types.js';
import React from 'react';
interface Props {
affinity?: string;
apiUrl: string;
className?: string;
setApiUrl: (network: string, apiUrl: string) => void;
value: Network;
isFavorite: boolean;
toggleFavoriteChain: (chainInfo: IFavoriteChainProps) => void;
}
declare function NetworkDisplay({ apiUrl, className, isFavorite, setApiUrl, toggleFavoriteChain, value: { isChild, isRelay, isUnreachable, name, nameRelay: relay, paraId, providers, ui } }: Props): React.ReactElement<Props>;
declare const _default: React.MemoExoticComponent<typeof NetworkDisplay>;
export default _default;
+9
View File
@@ -0,0 +1,9 @@
import React from 'react';
interface Props {
className?: string;
offset?: number | string;
onClose: () => void;
}
declare function Endpoints({ className, offset, onClose }: Props): React.ReactElement<Props>;
declare const _default: React.MemoExoticComponent<typeof Endpoints>;
export default _default;
+33
View File
@@ -0,0 +1,33 @@
import type React from 'react';
export interface IFavoriteChainProps {
chainName: string;
relay?: string;
paraId?: number;
}
export type IFavoriteChainsStorage = Record<string, {
relay: string;
paraId: number;
}[]>;
export interface Network {
isChild?: boolean;
isLightClient?: boolean;
isRelay?: boolean;
isUnreachable?: boolean;
name: string;
nameRelay?: string;
paraId?: number;
providers: {
name: string;
url: string;
}[];
ui: {
color?: string;
logo?: string;
};
}
export interface Group {
header: React.ReactNode;
isDevelopment?: boolean;
isSpaced?: boolean;
networks: Network[];
}
+6
View File
@@ -0,0 +1,6 @@
import type { IFavoriteChainProps, IFavoriteChainsStorage } from './types.js';
export declare const FAVORITE_CHAINS_KEY = "pezkuwi-app-favorite-chains";
export declare const toggleFavoriteChain: (chainInfo: IFavoriteChainProps) => void;
export declare const getFavoriteChains: () => IFavoriteChainsStorage;
export declare const isFavoriteChain: (favoriteChains: IFavoriteChainsStorage, chainInfo: IFavoriteChainProps) => boolean;
export declare function getContrastingColor(hexColor: string): string;