Skip to content

Commit

Permalink
Merge pull request #752 from bcnmy/chore/cleanup
Browse files Browse the repository at this point in the history
chore(cleanup): big cleanup
  • Loading branch information
TheDivic authored Dec 5, 2024
2 parents a90fe62 + 321990d commit 6629fb8
Show file tree
Hide file tree
Showing 31 changed files with 2,522 additions and 4,368 deletions.
40 changes: 26 additions & 14 deletions .env-example
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
# - Core bundler environment variables -

BUNDLER_CONFIG_PASSPHRASE=
BUNDLER_NODE_PATH_INDEX=0
BUNDLER_CHAIN_ID=80001
BUNDLER_MIN_RELAYER_COUNT=5
BUNDLER_MAX_RELAYER_COUNT=10
BUNDLER_FUNDING_BALANCE_THRESHOLD=0.1
BUNDLER_FUNDING_RELAYER_AMOUNT=0.2
BUNDLER_SLACK_JSON='{"token": "","channel": ""}'
BUNDLER_PROVIDER_JSON='{"137": "", "42161": "", "56": "", "10": "", "43114": "", "8453": "", "80001": ""}'
BUNDLER_DATASOURCES_JSON= '{"mongoUrl": "", "redisUrl": ""}'
BUNDLER_QUEUE_URL=""
BUNDLER_IS_TRUSTWALLET_SETUP=true
BUNDLER_FALLBACK_PROVIDER_JSON='{"137": ["", ""], "42161": ["", ""], "56": ["", ""], "10": ["", ""], "43114": ["", ""], "8453": ["", ""], "80001": ["", ""]}'
NODE_PATH_INDEX=0
# 🔥 make sure this is never development when deploying to production 🔥
NODE_ENV=development

# - Smoke tests environment variables -

# You can set the folloowing to a production deployment if you want to run smoke tests against the production environment
SMOKE_TEST_BUNDLER_HOSTNAME=https://bundler.biconomy.io

# - E2E tests environment variables -

# Following are the environment variables required for e2e tests, see the docstrings inside src/test/e2e/nativeTransfer.test.ts for more information
# Set this to the private key of the EOA account that will be used to derive the smart account
PRIVATE_KEY=

# Set this to https://bundler.biconomy.io if you want to test against the production environment
BUNDLER_HOSTNAME=http://localhost:3000

// make sure this is never development when deploying to production, and delete this line
NODE_ENV=
# You don't have to set all of the paymasters, just the ones you want to test e2e
BASE_MAINNET_PAYMASTER_URL=
AVALANCHE_MAINNET_PAYMASTER_URL=
OPTIMISM_MAINNET_PAYMASTER_URL=
POLYGON_MAINNET_PAYMASTER_URL=
BSC_MAINNET_PAYMASTER_URL=
ARBITRUM_MAINNET_PAYMASTER_URL=
8 changes: 4 additions & 4 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 node:21.6-bookworm as builder
FROM --platform=linux/amd64 node:21.6-bookworm AS builder

# Install dependencies

Expand All @@ -15,7 +15,7 @@ COPY package.json yarn.lock ./
RUN yarn install

# Copy the rest of the files
COPY . .
# COPY . .

# Second stage
FROM --platform=linux/amd64 node:21.6-bookworm
Expand All @@ -24,8 +24,8 @@ FROM --platform=linux/amd64 node:21.6-bookworm
# NOTE: See https://github.com/hexops/dockerfile#is-tini-still-required-in-2020-i-thought-docker-added-it-natively

RUN apt-get update && apt-get install -y \
tini \
&& rm -rf /var/lib/apt/lists/*
tini \
&& rm -rf /var/lib/apt/lists/*


# Expose the port
Expand Down
30 changes: 0 additions & 30 deletions centrifugo_config.json

This file was deleted.

Loading

0 comments on commit 6629fb8

Please sign in to comment.