Class CraftingProgram

Hierarchy

Constructors

Properties

accountClosedListener: null | ((update: AccountClosedUpdate) => void)
accountDiscriminants: {
    craftableItem: Readonly<Buffer>;
    craftingFacility: Readonly<Buffer>;
    craftingProcess: Readonly<Buffer>;
    domain: Readonly<Buffer>;
    recipe: Readonly<Buffer>;
    recipeCategory: Readonly<Buffer>;
}

Type declaration

  • craftableItem: Readonly<Buffer>
  • craftingFacility: Readonly<Buffer>
  • craftingProcess: Readonly<Buffer>
  • domain: Readonly<Buffer>
  • recipe: Readonly<Buffer>
  • recipeCategory: Readonly<Buffer>
parsers: {
    craftableItem: (new (...args: never[]) => CraftableItem & Account) & AccountStatic<CraftableItem, CraftingIDL>;
    craftingFacility: (new (...args: never[]) => CraftingFacility & Account) & AccountStatic<CraftingFacility, CraftingIDL>;
    craftingProcess: (new (...args: never[]) => CraftingProcess & Account) & AccountStatic<CraftingProcess, CraftingIDL>;
    domain: (new (...args: never[]) => CraftingDomain & Account) & AccountStatic<CraftingDomain, CraftingIDL>;
    recipe: (new (...args: never[]) => Recipe & Account) & AccountStatic<Recipe, CraftingIDL>;
    recipeCategory: (new (...args: never[]) => RecipeCategory & Account) & AccountStatic<RecipeCategory, CraftingIDL>;
}

Type declaration

program: ProgramMethods<CraftingIDL>

Accessors

  • get programId(): PublicKey
  • Returns PublicKey

Methods

  • Parameters

    Returns Buffer

  • Parameters

    • data: Buffer

    Returns null | {
        discriminantLength: number;
        key: "craftableItem" | "craftingFacility" | "craftingProcess" | "domain" | "recipe" | "recipeCategory";
    }

  • Parameters

    • discriminant: Buffer

    Returns null | {
        discriminantLength: number;
        key: "craftableItem" | "craftingFacility" | "craftingProcess" | "domain" | "recipe" | "recipeCategory";
    }

  • Parameters

    • key: PublicKey
    • oldOwner: PublicKey
    • newOwner: PublicKey
    • slot: number
    • confirmationStatus: TransactionConfirmationStatus | "recent"
    • writeVersion: number
    • accountInfo: AccountInfo<Buffer>

    Returns void

  • Parameters

    • account: KeyedAccountInfo
    • slot: number
    • confirmationStatus: TransactionConfirmationStatus | "recent"
    • isStartup: boolean
    • writeVersion: number
    • Optional unknownAccountHandler: ((key: PublicKey) => void)
        • (key: PublicKey): void
        • Parameters

          • key: PublicKey

          Returns void

    Returns void

  • Type Parameters

    Parameters

    • accountId: AccountId
    • account: CraftingAccounts[AccountId]
    • slot: number
    • confirmationStatus: TransactionConfirmationStatus | "recent"
    • isStartup: boolean
    • accountInfo: AccountInfo<Buffer>
    • writeVersion: number

    Returns void

  • Parameters

    • listener: ((update: AccountClosedUpdate) => null | void)
        • (update: AccountClosedUpdate): null | void
        • Parameters

          • update: AccountClosedUpdate

          Returns null | void

    Returns void

  • Type Parameters

    Parameters

    Returns void

  • Parameters

    • programId: PublicKey
    • Optional provider: default
    • Optional coder: Coder<string, string>

    Returns CraftingIDLProgram

Generated using TypeDoc