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

Currency info cleanup #397

Merged
merged 3 commits into from
Apr 24, 2024
Merged

Currency info cleanup #397

merged 3 commits into from
Apr 24, 2024

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Apr 18, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

It turns out we already had fee templates in here, so I just reorganized things to match edge-currency-accountbased a bit more.


@@ -6,10 +6,12 @@ import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalcul
import { memoInfo } from './commonInfo'

export const currencyInfo: EdgeCurrencyInfo = {
pluginId: 'litecoin',
walletType: 'wallet:litecoin',
canReplaceByFee: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like canReplaceByFee field is in a different "group" or category of fields for the EdgeCurrencyInfo. Perhaps it would make sense to put a comment above canReplaceByFee and potentially other fields like it and separate it from the required fields like pluginId and currencyCode.

Copy link
Contributor

Choose a reason for hiding this comment

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

Seeing the following commits after this comment made me realize the change request is too much rebasing effort to be worth it. I'll leave the idea here as optional though.

This matches how edge-currency-accountbased does it, and clears the way for deprecating `defaultSettings`
Also move more things to the deprecated section, including legacy memo fields.
@swansontec swansontec force-pushed the william/currency-info-cleanup branch from eaf69cc to 0420d18 Compare April 23, 2024 00:26
@swansontec swansontec merged commit 205bc3e into master Apr 24, 2024
2 checks passed
@swansontec swansontec deleted the william/currency-info-cleanup branch April 24, 2024 17:54
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