mirror of
https://github.com/basicswap/basicswap.git
synced 2025-01-03 17:29:26 +00:00
Initial settings for ghost
This commit is contained in:
parent
e39613f49d
commit
39141f7e8d
8 changed files with 112 additions and 0 deletions
|
@ -31,6 +31,8 @@ class Coins(IntEnum):
|
|||
LTC_MWEB = 15
|
||||
# ZANO = 16
|
||||
BCH = 17
|
||||
GHOST = 18
|
||||
GHOST_ANON = 19
|
||||
|
||||
|
||||
chainparams = {
|
||||
|
@ -478,6 +480,47 @@ chainparams = {
|
|||
"max_amount": 10000000 * COIN,
|
||||
},
|
||||
},
|
||||
|
||||
Coins.GHOST: {
|
||||
"name": "ghost",
|
||||
"ticker": "GHOST",
|
||||
"message_magic": "Bitcoin Signed Message:\n",
|
||||
"blocks_target": 60 * 2,
|
||||
"decimal_places": 8,
|
||||
"mainnet": {
|
||||
"rpcport": 51728,
|
||||
"pubkey_address": 0x26,
|
||||
"script_address": 0x61,
|
||||
"key_prefix": 0xA6,
|
||||
"stealth_key_prefix": 0x14,
|
||||
"hrp": "gw",
|
||||
"bip44": 44,
|
||||
"min_amount": 100000,
|
||||
"max_amount": 10000000 * COIN,
|
||||
},
|
||||
"testnet": {
|
||||
"rpcport": 51928,
|
||||
"pubkey_address": 0x4B,
|
||||
"script_address": 0x89,
|
||||
"key_prefix": 0x2E,
|
||||
"stealth_key_prefix": 0x14,
|
||||
"hrp": "tpw",
|
||||
"bip44": 1,
|
||||
"min_amount": 100000,
|
||||
"max_amount": 10000000 * COIN,
|
||||
},
|
||||
"regtest": {
|
||||
"rpcport": 51936,
|
||||
"pubkey_address": 0x76,
|
||||
"script_address": 0x7A,
|
||||
"key_prefix": 0x2E,
|
||||
"stealth_key_prefix": 0x15,
|
||||
"hrp": "rtpw",
|
||||
"bip44": 1,
|
||||
"min_amount": 100000,
|
||||
"max_amount": 10000000 * COIN,
|
||||
},
|
||||
},
|
||||
}
|
||||
ticker_map = {}
|
||||
|
||||
|
|
|
@ -49,4 +49,13 @@ XMR_BINDIR = os.path.expanduser(
|
|||
XMRD = os.getenv("XMRD", "monerod" + bin_suffix)
|
||||
XMR_WALLET_RPC = os.getenv("XMR_WALLET_RPC", "monero-wallet-rpc" + bin_suffix)
|
||||
|
||||
|
||||
GHOST_BINDIR = os.path.expanduser(
|
||||
os.getenv("GHOST_BINDIR", os.path.join(DEFAULT_TEST_BINDIR, "ghost"))
|
||||
)
|
||||
|
||||
GHOSTD = os.getenv("GHOSTD", "ghostd" + bin_suffix)
|
||||
GHOST_CLI = os.getenv("GHOST_CLI", "GHOST-cli" + bin_suffix)
|
||||
GHOST_TX = os.getenv("GHOST_TX", "ghost-tx" + bin_suffix)
|
||||
|
||||
# NOTE: Adding coin definitions here is deprecated. Please add in coin test file.
|
||||
|
|
BIN
basicswap/static/images/coins/Ghost-20.png
Normal file
BIN
basicswap/static/images/coins/Ghost-20.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
basicswap/static/images/coins/Ghost.png
Normal file
BIN
basicswap/static/images/coins/Ghost.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
16
docker/production/compose-fragments/1_ghost.yml
Normal file
16
docker/production/compose-fragments/1_ghost.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
ghost_core:
|
||||
image: i_ghost
|
||||
build:
|
||||
context: ghost
|
||||
dockerfile: Dockerfile
|
||||
container_name: ghost_core
|
||||
volumes:
|
||||
- ${DATA_PATH}/ghost-core:/data
|
||||
expose:
|
||||
- ${WOW_RPC_PORT}
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
restart: unless-stopped
|
|
@ -78,3 +78,11 @@ BCH_RPC_HOST=bitcoincash_core
|
|||
BCH_RPC_PORT=19797
|
||||
BCH_RPC_USER=bitcoincash_user
|
||||
BCH_RPC_PWD=bitcoincash_pwd
|
||||
|
||||
|
||||
GHOST_DATA_DIR=/data/ghost
|
||||
GHOST_RPC_HOST=ghost_core
|
||||
GHOST_RPC_PORT=51728
|
||||
GHOST_ZMQ_PORT=20792
|
||||
GHOST_RPC_USER=ghost_user
|
||||
GHOST_RPC_PWD=ghost_pwd
|
25
docker/production/ghost/Dockerfile
Normal file
25
docker/production/ghost/Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM i_swapclient as install_stage
|
||||
|
||||
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=ghost,particl && \
|
||||
find /coin_bin -name *.tar.gz -delete
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
COPY --from=install_stage /coin_bin .
|
||||
|
||||
ENV GHOST_DATA /data
|
||||
|
||||
RUN groupadd -r ghost && useradd -r -m -g ghost ghost \
|
||||
&& apt-get update \
|
||||
&& apt-get install -qq --no-install-recommends gosu \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& mkdir -p "$GHOST_DATA" \
|
||||
&& chown -R ghost:ghost "$GHOST_DATA" \
|
||||
&& ln -sfn "$GHOST_DATA" /home/ghost/.ghost \
|
||||
&& chown -h ghost:ghost /home/ghost/.ghost
|
||||
VOLUME /data
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
EXPOSE 51735 20792 51738
|
||||
CMD ["/ghost/ghostd", "--datadir=/data"]
|
11
docker/production/ghost/entrypoint.sh
Executable file
11
docker/production/ghost/entrypoint.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [[ "$1" == "ghost-cli" || "$1" == "ghost-tx" || "$1" == "ghostd" || "$1" == "test_ghost" ]]; then
|
||||
mkdir -p "$ghost_DATA"
|
||||
|
||||
chown -h ghost:ghost /home/ghost/.ghost
|
||||
exec gosu ghost "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
Loading…
Reference in a new issue