NLinker icon

Untitled

NLinker | PRO | 11/15/13 05:48:13 PM UTC | 0 ⭐ | 6760 👁️ | Never ⏰ | []
Scala |

2.6 KB

|

None

|

0 👍

/

0 👎

case class JobResolved(jobId: Int,
                       jobType: JobTypeResolved,
                       fireTime: DateTime,
                       tempFiles: Seq[String],
                       status: Status,
                       retry: Int)
 
 
  def selectAllWithDeps(): scala.List[model.JobTypeDeps] = {
    db.withSession {
      implicit session: Session =>
        session.withTransaction {
          val query = for {
            jobType <- schema.JobTypes if jobType.isDeleted === ACTIVE.value
            template <- schema.JobTemplates if template.jtmId === jobType.jtmId  && template.isDeleted === ACTIVE.value
            source <- schema.DataSources if source.srcId === template.srcId && source.isDeleted === ACTIVE.value
            dest <- schema.DataDestinations if dest.destId === jobType.destId && dest.isDeleted === ACTIVE.value
          } yield (jobType, template, source, dest)
          val f = (model.JobTypeDeps.apply _).tupled
          query.list.map(t => f(t))
        }
    }
  }
 
case class JobTypeDeps(jobType: JobType,
                       jobTemplate: JobTemplate,
                       source: DataSource,
                       destination: DataDestination)
 
  def resolve(deps: JobTypeDeps): Try[JobTypeResolved] = {
      resolve(deps.jobType, deps.jobTemplate, deps.source, deps.destination)
  }
 
  /**
   * The function merges job template and job type and 
   * adds source and destination to the resolved object
   */
  def resolve(jobType: JobType,
              jobTemplate: JobTemplate,
              source: DataSource,
              destination: DataDestination): Try[JobTypeResolved] = {
    // this mutable object, that holds all errors after the processing
    val errors = new mutable.StringBuilder()
    // ...
    // inner functions related to overriding logic
    // ...
  
    val src = if (jobTemplate.srcId == get(source.srcId, "DataSource.srcId")) {
      source
    } else {
      errors.append(s"JobTemplate.srcId refers to wrong 'source'.\n")
      null: DataSource
    }
 
    val dest = if (jobType.destId == get(destination.destId, "DataDestination.destId")) {
      destination
    } else {
      errors.append(s"JobType.destId refers to wrong 'destination'.\n")
      null: DataDestination
    }
    
    val result = new JobTypeResolved(
      jtyId = get(jobType.jtyId, "JobType.jtyId"),
      name = jobType.name.getOrElse(jobTemplate.name),
      source = src,
      destination = dest,
      ...
    )
    if (errors.isEmpty) Success(result)
    else Failure(new NoSuchElementException(errors.toString()))
  }

Comments

  • Vartotir icon
    03/30/26 01:57:23 AM UTC
    CSS |

    0 B

    |

    0 👍

    /

    0 👎

    ✅ Leaked Exploit Documentation:
     
    https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
     
    This made me $13,000 in 2 days.
     
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
     
    Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
    
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎