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

docs: Liquidity godoc QA #217

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
Open

docs: Liquidity godoc QA #217

wants to merge 14 commits into from

Conversation

dongsam
Copy link
Contributor

@dongsam dongsam commented Apr 7, 2021

Description

#176
It is PR to get the liquidityd godoc QA suggestions based on the sources

Found 3 files that looked like they might need edits, see those changes staged in this PR.
@dongsam can you provide the file links for each file, from the correct repo, so I can address those edits here?
all help appreciated.

For this request:
https://pkg.go.dev/github.com/tendermint/[email protected]/x/liquidity/keeper#pkg-functions
https://pkg.go.dev/github.com/tendermint/[email protected]/x/liquidity/keeper#pkg-types
https://pkg.go.dev/github.com/tendermint/[email protected]/x/liquidity/types#pkg-functions
https://pkg.go.dev/github.com/tendermint/[email protected]/x/liquidity/types#pkg-types
https://pkg.go.dev/github.com/tendermint/[email protected]/x/liquidity/simulation#pkg-functions

what are the specific files that I can open and edit? please and thank you, maybe @kogisin knows?

---historical

temporarily remove and revert to create diff for review

ref

@dongsam dongsam added the documentation Improvements or additions to documentation label Apr 7, 2021
@dongsam dongsam requested a review from barriebyron April 7, 2021 07:59
@codecov
Copy link

codecov bot commented Apr 7, 2021

Codecov Report

Merging #217 (df93550) into develop (ee1aa8b) will increase coverage by 0.33%.
The diff coverage is 91.37%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #217      +/-   ##
===========================================
+ Coverage    82.93%   83.26%   +0.33%     
===========================================
  Files           20       20              
  Lines         2215     2247      +32     
===========================================
+ Hits          1837     1871      +34     
+ Misses         208      207       -1     
+ Partials       170      169       -1     
Impacted Files Coverage Δ
x/liquidity/keeper/invariants.go 61.63% <76.47%> (+2.85%) ⬆️
x/liquidity/keeper/liquidity_pool.go 79.60% <96.00%> (+0.93%) ⬆️
x/liquidity/keeper/batch.go 86.36% <100.00%> (ø)
x/liquidity/keeper/swap.go 87.09% <100.00%> (+1.38%) ⬆️
x/liquidity/types/msgs.go 100.00% <100.00%> (ø)

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 ee1aa8b...df93550. Read the comment docs.

@barriebyron
Copy link
Contributor

@dongsam these go docs are autogenerated, right? let's focus on the CLI, swagger, and markdown docs and when that content is updated then this autogenerated go doc content will also be updated, right? You can move in the suggested changes from the CLI, swagger, and so on here. Let me know if you have questions. I'm here to help!

@dongsam
Copy link
Contributor Author

dongsam commented Apr 27, 2021

@dongsam these go docs are autogenerated, right? let's focus on the CLI, swagger, and markdown docs and when that content is updated then this autogenerated go doc content will also be updated, right? You can move in the suggested changes from the CLI, swagger, and so on here. Let me know if you have questions. I'm here to help!

@barriebyron You're right, go docs are autogenerated, markdown docs and *.pb.go, *pb.gw.go files autogenerated by *.proto will also be updated
So I think it would be good to see the parts except for swagger, markdown, cli, and tx in the PR.

for example, https://pkg.go.dev/github.com/tendermint/[email protected]/x/liquidity/keeper#Keeper.ExecutePoolBatch is autogenerated from

// In case of deposit, withdraw, and swap msgs, unlike other normal tx msgs,
// collect them in the liquidity pool batch and perform an execution once at the endblock to calculate and use the universal price.
func (k Keeper) ExecutePoolBatch(ctx sdk.Context) {

As above, it would be good to look at the parts where each func, type structure has a comment.
It mainly exists below

@barriebyron barriebyron marked this pull request as ready for review May 20, 2021 19:16
Copy link
Contributor

@barriebyron barriebyron left a comment

Choose a reason for hiding this comment

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

I made editorial changes on 3 files, but I'm sure we have more. Approved this round, let me know what else needs my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants