mirror of
https://git.wownero.com/lza_menace/neroswap.git
synced 2024-08-15 01:03:24 +00:00
67 lines
1.9 KiB
Bash
Executable file
67 lines
1.9 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
# mainnet wownero
|
|
# mainnet monero
|
|
|
|
export $(cat .env)
|
|
|
|
if [ ! -d "$WOW_WALLET_PATH" ]; then
|
|
# initialize new wow wallet and retain seed
|
|
mkdir -p $WOW_WALLET_PATH
|
|
docker run --rm -it --name neroswap-wow-wallet-init \
|
|
-v $WOW_WALLET_PATH:/root \
|
|
lalanza808/wownero:latest \
|
|
wownero-wallet-cli \
|
|
--daemon-address $WOW_DAEMON_URI \
|
|
--generate-new-wallet /root/wow \
|
|
--trusted-daemon \
|
|
--password $WOW_WALLET_PASS
|
|
fi
|
|
|
|
# setup rpc process
|
|
docker run --rm -d --name neroswap-wow-wallet \
|
|
-v $WOW_WALLET_PATH:/root \
|
|
-p 127.0.0.1:9999:9999 \
|
|
lalanza808/wownero:latest \
|
|
wownero-wallet-rpc \
|
|
--daemon-address $WOW_DAEMON_URI \
|
|
--wallet-file /root/wow \
|
|
--password $WOW_WALLET_PASS \
|
|
--rpc-bind-port 9999 \
|
|
--rpc-bind-ip 0.0.0.0 \
|
|
--confirm-external-bind \
|
|
--rpc-login "$WOW_WALLET_RPC_USER:$WOW_WALLET_RPC_PASS" \
|
|
--log-file /root/rpc.log \
|
|
--trusted-daemon
|
|
|
|
|
|
if [ ! -d "$XMR_WALLET_PATH" ]; then
|
|
# initialize new xmr wallet and retain seed
|
|
mkdir -p $XMR_WALLET_PATH
|
|
docker run --rm -it --name neroswap-xmr-wallet-init \
|
|
-v $XMR_WALLET_PATH:/root \
|
|
lalanza808/monero:latest \
|
|
monero-wallet-cli \
|
|
--daemon-address $XMR_DAEMON_URI \
|
|
--generate-new-wallet /root/xmr \
|
|
--password $XMR_WALLET_PASS \
|
|
--trusted-daemon \
|
|
--use-english-language-names
|
|
fi
|
|
|
|
# setup rpc process
|
|
docker run --rm -d --name neroswap-xmr-wallet \
|
|
-v $XMR_WALLET_PATH:/root \
|
|
-p 127.0.0.1:9998:9998 \
|
|
lalanza808/monero:latest \
|
|
monero-wallet-rpc \
|
|
--daemon-address $XMR_DAEMON_URI \
|
|
--wallet-file /root/xmr \
|
|
--password $XMR_WALLET_PASS \
|
|
--rpc-bind-port 9998 \
|
|
--rpc-bind-ip 0.0.0.0 \
|
|
--confirm-external-bind \
|
|
--rpc-login "$XMR_WALLET_RPC_USER:$XMR_WALLET_RPC_PASS" \
|
|
--log-file /root/rpc.log \
|
|
--trusted-daemon \
|
|
--use-english-language-names
|