Properties
Readonly
program
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
provider
- get provider(): AugmentedProvider
-
Returns AugmentedProvider
Methods
acceptAdmin
- acceptAdmin(wrapper: PublicKey): TransactionEnvelope
-
Returns TransactionEnvelope
fetchMintWrapper
- fetchMintWrapper(wrapper: PublicKey): Promise<null | AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>>
-
Returns Promise<null | AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>>
fetchMinter
- fetchMinter(wrapper: PublicKey, authority: PublicKey): Promise<null | AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>>
-
Parameters
-
wrapper: PublicKey
-
authority: PublicKey
Returns Promise<null | AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>>
minterUpdate
- minterUpdate(wrapper: PublicKey, authority: PublicKey, allowance: u64): Promise<TransactionEnvelope>
-
Parameters
-
wrapper: PublicKey
-
authority: PublicKey
-
allowance: u64
Returns Promise<TransactionEnvelope>
newMinter
- newMinter(wrapper: PublicKey, authority: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
wrapper: PublicKey
-
authority: PublicKey
Returns Promise<TransactionEnvelope>
newMinterV1
- newMinterV1(wrapper: PublicKey, authority: PublicKey): Promise<TransactionEnvelope>
-
Parameters
-
wrapper: PublicKey
-
authority: PublicKey
Returns Promise<TransactionEnvelope>
newMinterWithAllowance
- newMinterWithAllowance(wrapper: PublicKey, authority: PublicKey, allowance: u64): Promise<TransactionEnvelope>
-
Parameters
-
wrapper: PublicKey
-
authority: PublicKey
-
allowance: u64
Returns Promise<TransactionEnvelope>
newWrapper
- newWrapper(__namedParameters: { admin?: PublicKey; baseKP?: Signer; hardcap: u64; payer?: PublicKey; tokenMint: PublicKey; tokenProgram?: PublicKey }): Promise<PendingMintWrapper>
-
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
newWrapperAndMint
- newWrapperAndMint(__namedParameters: { admin?: PublicKey; baseKP?: Signer; decimals?: number; hardcap: u64; mintKP?: Signer; payer?: PublicKey; tokenProgram?: PublicKey }): 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
newWrapperAndMintV1
- newWrapperAndMintV1(__namedParameters: { admin?: PublicKey; baseKP?: Signer; decimals?: number; hardcap: u64; mintKP?: Signer; payer?: PublicKey; tokenProgram?: PublicKey }): 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
newWrapperV1
- newWrapperV1(__namedParameters: { admin?: PublicKey; baseKP?: Signer; hardcap: u64; payer?: PublicKey; tokenMint: PublicKey; tokenProgram?: PublicKey }): Promise<PendingMintWrapper>
-
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
performMint
- performMint(__namedParameters: { amount: TokenAmount; minter: { accountId: PublicKey; accountInfo: AccountInfo<AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>> } }): Promise<TransactionEnvelope>
-
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>
performMintTo
- performMintTo(__namedParameters: { amount: TokenAmount; destOwner?: PublicKey; mintWrapper: PublicKey; minterAuthority?: PublicKey }): Promise<TransactionEnvelope>
-
Parameters
-
__namedParameters: { amount: TokenAmount; destOwner?: PublicKey; mintWrapper: PublicKey; minterAuthority?: PublicKey }
-
amount: TokenAmount
-
Optional
destOwner?: PublicKey
-
mintWrapper: PublicKey
-
Optional
minterAuthority?: PublicKey
Returns Promise<TransactionEnvelope>
performMintWithMinter
- performMintWithMinter(__namedParameters: { amount: TokenAmount; minter: ProgramAccount<AnchorTypeDef<Object, AnchorDefined<QuarryMintWrapperIDL, Record<string, never>>>> }): Promise<TransactionEnvelope>
-
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>
transferAdmin
- transferAdmin(wrapper: PublicKey, nextAdmin: PublicKey): TransactionEnvelope
-
Parameters
-
wrapper: PublicKey
-
nextAdmin: PublicKey
Returns TransactionEnvelope
Fetches info on a Mint Wrapper.
Returns