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

Stellar types #603

Merged
merged 2 commits into from
Aug 28, 2023
Merged

Stellar types #603

merged 2 commits into from
Aug 28, 2023

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Aug 22, 2023

CHANGELOG

none

Dependencies

none

Description

The code has been untyped for a while, which makes it hard to maintain and work with.


@swansontec swansontec mentioned this pull request Aug 24, 2023
@swansontec swansontec force-pushed the william/stellar-types branch from 33d7b3d to 95ccc4d Compare August 24, 2023 20:06
@@ -687,8 +672,6 @@ export async function makeCurrencyEngine(
const safeWalletInfo = asSafeStellarWalletInfo(walletInfo)
const engine = new StellarEngine(env, tools, safeWalletInfo, opts)

engine.stellarApi = stellarApi
Copy link
Collaborator

Choose a reason for hiding this comment

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

That was smelly. Good cleanup. 👍

@@ -30,6 +30,7 @@ import {
import {
getBalanceChanges,
OfferCreate,
Payment as PaymentJson,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll trust you that upstream Payment is a subtype of the removed PaymentJson

These are based on the code examples and on our own usage.
@swansontec swansontec force-pushed the william/stellar-types branch from 95ccc4d to 69d0f0a Compare August 28, 2023 21:13
@swansontec swansontec merged commit a6825c2 into master Aug 28, 2023
@swansontec swansontec deleted the william/stellar-types branch August 28, 2023 21:30
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