@aztec/stdlib 1.0.0-staging.1 → 1.0.0-staging.3

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.
@@ -96,7 +96,7 @@ import { makeL2BlockId } from '../l2_block_source.js';
96
96
  }
97
97
  // Request new blocks from the source.
98
98
  while(nextBlockNumber <= sourceTips.latest.number){
99
- const limit = Math.min(this.opts.batchSize ?? 20, sourceTips.latest.number - nextBlockNumber + 1);
99
+ const limit = Math.min(this.opts.batchSize ?? 50, sourceTips.latest.number - nextBlockNumber + 1);
100
100
  this.log.trace(`Requesting blocks from ${nextBlockNumber} limit ${limit} proven=${this.opts.proven}`);
101
101
  const blocks = await this.l2BlockSource.getPublishedBlocks(nextBlockNumber, limit, this.opts.proven);
102
102
  if (blocks.length === 0) {
@@ -3,4 +3,5 @@ export * from './aztec-node.js';
3
3
  export * from './aztec-node-admin.js';
4
4
  export * from './private_kernel_prover.js';
5
5
  export * from './get_logs_response.js';
6
+ export * from './api_limit.js';
6
7
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/interfaces/client.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/interfaces/client.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC"}
@@ -3,3 +3,4 @@ export * from './aztec-node.js';
3
3
  export * from './aztec-node-admin.js';
4
4
  export * from './private_kernel_prover.js';
5
5
  export * from './get_logs_response.js';
6
+ export * from './api_limit.js';
@@ -19,4 +19,5 @@ export * from './server_circuit_prover.js';
19
19
  export * from './service.js';
20
20
  export * from './tx-collector.js';
21
21
  export * from './world_state.js';
22
+ export * from './api_limit.js';
22
23
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/interfaces/server.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/interfaces/server.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
@@ -19,3 +19,4 @@ export * from './server_circuit_prover.js';
19
19
  export * from './service.js';
20
20
  export * from './tx-collector.js';
21
21
  export * from './world_state.js';
22
+ export * from './api_limit.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/stdlib",
3
- "version": "1.0.0-staging.1",
3
+ "version": "1.0.0-staging.3",
4
4
  "type": "module",
5
5
  "inherits": [
6
6
  "../package.common.json",
@@ -67,12 +67,12 @@
67
67
  "test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
68
68
  },
69
69
  "dependencies": {
70
- "@aztec/bb.js": "1.0.0-staging.1",
71
- "@aztec/blob-lib": "1.0.0-staging.1",
72
- "@aztec/constants": "1.0.0-staging.1",
73
- "@aztec/ethereum": "1.0.0-staging.1",
74
- "@aztec/foundation": "1.0.0-staging.1",
75
- "@aztec/noir-noirc_abi": "1.0.0-staging.1",
70
+ "@aztec/bb.js": "1.0.0-staging.3",
71
+ "@aztec/blob-lib": "1.0.0-staging.3",
72
+ "@aztec/constants": "1.0.0-staging.3",
73
+ "@aztec/ethereum": "1.0.0-staging.3",
74
+ "@aztec/foundation": "1.0.0-staging.3",
75
+ "@aztec/noir-noirc_abi": "1.0.0-staging.3",
76
76
  "@google-cloud/storage": "^7.15.0",
77
77
  "axios": "^1.9.0",
78
78
  "json-stringify-deterministic": "1.0.12",
@@ -106,7 +106,7 @@ export class L2BlockStream {
106
106
 
107
107
  // Request new blocks from the source.
108
108
  while (nextBlockNumber <= sourceTips.latest.number) {
109
- const limit = Math.min(this.opts.batchSize ?? 20, sourceTips.latest.number - nextBlockNumber + 1);
109
+ const limit = Math.min(this.opts.batchSize ?? 50, sourceTips.latest.number - nextBlockNumber + 1);
110
110
  this.log.trace(`Requesting blocks from ${nextBlockNumber} limit ${limit} proven=${this.opts.proven}`);
111
111
  const blocks = await this.l2BlockSource.getPublishedBlocks(nextBlockNumber, limit, this.opts.proven);
112
112
  if (blocks.length === 0) {
@@ -3,3 +3,4 @@ export * from './aztec-node.js';
3
3
  export * from './aztec-node-admin.js';
4
4
  export * from './private_kernel_prover.js';
5
5
  export * from './get_logs_response.js';
6
+ export * from './api_limit.js';
@@ -19,3 +19,4 @@ export * from './server_circuit_prover.js';
19
19
  export * from './service.js';
20
20
  export * from './tx-collector.js';
21
21
  export * from './world_state.js';
22
+ export * from './api_limit.js';