File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -14,28 +14,27 @@ async function main() {
14
14
15
15
// Define contract parameters
16
16
const oracleInfo = {
17
- // ... oracle info ...
17
+ price : Number ,
18
+ sats : Number ,
19
+ pair : String ,
20
+
18
21
} ;
19
22
20
23
const contractDescriptor = {
21
- // ... contract descriptor ...
22
- } ;
24
+
23
25
24
26
// Create and sign DLC transaction
25
27
const contractTxId = Txid . fromHex ( 'previous_transaction_id' ) ;
26
28
const fundingTxOutpoint = new OutPoint ( contractTxId , 0 ) ;
27
29
const fundAmount = 10000000 ; // Amount in satoshis
28
30
29
31
const oracleSigs = {
30
- // ... oracle signatures ...
31
32
} ;
32
33
33
34
const partyASigs = {
34
- // ... party A signatures ...
35
35
} ;
36
36
37
37
const partyBSigs = {
38
- // ... party B signatures ...
39
38
} ;
40
39
41
40
const contractTx = await ldk . createDlcTransactions ( {
You can’t perform that action at this time.
0 commit comments