diff --git a/.gitignore b/.gitignore index 1d04c6e..3a92ee4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /package-lock.json /args/config.json /args/param.json +/args/keys.json *test* \ No newline at end of file diff --git a/schema.sql b/args/schema.sql similarity index 100% rename from schema.sql rename to args/schema.sql diff --git a/src/floGlobals.js b/public/floGlobals.js similarity index 91% rename from src/floGlobals.js rename to public/floGlobals.js index 4d9a177..6d7bc6b 100644 --- a/src/floGlobals.js +++ b/public/floGlobals.js @@ -8,6 +8,7 @@ const floGlobals = { FLO: ['https://livenet.flocha.in/', 'https://flosight.duckdns.org/'], FLO_TEST: ['https://testnet-flosight.duckdns.org', 'https://testnet.flocha.in/'] }, + adminID: "FKAEdnPfjXLHSYwrXQu377ugN4tXU7VGdf", sendAmt: 0.001, fee: 0.0005, tokenURL: "https://ranchimallflo.duckdns.org/", diff --git a/public/fn.js b/public/fn.js index 8b64a9e..25c4b4c 100644 --- a/public/fn.js +++ b/public/fn.js @@ -114,6 +114,16 @@ function getTransactionList() { }); } +function getRate() { + return new Promise((resolve, reject) => { + fetch('/get-rate') + .then(result => responseParse(result, false) + .then(result => resolve(result)) + .catch(error => reject(error))) + .catch(error => reject(error)); + }); +} + function signRequest(request, privKey) { if (typeof request !== "object") throw Error("Request is not an object"); diff --git a/public/home.html b/public/home.html index 5b9c4b4..7a5694e 100644 --- a/public/home.html +++ b/public/home.html @@ -2,6 +2,7 @@
+ @@ -9,31 +10,14 @@ - + +