chore: remove duplicated code between union and cosmos (#1587)
- there was a lot of copy-pasted code between union and cosmos in
voyager, this has been deduplicated now
- added helpers a la `Fetch::specific` to more tersely construct
`{LightClient,Chain}Specific{Data,Fetch,Aggregate}`, removing lots of
nested expressions and `.into()` calls
- union now uses `TrustedValidators` and `UntrustedValidators` instead
of just `Validators`, mirroring cosmos, so that the aggregation is not
dependant on the order of the data in the aggregation queue
- use `#[apply(msg_struct)]` in a few more places
- use more fully qualified paths in macros to reduce imports in files
they're called in
- use `id()` instead of `Identified::new()`
- should probably remove the `Identified::new` constructor at this
point, will do in a future PR
i meant to break this up into two commits, but i accidentally amended
instead of committed. oops H
hussein-aitlahcen committed
d8ce36714942ee90e77ac7749ba4ea2675c90ade
Committed by GitHub <noreply@github.com>
on 3/20/2024, 1:16:35 PM