forked from cerc-io/laconic-wallet
* Display mnemonic on wallet creation * Change srp to mnemonic * Display mnemonic in a grid * Remove line * Make review changes --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com>
59 lines
1.1 KiB
TypeScript
59 lines
1.1 KiB
TypeScript
export type StackParamsList = {
|
|
Laconic: undefined;
|
|
SignMessage: { selectedNetwork: string; accountInfo: Account } | undefined;
|
|
};
|
|
|
|
export type Account = {
|
|
id: number;
|
|
pubKey: string;
|
|
address: string;
|
|
};
|
|
|
|
export type WalletDetails = {
|
|
mnemonic: string;
|
|
ethAccounts: Account | undefined;
|
|
cosmosAccounts: Account | undefined;
|
|
};
|
|
|
|
export type AccountsProps = {
|
|
network: string;
|
|
accounts: {
|
|
ethAccounts: Account[];
|
|
cosmosAccounts: Account[];
|
|
};
|
|
currentIndex: number;
|
|
updateIndex: (index: number) => void;
|
|
updateAccounts: (account: Account) => void;
|
|
};
|
|
|
|
export type NetworkDropdownProps = {
|
|
selectedNetwork: string;
|
|
updateNetwork: (network: string) => void;
|
|
};
|
|
|
|
export type AccountsState = {
|
|
ethAccounts: Account[];
|
|
cosmosAccounts: Account[];
|
|
};
|
|
|
|
export type SignMessageParams = {
|
|
message: string;
|
|
network: string;
|
|
accountId: number;
|
|
};
|
|
|
|
export type CreateWalletProps = {
|
|
isWalletCreating: boolean;
|
|
createWalletHandler: () => Promise<void>;
|
|
};
|
|
|
|
export type ResetDialogProps = {
|
|
visible: boolean;
|
|
hideDialog: () => void;
|
|
onConfirm: () => void;
|
|
};
|
|
|
|
export type GridViewProps = {
|
|
words: string[];
|
|
};
|