-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48c2541
commit 7c69502
Showing
14 changed files
with
196 additions
and
22 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
2 changes: 1 addition & 1 deletion
2
...derSwapReceiver/interfaces/IThunderSwapHooks.sol/interface.IThunderSwapHooks.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
2 changes: 1 addition & 1 deletion
2
...pReceiver/interfaces/IThunderSwapReceiver.sol/interface.IThunderSwapReceiver.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
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
2 changes: 1 addition & 1 deletion
2
docs/src/src/core/LiquidityProviderToken.sol/contract.LiquidityProviderToken.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
2 changes: 1 addition & 1 deletion
2
docs/src/src/core/ThunderSwapPool.sol/contract.ThunderSwapPool.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
2 changes: 1 addition & 1 deletion
2
docs/src/src/core/ThunderSwapPoolFactory.sol/contract.ThunderSwapPoolFactory.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
2 changes: 1 addition & 1 deletion
2
docs/src/src/core/interfaces/IThunderSwapPool.sol/interface.IThunderSwapPool.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
2 changes: 1 addition & 1 deletion
2
...c/core/lib/LiquiditySupplyAndSwapMath.sol/library.LiquiditySupplyAndSwapMath.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
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
130 changes: 130 additions & 0 deletions
130
docs/src/src/governance/ThunderGovernor.sol/contract.ThunderGovernor.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 |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# ThunderGovernor | ||
[Git Source](https://github.com/Sahil-Gujrati/thunder-swap/blob/48c2541b51225b6140f6383b56ab80046ea60c03/src/governance/ThunderGovernor.sol) | ||
|
||
**Inherits:** | ||
Governor, GovernorSettings, GovernorCountingSimple, GovernorVotes, GovernorVotesQuorumFraction, GovernorTimelockControl | ||
|
||
|
||
## Functions | ||
### constructor | ||
|
||
|
||
```solidity | ||
constructor( | ||
IVotes _token, | ||
TimelockController _timelock | ||
) | ||
Governor("ThunderGovernor") | ||
GovernorSettings(7200, 50400, 100e18) | ||
GovernorVotes(_token) | ||
GovernorVotesQuorumFraction(4) | ||
GovernorTimelockControl(_timelock); | ||
``` | ||
|
||
### votingDelay | ||
|
||
|
||
```solidity | ||
function votingDelay() public view override(Governor, GovernorSettings) returns (uint256); | ||
``` | ||
|
||
### votingPeriod | ||
|
||
|
||
```solidity | ||
function votingPeriod() public view override(Governor, GovernorSettings) returns (uint256); | ||
``` | ||
|
||
### quorum | ||
|
||
|
||
```solidity | ||
function quorum(uint256 blockNumber) | ||
public | ||
view | ||
override(Governor, GovernorVotesQuorumFraction) | ||
returns (uint256); | ||
``` | ||
|
||
### state | ||
|
||
|
||
```solidity | ||
function state(uint256 proposalId) | ||
public | ||
view | ||
override(Governor, GovernorTimelockControl) | ||
returns (ProposalState); | ||
``` | ||
|
||
### proposalNeedsQueuing | ||
|
||
|
||
```solidity | ||
function proposalNeedsQueuing(uint256 proposalId) | ||
public | ||
view | ||
override(Governor, GovernorTimelockControl) | ||
returns (bool); | ||
``` | ||
|
||
### proposalThreshold | ||
|
||
|
||
```solidity | ||
function proposalThreshold() public view override(Governor, GovernorSettings) returns (uint256); | ||
``` | ||
|
||
### _queueOperations | ||
|
||
|
||
```solidity | ||
function _queueOperations( | ||
uint256 proposalId, | ||
address[] memory targets, | ||
uint256[] memory values, | ||
bytes[] memory calldatas, | ||
bytes32 descriptionHash | ||
) | ||
internal | ||
override(Governor, GovernorTimelockControl) | ||
returns (uint48); | ||
``` | ||
|
||
### _executeOperations | ||
|
||
|
||
```solidity | ||
function _executeOperations( | ||
uint256 proposalId, | ||
address[] memory targets, | ||
uint256[] memory values, | ||
bytes[] memory calldatas, | ||
bytes32 descriptionHash | ||
) | ||
internal | ||
override(Governor, GovernorTimelockControl); | ||
``` | ||
|
||
### _cancel | ||
|
||
|
||
```solidity | ||
function _cancel( | ||
address[] memory targets, | ||
uint256[] memory values, | ||
bytes[] memory calldatas, | ||
bytes32 descriptionHash | ||
) | ||
internal | ||
override(Governor, GovernorTimelockControl) | ||
returns (uint256); | ||
``` | ||
|
||
### _executor | ||
|
||
|
||
```solidity | ||
function _executor() internal view override(Governor, GovernorTimelockControl) returns (address); | ||
``` | ||
|
20 changes: 20 additions & 0 deletions
20
docs/src/src/governance/ThunderTimelock.sol/contract.ThunderTimeLock.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ThunderTimeLock | ||
[Git Source](https://github.com/Sahil-Gujrati/thunder-swap/blob/48c2541b51225b6140f6383b56ab80046ea60c03/src/governance/ThunderTimelock.sol) | ||
|
||
**Inherits:** | ||
TimelockController | ||
|
||
|
||
## Functions | ||
### constructor | ||
|
||
|
||
```solidity | ||
constructor( | ||
uint256 minDelay, | ||
address[] memory proposers, | ||
address[] memory executors | ||
) | ||
TimelockController(minDelay, proposers, executors, msg.sender); | ||
``` | ||
|