Class CraftingDomain

Hierarchy

  • CraftingDomain

Implements

  • Account

Constructors

  • Parameters

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

    Returns CraftingDomain

Properties

ACCOUNT_NAME: "craftableItem" | "craftingFacility" | "craftingProcess" | "domain" | "recipe" | "recipeCategory" = 'domain'
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

  • Register a Crafting Domain

    Returns

    InstructionReturn

    Parameters

    • program: CraftingIDLProgram

      Crafting program

    • domain: AsyncSigner<unknown>

      the crafting domain

    • signer: AsyncSigner<unknown>

      The entity calling this instruction

    • profile: PublicKey

      Profile Account that will hold required Crafting Permissions for this new domain

    • namespace: number[]

      the name of the new crafting domain (use stringToByteArray to convert a string to a byte array)

    Returns InstructionReturn

  • Update a crafting domain

    Returns

    InstructionReturn

    Parameters

    • program: CraftingIDLProgram

      Crafting program

    • domain: PublicKey

      the crafting domain

    • key: AsyncSigner<unknown>

      Key authorized to use this instruction

    • profile: PublicKey

      Profile Account with required Crafting Permissions

    • newProfile: PublicKey

      The new crafting permissions profile (replaces profile)

    • input: KeyIndexInput

      the input parameters

    Returns InstructionReturn

Generated using TypeDoc