feat: Add initial domain plugins

This commit is contained in:
2024-02-05 22:40:13 +11:00
parent 25fc3bbc27
commit 78eae529e5
7 changed files with 99 additions and 9 deletions

View File

@@ -665,9 +665,8 @@ def getxPub(account):
#endregion
def generateReport(account):
def generateReport(account,format="{name},{expiry},{value},{maxBid}"):
domains = getDomains(account)
format = str('{name},{expiry},{value},{maxBid}')
lines = [format.replace("{","").replace("}","")]
for domain in domains:
@@ -689,4 +688,7 @@ def generateReport(account):
line = line.replace("{openHeight}",str(domain['height']))
lines.append(line)
return lines
return lines
def convertHNS(value: int):
return value/1000000