Hierarchy

  • MergeMine

Constructors

Properties

Accessors

Methods

  • Parameters

    • __namedParameters: { owner?: PublicKey; pool: PublicKey }
      • Optional owner?: PublicKey
      • pool: PublicKey

    Returns Promise<PublicKey>

  • Parameters

    • __namedParameters: { primaryMint: PublicKey }
      • primaryMint: PublicKey

    Returns Promise<PublicKey>

  • Parameters

    • __namedParameters: { mint: PublicKey; mm: PublicKey; payer?: PublicKey; pool: PublicKey; rewarder: PublicKey }
      • mint: PublicKey
      • mm: PublicKey
      • Optional payer?: PublicKey
      • pool: PublicKey
      • rewarder: PublicKey

    Returns Promise<{ ixs: TransactionInstruction[]; miner: PublicKey }>

  • Parameters

    • __namedParameters: { mint: PublicKey; mm: PublicKey; payer?: PublicKey; pool: PublicKey; rewarder: PublicKey }
      • mint: PublicKey
      • mm: PublicKey
      • Optional payer?: PublicKey
      • pool: PublicKey
      • rewarder: PublicKey

    Returns Promise<{ miner: PublicKey; tx: TransactionEnvelope }>

  • Creates a new MM.

    Returns

    Parameters

    • param0: { owner?: PublicKey; payer?: PublicKey; pool: { data: Pick<AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>, "primaryMint">; key: PublicKey }; rewarder: PublicKey; rewardsMint: PublicKey }
      • Optional owner?: PublicKey
      • Optional payer?: PublicKey
      • pool: { data: Pick<AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>, "primaryMint">; key: PublicKey }
        • data: Pick<AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>, "primaryMint">
        • key: PublicKey
      • rewarder: PublicKey

        Rewarder to deposit into.

      • rewardsMint: PublicKey

        Mint received as rewards from the initial rewarder.

    Returns Promise<{ key: PublicKey; tx: null | TransactionEnvelope }>

  • Creates a new pool.

    Returns

    Parameters

    • __namedParameters: { payer?: PublicKey; primaryMint: PublicKey }
      • Optional payer?: PublicKey
      • primaryMint: PublicKey

        Primary mint.

    Returns Promise<{ key: PublicKey; replicaToken: Token; tx: TransactionEnvelope }>

  • Rescue stuck tokens in a merge miner.

    Returns

    Parameters

    • __namedParameters: { destinationTokenAccount: PublicKey; mergeMiner: PublicKey; mergePool: PublicKey; miner: PublicKey; minerTokenAccount: PublicKey }
      • destinationTokenAccount: PublicKey
      • mergeMiner: PublicKey
      • mergePool: PublicKey
      • miner: PublicKey
      • minerTokenAccount: PublicKey

    Returns TransactionEnvelope

Generated using TypeDoc