Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
ccd7c86f
Commit
ccd7c86f
authored
Nov 27, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: gas-snapshot
parent
70cb6d94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+11
-11
Deployer.sol
packages/contracts-bedrock/scripts/Deployer.sol
+13
-13
No files found.
packages/contracts-bedrock/.gas-snapshot
View file @
ccd7c86f
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 352379)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 352334)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_1() (gas: 2950542)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_1() (gas: 2950496)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_0() (gas: 540708)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_0() (gas: 540710)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_1() (gas: 4052922)
GasBenchMark_L1StandardBridge_Deposit:test_depositERC20_benchmark_1() (gas: 4052903)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_0() (gas: 442085)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_0() (gas: 442015)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_1() (gas: 3487812)
GasBenchMark_L1StandardBridge_Deposit:test_depositETH_benchmark_1() (gas: 3487764)
GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (gas: 43010)
GasBenchMark_L1StandardBridge_Finalize:test_finalizeETHWithdrawal_benchmark() (gas: 42970)
GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 86653)
GasBenchMark_L2OutputOracle:test_proposeL2Output_benchmark() (gas: 86629)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68485)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark() (gas: 68474)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68988)
GasBenchMark_OptimismPortal:test_depositTransaction_benchmark_1() (gas: 68911)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 143255)
GasBenchMark_OptimismPortal:test_proveWithdrawalTransaction_benchmark() (gas: 143106)
\ No newline at end of file
\ No newline at end of file
packages/contracts-bedrock/scripts/Deployer.sol
View file @
ccd7c86f
...
@@ -370,7 +370,7 @@ abstract contract Deployer is Script {
...
@@ -370,7 +370,7 @@ abstract contract Deployer is Script {
}
}
/// @notice Returns the receipt of a deployment transaction.
/// @notice Returns the receipt of a deployment transaction.
function _getDeployReceiptByContractAddress(address
addr) internal returns (string memory
) {
function _getDeployReceiptByContractAddress(address
_addr) internal returns (string memory receipt_
) {
string[] memory cmd = new string[](3);
string[] memory cmd = new string[](3);
cmd[0] = Executables.bash;
cmd[0] = Executables.bash;
cmd[1] = "-c";
cmd[1] = "-c";
...
@@ -378,64 +378,64 @@ abstract contract Deployer is Script {
...
@@ -378,64 +378,64 @@ abstract contract Deployer is Script {
Executables.jq,
Executables.jq,
" -r '.receipts[] | select(.contractAddress == ",
" -r '.receipts[] | select(.contractAddress == ",
'"',
'"',
vm.toString(addr),
vm.toString(
_
addr),
'"',
'"',
")' < ",
")' < ",
deployPath
deployPath
);
);
bytes memory res = vm.ffi(cmd);
bytes memory res = vm.ffi(cmd);
string memory receipt = string(res);
string memory receipt = string(res);
re
turn
receipt;
re
ceipt_ =
receipt;
}
}
/// @notice Returns the devdoc for a deployed contract.
/// @notice Returns the devdoc for a deployed contract.
function getDevDoc(string memory _name) internal returns (string memory) {
function getDevDoc(string memory _name) internal returns (string memory
doc_
) {
string[] memory cmd = new string[](3);
string[] memory cmd = new string[](3);
cmd[0] = Executables.bash;
cmd[0] = Executables.bash;
cmd[1] = "-c";
cmd[1] = "-c";
cmd[2] = string.concat(Executables.jq, " -r '.devdoc' < ", _getForgeArtifactPath(_name));
cmd[2] = string.concat(Executables.jq, " -r '.devdoc' < ", _getForgeArtifactPath(_name));
bytes memory res = vm.ffi(cmd);
bytes memory res = vm.ffi(cmd);
return
string(res);
doc_ =
string(res);
}
}
/// @notice Returns the storage layout for a deployed contract.
/// @notice Returns the storage layout for a deployed contract.
function getStorageLayout(string memory _name) internal returns (string memory) {
function getStorageLayout(string memory _name) internal returns (string memory
layout_
) {
string[] memory cmd = new string[](3);
string[] memory cmd = new string[](3);
cmd[0] = Executables.bash;
cmd[0] = Executables.bash;
cmd[1] = "-c";
cmd[1] = "-c";
cmd[2] = string.concat(Executables.jq, " -r '.storageLayout' < ", _getForgeArtifactPath(_name));
cmd[2] = string.concat(Executables.jq, " -r '.storageLayout' < ", _getForgeArtifactPath(_name));
bytes memory res = vm.ffi(cmd);
bytes memory res = vm.ffi(cmd);
return
string(res);
layout_ =
string(res);
}
}
/// @notice Returns the abi for a deployed contract.
/// @notice Returns the abi for a deployed contract.
function getAbi(string memory _name) public returns (string memory) {
function getAbi(string memory _name) public returns (string memory
abi_
) {
string[] memory cmd = new string[](3);
string[] memory cmd = new string[](3);
cmd[0] = Executables.bash;
cmd[0] = Executables.bash;
cmd[1] = "-c";
cmd[1] = "-c";
cmd[2] = string.concat(Executables.jq, " -r '.abi' < ", _getForgeArtifactPath(_name));
cmd[2] = string.concat(Executables.jq, " -r '.abi' < ", _getForgeArtifactPath(_name));
bytes memory res = vm.ffi(cmd);
bytes memory res = vm.ffi(cmd);
return
string(res);
abi_ =
string(res);
}
}
/// @notice Returns the userdoc for a deployed contract.
/// @notice Returns the userdoc for a deployed contract.
function getUserDoc(string memory _name) internal returns (string memory) {
function getUserDoc(string memory _name) internal returns (string memory
doc_
) {
string[] memory cmd = new string[](3);
string[] memory cmd = new string[](3);
cmd[0] = Executables.bash;
cmd[0] = Executables.bash;
cmd[1] = "-c";
cmd[1] = "-c";
cmd[2] = string.concat(Executables.jq, " -r '.userdoc' < ", _getForgeArtifactPath(_name));
cmd[2] = string.concat(Executables.jq, " -r '.userdoc' < ", _getForgeArtifactPath(_name));
bytes memory res = vm.ffi(cmd);
bytes memory res = vm.ffi(cmd);
return
string(res);
doc_ =
string(res);
}
}
/// @notice
/// @notice
function getMetadata(string memory _name) internal returns (string memory) {
function getMetadata(string memory _name) internal returns (string memory
metadata_
) {
string[] memory cmd = new string[](3);
string[] memory cmd = new string[](3);
cmd[0] = Executables.bash;
cmd[0] = Executables.bash;
cmd[1] = "-c";
cmd[1] = "-c";
cmd[2] = string.concat(Executables.jq, " '.metadata | tostring' < ", _getForgeArtifactPath(_name));
cmd[2] = string.concat(Executables.jq, " '.metadata | tostring' < ", _getForgeArtifactPath(_name));
bytes memory res = vm.ffi(cmd);
bytes memory res = vm.ffi(cmd);
return
string(res);
metadata_ =
string(res);
}
}
/// @dev Pulls the `_initialized` storage slot information from the Forge artifacts for a given contract.
/// @dev Pulls the `_initialized` storage slot information from the Forge artifacts for a given contract.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment