Hierarchy

  • AccountsBuilder

Constructors

Properties

program: Program<Soar>
utils: Utils

Methods

  • Parameters

    • game: PublicKey
    • authority: PublicKey
    • Optional nextAchievement: PublicKey

    Returns Promise<{
        authority: PublicKey;
        game: PublicKey;
        newAchievement: PublicKey;
        payer: PublicKey;
        systemProgram: PublicKey;
    }>

  • Parameters

    • authority: PublicKey
    • newReward: PublicKey
    • achievement: PublicKey
    • sourceTokenAccount: PublicKey
    • tokenAccountOwner: PublicKey
    • mint: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        achievement: PublicKey;
        authority: PublicKey;
        delegateFromTokenAccount: PublicKey;
        game: PublicKey;
        newReward: PublicKey;
        payer: PublicKey;
        rewardTokenMint: PublicKey;
        systemProgram: PublicKey;
        tokenAccountOwner: PublicKey;
        tokenProgram: PublicKey;
    }>

  • Parameters

    • game: PublicKey
    • authority: PublicKey
    • Optional nextLeaderboard: PublicKey
    • Optional nullTopEntries: boolean

    Returns Promise<{
        authority: PublicKey;
        game: PublicKey;
        leaderboard: PublicKey;
        payer: PublicKey;
        systemProgram: PublicKey;
        topEntries: null | PublicKey;
    }>

  • Parameters

    • authority: PublicKey
    • newReward: PublicKey
    • achievement: PublicKey
    • Optional collectionMint: PublicKey
    • Optional collectionUpdateAuthority: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        achievement: PublicKey;
        authority: PublicKey;
        collectionMetadata: null | PublicKey;
        collectionUpdateAuth: null | PublicKey;
        game: PublicKey;
        newReward: PublicKey;
        payer: PublicKey;
        rewardCollectionMint: null | PublicKey;
        systemProgram: PublicKey;
        tokenMetadataProgram: null | PublicKey;
    }>

  • Parameters

    • authority: PublicKey
    • achievement: PublicKey
    • user: PublicKey
    • Optional reward: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        achievement: PublicKey;
        authority: PublicKey;
        game: PublicKey;
        mint: PublicKey;
        playerAccount: PublicKey;
        playerAchievement: PublicKey;
        reward: PublicKey;
        sourceTokenAccount: PublicKey;
        tokenProgram: PublicKey;
        user: PublicKey;
        userTokenAccount: PublicKey;
    }>

  • Parameters

    • authority: PublicKey
    • achievement: PublicKey
    • mint: PublicKey
    • user: PublicKey
    • Optional reward: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        achievement: PublicKey;
        associatedTokenProgram: PublicKey;
        authority: PublicKey;
        claim: PublicKey;
        game: PublicKey;
        mintTo: PublicKey;
        newMasterEdition: PublicKey;
        newMetadata: PublicKey;
        newMint: PublicKey;
        payer: PublicKey;
        playerAccount: PublicKey;
        playerAchievement: PublicKey;
        rent: PublicKey;
        reward: PublicKey;
        systemProgram: PublicKey;
        tokenMetadataProgram: PublicKey;
        tokenProgram: PublicKey;
        user: PublicKey;
    }>

  • Parameters

    • game: PublicKey

    Returns Promise<{
        creator: PublicKey;
        game: PublicKey;
        systemProgram: PublicKey;
    }>

  • Parameters

    • user: PublicKey

    Returns Promise<{
        payer: PublicKey;
        playerAccount: PublicKey;
        systemProgram: PublicKey;
        user: PublicKey;
    }>

  • Parameters

    • user: PublicKey
    • mergeAccount: PublicKey

    Returns Promise<{
        mergeAccount: PublicKey;
        payer: PublicKey;
        playerAccount: PublicKey;
        systemProgram: PublicKey;
        user: PublicKey;
    }>

  • Parameters

    • user: PublicKey
    • mergeAccount: PublicKey

    Returns Promise<{
        mergeAccount: PublicKey;
        playerAccount: PublicKey;
        user: PublicKey;
    }>

  • Parameters

    • user: PublicKey
    • leaderboard: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        game: PublicKey;
        leaderboard: PublicKey;
        newList: PublicKey;
        payer: PublicKey;
        playerAccount: PublicKey;
        systemProgram: PublicKey;
        user: PublicKey;
    }>

  • Parameters

    • user: PublicKey
    • authority: PublicKey
    • leaderboard: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        authority: PublicKey;
        game: PublicKey;
        leaderboard: PublicKey;
        payer: PublicKey;
        playerAccount: PublicKey;
        playerScores: PublicKey;
        systemProgram: PublicKey;
        topEntries: null | PublicKey;
    }>

  • Parameters

    • user: PublicKey
    • authority: PublicKey
    • achievement: PublicKey
    • leaderboard: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        achievement: PublicKey;
        authority: PublicKey;
        game: PublicKey;
        payer: PublicKey;
        playerAccount: PublicKey;
        playerAchievement: PublicKey;
        playerScores: PublicKey;
    }>

  • Parameters

    • authority: PublicKey
    • achievement: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        achievement: PublicKey;
        authority: PublicKey;
        game: PublicKey;
    }>

  • Parameters

    • game: PublicKey
    • authority: PublicKey

    Returns Promise<{
        authority: PublicKey;
        game: PublicKey;
        payer: PublicKey;
        systemProgram: PublicKey;
    }>

  • Parameters

    • authority: PublicKey
    • leaderboard: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        authority: PublicKey;
        game: PublicKey;
        leaderboard: PublicKey;
    }>

  • Parameters

    • user: PublicKey

    Returns Promise<{
        playerAccount: PublicKey;
        user: PublicKey;
    }>

  • Parameters

    • user: PublicKey
    • achievement: PublicKey
    • mint: PublicKey
    • Optional reward: PublicKey
    • Optional game: PublicKey

    Returns Promise<{
        achievement: PublicKey;
        claim: PublicKey;
        collectionEdition: PublicKey;
        collectionMetadata: PublicKey;
        collectionMint: PublicKey;
        game: PublicKey;
        metadataToVerify: PublicKey;
        mint: PublicKey;
        payer: PublicKey;
        playerAccount: PublicKey;
        playerAchievement: PublicKey;
        reward: PublicKey;
        tokenMetadataProgram: PublicKey;
        user: PublicKey;
    }>

Generated using TypeDoc