diff --git a/env-example b/env-example index dfce0ea..8396d96 100644 --- a/env-example +++ b/env-example @@ -3,9 +3,10 @@ SECRET_KEY=vrBWMR2$nCdPuZ27 DATA_FOLDER=/opt/suchwowx/data SERVER_NAME=myservername.com 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 SECRET_KEY=vrBWMR2$nCdPuZ27 DATA_FOLDER=/opt/suchwowx/data +WEB3_PROVIDER_URI=https://api.avax-test.network/ext/bc/C/rpc diff --git a/suchwowx/config.py b/suchwowx/config.py index dcde539..5ae365a 100644 --- a/suchwowx/config.py +++ b/suchwowx/config.py @@ -17,14 +17,16 @@ MAX_CONTENT_LENGTH = 32 * 1024 * 1024 TEMPLATES_AUTO_RELOAD = getenv('TEMPLATES_AUTO_RELOAD', True) # Contract -CONTRACT_TESTNET = getenv('TESTNET', 1) +TESTNET = getenv('TESTNET', 1) CONTRACT_OWNER = 'lzamenace.eth' -if int(CONTRACT_TESTNET) == 1: +if int(TESTNET) == 1: WOWX_ADDRESS = '0xc6B039b1e0be1ba0B433f319898438E782E5dEBA' # WOWX testnet CONTRACT_ADDRESS = '0xE1b6483729557E539cfD9c3Bdb754C54c16cFCe7' # SWX testnet + CONTRACT_TESTNET = True else: WOWX_ADDRESS = '0xba5dc7e77d150816b758e9826fcad2d74820e379' # WOWX mainnet CONTRACT_ADDRESS = '0x60bDE7a29c653142BBAB1fe094016af2f4776158' # SWX mainnet + CONTRACT_TESTNET = False CONTRACT_ABI = [ {