-
Notifications
You must be signed in to change notification settings - Fork 29
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
[CHORE] Refactor standalone workflows #1211
Conversation
…rs to shared namespace
@@ -3,5 +3,5 @@ | |||
"compilerOptions": { | |||
"baseUrl": "." | |||
}, | |||
"include": ["."] | |||
"include": [".", "../helpers/stellar.ts"] |
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.
Looks like this was auto-added because I include this helper in the api layer usage now.
…lign these states
@@ -44,6 +44,8 @@ $loader-light-color: #444961; | |||
} | |||
|
|||
&--error { | |||
width: 32px; |
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.
Unrelated but I snuck these in here since these 10liners fix the loading state for assets on account details.
@shared/api/internal.ts
Outdated
}); | ||
}; | ||
|
||
export const getIndexerTokenDetails = async ({ |
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.
should this be called getTokenDetails
because it handles both the standalone/custom case and the indexer case?
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.
yeah for sure it should 😄 , done in 797a2c5
…te in review auth and tweaks height setter in SlideUpModal
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 layerMoves 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.