xud
Version:
Exchange Union Daemon
21 lines (20 loc) • 902 B
TypeScript
import Packet, { PacketDirection, ResponseType } from '../Packet';
import PacketType from '../PacketType';
import * as pb from '../../../proto/xudp2p_pb';
export declare type SwapAcceptedPacketBody = {
rHash: string;
/** Specifies the accepted quantity (which may be less than the proposed quantity). */
quantity: number;
/** The CLTV delta from the current height that should be used to set the timelock for the final hop when sending to maker. */
makerCltvDelta: number;
};
declare class SwapAcceptedPacket extends Packet<SwapAcceptedPacketBody> {
get type(): PacketType;
get direction(): PacketDirection;
get responseType(): ResponseType;
static deserialize: (binary: Uint8Array) => SwapAcceptedPacket | pb.SwapAcceptedPacket.AsObject;
private static validate;
private static convert;
serialize: () => Uint8Array;
}
export default SwapAcceptedPacket;