event.event_transaction.proto Maven / Gradle / Ivy
The newest version!
/**
* # Event Transaction
* An Event Transaction gossiped between nodes as part of events.
*
* ### Keywords
* The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
* "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
* document are to be interpreted as described in
* [RFC2119](https://www.ietf.org/rfc/rfc2119) and clarified in
* [RFC8174](https://www.ietf.org/rfc/rfc8174).
*/
syntax = "proto3";
package com.hedera.hapi.platform.event;
/*
* Copyright (C) 2024 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import "event/state_signature_transaction.proto";
option java_package = "com.hedera.hapi.platform.event.legacy";
// <<>> This comment is special code for setting PBJ Compiler java package
option java_multiple_files = true;
/**
* An Event Transaction gossiped between nodes as part of events.
*
* Each node MUST extract this transaction and process according to the type
* of transaction encoded.
* Both the platform and the application built on that platform MAY define event
* transactions.
* The encoded data MUST be a serialized protobuf message.
*/
message EventTransaction {
oneof transaction {
/**
* An application transaction.
*
* The contents of this transaction SHALL be defined by the application
* subsystem that created the event.
* The contents MUST be a serialized protobuf message.
*/
bytes application_transaction = 1;
/**
* A state signature.
*
* This transaction SHALL be a valid state signature for a state snapshot.
*/
StateSignatureTransaction state_signature_transaction = 2;
}
}