github.com/okex/exchain@v1.8.0/libs/tendermint/mempool/exchain_simulate.go (about) 1 package mempool 2 3 import abci "github.com/okex/exchain/libs/tendermint/abci/types" 4 5 // SimulationResponse defines the response generated when a transaction is successfully 6 // simulated by the Baseapp. 7 type SimulationResponse struct { 8 GasInfo 9 Result *Result 10 } 11 12 // GasInfo defines tx execution gas context. 13 type GasInfo struct { 14 // GasWanted is the maximum units of work we allow this tx to perform. 15 GasWanted uint64 16 17 // GasUsed is the amount of gas actually consumed. 18 GasUsed uint64 19 } 20 21 // Result is the union of ResponseFormat and ResponseCheckTx. 22 type Result struct { 23 // Data is any data returned from message or handler execution. It MUST be length 24 // prefixed in order to separate data from multiple message executions. 25 Data []byte 26 27 // Log contains the log information from message or handler execution. 28 Log string 29 30 // Events contains a slice of Event objects that were emitted during message or 31 // handler execution. 32 Events []abci.Event 33 }