update testnet related configs

main
lza_menace 3 years ago
parent 771d9698d1
commit d74b643f83

@ -3,9 +3,10 @@ SECRET_KEY=vrBWMR2$nCdPuZ27
DATA_FOLDER=/opt/suchwowx/data DATA_FOLDER=/opt/suchwowx/data
SERVER_NAME=myservername.com SERVER_NAME=myservername.com
AVAX_RPC=https://api.avax.network/ext/bc/C/rpc AVAX_RPC=https://api.avax.network/ext/bc/C/rpc
CONTRACT_TESTNET=0 TESTNET=0
WEB3_PROVIDER_URI=https://api.avax.network/ext/bc/C/rpc
# Test env - delete this line and unused config # Test env - delete this line and unused config
SECRET_KEY=vrBWMR2$nCdPuZ27 SECRET_KEY=vrBWMR2$nCdPuZ27
DATA_FOLDER=/opt/suchwowx/data DATA_FOLDER=/opt/suchwowx/data
WEB3_PROVIDER_URI=https://api.avax-test.network/ext/bc/C/rpc

@ -17,14 +17,16 @@ MAX_CONTENT_LENGTH = 32 * 1024 * 1024
TEMPLATES_AUTO_RELOAD = getenv('TEMPLATES_AUTO_RELOAD', True) TEMPLATES_AUTO_RELOAD = getenv('TEMPLATES_AUTO_RELOAD', True)
# Contract # Contract
CONTRACT_TESTNET = getenv('TESTNET', 1) TESTNET = getenv('TESTNET', 1)
CONTRACT_OWNER = 'lzamenace.eth' CONTRACT_OWNER = 'lzamenace.eth'
if int(CONTRACT_TESTNET) == 1: if int(TESTNET) == 1:
WOWX_ADDRESS = '0xc6B039b1e0be1ba0B433f319898438E782E5dEBA' # WOWX testnet WOWX_ADDRESS = '0xc6B039b1e0be1ba0B433f319898438E782E5dEBA' # WOWX testnet
CONTRACT_ADDRESS = '0xE1b6483729557E539cfD9c3Bdb754C54c16cFCe7' # SWX testnet CONTRACT_ADDRESS = '0xE1b6483729557E539cfD9c3Bdb754C54c16cFCe7' # SWX testnet
CONTRACT_TESTNET = True
else: else:
WOWX_ADDRESS = '0xba5dc7e77d150816b758e9826fcad2d74820e379' # WOWX mainnet WOWX_ADDRESS = '0xba5dc7e77d150816b758e9826fcad2d74820e379' # WOWX mainnet
CONTRACT_ADDRESS = '0x60bDE7a29c653142BBAB1fe094016af2f4776158' # SWX mainnet CONTRACT_ADDRESS = '0x60bDE7a29c653142BBAB1fe094016af2f4776158' # SWX mainnet
CONTRACT_TESTNET = False
CONTRACT_ABI = [ CONTRACT_ABI = [
{ {

Loading…
Cancel
Save