Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ItchySats App #1149

Merged
merged 3 commits into from
Dec 30, 2021
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
Empty file added apps/itchysats/data/.gitkeep
Empty file.
21 changes: 21 additions & 0 deletions apps/itchysats/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: "3.7"

services:
web:
image: ghcr.io/itchysats/itchysats/taker:0.3.3@sha256:216d19fafe41860c78366737a79088f1049240723cf587ba7b049b071c1fac62
restart: on-failure
stop_grace_period: 1m
ports:
- ${APP_ITCHYSATS_PORT}:8000
volumes:
- ${APP_DATA_DIR}/data:/data
command:
- --maker=mainnet.itchysats.network:9999
- --maker-id=7e35e34801e766a6a29ecb9e22810ea4e3476c2b37bf75882edf94a68b1d9607
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this id used for?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the maker's public key which is needed to have an encrypted connection with the maker behind mainnet.itchysats.network:9999.

- --password=$APP_PASSWORD
- mainnet
- --electrum=tcp://$ELECTRUM_IP:$ELECTRUM_PORT

networks:
default:
ipv4_address: $APP_ITCHYSATS_IP
25 changes: 25 additions & 0 deletions apps/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,30 @@
],
"path": "",
"defaultPassword": ""
},
{
"id": "itchysats",
"category": "Finance",
"name": "ItchySats",
"version": "v0.3.3",
"tagline": "Peer-2-peer derivatives on Bitcoin",
"description": "ItchySats enables peer-2-peer CFD trading on Bitcoin using DLCs (discreet log contracts). No account needed, no trusted third-party - just you and your keys.\n\nThis is beta software. We tested it on test- and mainnet, but there are no guarantees that it will always behave as expected.\nPlease be mindful with how much money you trust the application with.\nCFDs trading is inherently risky, be sure to read up on it before using this application.\n\nThat said: This is pretty awesome, go nuts!\n\n1. Fund the ItchySats wallet\n2. Open a position\n3. Watch the price go up\n4. Profit\n\nLimitations of the mainnet beta:\n\n1. You can only open long positions at the moment\n2. Minimum position quantity is $100, maximum $1000\n3. CFDs period ends after 7 days - perpetual positions are in the making :)\n4. The leverage is fixed at 2\n\nWe are woking hard on perpetual positions and allowing sell positions.\nUpdate to be expected soon!",
"developer": "ItchySats",
"website": "https://itchysats.network",
"dependencies": [
"electrum"
],
"repo": "https://github.com/itchysats/itchysats",
"support": "https://github.com/itchysats/itchysats/issues",
"port": 7113,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"defaultUsername": "itchysats",
"deterministicPassword": true,
"torOnly": false
}
]
4 changes: 4 additions & 0 deletions scripts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ APP_UPTIME_KUMA_PORT="8385"
APP_UPTIME_KUMA_IP="10.21.21.62"
APP_HELIPAD_PORT="2112"
APP_HELIPAD_IP="10.21.21.65"
APP_ITCHYSATS_IP="10.21.21.64"
APP_ITCHYSATS_PORT="7113"

# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
Expand Down Expand Up @@ -439,6 +441,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-uptime-kuma-ip>/${APP_UPTIME_KUMA_IP}/g" "${template}"
sed -i "s/<app-helipad-port>/${APP_HELIPAD_PORT}/g" "${template}"
sed -i "s/<app-helipad-ip>/${APP_HELIPAD_IP}/g" "${template}"
sed -i "s/<app-itchysats-ip>/${APP_ITCHYSATS_IP}/g" "${template}"
sed -i "s/<app-itchysats-port>/${APP_ITCHYSATS_PORT}/g" "${template}"
done

##########################################################
Expand Down
4 changes: 3 additions & 1 deletion templates/.env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,6 @@ APP_SYNCTHING_SYNC_PORT=<app-syncthing-sync-port>
APP_UPTIME_KUMA_PORT=<app-uptime-kuma-port>
APP_UPTIME_KUMA_IP=<app-uptime-kuma-ip>
APP_HELIPAD_PORT=<app-helipad-port>
APP_HELIPAD_IP=<app-helipad-ip>
APP_HELIPAD_IP=<app-helipad-ip>
APP_ITCHYSATS_IP=<app-itchysats-ip>
APP_ITCHYSATS_PORT=<app-itchysats-port>
4 changes: 4 additions & 0 deletions templates/torrc-apps-3-sample
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ HiddenServicePort 80 <app-uptime-kuma-ip>:3001
# helipad Hidden Service
HiddenServiceDir /var/lib/tor/app-helipad
HiddenServicePort 80 <app-helipad-ip>:2112

# itchysats Hidden Service
HiddenServiceDir /var/lib/tor/app-itchysats
HiddenServicePort 80 <app-itchysats-ip>:8000