Some checks failed
Build Release and Upload to TestFlight (iOS) / build (push) Has been cancelled
BuildReleaseApk / buildReleaseApk (push) Has been cancelled
Build Release and Upload to TestFlight (iOS) / testflight-upload (push) Has been cancelled
BuildReleaseApk / browserstack (push) Has been cancelled
159 lines
4.7 KiB
TypeScript
159 lines
4.7 KiB
TypeScript
import { AztecoVoucher } from '../class/azteco';
|
|
import { LightningTransaction, TWallet } from '../class/wallets/types';
|
|
import { BitcoinUnit, Chain } from '../models/bitcoinUnits';
|
|
import { PromptPasswordConfirmationParams } from '../screen/PromptPasswordConfirmationSheet.types';
|
|
import { ElectrumServerItem } from '../screen/settings/ElectrumSettings';
|
|
import { SendDetailsParams, TNavigationWrapper } from './SendDetailsStackParamList';
|
|
|
|
export type ScanQRCodeParamList = {
|
|
cameraStatusGranted?: boolean;
|
|
backdoorPressed?: boolean;
|
|
launchedBy?: string;
|
|
urTotal?: number;
|
|
urHave?: number;
|
|
backdoorText?: string;
|
|
onBarScanned?: (data: string, useBBQR: boolean) => void;
|
|
showFileImportButton?: boolean;
|
|
backdoorVisible?: boolean;
|
|
orientation?: 'portrait';
|
|
animatedQRCodeData?: Record<string, any>;
|
|
};
|
|
|
|
type VaultKeyData = {
|
|
keyIndex: number;
|
|
seed: string;
|
|
passphrase?: string;
|
|
xpub: string;
|
|
fp: string;
|
|
path: string;
|
|
cosignerXpubURv2: string;
|
|
exportFilename: string;
|
|
exportString?: string;
|
|
};
|
|
|
|
export type DetailViewStackParamList = {
|
|
DrawerRoot: undefined;
|
|
UnlockWithScreen: undefined;
|
|
WalletsList: { onBarScanned?: string };
|
|
WalletTransactions: { isLoading?: boolean; walletID: string; walletType: string; onBarScanned?: string };
|
|
WalletDetails: { walletID: string };
|
|
// TODO: type tx properly once Transaction and ElectrumTransaction are unified
|
|
TransactionStatus: { hash: string; walletID: string; tx?: any };
|
|
CPFP: {
|
|
wallet: TWallet | null;
|
|
txid: string;
|
|
};
|
|
RBFBumpFee: { txid: string; wallet: TWallet | null };
|
|
RBFCancel: { txid: string; wallet: TWallet | null };
|
|
SelectWallet: {
|
|
chainType?: Chain;
|
|
onWalletSelect?: (wallet: TWallet, navigationWrapper: TNavigationWrapper) => void;
|
|
availableWallets?: TWallet[];
|
|
noWalletExplanationText?: string;
|
|
onChainRequireSend?: boolean;
|
|
selectedWalletID?: string; // Add this parameter to scroll to a specific wallet
|
|
};
|
|
LNDViewInvoice: { invoice: LightningTransaction; walletID: string };
|
|
LNDViewAdditionalInvoiceInformation: { invoiceId: string };
|
|
LNDViewAdditionalInvoicePreImage: { invoiceId: string };
|
|
Broadcast: object;
|
|
IsItMyAddress: object;
|
|
GenerateWord: undefined;
|
|
LnurlPay: undefined;
|
|
LnurlPaySuccess: {
|
|
paymentHash: string;
|
|
justPaid: boolean;
|
|
fromWalletID: string;
|
|
};
|
|
LnurlAuth: undefined;
|
|
Success: undefined;
|
|
WalletAddresses: { walletID: string };
|
|
AddWalletRoot: undefined;
|
|
SendDetailsRoot: SendDetailsParams;
|
|
LNDCreateInvoiceRoot: undefined;
|
|
ScanLNDInvoiceRoot: {
|
|
screen: string;
|
|
params: {
|
|
paymentHash: string;
|
|
fromWalletID: string;
|
|
justPaid: boolean;
|
|
};
|
|
};
|
|
AztecoRedeemRoot: {
|
|
screen: string;
|
|
params: {
|
|
aztecoVoucher: AztecoVoucher;
|
|
};
|
|
};
|
|
AztecoRedeem: { aztecoVoucher: AztecoVoucher };
|
|
WalletExport: undefined;
|
|
ExportMultisigCoordinationSetupRoot: undefined;
|
|
Settings: undefined;
|
|
Currency: undefined;
|
|
GeneralSettings: undefined;
|
|
Licensing: undefined;
|
|
NetworkSettings: undefined;
|
|
About: undefined;
|
|
// DefaultView: undefined; // Commented out - not accessible from UI
|
|
ElectrumSettings: { server?: ElectrumServerItem; onBarScanned?: string };
|
|
SettingsBlockExplorer: undefined;
|
|
PlausibleDeniability: undefined;
|
|
EncryptStorage: undefined;
|
|
Language: undefined;
|
|
LightningSettings: {
|
|
url?: string;
|
|
onBarScanned?: string;
|
|
};
|
|
NotificationSettings: undefined;
|
|
SelfTest: undefined;
|
|
ReleaseNotes: undefined;
|
|
SettingsTools: undefined;
|
|
ViewEditMultisigCosigners: {
|
|
walletID: string;
|
|
cosigners: string[];
|
|
sheetAction?: string;
|
|
sheetImportText?: string;
|
|
sheetAskPassphrase?: boolean;
|
|
sheetCurrentlyEditingCosignerNum?: number;
|
|
};
|
|
ViewEditMultisigCosignerViewSheet: { walletID: string; vaultKeyData: VaultKeyData };
|
|
ViewEditMultisigProvideMnemonicsSheet: {
|
|
walletID: string;
|
|
currentlyEditingCosignerNum: number;
|
|
importText: string;
|
|
askPassphrase: boolean;
|
|
};
|
|
ViewEditMultisigShareCosignerSheet: {
|
|
walletID: string;
|
|
cosignerXpub: string;
|
|
cosignerXpubURv2: string;
|
|
exportFilename: string;
|
|
};
|
|
WalletXpub: { walletID: string; xpub: string };
|
|
SignVerifyRoot: {
|
|
screen: 'SignVerify';
|
|
params: {
|
|
walletID: string;
|
|
address: string;
|
|
};
|
|
};
|
|
ReceiveDetails: {
|
|
walletID?: string;
|
|
address: string;
|
|
};
|
|
ReceiveCustomAmount: {
|
|
address: string;
|
|
currentLabel?: string;
|
|
currentAmount?: string;
|
|
currentUnit?: BitcoinUnit;
|
|
preferredUnit?: BitcoinUnit;
|
|
};
|
|
ScanQRCode: ScanQRCodeParamList;
|
|
PaymentCodeList: {
|
|
paymentCode: string;
|
|
walletID: string;
|
|
};
|
|
PromptPasswordConfirmationSheet: PromptPasswordConfirmationParams | undefined;
|
|
ManageWallets: undefined;
|
|
};
|