Hierarchy

Constructors

Properties

accountClosedListener: null | ((update) => void)

Type declaration

    • (update): void
    • Parameters

      • update: AccountClosedUpdate

      Returns void

accountDiscriminants: {
    playerName: Readonly<Buffer>;
    profile: Readonly<Buffer>;
    role: Readonly<Buffer>;
    roleMembership: Readonly<Buffer>;
}

Type declaration

  • playerName: Readonly<Buffer>
  • profile: Readonly<Buffer>
  • role: Readonly<Buffer>
  • roleMembership: Readonly<Buffer>
parsers: {
    playerName: (new (...args) => PlayerName & Account) & AccountStatic<PlayerName, PlayerProfileIDL>;
    profile: (new (...args) => PlayerProfile & Account) & AccountStatic<PlayerProfile, PlayerProfileIDL>;
    role: (new (...args) => RoleAccount & Account) & AccountStatic<RoleAccount, PlayerProfileIDL>;
    roleMembership: (new (...args) => ProfileRoleMembership & Account) & AccountStatic<ProfileRoleMembership, PlayerProfileIDL>;
}

Type declaration

program: ProgramMethods<PlayerProfileIDL>

Accessors

  • get programId(): PublicKey
  • Returns PublicKey

Methods

  • Parameters

    Returns Buffer

  • Parameters

    • data: Buffer

    Returns null | {
        discriminantLength: number;
        key: "profile" | "role" | "playerName" | "roleMembership";
    }

  • Parameters

    • discriminant: Buffer

    Returns null | {
        discriminantLength: number;
        key: "profile" | "role" | "playerName" | "roleMembership";
    }

  • 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) => void)
        • (key): void
        • Parameters

          • key: PublicKey

          Returns void

    Returns void

  • Type Parameters

    Parameters

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

    Returns void

  • Parameters

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

          • update: AccountClosedUpdate

          Returns null | void

    Returns void

Generated using TypeDoc