Export setupWasmExtension, WasmExtension
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import * as logs from "./logs";
|
||||
export { logs };
|
||||
|
||||
export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm";
|
||||
export { RestClient } from "./restclient";
|
||||
export {
|
||||
Account,
|
||||
|
||||
@@ -37,12 +37,12 @@ import {
|
||||
wasmd,
|
||||
wasmdEnabled,
|
||||
} from "../testutils.spec";
|
||||
import { setupWasmModule, WasmExtension } from "./wasm";
|
||||
import { setupWasmExtension, WasmExtension } from "./wasm";
|
||||
|
||||
type WasmClient = LcdClient & AuthExtension & WasmExtension;
|
||||
|
||||
function makeWasmClient(apiUrl: string): WasmClient {
|
||||
return LcdClient.withExtensions({ apiUrl }, setupAuthExtension, setupWasmModule);
|
||||
return LcdClient.withExtensions({ apiUrl }, setupAuthExtension, setupWasmExtension);
|
||||
}
|
||||
|
||||
async function uploadContract(
|
||||
|
||||
@@ -113,7 +113,7 @@ export interface WasmExtension {
|
||||
};
|
||||
}
|
||||
|
||||
export function setupWasmModule(base: LcdClient): WasmExtension {
|
||||
export function setupWasmExtension(base: LcdClient): WasmExtension {
|
||||
return {
|
||||
wasm: {
|
||||
listCodeInfo: async () => {
|
||||
|
||||
Vendored
+1
@@ -1,5 +1,6 @@
|
||||
import * as logs from "./logs";
|
||||
export { logs };
|
||||
export { setupWasmExtension, WasmExtension } from "./lcdapi/wasm";
|
||||
export { RestClient } from "./restclient";
|
||||
export {
|
||||
Account,
|
||||
|
||||
+1
-1
@@ -71,4 +71,4 @@ export interface WasmExtension {
|
||||
readonly queryContractSmart: (address: string, query: object) => Promise<JsonObject>;
|
||||
};
|
||||
}
|
||||
export declare function setupWasmModule(base: LcdClient): WasmExtension;
|
||||
export declare function setupWasmExtension(base: LcdClient): WasmExtension;
|
||||
|
||||
Reference in New Issue
Block a user