diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 74f9e723172..21abfeb8432 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -55,8 +55,6 @@ jobs: deploy: needs: [build] runs-on: ubuntu-latest - env: - HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} steps: - name: Set Heroku app name based on branch id: set-heroku-app-name @@ -82,22 +80,10 @@ jobs: esac echo "HEROKU_APP_NAME=$APP_NAME" >> $GITHUB_ENV - - name: Extract branch name - shell: bash - run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT - id: extract_branch - - uses: actions/checkout@v2 - with: - ref: ${{ steps.extract_branch.outputs.branch }} - - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - uses: akhileshns/heroku-deploy@v3.13.15 with: - dontuseforce: 1 heroku_api_key: ${{secrets.HEROKU_API_TOKEN}} heroku_app_name: ${{ env.HEROKU_APP_NAME }} - heroku_email: ${{secrets.HEROKU_EMAIL}} - branch: ${{ steps.extract_branch.outputs.branch }} \ No newline at end of file + heroku_email: ${{secrets.HEROKU_EMAIL}} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 3bc1d6a876c..7b4115c5201 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get update && \ apt-get install -y python3 make gcc g++ COPY . /usr/src/app WORKDIR /usr/src/app -RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile RUN pnpm run build RUN pnpm deploy --filter=commonwealth --prod /prod/commonwealth RUN mv /usr/src/app/packages/commonwealth/build /prod/commonwealth/build diff --git a/heroku.yml b/heroku.yml new file mode 100644 index 00000000000..24b63519c8e --- /dev/null +++ b/heroku.yml @@ -0,0 +1,11 @@ +build: + docker: + web: Dockerfile + +run: + web: NODE_ENV=production node --import=extensionless/register --enable-source-maps ./build/server.js + +release: + image: web + command: + - node --import=extensionless/register --max-old-space-size=$(../../scripts/get-max-old-space-size.sh) build/server/scripts/releasePhaseEnvCheck.js && npx sequelize-cli db:migrate --config server/sequelize.json && node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js diff --git a/package.json b/package.json index 40999d3b1c5..742b6dc1279 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,6 @@ "prettier-plugin-organize-imports": "^4.0.0", "process": "^0.11.10", "readline-sync": "^1.4.10", - "sequelize-cli": "^6.2.0", "sharp": "^0.31.2", "sinon": "^15.0.4", "source-map-support": "^0.5.21", diff --git a/packages/commonwealth/Procfile b/packages/commonwealth/Procfile index 8ab74703ffe..9c0b9af527e 100644 --- a/packages/commonwealth/Procfile +++ b/packages/commonwealth/Procfile @@ -3,4 +3,4 @@ consumer: cd packages/commonwealth && node --import=extensionless/register --max evm-ce: cd packages/commonwealth && node --import=extensionless/register --max-old-space-size=$(../../scripts/get-max-old-space-size.sh) build/server/workers/evmChainEvents/startEvmPolling.js knock: cd packages/commonwealth && node --import=extensionless/register --max-old-space-size=$(../../scripts/get-max-old-space-size.sh) build/server/workers/knock/knockWorker.js message-relayer: cd packages/commonwealth && node --import=extensionless/register --max-old-space-size=$(../../scripts/get-max-old-space-size.sh) build/server/workers/messageRelayer/messageRelayer.js -release: cd packages/commonwealth && node --import=extensionless/register --max-old-space-size=$(../../scripts/get-max-old-space-size.sh) build/server/scripts/releasePhaseEnvCheck.js && npx sequelize-cli db:migrate --config server/sequelize.json && node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js +release: cd packages/commonwealth && node --import=extensionless/register --max-old-space-size=$(../../scripts/get-max-old-space-size.sh) build/server/scripts/releasePhaseEnvCheck.js && npx sequelize-cli db:migrate --config server/sequelize.json && node --import=extensionless/register build/server/scripts/purgeCloudflareCache.js \ No newline at end of file diff --git a/packages/commonwealth/scripts/heroku-deploy.sh b/packages/commonwealth/scripts/heroku-deploy.sh new file mode 100644 index 00000000000..e6353812f3d --- /dev/null +++ b/packages/commonwealth/scripts/heroku-deploy.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +echo "Logging in to AWS ECR..." +aws ecr get-login-password --region ${AWS_DEFAULT_REGION} | docker login --username AWS --password-stdin ${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com + +IMAGE_URI="${AWS_ACCOUNT_ID}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${REPOSITORY_NAME}:${COMMIT_HASH}" + +echo "Pulling Docker image $IMAGE_URI..." +docker pull $IMAGE_URI + +docker run -d -p 8080:8080 $IMAGE_URI +CONTAINER_ID=$(docker run -d -p 8080:8080 $IMAGE_URI) diff --git a/packages/commonwealth/server/scripts/releasePhaseEnvCheck.ts b/packages/commonwealth/server/scripts/releasePhaseEnvCheck.js similarity index 78% rename from packages/commonwealth/server/scripts/releasePhaseEnvCheck.ts rename to packages/commonwealth/server/scripts/releasePhaseEnvCheck.js index b64561a8ff3..d17a3a96158 100644 --- a/packages/commonwealth/server/scripts/releasePhaseEnvCheck.ts +++ b/packages/commonwealth/server/scripts/releasePhaseEnvCheck.js @@ -8,12 +8,10 @@ if (import.meta.url.endsWith(process.argv[1])) { // TODO: Add checks for unused env var // TODO: Add warning for manually set client FLAGs when APP_ENV !== 'local'/'CI' log.info('Environment variables are properly configured'); - // eslint-disable-next-line @typescript-eslint/no-floating-promises dispose()('EXIT', true); }) .catch((err) => { log.fatal('Environment variables not properly configured!', err); - // eslint-disable-next-line @typescript-eslint/no-floating-promises dispose()('ERROR', true); }); } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7db9e1eda06..cdc8c6d526f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -172,7 +172,7 @@ importers: version: 3.7.0(@swc/helpers@0.5.5)(vite@5.2.12(@types/node@20.12.10)(sass@1.77.0)(terser@5.31.0)) '@vitest/coverage-istanbul': specifier: ^1.6.0 - version: 1.6.0(vitest@1.6.0(@types/node@20.12.10)(jsdom@24.0.0)(sass@1.77.0)(terser@5.31.0)) + version: 1.6.0(vitest@1.6.0(@types/node@20.12.10)(jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@6.0.3))(sass@1.77.0)(terser@5.31.0)) chai: specifier: ^4.3.6 version: 4.4.1 @@ -257,9 +257,6 @@ importers: readline-sync: specifier: ^1.4.10 version: 1.4.10 - sequelize-cli: - specifier: ^6.2.0 - version: 6.6.2 sharp: specifier: ^0.31.2 version: 0.31.3 @@ -310,7 +307,7 @@ importers: version: 4.3.2(typescript@5.4.5)(vite@5.2.12(@types/node@20.12.10)(sass@1.77.0)(terser@5.31.0)) vitest: specifier: ^1.6.0 - version: 1.6.0(@types/node@20.12.10)(jsdom@24.0.0)(sass@1.77.0)(terser@5.31.0) + version: 1.6.0(@types/node@20.12.10)(jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@6.0.3))(sass@1.77.0)(terser@5.31.0) wait-on: specifier: ^7.2.0 version: 7.2.0 @@ -504,7 +501,7 @@ importers: version: 6.11.4 web3: specifier: ^4.7.0 - version: 4.8.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10)(zod@3.23.6) + version: 4.8.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) web3-core: specifier: ^4.3.2 version: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -550,7 +547,7 @@ importers: version: 16.4.5 ethers: specifier: 5.7.2 - version: 5.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + version: 5.7.2(bufferutil@4.0.8)(utf-8-validate@6.0.3) lodash: specifier: ^4.17.21 version: 4.17.21 @@ -1026,10 +1023,10 @@ importers: version: 1.91.8(bufferutil@4.0.8)(utf-8-validate@5.0.10) '@tanstack/react-query': specifier: ^4.29.7 - version: 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) + version: 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) '@tanstack/react-query-devtools': specifier: ^4.29.7 - version: 4.36.1(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 4.36.1(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@tanstack/react-table': specifier: ^8.9.7 version: 8.16.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -1044,7 +1041,7 @@ importers: version: 10.45.2(@trpc/server@10.45.2) '@trpc/react-query': specifier: ^10.45.1 - version: 10.45.2(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 10.45.2(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@types/react-helmet-async': specifier: ^1.0.3 version: 1.0.3(react@18.3.1) @@ -1275,7 +1272,7 @@ importers: version: 18.3.1 react-beautiful-dnd: specifier: ^13.1.1 - version: 13.1.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) + version: 13.1.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) react-device-detect: specifier: ^2.2.3 version: 2.2.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -8904,12 +8901,14 @@ packages: { integrity: sha512-DIyQ13DDlXqVFnLV+S6/JDgiGowVRRrh18kahieJxhgvzcWicw5eLc6jpfQ0moVVLBYkO7rctB5Wreldwpva8w==, } + deprecated: versions below 1.x are no longer maintained '@substrate/connect@0.8.8': resolution: { integrity: sha512-zwaxuNEVI9bGt0rT8PEJiXOyebLIo6QN1SyiAHRPBOl6g3Sy0KKdSN8Jmyn++oXhVRD8aIe75/V8ZkS81T+BPQ==, } + deprecated: versions below 1.x are no longer maintained '@substrate/light-client-extension-helpers@0.0.4': resolution: @@ -27482,6 +27481,32 @@ snapshots: - bufferutil - utf-8-validate + '@ethersproject/providers@5.7.2(bufferutil@4.0.8)(utf-8-validate@6.0.3)': + dependencies: + '@ethersproject/abstract-provider': 5.7.0 + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/base64': 5.7.0 + '@ethersproject/basex': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/networks': 5.7.1 + '@ethersproject/properties': 5.7.0 + '@ethersproject/random': 5.7.0 + '@ethersproject/rlp': 5.7.0 + '@ethersproject/sha2': 5.7.0 + '@ethersproject/strings': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/web': 5.7.1 + bech32: 1.1.4 + ws: 7.4.6(bufferutil@4.0.8)(utf-8-validate@6.0.3) + transitivePeerDependencies: + - bufferutil + - utf-8-validate + '@ethersproject/random@5.7.0': dependencies: '@ethersproject/bytes': 5.7.0 @@ -30548,16 +30573,6 @@ snapshots: optionalDependencies: '@types/react': 18.3.1 - '@react-native/virtualized-lists@0.74.81(@types/react@18.3.1)(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1)': - dependencies: - invariant: 2.2.4 - nullthrows: 1.1.1 - react: 18.3.1 - react-native: 0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10) - optionalDependencies: - '@types/react': 18.3.1 - optional: true - '@redis/bloom@1.0.2(@redis/client@1.2.0)': dependencies: '@redis/client': 1.2.0 @@ -31570,10 +31585,10 @@ snapshots: - '@types/react' - react-dom - '@tanstack/react-query-devtools@4.36.1(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@tanstack/react-query-devtools@4.36.1(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/match-sorter-utils': 8.15.1 - '@tanstack/react-query': 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) + '@tanstack/react-query': 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) react: 18.3.1 react-dom: 18.3.1(react@18.3.1) superjson: 1.13.3 @@ -31588,15 +31603,6 @@ snapshots: react-dom: 18.3.1(react@18.3.1) react-native: 0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10) - '@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1)': - dependencies: - '@tanstack/query-core': 4.36.1 - react: 18.3.1 - use-sync-external-store: 1.2.2(react@18.3.1) - optionalDependencies: - react-dom: 18.3.1(react@18.3.1) - react-native: 0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10) - '@tanstack/react-store@0.3.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/store': 0.3.1 @@ -31703,9 +31709,9 @@ snapshots: dependencies: '@trpc/server': 10.45.2 - '@trpc/react-query@10.45.2(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@trpc/react-query@10.45.2(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1))(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@tanstack/react-query': 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) + '@tanstack/react-query': 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) '@trpc/client': 10.45.2(@trpc/server@10.45.2) '@trpc/server': 10.45.2 react: 18.3.1 @@ -32384,7 +32390,7 @@ snapshots: transitivePeerDependencies: - '@swc/helpers' - '@vitest/coverage-istanbul@1.6.0(vitest@1.6.0(@types/node@20.12.10)(jsdom@24.0.0)(sass@1.77.0)(terser@5.31.0))': + '@vitest/coverage-istanbul@1.6.0(vitest@1.6.0(@types/node@20.12.10)(jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@6.0.3))(sass@1.77.0)(terser@5.31.0))': dependencies: debug: 4.3.4(supports-color@8.1.1) istanbul-lib-coverage: 3.2.2 @@ -32395,7 +32401,7 @@ snapshots: magicast: 0.3.4 picocolors: 1.0.0 test-exclude: 6.0.0 - vitest: 1.6.0(@types/node@20.12.10)(jsdom@24.0.0)(sass@1.77.0)(terser@5.31.0) + vitest: 1.6.0(@types/node@20.12.10)(jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@6.0.3))(sass@1.77.0)(terser@5.31.0) transitivePeerDependencies: - supports-color @@ -35833,6 +35839,42 @@ snapshots: - bufferutil - utf-8-validate + ethers@5.7.2(bufferutil@4.0.8)(utf-8-validate@6.0.3): + dependencies: + '@ethersproject/abi': 5.7.0 + '@ethersproject/abstract-provider': 5.7.0 + '@ethersproject/abstract-signer': 5.7.0 + '@ethersproject/address': 5.7.0 + '@ethersproject/base64': 5.7.0 + '@ethersproject/basex': 5.7.0 + '@ethersproject/bignumber': 5.7.0 + '@ethersproject/bytes': 5.7.0 + '@ethersproject/constants': 5.7.0 + '@ethersproject/contracts': 5.7.0 + '@ethersproject/hash': 5.7.0 + '@ethersproject/hdnode': 5.7.0 + '@ethersproject/json-wallets': 5.7.0 + '@ethersproject/keccak256': 5.7.0 + '@ethersproject/logger': 5.7.0 + '@ethersproject/networks': 5.7.1 + '@ethersproject/pbkdf2': 5.7.0 + '@ethersproject/properties': 5.7.0 + '@ethersproject/providers': 5.7.2(bufferutil@4.0.8)(utf-8-validate@6.0.3) + '@ethersproject/random': 5.7.0 + '@ethersproject/rlp': 5.7.0 + '@ethersproject/sha2': 5.7.0 + '@ethersproject/signing-key': 5.7.0 + '@ethersproject/solidity': 5.7.0 + '@ethersproject/strings': 5.7.0 + '@ethersproject/transactions': 5.7.0 + '@ethersproject/units': 5.7.0 + '@ethersproject/wallet': 5.7.0 + '@ethersproject/web': 5.7.1 + '@ethersproject/wordlists': 5.7.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + ethers@6.12.1(bufferutil@4.0.8)(utf-8-validate@5.0.10): dependencies: '@adraffy/ens-normalize': 1.10.1 @@ -37530,7 +37572,7 @@ snapshots: dependencies: jsdom: 24.0.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) - jsdom@24.0.0: + jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): dependencies: cssstyle: 4.0.1 data-urls: 5.0.0 @@ -37551,15 +37593,14 @@ snapshots: whatwg-encoding: 3.1.1 whatwg-mimetype: 4.0.0 whatwg-url: 14.0.0 - ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) xml-name-validator: 5.0.0 transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate - optional: true - jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@5.0.10): + jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@6.0.3): dependencies: cssstyle: 4.0.1 data-urls: 5.0.0 @@ -37580,12 +37621,13 @@ snapshots: whatwg-encoding: 3.1.1 whatwg-mimetype: 4.0.0 whatwg-url: 14.0.0 - ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + ws: 8.18.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) xml-name-validator: 5.0.0 transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate + optional: true jsesc@0.5.0: {} @@ -40066,7 +40108,7 @@ snapshots: lodash.flow: 3.5.0 pure-color: 1.3.0 - react-beautiful-dnd@13.1.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1): + react-beautiful-dnd@13.1.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1): dependencies: '@babel/runtime': 7.24.5 css-box-model: 1.2.1 @@ -40074,7 +40116,7 @@ snapshots: raf-schd: 4.0.3 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-redux: 7.2.9(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) + react-redux: 7.2.9(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) redux: 4.2.1 use-memo-one: 1.1.3(react@18.3.1) transitivePeerDependencies: @@ -40247,57 +40289,6 @@ snapshots: - supports-color - utf-8-validate - react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10): - dependencies: - '@jest/create-cache-key-function': 29.7.0 - '@react-native-community/cli': 13.6.4(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@react-native-community/cli-platform-android': 13.6.4 - '@react-native-community/cli-platform-ios': 13.6.4 - '@react-native/assets-registry': 0.74.81 - '@react-native/codegen': 0.74.81(@babel/preset-env@7.25.4(@babel/core@7.24.5)) - '@react-native/community-cli-plugin': 0.74.81(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(bufferutil@4.0.8)(utf-8-validate@5.0.10) - '@react-native/gradle-plugin': 0.74.81 - '@react-native/js-polyfills': 0.74.81 - '@react-native/normalize-colors': 0.74.81 - '@react-native/virtualized-lists': 0.74.81(@types/react@18.3.1)(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1) - abort-controller: 3.0.0 - anser: 1.4.10 - ansi-regex: 5.0.1 - base64-js: 1.5.1 - chalk: 4.1.2 - event-target-shim: 5.0.1 - flow-enums-runtime: 0.0.6 - invariant: 2.2.4 - jest-environment-node: 29.7.0 - jsc-android: 250231.0.0 - memoize-one: 5.2.1 - metro-runtime: 0.80.10 - metro-source-map: 0.80.10 - mkdirp: 0.5.6 - nullthrows: 1.1.1 - pretty-format: 26.6.2 - promise: 8.3.0 - react: 18.3.1 - react-devtools-core: 5.3.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) - react-refresh: 0.14.2 - react-shallow-renderer: 16.15.0(react@18.3.1) - regenerator-runtime: 0.13.11 - scheduler: 0.24.0-canary-efb381bbf-20230505 - stacktrace-parser: 0.1.10 - whatwg-fetch: 3.6.20 - ws: 6.2.3(bufferutil@4.0.8)(utf-8-validate@5.0.10) - yargs: 17.7.2 - optionalDependencies: - '@types/react': 18.3.1 - transitivePeerDependencies: - - '@babel/core' - - '@babel/preset-env' - - bufferutil - - encoding - - supports-color - - utf-8-validate - optional: true - react-popper-tooltip@4.4.2(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: '@babel/runtime': 7.24.5 @@ -40322,7 +40313,7 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-redux@7.2.9(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1): + react-redux@7.2.9(react-dom@18.3.1(react@18.3.1))(react-native@0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10))(react@18.3.1): dependencies: '@babel/runtime': 7.24.5 '@types/react-redux': 7.1.33 @@ -40333,7 +40324,7 @@ snapshots: react-is: 17.0.2 optionalDependencies: react-dom: 18.3.1(react@18.3.1) - react-native: 0.74.0(@babel/core@7.24.5)(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10) + react-native: 0.74.0(@babel/core@7.24.5)(@babel/preset-env@7.25.4(@babel/core@7.24.5))(@types/react@18.3.1)(bufferutil@4.0.8)(react@18.3.1)(utf-8-validate@5.0.10) react-refresh@0.14.2: {} @@ -42466,7 +42457,7 @@ snapshots: sass: 1.77.0 terser: 5.31.0 - vitest@1.6.0(@types/node@20.12.10)(jsdom@24.0.0)(sass@1.77.0)(terser@5.31.0): + vitest@1.6.0(@types/node@20.12.10)(jsdom@24.0.0(bufferutil@4.0.8)(utf-8-validate@6.0.3))(sass@1.77.0)(terser@5.31.0): dependencies: '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 @@ -42490,7 +42481,7 @@ snapshots: why-is-node-running: 2.2.2 optionalDependencies: '@types/node': 20.12.10 - jsdom: 24.0.0 + jsdom: 24.0.0(bufferutil@4.0.8)(utf-8-validate@6.0.3) transitivePeerDependencies: - less - lightningcss @@ -42681,6 +42672,22 @@ snapshots: web3-utils: 4.2.3 web3-validator: 2.0.5 + web3-eth-contract@4.4.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10): + dependencies: + web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-errors: 1.1.4 + web3-eth: 4.6.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-eth-abi: 4.2.1(typescript@5.4.5)(zod@3.23.6) + web3-types: 1.6.0 + web3-utils: 4.2.3 + web3-validator: 2.0.5 + transitivePeerDependencies: + - bufferutil + - encoding + - typescript + - utf-8-validate + - zod + web3-eth-contract@4.4.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10)(zod@3.23.6): dependencies: web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -42713,6 +42720,24 @@ snapshots: - utf-8-validate - zod + web3-eth-ens@4.2.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10): + dependencies: + '@adraffy/ens-normalize': 1.10.1 + web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-errors: 1.1.4 + web3-eth: 4.6.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-eth-contract: 4.4.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-net: 4.0.7(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-types: 1.6.0 + web3-utils: 4.2.3 + web3-validator: 2.0.5 + transitivePeerDependencies: + - bufferutil + - encoding + - typescript + - utf-8-validate + - zod + web3-eth-ens@4.2.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10)(zod@3.23.6): dependencies: '@adraffy/ens-normalize': 1.10.1 @@ -42761,6 +42786,21 @@ snapshots: web3-utils: 4.2.3 web3-validator: 2.0.5 + web3-eth-personal@4.0.8(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10): + dependencies: + web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-eth: 4.6.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-rpc-methods: 1.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-types: 1.6.0 + web3-utils: 4.2.3 + web3-validator: 2.0.5 + transitivePeerDependencies: + - bufferutil + - encoding + - typescript + - utf-8-validate + - zod + web3-eth-personal@4.0.8(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10)(zod@3.23.6): dependencies: web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -42791,6 +42831,26 @@ snapshots: - utf-8-validate - zod + web3-eth@4.6.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10): + dependencies: + setimmediate: 1.0.5 + web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-errors: 1.1.4 + web3-eth-abi: 4.2.1(typescript@5.4.5)(zod@3.23.6) + web3-eth-accounts: 4.1.2 + web3-net: 4.0.7(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-providers-ws: 4.0.7(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-rpc-methods: 1.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-types: 1.6.0 + web3-utils: 4.2.3 + web3-validator: 2.0.5 + transitivePeerDependencies: + - bufferutil + - encoding + - typescript + - utf-8-validate + - zod + web3-eth@4.6.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10)(zod@3.23.6): dependencies: setimmediate: 1.0.5 @@ -42959,6 +43019,31 @@ snapshots: web3-types: 1.6.0 zod: 3.23.6 + web3@4.8.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10): + dependencies: + web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-errors: 1.1.4 + web3-eth: 4.6.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-eth-abi: 4.2.1(typescript@5.4.5)(zod@3.23.6) + web3-eth-accounts: 4.1.2 + web3-eth-contract: 4.4.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-eth-ens: 4.2.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-eth-iban: 4.0.7 + web3-eth-personal: 4.0.8(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10) + web3-net: 4.0.7(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-providers-http: 4.1.0 + web3-providers-ws: 4.0.7(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-rpc-methods: 1.2.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) + web3-types: 1.6.0 + web3-utils: 4.2.3 + web3-validator: 2.0.5 + transitivePeerDependencies: + - bufferutil + - encoding + - typescript + - utf-8-validate + - zod + web3@4.8.0(bufferutil@4.0.8)(typescript@5.4.5)(utf-8-validate@5.0.10)(zod@3.23.6): dependencies: web3-core: 4.3.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -43182,6 +43267,11 @@ snapshots: bufferutil: 4.0.8 utf-8-validate: 5.0.10 + ws@7.4.6(bufferutil@4.0.8)(utf-8-validate@6.0.3): + optionalDependencies: + bufferutil: 4.0.8 + utf-8-validate: 6.0.3 + ws@7.5.10(bufferutil@4.0.8)(utf-8-validate@5.0.10): optionalDependencies: bufferutil: 4.0.8 diff --git a/temp.txt b/temp.txt new file mode 100644 index 00000000000..e69de29bb2d