UNPKG

@kamino-finance/farms-sdk

Version:
10 lines 1.2 kB
import { Connection, Keypair, PublicKey, TransactionInstruction } from "@solana/web3.js"; import * as anchor from "@coral-xyz/anchor"; export declare function createMint(provider: anchor.AnchorProvider, authority: PublicKey, decimals?: number): Promise<PublicKey>; export declare function createMintFromKeypair(provider: anchor.AnchorProvider, authority: PublicKey, mint: Keypair, decimals?: number): Promise<PublicKey>; export declare function getMintDecimals(connection: Connection, mintAddress: PublicKey): Promise<number>; export declare function getAssociatedTokenAddress(owner: PublicKey, tokenMintAddress: PublicKey, tokenProgram: PublicKey): PublicKey; export declare function createAssociatedTokenAccountIdempotentInstruction(owner: PublicKey, mint: PublicKey, payer: PublicKey | undefined, tokenProgram: PublicKey, ata?: PublicKey): Promise<[PublicKey, TransactionInstruction]>; export declare function setupAta(provider: anchor.AnchorProvider, tokenMintAddress: PublicKey, user: Keypair): Promise<PublicKey>; export declare function mintTo(provider: anchor.AnchorProvider, mintPubkey: PublicKey, tokenAccount: PublicKey, amount: number): Promise<void>; //# sourceMappingURL=token.d.ts.map