From 265f7be78ed18a81855072f8f87a2e0d0ca7fc4b Mon Sep 17 00:00:00 2001 From: lza_menace Date: Sun, 9 Jan 2022 12:02:34 -0800 Subject: [PATCH] refactor tip ux, get it all working --- suchwowx/config.py | 2 + suchwowx/templates/meme.html | 136 +++++++++++++++++++++-------------- 2 files changed, 86 insertions(+), 52 deletions(-) diff --git a/suchwowx/config.py b/suchwowx/config.py index c9d10f6..81dcca5 100644 --- a/suchwowx/config.py +++ b/suchwowx/config.py @@ -22,12 +22,14 @@ TEMPLATES_AUTO_RELOAD = getenv('TEMPLATES_AUTO_RELOAD', True) # Contract CONTRACT_TESTNET = getenv('TESTNET', True) +CONTRACT_OWNER = 'lzamenace.eth' if CONTRACT_TESTNET: WOWX_ADDRESS = '0xc6B039b1e0be1ba0B433f319898438E782E5dEBA' # WOWX testnet CONTRACT_ADDRESS = '0xE1b6483729557E539cfD9c3Bdb754C54c16cFCe7' # SWX testnet else: WOWX_ADDRESS = '0xba5dc7e77d150816b758e9826fcad2d74820e379' # WOWX mainnet CONTRACT_ADDRESS = '' # SWX mainnet + CONTRACT_ABI = [ { "inputs": [ diff --git a/suchwowx/templates/meme.html b/suchwowx/templates/meme.html index de1c018..cb57bc4 100644 --- a/suchwowx/templates/meme.html +++ b/suchwowx/templates/meme.html @@ -43,9 +43,11 @@ {% if meme.meme_ipfs_hash %}

Meme IPFS: {{ meme.meme_ipfs_hash }}

{% endif %} -

WOW Tips: ?

-

WOWX Tips: ?

-

AVAX Tips: ?

+

Tips Received: + ? WOW, + ? WOWX, + ? AVAX +

{% if not meme.approved %}
@@ -61,23 +63,20 @@
{% endif %} @@ -86,7 +85,7 @@ -