IRONQ

Queue Management

Initialize and configure queues

These instructions are authority-only (require the queue owner's signature).

initialize_queue

Creates a new queue and its associated SPL token vault.

Parameters:

ParamTypeDescription
min_worker_stakeu64Minimum tokens workers must stake
job_timeouti64Seconds until a claimed job can be expired
slash_rate_bpsu16Basis points of stake slashed on failure (0–10000)
crank_reward_bpsu16Basis points of slash paid to cranker (0–10000)
max_concurrent_jobsu8Max jobs a worker can hold simultaneously

Accounts created:

  • QueueConfig PDA at ["queue", authority]
  • Vault token account PDA at ["vault", queue]

update_queue_config

Modifies queue parameters. Only the authority can call this.

Updatable fields: arbiter, min_worker_stake, job_timeout, slash_rate_bps, crank_reward_bps, max_concurrent_jobs

Note: reward_mint cannot be changed after creation.

toggle_queue_pause

Flips the is_paused flag. When paused:

  • create_job is blocked
  • claim_job is blocked
  • All other lifecycle operations (submit, approve, dispute, crank) still work