lightningdevkit
Version:
Lightning Development Kit
40 lines (39 loc) • 1.38 kB
text/typescript
import { Option_u64Z } from '../structs/Option_u64Z.mjs';
import { LSPS2OpeningFeeParams } from '../structs/LSPS2OpeningFeeParams.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* A request to buy a JIT channel.
*/
export declare class LSPS2BuyRequest extends CommonBase {
/**
* The fee parameters you would like to use.
*/
get_opening_fee_params(): LSPS2OpeningFeeParams;
/**
* The fee parameters you would like to use.
*/
set_opening_fee_params(val: LSPS2OpeningFeeParams): void;
/**
* The size of the initial payment you expect to receive.
*/
get_payment_size_msat(): Option_u64Z;
/**
* The size of the initial payment you expect to receive.
*/
set_payment_size_msat(val: Option_u64Z): void;
/**
* Constructs a new LSPS2BuyRequest given each field
*/
static constructor_new(opening_fee_params_arg: LSPS2OpeningFeeParams, payment_size_msat_arg: Option_u64Z): LSPS2BuyRequest;
clone_ptr(): bigint;
/**
* Creates a copy of the LSPS2BuyRequest
*/
clone(): LSPS2BuyRequest;
/**
* Checks if two LSPS2BuyRequests 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: LSPS2BuyRequest): boolean;
}