player-map 2.0.20 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GraphComponent.d.ts +15 -0
- package/dist/PlayerCreationProgress.d.ts +35 -0
- package/dist/PlayerMap.d.ts +5 -0
- package/dist/PlayerMapGraph.d.ts +25 -0
- package/dist/PlayerMapHome.d.ts +15 -0
- package/dist/abi.d.ts +2630 -0
- package/dist/api/fetchActivityHistory.d.ts +3 -0
- package/dist/api/fetchAtomDetails.d.ts +28 -0
- package/dist/api/fetchClaimsByAccount.d.ts +3 -0
- package/dist/api/fetchClaimsBySubject.d.ts +3 -0
- package/dist/api/fetchFollowsAndFollowers.d.ts +6 -0
- package/dist/api/fetchPlayerAliases.d.ts +47 -0
- package/dist/api/fetchPositions.d.ts +3 -0
- package/dist/api/fetchTriplesByTermIds.d.ts +32 -0
- package/dist/api/fetchTriplesForAgent.d.ts +3 -0
- package/dist/api/sidebarQueries.d.ts +9 -0
- package/dist/components/RightPanel.d.ts +25 -0
- package/dist/components/SafeImage.d.ts +20 -0
- package/dist/components/TopNavBar.d.ts +31 -0
- package/dist/components/graph/ActivityCard.d.ts +7 -0
- package/dist/components/graph/ActivitySection.d.ts +7 -0
- package/dist/components/graph/AtomBubble.d.ts +9 -0
- package/dist/components/graph/AtomClaimsSection.d.ts +9 -0
- package/dist/components/graph/AtomDetailsSection.d.ts +14 -0
- package/dist/components/graph/ClaimDepositControls.d.ts +11 -0
- package/dist/components/graph/ClaimsModal.d.ts +12 -0
- package/dist/components/graph/ClaimsSection.d.ts +11 -0
- package/dist/components/graph/Modal.d.ts +10 -0
- package/dist/components/graph/Pagination.d.ts +11 -0
- package/dist/components/graph/PaginationInfo.d.ts +9 -0
- package/dist/components/graph/PositionBubble.d.ts +10 -0
- package/dist/components/graph/PositionCard.d.ts +12 -0
- package/dist/components/graph/PositionsSection.d.ts +10 -0
- package/dist/components/graph/RedeemAllButton.d.ts +9 -0
- package/dist/components/graph/RedeemConfig.d.ts +13 -0
- package/dist/components/graph/RedeemSelector.d.ts +9 -0
- package/dist/components/graph/SidebarDrawer.d.ts +9 -0
- package/dist/components/graph/TripleBubble.d.ts +12 -0
- package/dist/components/graph/TruncatedText.d.ts +10 -0
- package/dist/components/graph/index.d.ts +18 -0
- package/dist/components/modals/ConnectWalletModal.d.ts +8 -0
- package/dist/components/modals/CreatePlayerModal.d.ts +9 -0
- package/dist/components/modals/index.d.ts +2 -0
- package/dist/components/vote/ClaimItem.d.ts +13 -0
- package/dist/components/vote/ClaimList.d.ts +18 -0
- package/dist/components/vote/ClaimVoting.d.ts +16 -0
- package/dist/components/vote/SpeakUpHeader.d.ts +8 -0
- package/dist/components/vote/SubmitButton.d.ts +11 -0
- package/dist/components/vote/TransactionInfo.d.ts +12 -0
- package/dist/components/vote/TransactionStatus.d.ts +11 -0
- package/dist/components/vote/VotingHeader.d.ts +7 -0
- package/dist/components/vote/VotingModal.d.ts +15 -0
- package/dist/components/vote/voteUtils.d.ts +49 -0
- package/dist/config/atomFiltering.d.ts +17 -0
- package/dist/config/graphql.d.ts +1 -0
- package/dist/config/verifiedAtoms.d.ts +24 -0
- package/dist/contexts/GameContext.d.ts +35 -0
- package/dist/contexts/QueryClientContext.d.ts +9 -0
- package/dist/hooks/useAtomCreation.d.ts +25 -0
- package/dist/hooks/useAtomData.d.ts +11 -0
- package/dist/hooks/useAtomLabel.d.ts +7 -0
- package/dist/hooks/useBatchCreateTriple.d.ts +16 -0
- package/dist/hooks/useCheckSpecificTriplePosition.d.ts +16 -0
- package/dist/hooks/useClaimsBySubject.d.ts +7 -0
- package/dist/hooks/useCreateAlias.d.ts +17 -0
- package/dist/hooks/useDepositTriple.d.ts +18 -0
- package/dist/hooks/useDisplayTriplesWithPosition.d.ts +5 -0
- package/dist/hooks/useFetchTripleDetails.d.ts +36 -0
- package/dist/hooks/useGameStats.d.ts +14 -0
- package/dist/hooks/usePlayerAliases.d.ts +15 -0
- package/dist/hooks/usePositions.d.ts +7 -0
- package/dist/hooks/useRedeemAmounts.d.ts +7 -0
- package/dist/hooks/useRedeemBatch.d.ts +19 -0
- package/dist/hooks/useRedeemExecution.d.ts +15 -0
- package/dist/hooks/useRegisterPlayer.d.ts +40 -0
- package/dist/hooks/useSelectedAtomClaims.d.ts +9 -0
- package/dist/hooks/useSelectedAtomData.d.ts +10 -0
- package/dist/hooks/useSidebarData.d.ts +16 -0
- package/dist/hooks/useSubmitVotes.d.ts +22 -0
- package/dist/hooks/useTripleByCreator.d.ts +54 -0
- package/dist/hooks/useVoteItemsManagement.d.ts +22 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.es.js +14801 -14663
- package/dist/index.umd.js +376 -376
- package/dist/pages/DirectPositionCheck.d.ts +4 -0
- package/dist/providers/QueryProvider.d.ts +7 -0
- package/dist/shared/components/NetworkSwitchMessage.d.ts +8 -0
- package/dist/shared/hooks/useNetworkCheck.d.ts +13 -0
- package/dist/types/PlayerMapConfig.d.ts +18 -0
- package/dist/types/alias.d.ts +39 -0
- package/dist/types/vote.d.ts +28 -0
- package/dist/utils/apiCache.d.ts +40 -0
- package/dist/utils/config.d.ts +7 -0
- package/dist/utils/constants.d.ts +15 -0
- package/dist/utils/conversionUtils.d.ts +13 -0
- package/dist/utils/debugPosition.d.ts +11 -0
- package/dist/utils/globalConstants.d.ts +2 -0
- package/dist/utils/ipfsUtils.d.ts +30 -0
- package/dist/utils/pinata.d.ts +3 -0
- package/dist/utils/voteUtils.d.ts +32 -0
- package/dist/utils/walletUtils.d.ts +24 -0
- package/package.json +3 -3
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Network } from '../hooks/useAtomData';
|
|
2
|
+
|
|
3
|
+
export interface AtomDetails {
|
|
4
|
+
term_id: string;
|
|
5
|
+
image: string;
|
|
6
|
+
label: string;
|
|
7
|
+
emoji: string;
|
|
8
|
+
type: string;
|
|
9
|
+
creator_id: string;
|
|
10
|
+
value?: {
|
|
11
|
+
person?: {
|
|
12
|
+
description: string;
|
|
13
|
+
};
|
|
14
|
+
organization?: {
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
thing?: {
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
book?: {
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
term?: {
|
|
25
|
+
total_market_cap: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare const fetchAtomDetails: (atomId: string, network?: Network) => Promise<AtomDetails | null>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Network } from '../hooks/useAtomData';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Fetches the term_id of the account atom for a wallet address.
|
|
5
|
+
* Only looks for SDK format: data == toHex(getAddress(walletAddress))
|
|
6
|
+
* (createAtomFromEthereumAccount — the canonical format).
|
|
7
|
+
* Legacy formats (raw bytes, UTF-8 string) are intentionally ignored.
|
|
8
|
+
* Returns the term_id if found, or null.
|
|
9
|
+
*/
|
|
10
|
+
export declare const fetchAccountAtom: (walletAddress: string, network?: Network) => Promise<string | null>;
|
|
11
|
+
/**
|
|
12
|
+
* Fetches the term_id of the player's first (earliest) atom by their wallet address.
|
|
13
|
+
* The player registration atom is always the first atom created by that address.
|
|
14
|
+
* Returns null if the player has no atom (not yet registered).
|
|
15
|
+
*/
|
|
16
|
+
export declare const fetchPlayerAtomByAddress: (walletAddress: string, network?: Network) => Promise<string | null>;
|
|
17
|
+
export interface RawAliasTriple {
|
|
18
|
+
tripleId: string;
|
|
19
|
+
pseudo: string;
|
|
20
|
+
atomId: string;
|
|
21
|
+
image?: string;
|
|
22
|
+
userPosition: bigint;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Fetches all [has alias] triples for a player atom, including the user's own position
|
|
26
|
+
* in each triple's vault. Returns only triples where we can determine the user's position
|
|
27
|
+
* (position may be 0 if user has no stake in that alias).
|
|
28
|
+
*/
|
|
29
|
+
export declare const fetchAliasTriplesWithPosition: (playerAtomId: string, walletAddress: string, predicateId: string, network?: Network) => Promise<RawAliasTriple[]>;
|
|
30
|
+
export interface RawAliasWithSubject extends RawAliasTriple {
|
|
31
|
+
subjectId: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Fetches [has alias] triples created by this wallet address.
|
|
35
|
+
* Does NOT require knowing the account atom ID in advance — resolves it from the triple's subject.
|
|
36
|
+
* Uses creator_id filter which is reliable regardless of vault position state.
|
|
37
|
+
* Also fetches the user's position in each alias triple's vault (may be 0).
|
|
38
|
+
*/
|
|
39
|
+
export declare const fetchAliasesByWalletPosition: (walletAddress: string, predicateId: string, network?: Network) => Promise<RawAliasWithSubject[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Used at form load to skip consent steps for users who already accepted terms v1.0.
|
|
42
|
+
* Returns exists: false (not called) when accountAtomId is undefined (new user).
|
|
43
|
+
*/
|
|
44
|
+
export declare const fetchAccountConsent: (accountAtomId: string, acceptedPredicateId: string, network?: Network) => Promise<{
|
|
45
|
+
exists: boolean;
|
|
46
|
+
consentAtomId?: string;
|
|
47
|
+
}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Network } from '../hooks/useAtomData';
|
|
2
|
+
|
|
3
|
+
export interface TripleObjectDetail {
|
|
4
|
+
term_id: string;
|
|
5
|
+
object: {
|
|
6
|
+
term_id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface TripleSubjectTermDetail {
|
|
12
|
+
term_id: string;
|
|
13
|
+
subject_term: {
|
|
14
|
+
id: string;
|
|
15
|
+
triple: {
|
|
16
|
+
subject: {
|
|
17
|
+
label: string;
|
|
18
|
+
term_id: string;
|
|
19
|
+
} | null;
|
|
20
|
+
predicate: {
|
|
21
|
+
label: string;
|
|
22
|
+
} | null;
|
|
23
|
+
object: {
|
|
24
|
+
label: string;
|
|
25
|
+
image?: string;
|
|
26
|
+
term_id: string;
|
|
27
|
+
} | null;
|
|
28
|
+
};
|
|
29
|
+
} | null;
|
|
30
|
+
}
|
|
31
|
+
export declare const fetchTriplesByTermIds: (termIds: string[], network?: Network) => Promise<TripleObjectDetail[]>;
|
|
32
|
+
export declare const fetchTripleSubjectTerms: (termIds: string[], network?: Network) => Promise<TripleSubjectTermDetail[]>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { fetchAtomDetails } from './fetchAtomDetails';
|
|
2
|
+
import { fetchTriplesForAgent } from './fetchTriplesForAgent';
|
|
3
|
+
import { fetchClaimsByAccount } from './fetchClaimsByAccount';
|
|
4
|
+
import { fetchFollowsAndFollowers } from './fetchFollowsAndFollowers';
|
|
5
|
+
import { fetchActivityHistory } from './fetchActivityHistory';
|
|
6
|
+
import { fetchPositions } from './fetchPositions';
|
|
7
|
+
import { fetchClaimsBySubject } from './fetchClaimsBySubject';
|
|
8
|
+
|
|
9
|
+
export { fetchAtomDetails, fetchTriplesForAgent, fetchClaimsByAccount, fetchFollowsAndFollowers, fetchActivityHistory, fetchPositions, fetchClaimsBySubject };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RightPanelMode } from './TopNavBar';
|
|
3
|
+
|
|
4
|
+
interface RightPanelProps {
|
|
5
|
+
mode: RightPanelMode;
|
|
6
|
+
walletAddress?: string;
|
|
7
|
+
walletConnected?: any;
|
|
8
|
+
wagmiConfig?: any;
|
|
9
|
+
myAtomDetails?: any;
|
|
10
|
+
myTriples?: any[];
|
|
11
|
+
myPositions?: any[];
|
|
12
|
+
myActivities?: any[];
|
|
13
|
+
myConnections?: {
|
|
14
|
+
follows: any[];
|
|
15
|
+
followers: any[];
|
|
16
|
+
};
|
|
17
|
+
sidebarLoading?: boolean;
|
|
18
|
+
sidebarError?: string | null;
|
|
19
|
+
selectedAtomDetails?: any;
|
|
20
|
+
selectedClaims?: any[];
|
|
21
|
+
selectedLoading?: boolean;
|
|
22
|
+
selectedError?: string | null;
|
|
23
|
+
}
|
|
24
|
+
declare const RightPanel: React.FC<RightPanelProps>;
|
|
25
|
+
export default RightPanel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React, CSSProperties } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SafeImageProps {
|
|
4
|
+
src?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
style?: CSSProperties;
|
|
7
|
+
fallbackSrc?: string;
|
|
8
|
+
fallbackSources?: string[];
|
|
9
|
+
showPlaceholder?: boolean;
|
|
10
|
+
placeholderText?: string;
|
|
11
|
+
placeholderElement?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Composant image avec gestion automatique des erreurs de chargement
|
|
15
|
+
* - Affiche une image de fallback en cas d'erreur CORS ou 404
|
|
16
|
+
* - Supporte les URLs IPFS et HTTP
|
|
17
|
+
* - Gère les placeholder pour les images manquantes
|
|
18
|
+
*/
|
|
19
|
+
declare const SafeImage: React.FC<SafeImageProps>;
|
|
20
|
+
export default SafeImage;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type RightPanelMode = "speakup" | "atom" | "profile";
|
|
4
|
+
export interface GraphControls {
|
|
5
|
+
goBack: () => void;
|
|
6
|
+
goForward: () => void;
|
|
7
|
+
canGoBack: boolean;
|
|
8
|
+
canGoForward: boolean;
|
|
9
|
+
resetGraph: () => void;
|
|
10
|
+
isSearching: boolean;
|
|
11
|
+
handleSearch?: (query: string, filters: {
|
|
12
|
+
subject: string;
|
|
13
|
+
predicate: string;
|
|
14
|
+
object: string;
|
|
15
|
+
}) => Promise<void>;
|
|
16
|
+
handleSearchStart?: () => void;
|
|
17
|
+
}
|
|
18
|
+
interface TopNavBarProps {
|
|
19
|
+
/** Controls exposed by GraphVisualization via onControlsReady */
|
|
20
|
+
graphControls: GraphControls | null;
|
|
21
|
+
/** Active endpoint passed to SmartSearchInterface */
|
|
22
|
+
endpoint?: string;
|
|
23
|
+
/** Current right panel mode */
|
|
24
|
+
rightPanelMode: RightPanelMode;
|
|
25
|
+
/** Change right panel mode */
|
|
26
|
+
onPanelModeChange: (mode: RightPanelMode) => void;
|
|
27
|
+
/** Logged-in user atom details (for avatar + name) */
|
|
28
|
+
myAtomDetails?: any;
|
|
29
|
+
}
|
|
30
|
+
declare const TopNavBar: React.FC<TopNavBarProps>;
|
|
31
|
+
export default TopNavBar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface AtomDetailsSectionProps {
|
|
4
|
+
atomDetails: any;
|
|
5
|
+
connections: {
|
|
6
|
+
follows: any[];
|
|
7
|
+
followers: any[];
|
|
8
|
+
};
|
|
9
|
+
walletAddress?: string;
|
|
10
|
+
showDescription?: boolean;
|
|
11
|
+
placeholderElement?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const AtomDetailsSection: React.FC<AtomDetailsSectionProps>;
|
|
14
|
+
export default AtomDetailsSection;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ClaimDepositControlsProps {
|
|
4
|
+
claim: any;
|
|
5
|
+
walletAddress?: string;
|
|
6
|
+
walletConnected?: any;
|
|
7
|
+
publicClient?: any;
|
|
8
|
+
onSelectionChange?: (trust: number, direction: "for" | "against" | "neutral") => void;
|
|
9
|
+
}
|
|
10
|
+
declare const ClaimDepositControls: React.FC<ClaimDepositControlsProps>;
|
|
11
|
+
export default ClaimDepositControls;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ClaimsModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
activities: any[];
|
|
7
|
+
walletAddress?: string;
|
|
8
|
+
walletConnected?: any;
|
|
9
|
+
publicClient?: any;
|
|
10
|
+
}
|
|
11
|
+
declare const ClaimsModal: React.FC<ClaimsModalProps>;
|
|
12
|
+
export default ClaimsModal;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ClaimsSectionProps {
|
|
4
|
+
activities: any[];
|
|
5
|
+
title?: string;
|
|
6
|
+
walletAddress?: string;
|
|
7
|
+
walletConnected?: any;
|
|
8
|
+
publicClient?: any;
|
|
9
|
+
}
|
|
10
|
+
declare const ClaimsSection: React.FC<ClaimsSectionProps>;
|
|
11
|
+
export default ClaimsSection;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface PaginationProps {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
onPageChange: (page: number) => void;
|
|
7
|
+
itemsPerPage: number;
|
|
8
|
+
totalItems: number;
|
|
9
|
+
}
|
|
10
|
+
declare const Pagination: React.FC<PaginationProps>;
|
|
11
|
+
export default Pagination;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface PositionCardProps {
|
|
4
|
+
position: any;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
onSelect?: (positionId: string, selected: boolean) => void;
|
|
7
|
+
onAmountChange?: (positionId: string, amount: number) => void;
|
|
8
|
+
redeemAmount?: number;
|
|
9
|
+
publicClient?: any;
|
|
10
|
+
}
|
|
11
|
+
declare const PositionCard: React.FC<PositionCardProps>;
|
|
12
|
+
export default PositionCard;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface PositionsSectionProps {
|
|
4
|
+
accountId: string;
|
|
5
|
+
walletConnected?: any;
|
|
6
|
+
walletAddress?: string;
|
|
7
|
+
publicClient?: any;
|
|
8
|
+
}
|
|
9
|
+
declare const PositionsSection: React.FC<PositionsSectionProps>;
|
|
10
|
+
export default PositionsSection;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface RedeemConfigProps {
|
|
4
|
+
positionId: string;
|
|
5
|
+
shares: number;
|
|
6
|
+
redeemAmount: number;
|
|
7
|
+
onAmountChange: (positionId: string, amount: number) => void;
|
|
8
|
+
publicClient?: any;
|
|
9
|
+
termId?: string;
|
|
10
|
+
curveId?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const RedeemConfig: React.FC<RedeemConfigProps>;
|
|
13
|
+
export default RedeemConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface RedeemSelectorProps {
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
onSelect: (positionId: string, selected: boolean) => void;
|
|
6
|
+
positionId: string;
|
|
7
|
+
}
|
|
8
|
+
declare const RedeemSelector: React.FC<RedeemSelectorProps>;
|
|
9
|
+
export default RedeemSelector;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SidebarDrawerProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export default function SidebarDrawer({ open, onClose, children, }: SidebarDrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface TripleBubbleProps {
|
|
4
|
+
subject: string;
|
|
5
|
+
predicate: string;
|
|
6
|
+
object: string;
|
|
7
|
+
fontSize?: string;
|
|
8
|
+
showArrows?: boolean;
|
|
9
|
+
maxLength?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const TripleBubble: React.FC<TripleBubbleProps>;
|
|
12
|
+
export default TripleBubble;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface TruncatedTextProps {
|
|
4
|
+
text: string;
|
|
5
|
+
maxLength: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const TruncatedText: React.FC<TruncatedTextProps>;
|
|
10
|
+
export default TruncatedText;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as SidebarDrawer } from './SidebarDrawer';
|
|
2
|
+
export { default as ActivityCard } from './ActivityCard';
|
|
3
|
+
export { default as PositionCard } from './PositionCard';
|
|
4
|
+
export { default as AtomDetailsSection } from './AtomDetailsSection';
|
|
5
|
+
export { default as ClaimsSection } from './ClaimsSection';
|
|
6
|
+
export { default as PositionsSection } from './PositionsSection';
|
|
7
|
+
export { default as ActivitySection } from './ActivitySection';
|
|
8
|
+
export { default as Modal } from './Modal';
|
|
9
|
+
export { default as Pagination } from './Pagination';
|
|
10
|
+
export { default as PaginationInfo } from './PaginationInfo';
|
|
11
|
+
export { default as ClaimsModal } from './ClaimsModal';
|
|
12
|
+
export { default as RedeemConfig } from './RedeemConfig';
|
|
13
|
+
export { default as RedeemSelector } from './RedeemSelector';
|
|
14
|
+
export { default as RedeemAllButton } from './RedeemAllButton';
|
|
15
|
+
export { default as TripleBubble } from './TripleBubble';
|
|
16
|
+
export { default as AtomBubble } from './AtomBubble';
|
|
17
|
+
export { default as PositionBubble } from './PositionBubble';
|
|
18
|
+
export { default as TruncatedText } from './TruncatedText';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VoteItem, VoteDirection } from '../../types/vote';
|
|
3
|
+
import { Network } from '../../hooks/useAtomData';
|
|
4
|
+
|
|
5
|
+
interface ClaimItemProps {
|
|
6
|
+
voteItem: VoteItem;
|
|
7
|
+
onChangeUnits: (id: bigint, direction: VoteDirection, units: number) => void;
|
|
8
|
+
isVoteDirectionAllowed?: (tripleId: bigint, direction: VoteDirection) => boolean;
|
|
9
|
+
walletAddress?: string;
|
|
10
|
+
network?: Network;
|
|
11
|
+
}
|
|
12
|
+
export declare const ClaimItem: React.FC<ClaimItemProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VoteItem, VoteDirection } from '../../types/vote';
|
|
3
|
+
import { Network } from '../../hooks/useAtomData';
|
|
4
|
+
|
|
5
|
+
interface ClaimListProps {
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
loadingProgress?: {
|
|
8
|
+
loaded: number;
|
|
9
|
+
total: number;
|
|
10
|
+
};
|
|
11
|
+
voteItems: VoteItem[];
|
|
12
|
+
onChangeUnits: (id: bigint, direction: VoteDirection, units: number) => void;
|
|
13
|
+
isVoteDirectionAllowed?: (tripleId: bigint, direction: VoteDirection) => boolean;
|
|
14
|
+
walletAddress?: string;
|
|
15
|
+
network?: Network;
|
|
16
|
+
}
|
|
17
|
+
export declare const ClaimList: React.FC<ClaimListProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Network } from '../../hooks/useAtomData';
|
|
3
|
+
|
|
4
|
+
interface ClaimVotingProps {
|
|
5
|
+
walletConnected?: any;
|
|
6
|
+
walletAddress?: string;
|
|
7
|
+
publicClient?: any;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
network?: Network;
|
|
10
|
+
onConnectWallet?: () => void;
|
|
11
|
+
onCreatePlayer?: () => void;
|
|
12
|
+
wagmiConfig?: any;
|
|
13
|
+
walletHooks?: any;
|
|
14
|
+
}
|
|
15
|
+
export declare const ClaimVoting: React.FC<ClaimVotingProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface SubmitButtonProps {
|
|
4
|
+
onSubmit: () => void;
|
|
5
|
+
isSubmitting: boolean;
|
|
6
|
+
isDepositLoading: boolean;
|
|
7
|
+
totalUnits: number;
|
|
8
|
+
numberOfTransactions: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const SubmitButton: React.FC<SubmitButtonProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface TransactionInfoProps {
|
|
4
|
+
numberOfTransactions: number;
|
|
5
|
+
totalUnits: number;
|
|
6
|
+
onResetAll: () => void;
|
|
7
|
+
onSubmit: () => void;
|
|
8
|
+
isSubmitting: boolean;
|
|
9
|
+
isDepositLoading: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const TransactionInfo: React.FC<TransactionInfoProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
type TransactionStatusType = {
|
|
4
|
+
status: "idle" | "pending" | "success" | "error" | "approval_pending" | "whitelist_error";
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
interface TransactionStatusDisplayProps {
|
|
8
|
+
transactionStatus: TransactionStatusType;
|
|
9
|
+
}
|
|
10
|
+
export declare const TransactionStatusDisplay: React.FC<TransactionStatusDisplayProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
interface VotingModalProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
walletConnected: any;
|
|
6
|
+
walletAddress?: string;
|
|
7
|
+
publicClient?: any;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
wagmiConfig?: any;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Panneau latéral droit pour le système de vote — s'affiche à côté du graphe (in-flow)
|
|
13
|
+
*/
|
|
14
|
+
declare const VotingModal: React.FC<VotingModalProps>;
|
|
15
|
+
export default VotingModal;
|