Constructors
constructor
- new MergeMiner(mergeMine: MergeMine, pool: { data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }, mm: { data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }): MergeMiner
-
Parameters
-
-
pool: { data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }
-
mm: { data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }
Properties
Readonly
mm
mm
: { data
: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key
: PublicKey }
Readonly
pool
pool
: { data
: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key
: PublicKey }
Accessors
primaryMint
- get primaryMint(): PublicKey
-
Returns PublicKey
provider
- get provider(): Provider
-
Returns Provider
replicaMint
- get replicaMint(): PublicKey
-
Returns PublicKey
Methods
claimPrimaryRewards
- claimPrimaryRewards(rewarder: PublicKey): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
claimReplicaRewards
- claimReplicaRewards(rewarder: PublicKey): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
claimRewardsCommon
- claimRewardsCommon(quarryMint: PublicKey, stake: QuarryStakeAccounts, mmOwner?: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
quarryMint: PublicKey
-
-
mmOwner: PublicKey = ...
Returns Promise<TransactionEnvelope>
deposit
- deposit(amount: { amount: TokenAmount; rewarder: PublicKey }): Promise<TransactionEnvelope>
-
Parameters
-
amount: { amount: TokenAmount; rewarder: PublicKey }
-
amount: TokenAmount
-
rewarder: PublicKey
Returns Promise<TransactionEnvelope>
stakePrimaryMiner
- stakePrimaryMiner(rewarder: PublicKey): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
stakeReplicaMiner
- stakeReplicaMiner(rewarder: PublicKey): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
unstakeAllReplica
- unstakeAllReplica(rewarder: PublicKey): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
unstakePrimaryMiner
- unstakePrimaryMiner(rewarder: PublicKey, amount: TokenAmount): Promise<TransactionEnvelope>
-
Parameters
-
rewarder: PublicKey
-
amount: TokenAmount
Returns Promise<TransactionEnvelope>
withdraw
- withdraw(amount: { amount: TokenAmount; rewarder: PublicKey }): Promise<TransactionEnvelope>
-
Parameters
-
amount: { amount: TokenAmount; rewarder: PublicKey }
-
amount: TokenAmount
-
rewarder: PublicKey
Returns Promise<TransactionEnvelope>
withdrawPrimaryFromMM
- withdrawPrimaryFromMM(): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
withdrawTokens
- withdrawTokens(withdrawMint: PublicKey): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
Claims rewards for a primary account.
Returns