-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 230905-client-libs
- Loading branch information
Showing
75 changed files
with
830 additions
and
94 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,14 @@ | ||
--- | ||
"@latticexyz/world": minor | ||
--- | ||
|
||
It is now possible to upgrade systems by calling `registerSystem` again with an existing system id (resource selector). | ||
|
||
```solidity | ||
// Register a system | ||
world.registerSystem(systemId, systemAddress, publicAccess); | ||
// Upgrade the system by calling `registerSystem` with the | ||
// same system id but a new system address or publicAccess flag | ||
world.registerSystem(systemId, newSystemAddress, newPublicAccess); | ||
``` |
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,5 @@ | ||
--- | ||
"@latticexyz/services": patch | ||
--- | ||
|
||
The build phase of services now works on machines with older protobuf compilers |
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,13 @@ | ||
node_modules | ||
**/node_modules | ||
.gitignore | ||
*.md | ||
dist | ||
**/dist | ||
**/out/ | ||
**/cache/ | ||
**/bindings/ | ||
**/artifacts/ | ||
**/abi/ | ||
**/broadcast/ | ||
**/deploys/ |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM docker.io/library/debian:bullseye-slim as base | ||
ENV SHELL /bin/bash | ||
|
||
WORKDIR /opt | ||
RUN apt-get -y update --fix-missing && \ | ||
apt-get -y upgrade && \ | ||
apt-get install -y --no-install-recommends \ | ||
libssl-dev make cmake graphviz \ | ||
git pkg-config curl time rhash ca-certificates jq \ | ||
python3 python3-pip lsof ruby ruby-bundler git-restore-mtime xz-utils zstd unzip gnupg protobuf-compiler \ | ||
wget net-tools iptables iproute2 iputils-ping ed zlib1g-dev wabt && \ | ||
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
# foundry | ||
RUN curl -L https://foundry.paradigm.xyz/ | bash && \ | ||
${HOME}/.foundry/bin/foundryup \ | ||
&& forge --version \ | ||
&& cast --version \ | ||
&& anvil --version \ | ||
&& chisel --version | ||
# go | ||
RUN wget https://dl.google.com/go/go1.20.4.linux-amd64.tar.gz && \ | ||
# -C to move to given directory | ||
tar -C /usr/local/ -xzf go1.20.4.linux-amd64.tar.gz | ||
# pnpm | ||
RUN npm install pnpm --global && pnpm --version | ||
|
||
FROM base AS builder | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
ENV PATH="${PATH}:/usr/local/go/bin" | ||
ENV PATH="${PATH}:/root/.foundry/bin" | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm run -r build | ||
|
||
FROM builder AS store-indexer | ||
WORKDIR /app/packages/store-indexer | ||
EXPOSE 3001 |
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.