@gethashd/bytecave-browser 1.0.32 → 1.0.34
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.
|
@@ -6539,7 +6539,9 @@ Nonce: ${nonce}`;
|
|
|
6539
6539
|
signature: authorization.signature,
|
|
6540
6540
|
address: authorization.sender,
|
|
6541
6541
|
timestamp: authorization.timestamp,
|
|
6542
|
-
nonce: authorization.nonce
|
|
6542
|
+
nonce: authorization.nonce,
|
|
6543
|
+
appId: authorization.appId,
|
|
6544
|
+
contentHash: authorization.contentHash
|
|
6543
6545
|
} : void 0;
|
|
6544
6546
|
const result = await this.storageWsClient.store({
|
|
6545
6547
|
data: dataArray,
|
|
@@ -6877,7 +6879,9 @@ Nonce: ${nonce}`;
|
|
|
6877
6879
|
blobCount: announcement.blobCount,
|
|
6878
6880
|
timestamp: announcement.timestamp,
|
|
6879
6881
|
multiaddrs: announcement.multiaddrs,
|
|
6880
|
-
relayAddrs: announcement.relayAddrs || existing?.relayAddrs
|
|
6882
|
+
relayAddrs: announcement.relayAddrs || existing?.relayAddrs,
|
|
6883
|
+
isRegistered: announcement.isRegistered,
|
|
6884
|
+
onChainNodeId: announcement.onChainNodeId
|
|
6881
6885
|
};
|
|
6882
6886
|
this.knownPeers.set(announcement.peerId, peerInfo);
|
|
6883
6887
|
this.emit("peerAnnounce", peerInfo);
|
package/dist/index.cjs
CHANGED
|
@@ -6592,7 +6592,9 @@ Nonce: ${nonce}`;
|
|
|
6592
6592
|
signature: authorization.signature,
|
|
6593
6593
|
address: authorization.sender,
|
|
6594
6594
|
timestamp: authorization.timestamp,
|
|
6595
|
-
nonce: authorization.nonce
|
|
6595
|
+
nonce: authorization.nonce,
|
|
6596
|
+
appId: authorization.appId,
|
|
6597
|
+
contentHash: authorization.contentHash
|
|
6596
6598
|
} : void 0;
|
|
6597
6599
|
const result = await this.storageWsClient.store({
|
|
6598
6600
|
data: dataArray,
|
|
@@ -6930,7 +6932,9 @@ Nonce: ${nonce}`;
|
|
|
6930
6932
|
blobCount: announcement.blobCount,
|
|
6931
6933
|
timestamp: announcement.timestamp,
|
|
6932
6934
|
multiaddrs: announcement.multiaddrs,
|
|
6933
|
-
relayAddrs: announcement.relayAddrs || existing?.relayAddrs
|
|
6935
|
+
relayAddrs: announcement.relayAddrs || existing?.relayAddrs,
|
|
6936
|
+
isRegistered: announcement.isRegistered,
|
|
6937
|
+
onChainNodeId: announcement.onChainNodeId
|
|
6934
6938
|
};
|
|
6935
6939
|
this.knownPeers.set(announcement.peerId, peerInfo);
|
|
6936
6940
|
this.emit("peerAnnounce", peerInfo);
|
package/dist/index.js
CHANGED
package/dist/react/index.js
CHANGED
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -485,7 +485,9 @@ Nonce: ${nonce}`;
|
|
|
485
485
|
signature: authorization.signature,
|
|
486
486
|
address: authorization.sender,
|
|
487
487
|
timestamp: authorization.timestamp,
|
|
488
|
-
nonce: authorization.nonce
|
|
488
|
+
nonce: authorization.nonce,
|
|
489
|
+
appId: authorization.appId,
|
|
490
|
+
contentHash: authorization.contentHash
|
|
489
491
|
} : undefined;
|
|
490
492
|
|
|
491
493
|
const result = await this.storageWsClient.store({
|
|
@@ -917,7 +919,9 @@ Nonce: ${nonce}`;
|
|
|
917
919
|
blobCount: announcement.blobCount,
|
|
918
920
|
timestamp: announcement.timestamp,
|
|
919
921
|
multiaddrs: announcement.multiaddrs,
|
|
920
|
-
relayAddrs: announcement.relayAddrs || (existing as any)?.relayAddrs
|
|
922
|
+
relayAddrs: announcement.relayAddrs || (existing as any)?.relayAddrs,
|
|
923
|
+
isRegistered: announcement.isRegistered,
|
|
924
|
+
onChainNodeId: announcement.onChainNodeId
|
|
921
925
|
};
|
|
922
926
|
|
|
923
927
|
this.knownPeers.set(announcement.peerId, peerInfo);
|
package/src/storage-websocket.ts
CHANGED
|
@@ -13,6 +13,8 @@ interface StorageRequestMessage {
|
|
|
13
13
|
address: string;
|
|
14
14
|
timestamp: number;
|
|
15
15
|
nonce: string;
|
|
16
|
+
appId: string;
|
|
17
|
+
contentHash: string;
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -34,6 +36,8 @@ export interface StoreViaWebSocketOptions {
|
|
|
34
36
|
address: string;
|
|
35
37
|
timestamp: number;
|
|
36
38
|
nonce: string;
|
|
39
|
+
appId: string;
|
|
40
|
+
contentHash: string;
|
|
37
41
|
};
|
|
38
42
|
timeout?: number;
|
|
39
43
|
}
|