@dinolab/crypto-mm
Version:
Crypto Market Maker
12 lines • 791 B
TypeScript
import { Dex } from "../interfaces/interfaces.js";
import { Keypair } from "@solana/web3.js";
declare class RaydiumDex implements Dex {
private readonly connection;
constructor(rpcUrl: string);
createPool(tokenAddress: string, tokenAmount: bigint, nativeAmount: bigint, ownerKeypair: Keypair, testnet?: boolean): Promise<any>;
addLiquidity(tokenAddress: string, tokenAmount: bigint, nativeAmount: bigint, ownerKeypair: Keypair, testnet?: boolean): Promise<string>;
removeLiquidity(tokenAddress: string, percent: number, ownerKeypair: Keypair, testnet?: boolean): Promise<string>;
swap(fromToken: string, toToken: string, fromAmount: bigint, ownerKeypair: Keypair, testnet?: boolean): Promise<string>;
}
export default RaydiumDex;
//# sourceMappingURL=raydium.d.ts.map