mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-22 09:58:10 +00:00
Upgrade nim-waku
This commit is contained in:
parent
3be57632f7
commit
5bc6173cb8
2
nim-waku
2
nim-waku
@ -1 +1 @@
|
|||||||
Subproject commit d1c1a0ca13e3aa2690a6550faca13210e1f46877
|
Subproject commit 5747ff5be00b7b99e61021c17a975761fbe151f3
|
@ -4,6 +4,7 @@ package waku.v2;
|
|||||||
|
|
||||||
message WakuMessageProto {
|
message WakuMessageProto {
|
||||||
optional bytes payload = 1;
|
optional bytes payload = 1;
|
||||||
optional uint32 content_topic = 2;
|
optional string content_topic = 2;
|
||||||
optional uint32 version = 3;
|
optional uint32 version = 3;
|
||||||
|
optional double timestamp = 4;
|
||||||
}
|
}
|
||||||
|
@ -4,13 +4,13 @@ import { Reader } from 'protobufjs/minimal';
|
|||||||
// Protecting the user from protobuf oddities
|
// Protecting the user from protobuf oddities
|
||||||
import { WakuMessageProto } from '../proto/waku/v2/waku';
|
import { WakuMessageProto } from '../proto/waku/v2/waku';
|
||||||
|
|
||||||
const DEFAULT_CONTENT_TOPIC = 1;
|
const DEFAULT_CONTENT_TOPIC = '/waku/2/default-content/proto';
|
||||||
const DEFAULT_VERSION = 0;
|
const DEFAULT_VERSION = 0;
|
||||||
|
|
||||||
export class WakuMessage {
|
export class WakuMessage {
|
||||||
private constructor(
|
private constructor(
|
||||||
public payload?: Uint8Array,
|
public payload?: Uint8Array,
|
||||||
public contentTopic?: number,
|
public contentTopic?: string,
|
||||||
public version?: number
|
public version?: number
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user