Skip to content
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

Merged
merged 2 commits into from
Mar 30, 2024

Conversation

diegofigs
Copy link
Contributor

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 and soMint token account for issue).

Testing

This is being tested by yarn linking to the main app and evaluating preflights for respective UI.

@diegofigs diegofigs requested review from brittcyr and DonDuala March 22, 2024 18:20
const userSoAccount = getAssociatedTokenAddressSync(optionMint, recipient, true);
const transaction = new Transaction();

if (!(await this.connection.getAccountInfo(userSoAccount))) {
Copy link
Contributor

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?

https://github.com/Dual-Finance/dual-labs-dip/blob/2644636394b9324ae5b4d929be3acd194d3add44/app/src/utils/studio_contract.ts#L116

Copy link
Contributor Author

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 👍

Copy link
Contributor

@DonDuala DonDuala left a 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

@DonDuala DonDuala requested a review from brittcyr March 29, 2024 02:36
@diegofigs diegofigs merged commit 610e549 into main Mar 30, 2024
1 check passed
@diegofigs diegofigs deleted the feat-add-config-issue-tx-methods branch March 30, 2024 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants