diff --git a/packages/bcp/src/decode.spec.ts b/packages/bcp/src/decode.spec.ts index ce04f912..dde064c6 100644 --- a/packages/bcp/src/decode.spec.ts +++ b/packages/bcp/src/decode.spec.ts @@ -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, diff --git a/packages/sdk/src/restclient.ts b/packages/sdk/src/restclient.ts index 3fd3c847..2126cb7c 100644 --- a/packages/sdk/src/restclient.ts +++ b/packages/sdk/src/restclient.ts @@ -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 { diff --git a/packages/sdk/types/restclient.d.ts b/packages/sdk/types/restclient.d.ts index 2da34281..8b82fb29 100644 --- a/packages/sdk/types/restclient.d.ts +++ b/packages/sdk/types/restclient.d.ts @@ -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;