aztec-packages icon indicating copy to clipboard operation
aztec-packages copied to clipboard

fix(docs): Update debugging docs

Open critesjosh opened this issue 1 year ago โ€ข 1 comments

Updates the debugging docs to actually work.

closes: https://github.com/AztecProtocol/dev-rel/issues/396

critesjosh avatar Oct 11 '24 16:10 critesjosh

Docs Preview

Hey there! ๐Ÿ‘‹ You can check your preview at https://6713ebd9809f46ef0525cdd3--aztec-docs-dev.netlify.app

AztecBot avatar Oct 11 '24 17:10 AztecBot

Changes to public function bytecode sizes

Generated at commit: f721b3a9ac24fcfb0234f61de7ecb58011dd11f8, compared to commit: ab0c80d7493e6bdbc58dcd517b248de6ddd6fd67

๐Ÿงพ Summary (100% most significant diffs)

Program Bytecode size in bytes (+/-) %
Test::create_l2_to_l1_message_public +369 โŒ +18.45%
Token::complete_refund +402 โŒ +14.73%
Token::mint_private +415 โŒ +14.03%
AvmTest::pedersen_hash_with_index +412 โŒ +13.62%
AvmTest::pedersen_hash +412 โŒ +13.62%
TokenBlacklist::mint_private +454 โŒ +12.07%
NFT::finalize_transfer_to_private +581 โŒ +11.10%
CardGame::on_cards_claimed +707 โŒ +10.59%
Token::shield +512 โŒ +10.37%
TokenBlacklist::shield +563 โŒ +9.36%
CardGame::public_dispatch +1,190 โŒ +8.12%
AvmTest::debug_logging +99 โŒ +8.09%
AvmTest::u128_from_integer_overflow +52 โŒ +7.49%
AvmTest::bulk_testing +1,764 โŒ +7.33%
AvmTest::u128_addition_overflow +85 โŒ +7.23%
Test::public_dispatch +1,231 โŒ +7.15%
Delegator::public_delegate_set_value +60 โŒ +7.14%
AvmTest::emit_unencrypted_log +191 โŒ +6.99%
CardGame::start_game +421 โŒ +6.92%
CardGame::on_card_played +339 โŒ +6.69%
TokenBridge::exit_to_l1_public +444 โŒ +6.59%
Delegator::public_dispatch +125 โŒ +6.56%
CardGame::on_game_joined +279 โŒ +6.46%
Uniswap::swap_public +917 โŒ +6.41%
Test::emit_unencrypted +98 โŒ +6.41%
TestLog::public_dispatch +188 โŒ +6.37%
DelegatedOn::public_dispatch +72 โŒ +6.06%
TestLog::emit_unencrypted_events +101 โŒ +6.01%
AvmTest::keccak_hash +153 โŒ +5.99%
Test::consume_message_from_arbitrary_sender_public +383 โŒ +5.90%
ImportTest::public_dispatch +96 โŒ +5.90%
Parent::public_nested_static_call +215 โŒ +5.84%
AvmTest::sha256_hash +171 โŒ +5.84%
Test::consume_mint_public_message +494 โŒ +5.78%
AuthWitTest::public_dispatch +117 โŒ +5.75%
Parent::public_dispatch +461 โŒ +5.75%
DocsExample::public_dispatch +285 โŒ +5.70%
TokenBridge::claim_public +563 โŒ +5.69%
StaticChild::public_dispatch +157 โŒ +5.68%
DocsExample::get_shared_immutable_constrained_public_multiple +39 โŒ +5.67%
AvmTest::nested_call_to_add_with_gas +45 โŒ +5.67%
PriceFeed::public_dispatch +199 โŒ +5.64%
Crowdfunding::_publish_donation_receipts +68 โŒ +5.63%
Child::pub_inc_value +36 โŒ +5.54%
StaticChild::pub_inc_value +36 โŒ +5.54%
StaticParent::public_dispatch +310 โŒ +5.52%
StaticChild::pub_illegal_inc_value +37 โŒ +5.52%
AuthWitTest::consume_public +46 โŒ +5.50%
AvmTest::nested_call_to_add +45 โŒ +5.49%
AvmTest::nested_call_to_assert_same +45 โŒ +5.49%
AvmTest::nested_static_call_to_add +45 โŒ +5.49%
Child::pub_inc_value_internal +37 โŒ +5.48%
Child::public_dispatch +294 โŒ +5.46%
Child::set_value_twice_with_nested_first +47 โŒ +5.40%
Child::set_value_twice_with_nested_last +47 โŒ +5.40%
Parent::public_static_call +50 โŒ +5.38%
StaticParent::public_static_call +50 โŒ +5.38%
Benchmarking::public_dispatch +254 โŒ +5.38%
Uniswap::_approve_bridge_and_exit_input_asset_to_L1 +304 โŒ +5.36%
TokenBridge::_call_mint_on_token +63 โŒ +5.34%
StatefulTest::increment_public_value_no_init_check +94 โŒ +5.31%
AvmTest::variable_base_msm +23 โŒ +5.30%
DocsExample::initialize_shared_immutable +40 โŒ +5.30%
DocsExample::initialize_public_immutable +40 โŒ +5.30%
Spam::public_dispatch +177 โŒ +5.29%
Lending::get_asset +100 โŒ +5.28%
Benchmarking::broadcast +90 โŒ +5.28%
Router::public_dispatch +143 โŒ +5.26%
StatefulTest::increment_public_value +94 โŒ +5.23%
PriceFeed::get_price +88 โŒ +5.20%
AvmTest::read_storage_list +31 โŒ +5.16%
Benchmarking::increment_balance +150 โŒ +5.15%
FeeJuice::balance_of_public +90 โŒ +5.14%
NFT::set_minter +94 โŒ +5.13%
Token::set_minter +94 โŒ +5.13%
NFT::transfer_in_public +181 โŒ +5.13%
Lending::_deposit +113 โŒ +5.12%
Child::pub_set_value +16 โŒ +5.11%
StaticChild::pub_set_value +16 โŒ +5.11%
StatefulTest::get_public_value +85 โŒ +5.11%
StaticParent::public_nested_static_call +64 โŒ +5.09%
AuthRegistry::set_reject_all +80 โŒ +5.09%
PriceFeed::set_price +84 โŒ +5.08%
AvmTest::add_storage_map +100 โŒ +5.08%
AvmTest::read_storage_map +84 โŒ +5.08%
AuthRegistry::is_reject_all +85 โŒ +5.07%
AvmTest::set_read_storage_single +29 โŒ +5.06%
Router::_check_block_number +62 โŒ +5.05%
TokenBlacklist::balance_of_public +90 โŒ +5.04%
Token::balance_of_public +90 โŒ +5.04%
AuthRegistry::set_authorized +87 โŒ +5.04%
StaticParent::public_get_value_from_child +34 โŒ +5.03%
AuthRegistry::_set_authorized +88 โŒ +5.02%
AuthRegistry::is_consumable +92 โŒ +5.02%
NFT::_finish_transfer_to_public +81 โŒ +5.02%
Token::assert_minter_and_mint +111 โŒ +5.01%
FeeJuice::_increase_public_balance +112 โŒ +5.00%
AvmTest::assert_calldata_copy +21 โŒ +4.99%
Router::_check_timestamp +62 โŒ +4.98%
NFT::is_minter +85 โŒ +4.98%
Token::is_minter +85 โŒ +4.98%
Lending::init +138 โŒ +4.97%
Parent::pub_entry_point +34 โŒ +4.96%
StaticParent::public_call +34 โŒ +4.96%
AvmTest::create_different_nullifier_in_nested_call +33 โŒ +4.96%
Child::set_value_with_two_nested_calls +62 โŒ +4.96%
Auth::set_authorized_delay +265 โŒ +4.95%
Lending::repay_public +78 โŒ +4.94%
AvmTest::nested_static_call_to_set_storage +32 โŒ +4.93%
FPC::pay_refund +80 โŒ +4.92%
ImportTest::pub_call_public_fn +32 โŒ +4.92%
Lending::deposit_public +83 โŒ +4.92%
Auth::set_authorized +267 โŒ +4.92%
AuthRegistry::consume +140 โŒ +4.91%
Spam::public_spam +119 โŒ +4.91%
FeeJuice::public_dispatch +275 โŒ +4.91%
TokenBlacklist::_reduce_total_supply +43 โŒ +4.90%
Token::_reduce_total_supply +43 โŒ +4.90%
AvmTest::set_storage_map +82 โŒ +4.89%
AvmTest::create_same_nullifier_in_nested_call +32 โŒ +4.89%
AuthRegistry::public_dispatch +374 โŒ +4.88%
Auth::get_authorized +85 โŒ +4.88%
AvmTest::elliptic_curve_add +24 โŒ +4.88%
EasyPrivateVoting::end_vote +30 โŒ +4.88%
NFT::set_admin +30 โŒ +4.87%
Token::set_admin +30 โŒ +4.87%
FPC::pay_refund_with_shielded_rebate +76 โŒ +4.87%
DocsExample::get_shared_immutable_constrained_public_indirect +20 โŒ +4.85%
Auth::get_scheduled_authorized +80 โŒ +4.85%
Parent::pub_entry_point_twice +55 โŒ +4.85%
Lending::borrow_public +54 โŒ +4.84%
Lending::withdraw_public +54 โŒ +4.84%
TokenBlacklist::_increase_public_balance +119 โŒ +4.84%
Token::_increase_public_balance +119 โŒ +4.84%
AvmTest::poseidon2_hash +72 โŒ +4.83%
EasyPrivateVoting::add_to_tally_public +105 โŒ +4.81%
Token::transfer_public +217 โŒ +4.74%
TokenBlacklist::get_roles +115 โŒ +4.73%
FPC::prepare_fee +56 โŒ +4.73%
AvmTest::get_args_hash +74 โŒ +4.73%
TokenBlacklist::burn_public +262 โŒ +4.72%
Token::burn_public +211 โŒ +4.72%
FeeJuice::check_balance +97 โŒ +4.69%
DocsExample::get_shared_immutable_constrained_public +24 โŒ +4.66%
TokenBlacklist::transfer_public +275 โŒ +4.62%
AvmTest::public_dispatch +2,513 โŒ +4.61%
NFT::public_dispatch +983 โŒ +4.61%
AvmTest::read_storage_single +20 โŒ +4.58%
TokenBlacklist::update_roles +318 โŒ +4.58%
AvmTest::return_oracle +15 โŒ +4.55%
TokenBlacklist::total_supply +26 โŒ +4.43%
Token::total_supply +26 โŒ +4.43%
Lending::public_dispatch +1,123 โŒ +4.42%
NFT::mint +129 โŒ +4.42%
Lending::get_assets +34 โŒ +4.42%
NFT::owner_of +106 โŒ +4.41%
FeeJuice::set_portal +40 โŒ +4.40%
AvmTest::set_storage_list +11 โŒ +4.38%
Uniswap::public_dispatch +1,028 โŒ +4.37%
Auth::get_authorized_delay +89 โŒ +4.35%
TokenBridge::_assert_token_is_same +22 โŒ +4.35%
AvmTest::set_storage_single +10 โŒ +4.33%
Token::mint_public +134 โŒ +4.33%
NFT::public_get_symbol +21 โŒ +4.29%
TokenBridge::get_token +21 โŒ +4.29%
Token::get_admin +21 โŒ +4.29%
TokenBlacklist::mint_public +176 โŒ +4.28%
AvmInitializerTest::read_storage_immutable +20 โŒ +4.26%
NFT::get_admin +21 โŒ +4.24%
NFT::public_get_name +21 โŒ +4.24%
Token::public_get_name +21 โŒ +4.24%
Token::public_get_symbol +21 โŒ +4.24%
Uniswap::_assert_token_is_same +19 โŒ +4.24%
Lending::_withdraw +312 โŒ +4.23%
DelegatedOn::public_set_value +10 โŒ +4.22%
Lending::_borrow +308 โŒ +4.21%
AvmTest::elliptic_curve_add_and_double +26 โŒ +4.20%
Lending::update_accumulator +214 โŒ +4.18%
Lending::get_position +194 โŒ +4.18%
Token::public_dispatch +1,140 โŒ +4.18%
DocsExample::update_leader +12 โŒ +4.17%
Token::public_get_decimals +21 โŒ +4.12%
Lending::_repay +206 โŒ +4.03%
TokenBlacklist::public_dispatch +976 โŒ +4.00%
TokenBridge::get_portal_address_public +21 โŒ +3.98%
TokenBridge::public_dispatch +764 โŒ +3.88%
NFT::_store_point_in_transient_storage +13 โŒ +3.86%
StaticChild::pub_get_value +6 โŒ +3.70%
Child::pub_get_value +5 โŒ +3.65%
AvmTest::add_u128 +7 โŒ +3.48%
AvmTest::check_selector +6 โŒ +3.43%
AvmTest::to_radix_le +8 โŒ +3.40%
AvmTest::get_function_selector +5 โŒ +3.11%
Test::assert_public_global_vars +7 โŒ +2.88%
AvmTest::assertion_failure +4 โŒ +2.58%
AvmTest::keccak_f1600 +11 โŒ +2.36%
Test::dummy_public_call +2 โŒ +1.90%
AvmTest::add_args_return +2 โŒ +1.87%
AvmTest::assert_timestamp +2 โŒ +1.77%
AvmTest::assert_same +2 โŒ +1.69%
Test::is_time_equal +2 โŒ +1.68%
Auth::public_dispatch +150 โŒ +1.41%
FPC::public_dispatch +104 โŒ +1.14%
AvmTest::new_note_hash +1 โŒ +1.11%
AvmTest::new_nullifier +1 โŒ +1.11%
Test::emit_nullifier_public +1 โŒ +1.11%
AvmTest::get_fee_per_da_gas +1 โŒ +1.10%
AvmTest::get_sender +1 โŒ +1.10%
AvmTest::get_fee_per_l2_gas +1 โŒ +1.10%
AvmTest::get_version +1 โŒ +1.10%
AvmTest::get_transaction_fee +1 โŒ +1.10%
AvmTest::get_address +1 โŒ +1.10%
AvmTest::get_block_number +1 โŒ +1.10%
AvmTest::get_chain_id +1 โŒ +1.10%
AvmTest::get_timestamp +1 โŒ +1.10%
AvmTest::get_storage_address +1 โŒ +1.10%
AvmTest::set_opcode_u8 +1 โŒ +1.10%
AvmTest::get_l2_gas_left +1 โŒ +1.10%
AvmTest::get_da_gas_left +1 โŒ +1.10%
AvmTest::nullifier_collision +1 โŒ +1.06%
AvmTest::set_opcode_u32 +1 โŒ +1.05%
AvmTest::send_l2_to_l1_msg +1 โŒ +1.02%
Test::create_l2_to_l1_message_arbitrary_recipient_public +1 โŒ +1.02%
AvmTest::set_opcode_u64 +1 โŒ +1.01%
DocsExample::spend_public_authwit +1 โŒ +0.99%
AvmTest::set_opcode_small_field +1 โŒ +0.93%
AvmTest::nullifier_exists +1 โŒ +0.92%
AvmTest::l1_to_l2_msg_exists +1 โŒ +0.91%
AvmTest::note_hash_exists +1 โŒ +0.91%
AvmTest::modulo2 +1 โŒ +0.88%
AvmTest::assert_nullifier_exists +1 โŒ +0.88%
AvmTest::emit_nullifier_and_check +1 โŒ +0.85%
AvmTest::set_opcode_big_field +1 โŒ +0.81%
AvmTest::set_opcode_really_big_field +1 โŒ +0.81%
InclusionProofs::push_nullifier_public +1 โŒ +0.81%
InclusionProofs::test_nullifier_inclusion_from_public +1 โŒ +0.70%
TokenBlacklist::constructor +36 โŒ +0.45%
StatefulTest::public_dispatch +31 โŒ +0.40%
Crowdfunding::public_dispatch -28 โœ… -0.44%
EasyPrivateVoting::public_dispatch -58 โœ… -0.93%
AppSubscription::public_dispatch -103 โœ… -1.92%
Token::constructor -124 โœ… -2.27%
Claim::public_dispatch -112 โœ… -2.44%
PrivateFPC::public_dispatch -112 โœ… -2.54%
NFT::constructor -133 โœ… -2.60%
InclusionProofs::public_dispatch -131 โœ… -2.93%
AppSubscription::constructor -174 โœ… -4.23%
Crowdfunding::init -178 โœ… -4.49%
StatefulTest::public_constructor -172 โœ… -4.49%
AvmInitializerTest::public_dispatch -169 โœ… -4.50%
Claim::constructor -170 โœ… -4.63%
TokenBridge::constructor -170 โœ… -4.66%
PrivateFPC::constructor -170 โœ… -4.85%
EasyPrivateVoting::constructor -186 โœ… -5.06%
Auth::constructor -188 โœ… -5.32%
FPC::constructor -190 โœ… -5.41%
Uniswap::constructor -190 โœ… -5.41%
AvmInitializerTest::constructor -207 โœ… -6.83%
InclusionProofs::constructor -211 โœ… -6.85%
AvmTest::test_get_contract_instance -306 โœ… -26.20%
AvmTest::test_get_contract_instance_raw -421 โœ… -52.04%
AvmTest::pedersen_commit -729 โœ… -66.15%

Full diff report ๐Ÿ‘‡
Program Bytecode size in bytes (+/-) %
Test::create_l2_to_l1_message_public 2,369ย (+369) +18.45%
Token::complete_refund 3,131ย (+402) +14.73%
Token::mint_private 3,373ย (+415) +14.03%
AvmTest::pedersen_hash_with_index 3,438ย (+412) +13.62%
AvmTest::pedersen_hash 3,438ย (+412) +13.62%
TokenBlacklist::mint_private 4,215ย (+454) +12.07%
NFT::finalize_transfer_to_private 5,817ย (+581) +11.10%
CardGame::on_cards_claimed 7,383ย (+707) +10.59%
Token::shield 5,447ย (+512) +10.37%
TokenBlacklist::shield 6,581ย (+563) +9.36%
CardGame::public_dispatch 15,849ย (+1,190) +8.12%
AvmTest::debug_logging 1,322ย (+99) +8.09%
AvmTest::u128_from_integer_overflow 746ย (+52) +7.49%
AvmTest::bulk_testing 25,822ย (+1,764) +7.33%
AvmTest::u128_addition_overflow 1,260ย (+85) +7.23%
Test::public_dispatch 18,459ย (+1,231) +7.15%
Delegator::public_delegate_set_value 900ย (+60) +7.14%
AvmTest::emit_unencrypted_log 2,924ย (+191) +6.99%
CardGame::start_game 6,507ย (+421) +6.92%
CardGame::on_card_played 5,409ย (+339) +6.69%
TokenBridge::exit_to_l1_public 7,182ย (+444) +6.59%
Delegator::public_dispatch 2,031ย (+125) +6.56%
CardGame::on_game_joined 4,601ย (+279) +6.46%
Uniswap::swap_public 15,214ย (+917) +6.41%
Test::emit_unencrypted 1,626ย (+98) +6.41%
TestLog::public_dispatch 3,141ย (+188) +6.37%
DelegatedOn::public_dispatch 1,261ย (+72) +6.06%
TestLog::emit_unencrypted_events 1,781ย (+101) +6.01%
AvmTest::keccak_hash 2,708ย (+153) +5.99%
Test::consume_message_from_arbitrary_sender_public 6,874ย (+383) +5.90%
ImportTest::public_dispatch 1,723ย (+96) +5.90%
Parent::public_nested_static_call 3,897ย (+215) +5.84%
AvmTest::sha256_hash 3,100ย (+171) +5.84%
Test::consume_mint_public_message 9,047ย (+494) +5.78%
AuthWitTest::public_dispatch 2,151ย (+117) +5.75%
Parent::public_dispatch 8,482ย (+461) +5.75%
DocsExample::public_dispatch 5,288ย (+285) +5.70%
TokenBridge::claim_public 10,462ย (+563) +5.69%
StaticChild::public_dispatch 2,920ย (+157) +5.68%
DocsExample::get_shared_immutable_constrained_public_multiple 727ย (+39) +5.67%
AvmTest::nested_call_to_add_with_gas 839ย (+45) +5.67%
PriceFeed::public_dispatch 3,727ย (+199) +5.64%
Crowdfunding::_publish_donation_receipts 1,275ย (+68) +5.63%
Child::pub_inc_value 686ย (+36) +5.54%
StaticChild::pub_inc_value 686ย (+36) +5.54%
StaticParent::public_dispatch 5,922ย (+310) +5.52%
StaticChild::pub_illegal_inc_value 707ย (+37) +5.52%
AuthWitTest::consume_public 883ย (+46) +5.50%
AvmTest::nested_call_to_add 864ย (+45) +5.49%
AvmTest::nested_call_to_assert_same 864ย (+45) +5.49%
AvmTest::nested_static_call_to_add 864ย (+45) +5.49%
Child::pub_inc_value_internal 712ย (+37) +5.48%
Child::public_dispatch 5,677ย (+294) +5.46%
Child::set_value_twice_with_nested_first 917ย (+47) +5.40%
Child::set_value_twice_with_nested_last 917ย (+47) +5.40%
Parent::public_static_call 979ย (+50) +5.38%
StaticParent::public_static_call 979ย (+50) +5.38%
Benchmarking::public_dispatch 4,977ย (+254) +5.38%
Uniswap::_approve_bridge_and_exit_input_asset_to_L1 5,978ย (+304) +5.36%
TokenBridge::_call_mint_on_token 1,242ย (+63) +5.34%
StatefulTest::increment_public_value_no_init_check 1,865ย (+94) +5.31%
AvmTest::variable_base_msm 457ย (+23) +5.30%
DocsExample::initialize_shared_immutable 795ย (+40) +5.30%
DocsExample::initialize_public_immutable 795ย (+40) +5.30%
Spam::public_dispatch 3,524ย (+177) +5.29%
Lending::get_asset 1,993ย (+100) +5.28%
Benchmarking::broadcast 1,796ย (+90) +5.28%
Router::public_dispatch 2,862ย (+143) +5.26%
StatefulTest::increment_public_value 1,893ย (+94) +5.23%
PriceFeed::get_price 1,781ย (+88) +5.20%
AvmTest::read_storage_list 632ย (+31) +5.16%
Benchmarking::increment_balance 3,062ย (+150) +5.15%
FeeJuice::balance_of_public 1,842ย (+90) +5.14%
NFT::set_minter 1,925ย (+94) +5.13%
Token::set_minter 1,925ย (+94) +5.13%
NFT::transfer_in_public 3,712ย (+181) +5.13%
Lending::_deposit 2,322ย (+113) +5.12%
Child::pub_set_value 329ย (+16) +5.11%
StaticChild::pub_set_value 329ย (+16) +5.11%
StatefulTest::get_public_value 1,750ย (+85) +5.11%
StaticParent::public_nested_static_call 1,321ย (+64) +5.09%
AuthRegistry::set_reject_all 1,653ย (+80) +5.09%
PriceFeed::set_price 1,737ย (+84) +5.08%
AvmTest::add_storage_map 2,070ย (+100) +5.08%
AvmTest::read_storage_map 1,739ย (+84) +5.08%
AuthRegistry::is_reject_all 1,760ย (+85) +5.07%
AvmTest::set_read_storage_single 602ย (+29) +5.06%
Router::_check_block_number 1,290ย (+62) +5.05%
TokenBlacklist::balance_of_public 1,875ย (+90) +5.04%
Token::balance_of_public 1,875ย (+90) +5.04%
AuthRegistry::set_authorized 1,813ย (+87) +5.04%
StaticParent::public_get_value_from_child 710ย (+34) +5.03%
AuthRegistry::_set_authorized 1,840ย (+88) +5.02%
AuthRegistry::is_consumable 1,925ย (+92) +5.02%
NFT::_finish_transfer_to_public 1,696ย (+81) +5.02%
Token::assert_minter_and_mint 2,326ย (+111) +5.01%
FeeJuice::_increase_public_balance 2,353ย (+112) +5.00%
AvmTest::assert_calldata_copy 442ย (+21) +4.99%
Router::_check_timestamp 1,307ย (+62) +4.98%
NFT::is_minter 1,793ย (+85) +4.98%
Token::is_minter 1,793ย (+85) +4.98%
Lending::init 2,912ย (+138) +4.97%
Parent::pub_entry_point 719ย (+34) +4.96%
StaticParent::public_call 719ย (+34) +4.96%
AvmTest::create_different_nullifier_in_nested_call 698ย (+33) +4.96%
Child::set_value_with_two_nested_calls 1,313ย (+62) +4.96%
Auth::set_authorized_delay 5,614ย (+265) +4.95%
Lending::repay_public 1,658ย (+78) +4.94%
AvmTest::nested_static_call_to_set_storage 681ย (+32) +4.93%
FPC::pay_refund 1,705ย (+80) +4.92%
ImportTest::pub_call_public_fn 682ย (+32) +4.92%
Lending::deposit_public 1,769ย (+83) +4.92%
Auth::set_authorized 5,696ย (+267) +4.92%
AuthRegistry::consume 2,989ย (+140) +4.91%
Spam::public_spam 2,541ย (+119) +4.91%
FeeJuice::public_dispatch 5,879ย (+275) +4.91%
TokenBlacklist::_reduce_total_supply 920ย (+43) +4.90%
Token::_reduce_total_supply 920ย (+43) +4.90%
AvmTest::set_storage_map 1,760ย (+82) +4.89%
AvmTest::create_same_nullifier_in_nested_call 687ย (+32) +4.89%
AuthRegistry::public_dispatch 8,031ย (+374) +4.88%
Auth::get_authorized 1,827ย (+85) +4.88%
AvmTest::elliptic_curve_add 516ย (+24) +4.88%
EasyPrivateVoting::end_vote 645ย (+30) +4.88%
NFT::set_admin 646ย (+30) +4.87%
Token::set_admin 646ย (+30) +4.87%
FPC::pay_refund_with_shielded_rebate 1,637ย (+76) +4.87%
DocsExample::get_shared_immutable_constrained_public_indirect 432ย (+20) +4.85%
Auth::get_scheduled_authorized 1,730ย (+80) +4.85%
Parent::pub_entry_point_twice 1,190ย (+55) +4.85%
Lending::borrow_public 1,170ย (+54) +4.84%
Lending::withdraw_public 1,170ย (+54) +4.84%
TokenBlacklist::_increase_public_balance 2,579ย (+119) +4.84%
Token::_increase_public_balance 2,579ย (+119) +4.84%
AvmTest::poseidon2_hash 1,564ย (+72) +4.83%
EasyPrivateVoting::add_to_tally_public 2,289ย (+105) +4.81%
Token::transfer_public 4,799ย (+217) +4.74%
TokenBlacklist::get_roles 2,545ย (+115) +4.73%
FPC::prepare_fee 1,241ย (+56) +4.73%
AvmTest::get_args_hash 1,640ย (+74) +4.73%
TokenBlacklist::burn_public 5,815ย (+262) +4.72%
Token::burn_public 4,686ย (+211) +4.72%
FeeJuice::check_balance 2,165ย (+97) +4.69%
DocsExample::get_shared_immutable_constrained_public 539ย (+24) +4.66%
TokenBlacklist::transfer_public 6,230ย (+275) +4.62%
AvmTest::public_dispatch 56,974ย (+2,513) +4.61%
NFT::public_dispatch 22,292ย (+983) +4.61%
AvmTest::read_storage_single 457ย (+20) +4.58%
TokenBlacklist::update_roles 7,268ย (+318) +4.58%
AvmTest::return_oracle 345ย (+15) +4.55%
TokenBlacklist::total_supply 613ย (+26) +4.43%
Token::total_supply 613ย (+26) +4.43%
Lending::public_dispatch 26,507ย (+1,123) +4.42%
NFT::mint 3,049ย (+129) +4.42%
Lending::get_assets 804ย (+34) +4.42%
NFT::owner_of 2,507ย (+106) +4.41%
FeeJuice::set_portal 949ย (+40) +4.40%
AvmTest::set_storage_list 262ย (+11) +4.38%
Uniswap::public_dispatch 24,534ย (+1,028) +4.37%
Auth::get_authorized_delay 2,135ย (+89) +4.35%
TokenBridge::_assert_token_is_same 528ย (+22) +4.35%
AvmTest::set_storage_single 241ย (+10) +4.33%
Token::mint_public 3,232ย (+134) +4.33%
NFT::public_get_symbol 511ย (+21) +4.29%
TokenBridge::get_token 511ย (+21) +4.29%
Token::get_admin 511ย (+21) +4.29%
TokenBlacklist::mint_public 4,290ย (+176) +4.28%
AvmInitializerTest::read_storage_immutable 490ย (+20) +4.26%
NFT::get_admin 516ย (+21) +4.24%
NFT::public_get_name 516ย (+21) +4.24%
Token::public_get_name 516ย (+21) +4.24%
Token::public_get_symbol 516ย (+21) +4.24%
Uniswap::_assert_token_is_same 467ย (+19) +4.24%
Lending::_withdraw 7,689ย (+312) +4.23%
DelegatedOn::public_set_value 247ย (+10) +4.22%
Lending::_borrow 7,629ย (+308) +4.21%
AvmTest::elliptic_curve_add_and_double 645ย (+26) +4.20%
Lending::update_accumulator 5,329ย (+214) +4.18%
Lending::get_position 4,831ย (+194) +4.18%
Token::public_dispatch 28,394ย (+1,140) +4.18%
DocsExample::update_leader 300ย (+12) +4.17%
Token::public_get_decimals 531ย (+21) +4.12%
Lending::_repay 5,314ย (+206) +4.03%
TokenBlacklist::public_dispatch 25,359ย (+976) +4.00%
TokenBridge::get_portal_address_public 548ย (+21) +3.98%
TokenBridge::public_dispatch 20,450ย (+764) +3.88%
NFT::_store_point_in_transient_storage 350ย (+13) +3.86%
StaticChild::pub_get_value 168ย (+6) +3.70%
Child::pub_get_value 142ย (+5) +3.65%
AvmTest::add_u128 208ย (+7) +3.48%
AvmTest::check_selector 181ย (+6) +3.43%
AvmTest::to_radix_le 243ย (+8) +3.40%
AvmTest::get_function_selector 166ย (+5) +3.11%
Test::assert_public_global_vars 250ย (+7) +2.88%
AvmTest::assertion_failure 159ย (+4) +2.58%
AvmTest::keccak_f1600 478ย (+11) +2.36%
Test::dummy_public_call 107ย (+2) +1.90%
AvmTest::add_args_return 109ย (+2) +1.87%
AvmTest::assert_timestamp 115ย (+2) +1.77%
AvmTest::assert_same 120ย (+2) +1.69%
Test::is_time_equal 121ย (+2) +1.68%
Auth::public_dispatch 10,763ย (+150) +1.41%
FPC::public_dispatch 9,225ย (+104) +1.14%
AvmTest::new_note_hash 91ย (+1) +1.11%
AvmTest::new_nullifier 91ย (+1) +1.11%
Test::emit_nullifier_public 91ย (+1) +1.11%
AvmTest::get_fee_per_da_gas 92ย (+1) +1.10%
AvmTest::get_sender 92ย (+1) +1.10%
AvmTest::get_fee_per_l2_gas 92ย (+1) +1.10%
AvmTest::get_version 92ย (+1) +1.10%
AvmTest::get_transaction_fee 92ย (+1) +1.10%
AvmTest::get_address 92ย (+1) +1.10%
AvmTest::get_block_number 92ย (+1) +1.10%
AvmTest::get_chain_id 92ย (+1) +1.10%
AvmTest::get_timestamp 92ย (+1) +1.10%
AvmTest::get_storage_address 92ย (+1) +1.10%
AvmTest::set_opcode_u8 92ย (+1) +1.10%
AvmTest::get_l2_gas_left 92ย (+1) +1.10%
AvmTest::get_da_gas_left 92ย (+1) +1.10%
AvmTest::nullifier_collision 95ย (+1) +1.06%
AvmTest::set_opcode_u32 96ย (+1) +1.05%
AvmTest::send_l2_to_l1_msg 99ย (+1) +1.02%
Test::create_l2_to_l1_message_arbitrary_recipient_public 99ย (+1) +1.02%
AvmTest::set_opcode_u64 100ย (+1) +1.01%
DocsExample::spend_public_authwit 102ย (+1) +0.99%
AvmTest::set_opcode_small_field 108ย (+1) +0.93%
AvmTest::nullifier_exists 110ย (+1) +0.92%
AvmTest::l1_to_l2_msg_exists 111ย (+1) +0.91%
AvmTest::note_hash_exists 111ย (+1) +0.91%
AvmTest::modulo2 114ย (+1) +0.88%
AvmTest::assert_nullifier_exists 115ย (+1) +0.88%
AvmTest::emit_nullifier_and_check 119ย (+1) +0.85%
AvmTest::set_opcode_big_field 124ย (+1) +0.81%
AvmTest::set_opcode_really_big_field 124ย (+1) +0.81%
InclusionProofs::push_nullifier_public 124ย (+1) +0.81%
InclusionProofs::test_nullifier_inclusion_from_public 143ย (+1) +0.70%
TokenBlacklist::constructor 8,020ย (+36) +0.45%
StatefulTest::public_dispatch 7,752ย (+31) +0.40%
Crowdfunding::public_dispatch 6,356ย (-28) -0.44%
EasyPrivateVoting::public_dispatch 6,193ย (-58) -0.93%
AppSubscription::public_dispatch 5,260ย (-103) -1.92%
Token::constructor 5,332ย (-124) -2.27%
Claim::public_dispatch 4,473ย (-112) -2.44%
PrivateFPC::public_dispatch 4,305ย (-112) -2.54%
NFT::constructor 4,980ย (-133) -2.60%
InclusionProofs::public_dispatch 4,345ย (-131) -2.93%
AppSubscription::constructor 3,939ย (-174) -4.23%
Crowdfunding::init 3,788ย (-178) -4.49%
StatefulTest::public_constructor 3,660ย (-172) -4.49%
AvmInitializerTest::public_dispatch 3,587ย (-169) -4.50%
Claim::constructor 3,501ย (-170) -4.63%
TokenBridge::constructor 3,480ย (-170) -4.66%
PrivateFPC::constructor 3,338ย (-170) -4.85%
EasyPrivateVoting::constructor 3,488ย (-186) -5.06%
Auth::constructor 3,343ย (-188) -5.32%
FPC::constructor 3,321ย (-190) -5.41%
Uniswap::constructor 3,321ย (-190) -5.41%
AvmInitializerTest::constructor 2,823ย (-207) -6.83%
InclusionProofs::constructor 2,869ย (-211) -6.85%
AvmTest::test_get_contract_instance 862ย (-306) -26.20%
AvmTest::test_get_contract_instance_raw 388ย (-421) -52.04%
AvmTest::pedersen_commit 373ย (-729) -66.15%

github-actions[bot] avatar Oct 14 '24 15:10 github-actions[bot]

Changes to circuit sizes

Generated at commit: f721b3a9ac24fcfb0234f61de7ecb58011dd11f8, compared to commit: ab0c80d7493e6bdbc58dcd517b248de6ddd6fd67

๐Ÿงพ Summary (100% most significant diffs)

Program ACIR opcodes (+/-) % Circuit size (+/-) %
empty_nested 0 โž– +โˆž% +5 โŒ +31.25%
empty_nested_simulated 0 โž– 0.00% +5 โŒ +31.25%
private_kernel_empty_simulated 0 โž– 0.00% +5 โŒ +31.25%
rollup_base -58 โœ… -0.01% -518 โœ… -0.02%
public_kernel_tail -9 โœ… -0.00% -461 โœ… -0.02%
public_kernel_merge -62 โœ… -0.12% -520 โœ… -0.05%
parity_root -28 โœ… -0.52% -1,847 โœ… -0.05%
rollup_block_root -128 โœ… -3.01% -1,513 โœ… -0.05%
rollup_block_merge -120 โœ… -1.65% -1,048 โœ… -0.06%
rollup_root -120 โœ… -1.65% -1,050 โœ… -0.06%
rollup_merge -122 โœ… -3.21% -1,051 โœ… -0.06%
private_kernel_reset -59 โœ… -0.06% -520 โœ… -0.11%
private_kernel_reset_4_4_4_4_4_4_4_4_1 -59 โœ… -0.17% -519 โœ… -0.69%
private_kernel_inner -61 โœ… -0.14% -523 โœ… -0.99%
private_kernel_tail_to_public -62 โœ… -0.21% -523 โœ… -1.31%
private_kernel_tail -62 โœ… -1.32% -524 โœ… -5.49%
private_kernel_empty 0 โž– 0.00% -936,476 โœ… -99.63%

Full diff report ๐Ÿ‘‡
Program ACIR opcodes (+/-) % Circuit size (+/-) %
empty_nested 0ย (0) +โˆž% 21ย (+5) +31.25%
empty_nested_simulated 1ย (0) 0.00% 21ย (+5) +31.25%
private_kernel_empty_simulated 1ย (0) 0.00% 21ย (+5) +31.25%
rollup_base 483,173ย (-58) -0.01% 3,355,737ย (-518) -0.02%
public_kernel_tail 258,424ย (-9) -0.00% 2,270,260ย (-461) -0.02%
public_kernel_merge 53,532ย (-62) -0.12% 1,103,602ย (-520) -0.05%
parity_root 5,399ย (-28) -0.52% 3,775,125ย (-1,847) -0.05%
rollup_block_root 4,124ย (-128) -3.01% 2,837,267ย (-1,513) -0.05%
rollup_block_merge 7,169ย (-120) -1.65% 1,899,418ย (-1,048) -0.06%
rollup_root 7,153ย (-120) -1.65% 1,899,402ย (-1,050) -0.06%
rollup_merge 3,673ย (-122) -3.21% 1,896,246ย (-1,051) -0.06%
private_kernel_reset 91,933ย (-59) -0.06% 467,730ย (-520) -0.11%
private_kernel_reset_4_4_4_4_4_4_4_4_1 34,897ย (-59) -0.17% 74,479ย (-519) -0.69%
private_kernel_inner 44,042ย (-61) -0.14% 52,354ย (-523) -0.99%
private_kernel_tail_to_public 29,828ย (-62) -0.21% 39,510ย (-523) -1.31%
private_kernel_tail 4,648ย (-62) -1.32% 9,021ย (-524) -5.49%
private_kernel_empty 671ย (0) 0.00% 3,486ย (-936,476) -99.63%

github-actions[bot] avatar Oct 19 '24 17:10 github-actions[bot]