Hierarchy

  • MintWrapper

Constructors

Properties

program: AnchorProgram<QuarryMintWrapperIDL, { mintWrapper: AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>; minter: AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>> }, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>, MakeInstructions<[{ accounts: [{ isMut: false; isSigner: true; name: "base" }, { isMut: true; isSigner: false; name: "mintWrapper"; pda: { seeds: [{ kind: "const"; type: "string"; value: "MintWrapper" }, { kind: "account"; path: "base"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "admin" }, { isMut: false; isSigner: false; name: "tokenMint" }]; args: [{ name: "bump"; type: "u8" }, { name: "hardCap"; type: "u64" }]; name: "newWrapper" }, { accounts: [{ isMut: false; isSigner: true; name: "base" }, { isMut: true; isSigner: false; name: "mintWrapper"; pda: { seeds: [{ kind: "const"; type: "string"; value: "MintWrapper" }, { kind: "account"; path: "base"; type: "publicKey" }] } }, { isMut: false; isSigner: false; name: "admin" }, { isMut: false; isSigner: false; name: "tokenMint" }]; args: [{ name: "hardCap"; type: "u64" }]; name: "newWrapperV2" }, { accounts: [{ isMut: true; isSigner: false; name: "mintWrapper" }, { isMut: false; isSigner: true; name: "admin" }, { isMut: false; isSigner: false; name: "nextAdmin" }]; args: []; name: "transferAdmin" }], AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>, MakeInstructions<unknown, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>>

Accessors

Methods

  • Updates a minter's allowance.

    Returns

    Parameters

    • wrapper: PublicKey
    • authority: PublicKey
    • allowance: u64

    Returns Promise<TransactionEnvelope>

  • Parameters

    • wrapper: PublicKey
    • authority: PublicKey

    Returns Promise<TransactionEnvelope>

  • Parameters

    • wrapper: PublicKey
    • authority: PublicKey

    Returns Promise<TransactionEnvelope>

  • Creates a new Minter with an allowance.

    Returns

    Parameters

    • wrapper: PublicKey
    • authority: PublicKey
    • allowance: u64

    Returns Promise<TransactionEnvelope>

  • Parameters

    • __namedParameters: { admin?: PublicKey; baseKP?: Signer; hardcap: u64; payer?: PublicKey; tokenMint: PublicKey; tokenProgram?: PublicKey }
      • Optional admin?: PublicKey
      • Optional baseKP?: Signer
      • hardcap: u64
      • Optional payer?: PublicKey
      • tokenMint: PublicKey
      • Optional tokenProgram?: PublicKey

    Returns Promise<PendingMintWrapper>

  • Parameters

    • __namedParameters: { admin?: PublicKey; baseKP?: Signer; decimals?: number; hardcap: u64; mintKP?: Signer; payer?: PublicKey; tokenProgram?: PublicKey }
      • Optional admin?: PublicKey
      • Optional baseKP?: Signer
      • Optional decimals?: number
      • hardcap: u64
      • Optional mintKP?: Signer
      • Optional payer?: PublicKey
      • Optional tokenProgram?: PublicKey

    Returns Promise<PendingMintAndWrapper>

  • Parameters

    • __namedParameters: { admin?: PublicKey; baseKP?: Signer; decimals?: number; hardcap: u64; mintKP?: Signer; payer?: PublicKey; tokenProgram?: PublicKey }
      • Optional admin?: PublicKey
      • Optional baseKP?: Signer
      • Optional decimals?: number
      • hardcap: u64
      • Optional mintKP?: Signer
      • Optional payer?: PublicKey
      • Optional tokenProgram?: PublicKey

    Returns Promise<PendingMintAndWrapper>

  • Parameters

    • __namedParameters: { admin?: PublicKey; baseKP?: Signer; hardcap: u64; payer?: PublicKey; tokenMint: PublicKey; tokenProgram?: PublicKey }
      • Optional admin?: PublicKey
      • Optional baseKP?: Signer
      • hardcap: u64
      • Optional payer?: PublicKey
      • tokenMint: PublicKey
      • Optional tokenProgram?: PublicKey

    Returns Promise<PendingMintWrapper>

  • Performs a mint of tokens to an account.

    Deprecated

    use performMintWithMinter

    Returns

    Parameters

    • __namedParameters: { amount: TokenAmount; minter: { accountId: PublicKey; accountInfo: AccountInfo<AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>> } }
      • amount: TokenAmount
      • minter: { accountId: PublicKey; accountInfo: AccountInfo<AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>> }
        • accountId: PublicKey
        • accountInfo: AccountInfo<AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>>

    Returns Promise<TransactionEnvelope>

  • Mints tokens to an address as a Minter on the Mint Wrapper.

    Parameters

    • __namedParameters: { amount: TokenAmount; destOwner?: PublicKey; mintWrapper: PublicKey; minterAuthority?: PublicKey }
      • amount: TokenAmount
      • Optional destOwner?: PublicKey
      • mintWrapper: PublicKey
      • Optional minterAuthority?: PublicKey

    Returns Promise<TransactionEnvelope>

  • Performs a mint of tokens to an account.

    Returns

    Parameters

    • __namedParameters: { amount: TokenAmount; minter: ProgramAccount<AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>> }
      • amount: TokenAmount
      • minter: ProgramAccount<AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>>

    Returns Promise<TransactionEnvelope>

Generated using TypeDoc