Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ICA liquid staking modules #2

Merged
merged 35 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
c4ffc5a
feat: add x/epochs
hallazzang May 9, 2024
982d716
feat: add utils package
hallazzang May 10, 2024
70a5503
feat: add x/interchainquery
hallazzang May 10, 2024
e6f69c7
feat: add x/icacallbacks
hallazzang May 10, 2024
a0c614e
feat: add x/stakeibc, x/records
hallazzang May 10, 2024
73cff84
feat: wire new modules into MilkApp
hallazzang May 10, 2024
b48e3d4
build(deps): improve go.mod structure
RiccardoM May 10, 2024
d65969b
chore: run make format
RiccardoM May 10, 2024
9bbb903
build: update go.sum
RiccardoM May 10, 2024
2fa6424
fix: change base denom to umilk
hallazzang May 15, 2024
eda56e6
fix: fix reflection in stakeibc GetParams
hallazzang May 15, 2024
5bcd13f
fix: change address prefix to init
hallazzang May 15, 2024
6300341
add timestamp default cp
beer-1 May 8, 2024
1f6610c
bump slinky to latest and use hash strategy
beer-1 May 10, 2024
2fee37a
fix to prevent ibc packet stuck
beer-1 May 13, 2024
776f270
fix: use legacy param subspace
hallazzang May 16, 2024
d9c8277
fix: ignore ratelimit proto annotation warning
hallazzang May 16, 2024
2560a36
fix: setup ibc stacks correctly
hallazzang May 16, 2024
c9083dd
fix: move keeper initializations above ibc stack setup
hallazzang May 16, 2024
978e09c
fix: adjust keeper initialization order
hallazzang May 16, 2024
d894ed7
fix: fix keeper initialization order again
hallazzang May 17, 2024
73b7f4e
fix: add signer annotations
hallazzang May 20, 2024
6f8d337
fix: set empty stakeibc hooks to prevent panic
hallazzang May 20, 2024
262c55c
chore: set STRIDE_EPOCH duration to 1 minute
hallazzang May 20, 2024
e16f3ba
fix: fix typo
hallazzang May 20, 2024
d5ae175
fix: set StrideEpochsPerDayEpoch correctly
hallazzang May 20, 2024
f22ebac
fix: use mstaking instead of Cosmos SDK staking
hallazzang May 23, 2024
bd05a8b
chore: set shorter epoch duration for testing
hallazzang May 23, 2024
febb234
chore: change admin addresses for testing
hallazzang May 23, 2024
b62261d
refactor: rename Milk to MilkyWay
hallazzang May 27, 2024
9ba3b26
fix: fix pulsar api generation
hallazzang May 27, 2024
cfe0b11
fix: fix bank balance query using move types
hallazzang May 28, 2024
02e3cf9
refactor: rename Milk to MilkyWay
hallazzang May 28, 2024
96c3350
fix: fix missing genesis implementations
hallazzang May 28, 2024
a80e7ab
ci: fix lint issues and ignore some lint rules
hallazzang May 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
issues:
exclude-rules:
- linters:
- staticcheck
text: "SA1019" # deprecated
exclude-dirs:
- x/tokenfactory
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LDFLAGS="-linkmode=external -extldflag

FROM alpine:3.18

RUN addgroup milk \
&& adduser -G milk -D -h /milk milk
RUN addgroup milkyway \
&& adduser -G milkyway -D -h /milkyway milkyway

WORKDIR /milk
WORKDIR /milkyway

COPY --from=go-builder /code/build/milkd /usr/local/bin/milkd
COPY --from=go-builder /code/build/milkywayd /usr/local/bin/milkywayd

# for new-metric setup
COPY --from=go-builder /code/contrib /milk/contrib
COPY --from=go-builder /code/contrib /milkyway/contrib

USER milk
USER milkyway

# rest server
EXPOSE 1317
Expand All @@ -57,4 +57,4 @@ EXPOSE 26656
# tendermint rpc
EXPOSE 26657

CMD ["/usr/local/bin/milkd", "version"]
CMD ["/usr/local/bin/milkywayd", "version"]
26 changes: 13 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))
### Linker flags ###
###############################################################################

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=milk \
-X github.com/cosmos/cosmos-sdk/version.AppName=milkd \
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=milkyway \
-X github.com/cosmos/cosmos-sdk/version.AppName=milkywayd \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
-X github.com/cometbft/cometbft/version.TMCoreSemVer=$(TM_VERSION)
-X github.com/cometbft/cometbft/version.TMCoreSemVer=$(TM_VERSION)

# DB backend selection
ifeq (cleveldb,$(findstring cleveldb,$(COSMOS_BUILD_OPTIONS)))
Expand Down Expand Up @@ -130,26 +130,26 @@ build: go.sum
ifeq ($(OS),Windows_NT)
exit 1
else
go build -mod=readonly $(BUILD_FLAGS) -o build/milkd ./cmd/milkd
go build -mod=readonly $(BUILD_FLAGS) -o build/milkywayd ./cmd/milkywayd
endif

build-linux:
mkdir -p $(BUILDDIR)
docker build --no-cache --tag milkyway/milk ./
docker create --name temp milkyway/milk:latest
docker cp temp:/usr/local/bin/milkd $(BUILDDIR)/
docker build --no-cache --tag milkyway/milkyway ./
docker create --name temp milkyway/milkyway:latest
docker cp temp:/usr/local/bin/milkywayd $(BUILDDIR)/
docker rm temp

build-linux-with-shared-library:
mkdir -p $(BUILDDIR)
docker build --tag milkyway/milk-shared ./ -f ./shared.Dockerfile
docker create --name temp milkyway/milk-shared:latest
docker cp temp:/usr/local/bin/milkd $(BUILDDIR)/
docker build --tag milkyway/milkyway-shared ./ -f ./shared.Dockerfile
docker create --name temp milkyway/milkyway-shared:latest
docker cp temp:/usr/local/bin/milkywayd $(BUILDDIR)/
docker cp temp:/lib/libwasmvm.so $(BUILDDIR)/
docker rm temp

install: go.sum
go install -mod=readonly $(BUILD_FLAGS) ./cmd/milkd
go install -mod=readonly $(BUILD_FLAGS) ./cmd/milkywayd

update-swagger-docs: statik
$(BINDIR)/statik -src=client/docs/swagger-ui -dest=client/docs -f -m
Expand Down Expand Up @@ -211,7 +211,7 @@ go.sum: go.mod
draw-deps:
@# requires brew install graphviz or apt-get install graphviz
@go install github.com/RobotsAndPencils/goviz
@goviz -i ./cmd/milkd -d 2 | dot -Tpng -o dependency-graph.png
@goviz -i ./cmd/milkywayd -d 2 | dot -Tpng -o dependency-graph.png

clean:
rm -rf \
Expand Down Expand Up @@ -286,5 +286,5 @@ lint-fix:
format:
find . -name '*.go' -type f -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs misspell -w
find . -name '*.go' -type f -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs goimports -w -local github.com/milkyway-labs/milk
find . -name '*.go' -type f -not -path "*.git*" -not -path "./client/docs/statik/statik.go" -not -path "./tests/mocks/*" -not -name '*.pb.go' | xargs goimports -w -local github.com/milkyway-labs/milkyway
.PHONY: format

Large diffs are not rendered by default.

Loading
Loading