UNPKG

lightningdevkit

Version:
44 lines (43 loc) 1.55 kB
import { Option_AddressZ } from '../structs/Option_AddressZ.mjs'; import { LSPS1OrderParams } from '../structs/LSPS1OrderParams.mjs'; import { CommonBase } from './CommonBase.mjs'; /** * A request made to an LSP to create an order. * * Please refer to the [bLIP-51 / LSPS1 * specification](https://github.com/lightning/blips/blob/master/blip-0051.md#2-lsps1create_order) * for more information. */ export declare class LSPS1CreateOrderRequest extends CommonBase { /** * The order made. */ get_order(): LSPS1OrderParams; /** * The order made. */ set_order(val: LSPS1OrderParams): void; /** * The address where the LSP will send the funds if the order fails. */ get_refund_onchain_address(): Option_AddressZ; /** * The address where the LSP will send the funds if the order fails. */ set_refund_onchain_address(val: Option_AddressZ): void; /** * Constructs a new LSPS1CreateOrderRequest given each field */ static constructor_new(order_arg: LSPS1OrderParams, refund_onchain_address_arg: Option_AddressZ): LSPS1CreateOrderRequest; clone_ptr(): bigint; /** * Creates a copy of the LSPS1CreateOrderRequest */ clone(): LSPS1CreateOrderRequest; /** * Checks if two LSPS1CreateOrderRequests 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: LSPS1CreateOrderRequest): boolean; }