8000 [#233] clean up and make new release by pasqu4le · Pull Request #301 · tezos-commons/baseDAO · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[#233] clean up and make new release #301

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

Merged
merged 7 commits into from
Sep 10, 2021
Merged

Conversation

pasqu4le
Copy link
Contributor
@pasqu4le pasqu4le commented Sep 9, 2021

Description

Several small adjustments and version number bump.
This follows the addition of better tests and the now stable contract logic.

See relative commit messages for an explanation on the changes.

Related issue(s)

Resolves #233

✅ Checklist for your Pull Request

Related changes (conditional)

  • Tests
    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from
      silently reappearing again.
  • Documentation
    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

@pasqu4le pasqu4le requested a review from sras September 9, 2021 11:23
@pasqu4le pasqu4le self-assigned this Sep 9, 2021
@@ -40,8 +38,7 @@ let allowing_xtz (param, store, config : allow_xtz_params * storage * config) =
| Accept_ownership -> accept_ownership(store)

(*
* The actual DAO contract, which in this version is the same independently from
* the DAO logic.
* The actual DAO contract, which is the same independently from the DAO logic.
Copy link
Contributor

Choose a reason for hiding this comment

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

  • The actual DAO contract, which is the same independently from the DAO logic.

May be we can further rephrase it as "which is the same, despite the specific DAO logic included", or something simlar.

type treasury_dao_transfer_proposal =
{ agora_post_id : nat
; transfers : transfer_type list
}

// Treasury dao `proposal_metadata`, defining the type its proposals.
Copy link
Contributor

Choose a reason for hiding this comment

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

defining the type its proposals.

'of' is probably missing here after 'type'.

Copy link
Contributor
@sras sras left a comment

Choose a reason for hiding this comment

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

Reviewed and tested locally after updating ligo. Everything seems to work. So LGTM except for minor things.

Problem: the snapshot file for stack is used as a resolver in a
single stack.yaml, so it can be removed for simplification.
Additionally, the lorentz dependency is slightly old (by a minor
version).

Solution: remove the snapshot, update and clean up stack.yaml.
Problem: the last tested ligo version is outdated.

Solution: update the LIGO version to the latest available.
Problem: some license headers are outdated and reference 2020.

Solution: update licence headers to 2021.
Problem: there are some typos and inconsistencies in LIGO comments.

Solution: clean up the comments and re-order some code.
Problem: currently we do not state in the Haskell's build system that
there are `.tz` files we want to depend on, we only call
`qAddDependentFile` (or a function that uses it).
This way the file is indeed fetched, however once the project is built,
`cabal`/`stack` do not know that the module that fetches the contract
or the test storages has to be rebuild when `.tz` files changes.

Solution: add the .tz files to `extra-source-files` section of
`package.yaml` and move `README.md` to a separate `extra-doc-files`
section.
Additionally, remove env var and refactor some code as a consequence.
@pasqu4le pasqu4le force-pushed the pasqu4le/#233-cleanup-release branch from a448146 to d50ec2f Compare September 10, 2021 19:17
@pasqu4le pasqu4le enabled auto-merge September 10, 2021 19:17
@pasqu4le pasqu4le merged commit ce9333e into master Sep 10, 2021
@pasqu4le pasqu4le deleted the pasqu4le/#233-cleanup-release branch September 10, 2021 21: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.

Stabilize the contract and make a new release
2 participants
0