Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
87671a1
--wip-- [skip ci]
matthewjablack May 2, 2022
1f9841f
--wip-- [skip ci]
matthewjablack May 4, 2022
35e4a17
--wip-- [skip ci]
matthewjablack Jun 28, 2022
bbfb6f0
--wip-- [skip ci]
matthewjablack Jun 28, 2022
ec2192d
--wip-- [skip ci]
matthewjablack Jul 2, 2022
4e68889
--wip-- [skip ci]
matthewjablack Jul 4, 2022
df82bf4
--wip-- [skip ci]
matthewjablack Jul 5, 2022
744be49
--wip-- [skip ci]
matthewjablack Jul 8, 2022
1c15900
--wip-- [skip ci]
matthewjablack Jul 10, 2022
49bcca1
--wip-- [skip ci]
matthewjablack Jul 11, 2022
66f281f
--wip-- [skip ci]
matthewjablack Jul 12, 2022
2562005
--wip-- [skip ci]
matthewjablack Jul 25, 2022
0237c7a
--wip-- [skip ci]
matthewjablack Jul 25, 2022
a5a727c
--wip-- [skip ci]
matthewjablack Jul 25, 2022
7e61074
--wip-- [skip ci]
matthewjablack Jan 30, 2023
7aa86d7
Change: class names in packages/messaging/lib/messages/pre-163 and pa…
maxpolizzo May 9, 2023
6916ce7
Change: removed returned type from toJSON functions of classes Oracle…
maxpolizzo May 10, 2023
bffd2c3
Fix: DlcMessage.ts to handle BigSize type deserialisation --wip-- [sk…
maxpolizzo May 12, 2023
20c4bca
Change: removed length from serialisation in OracleIdentifier.ts, Ord…
maxpolizzo May 12, 2023
ca939d5
Fix: all interface names to start with I --wip-- [skip ci]
maxpolizzo May 12, 2023
a7cca04
Change: apply new instanciation for reader in post-163 classes --wip-…
maxpolizzo May 13, 2023
a142ab5
Change: added TLV streams serialization/deserialization to classes Dl…
maxpolizzo May 16, 2023
458ea83
Change: added protocolVersion to OrderAccept message class --wip-- [s…
maxpolizzo May 16, 2023
335895b
Change: DisjointContractInfo.validate implementation --wip-- [skip ci]
maxpolizzo May 17, 2023
3429067
Change: added type assertion when deserializing --wip-- [skip ci]
maxpolizzo May 17, 2023
59f4fcb
Fix: imports in rocksdb package --wip-- [skip ci]
maxpolizzo May 19, 2023
e63be5d
WIP Fix: imports, logic and tests in core package --wip-- [skip ci]
maxpolizzo May 19, 2023
1fbe679
Fix: conflicts between packages dependencies and and remove unneces…
maxpolizzo May 23, 2023
7cb1b78
Change: added pre-163 tests for messaging package under packages/mess…
maxpolizzo May 24, 2023
2edfc54
Fix: post-163 tests in messaging package --wip-- [skip ci]
maxpolizzo May 25, 2023
4d32771
Fix: packages/messaging/__tests__/messages/NodeAnnouncementMessage.sp…
maxpolizzo May 26, 2023
19f4830
Fix: rocksdb package tests and use offerCollateral, acceptCollateral …
maxpolizzo May 30, 2023
86c783e
Fix: transport package tests --wip-- [skip ci]
maxpolizzo May 30, 2023
0fb761f
New: add toPre163 function to post-163 classes and add tests for from…
maxpolizzo Jun 7, 2023
fd856e6
Fix: discrepancy between pre-163 test vectors and post-163 test vecto…
maxpolizzo Jun 7, 2023
677d168
Change: linted messaging package --wip-- [skip ci]
maxpolizzo Jun 8, 2023
3b88c99
Fix: payout functions builders and cross-packages dependencies --wip-…
Aug 4, 2023
55e7831
Change: bump packages version numbers to 0.21.5 --wip-- [skip ci]
Aug 22, 2023
567d0e0
Fix: OracleAttestationV0Pre167 calculation of deserializedBytes durin…
Aug 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 4 additions & 27 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ module.exports = {
tsconfigRootDir: __dirname,
project: ['./tsconfig.eslint.json', './packages/**/*/tsconfig.json']
},
plugins: [
'@typescript-eslint',
'prettier',
'simple-import-sort'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
Expand All @@ -19,27 +14,9 @@ module.exports = {
'prettier/prettier': 'error',
'simple-import-sort/imports': 'error',
},
overrides: [
{
// Apply this rule to all files
files: ['**/*'],
rules: {
'no-restricted-syntax': [
'error',
{
selector: 'Literal[bigint]',
message:
'Avoid using bigint literals. Please use BigInt function notation instead. E.g., BigInt("123") instead of 123n.',
},
],
},
},
{
// Exclude this rule for test files (*.test.js, *.test.ts, *.spec.js, *.spec.ts)
files: ['**/*.test.js', '**/*.test.ts', '**/*.spec.js', '**/*.spec.ts'],
rules: {
'no-restricted-syntax': 'off',
},
},
plugins: [
'@typescript-eslint',
'prettier',
'simple-import-sort'
],
};
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ yarn build
## Usage

```javascript
import { OracleAnnouncementV0 } from '@node-dlc/messaging';
import { OracleAnnouncement } from '@node-dlc/messaging';

const buf = Buffer.from(
'fdd824fd02ab1efe41fa42ea1dcd103a0251929dd2b192d2daece8a4ce4d81f68a183b750d92d6f02d796965dc79adf4e7786e08f861a1ecc897afbba2dab9cff6eb0a81937eb8b005b07acf849ad2cec22107331dedbf5a607654fad4eafe39c278e27dde68fdd822fd02450011f9313f1edd903fab297d5350006b669506eb0ffda0bb58319b4df89ac24e14fd15f9791dc78d1596b06f4969bdb37d9e394dc9fedaa18d694027fa32b5ea2a5e60080c58e13727367c3a4ce1ad65dfb3c7e3ca1ea912b0299f6e383bab2875058aa96a1c74633130af6fbd008788de6ac9db76da4ecc7303383cc1a49f525316413850f7e3ac385019d560e84c5b3a3e9ae6c83f59fe4286ddfd23ea46d7ae04610a175cd28a9bf5f574e245c3dfe230dc4b0adf4daaea96780e594f6464f676505f4b74cfe3ffc33415a23de795bf939ce64c0c02033bbfc6c9ff26fb478943a1ece775f38f5db067ca4b2a9168b40792398def9164bfe5c46838472dc3c162af16c811b7a116e9417d5bccb9e5b8a5d7d26095aba993696188c3f85a02f7ab8d12ada171c352785eb63417228c7e248909fc2d673e1bb453140bf8bf429375819afb5e9556663b76ff09c2a7ba9779855ffddc6d360cb459cf8c42a2b949d0de19fe96163d336fd66a4ce2f1791110e679572a20036ffae50204ef520c01058ff4bef28218d1c0e362ee3694ad8b2ae83a51c86c4bc1630ed6202a158810096726f809fc828fafdcf053496affdf887ae8c54b6ca4323ccecf6a51121c4f0c60e790536dab41b221db1c6b35065dc19a9d31cf75901aa35eefecbb6fefd07296cda13cb34ce3b58eba20a0eb8f9614994ec7fee3cc290e30e6b1e3211ae1f3a85b6de6abdbb77d6d9ed33a1cee3bd5cd93a71f12c9c45e385d744ad0e7286660305100fdd80a11000200076274632f75736400000000001109425443205072696365',
'hex',
);

const instance = OracleAnnouncementV0.deserialize(buf);
const instance = OracleAnnouncement.deserialize(buf);
```
2 changes: 1 addition & 1 deletion packages/bitcoin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@node-dlc/bitcoin",
"version": "0.21.4",
"version": "0.21.5",
"description": "DLC bitcoin",
"scripts": {
"test": "../../node_modules/.bin/nyc --reporter=lcov --reporter=text --extension=.ts ../../node_modules/.bin/mocha --require ts-node/register --recursive \"__tests__/**/*.spec.*\"",
Expand Down
Loading