From 52d9d451061a1aacab76073cd9cb5f1ffe413e70 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 30 Jan 2025 22:40:28 +1100 Subject: [PATCH] feat: Use user_data for atomic swap info --- firesales.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firesales.py b/firesales.py index 181c338..0242795 100644 --- a/firesales.py +++ b/firesales.py @@ -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