wen-moon-ser / moonshot-sdk

Package for creating buy/sell transactions, and calculating the price of any moonshot token on Solana.
https://moonshot.cc
37 stars 9 forks source link

Not working the sdk in typescript #16

Closed winer328 closed 1 month ago

winer328 commented 1 month ago

I used example code to buy/sell tokens in moonshot. But not working.

Module '"@wen-moon-ser/moonshot-sdk"' has no exported member 'FixedSide'.ts(2305)
import FixedSide
Module '"@wen-moon-ser/moonshot-sdk"' has no exported member 'Moonshot'.ts(2305)
import Moonshot

Why I get this error? Thanks.

mavagio commented 1 month ago

hey @winer328 can you please post a complete code snippet and make sure you install all dependencies similar to example project: https://github.com/wen-moon-ser/moonshot-bot-examples

winer328 commented 1 month ago

I used example code in the readme.

winer328 commented 1 month ago

Thanks for your reply. When I use previous version, it works well. But when I use latest version, it doesn't work.

mavagio commented 1 month ago

can you please post the version you are using that doesn't work ?

winer328 commented 1 month ago

3.0.1-alpha-0.0.2

mavagio commented 1 month ago

please don't use alpha release, use only stable releases, regardless I have tried the 3.0.1-alpha-0.0.2 as well and it works, as a starting point you can always use this project https://github.com/wen-moon-ser/moonshot-bot-examples