Constructors
constructor
- new RewarderWrapper(mineWrapper: MineWrapper, rewarderKey: PublicKey, rewarderData: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMine, Record<string, never>>>): RewarderWrapper
-
Parameters
-
-
rewarderKey: PublicKey
-
rewarderData: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMine, Record<string, never>>>
Properties
Readonly
rewarderData
rewarder
Data
: AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMine, Record<string, never>>>
Readonly
rewarderKey
rewarderKey: PublicKey
Accessors
provider
- get provider(): AugmentedProvider
-
Returns AugmentedProvider
Methods
createQuarry
- createQuarry(param0: { authority?: PublicKey; token: Token }): Promise<PendingQuarry>
-
Parameters
-
param0: { authority?: PublicKey; token: Token }
-
Optional
authority?: PublicKey
-
token: Token
createQuarryV1
- createQuarryV1(param0: { authority?: PublicKey; token: Token }): Promise<PendingQuarry>
-
Parameters
-
param0: { authority?: PublicKey; token: Token }
-
Optional
authority?: PublicKey
-
token: Token
getQuarryKey
- getQuarryKey(token: Token): Promise<PublicKey>
-
Returns Promise<PublicKey>
getQuarryKeyForMint
- getQuarryKeyForMint(mint: PublicKey): Promise<PublicKey>
-
Returns Promise<PublicKey>
pause
- pause(authority?: PublicKey): TransactionEnvelope
-
Parameters
-
authority: PublicKey = ...
Returns TransactionEnvelope
setAndSyncAnnualRewards
- setAndSyncAnnualRewards(newAnnualRate: u64, mints: PublicKey[]): Promise<TransactionEnvelope>
-
Parameters
-
newAnnualRate: u64
-
mints: PublicKey[]
Returns Promise<TransactionEnvelope>
setAnnualRewards
- setAnnualRewards(param0: { authority?: PublicKey; newAnnualRate: u64 }): TransactionEnvelope
-
Parameters
-
param0: { authority?: PublicKey; newAnnualRate: u64 }
-
Optional
authority?: PublicKey
-
newAnnualRate: u64
Returns TransactionEnvelope
setFamine
- setFamine(__namedParameters: { authority?: PublicKey; newFamineTs: u64; quarry: PublicKey }): TransactionEnvelope
-
Parameters
-
__namedParameters: { authority?: PublicKey; newFamineTs: u64; quarry: PublicKey }
-
Optional
authority?: PublicKey
-
newFamineTs: u64
-
quarry: PublicKey
Returns TransactionEnvelope
syncQuarryRewards
- syncQuarryRewards(mints: PublicKey[]): Promise<TransactionEnvelope>
-
Returns Promise<TransactionEnvelope>
transferAuthority
- transferAuthority(param0: { authority?: PublicKey; nextAuthority: PublicKey }): TransactionEnvelope
-
Parameters
-
param0: { authority?: PublicKey; nextAuthority: PublicKey }
-
Optional
authority?: PublicKey
-
nextAuthority: PublicKey
Returns TransactionEnvelope
unpause
- unpause(authority?: PublicKey): TransactionEnvelope
-
Parameters
-
authority: PublicKey = ...
Returns TransactionEnvelope
Static
fromData
- fromData(provider: Provider, rewarder: ProgramAccount<AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMine, Record<string, never>>>>): RewarderWrapper
-
Parameters
-
provider: Provider
-
rewarder: ProgramAccount<AnchorTypeDef<Object, AnchorDefined<AnchorQuarryMine, Record<string, never>>>>
Creates a new quarry. Only the rewarder can call this.
Returns