Resolves a symbolic or static domain value into a concrete domain string or null.

Used internally in the Arvo execution model to interpret symbolic domain constants at the moment an event is emitted. Supports resolution from:

  • the emitting handler's own contract
  • the emitted event’s associated contract
  • the triggering event’s domain field
  • Parameters

    • param: {
          domainToResolve: null | string;
          eventContract: null | VersionedArvoContract<any, any>;
          handlerSelfContract: VersionedArvoContract<any, any>;
          triggeringEvent: ArvoEvent<Record<string, any>, Record<string,
              | null
              | string
              | number
              | boolean>, string>;
      }

      Parameters for resolving the domain.

      • domainToResolve: null | string

        Either a static domain string, symbolic value, or null.

      • eventContract: null | VersionedArvoContract<any, any>

        The contract of the event being emitted (optional).

      • handlerSelfContract: VersionedArvoContract<any, any>

        The contract of the handler currently emitting the event.

      • triggeringEvent: ArvoEvent<Record<string, any>, Record<string,
            | null
            | string
            | number
            | boolean>, string>

        The triggering event that caused this emission.

    Returns null | string

    A resolved domain string, or null if no valid domain is found.