From ce18a5296df64b85baf52c63570e30a454975912 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 5 Feb 2020 09:45:15 +0100 Subject: [PATCH] Add some fields to PostTxsResponse --- packages/sdk/src/restclient.ts | 6 ++++++ packages/sdk/types/restclient.d.ts | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/packages/sdk/src/restclient.ts b/packages/sdk/src/restclient.ts index b210c873..2e56a4a4 100644 --- a/packages/sdk/src/restclient.ts +++ b/packages/sdk/src/restclient.ts @@ -64,6 +64,12 @@ interface PostTxsResponse { readonly txhash: string; readonly code?: number; readonly raw_log?: string; + /** The same as `raw_log` but deserialized? */ + readonly logs?: object; + /** The gas limit as set by the user */ + readonly gas_wanted?: string; + /** The gas used by the execution */ + readonly gas_used?: string; } interface EncodeTxResponse { diff --git a/packages/sdk/types/restclient.d.ts b/packages/sdk/types/restclient.d.ts index 08f16827..e235d842 100644 --- a/packages/sdk/types/restclient.d.ts +++ b/packages/sdk/types/restclient.d.ts @@ -49,6 +49,12 @@ interface PostTxsResponse { readonly txhash: string; readonly code?: number; readonly raw_log?: string; + /** The same as `raw_log` but deserialized? */ + readonly logs?: object; + /** The gas limit as set by the user */ + readonly gas_wanted?: string; + /** The gas used by the execution */ + readonly gas_used?: string; } interface EncodeTxResponse { readonly tx: string;