UNPKG

test-raydium-sdk-v2

Version:

An SDK for building applications on top of Raydium.

53 lines (50 loc) 2.16 kB
import { PublicKey } from '@solana/web3.js'; declare const AMM_CONFIG_SEED: Buffer; declare const POOL_SEED: Buffer; declare const POOL_VAULT_SEED: Buffer; declare const POOL_REWARD_VAULT_SEED: Buffer; declare const POSITION_SEED: Buffer; declare const TICK_ARRAY_SEED: Buffer; declare const OPERATION_SEED: Buffer; declare const POOL_TICK_ARRAY_BITMAP_SEED: Buffer; declare function getPdaAmmConfigId(programId: PublicKey, index: number): { publicKey: PublicKey; nonce: number; }; declare function getPdaPoolId(programId: PublicKey, ammConfigId: PublicKey, mintA: PublicKey, mintB: PublicKey): { publicKey: PublicKey; nonce: number; }; declare function getPdaPoolVaultId(programId: PublicKey, poolId: PublicKey, vaultMint: PublicKey): { publicKey: PublicKey; nonce: number; }; declare function getPdaPoolRewardVaulId(programId: PublicKey, poolId: PublicKey, rewardMint: PublicKey): { publicKey: PublicKey; nonce: number; }; declare function getPdaTickArrayAddress(programId: PublicKey, poolId: PublicKey, startIndex: number): { publicKey: PublicKey; nonce: number; }; declare function getPdaProtocolPositionAddress(programId: PublicKey, poolId: PublicKey, tickLower: number, tickUpper: number): { publicKey: PublicKey; nonce: number; }; declare function getPdaPersonalPositionAddress(programId: PublicKey, nftMint: PublicKey): { publicKey: PublicKey; nonce: number; }; declare function getPdaMetadataKey(mint: PublicKey): { publicKey: PublicKey; nonce: number; }; declare function getPdaOperationAccount(programId: PublicKey): { publicKey: PublicKey; nonce: number; }; declare function getPdaExBitmapAccount(programId: PublicKey, poolId: PublicKey): { publicKey: PublicKey; nonce: number; }; export { AMM_CONFIG_SEED, OPERATION_SEED, POOL_REWARD_VAULT_SEED, POOL_SEED, POOL_TICK_ARRAY_BITMAP_SEED, POOL_VAULT_SEED, POSITION_SEED, TICK_ARRAY_SEED, getPdaAmmConfigId, getPdaExBitmapAccount, getPdaMetadataKey, getPdaOperationAccount, getPdaPersonalPositionAddress, getPdaPoolId, getPdaPoolRewardVaulId, getPdaPoolVaultId, getPdaProtocolPositionAddress, getPdaTickArrayAddress };