import { Schemas } from "../../types";

const shouldFail = [
  {
    type: "JUMPER_LEVEL",
    data: {},
  },
  {
    type: "JUMPER_LEVEL",
    data: { minAmount: -1 },
  },
  { type: "JUMPER_TYPE", data: {} },
  { type: "JUMPER_TYPE", data: { rewardType: "" } },
  {
    type: "JUMPER_TRAITS",
    data: {},
  },
  {
    type: "JUMPER_TRAITS",
    data: { category: "" },
  },
  {
    type: "JUMPER_TRAITS",
    data: { name: "" },
  },
  {
    type: "JUMPER_TRAITS",
    data: { category: "", name: "" },
  },
];

const shouldPass: Schemas["RequirementCreationPayload"][] = [
  {
    type: "JUMPER_LEVEL",
    data: { minAmount: 10 },
  },
  { type: "JUMPER_TYPE", data: { rewardType: "chain_oor" } },
  { type: "JUMPER_TRAITS", data: { category: "big swapper" } },
  {
    type: "JUMPER_TRAITS",
    data: { name: "dex agg club $10k" },
  },
  {
    type: "JUMPER_TRAITS",
    data: { category: "big swapper", name: "dex agg club $10k" },
  },
];

export default {
  name: "Jumper",
  shouldPass,
  shouldFail,
};
