Class representing actions on a single Game.

Hierarchy

  • GameClient

Constructors

Properties

account: undefined | GameAccount
address: PublicKey
program: SoarProgram

Methods

  • Parameters

    • authority: PublicKey
    • title: string
    • description: string
    • nftMeta: PublicKey

    Returns Promise<AddGameAchievement>

  • Parameters

    • authority: PublicKey
    • description: string
    • nftMeta: PublicKey
    • scoresToRetain: number
    • scoresOrder: boolean
    • Optional decimals: number
    • Optional minScore: BN
    • Optional maxScore: BN

    Returns Promise<AddLeaderBoard>

  • Returns Promise<AchievementAccount[]>

  • Returns Promise<LeaderBoardAccount[]>

  • Returns PublicKey

  • Returns PublicKey

  • Returns PublicKey

  • Returns PublicKey

  • Parameters

    • user: PublicKey
    • Optional leaderBoard: PublicKey

    Returns Promise<RegisterPlayerEntry>

  • Parameters

    • user: PublicKey
    • authority: PublicKey
    • score: BN
    • Optional leaderBoard: PublicKey

    Returns Promise<SubmitScore>

  • Parameters

    • authority: PublicKey
    • Optional newMeta: GameAttributes
    • Optional newAuths: PublicKey[]

    Returns Promise<UpdateGame>

  • Parameters

    • authority: PublicKey
    • achievement: PublicKey
    • Optional newTitle: string
    • Optional newDescription: string
    • Optional newNftMeta: PublicKey

    Returns Promise<UpdateAchievement>

Generated using TypeDoc