github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/types/ibc-adapter/abci.proto (about) 1 syntax = "proto3"; 2 package cosmos.base.abci.v1beta1; 3 4 import "gogoproto/gogo.proto"; 5 import "tendermint/abci/types.proto"; 6 import "google/protobuf/any.proto"; 7 8 option go_package = "github.com/cosmos/cosmos-sdk/types"; 9 option (gogoproto.goproto_stringer_all) = false; 10 11 // TxResponse defines a structure containing relevant tx data and metadata. The 12 // tags are stringified and the log is JSON decoded. 13 message TxResponse { 14 option (gogoproto.goproto_getters) = false; 15 // The block height 16 int64 height = 1; 17 // The transaction hash. 18 string txhash = 2 [(gogoproto.customname) = "TxHash"]; 19 // Namespace for the Code 20 string codespace = 3; 21 // Response code. 22 uint32 code = 4; 23 // Result bytes, if any. 24 string data = 5; 25 // The output of the application's logger (raw string). May be 26 // non-deterministic. 27 string raw_log = 6; 28 // The output of the application's logger (typed). May be non-deterministic. 29 repeated ABCIMessageLog logs = 7 [(gogoproto.castrepeated) = "ABCIMessageLogs", (gogoproto.nullable) = false]; 30 // Additional information. May be non-deterministic. 31 string info = 8; 32 // Amount of gas requested for transaction. 33 int64 gas_wanted = 9; 34 // Amount of gas consumed by transaction. 35 int64 gas_used = 10; 36 // The request transaction bytes. 37 google.protobuf.Any tx = 11; 38 // Time of the previous block. For heights > 1, it's the weighted median of 39 // the timestamps of the valid votes in the block.LastCommit. For height == 1, 40 // it's genesis time. 41 string timestamp = 12; 42 // Events defines all the events emitted by processing a transaction. Note, 43 // these events include those emitted by processing all the messages and those 44 // emitted from the ante handler. Whereas Logs contains the events, with 45 // additional metadata, emitted only by processing the messages. 46 // 47 // Since: cosmos-sdk 0.42.11, 0.44.5, 0.45 48 repeated tendermint.abci.Event events = 13 [(gogoproto.nullable) = false]; 49 } 50 51 // ABCIMessageLog defines a structure containing an indexed tx ABCI message log. 52 message ABCIMessageLog { 53 option (gogoproto.stringer) = true; 54 55 uint32 msg_index = 1; 56 string log = 2; 57 58 // Events contains a slice of Event objects that were emitted during some 59 // execution. 60 repeated StringEvent events = 3 [(gogoproto.castrepeated) = "StringEvents", (gogoproto.nullable) = false]; 61 } 62 63 // StringEvent defines en Event object wrapper where all the attributes 64 // contain key/value pairs that are strings instead of raw bytes. 65 message StringEvent { 66 option (gogoproto.stringer) = true; 67 68 string type = 1; 69 repeated Attribute attributes = 2 [(gogoproto.nullable) = false]; 70 } 71 72 // Attribute defines an attribute wrapper where the key and value are 73 // strings instead of raw bytes. 74 message Attribute { 75 string key = 1; 76 string value = 2; 77 } 78 79 // GasInfo defines tx execution gas context. 80 message GasInfo { 81 // GasWanted is the maximum units of work we allow this tx to perform. 82 uint64 gas_wanted = 1 [(gogoproto.moretags) = "yaml:\"gas_wanted\""]; 83 84 // GasUsed is the amount of gas actually consumed. 85 uint64 gas_used = 2 [(gogoproto.moretags) = "yaml:\"gas_used\""]; 86 } 87 88 // Result is the union of ResponseFormat and ResponseCheckTx. 89 message Result { 90 option (gogoproto.goproto_getters) = false; 91 92 // Data is any data returned from message or handler execution. It MUST be 93 // length prefixed in order to separate data from multiple message executions. 94 bytes data = 1; 95 96 // Log contains the log information from message or handler execution. 97 string log = 2; 98 99 // Events contains a slice of Event objects that were emitted during message 100 // or handler execution. 101 repeated tendermint.abci.Event events = 3 [(gogoproto.nullable) = false]; 102 } 103 104 // SimulationResponse defines the response generated when a transaction is 105 // successfully simulated. 106 message SimulationResponse { 107 GasInfo gas_info = 1 [(gogoproto.embed) = true, (gogoproto.nullable) = false]; 108 Result result = 2; 109 } 110 111 // MsgData defines the data returned in a Result object during message 112 // execution. 113 message MsgData { 114 option (gogoproto.stringer) = true; 115 116 string msg_type = 1; 117 bytes data = 2; 118 } 119 120 // TxMsgData defines a list of MsgData. A transaction will have a MsgData object 121 // for each message. 122 message TxMsgData { 123 option (gogoproto.stringer) = true; 124 125 repeated MsgData data = 1; 126 } 127 128 // SearchTxsResult defines a structure for querying txs pageable 129 message SearchTxsResult { 130 option (gogoproto.stringer) = true; 131 132 // Count of all txs 133 uint64 total_count = 1 [(gogoproto.moretags) = "yaml:\"total_count\"", (gogoproto.jsontag) = "total_count"]; 134 // Count of txs in current page 135 uint64 count = 2; 136 // Index of current page, start from 1 137 uint64 page_number = 3 [(gogoproto.moretags) = "yaml:\"page_number\"", (gogoproto.jsontag) = "page_number"]; 138 // Count of total pages 139 uint64 page_total = 4 [(gogoproto.moretags) = "yaml:\"page_total\"", (gogoproto.jsontag) = "page_total"]; 140 // Max count txs per page 141 uint64 limit = 5; 142 // List of txs in current page 143 repeated TxResponse txs = 6; 144 }