Skip to content

Commit

Permalink
Add ItchySats App
Browse files Browse the repository at this point in the history
ItchySats enables trustless derivatives on Bitcoin using DLCs.
  • Loading branch information
1010Tom authored and klochowicz committed Dec 9, 2021
1 parent abec05a commit ba78533
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
Empty file added apps/itchysats/data/.gitkeep
Empty file.
23 changes: 23 additions & 0 deletions apps/itchysats/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: "3.7"

services:
web:
image: ghcr.io/itchysats/itchysats/taker:0.3.0@sha256:89adbae24d5c36c2516357b1267fc8f0c8fed59f99dc3c07b75617685ef525c5
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
- mainnet
- --electrum=tcp://$ELECTRUM_IP:$ELECTRUM_PORT

networks:
default:
ipv4_address: $APP_ITCHYSATS_IP



24 changes: 24 additions & 0 deletions apps/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -636,5 +636,29 @@
],
"path": "",
"defaultPassword": ""
},
{
"id": "itchysats",
"category": "Finance",
"name": "ItchySats",
"version": "v0.3.0",
"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": [
"bitcoind",
"electrum"
],
"repo": "https://github.com/itchysats/itchysats",
"support": "https://github.com/itchysats/itchysats/issues",
"port": 7113,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "",
"defaultPassword": ""
}
]
4 changes: 4 additions & 0 deletions scripts/configure
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ APP_TALLYCOIN_CONNECT_PORT="8123"
APP_SYNCTHING_IP="10.21.21.61"
APP_SYNCTHING_PORT="8384"
APP_SYNCTHING_SYNC_PORT="22000"
APP_ITCHYSATS_IP="10.21.21.62"
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 @@ -429,6 +431,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-syncthing-ip>/${APP_SYNCTHING_IP}/g" "${template}"
sed -i "s/<app-syncthing-port>/${APP_SYNCTHING_PORT}/g" "${template}"
sed -i "s/<app-syncthing-sync-port>/${APP_SYNCTHING_SYNC_PORT}/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
2 changes: 2 additions & 0 deletions templates/.env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ APP_TALLYCOIN_CONNECT_PORT=<app-tallycoin-connect-port>
APP_SYNCTHING_IP=<app-syncthing-ip>
APP_SYNCTHING_PORT=<app-syncthing-port>
APP_SYNCTHING_SYNC_PORT=<app-syncthing-sync-port>
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 @@ -44,3 +44,7 @@ HiddenServicePort 80 <app-tallycoin-connect-ip>:<app-tallycoin-connect-port>
# syncthing Hidden Service
HiddenServiceDir /var/lib/tor/app-syncthing
HiddenServicePort 80 <app-syncthing-ip>:<app-syncthing-port>

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

0 comments on commit ba78533

Please sign in to comment.