Skip to content

feat: skip cells which has data or type when calculate balance - #903

Merged
classicalliu merged 19 commits into
developfrom
skip-data-and-type
Sep 4, 2019
Merged

feat: skip cells which has data or type when calculate balance#903
classicalliu merged 19 commits into
developfrom
skip-data-and-type

Conversation

@classicalliu

@classicalliu classicalliu commented Aug 30, 2019

Copy link
Copy Markdown
Contributor

Now the balance not include cells which has data or type, and totalBalance includes.
Has a setting to set can use cells with data/type or not.

@classicalliu classicalliu changed the title feat: skip cells which has data or type when calculate balance ✋feat: skip cells which has data or type when calculate balance Aug 30, 2019
nervos-bot[bot]
nervos-bot Bot previously requested changes Aug 30, 2019

@nervos-bot nervos-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hold as requested by @classicalliu.

@classicalliu classicalliu changed the title ✋feat: skip cells which has data or type when calculate balance feat: skip cells which has data or type when calculate balance Aug 30, 2019
@nervos-bot
nervos-bot Bot dismissed their stale review August 30, 2019 07:43

Unhold as requested by @classicalliu.

@classicalliu classicalliu changed the title feat: skip cells which has data or type when calculate balance ✋feat: skip cells which has data or type when calculate balance Aug 30, 2019
nervos-bot[bot]
nervos-bot Bot previously requested changes Aug 30, 2019

@nervos-bot nervos-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hold as requested by @classicalliu.

@classicalliu classicalliu changed the title ✋feat: skip cells which has data or type when calculate balance feat: skip cells which has data or type when calculate balance Sep 3, 2019
@nervos-bot
nervos-bot Bot dismissed their stale review September 3, 2019 07:53

Unhold as requested by @classicalliu.

Comment thread packages/neuron-wallet/src/database/address/dao.ts Outdated
Comment thread packages/neuron-wallet/src/database/address/dao.ts Outdated
Comment thread packages/neuron-wallet/src/database/address/dao.ts
Comment thread packages/neuron-wallet/src/services/skip-data-and-type.ts Outdated
Comment thread packages/neuron-wallet/src/services/skip-data-and-type.ts Outdated
@ashchan
ashchan requested a review from Keith-CY September 3, 2019 12:12

export default class SkipDataAndType {
private static moduleName = ''
private static fileName = 'skip-data-and-type.json'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How about a global settings.json for all related persisted app configuration? I don't see any benefit maintaining a single file for each feature.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Add a BaseSettings to read/update settings and read/update SkipDataAndType via this.

@classicalliu
classicalliu merged commit eea006f into develop Sep 4, 2019
@classicalliu
classicalliu deleted the skip-data-and-type branch September 4, 2019 08:18
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.

3 participants