Hierarchy

  • MergePool

Constructors

Properties

key: PublicKey
mergeMine: MergeMine

Accessors

Methods

  • Claims rewards for a primary account.

    Returns

    Parameters

    • rewarder: PublicKey
    • mergeMiner: PublicKey

    Returns Promise<TransactionEnvelope>

  • Claims rewards for a replica account.

    Returns

    Parameters

    • rewarder: PublicKey
    • mergeMiner: PublicKey

    Returns Promise<TransactionEnvelope>

  • Deposit primary tokens into the merge miner.

    Returns

    Parameters

    • amount: { amount: TokenAmount; mmOwner?: PublicKey; rewarder: PublicKey }
      • amount: TokenAmount
      • Optional mmOwner?: PublicKey
      • rewarder: PublicKey

    Returns Promise<TransactionEnvelope>

  • Deposits tokens into the primary quarry. (Not recommended-- you probably want deposit.)

    Returns

    Parameters

    • rewarder: PublicKey
    • mergeMiner: PublicKey

    Returns Promise<TransactionEnvelope>

  • Stakes replica tokens into a miner.

    Returns

    Parameters

    • rewarder: PublicKey
    • mergeMiner: PublicKey

    Returns Promise<TransactionEnvelope>

  • Unstakes all replica tokens from a quarry. You must call this function for each replica miner before unstaking the primary.

    Returns

    Parameters

    • rewarder: PublicKey
    • mergeMiner: PublicKey

    Returns Promise<TransactionEnvelope>

  • Withdraws primary tokens from the quarry. (Not recommended-- you probably want withdraw.)

    Returns

    Parameters

    • rewarder: PublicKey
    • mergeMiner: PublicKey
    • amount: TokenAmount

    Returns Promise<TransactionEnvelope>

  • Withdraw staked tokens from a merge miner.

    Returns

    Parameters

    • amount: { amount: TokenAmount; mergeMiner: PublicKey; rewarder: PublicKey }
      • amount: TokenAmount
      • mergeMiner: PublicKey
      • rewarder: PublicKey

    Returns Promise<TransactionEnvelope>

  • Withdraws a specific mint from the merge miner.

    Returns

    Parameters

    • withdrawMint: PublicKey
    • mergeMiner: PublicKey

    Returns Promise<TransactionEnvelope>

Generated using TypeDoc