Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Vizualni committed Jun 21, 2022
1 parent cc5a837 commit b692afe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ archives:
- LICENSE
- README.md

release:
name_template: "paloma-{{.Os}-{{.Arch}}}-v{{.Version}}"

checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
2 changes: 2 additions & 0 deletions app/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ const (
// BondDenom defines the native staking token denomination.
BondDenom = "ugrain"

MilliDenom = "mgrain"

// DisplayDenom defines the name, symbol, and display value of the paloma token.
DisplayDenom = "grain"
)
7 changes: 7 additions & 0 deletions app/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ func (BankModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage {
"micrograin",
},
},
{
Denom: MilliDenom,
Exponent: 3,
Aliases: []string{
"milligrain",
},
},
{
Denom: DisplayDenom,
Exponent: 6,
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-chain-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $PALOMA init my_validator --chain-id "$CHAIN_ID"

pushd ~/.paloma/config/
$SED -i 's/keyring-backend = ".*"/keyring-backend = "test"/' client.toml
$SED -i 's/minimum-gas-prices = ".*"/minimum-gas-prices = "50000ugrain"/' app.toml
$SED -i 's/minimum-gas-prices = ".*"/minimum-gas-prices = "0.001ugrain"/' app.toml
$SED -i 's/laddr = ".*:26657"/laddr = "tcp:\/\/0.0.0.0:26657"/' config.toml
jq ".chain_id = \"${CHAIN_ID}\"" genesis.json > temp.json && mv temp.json genesis.json
jq 'walk(if type == "string" and .. == "stake" then "grain" else . end)' genesis.json > temp.json && mv temp.json genesis.json
Expand Down

0 comments on commit b692afe

Please sign in to comment.