UNPKG

lightningdevkit

Version:
52 lines (51 loc) 1.34 kB
import { CommonBase } from './CommonBase.mjs'; /** * Invalid inbound onion payment. */ export declare class InboundHTLCErr extends CommonBase { /** * BOLT 4 error code. */ get_err_code(): number; /** * BOLT 4 error code. */ set_err_code(val: number): void; /** * Data attached to this error. * * Returns a copy of the field. */ get_err_data(): Uint8Array; /** * Data attached to this error. */ set_err_data(val: Uint8Array): void; /** * Error message text. */ get_msg(): string; /** * Error message text. */ set_msg(val: string): void; /** * Constructs a new InboundHTLCErr given each field */ static constructor_new(err_code_arg: number, err_data_arg: Uint8Array, msg_arg: string): InboundHTLCErr; clone_ptr(): bigint; /** * Creates a copy of the InboundHTLCErr */ clone(): InboundHTLCErr; /** * Generates a non-cryptographic 64-bit hash of the InboundHTLCErr. */ hash(): bigint; /** * Checks if two InboundHTLCErrs contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. * Two objects with NULL inner values will be considered "equal" here. */ eq(b: InboundHTLCErr): boolean; }