diff --git a/hydra-node/json-schemas/logs.yaml b/hydra-node/json-schemas/logs.yaml index 9aad427abab..dd073bcd0b1 100644 --- a/hydra-node/json-schemas/logs.yaml +++ b/hydra-node/json-schemas/logs.yaml @@ -1579,7 +1579,6 @@ definitions: - tag - ttl - message - - party description: >- Input representing some message received from peers on the network. properties: @@ -1587,11 +1586,9 @@ definitions: type: string enum: ["NetworkInput"] message: - $ref: "logs.yaml#/definitions/Message" + $ref: "logs.yaml#/definitions/NetworkMessage" ttl: type: number - party: - $ref: "api.yaml#/components/schemas/Party" - title: ChainInput type: object additionalProperties: false @@ -1608,6 +1605,62 @@ definitions: chainEvent: $ref: "logs.yaml#/definitions/ChainEvent" + NetworkMessage: + oneOf: + - title: ConnectivityMessage + type: object + additionalProperties: false + required: + - tag + - contents + properties: + tag: + type: string + enum: ["ConnectivityMessage"] + contents: + oneOf: + - title: Connected + type: object + additionalProperties: false + required: + - tag + - nodeId + properties: + tag: + type: string + enum: ["Connected"] + nodeId: + type: string + + - title: Disconnected + type: object + additionalProperties: false + required: + - tag + - nodeId + properties: + tag: + type: string + enum: ["Disconnected"] + nodeId: + type: string + + - title: OffchainProtocolMessage + type: object + additionalProperties: false + required: + - tag + - sender + - msg + properties: + tag: + type: string + enum: ["OffchainProtocolMessage"] + sender: + $ref: "api.yaml#/components/schemas/Party" + msg: + $ref: "logs.yaml#/definitions/Message" + Message: description: >- Messages exchanged by Hydra network peers over a broadcasting network.