@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
27 lines • 1.03 kB
TypeScript
import { InitiateLoginFunctionType, LoginHookGenericStateType, OnProviderLoginType } from '../../types';
export interface UseLedgerLoginPropsType extends OnProviderLoginType {
addressesPerPage?: number;
}
export interface SelectedAddress {
address: string;
index: number;
}
export interface LedgerLoginHookCustomStateType {
accounts: string[];
showAddressList: boolean;
startIndex: number;
selectedAddress: SelectedAddress | null;
version: string;
contractDataEnabled: boolean;
onGoToPrevPage: () => void;
onGoToNextPage: () => void;
onSelectAddress: (address: SelectedAddress | null) => void;
onConfirmSelectedAddress: () => void;
}
export declare type LedgerLoginHookReturnType = [
InitiateLoginFunctionType,
LoginHookGenericStateType,
LedgerLoginHookCustomStateType
];
export declare function useLedgerLogin({ callbackRoute, token, addressesPerPage, onLoginRedirect }: UseLedgerLoginPropsType): LedgerLoginHookReturnType;
//# sourceMappingURL=useLedgerLogin.d.ts.map