@aztec/world-state 0.77.0-testnet-ignition.17 → 0.77.0-testnet-ignition.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world_state_version.d.ts","sourceRoot":"","sources":["../../src/native/world_state_version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"world_state_version.d.ts","sourceRoot":"","sources":["../../src/native/world_state_version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAK3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,qBAAa,iBAAiB;aACA,OAAO,EAAE,MAAM;aAAkB,aAAa,EAAE,UAAU;gBAA1D,OAAO,EAAE,MAAM,EAAkB,aAAa,EAAE,UAAU;WAEzE,WAAW,CAAC,QAAQ,EAAE,MAAM;IAK5B,gBAAgB,CAAC,QAAQ,EAAE,MAAM;IAK9C,MAAM,KAAK,MAAM;;;;;;;;;;;;OAOhB;IAED,MAAM,CAAC,KAAK;CAGb"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
2
2
|
import { jsonParseWithSchema, jsonStringify } from '@aztec/foundation/json-rpc';
|
|
3
|
+
import { schemas } from '@aztec/foundation/schemas';
|
|
3
4
|
import { readFile, writeFile } from 'fs/promises';
|
|
4
5
|
import { z } from 'zod';
|
|
5
6
|
export class WorldStateVersion {
|
|
@@ -20,7 +21,7 @@ export class WorldStateVersion {
|
|
|
20
21
|
static get schema() {
|
|
21
22
|
return z.object({
|
|
22
23
|
version: z.number(),
|
|
23
|
-
rollupAddress: EthAddress
|
|
24
|
+
rollupAddress: schemas.EthAddress
|
|
24
25
|
}).transform(({ version, rollupAddress })=>new WorldStateVersion(version, rollupAddress));
|
|
25
26
|
}
|
|
26
27
|
static empty() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/world-state",
|
|
3
|
-
"version": "0.77.0-testnet-ignition.
|
|
3
|
+
"version": "0.77.0-testnet-ignition.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -62,19 +62,19 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@aztec/constants": "0.77.0-testnet-ignition.
|
|
66
|
-
"@aztec/foundation": "0.77.0-testnet-ignition.
|
|
67
|
-
"@aztec/kv-store": "0.77.0-testnet-ignition.
|
|
68
|
-
"@aztec/merkle-tree": "0.77.0-testnet-ignition.
|
|
69
|
-
"@aztec/native": "0.77.0-testnet-ignition.
|
|
70
|
-
"@aztec/protocol-contracts": "0.77.0-testnet-ignition.
|
|
71
|
-
"@aztec/stdlib": "0.77.0-testnet-ignition.
|
|
72
|
-
"@aztec/telemetry-client": "0.77.0-testnet-ignition.
|
|
65
|
+
"@aztec/constants": "0.77.0-testnet-ignition.23",
|
|
66
|
+
"@aztec/foundation": "0.77.0-testnet-ignition.23",
|
|
67
|
+
"@aztec/kv-store": "0.77.0-testnet-ignition.23",
|
|
68
|
+
"@aztec/merkle-tree": "0.77.0-testnet-ignition.23",
|
|
69
|
+
"@aztec/native": "0.77.0-testnet-ignition.23",
|
|
70
|
+
"@aztec/protocol-contracts": "0.77.0-testnet-ignition.23",
|
|
71
|
+
"@aztec/stdlib": "0.77.0-testnet-ignition.23",
|
|
72
|
+
"@aztec/telemetry-client": "0.77.0-testnet-ignition.23",
|
|
73
73
|
"tslib": "^2.4.0",
|
|
74
74
|
"zod": "^3.23.8"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@aztec/archiver": "
|
|
77
|
+
"@aztec/archiver": "0.77.0-testnet-ignition.23",
|
|
78
78
|
"@jest/globals": "^29.5.0",
|
|
79
79
|
"@types/jest": "^29.5.0",
|
|
80
80
|
"@types/levelup": "^5.1.2",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
2
2
|
import { jsonParseWithSchema, jsonStringify } from '@aztec/foundation/json-rpc';
|
|
3
|
+
import { schemas } from '@aztec/foundation/schemas';
|
|
3
4
|
|
|
4
5
|
import { readFile, writeFile } from 'fs/promises';
|
|
5
6
|
import { z } from 'zod';
|
|
@@ -21,7 +22,7 @@ export class WorldStateVersion {
|
|
|
21
22
|
return z
|
|
22
23
|
.object({
|
|
23
24
|
version: z.number(),
|
|
24
|
-
rollupAddress: EthAddress
|
|
25
|
+
rollupAddress: schemas.EthAddress,
|
|
25
26
|
})
|
|
26
27
|
.transform(({ version, rollupAddress }) => new WorldStateVersion(version, rollupAddress));
|
|
27
28
|
}
|