Skip to content

Useful Commands

PoisonPhang edited this page Sep 12, 2023 · 7 revisions

Useful Commands

A collection of useful commands while developing or working with the Union network.

Feel free to update this document if you think it's missing content :)

Find The x/gov module account

Sometimes, it's necessary to know the x/gov module account (or the accounts of other modules). To reveal the x/gov module account, run the following:

uniond query auth accounts --output json | jq '.accounts[] | select(.name == "gov")'

Running a uniond command with docker

Just alias this, for your own sake.

alias uniond='docker run --mount type=bind,source="$HOME/uniond-config/",target=/app -it ghcr.io/unionlabs/uniond:$UNIOND_VERSION --home /app/.union'

Updating Vendored go dependencies

Have you added a go dependency to uniond or galoisd and are wondering why the gods have forsaken you?

Try updating the vendored directories of all of our go projects in unionlabs/union repository with our nifty nix command:

nix run .\#go-vendor