lightningdevkit
Version:
Lightning Development Kit
36 lines (35 loc) • 1.27 kB
text/typescript
import { LSPS2GetInfoRequest } from '../structs/LSPS2GetInfoRequest.mjs';
import { LSPS2BuyRequest } from '../structs/LSPS2BuyRequest.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* An enum that captures all the valid JSON-RPC requests in the bLIP-52 / LSPS2 protocol.
*/
export declare class LSPS2Request extends CommonBase {
protected constructor(_dummy: null, ptr: bigint);
clone_ptr(): bigint;
/**
* Creates a copy of the LSPS2Request
*/
clone(): LSPS2Request;
/**
* Utility method to constructs a new GetInfo-variant LSPS2Request
*/
static constructor_get_info(a: LSPS2GetInfoRequest): LSPS2Request;
/**
* Utility method to constructs a new Buy-variant LSPS2Request
*/
static constructor_buy(a: LSPS2BuyRequest): LSPS2Request;
/**
* Checks if two LSPS2Requests contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
*/
eq(b: LSPS2Request): boolean;
}
/** A LSPS2Request of type GetInfo */
export declare class LSPS2Request_GetInfo extends LSPS2Request {
get_info: LSPS2GetInfoRequest;
}
/** A LSPS2Request of type Buy */
export declare class LSPS2Request_Buy extends LSPS2Request {
buy: LSPS2BuyRequest;
}