Class AbstractBridgeModuleResolver<TParams, TProxyParams>Abstract

Type Parameters

Hierarchy (View Summary)

Constructors

  • Type Parameters

    • TParams extends BridgeModuleResolverParams = BridgeModuleResolverParams
    • TProxyParams extends BaseParamsFields & {
          account?: AccountInstance | "random";
          additionalSigners?: AccountInstance[];
          addToResolvers?: boolean;
          allowNameResolution?: boolean;
          config: { schema: "network.xyo.module.config" };
          ephemeralQueryAccountEnabled?: boolean;
          moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
      } & {
          account: AccountInstance;
          archiving?: { archivists?: string[]; queries?: string[] } & {
              resolveArchivists: () => Promise<ArchivistInstance[]>;
          };
          host: ModuleResolver;
          manifest?: | DeepRestrictToStringKeys<
              {
                  config: {
                      accountPath?: string;
                      features?: string[];
                      labels?: { [key: string]: undefined
                      | string };
                      language?: string;
                      name: string;
                      os?: string;
                      schema: string;
                  };
                  description?: string;
                  lazyStart?: boolean;
                  schema: "network.xyo.module.manifest";
                  status?: {
                      address: Lowercase<string>;
                      children?: { [key: Lowercase<string>]: null | string };
                  };
              },
          >
          | DeepRestrictToStringKeys<
              {
                  config: {
                      accountPath?: string;
                      features?: string[];
                      labels?: { [key: string]: undefined
                      | string };
                      language?: string;
                      name: string;
                      os?: string;
                      schema: string;
                  };
                  description?: string;
                  lazyStart?: boolean;
                  schema: "network.xyo.node.manifest";
                  status?: {
                      address: Lowercase<string>;
                      children?: { [key: Lowercase<string>]: null | string };
                  };
              },
          >;
          moduleAddress: Lowercase<string>;
          onQuerySendFinished?: (
              args: Omit<QuerySendFinishedEventArgs, "mod">,
          ) => void;
          onQuerySendStarted?: (args: Omit<QuerySendStartedEventArgs, "mod">) => void;
          state?: DeepRestrictToStringKeys<{ schema: string }>[];
      } = BaseParamsFields & {
          account?: AccountInstance | "random";
          additionalSigners?: AccountInstance[];
          addToResolvers?: boolean;
          allowNameResolution?: boolean;
          config: { schema: "network.xyo.module.config" };
          ephemeralQueryAccountEnabled?: boolean;
          moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
      } & {
          account: AccountInstance;
          archiving?: { archivists?: string[]; queries?: string[] } & {
              resolveArchivists: () => Promise<ArchivistInstance[]>;
          };
          host: ModuleResolver;
          manifest?: | DeepRestrictToStringKeys<
              {
                  config: {
                      accountPath?: string;
                      features?: string[];
                      labels?: { [key: string]: undefined
                      | string };
                      language?: string;
                      name: string;
                      os?: string;
                      schema: string;
                  };
                  description?: string;
                  lazyStart?: boolean;
                  schema: "network.xyo.module.manifest";
                  status?: {
                      address: Lowercase<string>;
                      children?: { [key: Lowercase<string>]: null | string };
                  };
              },
          >
          | DeepRestrictToStringKeys<
              {
                  config: {
                      accountPath?: string;
                      features?: string[];
                      labels?: { [key: string]: undefined
                      | string };
                      language?: string;
                      name: string;
                      os?: string;
                      schema: string;
                  };
                  description?: string;
                  lazyStart?: boolean;
                  schema: "network.xyo.node.manifest";
                  status?: {
                      address: Lowercase<string>;
                      children?: { [key: Lowercase<string>]: null | string };
                  };
              },
          >;
          moduleAddress: Lowercase<string>;
          onQuerySendFinished?: (
              args: Omit<QuerySendFinishedEventArgs, "mod">,
          ) => void;
          onQuerySendStarted?: (args: Omit<QuerySendStartedEventArgs, "mod">) => void;
          state?: DeepRestrictToStringKeys<{ schema: string }>[];
      }

    Parameters

    Returns AbstractBridgeModuleResolver<TParams, TProxyParams>

Properties

_cache: LRUCache<string, ModuleInstance>
defaultLogger?: Logger
defaultMaxDepth: number
globalInstances: Record<string, WeakRef<Base<undefined | BaseParamsFields>>[]>
globalInstancesCountHistory: Record<string, number[]>
uniqueName: string

Accessors

  • get allowAddResolver(): boolean
  • Returns boolean

  • set allowAddResolver(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

  • get allowNameResolution(): boolean
  • Returns boolean

  • get logger(): undefined | Logger
  • Returns undefined | Logger

  • get params(): TParams
  • Returns TParams

  • get root(): ModuleInstance<
        BaseParamsFields & {
            account?: any;
            additionalSigners?: AccountInstance[];
            addToResolvers?: boolean;
            allowNameResolution?: boolean;
            config: DeepRestrictToStringKeys<
                {
                    allowedQueries?: string[];
                    archiving?: { archivists?: string[]; queries?: string[] };
                    archivist?: string;
                    consoleLogger?: any;
                    labels?: { [x: string]: undefined | string };
                    name?: string;
                    paging?: { [x: string]: { size?: number } };
                    retry?: { backoff?: number; interval?: number; retries?: number };
                    schema: string;
                    security?: {
                        allowAnonymous?: boolean;
                        allowed?: { [x: string]: ((...) | (...))[] };
                        disallowed?: { [x: string]: Lowercase<(...)>[] };
                    };
                    sign?: boolean;
                    storeQueries?: boolean;
                    timestamp?: boolean;
                },
            >;
            ephemeralQueryAccountEnabled?: boolean;
            moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
        },
    >
  • Returns ModuleInstance<
        BaseParamsFields & {
            account?: any;
            additionalSigners?: AccountInstance[];
            addToResolvers?: boolean;
            allowNameResolution?: boolean;
            config: DeepRestrictToStringKeys<
                {
                    allowedQueries?: string[];
                    archiving?: { archivists?: string[]; queries?: string[] };
                    archivist?: string;
                    consoleLogger?: any;
                    labels?: { [x: string]: undefined | string };
                    name?: string;
                    paging?: { [x: string]: { size?: number } };
                    retry?: { backoff?: number; interval?: number; retries?: number };
                    schema: string;
                    security?: {
                        allowAnonymous?: boolean;
                        allowed?: { [x: string]: ((...) | (...))[] };
                        disallowed?: { [x: string]: Lowercase<(...)>[] };
                    };
                    sign?: boolean;
                    storeQueries?: boolean;
                    timestamp?: boolean;
                },
            >;
            ephemeralQueryAccountEnabled?: boolean;
            moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
        },
    >

  • get historyInterval(): number
  • Returns number

  • set historyInterval(value: number): void
  • Parameters

    • value: number

    Returns void

  • get historyTime(): number
  • Returns number

  • set historyTime(value: number): void
  • Parameters

    • value: number

    Returns void

  • get maxGcFrequency(): number
  • Returns number

  • set maxGcFrequency(value: number): void
  • Parameters

    • value: number

    Returns void

  • get maxHistoryDepth(): number
  • Returns number

Methods

  • Parameters

    • addresses: Lowercase<string> | Lowercase<string>[]

    Returns this

  • Parameters

    • Optionalforce: boolean

    Returns void

  • Parameters

    • className: string

    Returns void

  • Parameters

    • className: string

    Returns number

  • Returns Record<string, number>

  • Returns void

  • Returns void