UNPKG

xud

Version:
18 lines (17 loc) 664 B
import Packet, { PacketDirection, ResponseType } from '../Packet'; import PacketType from '../PacketType'; import * as pb from '../../../proto/xudp2p_pb'; export declare type SanitySwapInitPacketBody = { currency: string; rHash: string; }; declare class SanitySwapInitPacket extends Packet<SanitySwapInitPacketBody> { get type(): PacketType; get direction(): PacketDirection; get responseType(): ResponseType; static deserialize: (binary: Uint8Array) => SanitySwapInitPacket | pb.SanitySwapInitPacket.AsObject; private static validate; private static convert; serialize: () => Uint8Array; } export default SanitySwapInitPacket;