-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from Nuklai/hypersdk-parity-20241002025558
Hypersdk parity to 20241002025558
- Loading branch information
Showing
131 changed files
with
19,036 additions
and
4,763 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.git | ||
web_wallet/node_modules | ||
tests/e2e/e2e.test | ||
build | ||
.nuklai-cli/ | ||
**.coverage.** |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
##### | ||
# Source of precompiled avalanchego | ||
##### | ||
ARG INSTALL_AVALANCHEGO_VERSION_SHORT=d366a137 | ||
FROM avaplatform/avalanchego:${INSTALL_AVALANCHEGO_VERSION_SHORT} AS avalanchego | ||
|
||
##### | ||
# Base layer with hypersdk | ||
##### | ||
FROM golang:1.22-bookworm AS hypersdk-downloader | ||
|
||
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y curl && apt clean && rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
ARG INSTALL_AVALANCHEGO_VERSION=v1.11.12-rc.2 | ||
COPY --from=avalanchego /avalanchego/build/avalanchego /root/.hypersdk/avalanchego-${INSTALL_AVALANCHEGO_VERSION}/avalanchego | ||
|
||
|
||
ENV GOMODCACHE /go/pkg/mod | ||
|
||
WORKDIR /app | ||
|
||
RUN go install github.com/onsi/ginkgo/v2/[email protected] | ||
|
||
COPY ./go.mod ./go.sum ./ | ||
|
||
COPY ./actions ./actions | ||
COPY ./chain ./chain | ||
COPY ./cmd/nuklaivm ./cmd/nuklaivm | ||
COPY ./consts ./consts | ||
COPY ./emission ./emission | ||
COPY ./genesis ./genesis | ||
COPY ./marketplace ./marketplace | ||
COPY ./scripts ./scripts | ||
COPY ./storage ./storage | ||
COPY ./tests ./tests | ||
COPY ./vm ./vm | ||
|
||
WORKDIR /app | ||
|
||
|
||
ENTRYPOINT ["/bin/bash", "-c", "./scripts/stop.sh; ./scripts/run.sh && echo 'Devnet started' && tail -f /dev/null"] |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
##### | ||
# Build the faucet | ||
##### | ||
|
||
FROM golang:1.22-bookworm AS faucet-builder | ||
|
||
WORKDIR /build | ||
COPY ./go.mod ./go.sum ./ | ||
|
||
COPY ./ ./ | ||
|
||
ENV GOMODCACHE /go/pkg/mod | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
--mount=type=cache,target=/root/.cache/go-build \ | ||
go build -o build/faucet ./cmd/faucet | ||
|
||
##### | ||
# Final layer with faucet, VM and avalanchego | ||
##### | ||
FROM debian:bookworm-slim | ||
|
||
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y curl && apt clean && rm -rf /var/lib/apt/lists/* | ||
|
||
COPY --from=faucet-builder /build/build/faucet /faucet | ||
|
||
|
||
|
||
ENTRYPOINT ["/faucet"] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Build stage | ||
FROM node:22-bookworm AS build | ||
WORKDIR /app | ||
COPY web_wallet/package.json web_wallet/package-lock.json ./ | ||
RUN --mount=type=cache,target=/root/.npm npm install | ||
COPY web_wallet/ ./web_wallet/ | ||
WORKDIR /app/web_wallet | ||
RUN npm run build-no-check | ||
|
||
# # Production stage | ||
FROM nginx:latest | ||
COPY --from=build /app/web_wallet/dist /usr/share/nginx/html |
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.