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

[CHORE] Refactor standalone workflows #1211

Merged

Conversation

aristidesstaffieri
Copy link
Contributor

What
Adds getTokenDetails, and replaces all inline calls to get token details
Makes getAccountHistory, to abstract over standalone mode vs indexer history
Moves all data related uses of isCustomNetwork into the data layer
Moves uses of Soroban server/tx builder into standalone workflows
Removes SorobanContext, replaces uses with helpers in standalone workflows

Why
Cleans up logic after the move to client side standalone mode. Soroban server and tx builder is only needed in standalone mode now, but we still used old logic and constructs with the assumptions that they were needed in all cases.

@aristidesstaffieri aristidesstaffieri self-assigned this Mar 26, 2024
@@ -3,5 +3,5 @@
"compilerOptions": {
"baseUrl": "."
},
"include": ["."]
"include": [".", "../helpers/stellar.ts"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this was auto-added because I include this helper in the api layer usage now.

@@ -44,6 +44,8 @@ $loader-light-color: #444961;
}

&--error {
width: 32px;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated but I snuck these in here since these 10liners fix the loading state for assets on account details.

});
};

export const getIndexerTokenDetails = async ({
Copy link
Contributor

@piyalbasu piyalbasu Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be called getTokenDetails because it handles both the standalone/custom case and the indexer case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah for sure it should 😄 , done in 797a2c5

…te in review auth and tweaks height setter in SlideUpModal
@aristidesstaffieri aristidesstaffieri merged commit 3be7d3f into release/5.18.0 Mar 27, 2024
3 checks passed
@aristidesstaffieri aristidesstaffieri deleted the chore/refactor-standalone-workflows branch March 27, 2024 16:14
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.

2 participants