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

Add makeMemoryWallet method #599

Merged
merged 3 commits into from
Jul 22, 2024
Merged

Add makeMemoryWallet method #599

merged 3 commits into from
Jul 22, 2024

Conversation

peachbits
Copy link
Contributor

@peachbits peachbits commented Jun 19, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

This looks pretty good, but just a few small cleanups would make it better.

src/core/currency/wallet/currency-wallet-api.ts Outdated Show resolved Hide resolved
src/core/account/account-api.ts Show resolved Hide resolved
src/core/account/account-api.ts Outdated Show resolved Hide resolved
src/core/account/account-api.ts Outdated Show resolved Hide resolved
src/core/account/account-api.ts Outdated Show resolved Hide resolved
src/types/types.ts Outdated Show resolved Hide resolved
@peachbits peachbits force-pushed the matthew/makeRamWallet branch from 12c5805 to 8ccc772 Compare June 25, 2024 07:06
Copy link
Contributor

@swansontec swansontec left a comment

Choose a reason for hiding this comment

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

One small comment change left to do.

@@ -893,6 +893,7 @@ export interface EdgeCurrencyEngineCallbacks {

export interface EdgeCurrencyEngineOptions {
callbacks: EdgeCurrencyEngineCallbacks
lightMode?: boolean // Flag indicating that the engine only needs to sync the balance and be able to spend
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we do it JavaDoc style:

/** True if we only need a balance and the ability to spend it. */
lightMode?: boolean

@peachbits peachbits force-pushed the matthew/makeRamWallet branch 2 times, most recently from 415ac8b to f612433 Compare July 22, 2024 19:03
@peachbits peachbits enabled auto-merge July 22, 2024 19:03
Intended to be used briefly and without any local state saved. It returns once the underlying engine is fully synced.
The memory wallet is temporary that just needs to get balances and spend. An engine recognizing lightMode can reduce unnecessary operations like transaction history
@peachbits peachbits force-pushed the matthew/makeRamWallet branch from f612433 to 2768186 Compare July 22, 2024 19:51
@peachbits peachbits merged commit 4713691 into master Jul 22, 2024
2 checks passed
@peachbits peachbits deleted the matthew/makeRamWallet branch July 22, 2024 20:02
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