Merge pull request #235 from CosmWasm/rm-wasm-types

Remove Wasm types from @cosmjs/sdk38
This commit is contained in:
Simon Warta
2020-06-20 10:28:49 +02:00
committed by GitHub
-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;