Hierarchy

  • MergeMiner

Constructors

Properties

mergeMine: MergeMine
mm: { data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }

Type declaration

pool: { data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }

Type declaration

Accessors

Methods

  • Claims rewards for a primary account.

    Returns

    Parameters

    • rewarder: PublicKey

    Returns Promise<TransactionEnvelope>

  • Claims rewards for a replica account.

    Returns

    Parameters

    • rewarder: PublicKey

    Returns Promise<TransactionEnvelope>

  • Deposit primary tokens into the merge miner.

    Returns

    Parameters

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

    Returns Promise<TransactionEnvelope>

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

    Returns

    Parameters

    • rewarder: PublicKey

    Returns Promise<TransactionEnvelope>

  • Stakes replica tokens into a miner.

    Returns

    Parameters

    • rewarder: 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

    Returns Promise<TransactionEnvelope>

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

    Returns

    Parameters

    • rewarder: PublicKey
    • amount: TokenAmount

    Returns Promise<TransactionEnvelope>

  • Withdraw staked tokens from a merge miner.

    Returns

    Parameters

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

    Returns Promise<TransactionEnvelope>

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

    Returns

    Returns Promise<TransactionEnvelope>

  • Withdraws a specific mint from the merge miner.

    Returns

    Parameters

    • withdrawMint: PublicKey

    Returns Promise<TransactionEnvelope>

Generated using TypeDoc