Source

clients/NativeMyriaClient.ts

import { EnvTypes } from "../typesBundle";
import { Network } from '../types/CommonTypes';


/**
 * @typedef {Object} INativeMyriaClient
 * @property {number} networkId Network
 * @property {EnvTypes} EnvTypes Target environment
 */
export interface INativeMyriaClient {
  networkId: number;
  env: EnvTypes;
}

export class NativeMyriaClient {
    public networkId: Network;
    public env: EnvTypes;


    constructor(
      client: INativeMyriaClient,
    ) {
      this.networkId = client.networkId;
      this.env = client.env;
    }

    public getNetworkId(): number {
      return this.networkId;
    }

    public getEnv(): EnvTypes {
      return this.env;
    }

}