Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions container_env_files/cgw.env
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ SAFE_CONFIG_BASE_URI=http://nginx:8000/cfg
# The RPC provider to be used.
INFURA_API_KEY=''

# CORS
ALLOW_CORS=true

# Redis
# The host name of where the Redis instance is running
REDIS_HOST=cgw-redis
Expand Down Expand Up @@ -69,6 +72,7 @@ RELAY_PROVIDER_API_KEY_AVALANCHE=''
RELAY_PROVIDER_API_KEY_LINEA=''
RELAY_PROVIDER_API_KEY_BLAST=''
RELAY_PROVIDER_API_KEY_SEPOLIA=''
RELAY_PROVIDER_API_KEY_UNICHAIN=''

# Staking Provider
# The staking provider to be used.
Expand All @@ -92,5 +96,21 @@ JWT_SECRET=''
# Community
FINGERPRINT_ENCRYPTION_KEY=''

# DB
POSTGRES_HOST=cgw-db
POSTGRES_DB=postgres

# CSV Export
CSV_AWS_ACCESS_KEY_ID=dummy
CSV_AWS_SECRET_ACCESS_KEY=dummy
AWS_ACCESS_KEY_ID=dummy
AWS_SECRET_ACCESS_KEY=dummy

# The encrypted blocklist data
# This contains the list of blocked addresses in encrypted format
BLOCKLIST_ENCRYPTED_DATA=
# The secret key for decrypting the blocked addresses list
BLOCKLIST_SECRET_KEY=
# The salt used for key derivation during encryption/decryption
# Use a unique salt per environment
BLOCKLIST_SECRET_SALT=
5 changes: 4 additions & 1 deletion container_env_files/ui.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
NEXT_PUBLIC_INFURA_TOKEN=
NEXT_PUBLIC_GATEWAY_URL_PRODUCTION=http://localhost:8000/cgw

### For specific chain deployment
NEXT_PUBLIC_DEFAULT_MAINNET_CHAIN_ID=

# infura token used by Safe Apps
NEXT_PUBLIC_SAFE_APPS_INFURA_TOKEN=

Expand All @@ -25,7 +28,7 @@ NEXT_PUBLIC_SENTRY_DSN=
NEXT_PUBLIC_BEAMER_ID=

# Wallet specific variables
NEXT_PUBLIC_WC_BRIDGE=
NEXT_PUBLIC_WC_PROJECT_ID=
NEXT_PUBLIC_FORTMATIC_KEY=
NEXT_PUBLIC_PORTIS_KEY=
NEXT_PUBLIC_CYPRESS_MNEMONIC=
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ services:
- cfg-web
- cgw-web
- events-web
- ui

txs-db:
image: postgres:14-alpine
Expand Down Expand Up @@ -168,8 +169,6 @@ services:
image: safeglobal/safe-wallet-web:${UI_VERSION}
env_file:
- container_env_files/ui.env
depends_on:
- nginx
expose:
- 8080

Expand Down
4 changes: 4 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Safe Infrastructure

> Please note that software releases of some Safe services after Feb 17, 2026 are published by Safe Labs under **FSL-1.1-MIT license**.
> This license does not permit making the software available to others in certain commercial products or services. You can find the applicable license texts in each GitHub repository and more information in our [blog](https://safe.global/blog/providing-the-infrastructure-for-self-custody-for-the-next-generation).

**Safe infrastructure diagram**

<figure><img src="./diagrams/safe-infrastructure-diagram.png" width="100%" alt="" /></figure>

- **Tx Service** is the core of the Safe. It indexes multisig transactions, module transactions, token transfers, collects signatures... There must be **1 Tx Service per Chain**, with different workers, PostgreSQL, Redis and RabbitMQ.
Expand Down
12 changes: 12 additions & 0 deletions docs/chain_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,15 @@ For the web app to be able to render links correctly you need to supply URLs wit
```

The `{{address}}` (Ethereum address `0x` prefixed) and `{{txHash}}` (transaction hash) are markers in the URL acting as placeholders that the Safe web app will use to replace values to construct links to block explorer corresponding to that chain. It is important that you indicate these correctly so links are valid at the moment of rendering.

## Features

Add and Enable the following features to your chain:

- `MY_ACCOUNTS `
- `SPENDING_LIMIT`
- `SAFE_APPS`
- `ERC1155`
- `ERC721`
- `DOMAIN_LOOKUP`
- `CONTRACT_INTERACTION`