Beispiel #1
0
 async def about(self, params=None):
     namespace = self.get_template_namespace()
     self.bismuth_vars["dtlanguage"] = get_dt_language(
         self.locale.translate)
     kwargs = {"bismuth": self.bismuth_vars}
     namespace.update(kwargs)
     self.render("about.html", bismuth=self.bismuth_vars)
Beispiel #2
0
 async def about(self, params=None):
     eggdrop = False
     if len(self.bismuth_vars['address']) == 56:
         data = await async_get_with_http_fallback(
             "https://dragginator.com/api/info.php?address={}&type=list".
             format(self.bismuth_vars['address']))
         if len(data) == 0:
             eggdrop = await async_get_with_http_fallback(
                 "https://dragginator.com/api/info.php?address={}&type=eggdrop"
                 .format(self.bismuth_vars['address']))
     else:
         data = []
     price = await async_get_with_http_fallback(
         "https://dragginator.com/api/info.php?type=price".format(
             self.bismuth_vars['address']))
     namespace = self.get_template_namespace()
     self.bismuth_vars['dtlanguage'] = get_dt_language(
         self.locale.translate)
     kwargs = {"bismuth": self.bismuth_vars}
     namespace.update(kwargs)
     message = await async_get_with_http_fallback(
         "https://dragginator.com/api/info.php?type=message")
     self.bismuth_vars['extra'] = {
         "header":
         MODULES['css'].generate(**namespace),
         "footer":
         MODULES['buy'].generate(**namespace) +
         MODULES['table'].generate(**namespace)
     }
     self.render("about.html",
                 bismuth=self.bismuth_vars,
                 data=data,
                 price=price[0],
                 eggdrop=eggdrop,
                 message=message[0])
Beispiel #3
0
 async def about(self, params=None):
     tokens = await get_data(self.bismuth_vars['address'])
     # print(tokens)
     namespace = self.get_template_namespace()
     self.bismuth_vars["dtlanguage"] = get_dt_language(self.locale.translate)
     kwargs = {"bismuth": self.bismuth_vars}
     namespace.update(kwargs)
     self.render(
         "about.html", bismuth=self.bismuth_vars, version=__version__, tokens=tokens
     )
Beispiel #4
0
 async def last(self, params=None):
     data = await get_data(self.bismuth_vars['address'])
     tokens = {}
     last = await async_get_with_http_fallback("https://bismuth.today/api/transactions/{}"
                                               .format(self.bismuth_vars['address']))
     namespace = self.get_template_namespace()
     self.bismuth_vars["dtlanguage"] = get_dt_language(self.locale.translate)
     kwargs = {"bismuth": self.bismuth_vars}
     namespace.update(kwargs)
     self.render(
         "last.html", bismuth=self.bismuth_vars, version=__version__, tokens=tokens, last=last
     )