laconic-wallet/types.ts
IshaVenikar 8685c94151 Integrate functionality to add new accounts with UI (#17)
* Create addAccount function

* Make review changes

* Create addAccount function

* Add id for each account

* Modify resetWallet function

* Make review changes

* Integrate functions
2024-02-19 12:12:18 +05:30

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[];
};