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

dcrdata v6 module reorganization treasury TODOs #1796

Merged
merged 3 commits into from
Jan 26, 2021
Merged

Conversation

chappjc
Copy link
Member

@chappjc chappjc commented Nov 23, 2020

This supersedes #1795.

This nukes most of the old dcrdata modules and reorganizes large portions of the source. There are now 4 modules that are imported by another cmd/dcrdata module:

  1. root module
  2. db/dcrpg module
  3. gov module
  4. exchanges module

The dcrdata main package is moved into cmd/dcrdata, and several packages only usable by the app (middleware, explorer, api (but not api/types), etc.) are put under that module as well.

This also has some basic but incomplete handing for the three new treasury types, and lots of TODOs. The inputs and outputs of the Treasurybase, Treasury Spend, and Treasury Add txn types are not handled properly yet. The /block page also needs 3 new txn categories. The new vote version with a final nulldata output (e.g. https://testnet.dcrdata.org/tx/abde4c69df11cd0bce45a1ad729801afd75b270a05f55ae68defc3f910ab8c02) should also have special handling, such as deciding the treasury vote's position on a particular tspend.

txhelpers/txhelpers.go Outdated Show resolved Hide resolved
lots of treasury TODOs

update all modules
@chappjc chappjc merged commit e2619e4 into decred:master Jan 26, 2021
@chappjc chappjc deleted the nomod branch January 26, 2021 16:59
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.

1 participant