Skip to content

Commit

Permalink
Apply automatic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
d1onys1us authored and github-actions[bot] committed May 20, 2023
1 parent 72b75ab commit 4a0b283
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 22 deletions.
123 changes: 102 additions & 21 deletions packages/protocol/.gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,31 +1,112 @@
GasComparisonTest:testCompare_hashKey() (gas: 8911)
GasComparisonTest:testCompare_hashString(uint256) (runs: 256, μ: 13091, ~: 12617)
BridgeTest:test_process_message() (gas: 820390)
BridgeTest:test_retry_message_and_end_up_in_failed_status() (gas: 845511)
BridgeTest:test_send_message_ether_reverts_if_value_doesnt_match_expected() (gas: 28569)
BridgeTest:test_send_message_ether_reverts_when_dest_chain_is_not_enabled() (gas: 35064)
BridgeTest:test_send_message_ether_reverts_when_dest_chain_same_as_block_chainid() (gas: 32809)
BridgeTest:test_send_message_ether_reverts_when_owner_is_zero_address() (gas: 25995)
BridgeTest:test_send_message_ether_reverts_when_to_is_zero_address() (gas: 35071)
BridgeTest:test_send_message_ether_with_no_processing_fee() (gas: 97893)
BridgeTest:test_send_message_ether_with_processing_fee() (gas: 98036)
BridgeTest:test_send_message_ether_with_processing_fee_invalid_amount() (gas: 35291)
GasComparisonTest:testCompare_hashKey() (gas: 8851)
GasComparisonTest:testCompare_hashString(uint256) (runs: 256, μ: 13010, ~: 12901)
GasComparisonTest:testCompare_hashTwo() (gas: 6991)
GasComparisonTest:testCompare_increment(uint256) (runs: 256, μ: 256896, ~: 210364)
GasComparisonTest:testCompare_loadBlockMetadata() (gas: 16191)
GasComparisonTest:testCompare_return() (gas: 8617)
GasComparisonTest:testCompare_increment(uint256) (runs: 256, μ: 253859, ~: 245252)
GasComparisonTest:testCompare_loadBlockMetadata() (gas: 16023)
GasComparisonTest:testCompare_return() (gas: 9769)
GasComparisonTest:testCompare_send0Ether() (gas: 6531)
LibFixedPointMathTest:testExp1() (gas: 697)
LibFixedPointMathTest:testExp3() (gas: 1533)
LibFixedPointMathTest:testExpGas() (gas: 5328)
LibFixedPointMathTest:testExpLargest() (gas: 3929)
LibFixedPointMathTest:testExpSmallest() (gas: 3909)
LibFixedPointMathTest:testExpSome() (gas: 3827)
TaikoL1Test:test_block_time_decreases_but_fee_remains() (gas: 14868515)
TaikoL1Test:test_block_time_increases_and_fee_decreases() (gas: 14862630)
TaikoL1Test:test_more_blocks_than_ring_buffer_size() (gas: 16845131)
TaikoL1Test:test_multiple_blocks_in_one_L1_block() (gas: 671686)
TaikoL1Test:test_verifying_multiple_blocks_once() (gas: 2827699)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_decreases() (gas: 5084293)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_decreases_then_stabilizes_non_consecutive() (gas: 4938904)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_decreasses_then_stabilizes_consecutive() (gas: 4904289)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_hectic() (gas: 5050843)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_increases_slowly_then_drastically() (gas: 4788268)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_stable_above_target_prooving_consecutive() (gas: 2605085)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_stable_above_target_proving_non_consecutive() (gas: 7674352)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_stable_below_target_prooving_consecutive() (gas: 2605151)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_stable_below_target_proving_non_consecutive() (gas: 7674392)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_stable_consecutive() (gas: 2604245)
TaikoL1LibTokenomicsTestnet:test_balanced_state_reward_and_fee_if_proof_time_stable_non_consecutive() (gas: 24254184)
TaikoL1LibTokenomicsTestnet:test_changing_proof_time_parameters() (gas: 5295465)
TaikoL1OracleTest:testOracleProverCanAlwaysOverwriteIfNotSameProof() (gas: 1078004)
TaikoL1OracleTest:testOracleProverCannotOverwriteIfSameProof() (gas: 1180074)
TaikoL1OracleTest:testOracleProverWithSignature() (gas: 418560)
TaikoL1OracleTest:test_cooldown_more_blocks_than_ring_buffer_size() (gas: 16761238)
TaikoL1OracleTest:test_if_oracle_is_disabled_cooldown_is_still_as_proofCooldownPeriod() (gas: 15032093)
TaikoL1OracleTest:test_if_prover_is_system_prover_cooldown_is_systemProofCooldownPeriod() (gas: 14944100)
TaikoL1OracleTest:test_if_systemProver_can_prove_but_regular_provers_can_overwrite() (gas: 16204434)
TaikoL1OracleTest:test_if_system_proofs_can_be_verified_without_regular_proofs() (gas: 13560938)
TaikoL1OracleTest:test_if_there_is_no_system_and_oracle_provers() (gas: 15290904)
TaikoL1OracleTest:test_that_simple_oracle_prover_cannot_be_verified_only_if_normal_proof_comes_in() (gas: 17123613)
TaikoL1Test:testEthDepositsToL2Gas() (gas: 1699570)
TaikoL1Test:testEthDepositsToL2Reverts() (gas: 78780)
TaikoL1Test:test_deposit_hash_creation() (gas: 625344)
TaikoL1Test:test_getCrossChainBlockHash0() (gas: 19380)
TaikoL1Test:test_getCrossChainSignalRoot() (gas: 2349016)
TaikoL1Test:test_more_blocks_than_ring_buffer_size() (gas: 13895995)
TaikoL1Test:test_multiple_blocks_in_one_L1_block() (gas: 672054)
TaikoL1Test:test_verifying_multiple_blocks_once() (gas: 2702476)
TaikoTokenTest:test_burn() (gas: 69036)
TaikoTokenTest:test_burn_amount_exceeded() (gas: 86697)
TaikoTokenTest:test_burn_invalid_address() (gas: 24403)
TaikoTokenTest:test_burn_not_proto_broker() (gas: 23727)
TaikoTokenTest:test_mint() (gas: 80799)
TaikoTokenTest:test_mint_invalid_address() (gas: 24316)
TaikoTokenTest:test_mint_invalid_amount() (gas: 75840)
TaikoTokenTest:test_mint_not_proto_broker() (gas: 23892)
TaikoTokenTest:test_proper_premint() (gas: 19259)
TaikoTokenTest:test_transfer() (gas: 96072)
TaikoTokenTest:test_transferFrom() (gas: 112064)
TaikoTokenTest:test_transferFrom_amount_exceeded() (gas: 83486)
TaikoTokenTest:test_transferFrom_from_is_invalid() (gas: 110686)
TaikoTokenTest:test_transferFrom_to_is_invalid() (gas: 111007)
TaikoTokenTest:test_transferFrom_to_is_the_contract() (gas: 108187)
TaikoTokenTest:test_transfer_amount_exceeded() (gas: 83487)
TaikoTokenTest:test_transfer_invalid_address() (gas: 81806)
TaikoTokenTest:test_transfer_to_contract_address() (gas: 81512)
TaikoTokenTest:test_upgrade() (gas: 2594724)
TaikoTokenTest:test_upgrade_without_admin_rights() (gas: 2583477)
TestEtherVault:test_authorize_authorizes_when_owner_authorizing() (gas: 35976)
TestEtherVault:test_authorize_reverts_when_authorizing_already_authorized_address() (gas: 38267)
TestEtherVault:test_authorize_reverts_when_authorizing_zero_address() (gas: 11255)
TestEtherVault:test_authorize_reverts_when_not_owner_authorizing() (gas: 14565)
TestEtherVault:test_receive_allows_sending_when_authorized_only() (gas: 58673)
TestEtherVault:test_release_ether_releases_to_authorized_sender() (gas: 47785)
TestEtherVault:test_release_ether_releases_to_receipient_via_authorized_sender() (gas: 50509)
TestEtherVault:test_release_ether_reverts_when_zero_address() (gas: 41783)
TestLib1559Math:test1559_2X1XRatio(uint16) (runs: 256, μ: 489986, ~: 489986)
TestLib1559Math:test1559_SpecalCases(uint16) (runs: 256, μ: 19937, ~: 19937)
TestLibTokenomics:testTokenomicsFeeCalcWithNonZeroStartBips() (gas: 4930)
TestLibTokenomics:testTokenomicsFeeCalcWithZeroStartBips() (gas: 4875)
TestLibTokenomics:testTokenomicsRewardCalcWithNonZeroStartBips() (gas: 5571)
TestLibTokenomics:testTokenomicsRewardCalcWithZeroStartBips() (gas: 4799)
TestTaikoL2:testAnchorSigning(bytes32) (runs: 256, μ: 23542, ~: 23563)
TestTaikoL2:testAnchorTxsBlocktimeConstant() (gas: 7245201)
TestTaikoL2:testAnchorTxsBlocktimeDecreasing() (gas: 2184915)
TestTaikoL2:testAnchorTxsBlocktimeIncreasing() (gas: 2046549)
TestTaikoL2:testAnchorTxsFailByNonTaikoL2Signer() (gas: 62542)
TestTaikoL2:testAnchorTxsFailInTheSameBlock() (gas: 161344)
TestTaikoL2:testGetBasefee() (gas: 229572)
TestSignalService:test_get_signal_slot_returns_expected_slot_for_app_and_signal() (gas: 2572904)
TestSignalService:test_is_signal_received() (gas: 193489)
TestSignalService:test_is_signal_received_reverts_if_app_is_zero_address() (gas: 11525)
TestSignalService:test_is_signal_received_reverts_if_proof_is_invalid() (gas: 11459)
TestSignalService:test_is_signal_received_reverts_if_signal_is_zero() (gas: 11448)
TestSignalService:test_is_signal_received_reverts_if_src_chain_id_is_same_as_block_chain_id() (gas: 9281)
TestSignalService:test_is_signal_sent_reverts_if_address_is_zero() (gas: 8625)
TestSignalService:test_is_signal_sent_reverts_if_signal_is_zero() (gas: 8663)
TestSignalService:test_send_signal_and_signal_is_sent_correctly() (gas: 32026)
TestSignalService:test_send_signal_reverts_if_signal_is_zero() (gas: 8555)
TestSignalServiceCalc:testAbiEncodeBytes32(bytes32) (runs: 256, μ: 2025332, ~: 2025332)
TestSignalServiceCalc:testLibRLPWriterOne() (gas: 7608)
TestTaiko1559Params:testAndVerifyTaiko1559Params() (gas: 1566794)
TestTaikoL2:testAnchorSigning(bytes32) (runs: 256, μ: 23168, ~: 23189)
TestTaikoL2:testAnchorTxsBlocktimeConstant() (gas: 7048037)
TestTaikoL2:testAnchorTxsBlocktimeDecreasing() (gas: 2121027)
TestTaikoL2:testAnchorTxsBlocktimeIncreasing() (gas: 1986025)
TestTaikoL2:testAnchorTxsFailByNonTaikoL2Signer() (gas: 59408)
TestTaikoL2:testAnchorTxsFailInTheSameBlock() (gas: 157347)
TestTaikoL2:testGetBasefee() (gas: 210245)
TestTokenVault:test_receive_erc20_canonical_to_dest_chain_transfers_from_canonical_token() (gas: 145226)
TestTokenVault:test_receive_erc20_non_canonical_to_dest_chain_deploys_new_bridged_token_and_mints() (gas: 1635363)
TestTokenVault:test_send_erc20_no_processing_fee() (gas: 223153)
TestTokenVault:test_send_erc20_processing_fee() (gas: 236646)
TestTokenVault:test_send_erc20_processing_fee_reverts_if_msg_value_too_low() (gas: 85164)
TestTokenVault:test_send_erc20_revert_if_allowance_not_set() (gas: 47988)
TestTokenVault:test_send_erc20_reverts_invalid_amount() (gas: 26982)
TestTokenVault:test_send_erc20_reverts_invalid_to() (gas: 19161)
TestTokenVault:test_send_erc20_reverts_invalid_token_address() (gas: 24900)
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ receive() external payable
function init(address _addressManager, bytes32 _genesisBlockHash, uint64 _initBlockFee, uint64 _initProofTimeTarget, uint64 _initProofTimeIssued) external
```

Initialize the rollup.
Initialize the rollup. Dummy test.

#### Parameters

Expand Down

0 comments on commit 4a0b283

Please sign in to comment.