aboutsummaryrefslogtreecommitdiffstats
path: root/sampledata
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-06 16:48:13 -0800
committerAdam Soltys <[email protected]>2023-02-06 16:48:13 -0800
commit9c667055c6367e1b2e239686e72f52995679a47e (patch)
tree0b1d4aee51ec2d4e92d08a9d1404ba4e2ecd462a /sampledata
parent15294844dbc8e73b4d1e92008a7eebc6b86b9ec5 (diff)
parent6f5602d112b68adb7452abf3047f20c32e7725b6 (diff)
downloadcoinos-server-9c667055c6367e1b2e239686e72f52995679a47e.tar.gz
coinos-server-9c667055c6367e1b2e239686e72f52995679a47e.zip
Merge branch 'master' into test
Diffstat (limited to 'sampledata')
-rw-r--r--sampledata/bitcoin/bitcoin.conf22
-rwxr-xr-xsampledata/bitcoin/transaction.sh2
-rw-r--r--sampledata/conversions.json2
-rw-r--r--sampledata/emails.json4
-rw-r--r--sampledata/index.js16
-rw-r--r--sampledata/lightning/config8
-rw-r--r--sampledata/logins.json1
-rw-r--r--sampledata/payments.json2
-rw-r--r--sampledata/recipients.json2
-rw-r--r--sampledata/withdrawals.json1
10 files changed, 48 insertions, 12 deletions
diff --git a/sampledata/bitcoin/bitcoin.conf b/sampledata/bitcoin/bitcoin.conf
new file mode 100644
index 00000000..3aa44186
--- /dev/null
+++ b/sampledata/bitcoin/bitcoin.conf
@@ -0,0 +1,22 @@
+regtest=1
+testnet=0
+dnsseed=0
+upnp=0
+
+[regtest]
+fallbackfee=0.00002
+server=1
+txindex=1
+
+rpcuser=admin1
+rpcpassword=123
+rpcallowip=0.0.0.0/0
+rpcbind=0.0.0.0
+rpcwallet=coinos
+
+wallet=coinos
+wallet=external
+walletnotify=/home/bitcoin/.bitcoin/transaction.sh %s %w
+
+zmqpubrawblock=tcp://0.0.0.0:18506
+zmqpubrawtx=tcp://0.0.0.0:18507
diff --git a/sampledata/bitcoin/transaction.sh b/sampledata/bitcoin/transaction.sh
new file mode 100755
index 00000000..e44789d1
--- /dev/null
+++ b/sampledata/bitcoin/transaction.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+wget -O- --post-data='{"txid": "'$1'", "wallet": "'$2'"}' --header='Content-Type:application/json' 'http://app:3119/bitcoin'
diff --git a/sampledata/conversions.json b/sampledata/conversions.json
deleted file mode 100644
index 2c63c085..00000000
--- a/sampledata/conversions.json
+++ /dev/null
@@ -1,2 +0,0 @@
-{
-}
diff --git a/sampledata/emails.json b/sampledata/emails.json
deleted file mode 100644
index 5fbac846..00000000
--- a/sampledata/emails.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "emails": [
- ]
-}
diff --git a/sampledata/index.js b/sampledata/index.js
new file mode 100644
index 00000000..8fcb0a6f
--- /dev/null
+++ b/sampledata/index.js
@@ -0,0 +1,16 @@
+export default {
+ port: 3119,
+ nostr: "ws://nostr:8080",
+ ipxapi: "4275|PqKjKaxIlzooToria2m4XFLzvHihSpsZMX4hvgxu",
+ postmark: "f64dffd2-84ea-47c7-ba9f-95e053a2d0ae",
+ jwt: "00d0ab4f7738a83feb37f661526512063c41e49278b7c32cba87314269a5788b",
+ bitcoin: {
+ host: "bitcoin",
+ wallet: "coinos",
+ username: "admin1",
+ password: "123",
+ network: "regtest",
+ port: 18443
+ },
+ lightning: "/app/config/lightning/regtest/lightning-rpc"
+};
diff --git a/sampledata/lightning/config b/sampledata/lightning/config
new file mode 100644
index 00000000..9ac922ba
--- /dev/null
+++ b/sampledata/lightning/config
@@ -0,0 +1,8 @@
+alias=coinos
+rgb=006000
+bitcoin-rpcconnect=bitcoin
+bitcoin-rpcport=18443
+bitcoin-rpcuser=admin1
+bitcoin-rpcpassword=123
+network=regtest
+addr=172.18.0.31:9735
diff --git a/sampledata/logins.json b/sampledata/logins.json
deleted file mode 100644
index 0967ef42..00000000
--- a/sampledata/logins.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/sampledata/payments.json b/sampledata/payments.json
deleted file mode 100644
index 2c63c085..00000000
--- a/sampledata/payments.json
+++ /dev/null
@@ -1,2 +0,0 @@
-{
-}
diff --git a/sampledata/recipients.json b/sampledata/recipients.json
deleted file mode 100644
index 2c63c085..00000000
--- a/sampledata/recipients.json
+++ /dev/null
@@ -1,2 +0,0 @@
-{
-}
diff --git a/sampledata/withdrawals.json b/sampledata/withdrawals.json
deleted file mode 100644
index 0967ef42..00000000
--- a/sampledata/withdrawals.json
+++ /dev/null
@@ -1 +0,0 @@
-{}