@node-dlc/core
Advanced tools
Comparing version 0.9.6 to 0.9.7
import BigNumber from 'bignumber.js'; | ||
import { expect } from 'chai'; | ||
import { | ||
@@ -4,0 +5,0 @@ decompose, |
import { HyperbolaPayoutCurvePiece } from '@node-dlc/messaging'; | ||
import { expect } from 'chai'; | ||
import { CoveredCall } from '../../../lib/dlc/finance/CoveredCall'; | ||
@@ -4,0 +5,0 @@ import { HyperbolaPayoutCurve } from '../../../lib/dlc/HyperbolaPayoutCurve'; |
@@ -11,2 +11,3 @@ import { | ||
import { expect } from 'chai'; | ||
import { CoveredCall } from '../../../lib/dlc/finance/CoveredCall'; | ||
@@ -13,0 +14,0 @@ import { |
@@ -1,1 +0,1 @@ | ||
{"processes":{"b0b5f973-7bad-49ce-a8f4-14555c1101ac":{"parent":null,"children":[]}},"files":{"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/utils/BigIntUtils.ts":["b0b5f973-7bad-49ce-a8f4-14555c1101ac"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/CETCalculator.ts":["b0b5f973-7bad-49ce-a8f4-14555c1101ac"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/HyperbolaPayoutCurve.ts":["b0b5f973-7bad-49ce-a8f4-14555c1101ac"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/finance/CoveredCall.ts":["b0b5f973-7bad-49ce-a8f4-14555c1101ac"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/finance/OptionInfo.ts":["b0b5f973-7bad-49ce-a8f4-14555c1101ac"]},"externalIds":{}} | ||
{"processes":{"f29e5541-f4b2-407e-9d6b-6ab9f2330470":{"parent":null,"children":[]}},"files":{"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/CETCalculator.ts":["f29e5541-f4b2-407e-9d6b-6ab9f2330470"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/utils/BigIntUtils.ts":["f29e5541-f4b2-407e-9d6b-6ab9f2330470"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/HyperbolaPayoutCurve.ts":["f29e5541-f4b2-407e-9d6b-6ab9f2330470"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/finance/CoveredCall.ts":["f29e5541-f4b2-407e-9d6b-6ab9f2330470"],"/Users/matthewblack/atomicfinance/node-dlc/packages/core/lib/dlc/finance/OptionInfo.ts":["f29e5541-f4b2-407e-9d6b-6ab9f2330470"]},"externalIds":{}} |
@@ -51,3 +51,4 @@ "use strict"; | ||
const { endpoint, endpointPayout, payoutCurvePiece, } = payoutFunction.pieces[0]; | ||
if (payoutCurvePiece.type !== messaging_1.MessageType.HyperbolaPayoutCurvePiece) | ||
if (payoutCurvePiece.type !== messaging_1.MessageType.HyperbolaPayoutCurvePiece && | ||
payoutCurvePiece.type !== messaging_1.MessageType.OldHyperbolaPayoutCurvePiece) | ||
throw new Error('Payout curve piece must be a hyperbola'); | ||
@@ -54,0 +55,0 @@ const _payoutCurvePiece = payoutCurvePiece; |
@@ -26,3 +26,4 @@ "use strict"; | ||
.payoutCurvePiece; | ||
if (payoutCurvePiece.type !== messaging_1.MessageType.HyperbolaPayoutCurvePiece) | ||
if (payoutCurvePiece.type !== messaging_1.MessageType.HyperbolaPayoutCurvePiece && | ||
payoutCurvePiece.type !== messaging_1.MessageType.OldHyperbolaPayoutCurvePiece) | ||
throw Error('Must be HyperbolaPayoutCurvePiece'); | ||
@@ -29,0 +30,0 @@ if (payoutCurvePiece.b !== BigInt(0) || payoutCurvePiece.c !== BigInt(0)) |
import BigNumber from 'bignumber.js'; | ||
import { BigIntMath, toBigInt } from '../utils/BigIntUtils'; | ||
@@ -3,0 +4,0 @@ import { HyperbolaPayoutCurve } from './HyperbolaPayoutCurve'; |
@@ -8,2 +8,3 @@ import { | ||
import BN from 'bignumber.js'; | ||
import { toBigInt } from '../../utils/BigIntUtils'; | ||
@@ -105,3 +106,6 @@ import { CETPayout, splitIntoRanges } from '../CETCalculator'; | ||
if (payoutCurvePiece.type !== MessageType.HyperbolaPayoutCurvePiece) | ||
if ( | ||
payoutCurvePiece.type !== MessageType.HyperbolaPayoutCurvePiece && | ||
payoutCurvePiece.type !== MessageType.OldHyperbolaPayoutCurvePiece | ||
) | ||
throw new Error('Payout curve piece must be a hyperbola'); | ||
@@ -108,0 +112,0 @@ |
@@ -60,3 +60,6 @@ import { | ||
.payoutCurvePiece as HyperbolaPayoutCurvePiece; | ||
if (payoutCurvePiece.type !== MessageType.HyperbolaPayoutCurvePiece) | ||
if ( | ||
payoutCurvePiece.type !== MessageType.HyperbolaPayoutCurvePiece && | ||
payoutCurvePiece.type !== MessageType.OldHyperbolaPayoutCurvePiece | ||
) | ||
throw Error('Must be HyperbolaPayoutCurvePiece'); | ||
@@ -63,0 +66,0 @@ if (payoutCurvePiece.b !== BigInt(0) || payoutCurvePiece.c !== BigInt(0)) |
import { | ||
DlcAcceptWithoutSigs, | ||
DlcOfferV0, | ||
FundingInputV0, | ||
DlcOfferV0, | ||
MessageType, | ||
} from '@node-dlc/messaging'; | ||
import { | ||
Tx, | ||
TxBuilder, | ||
LockTime, | ||
OutPoint, | ||
Script, | ||
Tx, | ||
TxBuilder, | ||
Value, | ||
} from '@node-lightning/bitcoin'; | ||
import { StreamReader } from '@node-lightning/bufio'; | ||
import { DualFundingTxFinalizer } from './TxFinalizer'; | ||
@@ -17,0 +17,0 @@ |
{ | ||
"name": "@node-dlc/core", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "DLC Core", | ||
@@ -26,3 +26,3 @@ "scripts": { | ||
"dependencies": { | ||
"@node-dlc/messaging": "^0.9.6", | ||
"@node-dlc/messaging": "^0.9.7", | ||
"@node-lightning/bitcoin": "0.22.1", | ||
@@ -37,3 +37,3 @@ "@node-lightning/core": "0.22.1" | ||
}, | ||
"gitHead": "4b9d11d2b4bac8b47cad379fd8dead5a3bb902c7" | ||
"gitHead": "af778f483898e2eed9705f64d8956ea1e759ff65" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
444919
3424
Updated@node-dlc/messaging@^0.9.7