@sofaws/dapp-core
Version:
A library to hold the main logic for a dapp on the Elrond Network
23 lines • 1 kB
TypeScript
import { Transaction } from '@elrondnetwork/erdjs';
import { ActiveLedgerTransactionType, MultiSignTransactionType } from 'types';
export interface UseSignTransactionsWithDevicePropsType {
onCancel: () => void;
verifyReceiverScam?: boolean;
}
declare type DeviceSignedTransactions = Record<number, Transaction>;
export interface UseSignTransactionsWithDeviceReturnType {
allTransactions: MultiSignTransactionType[];
onSignTransaction: () => void;
onNext: () => void;
onPrev: () => void;
onAbort: () => void;
waitingForDevice: boolean;
isLastTransaction: boolean;
callbackRoute?: string;
currentStep: number;
signedTransactions?: DeviceSignedTransactions;
currentTransaction: ActiveLedgerTransactionType | null;
}
export declare function useSignTransactionsWithDevice({ onCancel, verifyReceiverScam }: UseSignTransactionsWithDevicePropsType): UseSignTransactionsWithDeviceReturnType;
export {};
//# sourceMappingURL=useSignTransactionsWithDevice.d.ts.map