@aztec/foundation 0.27.0 → 0.27.1

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.
@@ -66,7 +66,7 @@ export class JsonRpcServer {
66
66
  app.use(exceptionHandler);
67
67
  app.use(compress({ br: false }));
68
68
  app.use(bodyParser({
69
- jsonLimit: '10mb',
69
+ jsonLimit: '50mb',
70
70
  enableTypes: ['json'],
71
71
  detectJSON: () => true,
72
72
  }));
@@ -23,21 +23,13 @@ export interface IndexedTreeLeaf {
23
23
  updateTo(another: IndexedTreeLeaf): IndexedTreeLeaf;
24
24
  }
25
25
  /**
26
- * Preimage of an indexed merkle tree leaf.
26
+ * Preimage of a merkle tree leaf.
27
27
  */
28
- export interface IndexedTreeLeafPreimage {
28
+ export interface TreeLeafPreimage {
29
29
  /**
30
30
  * Returns key of the leaf corresponding to this preimage.
31
31
  */
32
32
  getKey(): bigint;
33
- /**
34
- * Returns the key of the next leaf.
35
- */
36
- getNextKey(): bigint;
37
- /**
38
- * Returns the index of the next leaf.
39
- */
40
- getNextIndex(): bigint;
41
33
  /**
42
34
  * Returns the preimage as a leaf.
43
35
  */
@@ -51,4 +43,14 @@ export interface IndexedTreeLeafPreimage {
51
43
  */
52
44
  toHashInputs(): Buffer[];
53
45
  }
46
+ /**
47
+ * Preimage of an indexed merkle tree leaf.
48
+ */
49
+ export interface IndexedTreeLeafPreimage extends TreeLeafPreimage {
50
+ getNextKey(): bigint;
51
+ /**
52
+ * Returns the index of the next leaf.
53
+ */
54
+ getNextIndex(): bigint;
55
+ }
54
56
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/trees/index.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,IAAI,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,eAAe,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,IAAI,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,IAAI,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,IAAI,eAAe,CAAC;IAC1B;;OAEG;IACH,QAAQ,IAAI,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,IAAI,MAAM,EAAE,CAAC;CAC1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/trees/index.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,IAAI,MAAM,CAAC;IACnB;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,eAAe,CAAC;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,IAAI,eAAe,CAAC;IAC1B;;OAEG;IACH,QAAQ,IAAI,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,IAAI,MAAM,EAAE,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D,UAAU,IAAI,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,IAAI,MAAM,CAAC;CACxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/foundation",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "packageManager": "yarn@3.4.1",
5
5
  "type": "module",
6
6
  "main": "./dest/index.js",
@@ -61,7 +61,7 @@
61
61
  "rootDir": "./src"
62
62
  },
63
63
  "dependencies": {
64
- "@aztec/bb.js": "0.27.0",
64
+ "@aztec/bb.js": "0.27.1",
65
65
  "@koa/cors": "^4.0.0",
66
66
  "@noble/curves": "^1.2.0",
67
67
  "bn.js": "^5.2.1",
@@ -73,7 +73,7 @@ export class JsonRpcServer {
73
73
  app.use(compress({ br: false } as any));
74
74
  app.use(
75
75
  bodyParser({
76
- jsonLimit: '10mb',
76
+ jsonLimit: '50mb',
77
77
  enableTypes: ['json'],
78
78
  detectJSON: () => true,
79
79
  }),
@@ -23,22 +23,13 @@ export interface IndexedTreeLeaf {
23
23
  }
24
24
 
25
25
  /**
26
- * Preimage of an indexed merkle tree leaf.
26
+ * Preimage of a merkle tree leaf.
27
27
  */
28
- export interface IndexedTreeLeafPreimage {
28
+ export interface TreeLeafPreimage {
29
29
  /**
30
30
  * Returns key of the leaf corresponding to this preimage.
31
31
  */
32
32
  getKey(): bigint;
33
- /**
34
- * Returns the key of the next leaf.
35
- */
36
- getNextKey(): bigint;
37
- /**
38
- * Returns the index of the next leaf.
39
- */
40
- getNextIndex(): bigint;
41
-
42
33
  /**
43
34
  * Returns the preimage as a leaf.
44
35
  */
@@ -52,3 +43,14 @@ export interface IndexedTreeLeafPreimage {
52
43
  */
53
44
  toHashInputs(): Buffer[];
54
45
  }
46
+
47
+ /**
48
+ * Preimage of an indexed merkle tree leaf.
49
+ */
50
+ export interface IndexedTreeLeafPreimage extends TreeLeafPreimage {
51
+ getNextKey(): bigint;
52
+ /**
53
+ * Returns the index of the next leaf.
54
+ */
55
+ getNextIndex(): bigint;
56
+ }