generated from nathanwoodburn/firewallet-plugin-template
feat: Add link to view staked domain
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import json
|
import json
|
||||||
import account
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
# Plugin Data
|
# Plugin Data
|
||||||
@@ -89,10 +88,10 @@ def domain_info(params, authentication):
|
|||||||
if domainType == "marketplace":
|
if domainType == "marketplace":
|
||||||
price = data["data"].get("price", "No price available")
|
price = data["data"].get("price", "No price available")
|
||||||
returnInfo = f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}'>View Listing</a>"
|
returnInfo = f"<h4>Score: {score}<br>Price: {price}</h4><a href='https://shakestation.io/domain/{domain}'>View Listing</a>"
|
||||||
|
else:
|
||||||
stakedData = checkStaked(domain)
|
stakedData = checkStaked(domain)
|
||||||
if stakedData:
|
if stakedData:
|
||||||
returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4>"
|
returnInfo += f"<h4>Staked: {stakedData.get('price', '-1')} HNS ({stakedData.get('renew_price','-1')} HNS/yr)</h4><a href='https://shakestation.io/domains/{domain}'>View Listing</a>"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user