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
98722d8c
Unverified
Commit
98722d8c
authored
Dec 08, 2022
by
mergify[bot]
Committed by
GitHub
Dec 08, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4325 from ethereum-optimism/sc/ctb-struct-comments
maint(ctb): comments for structs
parents
8b70a0f3
de860285
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
1 deletion
+15
-1
OptimismPortal.sol
packages/contracts-bedrock/contracts/L1/OptimismPortal.sol
+5
-1
ResourceMetering.sol
packages/contracts-bedrock/contracts/L1/ResourceMetering.sol
+4
-0
RLPReader.sol
...s/contracts-bedrock/contracts/libraries/rlp/RLPReader.sol
+3
-0
MerkleTrie.sol
...contracts-bedrock/contracts/libraries/trie/MerkleTrie.sol
+3
-0
No files found.
packages/contracts-bedrock/contracts/L1/OptimismPortal.sol
View file @
98722d8c
...
@@ -20,7 +20,11 @@ import { Semver } from "../universal/Semver.sol";
...
@@ -20,7 +20,11 @@ import { Semver } from "../universal/Semver.sol";
*/
*/
contract OptimismPortal is Initializable, ResourceMetering, Semver {
contract OptimismPortal is Initializable, ResourceMetering, Semver {
/**
/**
* @notice Represents a proven withdrawal
* @notice Represents a proven withdrawal.
*
* @custom:field outputRoot Root of the L2 output this was proven against.
* @custom:field timestamp Timestamp at whcih the withdrawal was proven.
* @custom:field l2OutputIndex Index of the output this was proven against.
*/
*/
struct ProvenWithdrawal {
struct ProvenWithdrawal {
bytes32 outputRoot;
bytes32 outputRoot;
...
...
packages/contracts-bedrock/contracts/L1/ResourceMetering.sol
View file @
98722d8c
...
@@ -16,6 +16,10 @@ abstract contract ResourceMetering is Initializable {
...
@@ -16,6 +16,10 @@ abstract contract ResourceMetering is Initializable {
/**
/**
* @notice Represents the various parameters that control the way in which resources are
* @notice Represents the various parameters that control the way in which resources are
* metered. Corresponds to the EIP-1559 resource metering system.
* metered. Corresponds to the EIP-1559 resource metering system.
*
* @custom:field prevBaseFee Base fee from the previous block(s).
* @custom:field prevBoughtGas Amount of gas bought so far in the current block.
* @custom:field prevBlockNum Last block number that the base fee was updated.
*/
*/
struct ResourceParams {
struct ResourceParams {
uint128 prevBaseFee;
uint128 prevBaseFee;
...
...
packages/contracts-bedrock/contracts/libraries/rlp/RLPReader.sol
View file @
98722d8c
...
@@ -27,6 +27,9 @@ library RLPReader {
...
@@ -27,6 +27,9 @@ library RLPReader {
/**
/**
* @notice Struct representing an RLP item.
* @notice Struct representing an RLP item.
*
* @custom:field length Length of the RLP item.
* @custom:field ptr Pointer to the RLP item in memory.
*/
*/
struct RLPItem {
struct RLPItem {
uint256 length;
uint256 length;
...
...
packages/contracts-bedrock/contracts/libraries/trie/MerkleTrie.sol
View file @
98722d8c
...
@@ -13,6 +13,9 @@ import { RLPReader } from "../rlp/RLPReader.sol";
...
@@ -13,6 +13,9 @@ import { RLPReader } from "../rlp/RLPReader.sol";
library MerkleTrie {
library MerkleTrie {
/**
/**
* @notice Struct representing a node in the trie.
* @notice Struct representing a node in the trie.
*
* @custom:field encoded The RLP-encoded node.
* @custom:field decoded The RLP-decoded node.
*/
*/
struct TrieNode {
struct TrieNode {
bytes encoded;
bytes encoded;
...
...
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