Quarry SDK.

Hierarchy

  • QuarrySDK

Constructors

Properties

programs: Programs
provider: AugmentedProvider

Accessors

  • get programList(): Program<Idl>[]
  • Returns Program<Idl>[]

Methods

  • Creates an Operator.

    Returns

    Parameters

    • __namedParameters: { admin?: PublicKey; baseKP?: Signer; payer?: PublicKey; rewarder: PublicKey }
      • Optional admin?: PublicKey
      • Optional baseKP?: Signer
      • Optional payer?: PublicKey
      • rewarder: PublicKey

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

  • Parameters

    • __namedParameters: { iouMint: PublicKey; redemptionMint: PublicKey }
      • iouMint: PublicKey
      • redemptionMint: PublicKey

    Returns Promise<PendingRedeemer>

  • Loads an operator.

    Returns

    Parameters

    • key: PublicKey

    Returns Promise<null | Operator>

  • Parameters

    • __namedParameters: { iouMint: PublicKey; redemptionMint: PublicKey }
      • iouMint: PublicKey
      • redemptionMint: PublicKey

    Returns Promise<RedeemerWrapper>

  • Constructs a new transaction envelope.

    Returns

    Parameters

    • instructions: TransactionInstruction[]
    • Optional signers: Signer[]

    Returns TransactionEnvelope

  • Creates a new instance of the SDK with the given keypair.

    Parameters

    • signer: Signer

    Returns QuarrySDK

  • Loads the SDK.

    Returns

    Parameters

    • __namedParameters: { addresses?: { MergeMine?: PublicKey; Mine?: PublicKey; MintWrapper?: PublicKey; Operator?: PublicKey; Redeemer?: PublicKey; Registry?: PublicKey }; provider: Provider }
      • Optional addresses?: { MergeMine?: PublicKey; Mine?: PublicKey; MintWrapper?: PublicKey; Operator?: PublicKey; Redeemer?: PublicKey; Registry?: PublicKey }
        • Optional MergeMine?: PublicKey
        • Optional Mine?: PublicKey
        • Optional MintWrapper?: PublicKey
        • Optional Operator?: PublicKey
        • Optional Redeemer?: PublicKey
        • Optional Registry?: PublicKey
      • provider: Provider

    Returns QuarrySDK

Generated using TypeDoc