-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add gravity support for multi chain targets (#1174)
# Related Github tickets - VolumeFi#1636 # Background This change adds Gravity support for more than one remote chain by contextualising stored data on Paloma with a chain reference ID. It also adds the needed changes to the genesis as well as CLI commands. # Testing completed - [x] test coverage exists or has been added/updated - [x] tested in a private testnet # Breaking changes - [x] I have checked my code for breaking changes - [x] If there are breaking changes, there is a supporting migration.
- Loading branch information
1 parent
d33b74c
commit 9e70644
Showing
37 changed files
with
1,031 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
########################### | ||
#### Base image #### | ||
########################### | ||
FROM golang:1.21-buster AS base | ||
FROM golang:1.22-buster AS base | ||
|
||
# TODO add non-root user | ||
|
||
MAINTAINER Matija Martinic <[email protected]> | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
WORKDIR /app | ||
|
||
########################### | ||
|
@@ -14,17 +13,17 @@ WORKDIR /app | |
FROM base AS builder | ||
COPY . /app | ||
RUN \ | ||
--mount=type=cache,target=/go/pkg/mod \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
cd /app && go build -o /palomad ./cmd/palomad | ||
|
||
--mount=type=cache,target=/go/pkg/mod \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
cd /app && go build -o /palomad ./cmd/palomad | ||
################################# | ||
#### Local chain setup #### | ||
################################# | ||
FROM ubuntu AS setup-chain-locally | ||
RUN apt-get update && \ | ||
apt-get install -y jq | ||
COPY --from=builder /palomad /palomad | ||
apt-get install -y jq | ||
OPY --from=builder /palomad /palomad | ||
COPY --from=builder /app/scripts/setup-chain-validator.sh /app/scripts/setup-chain-validator.sh | ||
RUN PALOMA_CMD="/palomad" /app/scripts/setup-chain-validator.sh | ||
|
||
|
@@ -46,7 +45,7 @@ CMD ["air"] | |
FROM ubuntu AS local-testnet | ||
ENTRYPOINT ["/palomad"] | ||
COPY --from=builder /palomad /palomad | ||
|
||
|
||
########################### | ||
#### Release #### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.