UNPKG

xud

Version:
21 lines (20 loc) 723 B
import Packet, { PacketDirection, ResponseType } from '../Packet'; import PacketType from '../PacketType'; import * as pb from '../../../proto/xudp2p_pb'; export declare type SwapRequestPacketBody = { proposedQuantity: number; pairId: string; orderId: string; rHash: string; takerCltvDelta: number; }; declare class SwapRequestPacket extends Packet<SwapRequestPacketBody> { get type(): PacketType; get direction(): PacketDirection; get responseType(): ResponseType; static deserialize: (binary: Uint8Array) => SwapRequestPacket | pb.SwapRequestPacket.AsObject; private static validate; private static convert; serialize: () => Uint8Array; } export default SwapRequestPacket;