Remove Wasm types from @cosmjs/sdk38

This commit is contained in:
Simon Warta
2020-06-20 10:20:22 +02:00
parent d619fa0123
commit e3b43fd9dd
-14
View File
@@ -102,20 +102,6 @@ export interface AuthAccountsResponse {
};
}
// Currently all wasm query responses return json-encoded strings...
// later deprecate this and use the specific types for result
// (assuming it is inlined, no second parse needed)
type WasmResponse<T = string> = WasmSuccess<T> | WasmError;
interface WasmSuccess<T = string> {
readonly height: string;
readonly result: T;
}
interface WasmError {
readonly error: string;
}
export interface TxsResponse {
readonly height: string;
readonly txhash: string;