Class RecipeCategory

Hierarchy

  • RecipeCategory

Implements

  • Account

Constructors

  • Parameters

    • _data: AnchorTypeDef<Object, AnchorDefined<CraftingIDL, Record<string, never>>>
    • _key: PublicKey

    Returns RecipeCategory

Properties

ACCOUNT_NAME: "craftableItem" | "craftingFacility" | "craftingProcess" | "domain" | "recipe" | "recipeCategory" = 'recipeCategory'
MIN_DATA_SIZE: number = ...

Accessors

  • get data(): Readonly<AnchorTypeDef<Object, AnchorDefined<CraftingIDL, Record<string, never>>>>
  • Returns Readonly<AnchorTypeDef<Object, AnchorDefined<CraftingIDL, Record<string, never>>>>

  • get key(): PublicKey
  • Returns PublicKey

Methods

  • Deregister RecipeCategory

    Returns

    InstructionReturn

    Parameters

    • program: CraftingIDLProgram

      Crafting program

    • recipeCategory: PublicKey

      the crafting recipe category

    • key: AsyncSigner<unknown>

      Key authorized to use this instruction

    • profile: PublicKey

      Profile Account with required Crafting Permissions

    • fundsTo: PublicKey | "funder"

      receives rent refund

    • domain: PublicKey

      the crafting domain

    • input: KeyIndexInput

      the input parameters

    Returns InstructionReturn

  • Register RecipeCategory

    Returns

    InstructionReturn

    Parameters

    • program: CraftingIDLProgram

      Crafting program

    • recipeCategory: AsyncSigner<unknown>

      the new crafting recipe category

    • key: AsyncSigner<unknown>

      Key authorized to use this instruction

    • profile: PublicKey

      Profile Account with required Crafting Permissions

    • domain: PublicKey

      the crafting domain

    • input: RegisterRecipeCategoryInput

      the input parameters

    Returns InstructionReturn

Generated using TypeDoc