What is Nostr?
prs / Damus PRs
npub1ahc…7v97
2023-08-21 21:28:14

prs on Nostr: Move the Block helper type to its own file (#1496) Move the Block helper type to its ...

Move the Block helper type to its own file (#1496)

Move the Block helper type to its own file, collapse the various standalone functions for parsing block data, and refactor consumers to initialize a Block with given data and access its members as needed. This is a more "idiomatic" approach to these C-backed data structures, and moves a number of these functions, extensions, and types into `fileprivate` scope, removing them from the global symbols and generally cleaning up their interface and usage. I plan to continue these "cleanup and refactor" changes as I learn more about the repository.

refactor/block-initializer, 1 commits

https://github.com/damus-io/damus/pull/1496
Author Public Key
npub1ahckk8wkr64n2w5r4arsesf42upfhlmgy76vhxmlex7mvv4zhrnqry7v97