Skip to content

Useful Commands

ben edited this page Jun 17, 2024 · 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:

for sdk 47:

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

for sdk 50:

$APPD query auth accounts --output json | jq '.accounts[] | select(.type == "cosmos-sdk/ModuleAccount") | select(.value.name == "gov") | .value.address'

or, if the chain supports it, the cosmos/upgrade/v1beta1/authority endpoint will return the same value.

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