Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • QuarryRegistry

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly program

program: AnchorProgram<QuarryRegistryIDL, { registry: AnchorTypeDef<{ name: "Registry"; type: { fields: [{ name: "bump"; type: "u8" }, { name: "rewarder"; type: "publicKey" }, { name: "tokens"; type: { vec: "publicKey" } }]; kind: "struct" } } & { name: "Registry" }, AnchorDefined<QuarryRegistryIDL, Record<string, never>>> }, AnchorDefined<QuarryRegistryIDL, Record<string, never>>, MakeInstructions<[{ accounts: [{ isMut: false; isSigner: false; name: "rewarder" }, { isMut: true; isSigner: false; name: "registry" }, { isMut: false; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "maxQuarries"; type: "u16" }, { name: "bump"; type: "u8" }]; name: "newRegistry" }, { accounts: [{ isMut: false; isSigner: false; name: "quarry" }, { isMut: true; isSigner: false; name: "registry" }]; args: []; name: "syncQuarry" }], AnchorDefined<QuarryRegistryIDL, Record<string, never>>>, MakeInstructions<unknown, AnchorDefined<QuarryRegistryIDL, Record<string, never>>>>

Readonly sdk

Accessors

provider

  • get provider(): Provider

Methods

newRegistry

  • newRegistry(__namedParameters: { numQuarries: number; payer?: PublicKey; rewarderKey: PublicKey }): Promise<{ registry: PublicKey; tx: TransactionEnvelope }>
  • Creates a new Registry.

    Parameters

    • __namedParameters: { numQuarries: number; payer?: PublicKey; rewarderKey: PublicKey }
      • numQuarries: number
      • Optional payer?: PublicKey
      • rewarderKey: PublicKey

    Returns Promise<{ registry: PublicKey; tx: TransactionEnvelope }>

syncQuarry

  • syncQuarry(__namedParameters: { rewarderKey: PublicKey; tokenMint: PublicKey }): Promise<TransactionEnvelope>
  • Parameters

    • __namedParameters: { rewarderKey: PublicKey; tokenMint: PublicKey }
      • rewarderKey: PublicKey
      • tokenMint: PublicKey

    Returns Promise<TransactionEnvelope>

Generated using TypeDoc