Skip to content
Draft
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
3 changes: 2 additions & 1 deletion server/cmd/dcrdex/sample-dcrdex.conf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
; PostgreSQL DB password.
; Can be omitted when UNIX socket is used.
; HINT: check pg_hba.conf for postgresql authentication settings.
; pgpass=
pgpass=dexpass

; PostgreSQL server host:port or UNIX socket (e.g. /run/postgresql).
; Default value is 127.0.0.1:5432
Expand Down Expand Up @@ -182,3 +182,4 @@
; Disable the HTTP data API.
; Default is false.
; nodata=true

73 changes: 19 additions & 54 deletions server/cmd/dcrdex/sample-markets.json
Original file line number Diff line number Diff line change
@@ -1,81 +1,46 @@
{
"markets": [
{
"base": "DCR_mainnet",
"quote": "BTC_mainnet",
"base": "DCR_testnet",
"quote": "ETH_testnet",
"lotSize": 100000000,
"rateStep": 100000,
"epochDuration": 10000,
"rateStep": 1000,
"epochDuration": 6000,
"marketBuyBuffer": 1.25
},
{
"base": "BTC_testnet",
"quote": "LTC_testnet",
"lotSize": 100000,
"base": "DCR_testnet",
"quote": "USDC_ETH_testnet",
"lotSize": 100000000,
"rateStep": 1000000,
"epochDuration": 6000,
"marketBuyBuffer": 1.25
}
],
"assets": {
"DCR_mainnet": {
"bip44symbol": "dcr",
"network": "mainnet",
"maxFeeRate": 10,
"swapConf": 4,
"configPath": "/home/dcrd/.dcrd/dcrd.conf",
"regConfs": 2,
"regFee": 10000000,
"regXPub": "xpubdecredonlyadsf",
"bondAmt": 100000000,
"bondConfs": 1
},
"DCR_testnet": {
"bip44symbol": "dcr",
"network": "testnet",
"maxFeeRate": 10,
"swapConf": 1,
"configPath": "/home/dcrd/.dcrd/dcrd.conf",
"regFee": 10000000,
"regXPub": "tpubdecredonlyadsf",
"bondAmt": 100000000,
"configPath": "/Users/norwnd/Library/Application Support/Dcrd/dcrd.conf",
"regFee": 10000,
"regXPub": "tpubVpZ9t5AHWHeVpT5V81jST5z32gwsCNGDCRmZZeN5ki6yZYDpxfo7XPmFyQDQVcTJM8x5K2dHAEvAMBSbaLi9QhbA5X5QAYopFMFZMm5B5mh",
"bondAmt": 100000,
"bondConfs": 1
},
"BTC_mainnet": {
"bip44symbol": "btc",
"network": "mainnet",
"maxFeeRate": 100,
"swapConf": 3,
"regConfs": 2,
"regFee": 500000,
"regXPub": "xpubbitcoinonlyasdf"
},
"BTC_testnet": {
"bip44symbol": "btc",
"network": "testnet",
"maxFeeRate": 100,
"swapConf": 1
},
"LTC_mainnet": {
"bip44symbol": "ltc",
"network": "mainnet",
"maxFeeRate": 20,
"swapConf": 6
},
"LTC_testnet": {
"bip44symbol": "ltc",
"network": "testnet",
"maxFeeRate": 20,
"swapConf": 6
},
"ETH_testnet": {
"bip44symbol": "eth",
"network": "testnet",
"lotSize": 1000000000,
"rateStep": 1000000000,
"maxFeeRate": 200,
"swapConf": 12,
"configPath": "/home/.ethereum/dex.conf"
"configPath": "/Users/norwnd/Library/Application Support/Dcrdex/ethereum.conf"
},
"USDC_ETH_testnet": {
"bip44symbol": "usdc.eth",
"network": "testnet",
"maxFeeRate": 200,
"swapConf": 12
}
}
}
}
17 changes: 17 additions & 0 deletions server/docker/deps-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3'
services:
postgres:
container_name: "postgres"
hostname: postgres
image: postgres:12-alpine
ports:
- "5432:5432"
volumes:
- server_db:/var/lib/postgresql/data
environment:
POSTGRES_USER: dcrdex
POSTGRES_PASSWORD: dexpass
POSTGRES_DB: dcrdex_testnet
volumes:
server_db:
driver: local