Add some fields to TxsResponse

This commit is contained in:
Simon Warta 2020-02-14 13:43:18 +01:00
parent a2068f79de
commit 0818542fec
3 changed files with 14 additions and 0 deletions

View File

@ -183,6 +183,7 @@ describe("decode", () => {
txhash: testdata.txId,
raw_log: '[{"msg_index":0,"success":true,"log":""}]',
tx: cosmoshub.tx,
timestamp: "2020-02-14T11:35:41Z",
};
const expected = {
transaction: testdata.sendTxJson,
@ -205,6 +206,7 @@ describe("decode", () => {
txhash: testdata.txId,
raw_log: '[{"msg_index":0,"success":true,"log":""}]',
tx: cosmoshub.tx,
timestamp: "2020-02-14T11:35:41Z",
};
const expected = {
...testdata.signedTxJson,

View File

@ -69,7 +69,13 @@ export interface TxsResponse {
readonly height: string;
readonly txhash: string;
readonly raw_log: string;
readonly logs?: object;
readonly tx: CosmosSdkTx;
/** The gas limit as set by the user */
readonly gas_wanted?: string;
/** The gas used by the execution */
readonly gas_used?: string;
readonly timestamp: string;
}
interface SearchTxsResponse {

View File

@ -42,7 +42,13 @@ export interface TxsResponse {
readonly height: string;
readonly txhash: string;
readonly raw_log: string;
readonly logs?: object;
readonly tx: CosmosSdkTx;
/** The gas limit as set by the user */
readonly gas_wanted?: string;
/** The gas used by the execution */
readonly gas_used?: string;
readonly timestamp: string;
}
interface SearchTxsResponse {
readonly total_count: string;