Constructors
Methods
Static
buildTokenExtensionContext
Static
buildTokenExtensionContextForPool
Static
calculateTransferFeeExcludedAmount
- calculateTransferFeeExcludedAmount(transferFeeIncludedAmount, tokenInfo, currentEpoch): TransferFeeExcludedAmount
Parameters
- transferFeeIncludedAmount: BN
- tokenInfo: MintWithTokenProgram
- currentEpoch: number
Static
calculateTransferFeeIncludedAmount
- calculateTransferFeeIncludedAmount(transferFeeExcludedAmount, tokenInfo, currentEpoch): TransferFeeIncludedAmount
Parameters
- transferFeeExcludedAmount: BN
- tokenInfo: MintWithTokenProgram
- currentEpoch: number
Static
getExtraAccountMetasForTransferHook
- getExtraAccountMetasForTransferHook(connection, tokenMintWithProgram, source, destination, owner): Promise<undefined | AccountMeta[]>
Parameters
- connection: Connection
- tokenMintWithProgram: MintWithTokenProgram
- source: PublicKey
- destination: PublicKey
- owner: PublicKey
Returns Promise<undefined | AccountMeta[]>
Static
getExtraAccountMetasForTransferHookForPool
- getExtraAccountMetasForTransferHookForPool(connection, tokenExtensionCtx, sourceA, destinationA, ownerA, sourceB, destinationB, ownerB): 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
isV2IxRequiredPool
- isV2IxRequiredPool(tokenExtensionCtx): boolean
Returns boolean
Static
isV2IxRequiredReward
- isV2IxRequiredReward(tokenExtensionCtx, rewardIndex): boolean
Returns boolean