mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
REF: SendDetailsParams
This commit is contained in:
parent
147430a80e
commit
7b9ecff33c
@ -1,5 +1,5 @@
|
||||
import { LightningTransaction } from '../class/wallets/types';
|
||||
import { BitcoinUnit } from '../models/bitcoinUnits';
|
||||
import { SendDetailsParams } from './SendDetailsStackParamList';
|
||||
|
||||
export type DetailViewStackParamList = {
|
||||
UnlockWithScreen: undefined;
|
||||
@ -33,24 +33,7 @@ export type DetailViewStackParamList = {
|
||||
AddWalletRoot: undefined;
|
||||
SendDetailsRoot: {
|
||||
screen: string;
|
||||
params: {
|
||||
walletID: string;
|
||||
address?: string;
|
||||
amount?: number;
|
||||
amountSats?: number;
|
||||
unit?: BitcoinUnit;
|
||||
noRbf?: boolean;
|
||||
launchedBy?: string;
|
||||
isEditable?: boolean;
|
||||
uri?: string;
|
||||
addRecipientParams?: {
|
||||
address?: string;
|
||||
amount?: number;
|
||||
memo?: string;
|
||||
};
|
||||
};
|
||||
merge: boolean;
|
||||
};
|
||||
params:SendDetailsParams;
|
||||
LNDCreateInvoiceRoot: undefined;
|
||||
ScanLndInvoiceRoot: {
|
||||
screen: string;
|
||||
@ -122,4 +105,4 @@ export type DetailViewStackParamList = {
|
||||
};
|
||||
};
|
||||
ReorderWallets: undefined;
|
||||
};
|
||||
}}
|
@ -1,9 +1,8 @@
|
||||
import { Psbt } from 'bitcoinjs-lib';
|
||||
import { CreateTransactionTarget, CreateTransactionUtxo, TWallet } from '../class/wallets/types';
|
||||
import { CreateTransactionTarget, CreateTransactionUtxo, TWallet, LightningTransaction } from '../class/wallets/types';
|
||||
import { BitcoinUnit, Chain } from '../models/bitcoinUnits';
|
||||
|
||||
export type SendDetailsStackParamList = {
|
||||
SendDetails: {
|
||||
export type SendDetailsParams = {
|
||||
memo: string;
|
||||
address: string;
|
||||
walletID: string;
|
||||
@ -19,7 +18,11 @@ export type SendDetailsStackParamList = {
|
||||
amount?: number;
|
||||
memo?: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
export type SendDetailsStackParamList = {
|
||||
SendDetails: SendDetailsParams;
|
||||
Confirm: {
|
||||
fee: number;
|
||||
memo?: string;
|
||||
@ -92,3 +95,127 @@ export type SendDetailsStackParamList = {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
export type DetailViewStackParamList = {
|
||||
UnlockWithScreen: undefined;
|
||||
WalletsList: undefined;
|
||||
WalletTransactions: { walletID: string; walletType: string };
|
||||
LDKOpenChannelRoot: undefined;
|
||||
LdkInfo: undefined;
|
||||
WalletDetails: { walletID: string };
|
||||
LdkViewLogs: undefined;
|
||||
TransactionDetails: { transactionId: string };
|
||||
TransactionStatus: { hash?: string; walletID?: string };
|
||||
CPFP: { transactionId: string };
|
||||
RBFBumpFee: { transactionId: string };
|
||||
RBFCancel: { transactionId: string };
|
||||
SelectWallet: undefined;
|
||||
LNDViewInvoice: { invoice: LightningTransaction; walletID: string };
|
||||
LNDViewAdditionalInvoiceInformation: { invoiceId: string };
|
||||
LNDViewAdditionalInvoicePreImage: { invoiceId: string };
|
||||
Broadcast: undefined;
|
||||
IsItMyAddress: undefined;
|
||||
GenerateWord: undefined;
|
||||
LnurlPay: undefined;
|
||||
LnurlPaySuccess: {
|
||||
paymentHash: string;
|
||||
justPaid: boolean;
|
||||
fromWalletID: string;
|
||||
};
|
||||
LnurlAuth: undefined;
|
||||
Success: undefined;
|
||||
WalletAddresses: { walletID: string };
|
||||
AddWalletRoot: undefined;
|
||||
SendDetailsRoot: {
|
||||
screen: string;
|
||||
params: {
|
||||
walletID: string;
|
||||
address?: string;
|
||||
amount?: number;
|
||||
amountSats?: number;
|
||||
unit?: BitcoinUnit;
|
||||
noRbf?: boolean;
|
||||
launchedBy?: string;
|
||||
isEditable?: boolean;
|
||||
uri?: string;
|
||||
addRecipientParams?: {
|
||||
address?: string;
|
||||
amount?: number;
|
||||
memo?: string;
|
||||
};
|
||||
memo?: string;
|
||||
};
|
||||
merge: boolean;
|
||||
};
|
||||
LNDCreateInvoiceRoot: undefined;
|
||||
ScanLndInvoiceRoot: {
|
||||
screen: string;
|
||||
params: {
|
||||
paymentHash: string;
|
||||
fromWalletID: string;
|
||||
justPaid: boolean;
|
||||
};
|
||||
};
|
||||
AztecoRedeemRoot: undefined;
|
||||
WalletExportRoot: undefined;
|
||||
ExportMultisigCoordinationSetupRoot: undefined;
|
||||
Settings: undefined;
|
||||
Currency: undefined;
|
||||
GeneralSettings: undefined;
|
||||
PlausibleDeniability: undefined;
|
||||
Licensing: undefined;
|
||||
NetworkSettings: undefined;
|
||||
About: undefined;
|
||||
DefaultView: undefined;
|
||||
ElectrumSettings: undefined;
|
||||
EncryptStorage: undefined;
|
||||
Language: undefined;
|
||||
LightningSettings: {
|
||||
url?: string;
|
||||
};
|
||||
NotificationSettings: undefined;
|
||||
SelfTest: undefined;
|
||||
ReleaseNotes: undefined;
|
||||
Tools: undefined;
|
||||
SettingsPrivacy: undefined;
|
||||
ViewEditMultisigCosignersRoot: { walletID: string; cosigners: string[] };
|
||||
WalletXpubRoot: undefined;
|
||||
SignVerifyRoot: {
|
||||
screen: 'SignVerify';
|
||||
params: {
|
||||
walletID: string;
|
||||
address: string;
|
||||
};
|
||||
};
|
||||
ReceiveDetailsRoot: {
|
||||
screen: 'ReceiveDetails';
|
||||
params: {
|
||||
walletID: string;
|
||||
address: string;
|
||||
};
|
||||
};
|
||||
ScanQRCodeRoot: {
|
||||
screen: string;
|
||||
params: {
|
||||
isLoading: false;
|
||||
cameraStatusGranted?: boolean;
|
||||
backdoorPressed?: boolean;
|
||||
launchedBy?: string;
|
||||
urTotal?: number;
|
||||
urHave?: number;
|
||||
backdoorText?: string;
|
||||
onDismiss?: () => void;
|
||||
showFileImportButton: true;
|
||||
backdoorVisible?: boolean;
|
||||
animatedQRCodeData?: Record<string, any>;
|
||||
};
|
||||
};
|
||||
PaymentCodeListRoot: {
|
||||
screen: 'PaymentCodeList';
|
||||
params: {
|
||||
paymentCode: string;
|
||||
walletID: string;
|
||||
};
|
||||
};
|
||||
ReorderWallets: undefined;
|
||||
};
|
Loading…
Reference in New Issue
Block a user