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

Expose earnings balance to Tequilapi #1913

Merged
merged 4 commits into from
Mar 25, 2020
Merged

Conversation

Waldz
Copy link
Member

@Waldz Waldz commented Mar 25, 2020

Updates: #1731

Tequilapi now haves lifetime earnings and unsettled earnings fields next to identity.
Also E2E to test for simple value transfer from consumer balance to provider earnings.

@Waldz Waldz force-pushed the feature/expose-provider-earnings branch 2 times, most recently from 13f5607 to 206f474 Compare March 25, 2020 02:18
@codecov-io
Copy link

Codecov Report

Merging #1913 into master will decrease coverage by 0.09%.
The diff coverage is 38.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1913      +/-   ##
==========================================
- Coverage   47.51%   47.41%   -0.10%     
==========================================
  Files         287      286       -1     
  Lines       11972    11974       +2     
==========================================
- Hits         5689     5678      -11     
- Misses       5818     5830      +12     
- Partials      465      466       +1     
Impacted Files Coverage Δ
tequilapi/client/client.go 7.35% <0.00%> (ø)
tequilapi/endpoints/identities.go 36.28% <0.00%> (ø)
session/pingpong/accountant_promise_settler.go 45.02% <60.00%> (-5.23%) ⬇️
tequilapi/endpoints/sse_handler.go 69.09% <0.00%> (-2.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2a5a41...206f474. Read the comment docs.

@@ -107,6 +107,8 @@ func (c *cliApp) getIdentity(actionArgs []string) {
info("Channel address:", identityStatus.ChannelAddress)
info("Balance:", identityStatus.Balance)
info("Balance estimate:", identityStatus.BalanceEstimate)
info("Earnings:", identityStatus.Earnings)
Copy link
Contributor

Choose a reason for hiding this comment

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

end users will be confused by the earnings and earnings total.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest a better name but can't think of any.

Copy link
Member Author

Choose a reason for hiding this comment

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

Source #1731.
ATM can't think off anything better :/

tequilapi/endpoints/identities.go Outdated Show resolved Hide resolved
e2e/connection_test.go Outdated Show resolved Hide resolved
e2e/connection_test.go Outdated Show resolved Hide resolved
@Waldz Waldz force-pushed the feature/expose-provider-earnings branch 2 times, most recently from 69e2642 to 3701a7d Compare March 25, 2020 10:41
@Waldz Waldz force-pushed the feature/expose-provider-earnings branch from 3701a7d to 622c2c8 Compare March 25, 2020 11:08
@Waldz Waldz merged commit 3908c2b into master Mar 25, 2020
@Waldz Waldz deleted the feature/expose-provider-earnings branch March 25, 2020 11:34
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

5 participants