-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core & Hooks SDK #224
Core & Hooks SDK #224
Conversation
@ugur-eren is attempting to deploy a commit to the StarknetID Team on Vercel. A member of the Team first needs to authorize it. |
Why getting the calldata and not directly executing the call? If it's to compute the memecoin address for the deployment, we can execute the tx and return de computed address. |
Hi! Since the SDK only needs a RPC Provider, it can be used without wallet adapters. Developers can choose how they want to sign and execute transactions. However I can create hooks to sign and send transactions using the Starknet React package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your amazing work ! Please review the comments when you can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm ! We might still have some fixes or modifications to address while starting to integrate it into the frontend, but let's more forward with this PR and merge it as a first version of the SDK 🔥
For core pacakge, these methods added to the Factory:
getBaseMemecoin
returns the base details of the memecoin. Name, symbol, total supply, owner etc.getMemecoinLaunchData
returns the liquidity, team allocation and quote token of the memecoingetMemecoin
returns the results of both base memecoin and memecoin launch data methodsgetStartingMarketCap
returns the starting market cap by the given quote token pricegetDeployCalldata
returns the transaction calldata for deploymentgetEkuboLaunchCalldata
returns the calldata for launch on ekubogetStandardAMMLaunchCalldata
returns the calldata for launch on jediswap and starkdefiFor hooks package, these hooks added:
useBaseMemecoin
returns the result ofFactory.getBaseMemecoin
useMemecoinLaunchData
returns the result ofFactory.getMemecoinLaunchData
useMemecoin
returns the result ofFactory.getMemecoin
useQuoteToken
returns the quote token information by the given addressuseQuoteTokenPrice
returns the quote token price by the given addressThis PR also adds a new entrypoints constants to the core package.