* Started work on multiple msgs, types and x/auth tests pass * Fix issues in x, examples, and baseapp * Added baseapp tests for multiple msgs * Documentation fixes * Fix baseapp tests with sdk.Int * Modify test * Transaction handling is now atomic * Fix test comment * Minor doc fixes and code cleanup * Added baseapp result changes * Use address in validator update accumulation * Started work on multiple msgs, types and x/auth tests pass * Fix issues in x, examples, and baseapp * Added baseapp tests for multiple msgs * Documentation fixes * Fix baseapp tests with sdk.Int * Modify test * Transaction handling is now atomic * Fix test comment * Minor doc fixes and code cleanup * Added baseapp result changes * Use address in validator update accumulation * Added ante tests for multisigner * Remove validatorUpdates from tx result * Better error logs * Put Memo in StdSignBytes and formatting * Updated changelog
33 lines
728 B
Go
33 lines
728 B
Go
package types
|
|
|
|
// Result is the union of ResponseDeliverTx and ResponseCheckTx.
|
|
type Result struct {
|
|
|
|
// Code is the response code, is stored back on the chain.
|
|
Code ABCICodeType
|
|
|
|
// Data is any data returned from the app.
|
|
Data []byte
|
|
|
|
// Log is just debug information. NOTE: nondeterministic.
|
|
Log string
|
|
|
|
// GasWanted is the maximum units of work we allow this tx to perform.
|
|
GasWanted int64
|
|
|
|
// GasUsed is the amount of gas actually consumed. NOTE: unimplemented
|
|
GasUsed int64
|
|
|
|
// Tx fee amount and denom.
|
|
FeeAmount int64
|
|
FeeDenom string
|
|
|
|
// Tags are used for transaction indexing and pubsub.
|
|
Tags Tags
|
|
}
|
|
|
|
// TODO: In the future, more codes may be OK.
|
|
func (res Result) IsOK() bool {
|
|
return res.Code.IsOK()
|
|
}
|