#!/bin/bash # mainnet wownero # stagenet 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 \ --password $WOW_WALLET_PASS fi # setup rpc process docker run --rm -d --name neroswap-wow-wallet \ -v $WOW_WALLET_PATH:/root \ -p 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 \ --stagenet \ --password $XMR_WALLET_PASS fi # setup rpc process docker run --rm -d --name neroswap-xmr-wallet \ -v $XMR_WALLET_PATH:/root \ -p 9998:9998 \ lalanza808/monero:latest \ monero-wallet-rpc \ --daemon-address $XMR_DAEMON_URI \ --wallet-file /root/xmr \ --stagenet \ --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