Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
lightning-bits
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
lightning-bits
Commits
255f7bfc
Commit
255f7bfc
authored
Feb 08, 2022
by
allan juma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
48cf8637
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
lnd-child-process.js
public/lnd-child-process.js
+3
-3
helper.js
src/helper.js
+6
-3
dao.js
src/view/dao.js
+1
-1
No files found.
public/lnd-child-process.js
View file @
255f7bfc
...
...
@@ -110,11 +110,11 @@ module.exports.startLndProcess = async function({
if
(
isDev
)
{
args
=
args
.
concat
([
'--bitcoin.node=bitcoind'
,
'--bitcoind.rpchost=
btc-p2p.bitsoko.org
'
,
'--bitcoind.rpchost=
192.168.1.3
'
,
'--bitcoind.rpcuser=bitsoko'
,
'--bitcoind.rpcpass=12Bitcoinsrus12'
,
'--bitcoind.zmqpubrawblock=tcp://
zmq-block.bitsoko.org
'
,
'--bitcoind.zmqpubrawtx=tcp://
zmq-tx.bitsoko.org
'
'--bitcoind.zmqpubrawblock=tcp://
192.168.1.3:28332
'
,
'--bitcoind.zmqpubrawtx=tcp://
192.168.1.3:28333
'
]);
}
...
...
src/helper.js
View file @
255f7bfc
...
...
@@ -358,12 +358,15 @@ export const generateArc = (x, y, radius, startAngle, endAngle) => {
export
const
sendToEscrow
=
async
(
amount
,
memo
)
=>
{
try
{
const
uri
=
'https://gateway.bitsoko.org/escrowInvoice/?memo='
+
memo
+
'&amount='
+
amount
/
Math
.
pow
(
10
,
8
);
const
uri
=
'https://gateway.bitsoko.org/escrowInvoice/?action=escrowInvoice&memo='
+
memo
+
'&amount='
+
amount
/
Math
.
pow
(
10
,
8
);
// const uri = 'https://gateway.bitsoko.org/fallback/';
//checkHttpStatus(uri);
//const response = (await fetch(uri)).json();
const
response
=
await
fetch
(
uri
,{
headers
:
{
'Content-Type'
:
'application/json'
},
mode
:
'cors'
});
var
datStrm
=
await
new
Response
(
response
.
body
,
{
headers
:
{
"Content-Type"
:
"application/json"
}
}).
json
();
//const response = await fetch(uri,{method: 'POST', body: {memo: memo, amount: amount/Math.pow(10,8) }, headers: {'Content-Type':'application/json'}, mode: 'cors'});
console
.
log
(
JSON
.
stringify
(
response
.
body
));
var
datStrm
=
await
new
Response
(
response
.
body
,
{
headers
:
{
"Content-Type"
:
"application/json"
}
}).
json
();
return
datStrm
.
data
.
inv
.
payment_request
;
}
catch
(
err
)
{
console
.
error
(
'Getting escrow invoice failed'
,
err
);
...
...
src/view/dao.js
View file @
255f7bfc
...
...
@@ -137,7 +137,7 @@ const iconType = tx => {
return
require
(
'../asset/icon/'
+
tx
.
type
+
'.png'
);
};
const
DaoView
=
({
store
,
nav
,
dao
})
=>
{
const
{
computedDao
:
pool
s
,
const
{
computedDao
:
dao
s
,
unitLabel
}
=
store
;
return
(
<
Background
image
=
"purple-gradient-bg"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment