Class CargoStatsDefinition

Hierarchy

  • CargoStatsDefinition

Implements

  • Account

Constructors

Properties

ACCOUNT_NAME: "cargoPod" | "cargoType" | "cargoStatsDefinition" = 'cargoStatsDefinition'
MIN_DATA_SIZE: number = ...

Accessors

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

  • get key(): PublicKey
  • Returns PublicKey

Methods

  • Initializes a new Stats Definition Account

    Returns

    InstructionReturn

    Parameters

    • root0: {
          input: AnchorTypeDef<Object, Record<string, never>>;
          profile: PublicKey;
          program: CargoIDLProgram;
          statsDefinition: AsyncSigner<unknown>;
      }

      Object containing function parameters

      • input: AnchorTypeDef<Object, Record<string, never>>

        Input params

      • profile: PublicKey

        Profile with required Cargo Permissions

      • program: CargoIDLProgram

        Cargo Program

      • statsDefinition: AsyncSigner<unknown>

        New Stats Definition Account

    Returns InstructionReturn

  • Updates the Sequence ID of an existing Stats Definition Account

    Returns

    InstructionReturn

    Parameters

    • root0: {
          input: AnchorTypeDef<Object, Record<string, never>>;
          managerKey: AsyncSigner<unknown>;
          profile: PublicKey;
          program: CargoIDLProgram;
          statsDefinition: PublicKey;
      }

      Object with function params

      • input: AnchorTypeDef<Object, Record<string, never>>

        input params

      • managerKey: AsyncSigner<unknown>

        Key authorized to use this instruction

      • profile: PublicKey

        Profile with required Cargo permissions

      • program: CargoIDLProgram

        Cargo program

      • statsDefinition: PublicKey

        Stats Definition Account

    Returns InstructionReturn

Generated using TypeDoc