github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/protos/transaction_receipt.proto (about)

     1  // Copyright 2017 Intel Corporation
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  // -----------------------------------------------------------------------------
    15  
    16  syntax = "proto3";
    17  
    18  option java_multiple_files = true;
    19  option java_package = "sawtooth.sdk.protobuf";
    20  option go_package = "txn_receipt_pb2";
    21  
    22  import "events.proto";
    23  
    24  
    25  message TransactionReceipt {
    26    // State changes made by this transaction
    27    // StateChange is defined in protos/transaction_receipt.proto
    28    repeated StateChange state_changes = 1;
    29    // Events fired by this transaction
    30    repeated Event events = 2;
    31    // Transaction family defined data
    32    repeated bytes data = 3;
    33  
    34    string transaction_id = 4;
    35  }
    36  
    37  //  StateChange objects have the type of SET, which is either an insert or
    38  //  update, or DELETE. Items marked as a DELETE will have no byte value.
    39  message StateChange {
    40      enum Type {
    41          TYPE_UNSET = 0;
    42          SET = 1;
    43          DELETE = 2;
    44      }
    45      string address = 1;
    46      bytes value = 2;
    47      Type type = 3;
    48  }
    49  
    50  // A collection of state changes.
    51  message StateChangeList {
    52      repeated StateChange state_changes = 1;
    53  }