soulprint-network 0.6.0 → 0.6.2
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/dist/blockchain/NullifierRegistryClient.js +1 -1
- package/dist/blockchain/PeerRegistryClient.js +1 -1
- package/dist/blockchain/ReputationRegistryClient.js +1 -1
- package/dist/blockchain/protocol-thresholds-client.js +1 -1
- package/dist/code-hash.json +3 -3
- package/dist/server.js +1 -1
- package/dist/validator.js +1 -1
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ export class NullifierRegistryClient {
|
|
|
46
46
|
address;
|
|
47
47
|
constructor(opts) {
|
|
48
48
|
this.address = opts?.address ?? NULLIFIER_REGISTRY_ADDRESS;
|
|
49
|
-
this.cacheTTLMs = opts?.cacheTTLMs ??
|
|
49
|
+
this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
|
|
50
50
|
const rpc = opts?.rpc ?? NULLIFIER_REGISTRY_RPC;
|
|
51
51
|
this.provider = new ethers.JsonRpcProvider(rpc);
|
|
52
52
|
if (!this.address) {
|
|
@@ -45,7 +45,7 @@ export class PeerRegistryClient {
|
|
|
45
45
|
address;
|
|
46
46
|
constructor(opts) {
|
|
47
47
|
this.address = opts?.address ?? PEER_REGISTRY_ADDRESS;
|
|
48
|
-
this.cacheTTLMs = opts?.cacheTTLMs ??
|
|
48
|
+
this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
|
|
49
49
|
const rpc = opts?.rpc ?? PEER_REGISTRY_RPC;
|
|
50
50
|
this.provider = new ethers.JsonRpcProvider(rpc);
|
|
51
51
|
if (!this.address) {
|
|
@@ -44,7 +44,7 @@ export class ReputationRegistryClient {
|
|
|
44
44
|
address;
|
|
45
45
|
constructor(opts) {
|
|
46
46
|
this.address = opts?.address ?? REPUTATION_REGISTRY_ADDRESS;
|
|
47
|
-
this.cacheTTLMs = opts?.cacheTTLMs ??
|
|
47
|
+
this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
|
|
48
48
|
const rpc = opts?.rpc ?? REPUTATION_REGISTRY_RPC;
|
|
49
49
|
this.provider = new ethers.JsonRpcProvider(rpc);
|
|
50
50
|
if (!this.address) {
|
|
@@ -41,7 +41,7 @@ export class ProtocolThresholdsClient {
|
|
|
41
41
|
address;
|
|
42
42
|
constructor(opts) {
|
|
43
43
|
this.address = opts?.address ?? PROTOCOL_THRESHOLDS_ADDRESS;
|
|
44
|
-
this.cacheTTLMs = opts?.cacheTTLMs ??
|
|
44
|
+
this.cacheTTLMs = opts?.cacheTTLMs ?? 60 * 60 * 1000; // 60 min
|
|
45
45
|
const rpc = opts?.rpc ?? PROTOCOL_THRESHOLDS_RPC;
|
|
46
46
|
this.provider = new ethers.JsonRpcProvider(rpc);
|
|
47
47
|
this.contract = new ethers.Contract(this.address, ABI, this.provider);
|
package/dist/code-hash.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"codeHash": "
|
|
3
|
-
"codeHashHex": "
|
|
4
|
-
"computedAt": "2026-03-
|
|
2
|
+
"codeHash": "94b329aa5533c6de47bd34de7a563366a6fb9eb4dc79784c48f016298109f406",
|
|
3
|
+
"codeHashHex": "0x94b329aa5533c6de47bd34de7a563366a6fb9eb4dc79784c48f016298109f406",
|
|
4
|
+
"computedAt": "2026-03-01T12:18:03.408Z",
|
|
5
5
|
"fileCount": 25,
|
|
6
6
|
"files": [
|
|
7
7
|
"blockchain/NullifierRegistryClient.ts",
|
package/dist/server.js
CHANGED
|
@@ -108,7 +108,7 @@ setInterval(async () => {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
catch { }
|
|
111
|
-
},
|
|
111
|
+
}, 30 * 60 * 1000);
|
|
112
112
|
// ─── Anti-entropy sync loop ───────────────────────────────────────────────────
|
|
113
113
|
setInterval(async () => {
|
|
114
114
|
const { nullifiers, repStore, peers: knownPeers } = getNodeState();
|
package/dist/validator.js
CHANGED
|
@@ -24,7 +24,7 @@ const NULLIFIER_DB = join(NODE_DIR, "nullifiers.json");
|
|
|
24
24
|
const REPUTE_DB = join(NODE_DIR, "reputation.json");
|
|
25
25
|
const PEERS_DB = join(NODE_DIR, "peers.json");
|
|
26
26
|
const AUDIT_DB = join(NODE_DIR, "audit.json");
|
|
27
|
-
const VERSION = "0.6.
|
|
27
|
+
const VERSION = "0.6.1";
|
|
28
28
|
const MAX_BODY_BYTES = 64 * 1024;
|
|
29
29
|
// ── Protocol constants (inamovibles - no cambiar directamente aquí) ───────────
|
|
30
30
|
const RATE_LIMIT_MS = PROTOCOL.RATE_LIMIT_WINDOW_MS;
|
package/package.json
CHANGED