@atomicfinance/client 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-lint.log +1 -0
- package/.yalc/@node-dlc/bitcoin/.nyc_output/982e80bf-a70c-452f-b63d-d749ae385531.json +1 -0
- package/.yalc/@node-dlc/bitcoin/.nyc_output/processinfo/982e80bf-a70c-452f-b63d-d749ae385531.json +1 -0
- package/.yalc/@node-dlc/bitcoin/.nyc_output/processinfo/index.json +1 -0
- package/.yalc/@node-dlc/bitcoin/README.md +11 -0
- package/.yalc/@node-dlc/bitcoin/__tests__/bitcoin/amount.spec.ts +330 -0
- package/.yalc/@node-dlc/bitcoin/__tests__/bitcoin/value.spec.ts +320 -0
- package/.yalc/@node-dlc/bitcoin/__tests__/tsconfig.json +8 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Amount.ts.html +290 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Base58.ts.html +269 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Base58Check.ts.html +182 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/BitcoinError.ts.html +173 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/BitcoinErrorCode.ts.html +110 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/HashByteOrder.ts.html +143 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/HashValue.ts.html +350 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/LexicographicalSorters.ts.html +191 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/LockTime.ts.html +386 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/OpCodes.ts.html +437 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/OutPoint.ts.html +383 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Script.ts.html +1607 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Sequence.ts.html +713 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/SigHashType.ts.html +137 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Stack.ts.html +323 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/TimeLockMode.ts.html +128 -0
- package/.yalc/@node-dlc/{messaging/coverage/lcov-report/lib/serde/SerdeUtils.ts.html → bitcoin/coverage/lcov-report/Tx.ts.html} +617 -491
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/TxBuilder.ts.html +971 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/TxIn.ts.html +425 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/TxOut.ts.html +341 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Value.ts.html +683 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Wif.ts.html +311 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/Witness.ts.html +275 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/base.css +224 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/block-navigation.js +79 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/favicon.png +0 -0
- package/.yalc/@node-dlc/{messaging/coverage/lcov-report/lib/serde → bitcoin/coverage/lcov-report}/index.html +45 -30
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/index.ts.html +164 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/prettify.css +1 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/prettify.js +2 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov-report/sorter.js +170 -0
- package/.yalc/@node-dlc/bitcoin/coverage/lcov.info +123 -0
- package/.yalc/@node-dlc/bitcoin/dist/Amount.d.ts +48 -0
- package/.yalc/@node-dlc/bitcoin/dist/Amount.js +68 -0
- package/.yalc/@node-dlc/bitcoin/dist/Amount.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Base58.d.ts +22 -0
- package/.yalc/@node-dlc/bitcoin/dist/Base58.js +62 -0
- package/.yalc/@node-dlc/bitcoin/dist/Base58.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Base58Check.d.ts +14 -0
- package/.yalc/@node-dlc/bitcoin/dist/Base58Check.js +36 -0
- package/.yalc/@node-dlc/bitcoin/dist/Base58Check.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/BitcoinError.d.ts +6 -0
- package/.yalc/@node-dlc/bitcoin/dist/BitcoinError.js +36 -0
- package/.yalc/@node-dlc/bitcoin/dist/BitcoinError.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/BitcoinErrorCode.d.ts +10 -0
- package/.yalc/@node-dlc/bitcoin/dist/BitcoinErrorCode.js +15 -0
- package/.yalc/@node-dlc/bitcoin/dist/BitcoinErrorCode.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Block.d.ts +19 -0
- package/.yalc/@node-dlc/bitcoin/dist/Block.js +3 -0
- package/.yalc/@node-dlc/bitcoin/dist/Block.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/HashByteOrder.d.ts +20 -0
- package/.yalc/@node-dlc/bitcoin/dist/HashByteOrder.js +25 -0
- package/.yalc/@node-dlc/bitcoin/dist/HashByteOrder.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/HashValue.d.ts +55 -0
- package/.yalc/@node-dlc/bitcoin/dist/HashValue.js +82 -0
- package/.yalc/@node-dlc/bitcoin/dist/HashValue.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/ICloneable.d.ts +3 -0
- package/.yalc/@node-dlc/bitcoin/dist/ICloneable.js +3 -0
- package/.yalc/@node-dlc/bitcoin/dist/ICloneable.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/LexicographicalSorters.d.ts +18 -0
- package/.yalc/@node-dlc/bitcoin/dist/LexicographicalSorters.js +41 -0
- package/.yalc/@node-dlc/bitcoin/dist/LexicographicalSorters.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/LockTime.d.ts +61 -0
- package/.yalc/@node-dlc/bitcoin/dist/LockTime.js +94 -0
- package/.yalc/@node-dlc/bitcoin/dist/LockTime.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/OpCodes.d.ts +102 -0
- package/.yalc/@node-dlc/bitcoin/dist/OpCodes.js +116 -0
- package/.yalc/@node-dlc/bitcoin/dist/OpCodes.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/OutPoint.d.ts +57 -0
- package/.yalc/@node-dlc/bitcoin/dist/OutPoint.js +88 -0
- package/.yalc/@node-dlc/bitcoin/dist/OutPoint.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Script.d.ts +185 -0
- package/.yalc/@node-dlc/bitcoin/dist/Script.js +404 -0
- package/.yalc/@node-dlc/bitcoin/dist/Script.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/ScriptCmd.d.ts +3 -0
- package/.yalc/@node-dlc/bitcoin/dist/ScriptCmd.js +3 -0
- package/.yalc/@node-dlc/bitcoin/dist/ScriptCmd.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Sequence.d.ts +116 -0
- package/.yalc/@node-dlc/bitcoin/dist/Sequence.js +187 -0
- package/.yalc/@node-dlc/bitcoin/dist/Sequence.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/SigHashType.d.ts +7 -0
- package/.yalc/@node-dlc/bitcoin/dist/SigHashType.js +27 -0
- package/.yalc/@node-dlc/bitcoin/dist/SigHashType.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/SizeResult.d.ts +5 -0
- package/.yalc/@node-dlc/bitcoin/dist/SizeResult.js +3 -0
- package/.yalc/@node-dlc/bitcoin/dist/SizeResult.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Sorter.d.ts +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Sorter.js +3 -0
- package/.yalc/@node-dlc/bitcoin/dist/Sorter.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Stack.d.ts +15 -0
- package/.yalc/@node-dlc/bitcoin/dist/Stack.js +77 -0
- package/.yalc/@node-dlc/bitcoin/dist/Stack.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/TimeLockMode.d.ts +15 -0
- package/.yalc/@node-dlc/bitcoin/dist/TimeLockMode.js +20 -0
- package/.yalc/@node-dlc/bitcoin/dist/TimeLockMode.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Tx.d.ts +150 -0
- package/.yalc/@node-dlc/bitcoin/dist/Tx.js +408 -0
- package/.yalc/@node-dlc/bitcoin/dist/Tx.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxBuilder.d.ts +110 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxBuilder.js +238 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxBuilder.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxIn.d.ts +71 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxIn.js +79 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxIn.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxOut.d.ts +57 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxOut.js +68 -0
- package/.yalc/@node-dlc/bitcoin/dist/TxOut.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Value.d.ts +122 -0
- package/.yalc/@node-dlc/bitcoin/dist/Value.js +180 -0
- package/.yalc/@node-dlc/bitcoin/dist/Value.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Wif.d.ts +41 -0
- package/.yalc/@node-dlc/bitcoin/dist/Wif.js +62 -0
- package/.yalc/@node-dlc/bitcoin/dist/Wif.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/Witness.d.ts +41 -0
- package/.yalc/@node-dlc/bitcoin/dist/Witness.js +63 -0
- package/.yalc/@node-dlc/bitcoin/dist/Witness.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/dist/index.d.ts +28 -0
- package/.yalc/@node-dlc/bitcoin/dist/index.js +45 -0
- package/.yalc/@node-dlc/bitcoin/dist/index.js.map +1 -0
- package/.yalc/@node-dlc/bitcoin/lib/Amount.ts +70 -0
- package/.yalc/@node-dlc/bitcoin/lib/Base58.ts +63 -0
- package/.yalc/@node-dlc/bitcoin/lib/Base58Check.ts +34 -0
- package/.yalc/@node-dlc/bitcoin/lib/BitcoinError.ts +31 -0
- package/.yalc/@node-dlc/bitcoin/lib/BitcoinErrorCode.ts +10 -0
- package/.yalc/@node-dlc/bitcoin/lib/Block.ts +20 -0
- package/.yalc/@node-dlc/bitcoin/lib/HashByteOrder.ts +21 -0
- package/.yalc/@node-dlc/bitcoin/lib/HashValue.ts +90 -0
- package/.yalc/@node-dlc/bitcoin/lib/ICloneable.ts +3 -0
- package/.yalc/@node-dlc/bitcoin/lib/LexicographicalSorters.ts +37 -0
- package/.yalc/@node-dlc/bitcoin/lib/LockTime.ts +102 -0
- package/.yalc/@node-dlc/bitcoin/lib/OpCodes.ts +119 -0
- package/.yalc/@node-dlc/bitcoin/lib/OutPoint.ts +101 -0
- package/.yalc/@node-dlc/bitcoin/lib/Script.ts +509 -0
- package/.yalc/@node-dlc/bitcoin/lib/ScriptCmd.ts +3 -0
- package/.yalc/@node-dlc/bitcoin/lib/Sequence.ts +211 -0
- package/.yalc/@node-dlc/bitcoin/lib/SigHashType.ts +19 -0
- package/.yalc/@node-dlc/bitcoin/lib/SizeResult.ts +5 -0
- package/.yalc/@node-dlc/bitcoin/lib/Sorter.ts +1 -0
- package/.yalc/@node-dlc/bitcoin/lib/Stack.ts +81 -0
- package/.yalc/@node-dlc/bitcoin/lib/TimeLockMode.ts +16 -0
- package/.yalc/@node-dlc/bitcoin/lib/Tx.ts +480 -0
- package/.yalc/@node-dlc/bitcoin/lib/TxBuilder.ts +297 -0
- package/.yalc/@node-dlc/bitcoin/lib/TxIn.ts +115 -0
- package/.yalc/@node-dlc/bitcoin/lib/TxOut.ts +87 -0
- package/.yalc/@node-dlc/bitcoin/lib/Value.ts +201 -0
- package/.yalc/@node-dlc/bitcoin/lib/Wif.ts +77 -0
- package/.yalc/@node-dlc/bitcoin/lib/Witness.ts +65 -0
- package/.yalc/@node-dlc/bitcoin/lib/index.ts +28 -0
- package/.yalc/@node-dlc/bitcoin/package.json +31 -0
- package/.yalc/@node-dlc/bitcoin/tsconfig.json +8 -0
- package/.yalc/@node-dlc/bitcoin/yalc.sig +1 -0
- package/.yalc/@node-dlc/messaging/.nyc_output/83d37f9d-cecf-4c52-a753-115ff80bbca0.json +1 -0
- package/.yalc/@node-dlc/messaging/.nyc_output/processinfo/83d37f9d-cecf-4c52-a753-115ff80bbca0.json +1 -0
- package/.yalc/@node-dlc/messaging/.nyc_output/processinfo/index.json +1 -1
- package/.yalc/@node-dlc/messaging/__tests__/_test-utils.ts +1 -0
- package/.yalc/@node-dlc/messaging/__tests__/compatibility/dlcspecs-compatibility.spec.ts +13 -47
- package/.yalc/@node-dlc/messaging/__tests__/compatibility/rust-dlc-cross-language.spec.ts +166 -253
- package/.yalc/@node-dlc/messaging/__tests__/compatibility/true-serialization-compatibility.spec.ts +214 -483
- package/.yalc/@node-dlc/messaging/__tests__/messages/ContractDescriptor.spec.ts +3 -1
- package/.yalc/@node-dlc/messaging/__tests__/messages/ContractInfo.spec.ts +1 -1
- package/.yalc/@node-dlc/messaging/__tests__/messages/DlcAccept.spec.ts +72 -0
- package/.yalc/@node-dlc/messaging/__tests__/messages/DlcInput.spec.ts +111 -0
- package/.yalc/@node-dlc/messaging/__tests__/messages/DlcOffer.spec.ts +99 -37
- package/.yalc/@node-dlc/messaging/__tests__/messages/FundingInput.spec.ts +148 -63
- package/.yalc/@node-dlc/messaging/__tests__/messages/OracleAttestation.spec.ts +2 -4
- package/.yalc/@node-dlc/messaging/__tests__/messages/OrderAccept.spec.ts +7 -9
- package/.yalc/@node-dlc/messaging/__tests__/messages/OrderNegotiationFields.spec.ts +135 -52
- package/.yalc/@node-dlc/messaging/__tests__/messages/OrderPositionInfo.spec.ts +6 -6
- package/.yalc/@node-dlc/messaging/__tests__/messages/PayoutCurvePiece.spec.ts +1 -1
- package/.yalc/@node-dlc/messaging/__tests__/messages/PayoutFunction.spec.ts +1 -1
- package/.yalc/@node-dlc/messaging/__tests__/serialize/F64.spec.ts +1 -0
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/index.html +31 -31
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/MessageType.ts.html +11 -5
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/chain/ChainManager.ts.html +6 -3
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/chain/ChainMemoryStore.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/chain/index.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/domain/Address.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/domain/index.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/index.html +9 -9
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/index.ts.html +11 -8
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/irc/IrcMessage.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/irc/index.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/AddressCache.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/BatchFundingGroup.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/CetAdaptorSignatures.ts.html +22 -22
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/CetAdaptorSignaturesV0.ts.html +46 -37
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/CloseTLV.ts.html +344 -0
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/ContractDescriptor.ts.html +61 -70
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/ContractInfo.ts.html +59 -44
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcAccept.ts.html +251 -119
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcCancel.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcClose.ts.html +12 -3
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcCloseMetadata.ts.html +2 -11
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcIds.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcInfo.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcInput.ts.html +581 -0
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcMessage.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcOffer.ts.html +307 -127
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcSign.ts.html +61 -46
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/DlcTransactions.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/EventDescriptor.ts.html +67 -52
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/FundingInput.ts.html +202 -70
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/FundingSignatures.ts.html +15 -15
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/FundingSignaturesV0.ts.html +47 -77
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/NegotiationFields.ts.html +16 -4
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/NodeAnnouncementMessage.ts.html +3 -3
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleAnnouncement.ts.html +22 -22
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleAnnouncementV0.ts.html +48 -270
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleAttestation.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleAttestationV0.ts.html +113 -404
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleEvent.ts.html +49 -49
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleEventContainer.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleEventContainerV0.ts.html +22 -22
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleEventV0.ts.html +61 -385
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleIdentifier.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleIdentifierV0.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleInfo.ts.html +46 -25
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OracleInfoV0.ts.html +55 -1378
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OrderAccept.ts.html +68 -23
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OrderIrcInfo.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OrderMetadata.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OrderNegotiationFields.ts.html +266 -107
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OrderOffer.ts.html +31 -34
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/OrderPositionInfo.ts.html +19 -88
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/PayoutCurvePiece.ts.html +36 -21
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/PayoutFunction.ts.html +34 -28
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/RoundingIntervals.ts.html +18 -15
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/RoundingIntervalsV0.ts.html +75 -129
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/ScriptWitnessV0.ts.html +6 -6
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/messages/index.html +84 -69
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/serialize/F64.ts.html +8 -53
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/serialize/deserializeTlv.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/serialize/getTlv.ts.html +9 -9
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/serialize/index.html +15 -15
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/util.ts.html +22 -10
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/validation/index.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov-report/lib/validation/validate.ts.html +1 -1
- package/.yalc/@node-dlc/messaging/coverage/lcov.info +3049 -2826
- package/.yalc/@node-dlc/messaging/dist/MessageType.d.ts +2 -1
- package/.yalc/@node-dlc/messaging/dist/MessageType.js +2 -1
- package/.yalc/@node-dlc/messaging/dist/MessageType.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/chain/ChainManager.js +1 -0
- package/.yalc/@node-dlc/messaging/dist/chain/ChainManager.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/index.d.ts +5 -4
- package/.yalc/@node-dlc/messaging/dist/index.js +5 -4
- package/.yalc/@node-dlc/messaging/dist/index.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/CetAdaptorSignaturesV0.d.ts +42 -0
- package/.yalc/@node-dlc/messaging/dist/messages/CetAdaptorSignaturesV0.js +68 -0
- package/.yalc/@node-dlc/messaging/dist/messages/CetAdaptorSignaturesV0.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/CloseTLV.d.ts +38 -0
- package/.yalc/@node-dlc/messaging/dist/messages/CloseTLV.js +59 -0
- package/.yalc/@node-dlc/messaging/dist/messages/CloseTLV.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/ContractDescriptor.d.ts +11 -12
- package/.yalc/@node-dlc/messaging/dist/messages/ContractDescriptor.js +0 -1
- package/.yalc/@node-dlc/messaging/dist/messages/ContractDescriptor.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/ContractInfo.d.ts +10 -10
- package/.yalc/@node-dlc/messaging/dist/messages/ContractInfo.js +5 -1
- package/.yalc/@node-dlc/messaging/dist/messages/ContractInfo.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/DlcAccept.d.ts +15 -0
- package/.yalc/@node-dlc/messaging/dist/messages/DlcAccept.js +46 -5
- package/.yalc/@node-dlc/messaging/dist/messages/DlcAccept.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/DlcClose.js +6 -2
- package/.yalc/@node-dlc/messaging/dist/messages/DlcClose.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/DlcCloseMetadata.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/DlcInput.d.ts +56 -0
- package/.yalc/@node-dlc/messaging/dist/messages/DlcInput.js +135 -0
- package/.yalc/@node-dlc/messaging/dist/messages/DlcInput.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/DlcOffer.d.ts +16 -1
- package/.yalc/@node-dlc/messaging/dist/messages/DlcOffer.js +50 -5
- package/.yalc/@node-dlc/messaging/dist/messages/DlcOffer.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/DlcSign.js +11 -3
- package/.yalc/@node-dlc/messaging/dist/messages/DlcSign.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/EventDescriptor.d.ts +7 -6
- package/.yalc/@node-dlc/messaging/dist/messages/EventDescriptor.js +3 -0
- package/.yalc/@node-dlc/messaging/dist/messages/EventDescriptor.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/FundingInput.d.ts +7 -0
- package/.yalc/@node-dlc/messaging/dist/messages/FundingInput.js +31 -1
- package/.yalc/@node-dlc/messaging/dist/messages/FundingInput.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/FundingSignaturesV0.d.ts +34 -0
- package/.yalc/@node-dlc/messaging/dist/messages/FundingSignaturesV0.js +72 -0
- package/.yalc/@node-dlc/messaging/dist/messages/FundingSignaturesV0.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/NegotiationFields.d.ts +2 -2
- package/.yalc/@node-dlc/messaging/dist/messages/NegotiationFields.js +4 -0
- package/.yalc/@node-dlc/messaging/dist/messages/NegotiationFields.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OracleAnnouncementV0.d.ts +47 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleAnnouncementV0.js +76 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleAnnouncementV0.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleAttestationV0.d.ts +48 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleAttestationV0.js +100 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleAttestationV0.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleEventContainerV0.d.ts +32 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleEventContainerV0.js +67 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleEventContainerV0.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleEventV0.d.ts +54 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleEventV0.js +100 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleEventV0.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleInfo.d.ts +8 -6
- package/.yalc/@node-dlc/messaging/dist/messages/OracleInfo.js +3 -0
- package/.yalc/@node-dlc/messaging/dist/messages/OracleInfo.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OracleInfoV0.d.ts +15 -141
- package/.yalc/@node-dlc/messaging/dist/messages/OracleInfoV0.js +21 -350
- package/.yalc/@node-dlc/messaging/dist/messages/OracleInfoV0.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OrderAccept.d.ts +3 -2
- package/.yalc/@node-dlc/messaging/dist/messages/OrderAccept.js +22 -7
- package/.yalc/@node-dlc/messaging/dist/messages/OrderAccept.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OrderNegotiationFields.d.ts +48 -36
- package/.yalc/@node-dlc/messaging/dist/messages/OrderNegotiationFields.js +97 -50
- package/.yalc/@node-dlc/messaging/dist/messages/OrderNegotiationFields.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OrderOffer.d.ts +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OrderOffer.js +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OrderOffer.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/OrderPositionInfo.d.ts +7 -13
- package/.yalc/@node-dlc/messaging/dist/messages/OrderPositionInfo.js +11 -25
- package/.yalc/@node-dlc/messaging/dist/messages/OrderPositionInfo.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/PayoutCurvePiece.js +5 -0
- package/.yalc/@node-dlc/messaging/dist/messages/PayoutCurvePiece.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/PayoutFunction.js +4 -1
- package/.yalc/@node-dlc/messaging/dist/messages/PayoutFunction.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/RoundingIntervals.js +1 -0
- package/.yalc/@node-dlc/messaging/dist/messages/RoundingIntervals.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/messages/RoundingIntervalsV0.d.ts +47 -0
- package/.yalc/@node-dlc/messaging/dist/messages/RoundingIntervalsV0.js +86 -0
- package/.yalc/@node-dlc/messaging/dist/messages/RoundingIntervalsV0.js.map +1 -0
- package/.yalc/@node-dlc/messaging/dist/serialize/F64.d.ts +0 -8
- package/.yalc/@node-dlc/messaging/dist/serialize/F64.js +0 -13
- package/.yalc/@node-dlc/messaging/dist/serialize/F64.js.map +1 -1
- package/.yalc/@node-dlc/messaging/dist/util.d.ts +1 -1
- package/.yalc/@node-dlc/messaging/dist/util.js +2 -0
- package/.yalc/@node-dlc/messaging/dist/util.js.map +1 -1
- package/.yalc/@node-dlc/messaging/lib/MessageType.ts +3 -1
- package/.yalc/@node-dlc/messaging/lib/chain/ChainManager.ts +1 -0
- package/.yalc/@node-dlc/messaging/lib/index.ts +5 -4
- package/.yalc/@node-dlc/messaging/lib/messages/ContractDescriptor.ts +15 -16
- package/.yalc/@node-dlc/messaging/lib/messages/ContractInfo.ts +17 -12
- package/.yalc/@node-dlc/messaging/lib/messages/DlcAccept.ts +50 -6
- package/.yalc/@node-dlc/messaging/lib/messages/DlcClose.ts +4 -1
- package/.yalc/@node-dlc/messaging/lib/messages/DlcCloseMetadata.ts +0 -3
- package/.yalc/@node-dlc/messaging/lib/messages/DlcInput.ts +167 -0
- package/.yalc/@node-dlc/messaging/lib/messages/DlcOffer.ts +67 -7
- package/.yalc/@node-dlc/messaging/lib/messages/DlcSign.ts +5 -0
- package/.yalc/@node-dlc/messaging/lib/messages/EventDescriptor.ts +12 -7
- package/.yalc/@node-dlc/messaging/lib/messages/FundingInput.ts +45 -1
- package/.yalc/@node-dlc/messaging/lib/messages/NegotiationFields.ts +6 -2
- package/.yalc/@node-dlc/messaging/lib/messages/NodeAnnouncementMessage.ts +2 -2
- package/.yalc/@node-dlc/messaging/lib/messages/OracleInfo.ts +15 -8
- package/.yalc/@node-dlc/messaging/lib/messages/OrderAccept.ts +28 -13
- package/.yalc/@node-dlc/messaging/lib/messages/OrderNegotiationFields.ts +127 -74
- package/.yalc/@node-dlc/messaging/lib/messages/OrderOffer.ts +2 -3
- package/.yalc/@node-dlc/messaging/lib/messages/OrderPositionInfo.ts +10 -33
- package/.yalc/@node-dlc/messaging/lib/messages/PayoutCurvePiece.ts +5 -0
- package/.yalc/@node-dlc/messaging/lib/messages/PayoutFunction.ts +2 -0
- package/.yalc/@node-dlc/messaging/lib/messages/RoundingIntervals.ts +1 -0
- package/.yalc/@node-dlc/messaging/lib/serialize/F64.ts +0 -15
- package/.yalc/@node-dlc/messaging/lib/serialize/readTlvs.ts +1 -1
- package/.yalc/@node-dlc/messaging/lib/util.ts +5 -1
- package/.yalc/@node-dlc/messaging/package.json +8 -8
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/enum_3_of_3_test.json +76 -74
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/enum_3_of_5_test.json +90 -88
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/enum_and_numerical_3_of_5_test.json +162 -160
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/enum_and_numerical_5_of_5_test.json +162 -160
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/enum_and_numerical_with_diff_3_of_5_test.json +164 -162
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/enum_and_numerical_with_diff_5_of_5_test.json +164 -162
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/enum_single_oracle_test.json +60 -58
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/single_oracle_numerical_hyperbola_test.json +71 -69
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/single_oracle_numerical_test.json +71 -69
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/three_of_five_oracle_numerical_with_diff_test.json +119 -117
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/three_of_three_oracle_numerical_test.json +95 -93
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/three_of_three_oracle_numerical_with_diff_test.json +97 -95
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/two_of_five_oracle_numerical_test.json +117 -115
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs/two_of_five_oracle_numerical_with_diff_test.json +119 -117
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/enum_3_of_3_test.json +210 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/enum_3_of_5_test.json +468 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/enum_and_numerical_3_of_5_test.json +1517 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/enum_and_numerical_5_of_5_test.json +545 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/enum_and_numerical_with_diff_3_of_5_test.json +4761 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/enum_and_numerical_with_diff_5_of_5_test.json +2169 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/enum_single_oracle_test.json +164 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/single_oracle_numerical_hyperbola_test.json +502 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/single_oracle_numerical_test.json +262 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/three_of_five_oracle_numerical_with_diff_test.json +4382 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/three_of_three_oracle_numerical_test.json +324 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/three_of_three_oracle_numerical_with_diff_test.json +652 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/two_of_five_oracle_numerical_test.json +1138 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250718_132453/two_of_five_oracle_numerical_with_diff_test.json +2222 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/enum_3_of_3_test.json +212 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/enum_3_of_5_test.json +470 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/enum_and_numerical_3_of_5_test.json +1519 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/enum_and_numerical_5_of_5_test.json +547 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/enum_and_numerical_with_diff_3_of_5_test.json +4763 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/enum_and_numerical_with_diff_5_of_5_test.json +2171 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/enum_single_oracle_test.json +166 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/single_oracle_numerical_hyperbola_test.json +504 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/single_oracle_numerical_test.json +264 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/three_of_five_oracle_numerical_with_diff_test.json +4384 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/three_of_three_oracle_numerical_test.json +326 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/three_of_three_oracle_numerical_with_diff_test.json +654 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/two_of_five_oracle_numerical_test.json +1140 -0
- package/.yalc/@node-dlc/messaging/test_vectors/dlcspecs_backup_20250719_185952/two_of_five_oracle_numerical_with_diff_test.json +2224 -0
- package/.yalc/@node-dlc/messaging/yalc.sig +1 -1
- package/CHANGELOG.md +47 -5
- package/dist/Cfd.js +1 -0
- package/dist/Cfd.js.map +1 -1
- package/dist/Chain.js +1 -0
- package/dist/Chain.js.map +1 -1
- package/dist/Client.js +7 -1
- package/dist/Client.js.map +1 -1
- package/dist/Dlc.d.ts +39 -2
- package/dist/Dlc.js +58 -2
- package/dist/Dlc.js.map +1 -1
- package/dist/Wallet.js +3 -0
- package/dist/Wallet.js.map +1 -1
- package/lib/Cfd.ts +2 -0
- package/lib/Chain.ts +2 -0
- package/lib/Client.ts +5 -0
- package/lib/Dlc.ts +114 -0
- package/lib/Wallet.ts +4 -0
- package/package.json +7 -7
- package/yalc.lock +7 -2
- package/.yalc/@node-dlc/messaging/.nyc_output/2cf48009-1094-4275-bb91-c164c932feb6.json +0 -1
- package/.yalc/@node-dlc/messaging/.nyc_output/processinfo/2cf48009-1094-4275-bb91-c164c932feb6.json +0 -1
|
@@ -155,7 +155,6 @@ describe('OracleAttestation', () => {
|
|
|
155
155
|
});
|
|
156
156
|
|
|
157
157
|
describe('Lava attestation', () => {
|
|
158
|
-
let announcement: OracleAnnouncement;
|
|
159
158
|
let instance: OracleAttestation;
|
|
160
159
|
|
|
161
160
|
before(() => {
|
|
@@ -163,7 +162,7 @@ describe('OracleAttestation', () => {
|
|
|
163
162
|
testVectors.lava.announcement,
|
|
164
163
|
'hex',
|
|
165
164
|
);
|
|
166
|
-
|
|
165
|
+
OracleAnnouncement.deserialize(announcementBuf); // ensure announcement deserializes
|
|
167
166
|
const attestationBuf = Buffer.from(testVectors.lava.attestation, 'hex');
|
|
168
167
|
instance = OracleAttestation.deserialize(attestationBuf);
|
|
169
168
|
});
|
|
@@ -199,7 +198,6 @@ describe('OracleAttestation', () => {
|
|
|
199
198
|
});
|
|
200
199
|
|
|
201
200
|
describe('rust-dlc enum oracle', () => {
|
|
202
|
-
let announcement: OracleAnnouncement;
|
|
203
201
|
let instance: OracleAttestation;
|
|
204
202
|
|
|
205
203
|
before(() => {
|
|
@@ -207,7 +205,7 @@ describe('OracleAttestation', () => {
|
|
|
207
205
|
testVectors.rust_dlc_enum.announcement,
|
|
208
206
|
'hex',
|
|
209
207
|
);
|
|
210
|
-
|
|
208
|
+
OracleAnnouncement.deserialize(announcementBuf); // ensure announcement deserializes
|
|
211
209
|
const attestationBuf = Buffer.from(
|
|
212
210
|
testVectors.rust_dlc_enum.attestation,
|
|
213
211
|
'hex',
|
|
@@ -22,14 +22,13 @@ describe('OrderAccept', () => {
|
|
|
22
22
|
const instance = new OrderAccept();
|
|
23
23
|
|
|
24
24
|
instance.tempOrderId = tempOrderId;
|
|
25
|
-
instance.negotiationFields = OrderNegotiationFieldsV0
|
|
26
|
-
Buffer.from('fdff3600', 'hex'),
|
|
27
|
-
);
|
|
25
|
+
instance.negotiationFields = new OrderNegotiationFieldsV0();
|
|
28
26
|
|
|
29
27
|
expect(instance.serialize().toString("hex")).to.equal(
|
|
30
28
|
"f534" + // type order_accept_v0
|
|
31
29
|
"960fb5f7960382ac7e76f3e24eb6b00059b1e68632a946843c22e1f65fdf216a" + // temp_order_id
|
|
32
|
-
"
|
|
30
|
+
"01" + // has negotiation fields (0x01)
|
|
31
|
+
"00" // SingleOrderNegotiationFields discriminator (0x00)
|
|
33
32
|
); // prettier-ignore
|
|
34
33
|
});
|
|
35
34
|
});
|
|
@@ -39,7 +38,8 @@ describe('OrderAccept', () => {
|
|
|
39
38
|
const buf = Buffer.from(
|
|
40
39
|
"f534" + // type order_accept_v0
|
|
41
40
|
"960fb5f7960382ac7e76f3e24eb6b00059b1e68632a946843c22e1f65fdf216a" + // temp_order_id
|
|
42
|
-
"
|
|
41
|
+
"01" + // has negotiation fields (0x01)
|
|
42
|
+
"00" // SingleOrderNegotiationFields discriminator (0x00)
|
|
43
43
|
, "hex"
|
|
44
44
|
); // prettier-ignore
|
|
45
45
|
|
|
@@ -47,7 +47,7 @@ describe('OrderAccept', () => {
|
|
|
47
47
|
|
|
48
48
|
expect(instance.tempOrderId).to.deep.equal(tempOrderId);
|
|
49
49
|
expect(instance.negotiationFields.serialize().toString('hex')).to.equal(
|
|
50
|
-
'
|
|
50
|
+
'00',
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
});
|
|
@@ -57,9 +57,7 @@ describe('OrderAccept', () => {
|
|
|
57
57
|
const orderAccept = new OrderAccept();
|
|
58
58
|
|
|
59
59
|
orderAccept.tempOrderId = tempOrderId;
|
|
60
|
-
orderAccept.negotiationFields = OrderNegotiationFieldsV0
|
|
61
|
-
Buffer.from('fdff3600', 'hex'),
|
|
62
|
-
);
|
|
60
|
+
orderAccept.negotiationFields = new OrderNegotiationFieldsV0();
|
|
63
61
|
|
|
64
62
|
// swap payout and change spk to differentiate between dlcoffers
|
|
65
63
|
const orderAccept2 = OrderAccept.deserialize(orderAccept.serialize());
|
|
@@ -7,24 +7,20 @@ import { OracleAnnouncement } from '../../lib/messages/OracleAnnouncement';
|
|
|
7
7
|
import { OracleEvent } from '../../lib/messages/OracleEvent';
|
|
8
8
|
import { SingleOracleInfo } from '../../lib/messages/OracleInfo';
|
|
9
9
|
import {
|
|
10
|
+
DisjointOrderNegotiationFields,
|
|
10
11
|
OrderNegotiationFields,
|
|
11
|
-
|
|
12
|
-
OrderNegotiationFieldsV1,
|
|
12
|
+
SingleOrderNegotiationFields,
|
|
13
13
|
} from '../../lib/messages/OrderNegotiationFields';
|
|
14
14
|
import { OrderOffer } from '../../lib/messages/OrderOffer';
|
|
15
|
-
import { MessageType } from '../../lib/MessageType';
|
|
16
15
|
|
|
17
16
|
describe('OrderNegotiationFields', () => {
|
|
18
|
-
describe('
|
|
17
|
+
describe('SingleOrderNegotiationFields', () => {
|
|
19
18
|
describe('serialize', () => {
|
|
20
19
|
it('serializes', () => {
|
|
21
|
-
const instance = new
|
|
22
|
-
|
|
23
|
-
instance.length = BigInt(0);
|
|
20
|
+
const instance = new SingleOrderNegotiationFields();
|
|
24
21
|
|
|
25
22
|
expect(instance.serialize().toString('hex')).to.equal(
|
|
26
|
-
'
|
|
27
|
-
'00', // length
|
|
23
|
+
'00', // discriminator (0 for Single)
|
|
28
24
|
);
|
|
29
25
|
});
|
|
30
26
|
});
|
|
@@ -32,26 +28,45 @@ describe('OrderNegotiationFields', () => {
|
|
|
32
28
|
describe('deserialize', () => {
|
|
33
29
|
it('deserializes', () => {
|
|
34
30
|
const buf = Buffer.from(
|
|
35
|
-
"
|
|
36
|
-
"00" // length
|
|
31
|
+
"00" // discriminator (0 for Single)
|
|
37
32
|
, "hex"
|
|
38
33
|
); // prettier-ignore
|
|
39
34
|
|
|
40
|
-
const
|
|
35
|
+
const instance = OrderNegotiationFields.deserialize(buf);
|
|
36
|
+
|
|
37
|
+
expect(instance).to.be.instanceof(SingleOrderNegotiationFields);
|
|
38
|
+
expect(instance.variant).to.equal('Single');
|
|
39
|
+
expect(instance.discriminator).to.equal(0);
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
describe('fromJSON', () => {
|
|
44
|
+
it('creates from JSON', () => {
|
|
45
|
+
const json = {
|
|
46
|
+
variant: 'Single',
|
|
47
|
+
};
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
const instance = unknownInstance as OrderNegotiationFieldsV0;
|
|
49
|
+
const instance = OrderNegotiationFields.fromJSON(json);
|
|
44
50
|
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
expect(instance).to.be.instanceof(SingleOrderNegotiationFields);
|
|
52
|
+
expect(instance.variant).to.equal('Single');
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
describe('toJSON', () => {
|
|
57
|
+
it('converts to JSON', () => {
|
|
58
|
+
const instance = new SingleOrderNegotiationFields();
|
|
59
|
+
const json = instance.toJSON();
|
|
60
|
+
|
|
61
|
+
expect(json.variant).to.equal('Single');
|
|
47
62
|
});
|
|
48
63
|
});
|
|
49
64
|
});
|
|
50
65
|
|
|
51
|
-
describe('
|
|
66
|
+
describe('DisjointOrderNegotiationFields', () => {
|
|
52
67
|
describe('serialize', () => {
|
|
53
68
|
it('serializes', () => {
|
|
54
|
-
const instance = new
|
|
69
|
+
const instance = new DisjointOrderNegotiationFields();
|
|
55
70
|
|
|
56
71
|
// Create OrderOffer programmatically for simplified format
|
|
57
72
|
const orderOffer = new OrderOffer();
|
|
@@ -107,7 +122,6 @@ describe('OrderNegotiationFields', () => {
|
|
|
107
122
|
orderOffer.refundLocktime = 200;
|
|
108
123
|
|
|
109
124
|
instance.orderOffer = orderOffer;
|
|
110
|
-
instance.length = BigInt(orderOffer.serialize().length);
|
|
111
125
|
|
|
112
126
|
// Test that it serializes without errors (simplified format)
|
|
113
127
|
const serialized = instance.serialize();
|
|
@@ -119,7 +133,7 @@ describe('OrderNegotiationFields', () => {
|
|
|
119
133
|
describe('deserialize', () => {
|
|
120
134
|
it('deserializes', () => {
|
|
121
135
|
// Create a test instance and serialize it first for round-trip testing
|
|
122
|
-
const originalInstance = new
|
|
136
|
+
const originalInstance = new DisjointOrderNegotiationFields();
|
|
123
137
|
|
|
124
138
|
// Create OrderOffer programmatically for simplified format
|
|
125
139
|
const orderOffer = new OrderOffer();
|
|
@@ -175,41 +189,110 @@ describe('OrderNegotiationFields', () => {
|
|
|
175
189
|
orderOffer.refundLocktime = 200;
|
|
176
190
|
|
|
177
191
|
originalInstance.orderOffer = orderOffer;
|
|
178
|
-
originalInstance.length = BigInt(orderOffer.serialize().length);
|
|
179
192
|
|
|
180
193
|
// Serialize and then deserialize to ensure round-trip consistency
|
|
181
194
|
const serialized = originalInstance.serialize();
|
|
182
|
-
const
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
195
|
+
const instance = OrderNegotiationFields.deserialize(serialized);
|
|
196
|
+
|
|
197
|
+
expect(instance).to.be.instanceof(DisjointOrderNegotiationFields);
|
|
198
|
+
expect(instance.variant).to.equal('Disjoint');
|
|
199
|
+
expect(instance.discriminator).to.equal(1);
|
|
200
|
+
|
|
201
|
+
const disjointInstance = instance as DisjointOrderNegotiationFields;
|
|
202
|
+
expect(disjointInstance.orderOffer).to.be.instanceof(OrderOffer);
|
|
203
|
+
|
|
204
|
+
// Test the simplified OrderOffer properties
|
|
205
|
+
const deserializedOffer = disjointInstance.orderOffer;
|
|
206
|
+
expect(deserializedOffer.chainHash).to.deep.equal(orderOffer.chainHash);
|
|
207
|
+
expect(deserializedOffer.temporaryContractId).to.deep.equal(
|
|
208
|
+
orderOffer.temporaryContractId,
|
|
209
|
+
);
|
|
210
|
+
expect(deserializedOffer.offerCollateralSatoshis).to.equal(
|
|
211
|
+
orderOffer.offerCollateralSatoshis,
|
|
212
|
+
);
|
|
213
|
+
expect(deserializedOffer.feeRatePerVb).to.equal(
|
|
214
|
+
orderOffer.feeRatePerVb,
|
|
215
|
+
);
|
|
216
|
+
expect(deserializedOffer.cetLocktime).to.equal(orderOffer.cetLocktime);
|
|
217
|
+
expect(deserializedOffer.refundLocktime).to.equal(
|
|
218
|
+
orderOffer.refundLocktime,
|
|
219
|
+
);
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
describe('fromJSON', () => {
|
|
224
|
+
it('throws error when orderOffer is missing', () => {
|
|
225
|
+
const json = {
|
|
226
|
+
variant: 'Disjoint',
|
|
227
|
+
// Missing orderOffer field
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
expect(() => OrderNegotiationFields.fromJSON(json)).to.throw(
|
|
231
|
+
'DisjointOrderNegotiationFields requires orderOffer field',
|
|
232
|
+
);
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
describe('toJSON', () => {
|
|
237
|
+
it('converts to JSON', () => {
|
|
238
|
+
const instance = new DisjointOrderNegotiationFields();
|
|
239
|
+
|
|
240
|
+
// Create a fully configured OrderOffer for testing
|
|
241
|
+
const orderOffer = new OrderOffer();
|
|
242
|
+
orderOffer.contractFlags = Buffer.from('00', 'hex');
|
|
243
|
+
orderOffer.chainHash = Buffer.from(
|
|
244
|
+
'06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f',
|
|
245
|
+
'hex',
|
|
246
|
+
);
|
|
247
|
+
orderOffer.temporaryContractId = Buffer.from(
|
|
248
|
+
'0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef',
|
|
249
|
+
'hex',
|
|
250
|
+
);
|
|
251
|
+
|
|
252
|
+
// Create a simple contract info with enumerated outcomes
|
|
253
|
+
const contractInfo = new SingleContractInfo();
|
|
254
|
+
contractInfo.totalCollateral = BigInt(200000000);
|
|
255
|
+
|
|
256
|
+
// Create enumerated contract descriptor
|
|
257
|
+
const contractDescriptor = new EnumeratedDescriptor();
|
|
258
|
+
contractDescriptor.outcomes = [
|
|
259
|
+
{ outcome: 'win', localPayout: BigInt(0) },
|
|
260
|
+
{ outcome: 'lose', localPayout: BigInt(200000000) },
|
|
261
|
+
];
|
|
262
|
+
|
|
263
|
+
// Create oracle info (simplified)
|
|
264
|
+
const oracleInfo = new SingleOracleInfo();
|
|
265
|
+
const announcement = new OracleAnnouncement();
|
|
266
|
+
announcement.announcementSig = Buffer.alloc(64);
|
|
267
|
+
announcement.oraclePubkey = Buffer.alloc(32);
|
|
268
|
+
|
|
269
|
+
const oracleEvent = new OracleEvent();
|
|
270
|
+
oracleEvent.oracleNonces = [Buffer.alloc(32)];
|
|
271
|
+
oracleEvent.eventMaturityEpoch = 0;
|
|
272
|
+
|
|
273
|
+
// Use proper EnumEventDescriptorV0 for new dlcspecs PR #163 format
|
|
274
|
+
const eventDescriptor = new EnumEventDescriptorV0();
|
|
275
|
+
eventDescriptor.outcomes = ['win', 'lose'];
|
|
276
|
+
oracleEvent.eventDescriptor = eventDescriptor;
|
|
277
|
+
oracleEvent.eventId = 'test';
|
|
278
|
+
|
|
279
|
+
announcement.oracleEvent = oracleEvent;
|
|
280
|
+
oracleInfo.announcement = announcement;
|
|
281
|
+
|
|
282
|
+
contractInfo.contractDescriptor = contractDescriptor;
|
|
283
|
+
contractInfo.oracleInfo = oracleInfo;
|
|
284
|
+
|
|
285
|
+
orderOffer.contractInfo = contractInfo;
|
|
286
|
+
orderOffer.offerCollateralSatoshis = BigInt(100000000);
|
|
287
|
+
orderOffer.feeRatePerVb = BigInt(1);
|
|
288
|
+
orderOffer.cetLocktime = 100;
|
|
289
|
+
orderOffer.refundLocktime = 200;
|
|
290
|
+
|
|
291
|
+
instance.orderOffer = orderOffer;
|
|
292
|
+
const json = instance.toJSON();
|
|
293
|
+
|
|
294
|
+
expect(json.variant).to.equal('Disjoint');
|
|
295
|
+
expect(json.orderOffer).to.be.an('object');
|
|
213
296
|
});
|
|
214
297
|
});
|
|
215
298
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { expect } from 'chai';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { OrderPositionInfo } from '../../lib/messages/OrderPositionInfo';
|
|
4
4
|
|
|
5
5
|
describe('OrderPositionInfo', () => {
|
|
6
|
-
let instance:
|
|
6
|
+
let instance: OrderPositionInfo;
|
|
7
7
|
|
|
8
8
|
beforeEach(() => {
|
|
9
|
-
instance = new
|
|
9
|
+
instance = new OrderPositionInfo();
|
|
10
10
|
instance.shiftForFees = 'offeror';
|
|
11
11
|
instance.fees = BigInt(10000);
|
|
12
12
|
instance.instrumentName = 'BTC-24SEP23-23500-P';
|
|
@@ -21,7 +21,7 @@ describe('OrderPositionInfo', () => {
|
|
|
21
21
|
'fdf53a2e010000000000002710134254432d323453455032332d32333530302d500000000005f5e1000100000000000186a00000',
|
|
22
22
|
'hex',
|
|
23
23
|
);
|
|
24
|
-
const result =
|
|
24
|
+
const result = OrderPositionInfo.deserialize(buf);
|
|
25
25
|
|
|
26
26
|
expect(result.shiftForFees).to.equal('offeror');
|
|
27
27
|
expect(result.fees).to.equal(BigInt(10000));
|
|
@@ -29,14 +29,14 @@ describe('OrderPositionInfo', () => {
|
|
|
29
29
|
|
|
30
30
|
it('should throw an error for invalid shiftForFees value', () => {
|
|
31
31
|
const buf = Buffer.from('fdf53a09030000000000002710', 'hex');
|
|
32
|
-
expect(() =>
|
|
32
|
+
expect(() => OrderPositionInfo.deserialize(buf)).to.throw(
|
|
33
33
|
'Invalid shift for fees value: 3',
|
|
34
34
|
);
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
it('should deserialize with no instrument name or other parameters', () => {
|
|
38
38
|
const buf = Buffer.from('fdf53a2e010000000000002710', 'hex');
|
|
39
|
-
const result =
|
|
39
|
+
const result = OrderPositionInfo.deserialize(buf);
|
|
40
40
|
|
|
41
41
|
expect(result.shiftForFees).to.equal('offeror');
|
|
42
42
|
expect(result.fees).to.equal(BigInt(10000));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { F64 } from '../../lib/serialize/F64';
|
|
2
1
|
import { expect } from 'chai';
|
|
3
2
|
|
|
4
3
|
import {
|
|
@@ -6,6 +5,7 @@ import {
|
|
|
6
5
|
PayoutCurvePiece,
|
|
7
6
|
PolynomialPayoutCurvePiece,
|
|
8
7
|
} from '../../lib/messages/PayoutCurvePiece';
|
|
8
|
+
import { F64 } from '../../lib/serialize/F64';
|
|
9
9
|
|
|
10
10
|
describe('PayoutCurvePiece', () => {
|
|
11
11
|
describe('PolynomialPayoutCurvePiece', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { F64 } from '../../lib/serialize/F64';
|
|
2
1
|
import { expect } from 'chai';
|
|
3
2
|
|
|
4
3
|
import { HyperbolaPayoutCurvePiece } from '../../lib/messages/PayoutCurvePiece';
|
|
5
4
|
import { PayoutFunction } from '../../lib/messages/PayoutFunction';
|
|
5
|
+
import { F64 } from '../../lib/serialize/F64';
|
|
6
6
|
|
|
7
7
|
describe('PayoutFunction', () => {
|
|
8
8
|
describe('serialize', () => {
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">80.
|
|
26
|
+
<span class="strong">80.65% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>2559/3173</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">55.41% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>630/1137</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">77.89% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>370/475</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">80.
|
|
47
|
+
<span class="strong">80.86% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>2505/3098</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -74,17 +74,17 @@
|
|
|
74
74
|
</thead>
|
|
75
75
|
<tbody><tr>
|
|
76
76
|
<td class="file high" data-value="lib"><a href="lib/index.html">lib</a></td>
|
|
77
|
-
<td data-value="98.
|
|
77
|
+
<td data-value="98.62" class="pic high">
|
|
78
78
|
<div class="chart"><div class="cover-fill" style="width: 98%"></div><div class="cover-empty" style="width: 2%"></div></div>
|
|
79
79
|
</td>
|
|
80
|
-
<td data-value="98.
|
|
81
|
-
<td data-value="
|
|
80
|
+
<td data-value="98.62" class="pct high">98.62%</td>
|
|
81
|
+
<td data-value="145" class="abs high">143/145</td>
|
|
82
82
|
<td data-value="92.31" class="pct high">92.31%</td>
|
|
83
83
|
<td data-value="26" class="abs high">24/26</td>
|
|
84
84
|
<td data-value="90.91" class="pct high">90.91%</td>
|
|
85
85
|
<td data-value="11" class="abs high">10/11</td>
|
|
86
|
-
<td data-value="99.
|
|
87
|
-
<td data-value="
|
|
86
|
+
<td data-value="99.28" class="pct high">99.28%</td>
|
|
87
|
+
<td data-value="139" class="abs high">138/139</td>
|
|
88
88
|
</tr>
|
|
89
89
|
|
|
90
90
|
<tr>
|
|
@@ -134,32 +134,32 @@
|
|
|
134
134
|
|
|
135
135
|
<tr>
|
|
136
136
|
<td class="file high" data-value="lib/messages"><a href="lib/messages/index.html">lib/messages</a></td>
|
|
137
|
-
<td data-value="80.
|
|
137
|
+
<td data-value="80.85" class="pic high">
|
|
138
138
|
<div class="chart"><div class="cover-fill" style="width: 80%"></div><div class="cover-empty" style="width: 20%"></div></div>
|
|
139
139
|
</td>
|
|
140
|
-
<td data-value="80.
|
|
141
|
-
<td data-value="
|
|
142
|
-
<td data-value="
|
|
143
|
-
<td data-value="
|
|
144
|
-
<td data-value="77
|
|
145
|
-
<td data-value="
|
|
146
|
-
<td data-value="
|
|
147
|
-
<td data-value="
|
|
140
|
+
<td data-value="80.85" class="pct high">80.85%</td>
|
|
141
|
+
<td data-value="2653" class="abs high">2145/2653</td>
|
|
142
|
+
<td data-value="55.41" class="pct medium">55.41%</td>
|
|
143
|
+
<td data-value="998" class="abs medium">553/998</td>
|
|
144
|
+
<td data-value="78.77" class="pct medium">78.77%</td>
|
|
145
|
+
<td data-value="391" class="abs medium">308/391</td>
|
|
146
|
+
<td data-value="81" class="pct high">81%</td>
|
|
147
|
+
<td data-value="2600" class="abs high">2106/2600</td>
|
|
148
148
|
</tr>
|
|
149
149
|
|
|
150
150
|
<tr>
|
|
151
151
|
<td class="file medium" data-value="lib/serialize"><a href="lib/serialize/index.html">lib/serialize</a></td>
|
|
152
|
-
<td data-value="
|
|
153
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
152
|
+
<td data-value="71.03" class="pic medium">
|
|
153
|
+
<div class="chart"><div class="cover-fill" style="width: 71%"></div><div class="cover-empty" style="width: 29%"></div></div>
|
|
154
154
|
</td>
|
|
155
|
-
<td data-value="
|
|
156
|
-
<td data-value="
|
|
155
|
+
<td data-value="71.03" class="pct medium">71.03%</td>
|
|
156
|
+
<td data-value="107" class="abs medium">76/107</td>
|
|
157
157
|
<td data-value="52.63" class="pct medium">52.63%</td>
|
|
158
158
|
<td data-value="38" class="abs medium">20/38</td>
|
|
159
|
-
<td data-value="
|
|
160
|
-
<td data-value="
|
|
161
|
-
<td data-value="
|
|
162
|
-
<td data-value="
|
|
159
|
+
<td data-value="78.95" class="pct medium">78.95%</td>
|
|
160
|
+
<td data-value="38" class="abs medium">30/38</td>
|
|
161
|
+
<td data-value="71.43" class="pct medium">71.43%</td>
|
|
162
|
+
<td data-value="105" class="abs medium">75/105</td>
|
|
163
163
|
</tr>
|
|
164
164
|
|
|
165
165
|
<tr>
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
186
186
|
Code coverage generated by
|
|
187
187
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
188
|
-
at
|
|
188
|
+
at Sat Jul 19 2025 20:06:33 GMT-0700 (Pacific Daylight Saving Time)
|
|
189
189
|
</div>
|
|
190
190
|
</div>
|
|
191
191
|
<script src="prettify.js"></script>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>82/82</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>82/82</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -195,7 +195,9 @@
|
|
|
195
195
|
<a name='L136'></a><a href='#L136'>136</a>
|
|
196
196
|
<a name='L137'></a><a href='#L137'>137</a>
|
|
197
197
|
<a name='L138'></a><a href='#L138'>138</a>
|
|
198
|
-
<a name='L139'></a><a href='#L139'>139</a
|
|
198
|
+
<a name='L139'></a><a href='#L139'>139</a>
|
|
199
|
+
<a name='L140'></a><a href='#L140'>140</a>
|
|
200
|
+
<a name='L141'></a><a href='#L141'>141</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
199
201
|
<span class="cline-any cline-neutral"> </span>
|
|
200
202
|
<span class="cline-any cline-neutral"> </span>
|
|
201
203
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -251,6 +253,8 @@
|
|
|
251
253
|
<span class="cline-any cline-yes">1x</span>
|
|
252
254
|
<span class="cline-any cline-neutral"> </span>
|
|
253
255
|
<span class="cline-any cline-yes">1x</span>
|
|
256
|
+
<span class="cline-any cline-neutral"> </span>
|
|
257
|
+
<span class="cline-any cline-yes">1x</span>
|
|
254
258
|
<span class="cline-any cline-yes">1x</span>
|
|
255
259
|
<span class="cline-any cline-neutral"> </span>
|
|
256
260
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -387,6 +391,8 @@ export enum MessageType {
|
|
|
387
391
|
|
|
388
392
|
FundingInput = 42772,
|
|
389
393
|
FundingInputV0 = FundingInput, // Backward compatibility alias
|
|
394
|
+
|
|
395
|
+
DlcInput = 42773,
|
|
390
396
|
|
|
391
397
|
CetAdaptorSignatures = 42774,
|
|
392
398
|
CetAdaptorSignaturesV0 = CetAdaptorSignatures, // Backward compatibility alias
|
|
@@ -431,7 +437,7 @@ export enum MessageType {
|
|
|
431
437
|
OrderAccept = 62772,
|
|
432
438
|
OrderMetadataV0 = 62774,
|
|
433
439
|
OrderIrcInfoV0 = 62776,
|
|
434
|
-
|
|
440
|
+
OrderPositionInfo = 62778,
|
|
435
441
|
|
|
436
442
|
OrderNegotiationFieldsV0 = 65334,
|
|
437
443
|
OrderNegotiationFieldsV1 = 65336,
|
|
@@ -478,7 +484,7 @@ export enum PayoutCurvePieceType {
|
|
|
478
484
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
479
485
|
Code coverage generated by
|
|
480
486
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
481
|
-
at
|
|
487
|
+
at Sat Jul 19 2025 20:06:33 GMT-0700 (Pacific Daylight Saving Time)
|
|
482
488
|
</div>
|
|
483
489
|
</div>
|
|
484
490
|
<script src="../prettify.js"></script>
|
|
@@ -383,7 +383,9 @@
|
|
|
383
383
|
<a name='L324'></a><a href='#L324'>324</a>
|
|
384
384
|
<a name='L325'></a><a href='#L325'>325</a>
|
|
385
385
|
<a name='L326'></a><a href='#L326'>326</a>
|
|
386
|
-
<a name='L327'></a><a href='#L327'>327</a
|
|
386
|
+
<a name='L327'></a><a href='#L327'>327</a>
|
|
387
|
+
<a name='L328'></a><a href='#L328'>328</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
388
|
+
<span class="cline-any cline-yes">1x</span>
|
|
387
389
|
<span class="cline-any cline-yes">1x</span>
|
|
388
390
|
<span class="cline-any cline-yes">1x</span>
|
|
389
391
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -709,7 +711,8 @@
|
|
|
709
711
|
<span class="cline-any cline-neutral"> </span>
|
|
710
712
|
<span class="cline-any cline-neutral"> </span>
|
|
711
713
|
<span class="cline-any cline-neutral"> </span>
|
|
712
|
-
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js"
|
|
714
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
715
|
+
import { Tx } from '@node-dlc/bitcoin';
|
|
713
716
|
import { Block, Transaction } from 'bitcoinjs-lib';
|
|
714
717
|
import { EventEmitter } from 'events';
|
|
715
718
|
|
|
@@ -1042,7 +1045,7 @@ export class ChainManager extends EventEmitter {
|
|
|
1042
1045
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1043
1046
|
Code coverage generated by
|
|
1044
1047
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
1045
|
-
at
|
|
1048
|
+
at Sat Jul 19 2025 20:06:33 GMT-0700 (Pacific Daylight Saving Time)
|
|
1046
1049
|
</div>
|
|
1047
1050
|
</div>
|
|
1048
1051
|
<script src="../../prettify.js"></script>
|
|
@@ -166,7 +166,7 @@ export class ChainMemoryStore implements IDlcStore {
|
|
|
166
166
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
167
167
|
Code coverage generated by
|
|
168
168
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
169
|
-
at
|
|
169
|
+
at Sat Jul 19 2025 20:06:33 GMT-0700 (Pacific Daylight Saving Time)
|
|
170
170
|
</div>
|
|
171
171
|
</div>
|
|
172
172
|
<script src="../../prettify.js"></script>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
111
111
|
Code coverage generated by
|
|
112
112
|
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
113
|
-
at
|
|
113
|
+
at Sat Jul 19 2025 20:06:33 GMT-0700 (Pacific Daylight Saving Time)
|
|
114
114
|
</div>
|
|
115
115
|
</div>
|
|
116
116
|
<script src="../../prettify.js"></script>
|