Hierarchy

  • RewarderWrapper

Constructors

Properties

mineWrapper: MineWrapper
program: MineProgram
rewarderData: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMine, Record<string, never>>>
rewarderKey: PublicKey

Accessors

Methods

  • Creates a new quarry. Only the rewarder can call this.

    Returns

    Parameters

    • param0: { authority?: PublicKey; token: Token }
      • Optional authority?: PublicKey
      • token: Token

    Returns Promise<PendingQuarry>

  • Creates a new quarry. Only the rewarder can call this.

    Deprecated

    Use createQuarry.

    Returns

    Parameters

    • param0: { authority?: PublicKey; token: Token }
      • Optional authority?: PublicKey
      • token: Token

    Returns Promise<PendingQuarry>

  • Gets the public key of a quarry for a token.

    Returns

    Parameters

    • token: Token

    Returns Promise<PublicKey>

  • Gets the public key of a quarry for a token mint.

    Returns

    Parameters

    • mint: PublicKey

    Returns Promise<PublicKey>

  • Pause the rewarder

    Parameters

    • authority: PublicKey = ...

    Returns TransactionEnvelope

  • Updates to annual rewards rate on the quarry, and update rewards on quarries assocated with each mint provided.

    Parameters

    • newAnnualRate: u64
    • mints: PublicKey[]

    Returns Promise<TransactionEnvelope>

  • Updates annual rewards rate on the Rewarder. One must sync after this.

    Parameters

    • param0: { authority?: PublicKey; newAnnualRate: u64 }
      • Optional authority?: PublicKey
      • newAnnualRate: u64

    Returns TransactionEnvelope

  • Sets timestamp on when rewards will cease

    Parameters

    • __namedParameters: { authority?: PublicKey; newFamineTs: u64; quarry: PublicKey }
      • Optional authority?: PublicKey
      • newFamineTs: u64
      • quarry: PublicKey

    Returns TransactionEnvelope

  • Synchronizes quarry rewards.

    Returns

    Parameters

    • mints: PublicKey[]

    Returns Promise<TransactionEnvelope>

  • Transfers the authority to a different account.

    Parameters

    • param0: { authority?: PublicKey; nextAuthority: PublicKey }
      • Optional authority?: PublicKey
      • nextAuthority: PublicKey

    Returns TransactionEnvelope

  • Unpause the rewarder

    Parameters

    • authority: PublicKey = ...

    Returns TransactionEnvelope

Generated using TypeDoc