Function firstAllowedAuthDescriptor

  • 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 | null, {
        account_id: Buffer;
        ad_ids: Buffer[];
        args: RawGtv;
        op_name: string;
    }>