aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app.coffee3
-rw-r--r--public/js/deposit.coffee4
-rw-r--r--views/main/deposit.html4
3 files changed, 5 insertions, 6 deletions
diff --git a/app.coffee b/app.coffee
index f0e501d9..8aac4705 100644
--- a/app.coffee
+++ b/app.coffee
@@ -63,8 +63,7 @@ app.get('/deposit', (req, res) ->
app.get('/issue/:amount', (req, res) ->
exec = require('child_process').exec
-
-# exec("opentxs sendcheque --myacct issuer --args \"memo \\\"here are your OT bitcoins.\\\" amount #{req.params.amount}\" --args \\\"validfor 2592001\\\"", (err, out, stderr) ->
+ exec("opentxs writecheque --myacct issuer --args \"memo \\\"Here's some OT-Bitcoins.\\\" amount #{req.params.amount} validfor 2592000\"", (err, out, stderr) ->
exec("opentxs stat", (err, out, stderr) ->
res.write(out)
res.end()
diff --git a/public/js/deposit.coffee b/public/js/deposit.coffee
index 72d74e05..a026b7e0 100644
--- a/public/js/deposit.coffee
+++ b/public/js/deposit.coffee
@@ -48,7 +48,9 @@ setupSocket = ->
input -= v.prev_out.value / 100000000
)
- $('#received').html(received)
+ $.get("/issue/#{received}", (data) ->
+ $('#received').html(data.replace(/\n/g, '<br />'))
+ )
fail = (msg) ->
g.errors.push(msg)
diff --git a/views/main/deposit.html b/views/main/deposit.html
index 924e1caa..8372d1e5 100644
--- a/views/main/deposit.html
+++ b/views/main/deposit.html
@@ -14,9 +14,7 @@
Send bitcoins to: 1VAnbtCAnYccECnjaMCPnWwt81EHCVgNr
- <br />
-
- <span id="received">0</span>
+ <p id="received"></p>
</div>
</body>
</html>
} /* Literal.String.Delimiter */ .highlight .sd { color: #D20; background-color: #FFF0F0 } /* Literal.String.Doc */ .highlight .s2 { color: #D20; background-color: #FFF0F0 } /* Literal.String.Double */ .highlight .se { color: #04D; background-color: #FFF0F0 } /* Literal.String.Escape */ .highlight .sh { color: #D20; background-color: #FFF0F0 } /* Literal.String.Heredoc */ .highlight .si { color: #33B; background-color: #FFF0F0 } /* Literal.String.Interpol */ .highlight .sx { color: #2B2; background-color: #F0FFF0 } /* Literal.String.Other */ .highlight .sr { color: #080; background-color: #FFF0FF } /* Literal.String.Regex */ .highlight .s1 { color: #D20; background-color: #FFF0F0 } /* Literal.String.Single */ .highlight .ss { color: #A60; background-color: #FFF0F0 } /* Literal.String.Symbol */ .highlight .bp { color: #038 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #06B; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #369 } /* Name.Variable.Class */ .highlight .vg { color: #D70 } /* Name.Variable.Global */ .highlight .vi { color: #33B } /* Name.Variable.Instance */ .highlight .vm { color: #369 } /* Name.Variable.Magic */ .highlight .il { color: #00D; font-weight: bold } /* Literal.Number.Integer.Long */
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock