mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Add some fields to TxsResponse
This commit is contained in:
parent
a2068f79de
commit
0818542fec
@ -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,
|
||||
|
@ -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 {
|
||||
|
6
packages/sdk/types/restclient.d.ts
vendored
6
packages/sdk/types/restclient.d.ts
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user