Skip to content

Commit

Permalink
feat: upgrade module to cosmos sdk v0.50
Browse files Browse the repository at this point in the history
  • Loading branch information
johnletey committed Sep 16, 2024
1 parent 6ab0587 commit 8da80c2
Show file tree
Hide file tree
Showing 33 changed files with 2,174 additions and 3,270 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.PHONY: proto-format proto-lint 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 All @@ -17,7 +17,7 @@ build:
gofumpt_cmd=mvdan.cc/gofumpt
golangci_lint_cmd=github.com/golangci/golangci-lint/cmd/golangci-lint

FILES := $(shell find $(shell go list -f '{{.Dir}}' ./...) -name "*.go" -a -not -name "*.pb.go" -a -not -name "*.pb.gw.go" | sed "s|$(shell pwd)/||g")
FILES := $(shell find $(shell go list -f '{{.Dir}}' ./...) -name "*.go" -a -not -name "*.pb.go" -a -not -name "*.pb.gw.go" -a -not -name "*.pulsar.go" | sed "s|$(shell pwd)/||g")
license:
@go-license --config .github/license.yml $(FILES)

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 8da80c2

Please sign in to comment.