-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor auths broadcast cmd in alignment with #6216 #6713
Changes from 9 commits
7a305ab
0a440d5
a74fcec
03eaa86
ce04d9f
5f3e036
ffecb37
d958786
fbe58cc
47f741d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ package cosmos; | |
|
||
import "gogoproto/gogo.proto"; | ||
import "tendermint/abci/types/types.proto"; | ||
import "google/protobuf/any.proto"; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/types"; | ||
option (gogoproto.goproto_stringer_all) = false; | ||
|
@@ -94,3 +95,50 @@ message TxData { | |
|
||
repeated MsgData data = 1; | ||
} | ||
|
||
// TxResponse defines a structure containing relevant tx data and metadata. The | ||
// tags are stringified and the log is JSON decoded. | ||
message TxResponse { | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
int64 height = 1; | ||
string txhash = 2 [(gogoproto.customname) = "TxHash"]; | ||
string codespace = 3; | ||
uint32 code = 4; | ||
string data = 5; | ||
string raw_log = 6; | ||
repeated ABCIMessageLog logs = 7 [(gogoproto.castrepeated) = "ABCIMessageLogs", (gogoproto.nullable) = false]; | ||
string info = 8; | ||
int64 gas_wanted = 9; | ||
int64 gas_used = 10; | ||
google.protobuf.Any tx = 11; | ||
string timestamp = 12; | ||
} | ||
Comment on lines
+101
to
+116
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do want to note that I do think this stuff should live in the root I'd also like to take out the other There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This makes sense. I can tackle this as another PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Great 👍 |
||
|
||
// ABCIMessageLog defines a structure containing an indexed tx ABCI message log. | ||
message ABCIMessageLog { | ||
option (gogoproto.stringer) = true; | ||
|
||
uint32 msg_index = 1; | ||
string log = 2; | ||
|
||
// Events contains a slice of Event objects that were emitted during some | ||
// execution. | ||
repeated StringEvent events = 3 [(gogoproto.castrepeated) = "StringEvents", (gogoproto.nullable) = false]; | ||
} | ||
|
||
// StringAttribute defines en Event object wrapper where all the attributes | ||
// contain key/value pairs that are strings instead of raw bytes. | ||
message StringEvent { | ||
option (gogoproto.stringer) = true; | ||
|
||
string type = 1; | ||
repeated Attribute attributes = 2 [(gogoproto.nullable) = false]; | ||
} | ||
|
||
// Attribute defines an attribute wrapper where the key and value are | ||
// strings instead of raw bytes. | ||
message Attribute { | ||
string key = 1; | ||
string value = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing puncuation.