feat: Use user_data for atomic swap info

This commit is contained in:
Nathan Woodburn 2025-01-30 22:40:28 +11:00
parent cd362f805b
commit 52d9d45106
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -5,6 +5,7 @@ import os
import subprocess
path = os.path.realpath("customPlugins/firesales-plugin")
userData = os.path.realpath("user_data/firesales")
# Plugin Data
info = {
@ -160,7 +161,7 @@ def startListingTransfer(params, authentication):
# node node_modules/shakedex/bin/shakedex transfer-lock domain -n main -w wallet -a key -p ./data --httphost host
process = subprocess.Popen(
["node", f"{path}/node_modules/shakedex/bin/shakedex", "transfer-lock", domain, "-n", "main", "-w", wallet, "-a", api_key, "-p", f"{path}/data", "--httphost", host, "-P", passphrase],
["node", f"{path}/node_modules/shakedex/bin/shakedex", "transfer-lock", domain, "-n", "main", "-w", wallet, "-a", api_key, "-p", f"{userData}", "--httphost", host, "-P", passphrase],
text=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT
@ -187,9 +188,8 @@ def finalizeListingTransfer(params, authentication):
if host is None:
host = "127.0.0.1"
# node node_modules/shakedex/bin/shakedex transfer-lock domain -n main -w wallet -a key -p ./data --httphost host
process = subprocess.Popen(
["node", f"{path}/node_modules/shakedex/bin/shakedex", "finalize-lock", domain, "-n", "main", "-w", wallet, "-a", api_key, "-p", f"{path}/data", "--httphost", host, "-P", passphrase],
["node", f"{path}/node_modules/shakedex/bin/shakedex", "finalize-lock", domain, "-n", "main", "-w", wallet, "-a", api_key, "-p", f"{userData}", "--httphost", host, "-P", passphrase],
text=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT