Skip to content
Snippets Groups Projects

Typescript & toolset version update

Merged Bartek Wrona requested to merge bw_toolset_upgrade into develop
6 files
+ 22
13
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -2,13 +2,15 @@ import type { IWaxBaseInterface, IWaxOptions } from "./index.js";
import { safeAsyncWasmCall } from "./util/wasm_errors.js";
import { WaxBaseApi } from "./base_api.js";
import type waxmodule from "../wax_module.js";
import type { IOptionalModuleArgs } from "../wax_module.js";
export const DEFAULT_WAX_OPTIONS: IWaxOptions = {
chainId: "beeab0de00000000000000000000000000000000000000000000000000000000"
};
// We have to keep wasmFn as any because createWaxFoundation is exported and will require wasmFn to have a type of module, we do not want to expose
export const createWaxFoundation = async(wasmFn: any, ModuleExt: Partial<Record<string, any>> = {}, options: Partial<IWaxOptions> = {}): Promise<IWaxBaseInterface> => {
export const createWaxFoundation = async(wasmFn: typeof waxmodule, ModuleExt: IOptionalModuleArgs = {}, options: Partial<IWaxOptions> = {}): Promise<IWaxBaseInterface> => {
const waxProvider = await safeAsyncWasmCall(() => wasmFn(ModuleExt));
const apiOptions: IWaxOptions = { ...DEFAULT_WAX_OPTIONS, ...options };
Loading