Hierarchy

  • QuarryRegistry

Constructors

Properties

Accessors

Methods

Constructors

Properties

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"; pda: { seeds: [{ kind: "const"; type: "string"; value: "QuarryRegistry" }, { account: "Rewarder"; kind: "account"; path: "rewarder"; type: "publicKey" }] } }, { isMut: true; 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>>>>

Accessors

Methods

  • Creates a new Registry.

    Returns

    Parameters

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

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

  • Parameters

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

    Returns Promise<TransactionEnvelope>

Generated using TypeDoc