Skip to content

Commit 75c3b8d

Browse files
authored
Update ldk_ts.js
1 parent d6d5dd5 commit 75c3b8d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/lightning/ldk_ts.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,27 @@ async function main() {
1414

1515
// Define contract parameters
1616
const oracleInfo = {
17-
// ... oracle info ...
17+
price: Number,
18+
sats: Number,
19+
pair: String,
20+
1821
};
1922

2023
const contractDescriptor = {
21-
// ... contract descriptor ...
22-
};
24+
2325

2426
// Create and sign DLC transaction
2527
const contractTxId = Txid.fromHex('previous_transaction_id');
2628
const fundingTxOutpoint = new OutPoint(contractTxId, 0);
2729
const fundAmount = 10000000; // Amount in satoshis
2830

2931
const oracleSigs = {
30-
// ... oracle signatures ...
3132
};
3233

3334
const partyASigs = {
34-
// ... party A signatures ...
3535
};
3636

3737
const partyBSigs = {
38-
// ... party B signatures ...
3938
};
4039

4140
const contractTx = await ldk.createDlcTransactions({

0 commit comments

Comments
 (0)