@aztec/stdlib 5.0.0-nightly.20260518 → 5.0.0-nightly.20260521
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/abi/abi.d.ts +106 -1199
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +6 -6
- package/dest/abi/authorization_selector.d.ts +2 -2
- package/dest/abi/authorization_selector.d.ts.map +1 -1
- package/dest/abi/event_selector.d.ts +2 -2
- package/dest/abi/event_selector.d.ts.map +1 -1
- package/dest/abi/function_call.d.ts +7 -25
- package/dest/abi/function_call.d.ts.map +1 -1
- package/dest/abi/note_selector.d.ts +2 -2
- package/dest/abi/note_selector.d.ts.map +1 -1
- package/dest/auth_witness/auth_witness.d.ts +2 -2
- package/dest/auth_witness/auth_witness.d.ts.map +1 -1
- package/dest/avm/avm.d.ts +1724 -10450
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm_accumulated_data.d.ts +22 -86
- package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
- package/dest/avm/avm_circuit_public_inputs.d.ts +180 -932
- package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
- package/dest/avm/avm_proving_request.d.ts +643 -5442
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/avm/public_data_write.d.ts +6 -12
- package/dest/avm/public_data_write.d.ts.map +1 -1
- package/dest/block/block_data.d.ts +9 -34
- package/dest/block/block_data.d.ts.map +1 -1
- package/dest/block/block_parameter.d.ts +4 -4
- package/dest/block/block_parameter.d.ts.map +1 -1
- package/dest/block/in_block.d.ts +5 -24
- package/dest/block/in_block.d.ts.map +1 -1
- package/dest/block/l2_block.d.ts +13 -41
- package/dest/block/l2_block.d.ts.map +1 -1
- package/dest/block/l2_block_info.d.ts +7 -27
- package/dest/block/l2_block_info.d.ts.map +1 -1
- package/dest/block/l2_block_source.d.ts +29 -297
- package/dest/block/l2_block_source.d.ts.map +1 -1
- package/dest/block/proposal/attestations_and_signers.d.ts +9 -27
- package/dest/block/proposal/attestations_and_signers.d.ts.map +1 -1
- package/dest/block/proposal/committee_attestation.d.ts +6 -12
- package/dest/block/proposal/committee_attestation.d.ts.map +1 -1
- package/dest/checkpoint/checkpoint.d.ts +24 -96
- package/dest/checkpoint/checkpoint.d.ts.map +1 -1
- package/dest/checkpoint/checkpoint_data.d.ts +37 -132
- package/dest/checkpoint/checkpoint_data.d.ts.map +1 -1
- package/dest/checkpoint/checkpoint_info.d.ts +7 -23
- package/dest/checkpoint/checkpoint_info.d.ts.map +1 -1
- package/dest/checkpoint/published_checkpoint.d.ts +42 -194
- package/dest/checkpoint/published_checkpoint.d.ts.map +1 -1
- package/dest/config/pipelining-config.d.ts +2 -6
- package/dest/config/pipelining-config.d.ts.map +1 -1
- package/dest/contract/complete_address.d.ts +2 -2
- package/dest/contract/complete_address.d.ts.map +1 -1
- package/dest/contract/contract_deployment_data.d.ts +15 -61
- package/dest/contract/contract_deployment_data.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_class.d.ts +15 -86
- package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_instance.d.ts +18 -84
- package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_instance_update.d.ts +6 -26
- package/dest/contract/interfaces/contract_instance_update.d.ts.map +1 -1
- package/dest/contract/interfaces/protocol_contract_addresses.d.ts +2 -12
- package/dest/contract/interfaces/protocol_contract_addresses.d.ts.map +1 -1
- package/dest/database-version/database_version.d.ts +5 -11
- package/dest/database-version/database_version.d.ts.map +1 -1
- package/dest/epoch-helpers/index.d.ts +4 -22
- package/dest/epoch-helpers/index.d.ts.map +1 -1
- package/dest/gas/gas.d.ts +6 -12
- package/dest/gas/gas.d.ts.map +1 -1
- package/dest/gas/gas_fees.d.ts +6 -12
- package/dest/gas/gas_fees.d.ts.map +1 -1
- package/dest/gas/gas_settings.d.ts +24 -82
- package/dest/gas/gas_settings.d.ts.map +1 -1
- package/dest/ha-signing/config.d.ts +6 -47
- package/dest/ha-signing/config.d.ts.map +1 -1
- package/dest/ha-signing/local_config.d.ts +3 -24
- package/dest/ha-signing/local_config.d.ts.map +1 -1
- package/dest/interfaces/allowed_element.d.ts +4 -28
- package/dest/interfaces/allowed_element.d.ts.map +1 -1
- package/dest/interfaces/archiver.d.ts +8 -30
- package/dest/interfaces/archiver.d.ts.map +1 -1
- package/dest/interfaces/archiver.js +217 -41
- package/dest/interfaces/aztec-node-admin.d.ts +42 -305
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/interfaces/aztec-node-admin.js +46 -12
- package/dest/interfaces/aztec-node-debug.js +4 -1
- package/dest/interfaces/aztec-node.d.ts +1 -1
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +303 -56
- package/dest/interfaces/block_response.d.ts +20 -92
- package/dest/interfaces/block_response.d.ts.map +1 -1
- package/dest/interfaces/chain_tips.d.ts +21 -275
- package/dest/interfaces/chain_tips.d.ts.map +1 -1
- package/dest/interfaces/checkpoint_parameter.d.ts +6 -18
- package/dest/interfaces/checkpoint_parameter.d.ts.map +1 -1
- package/dest/interfaces/checkpoint_response.d.ts +40 -230
- package/dest/interfaces/checkpoint_response.d.ts.map +1 -1
- package/dest/interfaces/configs.d.ts +6 -136
- package/dest/interfaces/configs.d.ts.map +1 -1
- package/dest/interfaces/get_logs_response.d.ts +15 -68
- package/dest/interfaces/get_logs_response.d.ts.map +1 -1
- package/dest/interfaces/l1_publish_info.d.ts +6 -20
- package/dest/interfaces/l1_publish_info.d.ts.map +1 -1
- package/dest/interfaces/p2p-bootstrap.js +8 -2
- package/dest/interfaces/p2p.d.ts +1 -1
- package/dest/interfaces/p2p.d.ts.map +1 -1
- package/dest/interfaces/p2p.js +28 -5
- package/dest/interfaces/prover-agent.d.ts +5 -23
- package/dest/interfaces/prover-agent.d.ts.map +1 -1
- package/dest/interfaces/prover-agent.js +4 -1
- package/dest/interfaces/prover-client.d.ts +6 -27
- package/dest/interfaces/prover-client.d.ts.map +1 -1
- package/dest/interfaces/prover-node.js +22 -8
- package/dest/interfaces/proving-job-source.js +24 -4
- package/dest/interfaces/proving-job.d.ts +736 -5793
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/proving-job.js +1 -1
- package/dest/interfaces/public_storage_override.d.ts +2 -10
- package/dest/interfaces/public_storage_override.d.ts.map +1 -1
- package/dest/interfaces/slasher.d.ts +15 -57
- package/dest/interfaces/slasher.d.ts.map +1 -1
- package/dest/interfaces/validator.d.ts +28 -217
- package/dest/interfaces/validator.d.ts.map +1 -1
- package/dest/interfaces/world_state.d.ts +2 -2
- package/dest/interfaces/world_state.d.ts.map +1 -1
- package/dest/kernel/private_circuit_public_inputs.d.ts +2 -2
- package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +2 -2
- package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_prover_output.d.ts +3 -29
- package/dest/kernel/private_kernel_prover_output.d.ts.map +1 -1
- package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts +2 -2
- package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_to_avm_accumulated_data.d.ts +20 -66
- package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts +2 -2
- package/dest/kernel/private_to_public_kernel_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_to_rollup_accumulated_data.d.ts +2 -2
- package/dest/kernel/private_to_rollup_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts +2 -2
- package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/public_call_request.d.ts +8 -26
- package/dest/kernel/public_call_request.d.ts.map +1 -1
- package/dest/keys/public_keys.d.ts +8 -18
- package/dest/keys/public_keys.d.ts.map +1 -1
- package/dest/logs/contract_class_log.d.ts +12 -32
- package/dest/logs/contract_class_log.d.ts.map +1 -1
- package/dest/logs/extended_directional_app_tagging_secret.d.ts +3 -9
- package/dest/logs/extended_directional_app_tagging_secret.d.ts.map +1 -1
- package/dest/logs/extended_public_log.d.ts +12 -44
- package/dest/logs/extended_public_log.d.ts.map +1 -1
- package/dest/logs/log_id.d.ts +9 -23
- package/dest/logs/log_id.d.ts.map +1 -1
- package/dest/logs/pre_tag.d.ts +5 -23
- package/dest/logs/pre_tag.d.ts.map +1 -1
- package/dest/logs/private_log.d.ts +5 -11
- package/dest/logs/private_log.d.ts.map +1 -1
- package/dest/logs/tagging_index_range.d.ts +6 -26
- package/dest/logs/tagging_index_range.d.ts.map +1 -1
- package/dest/logs/tx_scoped_l2_log.d.ts +11 -27
- package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
- package/dest/messaging/l2_to_l1_message.d.ts +33 -111
- package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
- package/dest/note/note.d.ts +2 -2
- package/dest/note/note.d.ts.map +1 -1
- package/dest/p2p/consensus_payload.d.ts +6 -16
- package/dest/p2p/consensus_payload.d.ts.map +1 -1
- package/dest/parity/parity_base_private_inputs.d.ts +2 -2
- package/dest/parity/parity_base_private_inputs.d.ts.map +1 -1
- package/dest/parity/parity_public_inputs.d.ts +2 -2
- package/dest/parity/parity_public_inputs.d.ts.map +1 -1
- package/dest/parity/parity_root_private_inputs.d.ts +2 -2
- package/dest/parity/parity_root_private_inputs.d.ts.map +1 -1
- package/dest/proofs/chonk_proof.d.ts +3 -3
- package/dest/proofs/chonk_proof.d.ts.map +1 -1
- package/dest/proofs/recursive_proof.d.ts +2 -2
- package/dest/proofs/recursive_proof.d.ts.map +1 -1
- package/dest/rollup/block_merge_rollup_private_inputs.d.ts +2 -2
- package/dest/rollup/block_merge_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/block_rollup_public_inputs.d.ts +2 -2
- package/dest/rollup/block_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/block_root_rollup_private_inputs.d.ts +6 -6
- package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts +2 -2
- package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +2 -2
- package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +5 -5
- package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/private_tx_base_rollup_private_inputs.d.ts +2 -2
- package/dest/rollup/private_tx_base_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/public_chonk_verifier_private_inputs.d.ts +2 -2
- package/dest/rollup/public_chonk_verifier_private_inputs.d.ts.map +1 -1
- package/dest/rollup/public_chonk_verifier_public_inputs.d.ts +2 -2
- package/dest/rollup/public_chonk_verifier_public_inputs.d.ts.map +1 -1
- package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts +2 -2
- package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/root_rollup_private_inputs.d.ts +2 -2
- package/dest/rollup/root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/root_rollup_public_inputs.d.ts +2 -2
- package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/tx_merge_rollup_private_inputs.d.ts +2 -2
- package/dest/rollup/tx_merge_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/tx_rollup_public_inputs.d.ts +2 -2
- package/dest/rollup/tx_rollup_public_inputs.d.ts.map +1 -1
- package/dest/schemas/schemas.d.ts +32 -78
- package/dest/schemas/schemas.d.ts.map +1 -1
- package/dest/schemas/schemas.js +2 -2
- package/dest/slashing/types.d.ts +6 -16
- package/dest/slashing/types.d.ts.map +1 -1
- package/dest/snapshots/types.d.ts +15 -78
- package/dest/snapshots/types.d.ts.map +1 -1
- package/dest/tests/factories.d.ts +1 -8
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +0 -8
- package/dest/trees/append_only_tree_snapshot.d.ts +6 -12
- package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
- package/dest/trees/nullifier_leaf.d.ts +18 -42
- package/dest/trees/nullifier_leaf.d.ts.map +1 -1
- package/dest/trees/nullifier_membership_witness.d.ts +16 -59
- package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
- package/dest/trees/nullifier_membership_witness.js +2 -14
- package/dest/trees/public_data_leaf.d.ts +21 -53
- package/dest/trees/public_data_leaf.d.ts.map +1 -1
- package/dest/trees/public_data_witness.d.ts +16 -58
- package/dest/trees/public_data_witness.d.ts.map +1 -1
- package/dest/tx/call_context.d.ts +4 -14
- package/dest/tx/call_context.d.ts.map +1 -1
- package/dest/tx/capsule.d.ts +2 -2
- package/dest/tx/capsule.d.ts.map +1 -1
- package/dest/tx/function_data.d.ts +4 -10
- package/dest/tx/function_data.d.ts.map +1 -1
- package/dest/tx/global_variables.d.ts +13 -47
- package/dest/tx/global_variables.d.ts.map +1 -1
- package/dest/tx/in_tx.d.ts +5 -17
- package/dest/tx/in_tx.d.ts.map +1 -1
- package/dest/tx/indexed_tx_effect.d.ts +4 -18
- package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
- package/dest/tx/partial_state_reference.d.ts +19 -63
- package/dest/tx/partial_state_reference.d.ts.map +1 -1
- package/dest/tx/private_execution_result.d.ts +6 -16
- package/dest/tx/private_execution_result.d.ts.map +1 -1
- package/dest/tx/profiling.d.ts +54 -352
- package/dest/tx/profiling.d.ts.map +1 -1
- package/dest/tx/protocol_contracts.d.ts +5 -9
- package/dest/tx/protocol_contracts.d.ts.map +1 -1
- package/dest/tx/proven_tx.d.ts +28 -74
- package/dest/tx/proven_tx.d.ts.map +1 -1
- package/dest/tx/simulated_tx.d.ts +30 -118
- package/dest/tx/simulated_tx.d.ts.map +1 -1
- package/dest/tx/state_reference.d.ts +27 -115
- package/dest/tx/state_reference.d.ts.map +1 -1
- package/dest/tx/tree_snapshots.d.ts +24 -82
- package/dest/tx/tree_snapshots.d.ts.map +1 -1
- package/dest/tx/tx_context.d.ts +29 -129
- package/dest/tx/tx_context.d.ts.map +1 -1
- package/dest/tx/tx_hash.d.ts +2 -2
- package/dest/tx/tx_hash.d.ts.map +1 -1
- package/dest/tx/validator/tx_validator.d.ts +5 -15
- package/dest/tx/validator/tx_validator.d.ts.map +1 -1
- package/dest/validators/schemas.d.ts +132 -613
- package/dest/validators/schemas.d.ts.map +1 -1
- package/dest/validators/schemas.js +2 -2
- package/dest/vks/verification_key.d.ts +3 -3
- package/dest/vks/verification_key.d.ts.map +1 -1
- package/dest/world-state/world_state_revision.d.ts +8 -26
- package/dest/world-state/world_state_revision.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/abi/abi.ts +6 -5
- package/src/block/block_parameter.ts +2 -2
- package/src/block/l2_block_source.ts +5 -5
- package/src/interfaces/archiver.ts +59 -54
- package/src/interfaces/aztec-node-admin.ts +14 -11
- package/src/interfaces/aztec-node-debug.ts +1 -1
- package/src/interfaces/aztec-node.ts +143 -118
- package/src/interfaces/p2p-bootstrap.ts +2 -2
- package/src/interfaces/p2p.ts +15 -12
- package/src/interfaces/prover-agent.ts +1 -1
- package/src/interfaces/prover-node.ts +7 -7
- package/src/interfaces/proving-job-source.ts +4 -4
- package/src/interfaces/proving-job.ts +3 -3
- package/src/interfaces/world_state.ts +1 -1
- package/src/schemas/schemas.ts +6 -1
- package/src/tests/factories.ts +0 -10
- package/src/trees/nullifier_membership_witness.ts +2 -12
- package/src/validators/schemas.ts +2 -2
|
@@ -507,177 +507,202 @@ const MAX_SIGNATURES_PER_REGISTER_CALL = 100;
|
|
|
507
507
|
const MAX_SIGNATURE_LEN = 10000;
|
|
508
508
|
|
|
509
509
|
export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
|
|
510
|
-
getWorldStateSyncStatus: z.function(
|
|
510
|
+
getWorldStateSyncStatus: z.function({ input: z.tuple([]), output: WorldStateSyncStatusSchema }),
|
|
511
511
|
|
|
512
|
-
findLeavesIndexes: z
|
|
513
|
-
.
|
|
514
|
-
|
|
515
|
-
|
|
512
|
+
findLeavesIndexes: z.function({
|
|
513
|
+
input: z.tuple([BlockParameterSchema, z.nativeEnum(MerkleTreeId), z.array(schemas.Fr).max(MAX_RPC_LEN)]),
|
|
514
|
+
output: z.array(optional(dataInBlockSchemaFor(schemas.BigInt))),
|
|
515
|
+
}),
|
|
516
516
|
|
|
517
|
-
getNullifierMembershipWitness: z
|
|
518
|
-
.
|
|
519
|
-
.
|
|
520
|
-
|
|
517
|
+
getNullifierMembershipWitness: z.function({
|
|
518
|
+
input: z.tuple([BlockParameterSchema, schemas.Fr]),
|
|
519
|
+
output: NullifierMembershipWitness.schema.optional(),
|
|
520
|
+
}),
|
|
521
521
|
|
|
522
|
-
getLowNullifierMembershipWitness: z
|
|
523
|
-
.
|
|
524
|
-
.
|
|
525
|
-
|
|
522
|
+
getLowNullifierMembershipWitness: z.function({
|
|
523
|
+
input: z.tuple([BlockParameterSchema, schemas.Fr]),
|
|
524
|
+
output: NullifierMembershipWitness.schema.optional(),
|
|
525
|
+
}),
|
|
526
526
|
|
|
527
|
-
getPublicDataWitness: z
|
|
528
|
-
.
|
|
529
|
-
.
|
|
530
|
-
|
|
527
|
+
getPublicDataWitness: z.function({
|
|
528
|
+
input: z.tuple([BlockParameterSchema, schemas.Fr]),
|
|
529
|
+
output: PublicDataWitness.schema.optional(),
|
|
530
|
+
}),
|
|
531
531
|
|
|
532
|
-
getBlockHashMembershipWitness: z
|
|
533
|
-
.
|
|
534
|
-
.
|
|
535
|
-
|
|
532
|
+
getBlockHashMembershipWitness: z.function({
|
|
533
|
+
input: z.tuple([BlockParameterSchema, BlockHash.schema]),
|
|
534
|
+
output: MembershipWitness.schemaFor(ARCHIVE_HEIGHT).optional(),
|
|
535
|
+
}),
|
|
536
536
|
|
|
537
|
-
getNoteHashMembershipWitness: z
|
|
538
|
-
.
|
|
539
|
-
.
|
|
540
|
-
|
|
537
|
+
getNoteHashMembershipWitness: z.function({
|
|
538
|
+
input: z.tuple([BlockParameterSchema, schemas.Fr]),
|
|
539
|
+
output: MembershipWitness.schemaFor(NOTE_HASH_TREE_HEIGHT).optional(),
|
|
540
|
+
}),
|
|
541
541
|
|
|
542
|
-
getL1ToL2MessageMembershipWitness: z
|
|
543
|
-
.
|
|
544
|
-
.
|
|
545
|
-
|
|
542
|
+
getL1ToL2MessageMembershipWitness: z.function({
|
|
543
|
+
input: z.tuple([BlockParameterSchema, schemas.Fr]),
|
|
544
|
+
output: z.tuple([schemas.BigInt, SiblingPath.schemaFor(L1_TO_L2_MSG_TREE_HEIGHT)]).optional(),
|
|
545
|
+
}),
|
|
546
546
|
|
|
547
|
-
getL1ToL2MessageCheckpoint: z.function(
|
|
547
|
+
getL1ToL2MessageCheckpoint: z.function({ input: z.tuple([schemas.Fr]), output: CheckpointNumberSchema.optional() }),
|
|
548
548
|
|
|
549
|
-
getL2ToL1Messages: z
|
|
550
|
-
.
|
|
551
|
-
.
|
|
552
|
-
|
|
549
|
+
getL2ToL1Messages: z.function({
|
|
550
|
+
input: z.tuple([EpochNumberSchema]),
|
|
551
|
+
output: z.array(z.array(z.array(z.array(schemas.Fr)))),
|
|
552
|
+
}),
|
|
553
553
|
|
|
554
|
-
getBlockNumber: z.function(
|
|
554
|
+
getBlockNumber: z.function({ input: z.tuple([optional(ChainTipSchema)]), output: BlockNumberSchema }),
|
|
555
555
|
|
|
556
|
-
getCheckpointNumber: z.function(
|
|
556
|
+
getCheckpointNumber: z.function({ input: z.tuple([optional(ChainTipSchema)]), output: CheckpointNumberSchema }),
|
|
557
557
|
|
|
558
|
-
getChainTips: z.function(
|
|
558
|
+
getChainTips: z.function({ input: z.tuple([]), output: ChainTipsSchema }),
|
|
559
559
|
|
|
560
|
-
getCheckpointsData: z.function(
|
|
560
|
+
getCheckpointsData: z.function({ input: z.tuple([CheckpointsQuerySchema]), output: z.array(CheckpointDataSchema) }),
|
|
561
561
|
|
|
562
|
-
getBlock: z
|
|
563
|
-
.
|
|
564
|
-
.
|
|
565
|
-
|
|
562
|
+
getBlock: z.function({
|
|
563
|
+
input: z.tuple([BlockParameterSchema, optional(BlockIncludeOptionsSchema)]),
|
|
564
|
+
output: BlockResponseSchema.optional(),
|
|
565
|
+
}),
|
|
566
566
|
|
|
567
|
-
getBlockData: z.function(
|
|
567
|
+
getBlockData: z.function({ input: z.tuple([BlockParameterSchema]), output: BlockDataSchema.optional() }),
|
|
568
568
|
|
|
569
|
-
getBlocks: z
|
|
570
|
-
.
|
|
571
|
-
|
|
572
|
-
|
|
569
|
+
getBlocks: z.function({
|
|
570
|
+
input: z.tuple([
|
|
571
|
+
BlockNumberPositiveSchema,
|
|
572
|
+
z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN),
|
|
573
|
+
optional(BlocksIncludeOptionsSchema),
|
|
574
|
+
]),
|
|
575
|
+
output: z.array(BlockResponseSchema),
|
|
576
|
+
}),
|
|
573
577
|
|
|
574
|
-
getCheckpoint: z
|
|
575
|
-
.
|
|
576
|
-
.
|
|
577
|
-
|
|
578
|
+
getCheckpoint: z.function({
|
|
579
|
+
input: z.tuple([CheckpointParameterSchema, optional(CheckpointIncludeOptionsSchema)]),
|
|
580
|
+
output: CheckpointResponseSchema.optional(),
|
|
581
|
+
}),
|
|
578
582
|
|
|
579
|
-
getCheckpoints: z
|
|
580
|
-
.
|
|
581
|
-
.args(
|
|
583
|
+
getCheckpoints: z.function({
|
|
584
|
+
input: z.tuple([
|
|
582
585
|
CheckpointNumberPositiveSchema,
|
|
583
586
|
z.number().gt(0).lte(MAX_RPC_CHECKPOINTS_LEN),
|
|
584
587
|
optional(CheckpointIncludeOptionsSchema),
|
|
585
|
-
)
|
|
586
|
-
|
|
588
|
+
]),
|
|
589
|
+
output: z.array(CheckpointResponseSchema),
|
|
590
|
+
}),
|
|
587
591
|
|
|
588
|
-
isReady: z.function(
|
|
592
|
+
isReady: z.function({ input: z.tuple([]), output: z.boolean() }),
|
|
589
593
|
|
|
590
|
-
getNodeInfo: z.function(
|
|
594
|
+
getNodeInfo: z.function({ input: z.tuple([]), output: NodeInfoSchema }),
|
|
591
595
|
|
|
592
|
-
getCurrentMinFees: z.function(
|
|
596
|
+
getCurrentMinFees: z.function({ input: z.tuple([]), output: GasFees.schema }),
|
|
593
597
|
|
|
594
|
-
getPredictedMinFees: z
|
|
595
|
-
.
|
|
596
|
-
.
|
|
597
|
-
|
|
598
|
+
getPredictedMinFees: z.function({
|
|
599
|
+
input: z.tuple([optional(z.nativeEnum(ManaUsageEstimate))]),
|
|
600
|
+
output: z.array(GasFees.schema),
|
|
601
|
+
}),
|
|
598
602
|
|
|
599
|
-
getMaxPriorityFees: z.function(
|
|
603
|
+
getMaxPriorityFees: z.function({ input: z.tuple([]), output: GasFees.schema }),
|
|
600
604
|
|
|
601
|
-
getNodeVersion: z.function(
|
|
605
|
+
getNodeVersion: z.function({ input: z.tuple([]), output: z.string() }),
|
|
602
606
|
|
|
603
|
-
getVersion: z.function(
|
|
607
|
+
getVersion: z.function({ input: z.tuple([]), output: z.number() }),
|
|
604
608
|
|
|
605
|
-
getChainId: z.function(
|
|
609
|
+
getChainId: z.function({ input: z.tuple([]), output: z.number() }),
|
|
606
610
|
|
|
607
|
-
getL1ContractAddresses: z.function(
|
|
611
|
+
getL1ContractAddresses: z.function({ input: z.tuple([]), output: L1ContractAddressesSchema }),
|
|
608
612
|
|
|
609
|
-
getProtocolContractAddresses: z.function(
|
|
613
|
+
getProtocolContractAddresses: z.function({ input: z.tuple([]), output: ProtocolContractAddressesSchema }),
|
|
610
614
|
|
|
611
|
-
registerContractFunctionSignatures: z
|
|
612
|
-
.
|
|
613
|
-
|
|
614
|
-
|
|
615
|
+
registerContractFunctionSignatures: z.function({
|
|
616
|
+
input: z.tuple([z.array(z.string().max(MAX_SIGNATURE_LEN)).max(MAX_SIGNATURES_PER_REGISTER_CALL)]),
|
|
617
|
+
output: z.void(),
|
|
618
|
+
}),
|
|
615
619
|
|
|
616
|
-
getPublicLogs: z.function(
|
|
620
|
+
getPublicLogs: z.function({ input: z.tuple([LogFilterSchema]), output: GetPublicLogsResponseSchema }),
|
|
617
621
|
|
|
618
|
-
getContractClassLogs: z.function(
|
|
622
|
+
getContractClassLogs: z.function({ input: z.tuple([LogFilterSchema]), output: GetContractClassLogsResponseSchema }),
|
|
619
623
|
|
|
620
|
-
getPrivateLogsByTags: z
|
|
621
|
-
.
|
|
622
|
-
|
|
623
|
-
|
|
624
|
+
getPrivateLogsByTags: z.function({
|
|
625
|
+
input: z.tuple([
|
|
626
|
+
z.array(SiloedTag.schema).max(MAX_RPC_LEN),
|
|
627
|
+
optional(z.number().gte(0)),
|
|
628
|
+
optional(BlockHash.schema),
|
|
629
|
+
]),
|
|
630
|
+
output: z.array(z.array(TxScopedL2Log.schema)),
|
|
631
|
+
}),
|
|
624
632
|
|
|
625
|
-
getPublicLogsByTagsFromContract: z
|
|
626
|
-
.
|
|
627
|
-
.args(
|
|
633
|
+
getPublicLogsByTagsFromContract: z.function({
|
|
634
|
+
input: z.tuple([
|
|
628
635
|
schemas.AztecAddress,
|
|
629
636
|
z.array(Tag.schema).max(MAX_RPC_LEN),
|
|
630
637
|
optional(z.number().gte(0)),
|
|
631
638
|
optional(BlockHash.schema),
|
|
632
|
-
)
|
|
633
|
-
|
|
639
|
+
]),
|
|
640
|
+
output: z.array(z.array(TxScopedL2Log.schema)),
|
|
641
|
+
}),
|
|
634
642
|
|
|
635
|
-
sendTx: z.function(
|
|
643
|
+
sendTx: z.function({ input: z.tuple([Tx.schema]), output: z.void() }),
|
|
636
644
|
|
|
637
|
-
getTxReceipt: z.function(
|
|
645
|
+
getTxReceipt: z.function({ input: z.tuple([TxHash.schema]), output: TxReceipt.schema }),
|
|
638
646
|
|
|
639
|
-
getTxEffect: z.function(
|
|
647
|
+
getTxEffect: z.function({ input: z.tuple([TxHash.schema]), output: indexedTxSchema().optional() }),
|
|
640
648
|
|
|
641
|
-
getPendingTxs: z
|
|
642
|
-
.
|
|
643
|
-
|
|
644
|
-
|
|
649
|
+
getPendingTxs: z.function({
|
|
650
|
+
input: z.tuple([
|
|
651
|
+
optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)),
|
|
652
|
+
optional(TxHash.schema),
|
|
653
|
+
]),
|
|
654
|
+
output: z.array(Tx.schema),
|
|
655
|
+
}),
|
|
645
656
|
|
|
646
|
-
getPendingTxCount: z.function(
|
|
657
|
+
getPendingTxCount: z.function({ input: z.tuple([]), output: z.number() }),
|
|
647
658
|
|
|
648
|
-
getTxByHash: z.function(
|
|
659
|
+
getTxByHash: z.function({ input: z.tuple([TxHash.schema]), output: Tx.schema.optional() }),
|
|
649
660
|
|
|
650
|
-
getTxsByHash: z.function(
|
|
661
|
+
getTxsByHash: z.function({
|
|
662
|
+
input: z.tuple([z.array(TxHash.schema).max(MAX_RPC_TXS_LEN)]),
|
|
663
|
+
output: z.array(Tx.schema),
|
|
664
|
+
}),
|
|
651
665
|
|
|
652
|
-
getPublicStorageAt: z.function(
|
|
666
|
+
getPublicStorageAt: z.function({
|
|
667
|
+
input: z.tuple([BlockParameterSchema, schemas.AztecAddress, schemas.Fr]),
|
|
668
|
+
output: schemas.Fr,
|
|
669
|
+
}),
|
|
653
670
|
|
|
654
|
-
getValidatorsStats: z.function(
|
|
671
|
+
getValidatorsStats: z.function({ input: z.tuple([]), output: ValidatorsStatsSchema }),
|
|
655
672
|
|
|
656
|
-
getValidatorStats: z
|
|
657
|
-
.
|
|
658
|
-
.
|
|
659
|
-
|
|
673
|
+
getValidatorStats: z.function({
|
|
674
|
+
input: z.tuple([schemas.EthAddress, optional(schemas.SlotNumber), optional(schemas.SlotNumber)]),
|
|
675
|
+
output: SingleValidatorStatsSchema.optional(),
|
|
676
|
+
}),
|
|
660
677
|
|
|
661
|
-
simulatePublicCalls: z
|
|
662
|
-
.
|
|
663
|
-
.
|
|
664
|
-
|
|
678
|
+
simulatePublicCalls: z.function({
|
|
679
|
+
input: z.tuple([Tx.schema, optional(z.boolean()), optional(SimulationOverrides.schema)]),
|
|
680
|
+
output: PublicSimulationOutput.schema,
|
|
681
|
+
}),
|
|
665
682
|
|
|
666
|
-
isValidTx: z
|
|
667
|
-
.
|
|
668
|
-
.args(
|
|
683
|
+
isValidTx: z.function({
|
|
684
|
+
input: z.tuple([
|
|
669
685
|
Tx.schema,
|
|
670
|
-
optional(
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
686
|
+
optional(
|
|
687
|
+
z.object({
|
|
688
|
+
isSimulation: optional(z.boolean()).optional(),
|
|
689
|
+
skipFeeEnforcement: optional(z.boolean()).optional(),
|
|
690
|
+
}),
|
|
691
|
+
),
|
|
692
|
+
]),
|
|
693
|
+
output: TxValidationResultSchema,
|
|
694
|
+
}),
|
|
695
|
+
|
|
696
|
+
getContractClass: z.function({ input: z.tuple([schemas.Fr]), output: ContractClassPublicSchema.optional() }),
|
|
697
|
+
|
|
698
|
+
getContract: z.function({
|
|
699
|
+
input: z.tuple([schemas.AztecAddress]),
|
|
700
|
+
output: ContractInstanceWithAddressSchema.optional(),
|
|
701
|
+
}),
|
|
702
|
+
|
|
703
|
+
getEncodedEnr: z.function({ input: z.tuple([]), output: z.string().optional() }),
|
|
704
|
+
|
|
705
|
+
getAllowedPublicSetup: z.function({ input: z.tuple([]), output: z.array(AllowedElementSchema) }),
|
|
681
706
|
};
|
|
682
707
|
|
|
683
708
|
export function createAztecNodeClient(
|
|
@@ -16,6 +16,6 @@ export interface P2PBootstrapApi {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export const P2PBootstrapApiSchema: ApiSchemaFor<P2PBootstrapApi> = {
|
|
19
|
-
getEncodedEnr: z.function(
|
|
20
|
-
getRoutingTable: z.function(
|
|
19
|
+
getEncodedEnr: z.function({ input: z.tuple([]), output: z.string() }),
|
|
20
|
+
getRoutingTable: z.function({ input: z.tuple([]), output: z.array(z.string()) }),
|
|
21
21
|
};
|
package/src/interfaces/p2p.ts
CHANGED
|
@@ -70,19 +70,22 @@ export interface P2PClient extends P2PApi {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export const P2PApiSchema: ApiSchemaFor<P2PApi> = {
|
|
73
|
-
getCheckpointAttestationsForSlot: z
|
|
74
|
-
.
|
|
75
|
-
.args(
|
|
73
|
+
getCheckpointAttestationsForSlot: z.function({
|
|
74
|
+
input: z.tuple([
|
|
76
75
|
schemas.SlotNumber,
|
|
77
76
|
optional(z.string().regex(/^0x[0-9a-fA-F]+$/) as unknown as z.ZodType<CheckpointProposalHash>),
|
|
78
|
-
)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
]),
|
|
78
|
+
output: z.array(CheckpointAttestation.schema),
|
|
79
|
+
}),
|
|
80
|
+
getPendingTxs: z.function({
|
|
81
|
+
input: z.tuple([
|
|
82
|
+
optional(z.number().gte(1).lte(MAX_RPC_TXS_LEN).default(MAX_RPC_TXS_LEN)),
|
|
83
|
+
optional(TxHash.schema),
|
|
84
|
+
]),
|
|
85
|
+
output: z.array(Tx.schema),
|
|
86
|
+
}),
|
|
84
87
|
|
|
85
|
-
getPendingTxCount: z.function(
|
|
86
|
-
getEncodedEnr: z.function(
|
|
87
|
-
getPeers: z.function(
|
|
88
|
+
getPendingTxCount: z.function({ input: z.tuple([]), output: schemas.Integer }),
|
|
89
|
+
getEncodedEnr: z.function({ input: z.tuple([]), output: z.string().optional() }),
|
|
90
|
+
getPeers: z.function({ input: z.tuple([optional(z.boolean())]), output: z.array(PeerInfoSchema) }),
|
|
88
91
|
};
|
|
@@ -15,5 +15,5 @@ export interface ProverAgentApi {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export const ProverAgentApiSchema: ApiSchemaFor<ProverAgentApi> = {
|
|
18
|
-
getStatus: z.function(
|
|
18
|
+
getStatus: z.function({ input: z.tuple([]), output: ProverAgentStatusSchema }),
|
|
19
19
|
};
|
|
@@ -41,14 +41,14 @@ export interface ProverNodeApi {
|
|
|
41
41
|
|
|
42
42
|
/** Schemas for prover node API functions. */
|
|
43
43
|
export const ProverNodeApiSchema: ApiSchemaFor<ProverNodeApi> = {
|
|
44
|
-
getJobs: z
|
|
45
|
-
.
|
|
46
|
-
.
|
|
47
|
-
|
|
44
|
+
getJobs: z.function({
|
|
45
|
+
input: z.tuple([]),
|
|
46
|
+
output: z.array(z.object({ uuid: z.string(), status: z.enum(EpochProvingJobState), epochNumber: z.number() })),
|
|
47
|
+
}),
|
|
48
48
|
|
|
49
|
-
startProof: z.function(
|
|
49
|
+
startProof: z.function({ input: z.tuple([schemas.Integer]), output: z.void() }),
|
|
50
50
|
|
|
51
|
-
getL2Tips: z.function(
|
|
51
|
+
getL2Tips: z.function({ input: z.tuple([]), output: L2TipsSchema }),
|
|
52
52
|
|
|
53
|
-
getWorldStateSyncStatus: z.function(
|
|
53
|
+
getWorldStateSyncStatus: z.function({ input: z.tuple([]), output: WorldStateSyncStatusSchema }),
|
|
54
54
|
};
|
|
@@ -33,8 +33,8 @@ export interface ProvingJobSource {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export const ProvingJobSourceSchema: ApiSchemaFor<ProvingJobSource> = {
|
|
36
|
-
getProvingJob: z.function(
|
|
37
|
-
heartbeat: z.function(
|
|
38
|
-
resolveProvingJob: z.function(
|
|
39
|
-
rejectProvingJob: z.function(
|
|
36
|
+
getProvingJob: z.function({ input: z.tuple([]), output: ProvingJob.optional() }),
|
|
37
|
+
heartbeat: z.function({ input: z.tuple([ProvingJobId]), output: z.void() }),
|
|
38
|
+
resolveProvingJob: z.function({ input: z.tuple([ProvingJobId, ProvingJobResult]), output: z.void() }),
|
|
39
|
+
rejectProvingJob: z.function({ input: z.tuple([ProvingJobId, z.string()]), output: z.void() }),
|
|
40
40
|
};
|
|
@@ -388,8 +388,8 @@ export type ProvingRequestResultFor<T extends ProvingRequestType> = { type: T; r
|
|
|
388
388
|
|
|
389
389
|
export const ProvingJobId = z.string();
|
|
390
390
|
|
|
391
|
-
export
|
|
392
|
-
export
|
|
391
|
+
export type ProofUri = string & z.$brand<'ProvingJobUri'>;
|
|
392
|
+
export const ProofUri: ZodFor<ProofUri> = z.string().transform(value => value as ProofUri);
|
|
393
393
|
|
|
394
394
|
export type ProvingJobId = z.infer<typeof ProvingJobId>;
|
|
395
395
|
|
|
@@ -400,7 +400,7 @@ type ProvingJobShape = {
|
|
|
400
400
|
inputsUri: ProofUri;
|
|
401
401
|
};
|
|
402
402
|
|
|
403
|
-
export const ProvingJob: z.ZodType<ProvingJobShape,
|
|
403
|
+
export const ProvingJob: z.ZodType<ProvingJobShape, any> = z.object({
|
|
404
404
|
id: ProvingJobId,
|
|
405
405
|
type: z.nativeEnum(ProvingRequestType),
|
|
406
406
|
epochNumber: EpochNumberSchema,
|
|
@@ -92,7 +92,7 @@ export interface WorldStateSynchronizer extends ReadonlyWorldStateAccess, ForkMe
|
|
|
92
92
|
clear(): Promise<void>;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export const WorldStateSyncStatusSchema: z.ZodType<WorldStateSyncStatus,
|
|
95
|
+
export const WorldStateSyncStatusSchema: z.ZodType<WorldStateSyncStatus, any> = z.object({
|
|
96
96
|
finalizedBlockNumber: BlockNumberSchema,
|
|
97
97
|
latestBlockNumber: BlockNumberSchema,
|
|
98
98
|
latestBlockHash: z.string(),
|
package/src/schemas/schemas.ts
CHANGED
|
@@ -89,7 +89,10 @@ export const AbiDecodedSchema: ZodFor<AbiDecoded> = z.union([
|
|
|
89
89
|
z.boolean(),
|
|
90
90
|
schemas.AztecAddress,
|
|
91
91
|
z.array(z.lazy(() => AbiDecodedSchema)),
|
|
92
|
-
z.record(
|
|
92
|
+
z.record(
|
|
93
|
+
z.string(),
|
|
94
|
+
z.lazy(() => AbiDecodedSchema),
|
|
95
|
+
),
|
|
93
96
|
]);
|
|
94
97
|
|
|
95
98
|
// C++ only supports null values, which we want to convert to undefined.
|
|
@@ -103,6 +106,8 @@ export {
|
|
|
103
106
|
hexSchemaFor,
|
|
104
107
|
bufferSchemaFor,
|
|
105
108
|
type ApiSchemaFor,
|
|
109
|
+
getSchemaParameters,
|
|
110
|
+
getSchemaReturnType,
|
|
106
111
|
optional,
|
|
107
112
|
mapSchema,
|
|
108
113
|
pickFromSchema,
|
package/src/tests/factories.ts
CHANGED
|
@@ -45,7 +45,6 @@ import { type FieldsOf, makeTuple } from '@aztec/foundation/array';
|
|
|
45
45
|
import { BlockNumber, CheckpointNumber, SlotNumber } from '@aztec/foundation/branded-types';
|
|
46
46
|
import { compact } from '@aztec/foundation/collection';
|
|
47
47
|
import { Grumpkin } from '@aztec/foundation/crypto/grumpkin';
|
|
48
|
-
import { SchnorrSignature } from '@aztec/foundation/crypto/schnorr';
|
|
49
48
|
import { sha256 } from '@aztec/foundation/crypto/sha256';
|
|
50
49
|
import { Fq, Fr } from '@aztec/foundation/curves/bn254';
|
|
51
50
|
import { GrumpkinScalar, Point } from '@aztec/foundation/curves/grumpkin';
|
|
@@ -749,15 +748,6 @@ export function makeAztecAddress(seed = 1): AztecAddress {
|
|
|
749
748
|
return AztecAddress.fromField(fr(seed));
|
|
750
749
|
}
|
|
751
750
|
|
|
752
|
-
/**
|
|
753
|
-
* Makes arbitrary Schnorr signature.
|
|
754
|
-
* @param seed - The seed to use for generating the Schnorr signature.
|
|
755
|
-
* @returns A Schnorr signature.
|
|
756
|
-
*/
|
|
757
|
-
export function makeSchnorrSignature(seed = 1): SchnorrSignature {
|
|
758
|
-
return new SchnorrSignature(Buffer.alloc(SchnorrSignature.SIZE, seed));
|
|
759
|
-
}
|
|
760
|
-
|
|
761
751
|
function makeBlockConstantData(seed = 1, globalVariables?: GlobalVariables) {
|
|
762
752
|
return new BlockConstantData(
|
|
763
753
|
makeAppendOnlyTreeSnapshot(seed + 0x100),
|
|
@@ -53,22 +53,12 @@ export class NullifierMembershipWitness {
|
|
|
53
53
|
return new MembershipWitness(NULLIFIER_TREE_HEIGHT, this.index, this.siblingPath.toTuple());
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
/**
|
|
57
|
-
* Returns a field array representation of a nullifier witness.
|
|
58
|
-
* @returns A field array representation of a nullifier witness.
|
|
59
|
-
*/
|
|
60
|
-
public toFields(): Fr[] {
|
|
61
|
-
return [new Fr(this.index), ...this.leafPreimage.toFields(), ...this.siblingPath.toFields()];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Returns a representation of the nullifier membership witness as expected by intrinsic Noir deserialization.
|
|
66
|
-
*/
|
|
56
|
+
/** Serializes as `(NullifierLeafPreimage, MembershipWitness)` to match the Noir oracle return type. */
|
|
67
57
|
public toNoirRepresentation(): (string | string[])[] {
|
|
68
58
|
// TODO(#12874): remove the stupid as string conversion by modifying ForeignCallOutput type in acvm.js
|
|
69
59
|
return [
|
|
70
|
-
new Fr(this.index).toString() as string,
|
|
71
60
|
...(this.leafPreimage.toFields().map(fr => fr.toString()) as string[]),
|
|
61
|
+
new Fr(this.index).toString() as string,
|
|
72
62
|
this.siblingPath.toFields().map(fr => fr.toString()) as string[],
|
|
73
63
|
];
|
|
74
64
|
}
|
|
@@ -33,7 +33,7 @@ export const ValidatorStatusHistorySchema = zodFor<ValidatorStatusHistory>()(
|
|
|
33
33
|
|
|
34
34
|
export const ValidatorStatusHistorySchemaArray = z.array(ValidatorStatusHistorySchema);
|
|
35
35
|
|
|
36
|
-
export const ValidatorStatusHistorySchemaMap = z.record(ValidatorStatusHistorySchemaArray);
|
|
36
|
+
export const ValidatorStatusHistorySchemaMap = z.record(z.string(), ValidatorStatusHistorySchemaArray);
|
|
37
37
|
|
|
38
38
|
const ValidatorTimeStatSchema = z.object({
|
|
39
39
|
timestamp: schemas.BigInt,
|
|
@@ -64,7 +64,7 @@ export const ValidatorStatsSchema = zodFor<ValidatorStats>()(
|
|
|
64
64
|
|
|
65
65
|
export const ValidatorsStatsSchema = zodFor<ValidatorsStats>()(
|
|
66
66
|
z.object({
|
|
67
|
-
stats: z.record(ValidatorStatsSchema),
|
|
67
|
+
stats: z.record(z.string(), ValidatorStatsSchema),
|
|
68
68
|
lastProcessedSlot: schemas.SlotNumber.optional(),
|
|
69
69
|
initialSlot: schemas.SlotNumber.optional(),
|
|
70
70
|
slotWindow: schemas.Integer,
|