forked from InjectiveLabs/peggo
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update price-feeder dep to v2.0.2 and remove FTX (#412)
+ remove FTX from supported price providers + removed Binance from default providers + use PriceFeeder v2 (may solve panic issues)
- Loading branch information
1 parent
328f55c
commit fa1e763
Showing
14 changed files
with
50 additions
and
51 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.19 | ||
- name: Display Go Version | ||
run: go version | ||
- name: Install tparse | ||
|
@@ -36,7 +36,7 @@ jobs: | |
steps: | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.19 | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
with: | ||
|
@@ -56,7 +56,7 @@ jobs: | |
|
||
test-e2e: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
|
@@ -68,7 +68,7 @@ jobs: | |
- uses: actions/setup-go@v3 | ||
if: env.GIT_DIFF | ||
with: | ||
go-version: 1.18 | ||
go-version: 1.19 | ||
cache: true | ||
|
||
# In this step, this action saves a list of existing images, | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
## image for docker Peggo release | ||
|
||
ARG IMG_TAG=latest | ||
|
||
# Fetch base packages | ||
FROM golang:1.18-alpine AS base-builder | ||
ENV PACKAGES make git libc-dev gcc linux-headers | ||
RUN apk add --no-cache $PACKAGES | ||
FROM golang:1.19-bullseye AS builder | ||
|
||
# Compile the peggo binary | ||
FROM base-builder AS peggo-builder | ||
WORKDIR /src/app/ | ||
COPY go.mod go.sum* ./ | ||
RUN go mod download | ||
WORKDIR /src/peggo/ | ||
COPY . . | ||
RUN apk add --no-cache $PACKAGES | ||
RUN go mod download | ||
RUN make install | ||
|
||
# Fetch umeed binary | ||
FROM base-builder AS umeed-builder | ||
ARG UMEE_VERSION=v3.0.0-beta1 | ||
ENV PACKAGES curl eudev-dev | ||
RUN apk add --no-cache $PACKAGES | ||
WORKDIR /downloads/ | ||
RUN git clone https://github.com/umee-network/umee.git | ||
RUN cd umee && git checkout ${UMEE_VERSION} && CGO_ENABLED=0 make build && cp ./build/umeed /usr/local/bin/ | ||
# Build umeed | ||
WORKDIR /src/umee | ||
# RUN wget https://github.com/umee-network/umee/releases/download/v3.0.3/umeed-v3.0.3-linux-amd64.tar.gz && \ | ||
RUN wget https://github.com/umee-network/umee/releases/download/v3.3.0-rc1/umeed-v3.3.0-rc1-linux-amd64 && \ | ||
chmod +x umeed-v3.3.0-rc1-linux-amd64* && \ | ||
cp umeed-v3.3.0-rc1-linux-amd64* /usr/local/bin/umeed | ||
RUN wget https://raw.githubusercontent.com/CosmWasm/wasmvm/v1.1.1/internal/api/libwasmvm.x86_64.so | ||
|
||
# Add to a distroless container | ||
FROM gcr.io/distroless/cc:$IMG_TAG | ||
ARG IMG_TAG | ||
COPY --from=peggo-builder /go/bin/peggo /usr/local/bin/ | ||
COPY --from=umeed-builder /usr/local/bin/umeed /usr/local/bin/ | ||
COPY --from=builder /go/bin/peggo /usr/local/bin/ | ||
COPY --from=builder /usr/local/bin/umeed /usr/local/bin/ | ||
COPY --from=builder /src/umee/libwasmvm.x86_64.so /lib/ | ||
EXPOSE 26656 26657 1317 9090 |
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