lightningdevkit
Version:
Lightning Development Kit
45 lines (44 loc) • 1.73 kB
text/typescript
import { LSPS1GetInfoRequest } from '../structs/LSPS1GetInfoRequest.mjs';
import { LSPS1CreateOrderRequest } from '../structs/LSPS1CreateOrderRequest.mjs';
import { LSPS1GetOrderRequest } from '../structs/LSPS1GetOrderRequest.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* An enum that captures all the valid JSON-RPC requests in the bLIP-51 / LSPS1 protocol.
*/
export declare class LSPS1Request extends CommonBase {
protected constructor(_dummy: null, ptr: bigint);
clone_ptr(): bigint;
/**
* Creates a copy of the LSPS1Request
*/
clone(): LSPS1Request;
/**
* Utility method to constructs a new GetInfo-variant LSPS1Request
*/
static constructor_get_info(a: LSPS1GetInfoRequest): LSPS1Request;
/**
* Utility method to constructs a new CreateOrder-variant LSPS1Request
*/
static constructor_create_order(a: LSPS1CreateOrderRequest): LSPS1Request;
/**
* Utility method to constructs a new GetOrder-variant LSPS1Request
*/
static constructor_get_order(a: LSPS1GetOrderRequest): LSPS1Request;
/**
* Checks if two LSPS1Requests contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
*/
eq(b: LSPS1Request): boolean;
}
/** A LSPS1Request of type GetInfo */
export declare class LSPS1Request_GetInfo extends LSPS1Request {
get_info: LSPS1GetInfoRequest;
}
/** A LSPS1Request of type CreateOrder */
export declare class LSPS1Request_CreateOrder extends LSPS1Request {
create_order: LSPS1CreateOrderRequest;
}
/** A LSPS1Request of type GetOrder */
export declare class LSPS1Request_GetOrder extends LSPS1Request {
get_order: LSPS1GetOrderRequest;
}