@node-dlc/messaging
Version:
DLC Messaging Protocol
36 lines (35 loc) • 1 kB
TypeScript
/// <reference types="node" />
import { MessageType } from '../MessageType';
import { IDlcMessage } from './DlcMessage';
import { OracleAnnouncementV0, OracleAnnouncementV0JSON } from './OracleAnnouncementV0';
/**
* OracleInfo contains information about the oracles to be used in
* executing a DLC.
*/
export declare class OracleInfoV0 implements IDlcMessage {
static type: MessageType;
/**
* Deserializes an oracle_info_v0 message
* @param buf
*/
static deserialize(buf: Buffer): OracleInfoV0;
/**
* The type for oracle_info_v0 message. oracle_info_v0 = 42770
*/
type: MessageType;
length: bigint;
announcement: OracleAnnouncementV0;
validate(): void;
/**
* Converts oracle_info_v0 to JSON
*/
toJSON(): OracleInfoV0JSON;
/**
* Serializes the oracle_info_v0 message into a Buffer
*/
serialize(): Buffer;
}
export interface OracleInfoV0JSON {
type: number;
announcement: OracleAnnouncementV0JSON;
}