UNPKG

lightningdevkit

Version:
58 lines (57 loc) 2.07 kB
import { ChannelId } from '../structs/ChannelId.mjs'; import { Option_i64Z } from '../structs/Option_i64Z.mjs'; import { Result_TxAckRbfDecodeErrorZ } from '../structs/Result_TxAckRbfDecodeErrorZ.mjs'; import { CommonBase } from './CommonBase.mjs'; /** * A [`tx_ack_rbf`] message which acknowledges replacement of the transaction after it's been * completed. * * [`tx_ack_rbf`]: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md#the-tx_ack_rbf-message */ export declare class TxAckRbf extends CommonBase { /** * The channel ID */ get_channel_id(): ChannelId; /** * The channel ID */ set_channel_id(val: ChannelId): void; /** * The number of satoshis the sender will contribute to or, if negative, remove from * (e.g. splice-out) the funding output of the transaction */ get_funding_output_contribution(): Option_i64Z; /** * The number of satoshis the sender will contribute to or, if negative, remove from * (e.g. splice-out) the funding output of the transaction */ set_funding_output_contribution(val: Option_i64Z): void; /** * Constructs a new TxAckRbf given each field */ static constructor_new(channel_id_arg: ChannelId, funding_output_contribution_arg: Option_i64Z): TxAckRbf; clone_ptr(): bigint; /** * Creates a copy of the TxAckRbf */ clone(): TxAckRbf; /** * Generates a non-cryptographic 64-bit hash of the TxAckRbf. */ hash(): bigint; /** * Checks if two TxAckRbfs 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: TxAckRbf): boolean; /** * Serialize the TxAckRbf object into a byte array which can be read by TxAckRbf_read */ write(): Uint8Array; /** * Read a TxAckRbf from a byte array, created by TxAckRbf_write */ static constructor_read(ser: Uint8Array): Result_TxAckRbfDecodeErrorZ; }