Class QueryBoundWitnessBuilder<TBoundWitness, TQuery>

Type Parameters

Hierarchy (View Summary)

Constructors

  • Type Parameters

    • TBoundWitness extends UnsignedQueryBoundWitness = UnsignedQueryBoundWitness
    • TQuery extends DeepRestrictToStringKeys<
          {
              address?: Lowercase<string>
              | Lowercase<string>[];
              budget?: number;
              maxFrequency?:
                  | "once"
                  | "second"
                  | "minute"
                  | "hour"
                  | "day"
                  | "week"
                  | "month"
                  | "year";
              minBid?: number;
              schema: string;
          },
      > = DeepRestrictToStringKeys<
          {
              address?: Lowercase<string>
              | Lowercase<string>[];
              budget?: number;
              maxFrequency?:
                  | "once"
                  | "second"
                  | "minute"
                  | "hour"
                  | "day"
                  | "week"
                  | "month"
                  | "year";
              minBid?: number;
              schema: string;
          },
      >

    Parameters

    Returns QueryBoundWitnessBuilder<TBoundWitness, TQuery>

Properties

_fields?: DeepOmitStartsWith<
    DeepOmitStartsWith<WithoutSchema<TBoundWitness>, "_">,
    "$",
>
_schema: string

Accessors

Methods

  • Returns Promise<
        [
            Signed<TBoundWitness>,
            DeepRestrictToStringKeys<{ schema: string }>[],
            DeepRestrictToStringKeys<
                {
                    details?: | null
                    | string
                    | number
                    | boolean
                    | {
                        [key: string]: | null
                        | string
                        | number
                        | boolean
                        | (
                            { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
                        )
                        | (
                            string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
                        )[];
                    }
                    | (
                        | null
                        | string
                        | number
                        | boolean
                        | {
                            [key: string]: string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null;
                        }
                        | (
                            (string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null)[]
                        )
                    )[];
                    message?: string;
                    name?: string;
                    query?: Lowercase<string>;
                    schema: "network.xyo.error.module";
                },
            >[],
        ],
    >

  • Parameters

    • Optionalpayload: DeepRestrictToStringKeys<
          {
              details?: | null
              | string
              | number
              | boolean
              | {
                  [key: string]: | null
                  | string
                  | number
                  | boolean
                  | (
                      { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
                  )
                  | (
                      string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
                  )[];
              }
              | (
                  | null
                  | string
                  | number
                  | boolean
                  | {
                      [key: string]: string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null;
                  }
                  | (
                      (string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null)[]
                  )
              )[];
              message?: string;
              name?: string;
              query?: Lowercase<string>;
              schema: "network.xyo.error.module";
          },
      >

    Returns QueryBoundWitnessBuilder<TBoundWitness, TQuery>

  • Parameters

    • Optionalerrors: (
          | null
          | DeepRestrictToStringKeys<
              {
                  details?: | null
                  | string
                  | number
                  | boolean
                  | {
                      [key: string]: | null
                      | string
                      | number
                      | boolean
                      | (
                          { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
                      )
                      | (
                          string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
                      )[];
                  }
                  | (
                      | null
                      | string
                      | number
                      | boolean
                      | {
                          [key: string]: string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null;
                      }
                      | (
                          (string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null)[]
                      )
                  )[];
                  message?: string;
                  name?: string;
                  query?: Lowercase<string>;
                  schema: "network.xyo.error.module";
              },
          >
      )[]

    Returns QueryBoundWitnessBuilder<TBoundWitness, TQuery>

  • Parameters

    • fields: DeepOmitStartsWith<
          DeepOmitStartsWith<
              WithoutSchema<
                  Omit<
                      TBoundWitness,
                      "addresses"
                      | "payload_hashes"
                      | "payload_schemas"
                      | "previous_hashes",
                  >,
              >,
              "_",
          >,
          "$",
      >

    Returns this

  • Type Parameters

    • T extends DeepRestrictToStringKeys<
          {
              address?: Lowercase<string>
              | Lowercase<string>[];
              budget?: number;
              maxFrequency?:
                  | "once"
                  | "second"
                  | "minute"
                  | "hour"
                  | "day"
                  | "week"
                  | "month"
                  | "year";
              minBid?: number;
              schema: string;
          },
      >

    Parameters

    • query: T

    Returns QueryBoundWitnessBuilder<TBoundWitness, TQuery>

  • Parameters

    • value: string

    Returns void

  • Parameters

    • payloads: undefined

    Returns Promise<undefined>

  • Type Parameters

    Parameters

    • payloads: T[]

    Returns Promise<Lowercase<string>[]>

  • Type Parameters

    Parameters

    • payloads: undefined | T[]
    • hash: Lowercase<string> | Lowercase<string>[]

    Returns Promise<T[]>

  • Type Parameters

    Parameters

    • payloads: undefined | T[]
    • hash: Lowercase<string> | Lowercase<string>[]

    Returns Promise<T[]>

  • Type Parameters

    Parameters

    • payloads: undefined | T[]
    • hash: Lowercase<string> | Lowercase<string>[]

    Returns Promise<T[]>

  • Type Parameters

    Parameters

    • payloads: undefined | T[]
    • hash: Lowercase<string>

    Returns Promise<undefined | T>

  • Parameters

    • payloads: undefined

    Returns Promise<undefined>

  • Type Parameters

    Parameters

    • payloads: T[]

    Returns Promise<Lowercase<string>[]>

  • Type Parameters

    • T extends object

    Parameters

    • payload: T
    • OptionalmaxDepth: number

    Returns WithoutMeta<T>

  • Type Parameters

    • T extends object

    Parameters

    • payloads: T[]
    • OptionalmaxDepth: number

    Returns WithoutMeta<T>[]