Docs
chromia.com

Function

firstAllowedAuthDescriptor

  • firstAllowedAuthDescriptor(
        opName: string,
        args: RawGtv,
        accountId: BufferId,
        ids: BufferId[],
    ): QueryObject<
        Buffer<ArrayBufferLike>
        | null,
        {
            account_id: Buffer;
            ad_ids: Buffer<ArrayBufferLike>[];
            args: RawGtv;
            op_name: string;
        },
    >

    Finds the first auth descriptor from a list of auth descriptors which will be allowed to perform the specified operation on the account.

    Parameters

    • opName: string

      the name of the operation to perform

    • args: RawGtv

      the args which will be passed to the operation

    • accountId: BufferId

      the account with which the auth descriptor is associated

    • ids: BufferId[]

      list of auth descriptor ids to select from

    Returns QueryObject<
        Buffer<ArrayBufferLike>
        | null,
        {
            account_id: Buffer;
            ad_ids: Buffer<ArrayBufferLike>[];
            args: RawGtv;
            op_name: string;
        },
    >