@aztec/aztec-node 1.0.0-nightly.20250708 → 1.0.0-nightly.20250710
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.
|
@@ -758,9 +758,9 @@ import { NodeMetrics } from './node_metrics.js';
|
|
|
758
758
|
}
|
|
759
759
|
getProtocolContractAddresses() {
|
|
760
760
|
return Promise.resolve({
|
|
761
|
-
|
|
761
|
+
classRegistry: ProtocolContractAddress.ContractClassRegistry,
|
|
762
762
|
feeJuice: ProtocolContractAddress.FeeJuice,
|
|
763
|
-
|
|
763
|
+
instanceRegistry: ProtocolContractAddress.ContractInstanceRegistry,
|
|
764
764
|
multiCallEntrypoint: ProtocolContractAddress.MultiCallEntrypoint
|
|
765
765
|
});
|
|
766
766
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/sentinel/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,iBAAiB,EAAiB,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,0BAA0B,CAAC;AAElC,qBAAa,aAAa;IAWtB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,MAAM;IAXhB,gBAAuB,cAAc,KAAK;IAG1C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAuC;IAIlE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAuC;gBAGvD,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE;IAMpC,gBAAgB;IAIV,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B;IAQ9E,oBAAoB,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC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K,MAAM,EAAE,EAAE,sBAAsB,CAAC,CAAC;YAQrE,UAAU;IAKxB,OAAO,CAAC,oBAAoB;IAM5B,OAAO,CAAC,sBAAsB;IAa9B,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,kBAAkB;IAW1B,OAAO,CAAC,cAAc;IAmBtB,OAAO,CAAC,gBAAgB;CAgBzB"}
|
package/dest/sentinel/store.js
CHANGED
|
@@ -67,15 +67,17 @@ export class SentinelStore {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
async pushValidatorStatusForSlot(who, slot, status) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
70
|
+
await this.store.transactionAsync(async ()=>{
|
|
71
|
+
const currentHistory = await this.getHistory(who) ?? [];
|
|
72
|
+
const newHistory = [
|
|
73
|
+
...currentHistory,
|
|
74
|
+
{
|
|
75
|
+
slot,
|
|
76
|
+
status
|
|
77
|
+
}
|
|
78
|
+
].slice(-this.config.historyLength);
|
|
79
|
+
await this.historyMap.set(who.toString(), this.serializeHistory(newHistory));
|
|
80
|
+
});
|
|
79
81
|
}
|
|
80
82
|
async getHistories() {
|
|
81
83
|
const histories = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec-node",
|
|
3
|
-
"version": "1.0.0-nightly.
|
|
3
|
+
"version": "1.0.0-nightly.20250710",
|
|
4
4
|
"main": "dest/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -65,28 +65,28 @@
|
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@aztec/archiver": "1.0.0-nightly.
|
|
69
|
-
"@aztec/bb-prover": "1.0.0-nightly.
|
|
70
|
-
"@aztec/blob-sink": "1.0.0-nightly.
|
|
71
|
-
"@aztec/constants": "1.0.0-nightly.
|
|
72
|
-
"@aztec/epoch-cache": "1.0.0-nightly.
|
|
73
|
-
"@aztec/ethereum": "1.0.0-nightly.
|
|
74
|
-
"@aztec/foundation": "1.0.0-nightly.
|
|
75
|
-
"@aztec/kv-store": "1.0.0-nightly.
|
|
76
|
-
"@aztec/l1-artifacts": "1.0.0-nightly.
|
|
77
|
-
"@aztec/merkle-tree": "1.0.0-nightly.
|
|
78
|
-
"@aztec/node-lib": "1.0.0-nightly.
|
|
79
|
-
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.
|
|
80
|
-
"@aztec/p2p": "1.0.0-nightly.
|
|
81
|
-
"@aztec/protocol-contracts": "1.0.0-nightly.
|
|
82
|
-
"@aztec/prover-client": "1.0.0-nightly.
|
|
83
|
-
"@aztec/sequencer-client": "1.0.0-nightly.
|
|
84
|
-
"@aztec/simulator": "1.0.0-nightly.
|
|
85
|
-
"@aztec/slasher": "1.0.0-nightly.
|
|
86
|
-
"@aztec/stdlib": "1.0.0-nightly.
|
|
87
|
-
"@aztec/telemetry-client": "1.0.0-nightly.
|
|
88
|
-
"@aztec/validator-client": "1.0.0-nightly.
|
|
89
|
-
"@aztec/world-state": "1.0.0-nightly.
|
|
68
|
+
"@aztec/archiver": "1.0.0-nightly.20250710",
|
|
69
|
+
"@aztec/bb-prover": "1.0.0-nightly.20250710",
|
|
70
|
+
"@aztec/blob-sink": "1.0.0-nightly.20250710",
|
|
71
|
+
"@aztec/constants": "1.0.0-nightly.20250710",
|
|
72
|
+
"@aztec/epoch-cache": "1.0.0-nightly.20250710",
|
|
73
|
+
"@aztec/ethereum": "1.0.0-nightly.20250710",
|
|
74
|
+
"@aztec/foundation": "1.0.0-nightly.20250710",
|
|
75
|
+
"@aztec/kv-store": "1.0.0-nightly.20250710",
|
|
76
|
+
"@aztec/l1-artifacts": "1.0.0-nightly.20250710",
|
|
77
|
+
"@aztec/merkle-tree": "1.0.0-nightly.20250710",
|
|
78
|
+
"@aztec/node-lib": "1.0.0-nightly.20250710",
|
|
79
|
+
"@aztec/noir-protocol-circuits-types": "1.0.0-nightly.20250710",
|
|
80
|
+
"@aztec/p2p": "1.0.0-nightly.20250710",
|
|
81
|
+
"@aztec/protocol-contracts": "1.0.0-nightly.20250710",
|
|
82
|
+
"@aztec/prover-client": "1.0.0-nightly.20250710",
|
|
83
|
+
"@aztec/sequencer-client": "1.0.0-nightly.20250710",
|
|
84
|
+
"@aztec/simulator": "1.0.0-nightly.20250710",
|
|
85
|
+
"@aztec/slasher": "1.0.0-nightly.20250710",
|
|
86
|
+
"@aztec/stdlib": "1.0.0-nightly.20250710",
|
|
87
|
+
"@aztec/telemetry-client": "1.0.0-nightly.20250710",
|
|
88
|
+
"@aztec/validator-client": "1.0.0-nightly.20250710",
|
|
89
|
+
"@aztec/world-state": "1.0.0-nightly.20250710",
|
|
90
90
|
"koa": "^2.16.1",
|
|
91
91
|
"koa-router": "^12.0.0",
|
|
92
92
|
"tslib": "^2.4.0",
|
package/src/aztec-node/server.ts
CHANGED
|
@@ -1079,9 +1079,9 @@ export class AztecNodeService implements AztecNode, AztecNodeAdmin, Traceable {
|
|
|
1079
1079
|
|
|
1080
1080
|
public getProtocolContractAddresses(): Promise<ProtocolContractAddresses> {
|
|
1081
1081
|
return Promise.resolve({
|
|
1082
|
-
|
|
1082
|
+
classRegistry: ProtocolContractAddress.ContractClassRegistry,
|
|
1083
1083
|
feeJuice: ProtocolContractAddress.FeeJuice,
|
|
1084
|
-
|
|
1084
|
+
instanceRegistry: ProtocolContractAddress.ContractInstanceRegistry,
|
|
1085
1085
|
multiCallEntrypoint: ProtocolContractAddress.MultiCallEntrypoint,
|
|
1086
1086
|
});
|
|
1087
1087
|
}
|
package/src/sentinel/store.ts
CHANGED
|
@@ -86,9 +86,11 @@ export class SentinelStore {
|
|
|
86
86
|
slot: bigint,
|
|
87
87
|
status: 'block-mined' | 'block-proposed' | 'block-missed' | 'attestation-sent' | 'attestation-missed',
|
|
88
88
|
) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
await this.store.transactionAsync(async () => {
|
|
90
|
+
const currentHistory = (await this.getHistory(who)) ?? [];
|
|
91
|
+
const newHistory = [...currentHistory, { slot, status }].slice(-this.config.historyLength);
|
|
92
|
+
await this.historyMap.set(who.toString(), this.serializeHistory(newHistory));
|
|
93
|
+
});
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
public async getHistories(): Promise<Record<`0x${string}`, ValidatorStatusHistory>> {
|