-
Notifications
You must be signed in to change notification settings - Fork 7
Chore/deploy #437
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
Merged
Merged
Chore/deploy #437
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
e555918
chore: rebase contracts
c6c9af7
Merge pull request #436 from kleros/fix/handle-sent-snapshots
mani99brar 3bcc672
chore: remove dev logs
643e814
fix: executeable condition
a17231d
fix: validate txn hash
d023e80
feat: docker setup
4dbb3c3
chore: remove contract workspace & add ether dep
1d3a917
chore: update relative imports
a2eb880
chore: conditional contract build
14d4495
chore: remove dev comments
6c2dae9
chore: refactor last msg query
26985af
fix: snapshot log index
317272b
feat: pino & struct logs
4b14b1d
chore: remove pm2
a3cc948
chore: update node version
e7dae43
feat: heartbeat
2ab1be0
fix: image node version
f16466f
feat: add inbox field in Message
2b4a749
chore: try catch for lastSavedMessage ql query
10e123e
fix: empty messages
a955ad8
fix: skip challenge when finality issue
eaadc7c
fix: update lastMessageResponse type
438bc01
feat(relayer): pino
4a0b833
fix: saveSnapshot comment
336b247
chore: batch ql claim query
d5a6f28
feat: saveSnapshot if challenged
785e2d4
chore: inc block range
60ba6cf
fix: finality logs & check
b33956c
chore: add finality return
ff8ee2b
chore: add pino dep
37528a1
chore: update ql url
9a6a626
fix: push latest claimable epoch
1c0d4db
chore: remove log & catch fallback
f0d3305
fix: block range offset & hard fallback
5e683ec
chore: rebase veascan subgraph fixes
e6df6fa
fix: seq offline flag & claim reinit
bde0780
chore: use final toBlock
7f7dbb4
chore: remove range for verification events
ab37c59
chore: remove last claim conditions
cb7f984
fix: add lastClaim try catch
b73cd89
fix: snapshot lastClaim try catch
0066b07
Merge branch 'dev' into chore/deploy
mani99brar 6232598
fix: review changes
08d664f
chore: update readme
511e71c
feat: agnostic hashi executor
c159af8
chore: hashi executor cleanup
7964718
chore: update watcher cycle
508e557
chore: update env example & readme
43a7117
Merge branch 'dev' into chore/deploy
mani99brar d400265
Merge pull request #439 from kleros/feat/agnostic-hashi-executor
mani99brar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,25 @@ | ||
| services: | ||
| validator: | ||
| build: | ||
| context: . | ||
| dockerfile: ./validator-cli/Dockerfile | ||
| command: yarn start --saveSnapshot | ||
| env_file: | ||
| - path: ./validator-cli/.env | ||
| required: true | ||
| restart: unless-stopped | ||
| networks: | ||
| - vea-network | ||
|
|
||
| relayer: | ||
| build: | ||
| context: . | ||
| dockerfile: ./relayer-cli/Dockerfile | ||
| env_file: | ||
| - path: ./relayer-cli/.env | ||
| required: true | ||
| restart: unless-stopped | ||
| networks: | ||
| - vea-network | ||
| networks: | ||
| vea-network: |
This file contains hidden or 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 hidden or 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 hidden or 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,92 @@ | ||
| # | ||
| # Builder image | ||
| # | ||
|
|
||
| # Node version for Vea | ||
| FROM node:24.4-alpine AS relayer-build | ||
mani99brar marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # Yarn version for Vea | ||
| ARG YARN_VERSION=4.6.0 | ||
| RUN corepack enable \ | ||
| && corepack prepare "yarn@${YARN_VERSION}" --activate | ||
|
|
||
| USER node | ||
| WORKDIR /home/node/monorepo | ||
|
|
||
| # | ||
| # Dependencies installation step. | ||
| # | ||
|
|
||
| # Global monorepo dependencies | ||
| COPY --chown=node:node ./.yarn/releases/ ./.yarn/releases/ | ||
| COPY --chown=node:node package.json yarn.lock .yarnrc.yml ./ | ||
|
|
||
| # | ||
| # Packages dependencies | ||
| # | ||
| COPY --chown=node:node ./relayer-cli/package.json relayer-cli/ | ||
| COPY --chown=node:node ./contracts/package.json contracts/ | ||
|
|
||
| # We skip the `yarn cache clean` after install to speed up subsequent installs | ||
| # (mostly the yarn workspace focus) | ||
| RUN --mount=type=cache,id=yarn-cache,target=/home/node/monorepo/.yarn,uid=1000,gid=1000 \ | ||
| YARN_IGNORE_PATH=1 yarn install | ||
|
|
||
| # | ||
| # Source code copy step. | ||
| # | ||
| COPY --chown=node:node relayer-cli ./relayer-cli | ||
| COPY --chown=node:node contracts ./contracts | ||
|
|
||
| # | ||
| # Build step to generate contract artifacts and typechain types | ||
| # | ||
| RUN [ -d contracts/typechain-types ] && echo "TypeChain present, skipping build" || yarn workspace @kleros/vea-contracts build | ||
| RUN yarn workspaces focus @kleros/vea-relayer-cli | ||
|
|
||
|
|
||
|
|
||
| # ---------------------------------------------------------------------------------------------------- | ||
| # ---------------------------------------------------------------------------------------------------- | ||
| # ---------------------------------------------------------------------------------------------------- | ||
|
|
||
|
|
||
| # | ||
| # Deployable image | ||
| # | ||
| # This is the final layer that will be deployed and run | ||
|
|
||
| # Node version for all Vea | ||
| FROM node:24.4-alpine AS relayer | ||
Check warningCode scanning / Scorecard Pinned-Dependencies Medium
score is 7: containerImage not pinned by hash
Click Remediation section below to solve this issue |
||
|
|
||
| # Yarn version for all Vea | ||
| ARG YARN_VERSION=4.6.0 | ||
| RUN corepack enable \ | ||
| && corepack prepare "yarn@${YARN_VERSION}" --activate | ||
|
|
||
| USER root | ||
| RUN mkdir -p /home/node/monorepo/.yarn && chown -R node:node /home/node/monorepo | ||
|
|
||
|
|
||
| USER node | ||
| WORKDIR /home/node/monorepo | ||
|
|
||
| # Copy only the necessary files from the builder stage | ||
| COPY --from=relayer-build --link /home/node/monorepo/contracts/typechain-types ./contracts/typechain-types | ||
| COPY --from=relayer-build --link /home/node/monorepo/contracts/deployments ./contracts/deployments | ||
|
|
||
| # Copy the globally required files and the service workspace | ||
| COPY --from=relayer-build --link /home/node/monorepo/node_modules /home/node/monorepo/node_modules | ||
| COPY --from=relayer-build --link \ | ||
| /home/node/monorepo/.yarnrc.yml \ | ||
| /home/node/monorepo/yarn.lock \ | ||
| /home/node/monorepo/package.json \ | ||
| ./ | ||
|
|
||
| COPY --from=relayer-build --link /home/node/monorepo/relayer-cli ./relayer-cli | ||
|
|
||
| WORKDIR /home/node/monorepo/relayer-cli | ||
|
|
||
| RUN mkdir -p /home/node/monorepo/relayer-cli/state && chown -R node:node /home/node/monorepo/relayer-cli/state | ||
| ENV YARN_IGNORE_PATH=1 | ||
| CMD ["yarn", "start-relayer"] | ||
This file contains hidden or 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,21 @@ | ||
| # bots | ||
| # Relayer bot | ||
|
|
||
| A collection of bots for the Vea relayers. | ||
|
|
||
| - src/devnetRelayExample.ts | ||
| - src/relayer.ts | ||
|
|
||
| # pm2 | ||
| # docker | ||
|
|
||
| `pm2 start` | ||
| `docker compose build relayer` | ||
|
|
||
| Runs a relayer for all messages sent through example gateway contracts. | ||
| `docker compose up relayer` | ||
|
|
||
| Runs a relayer for all messages sent through VeaInbox contracts. | ||
|
|
||
| # `env` config | ||
|
|
||
| - `VEAOUTBOX_CHAINS`: to chose the chains to execute messages on. | ||
|
|
||
| - Address params: used to execute for specific sender addresses or everyone if zero address is provided. | ||
|
|
||
| - `SENDER_ADDRESSES`: pass zero address to allow all senders and relayer or executor for hashi. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.