Skip to content

Commit

Permalink
move @waku/message-hash into @waku/core
Browse files Browse the repository at this point in the history
  • Loading branch information
danisharora099 committed Jan 24, 2024
1 parent 7affbe2 commit 5dfee9d
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 344 deletions.
36 changes: 15 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ export { KeepAliveManager } from "./lib/keep_alive_manager.js";
export { StreamManager } from "./lib/stream_manager.js";

export { MetadataCodec, wakuMetadata } from "./lib/metadata/index.js";

export * from "./lib/message_hash.js";
2 changes: 1 addition & 1 deletion packages/core/src/lib/filter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import type {
Unsubscribe
} from "@waku/interfaces";
import { DefaultPubsubTopic } from "@waku/interfaces";
import { messageHashStr } from "@waku/message-hash";
import { WakuMessage } from "@waku/proto";
import {
ensurePubsubTopicIsConfigured,
Expand All @@ -31,6 +30,7 @@ import * as lp from "it-length-prefixed";
import { pipe } from "it-pipe";

import { BaseProtocol } from "../base_protocol.js";
import { messageHashStr } from "../message_hash.js";

import {
FilterPushRpc,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IProtoMessage } from "@waku/interfaces";
import { bytesToHex, hexToBytes } from "@waku/utils/bytes";
import { expect } from "chai";

import { messageHash } from "./index.js";
import { messageHash } from "./message_hash.js";

// https://rfc.vac.dev/spec/14/#test-vectors
describe("RFC Test Vectors", () => {
Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions packages/message-hash/.eslintrc.cjs

This file was deleted.

6 changes: 0 additions & 6 deletions packages/message-hash/.mocha.reporters.json

This file was deleted.

26 changes: 0 additions & 26 deletions packages/message-hash/.mocharc.cjs

This file was deleted.

5 changes: 0 additions & 5 deletions packages/message-hash/.prettierignore

This file was deleted.

122 changes: 0 additions & 122 deletions packages/message-hash/CHANGELOG.md

This file was deleted.

26 changes: 0 additions & 26 deletions packages/message-hash/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions packages/message-hash/karma.conf.cjs

This file was deleted.

86 changes: 0 additions & 86 deletions packages/message-hash/package.json

This file was deleted.

Loading

0 comments on commit 5dfee9d

Please sign in to comment.