@ethersphere/bee-dashboard 0.19.0 → 0.19.1
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/build/asset-manifest.json +3 -3
- package/build/index.html +1 -1
- package/build/static/js/{main.712f4f3e.js → main.c3963f3e.js} +3 -3
- package/build/static/js/{main.712f4f3e.js.LICENSE.txt → main.c3963f3e.js.LICENSE.txt} +0 -0
- package/build/static/js/{main.712f4f3e.js.map → main.c3963f3e.js.map} +1 -1
- package/lib/App.js +1 -1
- package/lib/src/App.d.ts +10 -0
- package/lib/src/components/AlertUploadSize.d.ts +6 -0
- package/lib/src/components/Capacity.d.ts +7 -0
- package/lib/src/components/Card.d.ts +11 -0
- package/lib/src/components/CashoutModal.d.ts +7 -0
- package/lib/src/components/ClipboardCopy.d.ts +6 -0
- package/lib/src/components/CloseButton.d.ts +6 -0
- package/lib/src/components/Code.d.ts +7 -0
- package/lib/src/components/CodeBlock.d.ts +8 -0
- package/lib/src/components/CodeBlockTabs.d.ts +8 -0
- package/lib/src/components/DocumentationText.d.ts +6 -0
- package/lib/src/components/ErrorBoundary.d.ts +16 -0
- package/lib/src/components/EthereumAddress.d.ts +9 -0
- package/lib/src/components/ExpandableElement.d.ts +8 -0
- package/lib/src/components/ExpandableList.d.ts +10 -0
- package/lib/src/components/ExpandableListItem.d.ts +8 -0
- package/lib/src/components/ExpandableListItemActions.d.ts +6 -0
- package/lib/src/components/ExpandableListItemInput.d.ts +19 -0
- package/lib/src/components/ExpandableListItemKey.d.ts +8 -0
- package/lib/src/components/ExpandableListItemLink.d.ts +10 -0
- package/lib/src/components/ExpandableListItemNote.d.ts +6 -0
- package/lib/src/components/Feedback.d.ts +2 -0
- package/lib/src/components/FitImage.d.ts +9 -0
- package/lib/src/components/History.d.ts +8 -0
- package/lib/src/components/HistoryHeader.d.ts +6 -0
- package/lib/src/components/Loading.d.ts +2 -0
- package/lib/src/components/Map.d.ts +7 -0
- package/lib/src/components/ProgressIndicator.d.ts +7 -0
- package/lib/src/components/QRCodeModal.d.ts +7 -0
- package/lib/src/components/SideBar.d.ts +2 -0
- package/lib/src/components/SideBarItem.d.ts +10 -0
- package/lib/src/components/SideBarStatus.d.ts +6 -0
- package/lib/src/components/StatusIcon.d.ts +10 -0
- package/lib/src/components/StripedWrapper.d.ts +6 -0
- package/lib/src/components/SwarmButton.d.ts +10 -0
- package/lib/src/components/SwarmDialog.d.ts +6 -0
- package/lib/src/components/SwarmDivider.d.ts +9 -0
- package/lib/src/components/SwarmSelect.d.ts +19 -0
- package/lib/src/components/SwarmTextInput.d.ts +13 -0
- package/lib/src/components/TabsContainer.d.ts +12 -0
- package/lib/src/components/TitleWithClose.d.ts +7 -0
- package/lib/src/components/TopologyStats.d.ts +7 -0
- package/lib/src/components/TroubleshootConnectionCard.d.ts +2 -0
- package/lib/src/components/Waiting.d.ts +2 -0
- package/lib/src/components/WithdrawDepositModal.d.ts +14 -0
- package/lib/src/config.d.ts +16 -0
- package/lib/src/constants.d.ts +7 -0
- package/lib/src/containers/DepositModal.d.ts +2 -0
- package/lib/src/containers/WithdrawModal.d.ts +2 -0
- package/lib/src/hooks/accounting.d.ts +18 -0
- package/lib/src/hooks/apiHooks.d.ts +50 -0
- package/lib/src/hooks/apiHooks.test.d.ts +3 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/layout/Dashboard.d.ts +6 -0
- package/lib/src/layout/ItsBroken.d.ts +6 -0
- package/lib/src/models/BzzToken.d.ts +5 -0
- package/lib/src/models/DaiToken.d.ts +5 -0
- package/lib/src/models/Token.d.ts +27 -0
- package/lib/src/models/Token.test.d.ts +1 -0
- package/lib/src/pages/account/AccountNavigation.d.ts +6 -0
- package/lib/src/pages/account/Header.d.ts +2 -0
- package/lib/src/pages/account/chequebook/AccountChequebook.d.ts +2 -0
- package/lib/src/pages/account/feeds/AccountFeeds.d.ts +2 -0
- package/lib/src/pages/account/stamps/AccountStamps.d.ts +2 -0
- package/lib/src/pages/account/wallet/AccountWallet.d.ts +2 -0
- package/lib/src/pages/accounting/PeerBalances.d.ts +10 -0
- package/lib/src/pages/feeds/CreateNewFeed.d.ts +2 -0
- package/lib/src/pages/feeds/DeleteFeedDialog.d.ts +9 -0
- package/lib/src/pages/feeds/ExportFeedDialog.d.ts +8 -0
- package/lib/src/pages/feeds/FeedPasswordDialog.d.ts +9 -0
- package/lib/src/pages/feeds/FeedSubpage.d.ts +2 -0
- package/lib/src/pages/feeds/ImportFeedDialog.d.ts +6 -0
- package/lib/src/pages/feeds/UpdateFeed.d.ts +2 -0
- package/lib/src/pages/feeds/index.d.ts +2 -0
- package/lib/src/pages/files/AssetIcon.d.ts +6 -0
- package/lib/src/pages/files/AssetPreview.d.ts +7 -0
- package/lib/src/pages/files/AssetSummary.d.ts +7 -0
- package/lib/src/pages/files/Download.d.ts +2 -0
- package/lib/src/pages/files/DownloadActionBar.d.ts +11 -0
- package/lib/src/pages/files/FileNavigation.d.ts +6 -0
- package/lib/src/pages/files/SelectStamp.d.ts +9 -0
- package/lib/src/pages/files/Share.d.ts +2 -0
- package/lib/src/pages/files/StampPreview.d.ts +7 -0
- package/lib/src/pages/files/Upload.d.ts +2 -0
- package/lib/src/pages/files/UploadActionBar.d.ts +16 -0
- package/lib/src/pages/files/UploadArea.d.ts +8 -0
- package/lib/src/pages/files/UploadLander.d.ts +2 -0
- package/lib/src/pages/gift-code/index.d.ts +2 -0
- package/lib/src/pages/info/NodeInfoCard.d.ts +2 -0
- package/lib/src/pages/info/index.d.ts +2 -0
- package/lib/src/pages/restart/LightModeRestart.d.ts +2 -0
- package/lib/src/pages/settings/index.d.ts +2 -0
- package/lib/src/pages/stamps/CreatePostageStampPage.d.ts +2 -0
- package/lib/src/pages/stamps/PostageStamp.d.ts +8 -0
- package/lib/src/pages/stamps/PostageStampCreation.d.ts +6 -0
- package/lib/src/pages/stamps/PostageStampSelector.d.ts +8 -0
- package/lib/src/pages/stamps/SelectPostageStampModal.d.ts +9 -0
- package/lib/src/pages/stamps/StampsTable.d.ts +7 -0
- package/lib/src/pages/stamps/index.d.ts +2 -0
- package/lib/src/pages/status/SetupSteps/ChequebookDeployFund.d.ts +3 -0
- package/lib/src/pages/status/SetupSteps/DebugConnectionCheck.d.ts +2 -0
- package/lib/src/pages/status/SetupSteps/EthereumConnectionCheck.d.ts +2 -0
- package/lib/src/pages/status/SetupSteps/NodeConnectionCheck.d.ts +2 -0
- package/lib/src/pages/status/SetupSteps/PeerConnection.d.ts +2 -0
- package/lib/src/pages/status/SetupSteps/VersionCheck.d.ts +2 -0
- package/lib/src/pages/status/index.d.ts +2 -0
- package/lib/src/pages/top-up/Balance.d.ts +9 -0
- package/lib/src/pages/top-up/BankCardTopUpIndex.d.ts +2 -0
- package/lib/src/pages/top-up/CryptoTopUpIndex.d.ts +2 -0
- package/lib/src/pages/top-up/GiftCardFund.d.ts +2 -0
- package/lib/src/pages/top-up/GiftCardTopUpIndex.d.ts +2 -0
- package/lib/src/pages/top-up/Swap.d.ts +6 -0
- package/lib/src/pages/top-up/TopUpProgressIndicator.d.ts +6 -0
- package/lib/src/pages/top-up/index.d.ts +2 -0
- package/lib/src/providers/Bee.d.ts +56 -0
- package/lib/src/providers/Feeds.d.ts +21 -0
- package/lib/src/providers/File.d.ts +22 -0
- package/lib/src/providers/Platform.d.ts +23 -0
- package/lib/src/providers/Settings.d.ts +33 -0
- package/lib/src/providers/Stamps.d.ts +23 -0
- package/lib/src/providers/TopUp.d.ts +13 -0
- package/lib/src/providers/WalletBalance.d.ts +18 -0
- package/lib/src/reportWebVitals.d.ts +3 -0
- package/lib/src/routes.d.ts +31 -0
- package/lib/src/setupTests.d.ts +1 -0
- package/lib/src/theme.d.ts +7 -0
- package/lib/src/types.d.ts +36 -0
- package/lib/src/utils/bzz-abi.d.ts +16 -0
- package/lib/src/utils/bzz-faucet.d.ts +1 -0
- package/lib/src/utils/chain.d.ts +1 -0
- package/lib/src/utils/date.d.ts +1 -0
- package/lib/src/utils/desktop.d.ts +18 -0
- package/lib/src/utils/file.d.ts +14 -0
- package/lib/src/utils/hash.d.ts +1 -0
- package/lib/src/utils/identity.d.ts +9 -0
- package/lib/src/utils/image.d.ts +27 -0
- package/lib/src/utils/index.d.ts +72 -0
- package/lib/src/utils/index.test.d.ts +1 -0
- package/lib/src/utils/local-storage.d.ts +12 -0
- package/lib/src/utils/net.d.ts +3 -0
- package/lib/src/utils/rpc.d.ts +24 -0
- package/lib/src/utils/sentry.d.ts +1 -0
- package/lib/src/utils/threshold.d.ts +22 -0
- package/lib/src/utils/wallet.d.ts +24 -0
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import { Accounting } from '../../hooks/accounting';
|
|
3
|
+
import type { Token } from '../../models/Token';
|
|
4
|
+
interface Props {
|
|
5
|
+
isLoadingUncashed: boolean;
|
|
6
|
+
totalUncashed: Token;
|
|
7
|
+
accounting: Accounting[] | null;
|
|
8
|
+
}
|
|
9
|
+
export default function PeerBalances({ accounting, isLoadingUncashed, totalUncashed }: Props): ReactElement | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { Identity } from '../../providers/Feeds';
|
|
3
|
+
interface Props {
|
|
4
|
+
identity: Identity;
|
|
5
|
+
onConfirm: (identity: Identity) => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function DeleteFeedDialog({ identity, onConfirm, onClose }: Props): ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
feedName: string;
|
|
4
|
+
onProceed: (password: string) => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function FeedPasswordDialog({ feedName, onProceed, onCancel, loading }: Props): ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
onOpen: () => void;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
onDownload: () => void;
|
|
6
|
+
onUpdateFeed: () => void;
|
|
7
|
+
hasIndexDocument: boolean;
|
|
8
|
+
loading: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function DownloadActionBar({ onOpen, onCancel, onDownload, onUpdateFeed, hasIndexDocument, loading, }: Props): ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EnrichedPostageBatch } from '../../providers/Stamps';
|
|
3
|
+
interface Props {
|
|
4
|
+
stamps: EnrichedPostageBatch[] | null;
|
|
5
|
+
selectedStamp: EnrichedPostageBatch | null;
|
|
6
|
+
setSelected: (stamp: EnrichedPostageBatch) => void;
|
|
7
|
+
}
|
|
8
|
+
export default function SimpleMenu({ stamps, selectedStamp, setSelected }: Props): ReactElement | null;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
step: number;
|
|
4
|
+
onUpload: () => void;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
onGoBack: () => void;
|
|
7
|
+
onProceed: () => void;
|
|
8
|
+
isUploading: boolean;
|
|
9
|
+
hasStamp: boolean;
|
|
10
|
+
hasAnyStamps: boolean;
|
|
11
|
+
uploadLabel: string;
|
|
12
|
+
stampMode: 'BUY' | 'SELECT';
|
|
13
|
+
setStampMode: (mode: 'BUY' | 'SELECT') => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function UploadActionBar({ step, onUpload, onCancel, onGoBack, onProceed, isUploading, hasStamp, hasAnyStamps, uploadLabel, stampMode, setStampMode, }: Props): ReactElement;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { UploadOrigin } from '../../providers/File';
|
|
3
|
+
interface Props {
|
|
4
|
+
uploadOrigin: UploadOrigin;
|
|
5
|
+
showHelp: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function UploadArea({ uploadOrigin, showHelp }: Props): ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EnrichedPostageBatch } from '../../providers/Stamps';
|
|
3
|
+
interface Props {
|
|
4
|
+
stamp: EnrichedPostageBatch;
|
|
5
|
+
shorten?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function PostageStamp({ stamp, shorten }: Props): ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EnrichedPostageBatch } from '../../providers/Stamps';
|
|
3
|
+
interface Props {
|
|
4
|
+
onSelect: (stamp: EnrichedPostageBatch) => void;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function PostageStampSelector({ onSelect, defaultValue }: Props): ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { EnrichedPostageBatch } from '../../providers/Stamps';
|
|
3
|
+
interface Props {
|
|
4
|
+
stamps: EnrichedPostageBatch[];
|
|
5
|
+
onSelect: (stamp: EnrichedPostageBatch) => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function SelectPostageStampModal({ stamps, onSelect, onClose }: Props): ReactElement;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import { EnrichedPostageBatch } from '../../providers/Stamps';
|
|
3
|
+
interface Props {
|
|
4
|
+
postageStamps: EnrichedPostageBatch[] | null;
|
|
5
|
+
}
|
|
6
|
+
declare function StampsTable({ postageStamps }: Props): ReactElement | null;
|
|
7
|
+
export default StampsTable;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChainState, ChequebookAddressResponse, Health, LastChequesResponse, NodeAddresses, NodeInfo, Peer, Topology } from '@ethersphere/bee-js';
|
|
2
|
+
import { ReactChild, ReactElement } from 'react';
|
|
3
|
+
import type { Balance, ChequebookBalance, Settlements } from '../types';
|
|
4
|
+
export declare enum CheckState {
|
|
5
|
+
OK = "OK",
|
|
6
|
+
WARNING = "Warning",
|
|
7
|
+
ERROR = "Error"
|
|
8
|
+
}
|
|
9
|
+
interface StatusItem {
|
|
10
|
+
isEnabled: boolean;
|
|
11
|
+
checkState: CheckState;
|
|
12
|
+
}
|
|
13
|
+
interface Status {
|
|
14
|
+
all: CheckState;
|
|
15
|
+
version: StatusItem;
|
|
16
|
+
blockchainConnection: StatusItem;
|
|
17
|
+
debugApiConnection: StatusItem;
|
|
18
|
+
apiConnection: StatusItem;
|
|
19
|
+
topology: StatusItem;
|
|
20
|
+
chequebook: StatusItem;
|
|
21
|
+
}
|
|
22
|
+
interface ContextInterface {
|
|
23
|
+
status: Status;
|
|
24
|
+
latestPublishedVersion?: string;
|
|
25
|
+
latestUserVersion?: string;
|
|
26
|
+
latestUserVersionExact?: string;
|
|
27
|
+
isLatestBeeVersion: boolean;
|
|
28
|
+
latestBeeVersionUrl: string;
|
|
29
|
+
error: Error | null;
|
|
30
|
+
apiHealth: boolean;
|
|
31
|
+
debugApiHealth: Health | null;
|
|
32
|
+
nodeAddresses: NodeAddresses | null;
|
|
33
|
+
nodeInfo: NodeInfo | null;
|
|
34
|
+
topology: Topology | null;
|
|
35
|
+
chequebookAddress: ChequebookAddressResponse | null;
|
|
36
|
+
peers: Peer[] | null;
|
|
37
|
+
chequebookBalance: ChequebookBalance | null;
|
|
38
|
+
peerBalances: Balance[] | null;
|
|
39
|
+
peerCheques: LastChequesResponse | null;
|
|
40
|
+
settlements: Settlements | null;
|
|
41
|
+
chainState: ChainState | null;
|
|
42
|
+
chainId: number | null;
|
|
43
|
+
latestBeeRelease: LatestBeeRelease | null;
|
|
44
|
+
isLoading: boolean;
|
|
45
|
+
lastUpdate: number | null;
|
|
46
|
+
start: (frequency?: number) => void;
|
|
47
|
+
stop: () => void;
|
|
48
|
+
refresh: () => Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
51
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
52
|
+
interface Props {
|
|
53
|
+
children: ReactChild;
|
|
54
|
+
}
|
|
55
|
+
export declare function Provider({ children }: Props): ReactElement;
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactChild, ReactElement } from 'react';
|
|
2
|
+
export declare type IdentityType = 'V3' | 'PRIVATE_KEY';
|
|
3
|
+
export interface Identity {
|
|
4
|
+
uuid: string;
|
|
5
|
+
name: string;
|
|
6
|
+
feedHash?: string;
|
|
7
|
+
identity: string;
|
|
8
|
+
address: string;
|
|
9
|
+
type: IdentityType;
|
|
10
|
+
}
|
|
11
|
+
interface ContextInterface {
|
|
12
|
+
identities: Identity[];
|
|
13
|
+
setIdentities: (identities: Identity[]) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
16
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
17
|
+
interface Props {
|
|
18
|
+
children: ReactChild;
|
|
19
|
+
}
|
|
20
|
+
export declare function Provider({ children }: Props): ReactElement;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactChild, ReactElement } from 'react';
|
|
2
|
+
export declare type UploadOrigin = {
|
|
3
|
+
origin: 'UPLOAD' | 'FEED';
|
|
4
|
+
uuid?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const defaultUploadOrigin: UploadOrigin;
|
|
7
|
+
interface ContextInterface {
|
|
8
|
+
files: FilePath[];
|
|
9
|
+
setFiles: (files: FilePath[]) => void;
|
|
10
|
+
uploadOrigin: UploadOrigin;
|
|
11
|
+
setUploadOrigin: (uploadOrigin: UploadOrigin) => void;
|
|
12
|
+
metadata?: Metadata;
|
|
13
|
+
previewUri?: string;
|
|
14
|
+
previewBlob?: Blob;
|
|
15
|
+
}
|
|
16
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
17
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
18
|
+
interface Props {
|
|
19
|
+
children: ReactChild;
|
|
20
|
+
}
|
|
21
|
+
export declare function Provider({ children }: Props): ReactElement;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactChild, ReactElement } from 'react';
|
|
2
|
+
export declare enum Platforms {
|
|
3
|
+
macOS = 0,
|
|
4
|
+
Linux = 1,
|
|
5
|
+
Windows = 2,
|
|
6
|
+
iOS = 3,
|
|
7
|
+
Android = 4
|
|
8
|
+
}
|
|
9
|
+
export declare enum SupportedPlatforms {
|
|
10
|
+
macOS = 0,
|
|
11
|
+
Linux = 1
|
|
12
|
+
}
|
|
13
|
+
interface ContextInterface {
|
|
14
|
+
platform: SupportedPlatforms;
|
|
15
|
+
setPlatform: (platform: SupportedPlatforms) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
18
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
19
|
+
interface Props {
|
|
20
|
+
children: ReactChild;
|
|
21
|
+
}
|
|
22
|
+
export declare function Provider({ children }: Props): ReactElement;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Bee, BeeDebug } from '@ethersphere/bee-js';
|
|
2
|
+
import { providers } from 'ethers';
|
|
3
|
+
import { ReactNode, ReactElement } from 'react';
|
|
4
|
+
interface ContextInterface {
|
|
5
|
+
apiUrl: string;
|
|
6
|
+
apiDebugUrl: string;
|
|
7
|
+
beeApi: Bee | null;
|
|
8
|
+
beeDebugApi: BeeDebug | null;
|
|
9
|
+
lockedApiSettings: boolean;
|
|
10
|
+
desktopApiKey: string;
|
|
11
|
+
providerUrl: string;
|
|
12
|
+
provider: providers.JsonRpcProvider;
|
|
13
|
+
cors: string | null;
|
|
14
|
+
dataDir: string | null;
|
|
15
|
+
ensResolver: string | null;
|
|
16
|
+
setApiUrl: (url: string) => void;
|
|
17
|
+
setDebugApiUrl: (url: string) => void;
|
|
18
|
+
setAndPersistJsonRpcProvider: (url: string) => Promise<void>;
|
|
19
|
+
isBeeDesktop: boolean;
|
|
20
|
+
isLoading: boolean;
|
|
21
|
+
error: Error | null;
|
|
22
|
+
}
|
|
23
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
24
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
25
|
+
interface Props {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
beeApiUrl?: string;
|
|
28
|
+
beeDebugApiUrl?: string;
|
|
29
|
+
lockedApiSettings?: boolean;
|
|
30
|
+
isBeeDesktop?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function Provider({ children, beeApiUrl, beeDebugApiUrl, lockedApiSettings: extLockedApiSettings, isBeeDesktop: extIsBeeDesktop, }: Props): ReactElement;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PostageBatch } from '@ethersphere/bee-js';
|
|
2
|
+
import { ReactChild, ReactElement } from 'react';
|
|
3
|
+
export interface EnrichedPostageBatch extends PostageBatch {
|
|
4
|
+
usage: number;
|
|
5
|
+
usageText: string;
|
|
6
|
+
}
|
|
7
|
+
interface ContextInterface {
|
|
8
|
+
stamps: EnrichedPostageBatch[] | null;
|
|
9
|
+
error: Error | null;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
lastUpdate: number | null;
|
|
12
|
+
start: (frequency?: number) => void;
|
|
13
|
+
stop: () => void;
|
|
14
|
+
refresh: () => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
17
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
18
|
+
interface Props {
|
|
19
|
+
children: ReactChild;
|
|
20
|
+
}
|
|
21
|
+
export declare function enrichStamp(postageBatch: PostageBatch): EnrichedPostageBatch;
|
|
22
|
+
export declare function Provider({ children }: Props): ReactElement;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Wallet } from 'ethers';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
interface ContextInterface {
|
|
4
|
+
giftWallets: Wallet[];
|
|
5
|
+
addGiftWallet: (wallet: Wallet) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
8
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
9
|
+
interface Props {
|
|
10
|
+
children: ReactElement;
|
|
11
|
+
}
|
|
12
|
+
export declare function Provider({ children }: Props): ReactElement;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactChild, ReactElement } from 'react';
|
|
2
|
+
import { WalletAddress } from '../utils/wallet';
|
|
3
|
+
interface ContextInterface {
|
|
4
|
+
balance: WalletAddress | null;
|
|
5
|
+
error: Error | null;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
lastUpdate: number | null;
|
|
8
|
+
start: (frequency?: number) => void;
|
|
9
|
+
stop: () => void;
|
|
10
|
+
refresh: () => Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export declare const Context: import("react").Context<ContextInterface>;
|
|
13
|
+
export declare const Consumer: import("react").Consumer<ContextInterface>;
|
|
14
|
+
interface Props {
|
|
15
|
+
children: ReactChild;
|
|
16
|
+
}
|
|
17
|
+
export declare function Provider({ children }: Props): ReactElement;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
export declare enum ROUTES {
|
|
3
|
+
INFO = "/",
|
|
4
|
+
FILES = "/files",
|
|
5
|
+
UPLOAD = "/files/upload",
|
|
6
|
+
UPLOAD_IN_PROGRESS = "/files/upload/workflow",
|
|
7
|
+
DOWNLOAD = "/files/download",
|
|
8
|
+
HASH = "/files/hash/:hash",
|
|
9
|
+
SETTINGS = "/settings",
|
|
10
|
+
STATUS = "/status",
|
|
11
|
+
TOP_UP = "/account/wallet/top-up",
|
|
12
|
+
TOP_UP_CRYPTO = "/account/wallet/top-up/crypto",
|
|
13
|
+
TOP_UP_CRYPTO_SWAP = "/account/wallet/top-up/crypto/swap",
|
|
14
|
+
TOP_UP_BANK_CARD = "/account/wallet/top-up/bank-card",
|
|
15
|
+
TOP_UP_BANK_CARD_SWAP = "/account/wallet/top-up/bank-card/swap",
|
|
16
|
+
TOP_UP_GIFT_CODE = "/account/wallet/top-up/gift-code",
|
|
17
|
+
TOP_UP_GIFT_CODE_FUND = "/account/wallet/top-up/gift-code/fund/:privateKeyString",
|
|
18
|
+
RESTART_LIGHT = "/light-mode-restart",
|
|
19
|
+
ACCOUNT_WALLET = "/account/wallet",
|
|
20
|
+
ACCOUNT_CHEQUEBOOK = "/account/chequebook",
|
|
21
|
+
ACCOUNT_STAMPS = "/account/stamps",
|
|
22
|
+
ACCOUNT_STAMPS_NEW = "/account/stamps/new",
|
|
23
|
+
ACCOUNT_FEEDS = "/account/feeds",
|
|
24
|
+
ACCOUNT_FEEDS_NEW = "/account/feeds/new",
|
|
25
|
+
ACCOUNT_FEEDS_UPDATE = "/account/feeds/update/:hash",
|
|
26
|
+
ACCOUNT_FEEDS_VIEW = "/account/feeds/:uuid",
|
|
27
|
+
ACCOUNT_INVITATIONS = "/account/invitations"
|
|
28
|
+
}
|
|
29
|
+
export declare const ACCOUNT_TABS: ROUTES[];
|
|
30
|
+
declare const BaseRouter: () => ReactElement;
|
|
31
|
+
export default BaseRouter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|