Skip to content

Commit

Permalink
Revert "Merge pull request #25 from drips-network/multi-chain-api"
Browse files Browse the repository at this point in the history
This reverts commit bbfe838, reversing
changes made to b351e6a.
  • Loading branch information
efstajas committed Oct 10, 2024
1 parent bbfe838 commit 855daf9
Show file tree
Hide file tree
Showing 83 changed files with 4,669 additions and 7,585 deletions.
48 changes: 17 additions & 31 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
PORT=string # Optional. The API server port. Defaults to 8080.

NETWORK=string # Required. The network to connect to. See `SupportedChains` in `types.ts` for supported networks.

# You should provide at least one of the following RPC URLs:
RPC_URL_MAINNET=string # The RPC URL for the Mainnet provider.
RPC_ACCESS_TOKEN_MAINNET=string # Optional. The access token to use for the RPC. If specified, it will be used as a bearer token in the `Authorization` header.
RPC_URL_SEPOLIA=string # The RPC URL for the Sepolia provider.
RPC_ACCESS_TOKEN_SEPOLIA=string # Optional. The access token to use for the RPC. If specified, it will be used as a bearer token in the `Authorization` header.
RPC_URL_OPTIMISM_SEPOLIA=string # The RPC URL for the Optimism Sepolia provider.
RPC_ACCESS_TOKEN_OPTIMISM_SEPOLIA=string # Optional. The access token to use for the RPC. If specified, it will be used as a bearer token in the `Authorization` header.
RPC_URL_POLYGON_AMOY=string # The RPC URL for the Polygon Amoy provider.
RPC_ACCESS_TOKEN_POLYGON_AMOY=string # Optional. The access token to use for the RPC. If specified, it will be used as a bearer token in the `Authorization` header.
RPC_URL_FILECOIN=string # The RPC URL for the Filecoin provider.
RPC_ACCESS_TOKEN_FILECOIN=string # Optional. The access token to use for the RPC. If specified, it will be used as a bearer token in the `Authorization` header.

PUBLIC_API_KEYS=string # Required. Comma-separated list of strings API keys that rate limit is applied to.
DRIPS_API_KEY=string # Required. API key withouth rate limit.

NODE_ENV=string # Required. 'development' or 'production'.

POSTGRES_CONNECTION_STRING=string # Required. The connection string for the database.

PRETEND_ALL_REPOS_EXIST=boolean # If true, app will always assume all GitHub repos exist. Used in E2E tests. Defaults to false.

RATE_LIMIT_WINDOW_IN_MINUTES=number # Optional. defaults to 2.
RATE_LIMIT_MAX_REQUESTS_PER_WINDOW=number # Optional. defaults to 1000.
MAX_QUERY_DEPTH=number # Optional. defaults to 4.
TIMEOUT_IN_SECONDS=number # Optional. defaults to 20.

IPFS_GATEWAY_URL=string # Optional. The IPFS gateway URL to use for fetching IPFS data. Defaults to 'https://drips.mypinata.cloud'.
PORT=string
NETWORK=string # See 'SupportedNetwork' type.
PUBLIC_API_KEYS=string # comma-separated list of strings
DRIPS_API_KEY=string
INFURA_API_KEY=string
POSTGRES_CONNECTION_STRING=string
REPO_DRIVER_ADDRESS=string # optional, defaults to mainnet address of latest deployment
DRIPS_ADDRESS=string # optional, defaults to mainnet address of latest deployment
RPC_URL=string # optional, defaults to infura mainnet
PRETEND_ALL_REPOS_EXIST=boolean # true or false. If true, app will always assume all GitHub repos exist. Used in E2E tests. Defaults to false.
NODE_ENV=string # 'development' or 'production'.
RATE_LIMIT_WINDOW_IN_MINUTES=number # optional, defaults to 2.
RATE_LIMIT_MAX_REQUESTS_PER_WINDOW=number # optional, defaults to 1000.
MAX_QUERY_DEPTH=number # optional, defaults to 4.
TIMEOUT_IN_SECONDS=number # optional, defaults to 20.
ADDRESS_DRIVER_ADDRESS=string # required, address of the `AddressDriver` contract.
IPFS_GATEWAY_URL=string # required, URL of the IPFS gateway.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN npm ci
ENV PORT=8080
ENV NETWORK=localtestnet
ENV PUBLIC_API_KEYS=afdb8b7e-8fa7-4de9-bd95-b650b839e745
ENV INFURA_API_KEY=ef24377ad66642b8a0dcdaa42ea95e7c
ENV POSTGRES_CONNECTION_STRING=postgresql://user:admin@postgres-event-processor:5432/dripsdb
ENV PRETEND_ALL_REPOS_EXIST=true
ENV REPO_DRIVER_ADDRESS=0xb9C8e18E82687a564Ac4D26E22D28a4C95057CE9
Expand Down
Loading

0 comments on commit 855daf9

Please sign in to comment.