UNPKG

hadeswap-sdk-public

Version:

HadeSwap SDK for interacting with protocol

26 lines (25 loc) 767 B
import { web3 } from '@project-serum/anchor'; import { BondingCurveType, PairType } from '../../types'; interface InitializePairArgs { delta: number; spotPrice: number; fee: number; bondingCurveType: BondingCurveType; pairType: PairType; } declare type InitializePair = (params: { programId: web3.PublicKey; connection: web3.Connection; args: InitializePairArgs; accounts: { hadoMarket: web3.PublicKey; userPubkey: web3.PublicKey; }; sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>; }) => Promise<{ account: web3.PublicKey; instructions: web3.TransactionInstruction[]; signers: web3.Signer[]; }>; export declare const initializePair: InitializePair; export {};