forked from cerc-io/laconic-wallet
* Change button position * Keep reset button at the bottom * Use dropdown for accounts in separate component * Display data of selected account * Add method to add multiple accounts * Change reset button position * Clear account state on reset * Display correct account info after creating * Added account info to sign page * Change variable names * Use consistent variable names * Use account id in ui * Make review changes * Fix imports --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com>
37 lines
739 B
TypeScript
37 lines
739 B
TypeScript
export type StackParamsList = {
|
|
Laconic: undefined;
|
|
SignMessage: { selectedNetwork: string; accountInfo: Account } | undefined;
|
|
};
|
|
|
|
export type Account = {
|
|
id: number,
|
|
pubKey: string;
|
|
address: string;
|
|
};
|
|
|
|
export type WalletDetails = {
|
|
ethAccount: Account;
|
|
cosmosAccount: Account;
|
|
};
|
|
|
|
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[];
|
|
};
|