-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): autocommit changes to solidity docs and omit private stat…
…e vars and functions (#490)
- Loading branch information
Showing
14 changed files
with
121 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
## LibData | ||
|
||
### BlockMetadata | ||
|
||
```solidity | ||
struct BlockMetadata { | ||
uint256 id; | ||
uint256 l1Height; | ||
bytes32 l1Hash; | ||
address beneficiary; | ||
bytes32 txListHash; | ||
bytes32 mixHash; | ||
bytes extraData; | ||
uint64 gasLimit; | ||
uint64 timestamp; | ||
uint64 commitHeight; | ||
uint64 commitSlot; | ||
} | ||
``` | ||
|
||
### ProposedBlock | ||
|
||
```solidity | ||
struct ProposedBlock { | ||
bytes32 metaHash; | ||
address proposer; | ||
uint64 proposedAt; | ||
} | ||
``` | ||
|
||
### ForkChoice | ||
|
||
```solidity | ||
struct ForkChoice { | ||
bytes32 blockHash; | ||
uint64 provenAt; | ||
address[] provers; | ||
} | ||
``` | ||
|
||
### State | ||
|
||
```solidity | ||
struct State { | ||
mapping(uint256 => bytes32) l2Hashes; | ||
mapping(uint256 => struct LibData.ProposedBlock) proposedBlocks; | ||
mapping(uint256 => mapping(bytes32 => struct LibData.ForkChoice)) forkChoices; | ||
mapping(address => mapping(uint256 => bytes32)) commits; | ||
uint64 genesisHeight; | ||
uint64 genesisTimestamp; | ||
uint64 __reservedA1; | ||
uint64 statusBits; | ||
uint64 nextBlockId; | ||
uint64 lastProposedAt; | ||
uint64 avgBlockTime; | ||
uint64 __avgGasLimit; | ||
uint64 latestVerifiedHeight; | ||
uint64 latestVerifiedId; | ||
uint64 avgProofTime; | ||
uint64 __reservedC1; | ||
uint256[42] __gap; | ||
} | ||
``` | ||
|
||
### TentativeState | ||
|
||
```solidity | ||
struct TentativeState { | ||
mapping(address => bool) proposers; | ||
mapping(address => bool) provers; | ||
bool whitelistProposers; | ||
bool whitelistProvers; | ||
uint256[46] __gap; | ||
} | ||
``` | ||
|
||
### saveProposedBlock | ||
|
||
```solidity | ||
function saveProposedBlock(struct LibData.State state, uint256 id, struct LibData.ProposedBlock blk) internal | ||
``` | ||
|
||
### getProposedBlock | ||
|
||
```solidity | ||
function getProposedBlock(struct LibData.State state, uint256 id) internal view returns (struct LibData.ProposedBlock) | ||
``` | ||
|
||
### getL2BlockHash | ||
|
||
```solidity | ||
function getL2BlockHash(struct LibData.State state, uint256 number) internal view returns (bytes32) | ||
``` | ||
|
||
### getStateVariables | ||
|
||
```solidity | ||
function getStateVariables(struct LibData.State state) internal view returns (uint64 genesisHeight, uint64 latestVerifiedHeight, uint64 latestVerifiedId, uint64 nextBlockId) | ||
``` | ||
|
||
### hashMetadata | ||
|
||
```solidity | ||
function hashMetadata(struct LibData.BlockMetadata meta) internal pure returns (bytes32) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
_This is Taiko's governance and fee token._ | ||
|
||
|
||
### Mint | ||
|
||
```solidity | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 0 additions & 6 deletions
6
packages/website/docs/smart-contracts/common/ConfigManager.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
## ConfigManager | ||
|
||
### kv | ||
|
||
```solidity | ||
mapping(bytes32 => bytes) kv | ||
``` | ||
|
||
### Updated | ||
|
||
```solidity | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.