-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: separate router and sequencer admin keys (#4316) * feat: add nonce to stableswap staging events * feat: add nonce to v0 stableswap events * fix: event id * feat: add nonce field to types * feat: add nonce to stableswap db migration * fix: database adapter for stableswap nonce * chore: add commitlint local setup * ci: update ci workflow for commitlint * feat: update subgraph & poller logic with nonce * feat: rebuild graph-client * fix: query with bigInt params * fix: carto poller unit tests * fix: remove unused checkpoint for asset updates * fix(test): unit tests for poller * chore: add code owners (#4318) * chore: add code owners * (chore) testing gpg sign * (chore) test signed commit * (chore) testing signed commit * ci: fix syntax * ci: try different install * ci: fix commitlint * ci: validate commit * feat: graph-client build * Don't commitlint testnet-prod and prod * Hot Fix: Update Linea goerli RPC * Fix: Disable commitlint in testnet-prod * feat: getSupportedAssets and tests added (#4324) * feat: getSupportedAssets and tests added * chore: use a mockable method * fix(lint): auto fix order problems * test(fix): expect * refactor: renaming --------- Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com> Co-authored-by: wanglonghong <wanglonghong4467@gmail.com> * Fix aggregate root no exist (#4335) * fix: use received aggregate root * fix: lint * feat: should ack and reject (#4336) * chore: change comparison (#4330) * Improve logging and refactor (#4337) * feat: expose nonce api and refactors * fix(utils): mock * test(fix): make optional * Paginate reading pending txs from the redis cache (#4342) * feat: implement pagination in the cache * fix: random sort and keep the first timestamp * fix: no need to retry within a execution window * fix: commitlint * chore: remove console logs * ci: fix batch size * feat: refactor sequencer subscriber (#4352) * feat: dequeued * feat: try without child process * chore: remove and refactor * chore: add dequeued check * chore: remove conf * fix: lint * feat: dont scale with load (#4354) * feat: dont scale with load * chore: increase default size * fix: resolve testnet prod sync conflicts (#4356) * Testnet prod (#4353) * ci: commitlint * ci: db engine * ci: fix --------- Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com> * feat: query if processed root message exists in db * fix: increase unprocessed root message limit to 100 * ci: commitlint * fix: expire data check (#4357) * feat: should not handle transfer status here * feat: check root message status on db * Fix commitlint * fix: commitlint * fix: message status query * test: add more unit tests for poller * test: add unit tests for database * ci: commitlint * fix: 4362 save transferid in the messages table (#4364) * feat: add transfer_id to migration * feat: zapatos * fix: convert functions * fix: unit tests for database * chore: update graph packages * ci: set proverBatchSize per chain (#4375) * chore: update (#4378) * feat: 4326 scale sequencer http server (#4363) * Implement new pub and sub tasks for http messages. * Tune the http pub-sub setup * Add server to seq TF configs * Add seq server to build and test config * Refactor helpers for seq server * Update seq mq config to add http queue * fix: Update config handling * feat: Update unit tests * fix : correct config * fix : remove todo * refactor : Validate http post as per schema * tests : Update unit tests * tests : update exclusions * fix : remove unused imports * fix: Use fastify body schema validation * fix: update default ports * fix: update sequencer url in smoke tests * fix: sequencer exec data not found in the cache (#4383) * fix: remove unecessary prefetch config setup --------- Co-authored-by: Rahul Sethuram <rahul@connext.network> Co-authored-by: Liu <57480598+liu-zhipeng@users.noreply.github.com> Co-authored-by: Rahul Sethuram <rahul.eth@icloud.com> Co-authored-by: Sanchay Mittal <sanchaymittal@gmail.com> Co-authored-by: Prathmesh Khandelwal <201952225@iiitvadodara.ac.in> Co-authored-by: Prathmesh Khandelwal <prathmeshkhandelwal83@gmail.com> Co-authored-by: wanglonghong <wanglonghong4467@gmail.com>
- Loading branch information
1 parent
6130b68
commit 4e94490
Showing
60 changed files
with
1,081 additions
and
436 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx --no -- commitlint --edit ${1}~ | ||
yarn dlx commitlint --edit $1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
FROM node:18-alpine as node | ||
|
||
# ---------------------------------------- | ||
# Builds Docker container for nxtp-router package. | ||
# @dev configuraion located ./config.json (relative to this file) | ||
|
||
|
||
# ---------------------------------------- | ||
|
||
FROM node as build | ||
RUN apk update | ||
RUN apk add git | ||
|
||
ENV HOME=/tmp/build \ | ||
PATH=/tmp/build/node_modules/.bin:./node_modules/.bin:${PATH} | ||
|
||
WORKDIR /tmp/build | ||
|
||
ARG TEMP_DEPS_DIR | ||
|
||
# ----- Copy only the files that affect yarn install ----- | ||
# Allows docker to use cache and skip install if dependencies are unchanged. | ||
# Assumes that ./packages/*/package.json files have been copied to TEMP_DEPS_DIR | ||
# with that same directory structure. build.sh does this. | ||
COPY .yarn /tmp/build/.yarn/ | ||
COPY .yarnrc.yml /tmp/build/ | ||
COPY package.json /tmp/build/ | ||
COPY packages/agents/sequencer/package.json /tmp/build/packages/agents/sequencer/ | ||
COPY packages/agents/relayer/package.json /tmp/build/packages/agents/relayer/ | ||
COPY packages/adapters/cache/package.json /tmp/build/packages/adapters/cache/ | ||
COPY packages/adapters/subgraph/package.json /tmp/build/packages/adapters/subgraph/ | ||
COPY packages/adapters/web3signer/package.json /tmp/build/packages/adapters/web3signer/ | ||
COPY packages/adapters/txservice/package.json /tmp/build/packages/adapters/txservice/ | ||
COPY packages/adapters/relayer/package.json /tmp/build/packages/adapters/relayer/ | ||
COPY packages/adapters/database/package.json /tmp/build/packages/adapters/database/ | ||
COPY packages/deployments/contracts/package.json /tmp/build/packages/deployments/contracts/ | ||
COPY packages/utils/package.json /tmp/build/packages/utils/ | ||
COPY yarn.lock /tmp/build/ | ||
|
||
# ----- Install dependencies ----- | ||
# Install dependencies exactly as in the yarn.lock file - no updates. | ||
RUN yarn install | ||
|
||
# ----- Copy source and all other files that affect lint, test, build ----- | ||
COPY config config/ | ||
COPY packages/agents/sequencer /tmp/build/packages/agents/sequencer | ||
COPY packages/agents/relayer /tmp/build/packages/agents/relayer | ||
COPY packages/adapters/cache /tmp/build/packages/adapters/cache | ||
COPY packages/adapters/subgraph /tmp/build/packages/adapters/subgraph | ||
COPY packages/adapters/web3signer /tmp/build/packages/adapters/web3signer | ||
COPY packages/adapters/txservice /tmp/build/packages/adapters/txservice | ||
COPY packages/adapters/relayer /tmp/build/packages/adapters/relayer | ||
COPY packages/adapters/database /tmp/build/packages/adapters/database | ||
COPY packages/deployments/contracts /tmp/build/packages/deployments/contracts/ | ||
COPY packages/utils /tmp/build/packages/utils | ||
COPY .eslintignore /tmp/build/ | ||
COPY .eslintrc.js /tmp/build/ | ||
|
||
# ----- Lint, test and build ----- | ||
RUN yarn build | ||
|
||
# ---------------------------------------- | ||
# Copy files to the deployment image. | ||
# ---------------------------------------- | ||
|
||
FROM node as runtime | ||
|
||
ENV NODE_ENV=production \ | ||
PORT=8081 | ||
|
||
ARG COMMIT_HASH | ||
ENV COMMIT_HASH ${COMMIT_HASH:-unknown} | ||
|
||
# ----- Copy files required at runtime by the app ----- | ||
COPY --from=build --chown=node:node /tmp/build /home/node | ||
|
||
# This user is created in the base image with uid and gid = 1000. | ||
USER node | ||
|
||
WORKDIR /home/node/packages/agents/sequencer | ||
|
||
EXPOSE 8081 | ||
|
||
CMD ["node", "--trace-warnings", "dist/server.js"] |
Oops, something went wrong.