Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RedeemerWrapper

Index

Constructors

constructor

  • new RedeemerWrapper(sdk: QuarrySDK, iouMint: PublicKey, redemptionMint: PublicKey, key: PublicKey, data: AnchorTypeDef<{ name: "Redeemer"; type: { fields: [{ name: "iouMint"; type: "publicKey" }, { name: "redemptionMint"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "totalTokensRedeemed"; type: "u64" }]; kind: "struct" } } & { name: "Redeemer" }, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>>): RedeemerWrapper
  • Parameters

    • sdk: QuarrySDK
    • iouMint: PublicKey
    • redemptionMint: PublicKey
    • key: PublicKey
    • data: AnchorTypeDef<{ name: "Redeemer"; type: { fields: [{ name: "iouMint"; type: "publicKey" }, { name: "redemptionMint"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "totalTokensRedeemed"; type: "u64" }]; kind: "struct" } } & { name: "Redeemer" }, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>>

    Returns RedeemerWrapper

Properties

Readonly data

data: AnchorTypeDef<{ name: "Redeemer"; type: { fields: [{ name: "iouMint"; type: "publicKey" }, { name: "redemptionMint"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "totalTokensRedeemed"; type: "u64" }]; kind: "struct" } } & { name: "Redeemer" }, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>>

Readonly iouMint

iouMint: PublicKey

Readonly key

key: PublicKey

Readonly redemptionMint

redemptionMint: PublicKey

Readonly sdk

Accessors

program

  • get program(): AnchorProgram<QuarryRedeemerIDL, { redeemer: AnchorTypeDef<{ name: "Redeemer"; type: { fields: [{ name: "iouMint"; type: "publicKey" }, { name: "redemptionMint"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "totalTokensRedeemed"; type: "u64" }]; kind: "struct" } } & { name: "Redeemer" }, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>> }, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>, MakeInstructions<[{ accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: false; name: "iouMint" }, { isMut: false; isSigner: false; name: "redemptionMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createRedeemer" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: [{ name: "amount"; type: "u64" }]; name: "redeemTokens" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "redeemAllTokens" }], AnchorDefined<QuarryRedeemerIDL, Record<string, never>>>, MakeInstructions<unknown, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>>>
  • Returns AnchorProgram<QuarryRedeemerIDL, { redeemer: AnchorTypeDef<{ name: "Redeemer"; type: { fields: [{ name: "iouMint"; type: "publicKey" }, { name: "redemptionMint"; type: "publicKey" }, { name: "bump"; type: "u8" }, { name: "totalTokensRedeemed"; type: "u64" }]; kind: "struct" } } & { name: "Redeemer" }, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>> }, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>, MakeInstructions<[{ accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: false; name: "iouMint" }, { isMut: false; isSigner: false; name: "redemptionMint" }, { isMut: true; isSigner: true; name: "payer" }, { isMut: false; isSigner: false; name: "systemProgram" }]; args: [{ name: "bump"; type: "u8" }]; name: "createRedeemer" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: [{ name: "amount"; type: "u64" }]; name: "redeemTokens" }, { accounts: [{ isMut: true; isSigner: false; name: "redeemer" }, { isMut: false; isSigner: true; name: "sourceAuthority" }, { isMut: true; isSigner: false; name: "iouMint" }, { isMut: true; isSigner: false; name: "iouSource" }, { isMut: true; isSigner: false; name: "redemptionVault" }, { isMut: true; isSigner: false; name: "redemptionDestination" }, { isMut: false; isSigner: false; name: "tokenProgram" }]; args: []; name: "redeemAllTokens" }], AnchorDefined<QuarryRedeemerIDL, Record<string, never>>>, MakeInstructions<unknown, AnchorDefined<QuarryRedeemerIDL, Record<string, never>>>>

Methods

getRedeemTokenAccounts

  • getRedeemTokenAccounts(args: Omit<RedeemTokenArgs, "tokenAmount">): Promise<{ iouMint: PublicKey; iouSource: PublicKey; redeemer: PublicKey; redemptionDestination: PublicKey; redemptionMint: PublicKey; redemptionVault: PublicKey; sourceAuthority: PublicKey; tokenProgram: PublicKey }>
  • Parameters

    Returns Promise<{ iouMint: PublicKey; iouSource: PublicKey; redeemer: PublicKey; redemptionDestination: PublicKey; redemptionMint: PublicKey; redemptionVault: PublicKey; sourceAuthority: PublicKey; tokenProgram: PublicKey }>

getVaultAddress

  • getVaultAddress(): Promise<PublicKey>

redeemTokens

redeemTokensIx

Static createRedeemer

  • createRedeemer(__namedParameters: { iouMint: PublicKey; redemptionMint: PublicKey; sdk: QuarrySDK }): Promise<PendingRedeemer>

Static load

Generated using TypeDoc