@dao-dao/types
A collection of types used across packages.
Layout
Protobufs
This package contains Cosmos SDK protobuf definitions generated by Cosmology's
Telescope.
To generate protobufs:
yarn protobuf
Sometimes definitions need to be manually fixed due to bugs and other
discrepancies. There is a patch file that records these modifications in
protobuf/patches.diff
.
To update the patch file when new changes are made:
-
Commit the changes so that the current branch is up-to-date with the desired
changes.
-
Run:
yarn protobuf:patch:update
This will regenerate the protobufs, undoing all patches. Then, it records
the reverse diff between the committed changes and the regenerated protobufs
(since we want to undo the current changes). Lastly, it reapplies the latest
patches, and all changes should be made. If this works, only the
patches.diff
file should have changes.
-
Update the previous commit with the new patches.
git add protobuf/patches.diff
git commit --amend