Properties
Readonly
key
key: PublicKey
Accessors
provider
- get provider(): Provider
-
Returns Provider
Methods
claimPrimaryRewards
- claimPrimaryRewards(rewarder: PublicKey, mergeMiner: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
Returns Promise<TransactionEnvelope>
claimReplicaRewards
- claimReplicaRewards(rewarder: PublicKey, mergeMiner: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
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; mmOwner?: PublicKey; rewarder: PublicKey }): Promise<TransactionEnvelope>
-
Parameters
-
amount: { amount: TokenAmount; mmOwner?: PublicKey; rewarder: PublicKey }
-
amount: TokenAmount
-
Optional
mmOwner?: PublicKey
-
rewarder: PublicKey
Returns Promise<TransactionEnvelope>
getPrimaryStakeAccounts
- getPrimaryStakeAccounts(rewarder: PublicKey, mergeMiner: PublicKey): Promise<QuarryStakeAccounts>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
getReplicaStakeAccounts
- getReplicaStakeAccounts(rewarder: PublicKey, mergeMiner: PublicKey): Promise<QuarryStakeAccounts>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
stakePrimaryMiner
- stakePrimaryMiner(rewarder: PublicKey, mergeMiner: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
Returns Promise<TransactionEnvelope>
stakeReplicaMiner
- stakeReplicaMiner(rewarder: PublicKey, mergeMiner: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
Returns Promise<TransactionEnvelope>
unstakeAllReplica
- unstakeAllReplica(rewarder: PublicKey, mergeMiner: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
Returns Promise<TransactionEnvelope>
unstakePrimaryMiner
- unstakePrimaryMiner(rewarder: PublicKey, mergeMiner: PublicKey, amount: TokenAmount): Promise<TransactionEnvelope>
-
Parameters
-
rewarder: PublicKey
-
mergeMiner: PublicKey
-
amount: TokenAmount
Returns Promise<TransactionEnvelope>
withdraw
- withdraw(amount: { amount: TokenAmount; mergeMiner: PublicKey; rewarder: PublicKey }): Promise<TransactionEnvelope>
-
Parameters
-
amount: { amount: TokenAmount; mergeMiner: PublicKey; rewarder: PublicKey }
-
amount: TokenAmount
-
mergeMiner: PublicKey
-
rewarder: PublicKey
Returns Promise<TransactionEnvelope>
withdrawTokens
- withdrawTokens(withdrawMint: PublicKey, mergeMiner: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
withdrawMint: PublicKey
-
mergeMiner: PublicKey
Returns Promise<TransactionEnvelope>
Claims rewards for a primary account.
Returns