Types

The Typescript type definitions used in ees-sdk are shown here:

export interface Job {
  index: bigint;
  owner: `0x${string}`,
  sponsor: `0x${string}`,
  application: `0x${string}`,
  executionWindow: number,
  executionModuleCode: `0x${string}`,
  feeModuleCode: `0x${string}`,
  executionModule: SingleTimeBased | RecurringTimeBased,
  feeModule: LinearAuction
}

export interface SingleTimeBased {
  executionTime: number
}

export interface RecurringTimeBased {
  lastExecution: number,
  cooldown: number
}

export interface LinearAuction {
  executionFeeToken: `0x${string}`,
  minExecutionFee: bigint,
  maxExecutionFee: bigint
}

export interface JobSpecification {
  nonce: bigint,
  deadline: bigint,
  application: `0x${string}`,
  executionWindow: number,
  executionModule: `0x${string}`,
  feeModule: `0x${string}`,
  executionModuleInput: `0x${string}`,
  feeModuleInput: `0x${string}`,
  applicationInput: `0x${string}`
}

export interface FeeModuleInput {
  nonce: bigint,
  deadline: bigint,
  index: bigint,
  feeModule: `0x${string}`,
  feeModuleInput: `0x${string}`
}

Last updated