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

Feature/balance #9

Merged
merged 22 commits into from
Jun 30, 2017
Merged

Feature/balance #9

merged 22 commits into from
Jun 30, 2017

Conversation

kewde
Copy link
Collaborator

@kewde kewde commented Jun 16, 2017

Testing coverage

unified service to store all balances
single number representing balance + some magic to split balances into two pieces

TODO:
Single service for all balance components
Test subscription (update after 5 seconds)
remove junk
@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 74.722% when pulling 5af75c9 on feature/balance into 0d23dc0 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.04%) to 70.0% when pulling 21ad574 on feature/balance into 0d23dc0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 74.114% when pulling 0f037e1 on feature/balance into 0d23dc0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 74.114% when pulling 0f037e1 on feature/balance into 0d23dc0 on master.

@rynomster
Copy link
Member

Please fix the linter issues, as this is not acceptable.

ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[52, 48]: comment must start with a space
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[127, 69]: comment must start with a space
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[2, 39]: This import is blacklisted, import a submodule instead
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[133, 3]: Declaration of instance field not allowed after declaration of instance method. Instead, this should come at the beginning of the class/interface.
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[61, 9]: Identifier 'b' is never reassigned; use 'const' instead of 'let'.
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[126, 9]: Identifier 'total_balance' is never reassigned; use 'const' instead of 'let'.
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[127, 9]: Identifier 'public_balance' is never reassigned; use 'const' instead of 'let'.
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[128, 9]: Identifier 'private_balance' is never reassigned; use 'const' instead of 'let'.
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[129, 9]: Identifier 'staked_balance' is never reassigned; use 'const' instead of 'let'.
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[126, 30]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[127, 31]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[127, 49]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[128, 32]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[129, 31]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[134, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[135, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[136, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[137, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[138, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[139, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[140, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[141, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[142, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[143, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[144, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[145, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[146, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[146, 25]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[147, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[150, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[151, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[152, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[153, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[154, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[155, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[156, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[157, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[158, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[159, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[160, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[161, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[162, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[162, 25]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.service.ts[163, 5]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.component.ts[44, 7]: comment must start with a space
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.component.ts[53, 47]: missing whitespace
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.component.ts[56, 26]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.component.ts[56, 32]: " should be '
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.component.ts[52, 24]: expected parameter: 'retzero' to have a typedef
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.component.ts[10, 49]: missing whitespace
ERROR: /home/travis/build/particl/partgui/src/app/wallet/balances/balance.component.ts[53, 7]: missing whitespace

}
}

constructor(total: number, pub: number, priv: number, stake: number) {
Copy link
Member

Choose a reason for hiding this comment

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

We are duplicating references here.. Lefts try and keep one of each variable..


typeOfBalance: string;
setTimeout(_ => this.rpc_loadBalance()); //load initial balances
Copy link
Member

Choose a reason for hiding this comment

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

bad comment, linter issue

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 74.468% when pulling 37e2836 on feature/balance into 0d23dc0 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-4.6%) to 69.415% when pulling 7760065 on feature/balance into 0d23dc0 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.7%) to 71.369% when pulling 0a075a5 on feature/balance into 0d23dc0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.8%) to 75.867% when pulling 508cdfa on feature/balance into 0d23dc0 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.03%) to 73.005% when pulling 8a88ce0 on feature/balance into 0d23dc0 on master.

It can connect to RPC. It lacks error handling and quite a few features, but its a start
@coveralls
Copy link

Coverage Status

Coverage decreased (-3.5%) to 70.874% when pulling 865a76e on feature/balance into 5c49b8a on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-3.5%) to 70.874% when pulling d207c9c on feature/balance into 5c49b8a on master.

@rynomster rynomster merged commit 547641f into master Jun 30, 2017
@rynomster rynomster deleted the feature/balance branch July 10, 2017 14:43
zaSmilingIdiot pushed a commit that referenced this pull request Feb 28, 2022
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.

None yet

4 participants