UNPKG

@neo-one/node-protocol

Version:

NEO•ONE NEO node and consensus protocol.

17 lines (16 loc) 797 B
import { BinaryWriter, SerializableWire, SerializeWire, UInt256 } from '@neo-one/client-common'; import { DeserializeWireBaseOptions, DeserializeWireOptions } from '@neo-one/node-core'; import { InventoryType } from './InventoryType'; export interface InvPayloadAdd { readonly type: InventoryType; readonly hashes: readonly UInt256[]; } export declare class InvPayload implements SerializableWire<InvPayload> { static deserializeWireBase({ reader }: DeserializeWireBaseOptions): InvPayload; static deserializeWire(options: DeserializeWireOptions): InvPayload; readonly type: InventoryType; readonly hashes: readonly UInt256[]; readonly serializeWire: SerializeWire; constructor({ type, hashes }: InvPayloadAdd); serializeWireBase(writer: BinaryWriter): void; }