UNPKG

hadeswap-sdk

Version:

HadeSwap SDK for interacting with protocol

7 lines (6 loc) 637 B
import { web3 } from '@project-serum/anchor'; import { NodeWallet } from './classes/nodewallet'; export declare const createFakeWallet: () => NodeWallet; export declare const findAssociatedTokenAddress: (walletAddress: web3.PublicKey, tokenMintAddress: web3.PublicKey) => Promise<web3.PublicKey>; export declare const getTokenBalance: (pubkey: web3.PublicKey, connection: web3.Connection) => Promise<number>; export declare const createAssociatedTokenAccountInstruction: (associatedTokenAddress: web3.PublicKey, payer: web3.PublicKey, walletAddress: web3.PublicKey, splTokenMintAddress: web3.PublicKey) => web3.TransactionInstruction[];