@dashevo/evo-sdk 2.1.0-dev.6 → 2.1.0-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import type { EvoSDK } from '../sdk.js';
3
3
  export declare class ContractsFacade {
4
4
  private sdk;
5
5
  constructor(sdk: EvoSDK);
6
- fetch(contractId: string): Promise<wasm.DataContractWasm>;
6
+ fetch(contractId: string): Promise<wasm.DataContract>;
7
7
  fetchWithProof(contractId: string): Promise<any>;
8
8
  getHistory(args: {
9
9
  contractId: string;
@@ -2,9 +2,9 @@ import type { EvoSDK } from '../sdk.js';
2
2
  export declare class DpnsFacade {
3
3
  private sdk;
4
4
  constructor(sdk: EvoSDK);
5
- convertToHomographSafe(input: string): string;
6
- isValidUsername(label: string): boolean;
7
- isContestedUsername(label: string): boolean;
5
+ convertToHomographSafe(input: string): Promise<string>;
6
+ isValidUsername(label: string): Promise<boolean>;
7
+ isContestedUsername(label: string): Promise<boolean>;
8
8
  isNameAvailable(label: string): Promise<boolean>;
9
9
  resolveName(name: string): Promise<any>;
10
10
  registerName(args: {
@@ -3,13 +3,16 @@ export class DpnsFacade {
3
3
  constructor(sdk) {
4
4
  this.sdk = sdk;
5
5
  }
6
- convertToHomographSafe(input) {
6
+ async convertToHomographSafe(input) {
7
+ await wasm.ensureInitialized();
7
8
  return wasm.WasmSdk.dpnsConvertToHomographSafe(input);
8
9
  }
9
- isValidUsername(label) {
10
+ async isValidUsername(label) {
11
+ await wasm.ensureInitialized();
10
12
  return wasm.WasmSdk.dpnsIsValidUsername(label);
11
13
  }
12
- isContestedUsername(label) {
14
+ async isContestedUsername(label) {
15
+ await wasm.ensureInitialized();
13
16
  return wasm.WasmSdk.dpnsIsContestedUsername(label);
14
17
  }
15
18
  async isNameAvailable(label) {