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
633b0941
Commit
633b0941
authored
Nov 30, 2023
by
inphi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ctb): Specify L1 auth requirements
parent
2e647210
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
276 additions
and
0 deletions
+276
-0
Deployer.sol
packages/contracts-bedrock/scripts/Deployer.sol
+10
-0
Authorization.t.sol
packages/contracts-bedrock/test/Authorization.t.sol
+266
-0
No files found.
packages/contracts-bedrock/scripts/Deployer.sol
View file @
633b0941
...
@@ -484,6 +484,16 @@ abstract contract Deployer is Script {
...
@@ -484,6 +484,16 @@ abstract contract Deployer is Script {
abi_ = string(res);
abi_ = string(res);
}
}
/// @notice
function getMethodIdentifiers(string memory _name) public returns (string[] memory ids_) {
string[] memory cmd = new string[](3);
cmd[0] = Executables.bash;
cmd[1] = "-c";
cmd[2] = string.concat(Executables.jq, " '.methodIdentifiers | keys' < ", _getForgeArtifactPath(_name));
bytes memory res = vm.ffi(cmd);
ids_ = stdJson.readStringArray(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 doc_) {
function getUserDoc(string memory _name) internal returns (string memory doc_) {
string[] memory cmd = new string[](3);
string[] memory cmd = new string[](3);
...
...
packages/contracts-bedrock/test/Authorization.t.sol
0 → 100644
View file @
633b0941
This diff is collapsed.
Click to expand it.
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