@coolwallet/kas
Version:
13 lines (12 loc) • 1 kB
TypeScript
import { Transaction } from '../transaction';
import { Input, Output, Change, Payment, AddressVersion } from '../config/types';
export declare function validate(condition: boolean, funcName: string, message: string): void;
export declare function validChecksum(prefix: string, payload: Uint8Array): boolean;
export declare function validateAmountCanDisplayOnProCard(transferAmount: string | number, decimals: string | number): void;
export declare function validateInputs(inputs: Input[]): void;
export declare function validateOutput(output: Output, haveChange: boolean): void;
export declare function validateChange(change: Change): void;
export declare function validateOutputs(outputs: Output[]): void;
export declare function validateDustThreshold(transferAmount: string | number, dustSize?: string): void;
export declare function validateTransaction(transaction: Transaction): void;
export declare function validatePayment(payment: Payment, funcName: string, addressVersion: AddressVersion): void;