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
commit a7596ae62f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;