forked from cerc-io/laconic-wallet
* Create addAccount function * Make review changes * Create addAccount function * Add id for each account * Modify resetWallet function * Make review changes * Integrate functions
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[];
|
|
};
|