-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add config and issue tx methods #25
Conversation
src/stakingOptions.ts
Outdated
const userSoAccount = getAssociatedTokenAddressSync(optionMint, recipient, true); | ||
const transaction = new Transaction(); | ||
|
||
if (!(await this.connection.getAccountInfo(userSoAccount))) { |
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.
Similar question as above, since we handle this on the UI side currently, do we want to move that here? I would expect to also see mention of a PR with the app changes?
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.
Had held back on that PR since it wouldn't pass CI as-is but can open it 👍
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.
@brittcyr these questions might be more for you
Description
PR adds configs and issue transaction methods that include setup instructions, this is meant to abstract burden on consumers to know which accounts need to be created for account validation in instructions (
quoteMint
token account for config andsoMint
token account for issue).Testing
This is being tested by
yarn link
ing to the main app and evaluating preflights for respective UI.