This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
forked from 5afe/safe-react
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
151 additions
and
9 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
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,54 @@ | ||
[ | ||
{ | ||
"model": "chains.chain", | ||
"pk": 288, | ||
"fields": { | ||
"relevance": 1, | ||
"name": "Boba", | ||
"short_name": "boba", | ||
"description": "Boba Network", | ||
"l2": true, | ||
"rpc_authentication": "API_KEY_PATH", | ||
"rpc_uri": "https://mainnet.boba.network/", | ||
"safe_apps_rpc_authentication": "NO_AUTHENTICATION", | ||
"safe_apps_rpc_uri": "https://mainnet.boba.network/", | ||
"block_explorer_uri_address_template": "https://blockexplorer.boba.network/address/{{address}}", | ||
"block_explorer_uri_tx_hash_template": "https://blockexplorer.boba.network/tx/{{txHash}}", | ||
"currency_name": "Ether", | ||
"currency_symbol": "ETH", | ||
"currency_decimals": 18, | ||
"currency_logo_uri": "chains/1/currency_logo.png", | ||
"transaction_service_uri": "http://nginx-safe-transaction-service:8000", | ||
"vpc_transaction_service_uri": "http://nginx-safe-transaction-service:8000", | ||
"theme_text_color": "#001428", | ||
"theme_background_color": "#E8E7E6", | ||
"recommended_master_copy_version": "1.3.0" | ||
} | ||
}, | ||
{ | ||
"model": "chains.chain", | ||
"pk": 28, | ||
"fields": { | ||
"relevance": 2, | ||
"name": "Boba Rinkeby", | ||
"short_name": "boba_rinkeby", | ||
"description": "Boba Network Rinkeby", | ||
"l2": true, | ||
"rpc_authentication": "NO_AUTHENTICATION", | ||
"rpc_uri": "https://rinkeby.boba.network", | ||
"safe_apps_rpc_authentication": "NO_AUTHENTICATION", | ||
"safe_apps_rpc_uri": "https://rinkeby.boba.network", | ||
"block_explorer_uri_address_template": "https://blockexplorer.rinkeby.boba.network/address/{{address}}", | ||
"block_explorer_uri_tx_hash_template": "https://blockexplorer.rinkeby.boba.network/tx/{{txHash}}", | ||
"currency_name": "Ether", | ||
"currency_symbol": "ETH", | ||
"currency_decimals": 18, | ||
"currency_logo_uri": "chains/1/currency_logo.png", | ||
"transaction_service_uri": "http://nginx-safe-transaction-service:8000", | ||
"vpc_transaction_service_uri": "http://nginx-safe-transaction-service:8000", | ||
"theme_text_color": "#ffffff", | ||
"theme_background_color": "#E8673C", | ||
"recommended_master_copy_version": "1.3.0" | ||
} | ||
} | ||
] |
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,3 @@ | ||
DOCKER_BUILDKIT=1 | ||
COMPOSE_DOCKER_CLI_BUILD=1 | ||
docker-compose build -- safe-react safe-config-service safe-client-gateway safe-transaction-service |
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,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
docker exec -it boba_ops-safe-transaction-service-1 python manage.py createsuperuser |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
docker compose cp boba_chains.json safe-config-service:/tmp/boba_chains.json | ||
./run manage loaddata /tmp/boba_chains.json |
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,50 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
DC="${DC:-exec}" | ||
|
||
# If we're running in CI we need to disable TTY allocation for docker-compose | ||
# commands that enable it by default, such as exec and run. | ||
TTY="" | ||
if [[ ! -t 1 ]]; then | ||
TTY="-T" | ||
fi | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Helper functions start with _ and aren't listed in this script's help menu. | ||
# ----------------------------------------------------------------------------- | ||
|
||
function _dc { | ||
docker-compose "${DC}" ${TTY} "${@}" | ||
} | ||
|
||
# ----------------------------------------------------------------------------- | ||
|
||
function cmd { | ||
# Run any command you want in the safe-config-service container | ||
_dc safe-config-service "${@}" | ||
} | ||
|
||
function manage { | ||
# Run any manage.py commands | ||
|
||
# We need to collectstatic before we run our tests. | ||
if [ "${1-''}" == "test" ]; then | ||
cmd python src/manage.py collectstatic --no-input | ||
fi | ||
|
||
cmd python src/manage.py "${@}" | ||
} | ||
|
||
function help { | ||
printf "%s <task> [args]\n\nTasks:\n" "${0}" | ||
|
||
compgen -A function | grep -v "^_" | cat -n | ||
|
||
printf "\nExtended help:\n Each task has comments for general usage\n" | ||
} | ||
|
||
# This idea is heavily inspired by: https://github.com/adriancooney/Taskfile | ||
TIMEFORMAT=$'\nTask completed in %3lR' | ||
time "${@:-help}" |
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