Skip to content

Commit

Permalink
feat: upgrade module to cosmos sdk v0.50 (#5)
Browse files Browse the repository at this point in the history
* chore: update module path to v2

* feat: upgrade protobuf to cosmos sdk v0.50

* feat: upgrade module to cosmos sdk v0.50

* chore: small nits
  • Loading branch information
johnletey authored Sep 19, 2024
1 parent d184ac4 commit 91984dd
Show file tree
Hide file tree
Showing 34 changed files with 2,173 additions and 3,269 deletions.
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: proto-format proto-lint proto-breaking proto-gen license format lint test-unit build
all: proto-all format lint test-unit build
all: proto-all format test-unit build

###############################################################################
### Build ###
Expand Down
208 changes: 109 additions & 99 deletions go.mod

Large diffs are not rendered by default.

907 changes: 544 additions & 363 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
go 1.21
go 1.22

use (
.
Expand Down
1,078 changes: 539 additions & 539 deletions go.work.sum

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ if ! [ -f .florin/data/priv_validator_state.json ]; then
florind init validator --chain-id "florin-1" --home .florin &> /dev/null

florind keys add validator --home .florin --keyring-backend test &> /dev/null
florind add-genesis-account validator 1000000ustake --home .florin --keyring-backend test
florind genesis add-genesis-account validator 1000000ustake --home .florin --keyring-backend test
BLACKLIST_OWNER=$(florind keys add blacklist-owner --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account blacklist-owner 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account blacklist-owner 10000000uusdc --home .florin --keyring-backend test
BLACKLIST_PENDING_OWNER=$(florind keys add blacklist-pending-owner --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account blacklist-pending-owner 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account blacklist-pending-owner 10000000uusdc --home .florin --keyring-backend test
BLACKLIST_ADMIN=$(florind keys add blacklist-admin --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account blacklist-admin 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account blacklist-admin 10000000uusdc --home .florin --keyring-backend test
AUTHORITY=$(florind keys add authority --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account authority 1000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account authority 1000000uusdc --home .florin --keyring-backend test
OWNER=$(florind keys add owner --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account owner 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account owner 10000000uusdc --home .florin --keyring-backend test
PENDING_OWNER=$(florind keys add pending-owner --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account pending-owner 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account pending-owner 10000000uusdc --home .florin --keyring-backend test
SYSTEM=$(florind keys add system --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account system 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account system 10000000uusdc --home .florin --keyring-backend test
ADMIN=$(florind keys add admin --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account admin 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account admin 10000000uusdc --home .florin --keyring-backend test
florind keys add alice --home .florin --keyring-backend test --output json &> /dev/null
florind add-genesis-account alice 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account alice 10000000uusdc --home .florin --keyring-backend test
BOB=$(florind keys add bob --home .florin --keyring-backend test --output json | jq .address)
florind add-genesis-account bob 10000000uusdc --home .florin --keyring-backend test
florind genesis add-genesis-account bob 10000000uusdc --home .florin --keyring-backend test

TEMP=.florin/genesis.json
touch $TEMP && jq '.app_state.staking.params.bond_denom = "ustake"' .florin/config/genesis.json > $TEMP && mv $TEMP .florin/config/genesis.json
Expand All @@ -47,8 +47,8 @@ if ! [ -f .florin/data/priv_validator_state.json ]; then
touch $TEMP && jq '.app_state.florin.admins = [{ "denom": "ueure", "address": '$ADMIN'}]' .florin/config/genesis.json > $TEMP && mv $TEMP .florin/config/genesis.json
touch $TEMP && jq '.app_state.florin.mint_allowances = [{ "denom": "ueure", "address": '$SYSTEM', "allowance": "1000000000000"}]' .florin/config/genesis.json > $TEMP && mv $TEMP .florin/config/genesis.json

florind gentx validator 1000000ustake --chain-id "florin-1" --home .florin --keyring-backend test &> /dev/null
florind collect-gentxs --home .florin &> /dev/null
florind genesis gentx validator 1000000ustake --chain-id "florin-1" --home .florin --keyring-backend test &> /dev/null
florind genesis collect-gentxs --home .florin &> /dev/null

sed -i '' 's/timeout_commit = "5s"/timeout_commit = "1s"/g' .florin/config/config.toml
fi
Expand Down
Loading

0 comments on commit 91984dd

Please sign in to comment.