@node-dlc/messaging
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -88,3 +88,3 @@ // tslint:disable: no-unused-expression | ||
describe.only('.start()', () => { | ||
describe('.start()', () => { | ||
describe('no history', () => { | ||
@@ -91,0 +91,0 @@ it('should restore block height to 0', async () => { |
@@ -1,1 +0,1 @@ | ||
{"processes":{"806ebb26-b8b0-4ac3-9b5e-5bcb128aa200":{"parent":null,"children":[]}},"files":{"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/chain/ChainManager.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcTransactions.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/MessageType.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/chain/ChainMemoryStore.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/AddressCache.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/CetAdaptorSignaturesV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/ContractDescriptor.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/serialize/getTlv.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/PayoutFunction.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/PayoutCurvePiece.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/RoundingIntervalsV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/ContractInfo.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcMessage.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcAccept.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/FundingInput.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/NegotiationFields.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcOffer.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcSign.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/FundingSignaturesV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/ScriptWitnessV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleAnnouncementV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleEventV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/EventDescriptor.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleAttestationV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OrderAccept.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OrderNegotiationFields.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OrderOffer.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/validation/validate.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleInfoV0.ts":["806ebb26-b8b0-4ac3-9b5e-5bcb128aa200"]},"externalIds":{}} | ||
{"processes":{"59f68732-6d96-4395-b4d2-94ff6cb21265":{"parent":null,"children":[]}},"files":{"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/chain/ChainManager.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcTransactions.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/MessageType.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/chain/ChainMemoryStore.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/AddressCache.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/CetAdaptorSignaturesV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/ContractDescriptor.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/serialize/getTlv.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/PayoutFunction.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/PayoutCurvePiece.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/RoundingIntervalsV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/ContractInfo.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcMessage.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcAccept.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/FundingInput.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/NegotiationFields.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcOffer.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/DlcSign.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/FundingSignaturesV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/ScriptWitnessV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleAnnouncementV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleEventV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/EventDescriptor.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleAttestationV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OrderAccept.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OrderNegotiationFields.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OrderOffer.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/validation/validate.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleInfoV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"],"/Users/matthewblack/atomicfinance/node-dlc/packages/messaging/lib/messages/OracleEventContainerV0.ts":["59f68732-6d96-4395-b4d2-94ff6cb21265"]},"externalIds":{}} |
@@ -106,3 +106,3 @@ "use strict"; | ||
const dlcTxsCount = dlcTxsList.reduce((acc, msg) => acc + (msg instanceof DlcTransactions_1.DlcTransactionsV0 ? 1 : 0), 0); | ||
this.logger.info('validating %d utxos', dlcTxsCount); | ||
this.logger.info('validating %d funding utxos', dlcTxsCount); | ||
if (!dlcTxsCount) | ||
@@ -115,3 +115,3 @@ return; | ||
if ((i + 1) % oct === 0) { | ||
this.logger.info('validating utxos %s% complete', (((i + 1) / dlcTxsCount) * 100).toFixed(2)); | ||
this.logger.info('validating funding utxos %s% complete', (((i + 1) / dlcTxsCount) * 100).toFixed(2)); | ||
} | ||
@@ -141,2 +141,3 @@ if (dlcTxs instanceof DlcTransactions_1.DlcTransactionsV0) { | ||
} | ||
this.logger.info('validating funding utxos 100% complete'); | ||
if (dlcTxsToVerify.length === 0) | ||
@@ -143,0 +144,0 @@ return; |
@@ -25,2 +25,3 @@ export * from './chain/ChainManager'; | ||
export * from './messages/OracleInfoV0'; | ||
export * from './messages/OracleEventContainerV0'; | ||
export * from './messages/PayoutFunction'; | ||
@@ -27,0 +28,0 @@ export * from './messages/RoundingIntervalsV0'; |
@@ -37,2 +37,3 @@ "use strict"; | ||
__exportStar(require("./messages/OracleInfoV0"), exports); | ||
__exportStar(require("./messages/OracleEventContainerV0"), exports); | ||
__exportStar(require("./messages/PayoutFunction"), exports); | ||
@@ -39,0 +40,0 @@ __exportStar(require("./messages/RoundingIntervalsV0"), exports); |
@@ -17,2 +17,3 @@ /** | ||
OracleEventV0 = 55330, | ||
OracleEventContainerV0 = 61632, | ||
EnumEventDescriptorV0 = 55302, | ||
@@ -19,0 +20,0 @@ DigitDecompositionEventDescriptorV0 = 55306, |
@@ -21,2 +21,3 @@ "use strict"; | ||
MessageType[MessageType["OracleEventV0"] = 55330] = "OracleEventV0"; | ||
MessageType[MessageType["OracleEventContainerV0"] = 61632] = "OracleEventContainerV0"; | ||
MessageType[MessageType["EnumEventDescriptorV0"] = 55302] = "EnumEventDescriptorV0"; | ||
@@ -23,0 +24,0 @@ MessageType[MessageType["DigitDecompositionEventDescriptorV0"] = 55306] = "DigitDecompositionEventDescriptorV0"; |
@@ -181,3 +181,3 @@ import { Tx } from '@node-lightning/bitcoin'; | ||
); | ||
this.logger.info('validating %d utxos', dlcTxsCount); | ||
this.logger.info('validating %d funding utxos', dlcTxsCount); | ||
@@ -193,3 +193,3 @@ if (!dlcTxsCount) return; | ||
this.logger.info( | ||
'validating utxos %s% complete', | ||
'validating funding utxos %s% complete', | ||
(((i + 1) / dlcTxsCount) * 100).toFixed(2), | ||
@@ -229,2 +229,3 @@ ); | ||
} | ||
this.logger.info('validating funding utxos 100% complete'); | ||
@@ -231,0 +232,0 @@ if (dlcTxsToVerify.length === 0) return; |
@@ -26,2 +26,3 @@ export * from './chain/ChainManager'; | ||
export * from './messages/OracleInfoV0'; | ||
export * from './messages/OracleEventContainerV0'; | ||
export * from './messages/PayoutFunction'; | ||
@@ -28,0 +29,0 @@ export * from './messages/RoundingIntervalsV0'; |
@@ -22,2 +22,4 @@ /** | ||
OracleEventContainerV0 = 61632, | ||
EnumEventDescriptorV0 = 55302, | ||
@@ -24,0 +26,0 @@ DigitDecompositionEventDescriptorV0 = 55306, |
{ | ||
"name": "@node-dlc/messaging", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "DLC Messaging Protocol", | ||
@@ -40,3 +40,3 @@ "scripts": { | ||
}, | ||
"gitHead": "228bc0422dbe2dc9d1ec725dbb06e46fe9b8a052" | ||
"gitHead": "dae95b023e49496761565d69eb58cae977190dbd" | ||
} |
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
226
12128
1658759