@aztec/stdlib 0.0.1-commit.fce3e4f → 0.0.1-commit.fffb133c
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 +603 -5
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +7 -7
- package/dest/abi/authorization_selector.d.ts +2 -2
- package/dest/abi/authorization_selector.d.ts.map +1 -1
- package/dest/abi/authorization_selector.js +2 -1
- package/dest/abi/buffer.d.ts +2 -2
- package/dest/abi/buffer.d.ts.map +1 -1
- package/dest/abi/buffer.js +1 -1
- package/dest/abi/contract_artifact.d.ts +2 -2
- package/dest/abi/contract_artifact.d.ts.map +1 -1
- package/dest/abi/contract_artifact.js +1 -1
- package/dest/abi/decoder.d.ts +2 -2
- package/dest/abi/decoder.d.ts.map +1 -1
- package/dest/abi/encoder.d.ts +2 -2
- package/dest/abi/encoder.d.ts.map +1 -1
- package/dest/abi/encoder.js +1 -1
- package/dest/abi/event_selector.d.ts +2 -2
- package/dest/abi/event_selector.d.ts.map +1 -1
- package/dest/abi/event_selector.js +2 -1
- package/dest/abi/function_call.d.ts +10 -2
- package/dest/abi/function_call.d.ts.map +1 -1
- package/dest/abi/function_selector.d.ts +3 -2
- package/dest/abi/function_selector.d.ts.map +1 -1
- package/dest/abi/function_selector.js +9 -1
- package/dest/abi/note_selector.d.ts +2 -2
- package/dest/abi/note_selector.d.ts.map +1 -1
- package/dest/abi/note_selector.js +2 -2
- package/dest/abi/selector.d.ts +2 -2
- package/dest/abi/selector.d.ts.map +1 -1
- package/dest/abi/selector.js +4 -2
- package/dest/abi/utils.d.ts +7 -1
- package/dest/abi/utils.d.ts.map +1 -1
- package/dest/abi/utils.js +7 -0
- package/dest/auth_witness/auth_witness.d.ts +3 -2
- package/dest/auth_witness/auth_witness.d.ts.map +1 -1
- package/dest/auth_witness/auth_witness.js +2 -2
- package/dest/avm/avm.d.ts +598 -386
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +238 -22
- package/dest/avm/avm_accumulated_data.d.ts +31 -4
- package/dest/avm/avm_accumulated_data.d.ts.map +1 -1
- package/dest/avm/avm_accumulated_data.js +6 -3
- package/dest/avm/avm_circuit_public_inputs.d.ts +14 -12
- package/dest/avm/avm_circuit_public_inputs.d.ts.map +1 -1
- package/dest/avm/avm_circuit_public_inputs.js +4 -2
- package/dest/avm/avm_proving_request.d.ts +306 -302
- package/dest/avm/avm_proving_request.d.ts.map +1 -1
- package/dest/avm/contract_storage_read.d.ts +14 -2
- package/dest/avm/contract_storage_read.d.ts.map +1 -1
- package/dest/avm/contract_storage_read.js +1 -1
- package/dest/avm/contract_storage_update_request.d.ts +14 -2
- package/dest/avm/contract_storage_update_request.d.ts.map +1 -1
- package/dest/avm/contract_storage_update_request.js +1 -1
- package/dest/avm/message_pack.d.ts +1 -1
- package/dest/avm/message_pack.d.ts.map +1 -1
- package/dest/avm/message_pack.js +2 -1
- package/dest/avm/public_call_stack_item_compressed.d.ts +4 -2
- package/dest/avm/public_call_stack_item_compressed.d.ts.map +1 -1
- package/dest/avm/public_call_stack_item_compressed.js +1 -1
- package/dest/avm/public_data_read.d.ts +11 -2
- package/dest/avm/public_data_read.d.ts.map +1 -1
- package/dest/avm/public_data_read.js +1 -1
- package/dest/avm/public_data_update_request.d.ts +11 -2
- package/dest/avm/public_data_update_request.d.ts.map +1 -1
- package/dest/avm/public_data_update_request.js +4 -2
- package/dest/avm/public_data_write.d.ts +8 -2
- package/dest/avm/public_data_write.d.ts.map +1 -1
- package/dest/avm/public_data_write.js +1 -1
- package/dest/avm/public_inner_call_request.d.ts +5 -2
- package/dest/avm/public_inner_call_request.d.ts.map +1 -1
- package/dest/avm/public_inner_call_request.js +3 -1
- package/dest/avm/revert_code.d.ts +5 -5
- package/dest/avm/revert_code.d.ts.map +1 -1
- package/dest/avm/revert_code.js +4 -2
- package/dest/aztec-address/index.d.ts +3 -2
- package/dest/aztec-address/index.d.ts.map +1 -1
- package/dest/aztec-address/index.js +5 -2
- package/dest/block/attestation_info.d.ts +5 -5
- package/dest/block/attestation_info.d.ts.map +1 -1
- package/dest/block/attestation_info.js +5 -5
- package/dest/block/block_hash.d.ts +10 -3
- package/dest/block/block_hash.d.ts.map +1 -1
- package/dest/block/block_hash.js +16 -1
- package/dest/block/block_parameter.d.ts +6 -0
- package/dest/block/block_parameter.d.ts.map +1 -0
- package/dest/block/block_parameter.js +8 -0
- package/dest/block/body.d.ts +1 -1
- package/dest/block/body.d.ts.map +1 -1
- package/dest/block/body.js +5 -2
- package/dest/block/checkpointed_l2_block.d.ts +150 -0
- package/dest/block/checkpointed_l2_block.d.ts.map +1 -0
- package/dest/block/checkpointed_l2_block.js +46 -0
- package/dest/block/in_block.d.ts +31 -12
- package/dest/block/in_block.d.ts.map +1 -1
- package/dest/block/in_block.js +17 -8
- package/dest/block/index.d.ts +3 -5
- package/dest/block/index.d.ts.map +1 -1
- package/dest/block/index.js +2 -4
- package/dest/block/l2_block.d.ts +58 -59
- package/dest/block/l2_block.d.ts.map +1 -1
- package/dest/block/l2_block.js +69 -109
- package/dest/block/l2_block_info.d.ts +16 -11
- package/dest/block/l2_block_info.d.ts.map +1 -1
- package/dest/block/l2_block_info.js +8 -7
- package/dest/block/l2_block_source.d.ts +369 -150
- package/dest/block/l2_block_source.d.ts.map +1 -1
- package/dest/block/l2_block_source.js +29 -16
- package/dest/block/l2_block_stream/index.d.ts +2 -1
- package/dest/block/l2_block_stream/index.d.ts.map +1 -1
- package/dest/block/l2_block_stream/index.js +1 -0
- package/dest/block/l2_block_stream/interfaces.d.ts +15 -5
- package/dest/block/l2_block_stream/interfaces.d.ts.map +1 -1
- package/dest/block/l2_block_stream/l2_block_stream.d.ts +13 -3
- package/dest/block/l2_block_stream/l2_block_stream.d.ts.map +1 -1
- package/dest/block/l2_block_stream/l2_block_stream.js +116 -32
- package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts +24 -15
- package/dest/block/l2_block_stream/l2_tips_memory_store.d.ts.map +1 -1
- package/dest/block/l2_block_stream/l2_tips_memory_store.js +55 -59
- package/dest/block/l2_block_stream/l2_tips_store_base.d.ts +49 -0
- package/dest/block/l2_block_stream/l2_tips_store_base.d.ts.map +1 -0
- package/dest/block/l2_block_stream/l2_tips_store_base.js +179 -0
- package/dest/block/proposal/attestations_and_signers.d.ts +2 -2
- package/dest/block/proposal/attestations_and_signers.d.ts.map +1 -1
- package/dest/block/proposal/committee_attestation.d.ts +2 -2
- package/dest/block/proposal/committee_attestation.d.ts.map +1 -1
- package/dest/block/test/l2_tips_store_test_suite.d.ts +1 -1
- package/dest/block/test/l2_tips_store_test_suite.d.ts.map +1 -1
- package/dest/block/test/l2_tips_store_test_suite.js +482 -43
- package/dest/block/validate_block_result.d.ts +24 -24
- package/dest/block/validate_block_result.d.ts.map +1 -1
- package/dest/block/validate_block_result.js +18 -17
- package/dest/checkpoint/checkpoint.d.ts +57 -15
- package/dest/checkpoint/checkpoint.d.ts.map +1 -1
- package/dest/checkpoint/checkpoint.js +61 -10
- package/dest/checkpoint/checkpoint_info.d.ts +38 -0
- package/dest/checkpoint/checkpoint_info.d.ts.map +1 -0
- package/dest/checkpoint/checkpoint_info.js +34 -0
- package/dest/checkpoint/index.d.ts +2 -1
- package/dest/checkpoint/index.d.ts.map +1 -1
- package/dest/checkpoint/index.js +1 -0
- package/dest/checkpoint/published_checkpoint.d.ts +42 -14
- package/dest/checkpoint/published_checkpoint.d.ts.map +1 -1
- package/dest/checkpoint/published_checkpoint.js +15 -4
- package/dest/config/node-rpc-config.js +1 -1
- package/dest/contract/artifact_hash.d.ts +2 -2
- package/dest/contract/artifact_hash.d.ts.map +1 -1
- package/dest/contract/artifact_hash.js +2 -2
- package/dest/contract/complete_address.d.ts +5 -2
- package/dest/contract/complete_address.d.ts.map +1 -1
- package/dest/contract/complete_address.js +1 -1
- package/dest/contract/contract_address.d.ts +2 -2
- package/dest/contract/contract_address.d.ts.map +1 -1
- package/dest/contract/contract_address.js +2 -2
- package/dest/contract/contract_class.d.ts +2 -2
- package/dest/contract/contract_class.d.ts.map +1 -1
- package/dest/contract/contract_class.js +1 -1
- package/dest/contract/contract_class_id.d.ts +2 -2
- package/dest/contract/contract_class_id.d.ts.map +1 -1
- package/dest/contract/contract_class_id.js +3 -3
- package/dest/contract/contract_deployment_data.d.ts +5 -5
- package/dest/contract/contract_instance.d.ts +2 -2
- package/dest/contract/contract_instance.d.ts.map +1 -1
- package/dest/contract/contract_instance.js +1 -1
- package/dest/contract/contract_instance_update.d.ts +2 -2
- package/dest/contract/contract_instance_update.d.ts.map +1 -1
- package/dest/contract/contract_instance_update.js +1 -1
- package/dest/contract/deployment_info.d.ts +2 -2
- package/dest/contract/deployment_info.d.ts.map +1 -1
- package/dest/contract/index.d.ts +1 -3
- package/dest/contract/index.d.ts.map +1 -1
- package/dest/contract/index.js +0 -2
- package/dest/contract/interfaces/contract_class.d.ts +19 -14
- package/dest/contract/interfaces/contract_class.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_class.js +35 -18
- package/dest/contract/interfaces/contract_data_source.d.ts +4 -3
- package/dest/contract/interfaces/contract_data_source.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_instance.d.ts +40 -31
- package/dest/contract/interfaces/contract_instance.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_instance.js +30 -5
- package/dest/contract/interfaces/contract_instance_update.d.ts +7 -8
- package/dest/contract/interfaces/contract_instance_update.d.ts.map +1 -1
- package/dest/contract/interfaces/contract_instance_update.js +5 -5
- package/dest/contract/partial_address.d.ts +2 -2
- package/dest/contract/partial_address.d.ts.map +1 -1
- package/dest/contract/private_function.d.ts +2 -2
- package/dest/contract/private_function.d.ts.map +1 -1
- package/dest/contract/private_function.js +3 -3
- package/dest/contract/private_function_membership_proof.js +2 -2
- package/dest/contract/utility_function_membership_proof.js +1 -1
- package/dest/database-version/version_manager.d.ts +4 -2
- package/dest/database-version/version_manager.d.ts.map +1 -1
- package/dest/database-version/version_manager.js +3 -1
- package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts +3 -3
- package/dest/delayed_public_mutable/delayed_public_mutable_values.d.ts.map +1 -1
- package/dest/delayed_public_mutable/delayed_public_mutable_values.js +9 -12
- package/dest/delayed_public_mutable/delayed_public_mutable_values_with_hash.d.ts +2 -2
- package/dest/delayed_public_mutable/delayed_public_mutable_values_with_hash.d.ts.map +1 -1
- package/dest/delayed_public_mutable/delayed_public_mutable_values_with_hash.js +1 -1
- package/dest/delayed_public_mutable/scheduled_value_change.d.ts +2 -2
- package/dest/delayed_public_mutable/scheduled_value_change.d.ts.map +1 -1
- package/dest/delayed_public_mutable/scheduled_value_change.js +1 -1
- package/dest/deserialization/index.d.ts +11 -0
- package/dest/deserialization/index.d.ts.map +1 -0
- package/dest/deserialization/index.js +10 -0
- package/dest/epoch-helpers/index.d.ts +1 -1
- package/dest/epoch-helpers/index.d.ts.map +1 -1
- package/dest/epoch-helpers/index.js +4 -4
- package/dest/errors/proving_error.d.ts +2 -2
- package/dest/errors/proving_error.d.ts.map +1 -1
- package/dest/errors/simulation_error.d.ts +2 -2
- package/dest/errors/simulation_error.d.ts.map +1 -1
- package/dest/fees/transaction_fee.d.ts +2 -2
- package/dest/fees/transaction_fee.d.ts.map +1 -1
- package/dest/gas/gas.d.ts +2 -2
- package/dest/gas/gas.d.ts.map +1 -1
- package/dest/gas/gas.js +4 -2
- package/dest/gas/gas_fees.d.ts +2 -2
- package/dest/gas/gas_fees.d.ts.map +1 -1
- package/dest/gas/gas_fees.js +3 -1
- package/dest/gas/gas_settings.d.ts +2 -2
- package/dest/gas/gas_settings.d.ts.map +1 -1
- package/dest/gas/gas_settings.js +1 -1
- package/dest/hash/hash.d.ts +2 -10
- package/dest/hash/hash.d.ts.map +1 -1
- package/dest/hash/hash.js +3 -14
- package/dest/hash/map_slot.d.ts +2 -2
- package/dest/hash/map_slot.d.ts.map +1 -1
- package/dest/hash/map_slot.js +1 -1
- package/dest/interfaces/allowed_element.d.ts +8 -9
- package/dest/interfaces/allowed_element.d.ts.map +1 -1
- package/dest/interfaces/allowed_element.js +3 -3
- package/dest/interfaces/api_limit.d.ts +3 -1
- package/dest/interfaces/api_limit.d.ts.map +1 -1
- package/dest/interfaces/api_limit.js +2 -0
- package/dest/interfaces/archiver.d.ts +12 -7
- package/dest/interfaces/archiver.d.ts.map +1 -1
- package/dest/interfaces/archiver.js +33 -20
- package/dest/interfaces/aztec-node-admin.d.ts +96 -41
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/interfaces/aztec-node-admin.js +3 -3
- package/dest/interfaces/aztec-node.d.ts +86 -70
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +35 -32
- package/dest/interfaces/block-builder.d.ts +18 -14
- package/dest/interfaces/block-builder.d.ts.map +1 -1
- package/dest/interfaces/block-builder.js +9 -1
- package/dest/interfaces/configs.d.ts +56 -27
- package/dest/interfaces/configs.d.ts.map +1 -1
- package/dest/interfaces/configs.js +12 -6
- package/dest/interfaces/epoch-prover.d.ts +5 -5
- package/dest/interfaces/epoch-prover.d.ts.map +1 -1
- package/dest/interfaces/get_logs_response.d.ts +23 -6
- package/dest/interfaces/get_logs_response.d.ts.map +1 -1
- package/dest/interfaces/get_logs_response.js +5 -4
- package/dest/interfaces/l2_logs_source.d.ts +21 -15
- package/dest/interfaces/l2_logs_source.d.ts.map +1 -1
- package/dest/interfaces/merkle_tree_operations.d.ts +5 -4
- package/dest/interfaces/merkle_tree_operations.d.ts.map +1 -1
- package/dest/interfaces/p2p.d.ts +7 -9
- package/dest/interfaces/p2p.d.ts.map +1 -1
- package/dest/interfaces/p2p.js +3 -4
- package/dest/interfaces/prover-client.d.ts +14 -3
- package/dest/interfaces/prover-client.d.ts.map +1 -1
- package/dest/interfaces/prover-client.js +11 -4
- package/dest/interfaces/proving-job.d.ts +192 -188
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/proving-job.js +1 -7
- package/dest/interfaces/public_state_source.d.ts +2 -2
- package/dest/interfaces/public_state_source.d.ts.map +1 -1
- package/dest/interfaces/server_circuit_prover.d.ts +4 -3
- package/dest/interfaces/server_circuit_prover.d.ts.map +1 -1
- package/dest/interfaces/slasher.d.ts +1 -1
- package/dest/interfaces/slasher.d.ts.map +1 -1
- package/dest/interfaces/slasher.js +3 -3
- package/dest/interfaces/validator.d.ts +115 -26
- package/dest/interfaces/validator.d.ts.map +1 -1
- package/dest/interfaces/validator.js +9 -7
- package/dest/interfaces/world_state.d.ts +23 -31
- package/dest/interfaces/world_state.d.ts.map +1 -1
- package/dest/interfaces/world_state.js +4 -3
- package/dest/kernel/claimed_length_array.d.ts +2 -2
- package/dest/kernel/claimed_length_array.d.ts.map +1 -1
- package/dest/kernel/claimed_length_array.js +3 -1
- package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts +6 -5
- package/dest/kernel/hints/build_note_hash_read_request_hints.d.ts.map +1 -1
- package/dest/kernel/hints/build_note_hash_read_request_hints.js +19 -10
- package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts +4 -4
- package/dest/kernel/hints/build_nullifier_read_request_hints.d.ts.map +1 -1
- package/dest/kernel/hints/build_nullifier_read_request_hints.js +16 -8
- package/dest/kernel/hints/find_private_kernel_reset_dimensions.d.ts +1 -1
- package/dest/kernel/hints/find_private_kernel_reset_dimensions.d.ts.map +1 -1
- package/dest/kernel/hints/find_private_kernel_reset_dimensions.js +1 -3
- package/dest/kernel/hints/key_validation_hint.d.ts +3 -2
- package/dest/kernel/hints/key_validation_hint.d.ts.map +1 -1
- package/dest/kernel/hints/key_validation_hint.js +1 -1
- package/dest/kernel/hints/key_validation_request.d.ts +5 -3
- package/dest/kernel/hints/key_validation_request.d.ts.map +1 -1
- package/dest/kernel/hints/key_validation_request.js +2 -1
- package/dest/kernel/hints/key_validation_request_and_generator.d.ts +7 -2
- package/dest/kernel/hints/key_validation_request_and_generator.d.ts.map +1 -1
- package/dest/kernel/hints/key_validation_request_and_generator.js +1 -1
- package/dest/kernel/hints/note_hash_read_request_hints.d.ts +2 -2
- package/dest/kernel/hints/note_hash_read_request_hints.d.ts.map +1 -1
- package/dest/kernel/hints/note_hash_read_request_hints.js +1 -1
- package/dest/kernel/hints/private_kernel_reset_hints.d.ts +13 -1
- package/dest/kernel/hints/private_kernel_reset_hints.d.ts.map +1 -1
- package/dest/kernel/hints/read_request.d.ts +8 -2
- package/dest/kernel/hints/read_request.d.ts.map +1 -1
- package/dest/kernel/hints/read_request.js +1 -1
- package/dest/kernel/hints/read_request_hints.d.ts +7 -1
- package/dest/kernel/hints/read_request_hints.d.ts.map +1 -1
- package/dest/kernel/hints/scoped_key_validation_request_and_generator.d.ts +2 -2
- package/dest/kernel/hints/scoped_key_validation_request_and_generator.d.ts.map +1 -1
- package/dest/kernel/hints/scoped_value_cache.d.ts +2 -2
- package/dest/kernel/hints/scoped_value_cache.d.ts.map +1 -1
- package/dest/kernel/hints/transient_data_squashing_hint.d.ts +2 -2
- package/dest/kernel/hints/transient_data_squashing_hint.d.ts.map +1 -1
- package/dest/kernel/hints/transient_data_squashing_hint.js +4 -2
- package/dest/kernel/hints/tree_leaf_read_request.d.ts +2 -2
- package/dest/kernel/hints/tree_leaf_read_request.d.ts.map +1 -1
- package/dest/kernel/hints/tree_leaf_read_request.js +1 -1
- package/dest/kernel/log_hash.d.ts +2 -2
- package/dest/kernel/log_hash.d.ts.map +1 -1
- package/dest/kernel/log_hash.js +4 -2
- package/dest/kernel/note_hash.d.ts +2 -2
- package/dest/kernel/note_hash.d.ts.map +1 -1
- package/dest/kernel/note_hash.js +1 -1
- package/dest/kernel/nullifier.d.ts +2 -2
- package/dest/kernel/nullifier.d.ts.map +1 -1
- package/dest/kernel/nullifier.js +1 -1
- package/dest/kernel/padded_side_effects.d.ts +2 -2
- package/dest/kernel/padded_side_effects.d.ts.map +1 -1
- package/dest/kernel/padded_side_effects.js +1 -1
- package/dest/kernel/private_accumulated_data.d.ts +23 -1
- package/dest/kernel/private_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_call_data.d.ts +26 -2
- package/dest/kernel/private_call_data.d.ts.map +1 -1
- package/dest/kernel/private_call_data.js +1 -1
- package/dest/kernel/private_call_request.d.ts +17 -2
- package/dest/kernel/private_call_request.d.ts.map +1 -1
- package/dest/kernel/private_call_request.js +1 -1
- package/dest/kernel/private_circuit_public_inputs.d.ts +121 -48
- package/dest/kernel/private_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_circuit_public_inputs.js +60 -60
- package/dest/kernel/private_context_inputs.d.ts +2 -2
- package/dest/kernel/private_context_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_circuit_public_inputs.d.ts +32 -2
- package/dest/kernel/private_kernel_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_circuit_public_inputs.js +1 -1
- package/dest/kernel/private_kernel_data.d.ts +7 -1
- package/dest/kernel/private_kernel_data.d.ts.map +1 -1
- package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts +23 -2
- package/dest/kernel/private_kernel_init_circuit_private_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_init_circuit_private_inputs.js +1 -1
- package/dest/kernel/private_kernel_inner_circuit_private_inputs.d.ts +7 -1
- package/dest/kernel/private_kernel_inner_circuit_private_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts +4 -1
- package/dest/kernel/private_kernel_reset_circuit_private_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts +10 -1
- package/dest/kernel/private_kernel_tail_circuit_private_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts +24 -2
- package/dest/kernel/private_kernel_tail_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_kernel_tail_circuit_public_inputs.js +1 -1
- package/dest/kernel/private_log_data.d.ts +2 -2
- package/dest/kernel/private_log_data.d.ts.map +1 -1
- package/dest/kernel/private_log_data.js +5 -2
- package/dest/kernel/private_to_avm_accumulated_data.d.ts +4 -4
- package/dest/kernel/private_to_avm_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_to_avm_accumulated_data.js +6 -3
- package/dest/kernel/private_to_public_accumulated_data.d.ts +2 -2
- package/dest/kernel/private_to_public_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_to_public_accumulated_data.js +4 -2
- package/dest/kernel/private_to_public_accumulated_data_builder.d.ts +2 -2
- package/dest/kernel/private_to_public_accumulated_data_builder.d.ts.map +1 -1
- package/dest/kernel/private_to_public_accumulated_data_builder.js +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_public_kernel_circuit_public_inputs.js +1 -1
- package/dest/kernel/private_to_rollup_accumulated_data.d.ts +18 -2
- package/dest/kernel/private_to_rollup_accumulated_data.d.ts.map +1 -1
- package/dest/kernel/private_to_rollup_accumulated_data.js +4 -2
- package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts +17 -2
- package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.d.ts.map +1 -1
- package/dest/kernel/private_to_rollup_kernel_circuit_public_inputs.js +1 -1
- package/dest/kernel/private_validation_requests.d.ts +10 -1
- package/dest/kernel/private_validation_requests.d.ts.map +1 -1
- package/dest/kernel/private_validation_requests.js +3 -1
- package/dest/kernel/public_call_request.d.ts +23 -2
- package/dest/kernel/public_call_request.d.ts.map +1 -1
- package/dest/kernel/public_call_request.js +6 -3
- package/dest/kernel/utils/optional_number.d.ts +8 -2
- package/dest/kernel/utils/optional_number.d.ts.map +1 -1
- package/dest/keys/derivation.d.ts +4 -3
- package/dest/keys/derivation.d.ts.map +1 -1
- package/dest/keys/derivation.js +5 -2
- package/dest/keys/public_key.d.ts +2 -2
- package/dest/keys/public_key.d.ts.map +1 -1
- package/dest/keys/public_keys.d.ts +7 -2
- package/dest/keys/public_keys.d.ts.map +1 -1
- package/dest/keys/public_keys.js +3 -2
- package/dest/l1-contracts/slash_factory.d.ts +3 -2
- package/dest/l1-contracts/slash_factory.d.ts.map +1 -1
- package/dest/l1-contracts/slash_factory.js +1 -1
- package/dest/logs/contract_class_log.d.ts +2 -2
- package/dest/logs/contract_class_log.d.ts.map +1 -1
- package/dest/logs/contract_class_log.js +5 -3
- package/dest/logs/debug_log.d.ts +2 -2
- package/dest/logs/debug_log.d.ts.map +1 -1
- package/dest/logs/debug_log.js +1 -1
- package/dest/logs/directional_app_tagging_secret.d.ts +2 -2
- package/dest/logs/directional_app_tagging_secret.d.ts.map +1 -1
- package/dest/logs/directional_app_tagging_secret.js +3 -2
- package/dest/logs/extended_contract_class_log.d.ts +3 -1
- package/dest/logs/extended_contract_class_log.d.ts.map +1 -1
- package/dest/logs/extended_public_log.d.ts +14 -4
- package/dest/logs/extended_public_log.d.ts.map +1 -1
- package/dest/logs/index.d.ts +3 -2
- package/dest/logs/index.d.ts.map +1 -1
- package/dest/logs/index.js +2 -1
- package/dest/logs/log_id.d.ts +20 -5
- package/dest/logs/log_id.d.ts.map +1 -1
- package/dest/logs/log_id.js +19 -11
- package/dest/logs/message_context.d.ts +2 -2
- package/dest/logs/message_context.d.ts.map +1 -1
- package/dest/logs/message_context.js +1 -1
- package/dest/logs/pending_tagged_log.d.ts +2 -2
- package/dest/logs/pending_tagged_log.d.ts.map +1 -1
- package/dest/logs/pending_tagged_log.js +1 -1
- package/dest/logs/private_log.d.ts +2 -2
- package/dest/logs/private_log.d.ts.map +1 -1
- package/dest/logs/private_log.js +6 -3
- package/dest/logs/public_log.d.ts +3 -2
- package/dest/logs/public_log.d.ts.map +1 -1
- package/dest/logs/public_log.js +7 -2
- package/dest/logs/shared_secret_derivation.d.ts +2 -2
- package/dest/logs/shared_secret_derivation.d.ts.map +1 -1
- package/dest/logs/shared_secret_derivation.js +1 -1
- package/dest/logs/siloed_tag.d.ts +23 -0
- package/dest/logs/siloed_tag.d.ts.map +1 -0
- package/dest/logs/siloed_tag.js +30 -0
- package/dest/logs/tag.d.ts +21 -0
- package/dest/logs/tag.d.ts.map +1 -0
- package/dest/logs/tag.js +30 -0
- package/dest/logs/tx_scoped_l2_log.d.ts +32 -38
- package/dest/logs/tx_scoped_l2_log.d.ts.map +1 -1
- package/dest/logs/tx_scoped_l2_log.js +40 -45
- package/dest/messaging/in_hash.d.ts +5 -3
- package/dest/messaging/in_hash.d.ts.map +1 -1
- package/dest/messaging/in_hash.js +4 -2
- package/dest/messaging/inbox_leaf.d.ts +10 -7
- package/dest/messaging/inbox_leaf.d.ts.map +1 -1
- package/dest/messaging/inbox_leaf.js +10 -9
- package/dest/messaging/l1_actor.d.ts +8 -2
- package/dest/messaging/l1_actor.d.ts.map +1 -1
- package/dest/messaging/l1_actor.js +2 -2
- package/dest/messaging/l1_to_l2_message.d.ts +7 -2
- package/dest/messaging/l1_to_l2_message.d.ts.map +1 -1
- package/dest/messaging/l1_to_l2_message.js +2 -2
- package/dest/messaging/l1_to_l2_message_source.d.ts +6 -10
- package/dest/messaging/l1_to_l2_message_source.d.ts.map +1 -1
- package/dest/messaging/l2_actor.d.ts +8 -2
- package/dest/messaging/l2_actor.d.ts.map +1 -1
- package/dest/messaging/l2_actor.js +2 -2
- package/dest/messaging/l2_to_l1_membership.d.ts +89 -6
- package/dest/messaging/l2_to_l1_membership.d.ts.map +1 -1
- package/dest/messaging/l2_to_l1_membership.js +161 -43
- package/dest/messaging/l2_to_l1_message.d.ts +3 -2
- package/dest/messaging/l2_to_l1_message.d.ts.map +1 -1
- package/dest/messaging/l2_to_l1_message.js +4 -1
- package/dest/messaging/out_hash.d.ts +42 -4
- package/dest/messaging/out_hash.d.ts.map +1 -1
- package/dest/messaging/out_hash.js +55 -20
- package/dest/note/note.d.ts +2 -2
- package/dest/note/note.d.ts.map +1 -1
- package/dest/note/note.js +5 -2
- package/dest/note/note_dao.d.ts +48 -9
- package/dest/note/note_dao.d.ts.map +1 -1
- package/dest/note/note_dao.js +29 -15
- package/dest/note/notes_filter.d.ts +4 -2
- package/dest/note/notes_filter.d.ts.map +1 -1
- package/dest/note/notes_filter.js +1 -0
- package/dest/p2p/attestation_utils.d.ts +3 -3
- package/dest/p2p/attestation_utils.d.ts.map +1 -1
- package/dest/p2p/attestation_utils.js +1 -1
- package/dest/p2p/block_proposal.d.ts +94 -22
- package/dest/p2p/block_proposal.d.ts.map +1 -1
- package/dest/p2p/block_proposal.js +142 -40
- package/dest/p2p/checkpoint_attestation.d.ts +81 -0
- package/dest/p2p/checkpoint_attestation.d.ts.map +1 -0
- package/dest/p2p/{block_attestation.js → checkpoint_attestation.js} +24 -20
- package/dest/p2p/checkpoint_proposal.d.ts +160 -0
- package/dest/p2p/checkpoint_proposal.d.ts.map +1 -0
- package/dest/p2p/checkpoint_proposal.js +229 -0
- package/dest/p2p/consensus_payload.d.ts +10 -10
- package/dest/p2p/consensus_payload.d.ts.map +1 -1
- package/dest/p2p/consensus_payload.js +4 -6
- package/dest/p2p/constants.d.ts +3 -0
- package/dest/p2p/constants.d.ts.map +1 -0
- package/dest/p2p/constants.js +2 -0
- package/dest/p2p/gossipable.d.ts +4 -3
- package/dest/p2p/gossipable.d.ts.map +1 -1
- package/dest/p2p/gossipable.js +16 -5
- package/dest/p2p/index.d.ts +5 -2
- package/dest/p2p/index.d.ts.map +1 -1
- package/dest/p2p/index.js +4 -1
- package/dest/p2p/message_validator.d.ts +18 -3
- package/dest/p2p/message_validator.d.ts.map +1 -1
- package/dest/p2p/message_validator.js +2 -1
- package/dest/p2p/signature_utils.d.ts +5 -3
- package/dest/p2p/signature_utils.d.ts.map +1 -1
- package/dest/p2p/signature_utils.js +5 -2
- package/dest/p2p/signed_txs.d.ts +42 -0
- package/dest/p2p/signed_txs.d.ts.map +1 -0
- package/dest/p2p/signed_txs.js +75 -0
- package/dest/p2p/topic_type.d.ts +3 -2
- package/dest/p2p/topic_type.d.ts.map +1 -1
- package/dest/p2p/topic_type.js +10 -3
- package/dest/parity/parity_base_private_inputs.d.ts +4 -2
- package/dest/parity/parity_base_private_inputs.d.ts.map +1 -1
- package/dest/parity/parity_base_private_inputs.js +1 -1
- package/dest/parity/parity_public_inputs.d.ts +5 -2
- package/dest/parity/parity_public_inputs.d.ts.map +1 -1
- package/dest/parity/parity_public_inputs.js +1 -1
- package/dest/parity/parity_root_private_inputs.d.ts +2 -1
- package/dest/parity/parity_root_private_inputs.d.ts.map +1 -1
- package/dest/proofs/chonk_proof.d.ts +2 -2
- package/dest/proofs/chonk_proof.d.ts.map +1 -1
- package/dest/proofs/chonk_proof.js +11 -6
- package/dest/proofs/proof.d.ts +5 -2
- package/dest/proofs/proof.d.ts.map +1 -1
- package/dest/proofs/proof.js +1 -1
- package/dest/proofs/proof_data.d.ts +13 -1
- package/dest/proofs/proof_data.d.ts.map +1 -1
- package/dest/proofs/proof_data.js +17 -0
- package/dest/proofs/recursive_proof.d.ts +11 -2
- package/dest/proofs/recursive_proof.d.ts.map +1 -1
- package/dest/proofs/recursive_proof.js +1 -1
- package/dest/rollup/avm_proof_data.d.ts +3 -5
- package/dest/rollup/avm_proof_data.d.ts.map +1 -1
- package/dest/rollup/avm_proof_data.js +1 -9
- package/dest/rollup/base_rollup_hints.d.ts +35 -2
- package/dest/rollup/base_rollup_hints.d.ts.map +1 -1
- package/dest/rollup/base_rollup_hints.js +1 -1
- package/dest/rollup/block_constant_data.d.ts +13 -2
- package/dest/rollup/block_constant_data.d.ts.map +1 -1
- package/dest/rollup/block_constant_data.js +1 -1
- package/dest/rollup/block_headers_hash.d.ts +2 -2
- package/dest/rollup/block_headers_hash.d.ts.map +1 -1
- package/dest/rollup/block_headers_hash.js +2 -2
- package/dest/rollup/block_merge_rollup_private_inputs.d.ts +4 -1
- package/dest/rollup/block_merge_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/block_rollup_public_inputs.d.ts +48 -12
- package/dest/rollup/block_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/block_rollup_public_inputs.js +9 -13
- package/dest/rollup/block_root_rollup_private_inputs.d.ts +65 -2
- package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/block_root_rollup_private_inputs.js +1 -1
- package/dest/rollup/checkpoint_constant_data.d.ts +12 -2
- package/dest/rollup/checkpoint_constant_data.d.ts.map +1 -1
- package/dest/rollup/checkpoint_constant_data.js +5 -2
- package/dest/rollup/checkpoint_header.d.ts +47 -13
- package/dest/rollup/checkpoint_header.d.ts.map +1 -1
- package/dest/rollup/checkpoint_header.js +55 -22
- package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts +4 -1
- package/dest/rollup/checkpoint_merge_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +42 -2
- package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_rollup_public_inputs.js +11 -3
- package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +46 -4
- package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_root_rollup_private_inputs.js +15 -3
- package/dest/rollup/epoch_constant_data.d.ts +17 -2
- package/dest/rollup/epoch_constant_data.d.ts.map +1 -1
- package/dest/rollup/epoch_constant_data.js +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_private_inputs.js +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_chonk_verifier_public_inputs.js +1 -1
- package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts +1 -1
- package/dest/rollup/public_tx_base_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/public_tx_base_rollup_private_inputs.js +2 -2
- package/dest/rollup/root_rollup_private_inputs.d.ts +6 -1
- package/dest/rollup/root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/root_rollup_public_inputs.d.ts +19 -4
- package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/root_rollup_public_inputs.js +10 -4
- package/dest/rollup/tree_snapshot_diff_hints.d.ts +25 -2
- package/dest/rollup/tree_snapshot_diff_hints.d.ts.map +1 -1
- package/dest/rollup/tree_snapshot_diff_hints.js +1 -1
- package/dest/rollup/tx_merge_rollup_private_inputs.d.ts +4 -1
- package/dest/rollup/tx_merge_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/tx_rollup_public_inputs.d.ts +30 -2
- package/dest/rollup/tx_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/tx_rollup_public_inputs.js +1 -1
- package/dest/schemas/schemas.d.ts +7 -4
- package/dest/schemas/schemas.d.ts.map +1 -1
- package/dest/schemas/schemas.js +2 -1
- package/dest/slashing/types.d.ts +4 -5
- package/dest/slashing/types.d.ts.map +1 -1
- package/dest/slashing/types.js +5 -5
- package/dest/snapshots/types.d.ts +1 -1
- package/dest/snapshots/types.d.ts.map +1 -1
- package/dest/snapshots/types.js +5 -5
- package/dest/stats/stats.d.ts +10 -6
- package/dest/stats/stats.d.ts.map +1 -1
- package/dest/tests/factories.d.ts +42 -12
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +99 -32
- package/dest/tests/jest.js +1 -1
- package/dest/tests/mocks.d.ts +82 -18
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +178 -54
- package/dest/trees/append_only_tree_snapshot.d.ts +14 -2
- package/dest/trees/append_only_tree_snapshot.d.ts.map +1 -1
- package/dest/trees/append_only_tree_snapshot.js +4 -2
- package/dest/trees/database_public_state_source.d.ts +2 -2
- package/dest/trees/database_public_state_source.d.ts.map +1 -1
- package/dest/trees/database_public_state_source.js +1 -1
- package/dest/trees/nullifier_leaf.d.ts +14 -2
- package/dest/trees/nullifier_leaf.d.ts.map +1 -1
- package/dest/trees/nullifier_leaf.js +1 -1
- package/dest/trees/nullifier_membership_witness.d.ts +11 -2
- package/dest/trees/nullifier_membership_witness.d.ts.map +1 -1
- package/dest/trees/nullifier_membership_witness.js +1 -1
- package/dest/trees/public_data_leaf.d.ts +17 -2
- package/dest/trees/public_data_leaf.d.ts.map +1 -1
- package/dest/trees/public_data_leaf.js +1 -1
- package/dest/trees/public_data_witness.d.ts +12 -2
- package/dest/trees/public_data_witness.d.ts.map +1 -1
- package/dest/trees/public_data_witness.js +1 -1
- package/dest/tx/block_header.d.ts +25 -12
- package/dest/tx/block_header.d.ts.map +1 -1
- package/dest/tx/block_header.js +15 -4
- package/dest/tx/call_context.d.ts +14 -2
- package/dest/tx/call_context.d.ts.map +1 -1
- package/dest/tx/call_context.js +3 -1
- package/dest/tx/capsule.d.ts +5 -2
- package/dest/tx/capsule.d.ts.map +1 -1
- package/dest/tx/capsule.js +1 -1
- package/dest/tx/execution_payload.d.ts +9 -1
- package/dest/tx/execution_payload.d.ts.map +1 -1
- package/dest/tx/function_data.d.ts +5 -3
- package/dest/tx/function_data.d.ts.map +1 -1
- package/dest/tx/function_data.js +1 -1
- package/dest/tx/global_variable_builder.d.ts +5 -3
- package/dest/tx/global_variable_builder.d.ts.map +1 -1
- package/dest/tx/global_variables.d.ts +27 -12
- package/dest/tx/global_variables.d.ts.map +1 -1
- package/dest/tx/global_variables.js +11 -9
- package/dest/tx/hashed_values.d.ts +8 -2
- package/dest/tx/hashed_values.d.ts.map +1 -1
- package/dest/tx/hashed_values.js +1 -1
- package/dest/tx/in_tx.d.ts +26 -0
- package/dest/tx/in_tx.d.ts.map +1 -0
- package/dest/tx/in_tx.js +14 -0
- package/dest/tx/index.d.ts +2 -2
- package/dest/tx/index.d.ts.map +1 -1
- package/dest/tx/index.js +1 -1
- package/dest/tx/indexed_tx_effect.d.ts +12 -8
- package/dest/tx/indexed_tx_effect.d.ts.map +1 -1
- package/dest/tx/indexed_tx_effect.js +5 -4
- package/dest/tx/offchain_effect.d.ts +2 -2
- package/dest/tx/offchain_effect.d.ts.map +1 -1
- package/dest/tx/offchain_effect.js +1 -1
- package/dest/tx/partial_state_reference.d.ts +5 -2
- package/dest/tx/partial_state_reference.d.ts.map +1 -1
- package/dest/tx/private_execution_result.d.ts +27 -10
- package/dest/tx/private_execution_result.d.ts.map +1 -1
- package/dest/tx/private_execution_result.js +6 -23
- package/dest/tx/private_tx_constant_data.d.ts +17 -2
- package/dest/tx/private_tx_constant_data.d.ts.map +1 -1
- package/dest/tx/private_tx_constant_data.js +1 -1
- package/dest/tx/processed_tx.d.ts +5 -4
- package/dest/tx/processed_tx.d.ts.map +1 -1
- package/dest/tx/processed_tx.js +8 -7
- package/dest/tx/profiling.d.ts +150 -27
- package/dest/tx/profiling.d.ts.map +1 -1
- package/dest/tx/profiling.js +45 -8
- package/dest/tx/protocol_contracts.d.ts +3 -3
- package/dest/tx/protocol_contracts.d.ts.map +1 -1
- package/dest/tx/protocol_contracts.js +1 -1
- package/dest/tx/public_call_request_with_calldata.d.ts +8 -2
- package/dest/tx/public_call_request_with_calldata.d.ts.map +1 -1
- package/dest/tx/public_call_request_with_calldata.js +4 -2
- package/dest/tx/public_simulation_output.d.ts +2 -2
- package/dest/tx/public_simulation_output.d.ts.map +1 -1
- package/dest/tx/public_simulation_output.js +1 -1
- package/dest/tx/simulated_tx.d.ts +1031 -7
- package/dest/tx/simulated_tx.d.ts.map +1 -1
- package/dest/tx/state_reference.d.ts +4 -2
- package/dest/tx/state_reference.d.ts.map +1 -1
- package/dest/tx/state_reference.js +3 -1
- package/dest/tx/tree_snapshots.d.ts +2 -2
- package/dest/tx/tree_snapshots.d.ts.map +1 -1
- package/dest/tx/tree_snapshots.js +3 -1
- package/dest/tx/tx.d.ts +35 -5
- package/dest/tx/tx.d.ts.map +1 -1
- package/dest/tx/tx.js +20 -7
- package/dest/tx/tx_constant_data.d.ts +2 -2
- package/dest/tx/tx_constant_data.d.ts.map +1 -1
- package/dest/tx/tx_constant_data.js +1 -1
- package/dest/tx/tx_context.d.ts +3 -2
- package/dest/tx/tx_context.d.ts.map +1 -1
- package/dest/tx/tx_context.js +1 -1
- package/dest/tx/tx_effect.d.ts +33 -7
- package/dest/tx/tx_effect.d.ts.map +1 -1
- package/dest/tx/tx_effect.js +8 -11
- package/dest/tx/tx_execution_request.d.ts +31 -2
- package/dest/tx/tx_execution_request.d.ts.map +1 -1
- package/dest/tx/tx_execution_request.js +7 -3
- package/dest/tx/tx_hash.d.ts +3 -2
- package/dest/tx/tx_hash.d.ts.map +1 -1
- package/dest/tx/tx_hash.js +1 -1
- package/dest/tx/tx_receipt.d.ts +47 -12
- package/dest/tx/tx_receipt.d.ts.map +1 -1
- package/dest/tx/tx_receipt.js +46 -14
- package/dest/tx/tx_request.d.ts +7 -2
- package/dest/tx/tx_request.d.ts.map +1 -1
- package/dest/tx/tx_request.js +2 -2
- package/dest/tx/validator/error_texts.d.ts +2 -1
- package/dest/tx/validator/error_texts.d.ts.map +1 -1
- package/dest/tx/validator/error_texts.js +2 -0
- package/dest/tx/validator/tx_validator.d.ts +1 -4
- package/dest/tx/validator/tx_validator.d.ts.map +1 -1
- package/dest/tx/validator/tx_validator.js +4 -4
- package/dest/types/shared.d.ts +4 -1
- package/dest/types/shared.d.ts.map +1 -1
- package/dest/update-checker/update-checker.d.ts +2 -2
- package/dest/update-checker/update-checker.d.ts.map +1 -1
- package/dest/update-checker/update-checker.js +1 -1
- package/dest/validators/errors.d.ts +2 -2
- package/dest/validators/errors.d.ts.map +1 -1
- package/dest/validators/schemas.d.ts +9 -9
- package/dest/validators/schemas.d.ts.map +1 -1
- package/dest/validators/schemas.js +13 -13
- package/dest/versioning/versioning.d.ts +2 -2
- package/dest/versioning/versioning.d.ts.map +1 -1
- package/dest/vks/verification_key.d.ts +23 -2
- package/dest/vks/verification_key.d.ts.map +1 -1
- package/dest/vks/verification_key.js +1 -1
- package/dest/vks/vk_data.d.ts +8 -2
- package/dest/vks/vk_data.d.ts.map +1 -1
- package/dest/vks/vk_data.js +1 -1
- package/dest/zkpassport/index.d.ts +4 -5
- package/dest/zkpassport/index.d.ts.map +1 -1
- package/dest/zkpassport/index.js +11 -11
- package/package.json +18 -11
- package/src/abi/abi.ts +40 -34
- package/src/abi/authorization_selector.ts +3 -2
- package/src/abi/buffer.ts +1 -1
- package/src/abi/contract_artifact.ts +10 -10
- package/src/abi/decoder.ts +1 -1
- package/src/abi/encoder.ts +1 -1
- package/src/abi/event_selector.ts +3 -2
- package/src/abi/function_call.ts +1 -1
- package/src/abi/function_selector.ts +11 -2
- package/src/abi/note_selector.ts +2 -2
- package/src/abi/selector.ts +1 -1
- package/src/abi/utils.ts +17 -0
- package/src/auth_witness/auth_witness.ts +2 -2
- package/src/avm/avm.ts +338 -20
- package/src/avm/avm_accumulated_data.ts +1 -1
- package/src/avm/avm_circuit_public_inputs.ts +1 -1
- package/src/avm/contract_storage_read.ts +1 -1
- package/src/avm/contract_storage_update_request.ts +1 -1
- package/src/avm/message_pack.ts +2 -1
- package/src/avm/public_call_stack_item_compressed.ts +1 -1
- package/src/avm/public_data_read.ts +1 -1
- package/src/avm/public_data_update_request.ts +1 -1
- package/src/avm/public_data_write.ts +1 -1
- package/src/avm/public_inner_call_request.ts +1 -1
- package/src/avm/revert_code.ts +1 -1
- package/src/aztec-address/index.ts +2 -1
- package/src/block/attestation_info.ts +10 -7
- package/src/block/block_hash.ts +28 -2
- package/src/block/block_parameter.ts +10 -0
- package/src/block/body.ts +2 -1
- package/src/block/checkpointed_l2_block.ts +70 -0
- package/src/block/in_block.ts +25 -12
- package/src/block/index.ts +2 -4
- package/src/block/l2_block.ts +106 -140
- package/src/block/l2_block_info.ts +11 -10
- package/src/block/l2_block_source.ts +194 -70
- package/src/block/l2_block_stream/index.ts +1 -0
- package/src/block/l2_block_stream/interfaces.ts +15 -4
- package/src/block/l2_block_stream/l2_block_stream.ts +142 -37
- package/src/block/l2_block_stream/l2_tips_memory_store.ts +63 -54
- package/src/block/l2_block_stream/l2_tips_store_base.ts +226 -0
- package/src/block/proposal/attestations_and_signers.ts +1 -1
- package/src/block/proposal/committee_attestation.ts +1 -1
- package/src/block/test/l2_tips_store_test_suite.ts +486 -36
- package/src/block/validate_block_result.ts +40 -35
- package/src/checkpoint/checkpoint.ts +88 -18
- package/src/checkpoint/checkpoint_info.ts +52 -0
- package/src/checkpoint/index.ts +1 -0
- package/src/checkpoint/published_checkpoint.ts +23 -8
- package/src/config/node-rpc-config.ts +1 -1
- package/src/contract/artifact_hash.ts +2 -2
- package/src/contract/complete_address.ts +1 -1
- package/src/contract/contract_address.ts +2 -2
- package/src/contract/contract_class.ts +2 -2
- package/src/contract/contract_class_id.ts +3 -3
- package/src/contract/contract_instance.ts +1 -1
- package/src/contract/contract_instance_update.ts +1 -1
- package/src/contract/deployment_info.ts +1 -1
- package/src/contract/index.ts +0 -2
- package/src/contract/interfaces/contract_class.ts +78 -47
- package/src/contract/interfaces/contract_data_source.ts +3 -2
- package/src/contract/interfaces/contract_instance.ts +48 -16
- package/src/contract/interfaces/contract_instance_update.ts +12 -10
- package/src/contract/partial_address.ts +1 -1
- package/src/contract/private_function.ts +3 -3
- package/src/contract/private_function_membership_proof.ts +2 -2
- package/src/contract/utility_function_membership_proof.ts +1 -1
- package/src/delayed_public_mutable/delayed_public_mutable_values.ts +11 -12
- package/src/delayed_public_mutable/delayed_public_mutable_values_with_hash.ts +1 -1
- package/src/delayed_public_mutable/scheduled_value_change.ts +1 -1
- package/src/deserialization/index.ts +21 -0
- package/src/epoch-helpers/index.ts +12 -10
- package/src/errors/simulation_error.ts +1 -1
- package/src/fees/transaction_fee.ts +1 -1
- package/src/gas/gas.ts +1 -1
- package/src/gas/gas_fees.ts +1 -1
- package/src/gas/gas_settings.ts +1 -1
- package/src/hash/hash.ts +3 -13
- package/src/hash/map_slot.ts +2 -2
- package/src/interfaces/allowed_element.ts +10 -8
- package/src/interfaces/api_limit.ts +2 -0
- package/src/interfaces/archiver.ts +47 -28
- package/src/interfaces/aztec-node-admin.ts +7 -4
- package/src/interfaces/aztec-node.ts +155 -119
- package/src/interfaces/block-builder.ts +40 -22
- package/src/interfaces/configs.ts +67 -33
- package/src/interfaces/epoch-prover.ts +4 -4
- package/src/interfaces/get_logs_response.ts +13 -9
- package/src/interfaces/l2_logs_source.ts +24 -14
- package/src/interfaces/merkle_tree_operations.ts +7 -3
- package/src/interfaces/p2p.ts +8 -12
- package/src/interfaces/prover-client.ts +28 -10
- package/src/interfaces/proving-job.ts +2 -11
- package/src/interfaces/public_state_source.ts +1 -1
- package/src/interfaces/server_circuit_prover.ts +3 -3
- package/src/interfaces/slasher.ts +24 -22
- package/src/interfaces/validator.ts +84 -31
- package/src/interfaces/world_state.ts +26 -18
- package/src/kernel/claimed_length_array.ts +1 -1
- package/src/kernel/hints/build_note_hash_read_request_hints.ts +20 -12
- package/src/kernel/hints/build_nullifier_read_request_hints.ts +18 -15
- package/src/kernel/hints/find_private_kernel_reset_dimensions.ts +2 -4
- package/src/kernel/hints/key_validation_hint.ts +1 -1
- package/src/kernel/hints/key_validation_request.ts +2 -1
- package/src/kernel/hints/key_validation_request_and_generator.ts +1 -1
- package/src/kernel/hints/note_hash_read_request_hints.ts +1 -1
- package/src/kernel/hints/read_request.ts +1 -1
- package/src/kernel/hints/scoped_key_validation_request_and_generator.ts +1 -1
- package/src/kernel/hints/scoped_value_cache.ts +1 -1
- package/src/kernel/hints/transient_data_squashing_hint.ts +1 -1
- package/src/kernel/hints/tree_leaf_read_request.ts +1 -1
- package/src/kernel/log_hash.ts +1 -1
- package/src/kernel/note_hash.ts +1 -1
- package/src/kernel/nullifier.ts +1 -1
- package/src/kernel/padded_side_effects.ts +1 -1
- package/src/kernel/private_call_data.ts +1 -1
- package/src/kernel/private_call_request.ts +1 -1
- package/src/kernel/private_circuit_public_inputs.ts +86 -86
- package/src/kernel/private_context_inputs.ts +1 -1
- package/src/kernel/private_kernel_circuit_public_inputs.ts +1 -1
- package/src/kernel/private_kernel_init_circuit_private_inputs.ts +1 -1
- package/src/kernel/private_kernel_tail_circuit_public_inputs.ts +1 -1
- package/src/kernel/private_log_data.ts +1 -1
- package/src/kernel/private_to_avm_accumulated_data.ts +1 -1
- package/src/kernel/private_to_public_accumulated_data.ts +1 -1
- package/src/kernel/private_to_public_accumulated_data_builder.ts +1 -1
- package/src/kernel/private_to_public_kernel_circuit_public_inputs.ts +2 -2
- package/src/kernel/private_to_rollup_accumulated_data.ts +1 -1
- package/src/kernel/private_to_rollup_kernel_circuit_public_inputs.ts +2 -2
- package/src/kernel/public_call_request.ts +1 -1
- package/src/kernel/utils/optional_number.ts +1 -1
- package/src/keys/derivation.ts +5 -2
- package/src/keys/public_key.ts +1 -1
- package/src/keys/public_keys.ts +3 -2
- package/src/l1-contracts/slash_factory.ts +3 -1
- package/src/logs/contract_class_log.ts +2 -2
- package/src/logs/debug_log.ts +1 -1
- package/src/logs/directional_app_tagging_secret.ts +4 -2
- package/src/logs/index.ts +2 -1
- package/src/logs/log_id.ts +22 -11
- package/src/logs/message_context.ts +1 -1
- package/src/logs/pending_tagged_log.ts +1 -1
- package/src/logs/private_log.ts +3 -2
- package/src/logs/public_log.ts +8 -1
- package/src/logs/shared_secret_derivation.ts +2 -2
- package/src/logs/siloed_tag.ts +44 -0
- package/src/logs/tag.ts +42 -0
- package/src/logs/tx_scoped_l2_log.ts +48 -45
- package/src/messaging/in_hash.ts +4 -2
- package/src/messaging/inbox_leaf.ts +11 -10
- package/src/messaging/l1_actor.ts +2 -2
- package/src/messaging/l1_to_l2_message.ts +3 -2
- package/src/messaging/l1_to_l2_message_source.ts +5 -10
- package/src/messaging/l2_actor.ts +2 -2
- package/src/messaging/l2_to_l1_membership.ts +179 -52
- package/src/messaging/l2_to_l1_message.ts +5 -1
- package/src/messaging/out_hash.ts +63 -22
- package/src/note/note.ts +5 -2
- package/src/note/note_dao.ts +51 -15
- package/src/note/notes_filter.ts +4 -1
- package/src/p2p/attestation_utils.ts +3 -3
- package/src/p2p/block_proposal.ts +207 -46
- package/src/p2p/{block_attestation.ts → checkpoint_attestation.ts} +33 -26
- package/src/p2p/checkpoint_proposal.ts +348 -0
- package/src/p2p/consensus_payload.ts +6 -8
- package/src/p2p/constants.ts +3 -0
- package/src/p2p/gossipable.ts +14 -4
- package/src/p2p/index.ts +4 -1
- package/src/p2p/message_validator.ts +14 -2
- package/src/p2p/signature_utils.ts +5 -2
- package/src/p2p/signed_txs.ts +88 -0
- package/src/p2p/topic_type.ts +4 -3
- package/src/parity/parity_base_private_inputs.ts +1 -1
- package/src/parity/parity_public_inputs.ts +1 -1
- package/src/proofs/chonk_proof.ts +11 -7
- package/src/proofs/proof.ts +1 -1
- package/src/proofs/proof_data.ts +24 -0
- package/src/proofs/recursive_proof.ts +1 -1
- package/src/rollup/avm_proof_data.ts +2 -9
- package/src/rollup/base_rollup_hints.ts +1 -1
- package/src/rollup/block_constant_data.ts +1 -1
- package/src/rollup/block_headers_hash.ts +2 -2
- package/src/rollup/block_rollup_public_inputs.ts +6 -12
- package/src/rollup/block_root_rollup_private_inputs.ts +1 -1
- package/src/rollup/checkpoint_constant_data.ts +2 -1
- package/src/rollup/checkpoint_header.ts +69 -20
- package/src/rollup/checkpoint_rollup_public_inputs.ts +13 -1
- package/src/rollup/checkpoint_root_rollup_private_inputs.ts +16 -2
- package/src/rollup/epoch_constant_data.ts +1 -1
- package/src/rollup/public_chonk_verifier_private_inputs.ts +1 -1
- package/src/rollup/public_chonk_verifier_public_inputs.ts +1 -1
- package/src/rollup/public_tx_base_rollup_private_inputs.ts +2 -2
- package/src/rollup/root_rollup_public_inputs.ts +10 -1
- package/src/rollup/tree_snapshot_diff_hints.ts +1 -1
- package/src/rollup/tx_rollup_public_inputs.ts +1 -1
- package/src/schemas/schemas.ts +6 -1
- package/src/slashing/types.ts +24 -20
- package/src/snapshots/types.ts +33 -29
- package/src/stats/stats.ts +10 -5
- package/src/tests/factories.ts +129 -47
- package/src/tests/jest.ts +1 -1
- package/src/tests/mocks.ts +274 -78
- package/src/trees/append_only_tree_snapshot.ts +1 -1
- package/src/trees/database_public_state_source.ts +1 -1
- package/src/trees/nullifier_leaf.ts +1 -1
- package/src/trees/nullifier_membership_witness.ts +1 -1
- package/src/trees/public_data_leaf.ts +1 -1
- package/src/trees/public_data_witness.ts +1 -1
- package/src/tx/block_header.ts +26 -12
- package/src/tx/call_context.ts +1 -1
- package/src/tx/capsule.ts +1 -1
- package/src/tx/function_data.ts +1 -1
- package/src/tx/global_variable_builder.ts +9 -2
- package/src/tx/global_variables.ts +16 -10
- package/src/tx/hashed_values.ts +1 -1
- package/src/tx/in_tx.ts +24 -0
- package/src/tx/index.ts +1 -1
- package/src/tx/indexed_tx_effect.ts +6 -5
- package/src/tx/offchain_effect.ts +1 -1
- package/src/tx/partial_state_reference.ts +1 -1
- package/src/tx/private_execution_result.ts +6 -21
- package/src/tx/private_tx_constant_data.ts +1 -1
- package/src/tx/processed_tx.ts +19 -16
- package/src/tx/profiling.ts +47 -5
- package/src/tx/protocol_contracts.ts +2 -2
- package/src/tx/public_call_request_with_calldata.ts +1 -1
- package/src/tx/public_simulation_output.ts +1 -1
- package/src/tx/state_reference.ts +1 -1
- package/src/tx/tree_snapshots.ts +1 -1
- package/src/tx/tx.ts +22 -13
- package/src/tx/tx_constant_data.ts +1 -1
- package/src/tx/tx_context.ts +1 -1
- package/src/tx/tx_effect.ts +5 -12
- package/src/tx/tx_execution_request.ts +3 -1
- package/src/tx/tx_hash.ts +1 -1
- package/src/tx/tx_receipt.ts +75 -17
- package/src/tx/tx_request.ts +2 -2
- package/src/tx/validator/error_texts.ts +3 -0
- package/src/tx/validator/tx_validator.ts +8 -6
- package/src/update-checker/update-checker.ts +2 -1
- package/src/validators/errors.ts +1 -1
- package/src/validators/schemas.ts +54 -48
- package/src/versioning/versioning.ts +1 -1
- package/src/vks/verification_key.ts +1 -1
- package/src/vks/vk_data.ts +1 -1
- package/src/zkpassport/index.ts +13 -14
- package/dest/block/l2_block_code_to_purge.d.ts +0 -12
- package/dest/block/l2_block_code_to_purge.d.ts.map +0 -1
- package/dest/block/l2_block_code_to_purge.js +0 -61
- package/dest/block/l2_block_header.d.ts +0 -98
- package/dest/block/l2_block_header.d.ts.map +0 -1
- package/dest/block/l2_block_header.js +0 -153
- package/dest/block/l2_block_new.d.ts +0 -108
- package/dest/block/l2_block_new.d.ts.map +0 -1
- package/dest/block/l2_block_new.js +0 -135
- package/dest/block/l2_block_number.d.ts +0 -5
- package/dest/block/l2_block_number.d.ts.map +0 -1
- package/dest/block/l2_block_number.js +0 -6
- package/dest/block/published_l2_block.d.ts +0 -130
- package/dest/block/published_l2_block.d.ts.map +0 -1
- package/dest/block/published_l2_block.js +0 -48
- package/dest/contract/contract_class_metadata.d.ts +0 -8
- package/dest/contract/contract_class_metadata.d.ts.map +0 -1
- package/dest/contract/contract_class_metadata.js +0 -1
- package/dest/contract/contract_metadata.d.ts +0 -7
- package/dest/contract/contract_metadata.d.ts.map +0 -1
- package/dest/contract/contract_metadata.js +0 -1
- package/dest/logs/log_with_tx_data.d.ts +0 -19
- package/dest/logs/log_with_tx_data.d.ts.map +0 -1
- package/dest/logs/log_with_tx_data.js +0 -49
- package/dest/p2p/block_attestation.d.ts +0 -80
- package/dest/p2p/block_attestation.d.ts.map +0 -1
- package/dest/tx/content_commitment.d.ts +0 -48
- package/dest/tx/content_commitment.d.ts.map +0 -1
- package/dest/tx/content_commitment.js +0 -82
- package/src/block/l2_block_code_to_purge.ts +0 -88
- package/src/block/l2_block_header.ts +0 -246
- package/src/block/l2_block_new.ts +0 -171
- package/src/block/l2_block_number.ts +0 -8
- package/src/block/published_l2_block.ts +0 -65
- package/src/contract/contract_class_metadata.ts +0 -8
- package/src/contract/contract_metadata.ts +0 -7
- package/src/logs/log_with_tx_data.ts +0 -46
- package/src/tx/content_commitment.ts +0 -104
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ARCHIVE_HEIGHT,
|
|
3
|
-
INITIAL_L2_BLOCK_NUM,
|
|
4
3
|
L1_TO_L2_MSG_TREE_HEIGHT,
|
|
5
4
|
NOTE_HASH_TREE_HEIGHT,
|
|
6
5
|
NULLIFIER_TREE_HEIGHT,
|
|
7
6
|
PUBLIC_DATA_TREE_HEIGHT,
|
|
8
7
|
} from '@aztec/constants';
|
|
9
8
|
import { type L1ContractAddresses, L1ContractAddressesSchema } from '@aztec/ethereum/l1-contract-addresses';
|
|
10
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
BlockNumber,
|
|
11
|
+
BlockNumberPositiveSchema,
|
|
12
|
+
BlockNumberSchema,
|
|
13
|
+
CheckpointNumberPositiveSchema,
|
|
14
|
+
EpochNumber,
|
|
15
|
+
EpochNumberSchema,
|
|
16
|
+
type SlotNumber,
|
|
17
|
+
} from '@aztec/foundation/branded-types';
|
|
18
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
11
19
|
import type { EthAddress } from '@aztec/foundation/eth-address';
|
|
12
|
-
import type { Fr } from '@aztec/foundation/fields';
|
|
13
20
|
import { createSafeJsonRpcClient, makeFetch } from '@aztec/foundation/json-rpc/client';
|
|
14
21
|
import { MembershipWitness, SiblingPath } from '@aztec/foundation/trees';
|
|
15
22
|
|
|
16
23
|
import { z } from 'zod';
|
|
17
24
|
|
|
18
25
|
import type { AztecAddress } from '../aztec-address/index.js';
|
|
19
|
-
import {
|
|
26
|
+
import { L2BlockHash } from '../block/block_hash.js';
|
|
27
|
+
import { type BlockParameter, BlockParameterSchema } from '../block/block_parameter.js';
|
|
28
|
+
import { CheckpointedL2Block } from '../block/checkpointed_l2_block.js';
|
|
29
|
+
import { type DataInBlock, dataInBlockSchemaFor } from '../block/in_block.js';
|
|
20
30
|
import { L2Block } from '../block/l2_block.js';
|
|
21
|
-
import { type L2BlockNumber, L2BlockNumberSchema } from '../block/l2_block_number.js';
|
|
22
31
|
import { type L2BlockSource, type L2Tips, L2TipsSchema } from '../block/l2_block_source.js';
|
|
23
|
-
import {
|
|
32
|
+
import { PublishedCheckpoint } from '../checkpoint/published_checkpoint.js';
|
|
24
33
|
import {
|
|
25
34
|
type ContractClassPublic,
|
|
26
35
|
ContractClassPublicSchema,
|
|
@@ -32,9 +41,8 @@ import {
|
|
|
32
41
|
ProtocolContractAddressesSchema,
|
|
33
42
|
} from '../contract/index.js';
|
|
34
43
|
import { GasFees } from '../gas/gas_fees.js';
|
|
44
|
+
import { SiloedTag, Tag, TxScopedL2Log } from '../logs/index.js';
|
|
35
45
|
import { type LogFilter, LogFilterSchema } from '../logs/log_filter.js';
|
|
36
|
-
import { PrivateLog } from '../logs/private_log.js';
|
|
37
|
-
import { TxScopedL2Log } from '../logs/tx_scoped_l2_log.js';
|
|
38
46
|
import { type ApiSchemaFor, optional, schemas } from '../schemas/schemas.js';
|
|
39
47
|
import { MerkleTreeId } from '../trees/merkle_tree_id.js';
|
|
40
48
|
import { NullifierMembershipWitness } from '../trees/nullifier_membership_witness.js';
|
|
@@ -54,7 +62,7 @@ import { SingleValidatorStatsSchema, ValidatorsStatsSchema } from '../validators
|
|
|
54
62
|
import type { SingleValidatorStats, ValidatorsStats } from '../validators/types.js';
|
|
55
63
|
import { type ComponentsVersions, getVersioningResponseHandler } from '../versioning/index.js';
|
|
56
64
|
import { type AllowedElement, AllowedElementSchema } from './allowed_element.js';
|
|
57
|
-
import { MAX_RPC_BLOCKS_LEN, MAX_RPC_LEN, MAX_RPC_TXS_LEN } from './api_limit.js';
|
|
65
|
+
import { MAX_RPC_BLOCKS_LEN, MAX_RPC_CHECKPOINTS_LEN, MAX_RPC_LEN, MAX_RPC_TXS_LEN } from './api_limit.js';
|
|
58
66
|
import {
|
|
59
67
|
type GetContractClassLogsResponse,
|
|
60
68
|
GetContractClassLogsResponseSchema,
|
|
@@ -68,7 +76,10 @@ import { type WorldStateSyncStatus, WorldStateSyncStatusSchema } from './world_s
|
|
|
68
76
|
* We will probably implement the additional interfaces by means other than Aztec Node as it's currently a privacy leak
|
|
69
77
|
*/
|
|
70
78
|
export interface AztecNode
|
|
71
|
-
extends Pick<
|
|
79
|
+
extends Pick<
|
|
80
|
+
L2BlockSource,
|
|
81
|
+
'getBlocks' | 'getCheckpoints' | 'getBlockHeader' | 'getL2Tips' | 'getCheckpointedBlocks'
|
|
82
|
+
> {
|
|
72
83
|
/**
|
|
73
84
|
* Returns the tips of the L2 chain.
|
|
74
85
|
*/
|
|
@@ -82,72 +93,63 @@ export interface AztecNode
|
|
|
82
93
|
/**
|
|
83
94
|
* Find the indexes of the given leaves in the given tree along with a block metadata pointing to the block in which
|
|
84
95
|
* the leaves were inserted.
|
|
85
|
-
* @param
|
|
96
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
86
97
|
* @param treeId - The tree to search in.
|
|
87
98
|
* @param leafValues - The values to search for.
|
|
88
99
|
* @returns The indices of leaves and the block metadata of a block in which the leaves were inserted.
|
|
89
100
|
*/
|
|
90
101
|
findLeavesIndexes(
|
|
91
|
-
|
|
102
|
+
block: BlockParameter,
|
|
92
103
|
treeId: MerkleTreeId,
|
|
93
104
|
leafValues: Fr[],
|
|
94
|
-
): Promise<(
|
|
105
|
+
): Promise<(DataInBlock<bigint> | undefined)[]>;
|
|
95
106
|
|
|
96
107
|
/**
|
|
97
108
|
* Returns a sibling path for the given index in the nullifier tree.
|
|
98
|
-
* @param
|
|
109
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
99
110
|
* @param leafIndex - The index of the leaf for which the sibling path is required.
|
|
100
111
|
* @returns The sibling path for the leaf index.
|
|
101
112
|
*/
|
|
102
|
-
getNullifierSiblingPath(
|
|
103
|
-
blockNumber: L2BlockNumber,
|
|
104
|
-
leafIndex: bigint,
|
|
105
|
-
): Promise<SiblingPath<typeof NULLIFIER_TREE_HEIGHT>>;
|
|
113
|
+
getNullifierSiblingPath(block: BlockParameter, leafIndex: bigint): Promise<SiblingPath<typeof NULLIFIER_TREE_HEIGHT>>;
|
|
106
114
|
|
|
107
115
|
/**
|
|
108
116
|
* Returns a sibling path for the given index in the note hash tree.
|
|
109
|
-
* @param
|
|
117
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
110
118
|
* @param leafIndex - The index of the leaf for which the sibling path is required.
|
|
111
119
|
* @returns The sibling path for the leaf index.
|
|
112
120
|
*/
|
|
113
|
-
getNoteHashSiblingPath(
|
|
114
|
-
blockNumber: L2BlockNumber,
|
|
115
|
-
leafIndex: bigint,
|
|
116
|
-
): Promise<SiblingPath<typeof NOTE_HASH_TREE_HEIGHT>>;
|
|
121
|
+
getNoteHashSiblingPath(block: BlockParameter, leafIndex: bigint): Promise<SiblingPath<typeof NOTE_HASH_TREE_HEIGHT>>;
|
|
117
122
|
|
|
118
123
|
/**
|
|
119
124
|
* Returns a sibling path for a leaf in the committed historic blocks tree.
|
|
120
|
-
* @param
|
|
125
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
121
126
|
* @param leafIndex - Index of the leaf in the tree.
|
|
122
127
|
* @returns The sibling path.
|
|
123
128
|
*/
|
|
124
|
-
getArchiveSiblingPath(
|
|
129
|
+
getArchiveSiblingPath(block: BlockParameter, leafIndex: bigint): Promise<SiblingPath<typeof ARCHIVE_HEIGHT>>;
|
|
125
130
|
|
|
126
131
|
/**
|
|
127
132
|
* Returns a sibling path for a leaf in the committed public data tree.
|
|
128
|
-
* @param
|
|
133
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
129
134
|
* @param leafIndex - Index of the leaf in the tree.
|
|
130
135
|
* @returns The sibling path.
|
|
131
136
|
*/
|
|
132
137
|
getPublicDataSiblingPath(
|
|
133
|
-
|
|
138
|
+
block: BlockParameter,
|
|
134
139
|
leafIndex: bigint,
|
|
135
140
|
): Promise<SiblingPath<typeof PUBLIC_DATA_TREE_HEIGHT>>;
|
|
136
141
|
|
|
137
142
|
/**
|
|
138
143
|
* Returns a nullifier membership witness for a given nullifier at a given block.
|
|
139
|
-
* @param
|
|
144
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
140
145
|
* @param nullifier - Nullifier we try to find witness for.
|
|
141
146
|
* @returns The nullifier membership witness (if found).
|
|
142
147
|
*/
|
|
143
|
-
getNullifierMembershipWitness(
|
|
144
|
-
blockNumber: L2BlockNumber,
|
|
145
|
-
nullifier: Fr,
|
|
146
|
-
): Promise<NullifierMembershipWitness | undefined>;
|
|
148
|
+
getNullifierMembershipWitness(block: BlockParameter, nullifier: Fr): Promise<NullifierMembershipWitness | undefined>;
|
|
147
149
|
|
|
148
150
|
/**
|
|
149
151
|
* Returns a low nullifier membership witness for a given nullifier at a given block.
|
|
150
|
-
* @param
|
|
152
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
151
153
|
* @param nullifier - Nullifier we try to find the low nullifier witness for.
|
|
152
154
|
* @returns The low nullifier membership witness (if found).
|
|
153
155
|
* @remarks Low nullifier witness can be used to perform a nullifier non-inclusion proof by leveraging the "linked
|
|
@@ -155,54 +157,54 @@ export interface AztecNode
|
|
|
155
157
|
* we are trying to prove non-inclusion for.
|
|
156
158
|
*/
|
|
157
159
|
getLowNullifierMembershipWitness(
|
|
158
|
-
|
|
160
|
+
block: BlockParameter,
|
|
159
161
|
nullifier: Fr,
|
|
160
162
|
): Promise<NullifierMembershipWitness | undefined>;
|
|
161
163
|
|
|
162
164
|
/**
|
|
163
165
|
* Returns a public data tree witness for a given leaf slot at a given block.
|
|
164
|
-
* @param
|
|
166
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
165
167
|
* @param leafSlot - The leaf slot we try to find the witness for.
|
|
166
168
|
* @returns The public data witness (if found).
|
|
167
169
|
* @remarks The witness can be used to compute the current value of the public data tree leaf. If the low leaf preimage corresponds to an
|
|
168
170
|
* "in range" slot, means that the slot doesn't exist and the value is 0. If the low leaf preimage corresponds to the exact slot, the current value
|
|
169
171
|
* is contained in the leaf preimage.
|
|
170
172
|
*/
|
|
171
|
-
getPublicDataWitness(
|
|
173
|
+
getPublicDataWitness(block: BlockParameter, leafSlot: Fr): Promise<PublicDataWitness | undefined>;
|
|
172
174
|
|
|
173
175
|
/**
|
|
174
176
|
* Returns a membership witness for a given archive leaf at a given block.
|
|
175
|
-
* @param
|
|
177
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
176
178
|
* @param archive - The archive leaf we try to find the witness for.
|
|
177
179
|
*/
|
|
178
180
|
getArchiveMembershipWitness(
|
|
179
|
-
|
|
181
|
+
block: BlockParameter,
|
|
180
182
|
archive: Fr,
|
|
181
183
|
): Promise<MembershipWitness<typeof ARCHIVE_HEIGHT> | undefined>;
|
|
182
184
|
|
|
183
185
|
/**
|
|
184
186
|
* Returns a membership witness for a given note hash at a given block.
|
|
185
|
-
* @param
|
|
187
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
186
188
|
* @param noteHash - The note hash we try to find the witness for.
|
|
187
189
|
*/
|
|
188
190
|
getNoteHashMembershipWitness(
|
|
189
|
-
|
|
191
|
+
block: BlockParameter,
|
|
190
192
|
noteHash: Fr,
|
|
191
193
|
): Promise<MembershipWitness<typeof NOTE_HASH_TREE_HEIGHT> | undefined>;
|
|
192
194
|
|
|
193
195
|
/**
|
|
194
196
|
* Returns the index and a sibling path for a leaf in the committed l1 to l2 data tree.
|
|
195
|
-
* @param
|
|
197
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
196
198
|
* @param l1ToL2Message - The l1ToL2Message to get the index / sibling path for.
|
|
197
199
|
* @returns A tuple of the index and the sibling path of the L1ToL2Message (undefined if not found).
|
|
198
200
|
*/
|
|
199
201
|
getL1ToL2MessageMembershipWitness(
|
|
200
|
-
|
|
202
|
+
block: BlockParameter,
|
|
201
203
|
l1ToL2Message: Fr,
|
|
202
204
|
): Promise<[bigint, SiblingPath<typeof L1_TO_L2_MSG_TREE_HEIGHT>] | undefined>;
|
|
203
205
|
|
|
204
206
|
/** Returns the L2 block number in which this L1 to L2 message becomes available, or undefined if not found. */
|
|
205
|
-
getL1ToL2MessageBlock(l1ToL2Message: Fr): Promise<
|
|
207
|
+
getL1ToL2MessageBlock(l1ToL2Message: Fr): Promise<BlockNumber | undefined>;
|
|
206
208
|
|
|
207
209
|
/**
|
|
208
210
|
* Returns whether an L1 to L2 message is synced by archiver.
|
|
@@ -213,18 +215,19 @@ export interface AztecNode
|
|
|
213
215
|
isL1ToL2MessageSynced(l1ToL2Message: Fr): Promise<boolean>;
|
|
214
216
|
|
|
215
217
|
/**
|
|
216
|
-
* Returns all the L2 to L1 messages in
|
|
217
|
-
* @param
|
|
218
|
-
* @returns
|
|
218
|
+
* Returns all the L2 to L1 messages in an epoch.
|
|
219
|
+
* @param epoch - The epoch at which to get the data.
|
|
220
|
+
* @returns A nested array of the L2 to L1 messages in each tx of each block in each checkpoint in the epoch (empty
|
|
221
|
+
* array if the epoch is not found).
|
|
219
222
|
*/
|
|
220
|
-
getL2ToL1Messages(
|
|
223
|
+
getL2ToL1Messages(epoch: EpochNumber): Promise<Fr[][][][]>;
|
|
221
224
|
|
|
222
225
|
/**
|
|
223
|
-
* Get a block specified by its number.
|
|
224
|
-
* @param number - The block number
|
|
226
|
+
* Get a block specified by its block number or 'latest'.
|
|
227
|
+
* @param number - The block number or 'latest'.
|
|
225
228
|
* @returns The requested block.
|
|
226
229
|
*/
|
|
227
|
-
getBlock(number:
|
|
230
|
+
getBlock(number: BlockParameter): Promise<L2Block | undefined>;
|
|
228
231
|
|
|
229
232
|
/**
|
|
230
233
|
* Get a block specified by its hash.
|
|
@@ -244,13 +247,19 @@ export interface AztecNode
|
|
|
244
247
|
* Method to fetch the latest block number synchronized by the node.
|
|
245
248
|
* @returns The block number.
|
|
246
249
|
*/
|
|
247
|
-
getBlockNumber(): Promise<
|
|
250
|
+
getBlockNumber(): Promise<BlockNumber>;
|
|
248
251
|
|
|
249
252
|
/**
|
|
250
253
|
* Fetches the latest proven block number.
|
|
251
254
|
* @returns The block number.
|
|
252
255
|
*/
|
|
253
|
-
getProvenBlockNumber(): Promise<
|
|
256
|
+
getProvenBlockNumber(): Promise<BlockNumber>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Fetches the latest checkpointed block number.
|
|
260
|
+
* @returns The block number.
|
|
261
|
+
*/
|
|
262
|
+
getCheckpointedBlockNumber(): Promise<BlockNumber>;
|
|
254
263
|
|
|
255
264
|
/**
|
|
256
265
|
* Method to determine if the node is ready to accept transactions.
|
|
@@ -271,13 +280,19 @@ export interface AztecNode
|
|
|
271
280
|
* @param limit - The maximum number of blocks to return.
|
|
272
281
|
* @returns The blocks requested.
|
|
273
282
|
*/
|
|
274
|
-
getBlocks(from:
|
|
283
|
+
getBlocks(from: BlockNumber, limit: number): Promise<L2Block[]>;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Method to fetch the current min fees.
|
|
287
|
+
* @returns The current min fees.
|
|
288
|
+
*/
|
|
289
|
+
getCurrentMinFees(): Promise<GasFees>;
|
|
275
290
|
|
|
276
291
|
/**
|
|
277
|
-
* Method to fetch the current
|
|
278
|
-
* @returns The current
|
|
292
|
+
* Method to fetch the current max priority fee of txs in the mempool.
|
|
293
|
+
* @returns The current max priority fees.
|
|
279
294
|
*/
|
|
280
|
-
|
|
295
|
+
getMaxPriorityFees(): Promise<GasFees>;
|
|
281
296
|
|
|
282
297
|
/**
|
|
283
298
|
* Method to fetch the version of the package.
|
|
@@ -314,14 +329,6 @@ export interface AztecNode
|
|
|
314
329
|
*/
|
|
315
330
|
registerContractFunctionSignatures(functionSignatures: string[]): Promise<void>;
|
|
316
331
|
|
|
317
|
-
/**
|
|
318
|
-
* Retrieves all private logs from up to `limit` blocks, starting from the block number `from`.
|
|
319
|
-
* @param from - The block number from which to begin retrieving logs.
|
|
320
|
-
* @param limit - The maximum number of blocks to retrieve logs from.
|
|
321
|
-
* @returns An array of private logs from the specified range of blocks.
|
|
322
|
-
*/
|
|
323
|
-
getPrivateLogs(from: number, limit: number): Promise<PrivateLog[]>;
|
|
324
|
-
|
|
325
332
|
/**
|
|
326
333
|
* Gets public logs based on the provided filter.
|
|
327
334
|
* @param filter - The filter to apply to the logs.
|
|
@@ -337,14 +344,38 @@ export interface AztecNode
|
|
|
337
344
|
getContractClassLogs(filter: LogFilter): Promise<GetContractClassLogsResponse>;
|
|
338
345
|
|
|
339
346
|
/**
|
|
340
|
-
* Gets
|
|
341
|
-
*
|
|
342
|
-
* @param
|
|
343
|
-
* @
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
|
|
347
|
-
|
|
347
|
+
* Gets private logs that match any of the `tags`. For each tag, an array of matching logs is returned. An empty
|
|
348
|
+
* array implies no logs match that tag.
|
|
349
|
+
* @param tags - The tags to search for.
|
|
350
|
+
* @param page - The page number (0-indexed) for pagination.
|
|
351
|
+
* @param referenceBlock - Optional block hash used to ensure the block still exists before logs are retrieved.
|
|
352
|
+
* This block is expected to represent the latest block to which the client has synced (called anchor block in PXE).
|
|
353
|
+
* If specified and the block is not found, an error is thrown. This helps detect reorgs, which could result in
|
|
354
|
+
* undefined behavior in the client's code.
|
|
355
|
+
* @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
|
|
356
|
+
* for a tag, the caller should fetch the next page to check for more logs.
|
|
357
|
+
*/
|
|
358
|
+
getPrivateLogsByTags(tags: SiloedTag[], page?: number, referenceBlock?: L2BlockHash): Promise<TxScopedL2Log[][]>;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Gets public logs that match any of the `tags` from the specified contract. For each tag, an array of matching
|
|
362
|
+
* logs is returned. An empty array implies no logs match that tag.
|
|
363
|
+
* @param contractAddress - The contract address to search logs for.
|
|
364
|
+
* @param tags - The tags to search for.
|
|
365
|
+
* @param page - The page number (0-indexed) for pagination.
|
|
366
|
+
* @param referenceBlock - Optional block hash used to ensure the block still exists before logs are retrieved.
|
|
367
|
+
* This block is expected to represent the latest block to which the client has synced (called anchor block in PXE).
|
|
368
|
+
* If specified and the block is not found, an error is thrown. This helps detect reorgs, which could result in
|
|
369
|
+
* undefined behavior in the client's code.
|
|
370
|
+
* @returns An array of log arrays, one per tag. Returns at most 10 logs per tag per page. If 10 logs are returned
|
|
371
|
+
* for a tag, the caller should fetch the next page to check for more logs.
|
|
372
|
+
*/
|
|
373
|
+
getPublicLogsByTagsFromContract(
|
|
374
|
+
contractAddress: AztecAddress,
|
|
375
|
+
tags: Tag[],
|
|
376
|
+
page?: number,
|
|
377
|
+
referenceBlock?: L2BlockHash,
|
|
378
|
+
): Promise<TxScopedL2Log[][]>;
|
|
348
379
|
|
|
349
380
|
/**
|
|
350
381
|
* Method to submit a transaction to the p2p pool.
|
|
@@ -402,25 +433,19 @@ export interface AztecNode
|
|
|
402
433
|
* @remarks The storage slot here refers to the slot as it is defined in Noir not the index in the merkle tree.
|
|
403
434
|
* Aztec's version of `eth_getStorageAt`.
|
|
404
435
|
*
|
|
436
|
+
* @param block - The block parameter (block number, block hash, or 'latest') at which to get the data.
|
|
405
437
|
* @param contract - Address of the contract to query.
|
|
406
438
|
* @param slot - Slot to query.
|
|
407
|
-
* @param blockNumber - The block number at which to get the data or 'latest'.
|
|
408
439
|
* @returns Storage value at the given contract slot.
|
|
409
440
|
*/
|
|
410
|
-
getPublicStorageAt(
|
|
441
|
+
getPublicStorageAt(block: BlockParameter, contract: AztecAddress, slot: Fr): Promise<Fr>;
|
|
411
442
|
|
|
412
443
|
/**
|
|
413
|
-
* Returns the
|
|
414
|
-
* @
|
|
415
|
-
*/
|
|
416
|
-
getBlockHeader(blockNumber?: L2BlockNumber): Promise<BlockHeader | undefined>;
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* Get a block header specified by its hash.
|
|
420
|
-
* @param blockHash - The block hash being requested.
|
|
444
|
+
* Returns the block header for a given block number, block hash, or 'latest'.
|
|
445
|
+
* @param block - The block parameter (block number, block hash, or 'latest'). Defaults to 'latest'.
|
|
421
446
|
* @returns The requested block header.
|
|
422
447
|
*/
|
|
423
|
-
|
|
448
|
+
getBlockHeader(block?: BlockParameter): Promise<BlockHeader | undefined>;
|
|
424
449
|
|
|
425
450
|
/**
|
|
426
451
|
* Get a block header specified by its archive root.
|
|
@@ -480,7 +505,6 @@ export interface AztecNode
|
|
|
480
505
|
getAllowedPublicSetup(): Promise<AllowedElement[]>;
|
|
481
506
|
}
|
|
482
507
|
|
|
483
|
-
export const MAX_LOGS_PER_TAG = 10;
|
|
484
508
|
const MAX_SIGNATURES_PER_REGISTER_CALL = 100;
|
|
485
509
|
const MAX_SIGNATURE_LEN = 10000;
|
|
486
510
|
|
|
@@ -491,74 +515,79 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
|
|
|
491
515
|
|
|
492
516
|
findLeavesIndexes: z
|
|
493
517
|
.function()
|
|
494
|
-
.args(
|
|
495
|
-
.returns(z.array(optional(
|
|
518
|
+
.args(BlockParameterSchema, z.nativeEnum(MerkleTreeId), z.array(schemas.Fr).max(MAX_RPC_LEN))
|
|
519
|
+
.returns(z.array(optional(dataInBlockSchemaFor(schemas.BigInt)))),
|
|
496
520
|
|
|
497
521
|
getNullifierSiblingPath: z
|
|
498
522
|
.function()
|
|
499
|
-
.args(
|
|
523
|
+
.args(BlockParameterSchema, schemas.BigInt)
|
|
500
524
|
.returns(SiblingPath.schemaFor(NULLIFIER_TREE_HEIGHT)),
|
|
501
525
|
|
|
502
526
|
getNoteHashSiblingPath: z
|
|
503
527
|
.function()
|
|
504
|
-
.args(
|
|
528
|
+
.args(BlockParameterSchema, schemas.BigInt)
|
|
505
529
|
.returns(SiblingPath.schemaFor(NOTE_HASH_TREE_HEIGHT)),
|
|
506
530
|
|
|
507
531
|
getArchiveSiblingPath: z
|
|
508
532
|
.function()
|
|
509
|
-
.args(
|
|
533
|
+
.args(BlockParameterSchema, schemas.BigInt)
|
|
510
534
|
.returns(SiblingPath.schemaFor(ARCHIVE_HEIGHT)),
|
|
511
535
|
|
|
512
536
|
getPublicDataSiblingPath: z
|
|
513
537
|
.function()
|
|
514
|
-
.args(
|
|
538
|
+
.args(BlockParameterSchema, schemas.BigInt)
|
|
515
539
|
.returns(SiblingPath.schemaFor(PUBLIC_DATA_TREE_HEIGHT)),
|
|
516
540
|
|
|
517
541
|
getNullifierMembershipWitness: z
|
|
518
542
|
.function()
|
|
519
|
-
.args(
|
|
543
|
+
.args(BlockParameterSchema, schemas.Fr)
|
|
520
544
|
.returns(NullifierMembershipWitness.schema.optional()),
|
|
521
545
|
|
|
522
546
|
getLowNullifierMembershipWitness: z
|
|
523
547
|
.function()
|
|
524
|
-
.args(
|
|
548
|
+
.args(BlockParameterSchema, schemas.Fr)
|
|
525
549
|
.returns(NullifierMembershipWitness.schema.optional()),
|
|
526
550
|
|
|
527
|
-
getPublicDataWitness: z
|
|
551
|
+
getPublicDataWitness: z
|
|
552
|
+
.function()
|
|
553
|
+
.args(BlockParameterSchema, schemas.Fr)
|
|
554
|
+
.returns(PublicDataWitness.schema.optional()),
|
|
528
555
|
|
|
529
556
|
getArchiveMembershipWitness: z
|
|
530
557
|
.function()
|
|
531
|
-
.args(
|
|
558
|
+
.args(BlockParameterSchema, schemas.Fr)
|
|
532
559
|
.returns(MembershipWitness.schemaFor(ARCHIVE_HEIGHT).optional()),
|
|
533
560
|
|
|
534
561
|
getNoteHashMembershipWitness: z
|
|
535
562
|
.function()
|
|
536
|
-
.args(
|
|
563
|
+
.args(BlockParameterSchema, schemas.Fr)
|
|
537
564
|
.returns(MembershipWitness.schemaFor(NOTE_HASH_TREE_HEIGHT).optional()),
|
|
538
565
|
|
|
539
566
|
getL1ToL2MessageMembershipWitness: z
|
|
540
567
|
.function()
|
|
541
|
-
.args(
|
|
568
|
+
.args(BlockParameterSchema, schemas.Fr)
|
|
542
569
|
.returns(z.tuple([schemas.BigInt, SiblingPath.schemaFor(L1_TO_L2_MSG_TREE_HEIGHT)]).optional()),
|
|
543
570
|
|
|
544
|
-
getL1ToL2MessageBlock: z.function().args(schemas.Fr).returns(
|
|
571
|
+
getL1ToL2MessageBlock: z.function().args(schemas.Fr).returns(BlockNumberSchema.optional()),
|
|
545
572
|
|
|
546
573
|
isL1ToL2MessageSynced: z.function().args(schemas.Fr).returns(z.boolean()),
|
|
547
574
|
|
|
548
575
|
getL2ToL1Messages: z
|
|
549
576
|
.function()
|
|
550
|
-
.args(
|
|
551
|
-
.returns(z.array(z.array(schemas.Fr))
|
|
577
|
+
.args(EpochNumberSchema)
|
|
578
|
+
.returns(z.array(z.array(z.array(z.array(schemas.Fr))))),
|
|
552
579
|
|
|
553
|
-
getBlock: z.function().args(
|
|
580
|
+
getBlock: z.function().args(BlockParameterSchema).returns(L2Block.schema.optional()),
|
|
554
581
|
|
|
555
582
|
getBlockByHash: z.function().args(schemas.Fr).returns(L2Block.schema.optional()),
|
|
556
583
|
|
|
557
584
|
getBlockByArchive: z.function().args(schemas.Fr).returns(L2Block.schema.optional()),
|
|
558
585
|
|
|
559
|
-
getBlockNumber: z.function().returns(
|
|
586
|
+
getBlockNumber: z.function().returns(BlockNumberSchema),
|
|
587
|
+
|
|
588
|
+
getProvenBlockNumber: z.function().returns(BlockNumberSchema),
|
|
560
589
|
|
|
561
|
-
|
|
590
|
+
getCheckpointedBlockNumber: z.function().returns(BlockNumberSchema),
|
|
562
591
|
|
|
563
592
|
isReady: z.function().returns(z.boolean()),
|
|
564
593
|
|
|
@@ -566,15 +595,22 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
|
|
|
566
595
|
|
|
567
596
|
getBlocks: z
|
|
568
597
|
.function()
|
|
569
|
-
.args(
|
|
598
|
+
.args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
|
|
570
599
|
.returns(z.array(L2Block.schema)),
|
|
571
600
|
|
|
572
|
-
|
|
601
|
+
getCheckpoints: z
|
|
602
|
+
.function()
|
|
603
|
+
.args(CheckpointNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_CHECKPOINTS_LEN))
|
|
604
|
+
.returns(z.array(PublishedCheckpoint.schema)),
|
|
605
|
+
|
|
606
|
+
getCheckpointedBlocks: z
|
|
573
607
|
.function()
|
|
574
|
-
.args(
|
|
575
|
-
.returns(z.array(
|
|
608
|
+
.args(BlockNumberPositiveSchema, z.number().gt(0).lte(MAX_RPC_BLOCKS_LEN))
|
|
609
|
+
.returns(z.array(CheckpointedL2Block.schema)),
|
|
576
610
|
|
|
577
|
-
|
|
611
|
+
getCurrentMinFees: z.function().returns(GasFees.schema),
|
|
612
|
+
|
|
613
|
+
getMaxPriorityFees: z.function().returns(GasFees.schema),
|
|
578
614
|
|
|
579
615
|
getNodeVersion: z.function().returns(z.string()),
|
|
580
616
|
|
|
@@ -591,20 +627,22 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
|
|
|
591
627
|
.args(z.array(z.string().max(MAX_SIGNATURE_LEN)).max(MAX_SIGNATURES_PER_REGISTER_CALL))
|
|
592
628
|
.returns(z.void()),
|
|
593
629
|
|
|
594
|
-
getPrivateLogs: z
|
|
595
|
-
.function()
|
|
596
|
-
.args(z.number().gte(INITIAL_L2_BLOCK_NUM), z.number().lte(MAX_RPC_LEN))
|
|
597
|
-
.returns(z.array(PrivateLog.schema)),
|
|
598
|
-
|
|
599
630
|
getPublicLogs: z.function().args(LogFilterSchema).returns(GetPublicLogsResponseSchema),
|
|
600
631
|
|
|
601
632
|
getContractClassLogs: z.function().args(LogFilterSchema).returns(GetContractClassLogsResponseSchema),
|
|
602
633
|
|
|
603
|
-
|
|
634
|
+
getPrivateLogsByTags: z
|
|
635
|
+
.function()
|
|
636
|
+
.args(z.array(SiloedTag.schema).max(MAX_RPC_LEN), optional(z.number().gte(0)), optional(L2BlockHash.schema))
|
|
637
|
+
.returns(z.array(z.array(TxScopedL2Log.schema))),
|
|
638
|
+
|
|
639
|
+
getPublicLogsByTagsFromContract: z
|
|
604
640
|
.function()
|
|
605
641
|
.args(
|
|
606
|
-
|
|
607
|
-
|
|
642
|
+
schemas.AztecAddress,
|
|
643
|
+
z.array(Tag.schema).max(MAX_RPC_LEN),
|
|
644
|
+
optional(z.number().gte(0)),
|
|
645
|
+
optional(L2BlockHash.schema),
|
|
608
646
|
)
|
|
609
647
|
.returns(z.array(z.array(TxScopedL2Log.schema))),
|
|
610
648
|
|
|
@@ -625,11 +663,9 @@ export const AztecNodeApiSchema: ApiSchemaFor<AztecNode> = {
|
|
|
625
663
|
|
|
626
664
|
getTxsByHash: z.function().args(z.array(TxHash.schema).max(MAX_RPC_TXS_LEN)).returns(z.array(Tx.schema)),
|
|
627
665
|
|
|
628
|
-
getPublicStorageAt: z.function().args(
|
|
629
|
-
|
|
630
|
-
getBlockHeader: z.function().args(optional(L2BlockNumberSchema)).returns(BlockHeader.schema.optional()),
|
|
666
|
+
getPublicStorageAt: z.function().args(BlockParameterSchema, schemas.AztecAddress, schemas.Fr).returns(schemas.Fr),
|
|
631
667
|
|
|
632
|
-
|
|
668
|
+
getBlockHeader: z.function().args(optional(BlockParameterSchema)).returns(BlockHeader.schema.optional()),
|
|
633
669
|
|
|
634
670
|
getBlockHeaderByArchive: z.function().args(schemas.Fr).returns(BlockHeader.schema.optional()),
|
|
635
671
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { BlockNumber, CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
2
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
|
|
4
4
|
import type { L2Block } from '../block/l2_block.js';
|
|
5
5
|
import type { ChainConfig, SequencerConfig } from '../config/chain-config.js';
|
|
6
6
|
import type { L1RollupConstants } from '../epoch-helpers/index.js';
|
|
7
7
|
import type { Gas } from '../gas/gas.js';
|
|
8
|
-
import type { MerkleTreeWriteOperations } from '../trees/index.js';
|
|
9
8
|
import type { BlockHeader } from '../tx/block_header.js';
|
|
10
|
-
import type { GlobalVariables } from '../tx/global_variables.js';
|
|
9
|
+
import type { CheckpointGlobalVariables, GlobalVariables } from '../tx/global_variables.js';
|
|
11
10
|
import type { FailedTx, ProcessedTx } from '../tx/processed_tx.js';
|
|
12
11
|
import { Tx } from '../tx/tx.js';
|
|
13
12
|
import type { TxValidator } from '../tx/validator/tx_validator.js';
|
|
13
|
+
import type { MerkleTreeWriteOperations } from './merkle_tree_operations.js';
|
|
14
14
|
import type { ProcessedTxHandler } from './processed-tx-handler.js';
|
|
15
15
|
|
|
16
16
|
/** The interface to a block builder. Generates an L2 block out of a set of processed txs. */
|
|
@@ -46,33 +46,51 @@ export interface PublicProcessorValidator {
|
|
|
46
46
|
preprocessValidator?: TxValidator<Tx>;
|
|
47
47
|
nullifierCache?: { addNullifiers: (nullifiers: Buffer[]) => void };
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
export type FullNodeBlockBuilderConfig = Pick<L1RollupConstants, 'l1GenesisTime' | 'slotDuration'> &
|
|
51
|
+
Pick<ChainConfig, 'l1ChainId' | 'rollupVersion'> &
|
|
52
|
+
Pick<SequencerConfig, 'txPublicSetupAllowList' | 'fakeProcessingDelayPerTxMs' | 'fakeThrowAfterProcessingTxCount'>;
|
|
53
|
+
|
|
54
|
+
export const FullNodeBlockBuilderConfigKeys: (keyof FullNodeBlockBuilderConfig)[] = [
|
|
55
|
+
'l1GenesisTime',
|
|
56
|
+
'slotDuration',
|
|
57
|
+
'l1ChainId',
|
|
58
|
+
'rollupVersion',
|
|
59
|
+
'txPublicSetupAllowList',
|
|
60
|
+
'fakeProcessingDelayPerTxMs',
|
|
61
|
+
'fakeThrowAfterProcessingTxCount',
|
|
62
|
+
] as const;
|
|
63
|
+
|
|
64
|
+
/** Result of building a block within a checkpoint. */
|
|
65
|
+
export interface BuildBlockInCheckpointResult {
|
|
50
66
|
block: L2Block;
|
|
51
67
|
publicGas: Gas;
|
|
52
68
|
publicProcessorDuration: number;
|
|
53
|
-
numMsgs: number;
|
|
54
69
|
numTxs: number;
|
|
55
70
|
failedTxs: FailedTx[];
|
|
56
|
-
blockBuildingTimer: Timer;
|
|
57
71
|
usedTxs: Tx[];
|
|
72
|
+
usedTxBlobFields: number;
|
|
58
73
|
}
|
|
59
74
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
75
|
+
/** Interface for building blocks within a checkpoint context. */
|
|
76
|
+
export interface ICheckpointBlockBuilder {
|
|
77
|
+
buildBlock(
|
|
78
|
+
pendingTxs: Iterable<Tx> | AsyncIterable<Tx>,
|
|
79
|
+
blockNumber: BlockNumber,
|
|
80
|
+
timestamp: bigint,
|
|
81
|
+
opts: PublicProcessorLimits,
|
|
82
|
+
): Promise<BuildBlockInCheckpointResult>;
|
|
83
|
+
}
|
|
66
84
|
|
|
67
|
-
|
|
85
|
+
/** Interface for creating checkpoint builders. */
|
|
86
|
+
export interface ICheckpointsBuilder {
|
|
87
|
+
getFork(blockNumber: BlockNumber): Promise<MerkleTreeWriteOperations>;
|
|
68
88
|
|
|
69
|
-
|
|
70
|
-
|
|
89
|
+
startCheckpoint(
|
|
90
|
+
checkpointNumber: CheckpointNumber,
|
|
91
|
+
constants: CheckpointGlobalVariables,
|
|
71
92
|
l1ToL2Messages: Fr[],
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
): Promise<BuildBlockResult>;
|
|
76
|
-
|
|
77
|
-
getFork(blockNumber: number): Promise<MerkleTreeWriteOperations>;
|
|
93
|
+
previousCheckpointOutHashes: Fr[],
|
|
94
|
+
fork: MerkleTreeWriteOperations,
|
|
95
|
+
): Promise<ICheckpointBlockBuilder>;
|
|
78
96
|
}
|