Constructors
Methods
Static
buildTokenExtensionContext
Static
buildTokenExtensionContextForPool
Static
calculateTransferFeeExcludedAmount
- calculateTransferFeeExcludedAmount(
transferFeeIncludedAmount: BN,
tokenInfo: MintWithTokenProgram,
currentEpoch: number,
): TransferFeeExcludedAmount Parameters
- transferFeeIncludedAmount: BN
- tokenInfo: MintWithTokenProgram
- currentEpoch: number
Static
calculateTransferFeeIncludedAmount
- calculateTransferFeeIncludedAmount(
transferFeeExcludedAmount: BN,
tokenInfo: MintWithTokenProgram,
currentEpoch: number,
): TransferFeeIncludedAmount Parameters
- transferFeeExcludedAmount: BN
- tokenInfo: MintWithTokenProgram
- currentEpoch: number
Static
getExtraAccountMetasForTransferHook
- getExtraAccountMetasForTransferHook(
connection: Connection,
tokenMintWithProgram: MintWithTokenProgram,
source: PublicKey,
destination: PublicKey,
owner: PublicKey,
): Promise<undefined | AccountMeta[]> Parameters
- connection: Connection
- tokenMintWithProgram: MintWithTokenProgram
- source: PublicKey
- destination: PublicKey
- owner: PublicKey
Returns Promise<undefined | AccountMeta[]>
Static
getExtraAccountMetasForTransferHookForPool
- getExtraAccountMetasForTransferHookForPool(
connection: Connection,
tokenExtensionCtx: TokenExtensionContextForPool,
sourceA: PublicKey,
destinationA: PublicKey,
ownerA: PublicKey,
sourceB: PublicKey,
destinationB: PublicKey,
ownerB: PublicKey,
): Promise<
{
tokenTransferHookAccountsA: undefined
| AccountMeta[];
tokenTransferHookAccountsB: undefined | AccountMeta[];
},
> Parameters
- connection: Connection
- tokenExtensionCtx: TokenExtensionContextForPool
- sourceA: PublicKey
- destinationA: PublicKey
- ownerA: PublicKey
- sourceB: PublicKey
- destinationB: PublicKey
- ownerB: PublicKey
Returns Promise<
{
tokenTransferHookAccountsA: undefined
| AccountMeta[];
tokenTransferHookAccountsB: undefined | AccountMeta[];
},
>
Static
isV2IxRequiredReward