PowerPool
Search
K
Comment on page

Job Registration Guide (Old)

A complete guide on creating and managing PowerAgent Jobs

Managing Jobs

In the UI, navigate to the My Jobs tab. Here you can see your current Owner Address (the one you have connected to the webapp), your Owner Balance and the list of all your Jobs (if you have any).
Each Job entry is expandable. In the drop down menu you can see the details of this Job and change any parameter.
Interval job management
Resolver job management
The influence of each parameter:
  1. 1.
    Interval - changes the execution interval of an interval job
  2. 2.
    MIN stake - the minimal stake a keeper must possess to be eligible for job execution
  3. 3.
    MAX stake - the upper bound of the stake for the purposes of slashing amount and compensation computation
  4. 4.
    Max base fee - the upper bound of the base fee for the purposes of compensation computation
  5. 5.
    Use Owner's balance - whether to use Job or Job Owner credits for payment
  6. 6.
    Status - whether a job is active and, therefore, executable
  7. 7.
    Job Balance - the Job's credits
  8. 8.
    Owner - the Job owner

Job Registration

Registration of an Interval job

  1. 1.
    Press the Create Job button at the top.
A self-sufficient Create Job button
  1. 2.
    Select the PowerAgent contract and press Create job
  2. 3.
    Paste the target contract's address into the Target contract field. The ABI will be fetched automatically
  1. 4.
    Select the appropriate method in the Contract Method Selector drop-down list
  2. 5.
    If the method admits predefined calldata, supply the arguments
Supplying arguments to a predefined calldata job
  1. 6.
    Select the MIN and MAX stakes, the max base fee, and the interval of execution. Specify the amount of job credits to deposit at a call (take note that you cannot currently deposit job owner credits at creation through UI, and you'll have to manually increment your job owner credit balance). Keep in mind that jobs with the credit value that is less than an Agent-specified threshold will not be executed. For the current realisation, that value is 0.01 ETH.
  1. 8.
    Press Create job, approve the transaction, and wait for it to finish

Registration of a Resolver job

  1. 1.
    Press the Create Job button at the top.
A self-sufficient Create Job button
  1. 2.
    Select the PowerAgent contract and press Create job
  2. 3.
    Paste the target contract's address into the Target contract field. The ABI will be fetched automatically
  3. 4.
    Toggle the Use Resolver field
The Resolver field is switched on
  1. 5.
    Select the appropriate method in the Contract Method Selector drop-down list. This will be the target method that receives calldata from the resolver.
  2. 6.
    Supply the Resolver address in the corresponding field and select the resolver method from the Resolver method selector drop-down list
  1. 7.
    Select the MIN and MAX stakes and the max base fee. Keep the interval at zero seconds. Specify the amount of job credits to deposit at a call (take note that you cannot currently deposit job owner credits at creation through UI, and you'll have to manually increment your job owner credit balance). Keep in mind that jobs with the credit value that is less than an Agent-specified threshold will not be executed. For the current realisation, that value is 0.01 ETH.
  1. 8.
    Press Create job, approve the transaction, and wait for it to finish
Last modified 20d ago