@aztec/stdlib 2.0.3-rc.30 → 2.0.3-rc.31
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/dest/block/in_block.d.ts +5 -5
- package/dest/block/in_block.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_class.d.ts +3 -3
- package/dest/interfaces/aztec-node-admin.d.ts +7 -7
- package/dest/interfaces/proving-job.d.ts +6 -6
- package/dest/tx/indexed_tx_effect.d.ts +3 -3
- package/package.json +9 -9
package/dest/block/in_block.d.ts
CHANGED
|
@@ -12,21 +12,21 @@ export declare function inBlockSchemaFor<T extends ZodTypeAny>(schema: T): z.Zod
|
|
|
12
12
|
data: T;
|
|
13
13
|
l2BlockNumber: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
14
14
|
l2BlockHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, L2BlockHash, string>;
|
|
15
|
-
}, "strip", ZodTypeAny,
|
|
15
|
+
}, "strip", ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
16
16
|
data: T;
|
|
17
17
|
l2BlockNumber: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
18
18
|
l2BlockHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, L2BlockHash, string>;
|
|
19
|
-
}>, any>]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
19
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
20
20
|
data: T;
|
|
21
21
|
l2BlockNumber: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
22
22
|
l2BlockHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, L2BlockHash, string>;
|
|
23
|
-
}>, any>[k]; }
|
|
23
|
+
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
24
24
|
data: T;
|
|
25
25
|
l2BlockNumber: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
26
26
|
l2BlockHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, L2BlockHash, string>;
|
|
27
|
-
}>]: z.baseObjectInputType<{
|
|
27
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
28
28
|
data: T;
|
|
29
29
|
l2BlockNumber: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>;
|
|
30
30
|
l2BlockHash: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, L2BlockHash, string>;
|
|
31
|
-
}>[k_1]; }>;
|
|
31
|
+
}>[k_1]; } : never>;
|
|
32
32
|
//# sourceMappingURL=in_block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in_block.d.ts","sourceRoot":"","sources":["../../src/block/in_block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMpD;AAED,wBAAsB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAMjF;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"in_block.d.ts","sourceRoot":"","sources":["../../src/block/in_block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AAEF,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAMpD;AAED,wBAAsB,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAMjF;AAED,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,UAAU,EAAE,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;oBAM/D"}
|
|
@@ -120,7 +120,7 @@ interface ContractClassCommitments {
|
|
|
120
120
|
}
|
|
121
121
|
/** A contract class with its precomputed id. */
|
|
122
122
|
export type ContractClassWithId = ContractClass & Pick<ContractClassCommitments, 'id'>;
|
|
123
|
-
export declare const ContractClassWithIdSchema: z.ZodObject<
|
|
123
|
+
export declare const ContractClassWithIdSchema: z.ZodObject<{
|
|
124
124
|
version: z.ZodLiteral<1>;
|
|
125
125
|
artifactHash: z.ZodType<Fr, any, string>;
|
|
126
126
|
privateFunctions: z.ZodArray<z.ZodObject<{
|
|
@@ -146,9 +146,9 @@ export declare const ContractClassWithIdSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
146
146
|
type: "Buffer";
|
|
147
147
|
data: number[];
|
|
148
148
|
}>]>;
|
|
149
|
-
}
|
|
149
|
+
} & {
|
|
150
150
|
id: z.ZodType<Fr, any, string>;
|
|
151
|
-
}
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
152
|
version: 1;
|
|
153
153
|
id: Fr;
|
|
154
154
|
artifactHash: Fr;
|
|
@@ -44,7 +44,7 @@ export interface AztecNodeAdmin {
|
|
|
44
44
|
export type AztecNodeAdminConfig = ValidatorClientFullConfig & SequencerConfig & ProverConfig & SlasherConfig & Pick<ArchiverSpecificConfig, 'archiverPollingIntervalMS' | 'skipValidateBlockAttestations' | 'archiverBatchSize'> & {
|
|
45
45
|
maxTxPoolSize: number;
|
|
46
46
|
};
|
|
47
|
-
export declare const AztecNodeAdminConfigSchema: z.ZodObject<
|
|
47
|
+
export declare const AztecNodeAdminConfigSchema: z.ZodObject<{
|
|
48
48
|
transactionPollingIntervalMS: z.ZodOptional<z.ZodNumber>;
|
|
49
49
|
maxTxsPerBlock: z.ZodOptional<z.ZodNumber>;
|
|
50
50
|
minTxsPerBlock: z.ZodOptional<z.ZodNumber>;
|
|
@@ -95,7 +95,7 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<z.objectUtil.extend
|
|
|
95
95
|
skipCollectingAttestations: z.ZodOptional<z.ZodBoolean>;
|
|
96
96
|
secondsBeforeInvalidatingBlockAsCommitteeMember: z.ZodNumber;
|
|
97
97
|
secondsBeforeInvalidatingBlockAsNonCommitteeMember: z.ZodNumber;
|
|
98
|
-
}
|
|
98
|
+
} & {
|
|
99
99
|
nodeUrl: z.ZodOptional<z.ZodString>;
|
|
100
100
|
realProofs: z.ZodBoolean;
|
|
101
101
|
proverId: z.ZodOptional<import("../schemas/schemas.js").ZodFor<import("@aztec/foundation/schemas").EthAddress>>;
|
|
@@ -103,7 +103,7 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<z.objectUtil.extend
|
|
|
103
103
|
proverTestDelayMs: z.ZodNumber;
|
|
104
104
|
proverTestDelayFactor: z.ZodNumber;
|
|
105
105
|
proverAgentCount: z.ZodNumber;
|
|
106
|
-
}
|
|
106
|
+
} & {
|
|
107
107
|
slashOverridePayload: z.ZodOptional<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>>;
|
|
108
108
|
slashMinPenaltyPercentage: z.ZodNumber;
|
|
109
109
|
slashMaxPenaltyPercentage: z.ZodNumber;
|
|
@@ -123,7 +123,7 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<z.objectUtil.extend
|
|
|
123
123
|
slashBroadcastedInvalidBlockPenalty: z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodBigInt>;
|
|
124
124
|
slashExecuteRoundsLookBack: z.ZodNumber;
|
|
125
125
|
slashSelfAllowed: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
}
|
|
126
|
+
} & {
|
|
127
127
|
validatorAddresses: z.ZodOptional<z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, "many">>;
|
|
128
128
|
disableValidator: z.ZodBoolean;
|
|
129
129
|
disabledValidators: z.ZodArray<z.ZodType<import("@aztec/foundation/schemas").EthAddress, any, string>, "many">;
|
|
@@ -131,16 +131,16 @@ export declare const AztecNodeAdminConfigSchema: z.ZodObject<z.objectUtil.extend
|
|
|
131
131
|
validatorReexecute: z.ZodBoolean;
|
|
132
132
|
validatorReexecuteDeadlineMs: z.ZodNumber;
|
|
133
133
|
alwaysReexecuteBlockProposals: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
}
|
|
134
|
+
} & Pick<{
|
|
135
135
|
archiverPollingIntervalMS: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>>;
|
|
136
136
|
archiverBatchSize: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>>;
|
|
137
137
|
viemPollingIntervalMS: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>>;
|
|
138
138
|
maxLogs: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>>;
|
|
139
139
|
archiverStoreMapSizeKb: z.ZodOptional<z.ZodPipeline<z.ZodUnion<[z.ZodBigInt, z.ZodNumber, z.ZodString]>, z.ZodNumber>>;
|
|
140
140
|
skipValidateBlockAttestations: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
-
}, "archiverPollingIntervalMS" | "archiverBatchSize" | "skipValidateBlockAttestations"
|
|
141
|
+
}, "archiverPollingIntervalMS" | "archiverBatchSize" | "skipValidateBlockAttestations"> & {
|
|
142
142
|
maxTxPoolSize: z.ZodNumber;
|
|
143
|
-
}
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
144
|
secondsBeforeInvalidatingBlockAsCommitteeMember: number;
|
|
145
145
|
secondsBeforeInvalidatingBlockAsNonCommitteeMember: number;
|
|
146
146
|
slashMinPenaltyPercentage: number;
|
|
@@ -5808,11 +5808,11 @@ export declare const ProvingJobFulfilledResult: z.ZodObject<{
|
|
|
5808
5808
|
status: z.ZodLiteral<"fulfilled">;
|
|
5809
5809
|
value: z.ZodBranded<z.ZodString, "ProvingJobUri">;
|
|
5810
5810
|
}, "strip", z.ZodTypeAny, {
|
|
5811
|
-
status: "fulfilled";
|
|
5812
5811
|
value: string & z.BRAND<"ProvingJobUri">;
|
|
5813
|
-
}, {
|
|
5814
5812
|
status: "fulfilled";
|
|
5813
|
+
}, {
|
|
5815
5814
|
value: string;
|
|
5815
|
+
status: "fulfilled";
|
|
5816
5816
|
}>;
|
|
5817
5817
|
export type ProvingJobFulfilledResult = z.infer<typeof ProvingJobFulfilledResult>;
|
|
5818
5818
|
export declare const ProvingJobRejectedResult: z.ZodObject<{
|
|
@@ -5830,11 +5830,11 @@ export declare const ProvingJobSettledResult: z.ZodDiscriminatedUnion<"status",
|
|
|
5830
5830
|
status: z.ZodLiteral<"fulfilled">;
|
|
5831
5831
|
value: z.ZodBranded<z.ZodString, "ProvingJobUri">;
|
|
5832
5832
|
}, "strip", z.ZodTypeAny, {
|
|
5833
|
-
status: "fulfilled";
|
|
5834
5833
|
value: string & z.BRAND<"ProvingJobUri">;
|
|
5835
|
-
}, {
|
|
5836
5834
|
status: "fulfilled";
|
|
5835
|
+
}, {
|
|
5837
5836
|
value: string;
|
|
5837
|
+
status: "fulfilled";
|
|
5838
5838
|
}>, z.ZodObject<{
|
|
5839
5839
|
status: z.ZodLiteral<"rejected">;
|
|
5840
5840
|
reason: z.ZodString;
|
|
@@ -5868,11 +5868,11 @@ export declare const ProvingJobStatus: z.ZodDiscriminatedUnion<"status", [z.ZodO
|
|
|
5868
5868
|
status: z.ZodLiteral<"fulfilled">;
|
|
5869
5869
|
value: z.ZodBranded<z.ZodString, "ProvingJobUri">;
|
|
5870
5870
|
}, "strip", z.ZodTypeAny, {
|
|
5871
|
-
status: "fulfilled";
|
|
5872
5871
|
value: string & z.BRAND<"ProvingJobUri">;
|
|
5873
|
-
}, {
|
|
5874
5872
|
status: "fulfilled";
|
|
5873
|
+
}, {
|
|
5875
5874
|
value: string;
|
|
5875
|
+
status: "fulfilled";
|
|
5876
5876
|
}>, z.ZodObject<{
|
|
5877
5877
|
status: z.ZodLiteral<"rejected">;
|
|
5878
5878
|
reason: z.ZodString;
|
|
@@ -4,13 +4,13 @@ import { TxEffect } from './tx_effect.js';
|
|
|
4
4
|
export type IndexedTxEffect = InBlock<TxEffect> & {
|
|
5
5
|
txIndexInBlock: number;
|
|
6
6
|
};
|
|
7
|
-
export declare function indexedTxSchema(): import("zod").ZodObject<
|
|
7
|
+
export declare function indexedTxSchema(): import("zod").ZodObject<{
|
|
8
8
|
data: import("@aztec/foundation/schemas").ZodFor<TxEffect>;
|
|
9
9
|
l2BlockNumber: import("zod").ZodPipeline<import("zod").ZodUnion<[import("zod").ZodBigInt, import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodNumber>;
|
|
10
10
|
l2BlockHash: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>, Buffer<ArrayBuffer>, string>, L2BlockHash, string>;
|
|
11
|
-
}
|
|
11
|
+
} & {
|
|
12
12
|
txIndexInBlock: import("zod").ZodPipeline<import("zod").ZodUnion<[import("zod").ZodBigInt, import("zod").ZodNumber, import("zod").ZodString]>, import("zod").ZodNumber>;
|
|
13
|
-
}
|
|
13
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
14
14
|
data: TxEffect;
|
|
15
15
|
l2BlockNumber: number;
|
|
16
16
|
l2BlockHash: L2BlockHash;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/stdlib",
|
|
3
|
-
"version": "2.0.3-rc.
|
|
3
|
+
"version": "2.0.3-rc.31",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"inherits": [
|
|
6
6
|
"../package.common.json",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@aztec/bb.js": "2.0.3-rc.
|
|
73
|
-
"@aztec/blob-lib": "2.0.3-rc.
|
|
74
|
-
"@aztec/constants": "2.0.3-rc.
|
|
75
|
-
"@aztec/ethereum": "2.0.3-rc.
|
|
76
|
-
"@aztec/foundation": "2.0.3-rc.
|
|
77
|
-
"@aztec/l1-artifacts": "2.0.3-rc.
|
|
78
|
-
"@aztec/noir-noirc_abi": "2.0.3-rc.
|
|
72
|
+
"@aztec/bb.js": "2.0.3-rc.31",
|
|
73
|
+
"@aztec/blob-lib": "2.0.3-rc.31",
|
|
74
|
+
"@aztec/constants": "2.0.3-rc.31",
|
|
75
|
+
"@aztec/ethereum": "2.0.3-rc.31",
|
|
76
|
+
"@aztec/foundation": "2.0.3-rc.31",
|
|
77
|
+
"@aztec/l1-artifacts": "2.0.3-rc.31",
|
|
78
|
+
"@aztec/noir-noirc_abi": "2.0.3-rc.31",
|
|
79
79
|
"@google-cloud/storage": "^7.15.0",
|
|
80
|
-
"axios": "^1.
|
|
80
|
+
"axios": "^1.12.0",
|
|
81
81
|
"json-stringify-deterministic": "1.0.12",
|
|
82
82
|
"lodash.chunk": "^4.2.0",
|
|
83
83
|
"lodash.isequal": "^4.5.0",
|