Accessors
provider
- get provider(): Provider
-
Returns Provider
Methods
fetchMergeMinerData
- fetchMergeMinerData(key: PublicKey): Promise<{ data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }>
-
Returns Promise<{ data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }>
fetchMergePoolData
- fetchMergePoolData(key: PublicKey): Promise<{ data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }>
-
Returns Promise<{ data: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>; key: PublicKey }>
findMergeMinerAddress
- findMergeMinerAddress(__namedParameters: { owner?: PublicKey; pool: PublicKey }): Promise<PublicKey>
-
Parameters
-
__namedParameters: { owner?: PublicKey; pool: PublicKey }
-
Optional
owner?: PublicKey
-
pool: PublicKey
Returns Promise<PublicKey>
findPoolAddress
- findPoolAddress(__namedParameters: { primaryMint: PublicKey }): Promise<PublicKey>
-
Parameters
-
__namedParameters: { primaryMint: PublicKey }
Returns Promise<PublicKey>
getOrCreatePrimary
- getOrCreatePrimary(__namedParameters: { mint: PublicKey; mm: PublicKey; payer?: PublicKey; pool: PublicKey; rewarder: PublicKey }): 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<{ ixs: TransactionInstruction[]; miner: PublicKey }>
initMiner
- initMiner(__namedParameters: { mint: PublicKey; mm: PublicKey; payer?: PublicKey; pool: PublicKey; rewarder: PublicKey }): Promise<{ miner: PublicKey; tx: TransactionEnvelope }>
-
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 }>
loadMM
- loadMM(__namedParameters: { mmKey: PublicKey }): Promise<MergeMiner>
-
Parameters
-
__namedParameters: { mmKey: PublicKey }
loadMP
- loadMP(__namedParameters: { mpKey: PublicKey }): MergePool
-
Parameters
-
__namedParameters: { mpKey: PublicKey }
newMM
- newMM(param0: { owner?: PublicKey; payer?: PublicKey; pool: { data: Pick<AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMergeMine, Record<string, never>>>, "primaryMint">; key: PublicKey }; rewarder: PublicKey; rewardsMint: PublicKey }): Promise<{ key: PublicKey; tx: null | TransactionEnvelope }>
-
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
-
rewardsMint: PublicKey
Returns Promise<{ key: PublicKey; tx: null | TransactionEnvelope }>
newPool
- newPool(__namedParameters: { payer?: PublicKey; primaryMint: PublicKey }): Promise<{ key: PublicKey; replicaToken: Token; tx: TransactionEnvelope }>
-
Parameters
-
__namedParameters: { payer?: PublicKey; primaryMint: PublicKey }
-
Optional
payer?: PublicKey
-
primaryMint: PublicKey
Returns Promise<{ key: PublicKey; replicaToken: Token; tx: TransactionEnvelope }>
rescueTokens
- rescueTokens(__namedParameters: { destinationTokenAccount: PublicKey; mergeMiner: PublicKey; mergePool: PublicKey; miner: PublicKey; minerTokenAccount: PublicKey }): TransactionEnvelope
-
Parameters
-
__namedParameters: { destinationTokenAccount: PublicKey; mergeMiner: PublicKey; mergePool: PublicKey; miner: PublicKey; minerTokenAccount: PublicKey }
-
destinationTokenAccount: PublicKey
-
mergeMiner: PublicKey
-
mergePool: PublicKey
-
miner: PublicKey
-
minerTokenAccount: PublicKey
Returns TransactionEnvelope
Loads a mm.
Returns