Browse Source
Add krystal-bull app (#984 )
Co-authored-by: Luke Childs <lukechilds123@gmail.com>
finance
rorp
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
66 additions and
3 deletions
apps/krystal-bull/data/oracleserver/.gitkeep
apps/krystal-bull/docker-compose.yml
apps/registry.json
scripts/configure
templates/.env-sample
templates/torrc-apps-3-sample
@ -0,0 +1,29 @@
version : "3.7"
services:
web:
image : bitcoinscala/oracle-server-ui:0.0.1-864a9f4a-SNAPSHOT
user : "1000:1000"
restart : on -failure
stop_grace_period : 1m
environment:
ORACLE_SERVER_API_URL : "http://${APP_KRYSTAL_BULL_SERVER_IP}:9998/"
TOR_PROXY : socks5://${TOR_PROXY_IP}:${TOR_PROXY_PORT}
ports:
- "${APP_KRYSTAL_BULL_PORT}:3001"
networks:
default:
ipv4_address : $APP_KRYSTAL_BULL_IP
depends_on :
- oracleserver
oracleserver:
image : bitcoinscala/bitcoin-s-oracle-server:1.7.0-212-d9126650-SNAPSHOT
user : "1000:1000"
restart : on -failure
volumes:
- ${APP_DATA_DIR}/data/oracleserver:/home/bitcoin-s/.bitcoin-s
environment:
BITCOIN_S_KEYMANAGER_ENTROPY : $APP_SEED
networks:
default:
ipv4_address : $APP_KRYSTAL_BULL_SERVER_IP
@ -525,5 +525,26 @@
] ,
"path" : "/login?user=umbrel" ,
"defaultPassword" : "moneyprintergobrrr"
} ,
{
"id" : "krystal-bull" ,
"category" : "Social" ,
"name" : "Krystal Bull" ,
"version" : "1.7.0-212-d9126650" ,
"tagline" : "Become an oracle and create Bitcoin bets" ,
"description" : "Krystal Bull allows you to become a Bitcoin oracle. An oracle allows information from the real world (financial markets, sporting events, elections, etc) to be used to create and settle Bitcoin bets.\n\nThe oracle is a crucial component for Discreet Log Contracts (DLC). Without a trustworthy oracle, you cannot create a bet on Bitcoin using DLCs. Trustworthy oracles are a building block to realizing Bitcoin DeFi.\n\nTo see some example oracles, please visit oracle.suredbits.com.\n\nWARNING: This version of Krystal Bull is an early alpha release for testing. It's not secure, please don't use it for anything serious." ,
"developer" : "SuredBits" ,
"website" : "https://suredbits.com/" ,
"dependencies" : [ ] ,
"repo" : "https://github.com/bitcoin-s/krystal-bull" ,
"support" : "https://join.slack.com/t/suredbits/shared_invite/zt-eavycu0x-WQL7XOakzQo8tAy7jHHZUw" ,
"port" : 3010 ,
"gallery" : [
"1.jpg" ,
"2.jpg" ,
"3.jpg"
] ,
"path" : "" ,
"defaultPassword" : ""
}
]
@ -202,7 +202,10 @@ APP_SQUEAKNODE_PORT="12994"
APP_SQUEAKNODE_GRPC_PORT="8994"
APP_SQUEAKNODE_P2P_PORT="8555"
APP_SQUEAKNODE_P2P_TESTNET_PORT="18555"
APP_NODE_RED_IP="10.21.21.57"
APP_KRYSTAL_BULL_IP="10.21.21.56"
APP_KRYSTAL_BULL_PORT="3010"
APP_KRYSTAL_BULL_SERVER_IP="10.21.21.57"
APP_NODE_RED_IP="10.21.21.55"
APP_NODE_RED_PORT="1880"
# Generate RPC credentials
@ -403,6 +406,9 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-squeaknode-grpc-port>/${APP_SQUEAKNODE_GRPC_PORT}/g" "${template}"
sed -i "s/<app-squeaknode-p2p-port>/${APP_SQUEAKNODE_P2P_PORT}/g" "${template}"
sed -i "s/<app-squeaknode-p2p-testnet-port>/${APP_SQUEAKNODE_P2P_TESTNET_PORT}/g" "${template}"
sed -i "s/<app-krystal-bull-ip>/${APP_KRYSTAL_BULL_IP}/g" "${template}"
sed -i "s/<app-krystal-bull-port>/${APP_KRYSTAL_BULL_PORT}/g" "${template}"
sed -i "s/<app-krystal-bull-server-ip>/${APP_KRYSTAL_BULL_SERVER_IP}/g" "${template}"
sed -i "s/<app-node-red-ip>/${APP_NODE_RED_IP}/g" "${template}"
sed -i "s/<app-node-red-port>/${APP_NODE_RED_PORT}/g" "${template}"
done
@ -96,5 +96,8 @@ APP_SQUEAKNODE_PORT=<app-squeaknode-port>
APP_SQUEAKNODE_GRPC_PORT=<app-squeaknode-grpc-port>
APP_SQUEAKNODE_P2P_PORT=<app-squeaknode-p2p-port>
APP_SQUEAKNODE_P2P_TESTNET_PORT=<app-squeaknode-p2p-testnet-port>
APP_KRYSTAL_BULL_IP=<app-krystal-bull-ip>
APP_KRYSTAL_BULL_PORT=<app-krystal-bull-port>
APP_KRYSTAL_BULL_SERVER_IP=<app-krystal-bull-server-ip>
APP_NODE_RED_IP=<app-node-red-ip>
APP_NODE_RED_PORT=<app-node-red-port>
@ -21,6 +21,10 @@ HiddenServiceDir /var/lib/tor/app-squeaknode-p2p
HiddenServicePort <app-squeaknode-p2p-port> <app-squeaknode-ip>:<app-squeaknode-p2p-port>
HiddenServicePort <app-squeaknode-p2p-testnet-port> <app-squeaknode-ip>:<app-squeaknode-p2p-testnet-port>
# krystal-bull Hidden Service
HiddenServiceDir /var/lib/tor/app-krystal-bull
HiddenServicePort 80 <app-krystal-bull-ip>:3001
# node-red Hidden Service
HiddenServiceDir /var/lib/tor/app-node-red
HiddenServicePort 80 <app-node-red-ip>:<app-node-red-port>