forked from Project-DARC/DARC
-
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
Showing
6 changed files
with
183 additions
and
1 deletion.
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
40 changes: 40 additions & 0 deletions
40
...l/Plugin/Conditions/TokenStateExpressionFunction/CertainTokenNumberExpressionFunction.sol
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,40 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.9; | ||
/** | ||
* @title ConditionExpressionFunctions | ||
* @author DARC Team | ||
* @notice Functions of criteria expression related to Machine State | ||
*/ | ||
|
||
|
||
import "../../../MachineState.sol"; | ||
import "../../../MachineStateManager.sol"; | ||
import "../../../Utilities/StringUtils.sol"; | ||
import "../../../Utilities/OpcodeMap.sol"; | ||
|
||
contract CertainTokenNumberExpressionFunction is MachineStateManager{ | ||
|
||
function certainTokenDividendWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenDividendWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenDividendWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenVotingWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenVotingWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenVotingWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...lugin/Conditions/TokenStateExpressionFunction/CertainTokenPermyriadExpressionFunction.sol
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,40 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.9; | ||
/** | ||
* @title ConditionExpressionFunctions | ||
* @author DARC Team | ||
* @notice Functions of criteria expression related to Machine State | ||
*/ | ||
|
||
|
||
import "../../../MachineState.sol"; | ||
import "../../../MachineStateManager.sol"; | ||
import "../../../Utilities/StringUtils.sol"; | ||
import "../../../Utilities/OpcodeMap.sol"; | ||
|
||
contract CertainTokenPermyriadExpressionFunction is MachineStateManager{ | ||
|
||
function certainTokenDividendWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenDividendWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenDividendWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenVotingWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenVotingWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokenVotingWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
} |
68 changes: 68 additions & 0 deletions
68
...col/Plugin/Conditions/TokenStateExpressionFunction/TotalTokenNumberExpressionFunction.sol
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,68 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.9; | ||
/** | ||
* @title ConditionExpressionFunctions | ||
* @author DARC Team | ||
* @notice Functions of criteria expression related to Machine State | ||
*/ | ||
|
||
|
||
import "../../../MachineState.sol"; | ||
import "../../../MachineStateManager.sol"; | ||
import "../../../Utilities/StringUtils.sol"; | ||
import "../../../Utilities/OpcodeMap.sol"; | ||
|
||
contract TotalTokenNumberExpressionFunction is MachineStateManager{ | ||
|
||
// total token dividend & voting weight number less/greater/in range | ||
function totalTokenDividendWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenVotingWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenDividendWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenVotingWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenDividendWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenVotingWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
|
||
|
||
|
||
function certainTokensDividendWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokensDividendWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokensDividendWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokensVotingWeightLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokensVotingWeightGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function certainTokensVotingWeightInRange(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../Plugin/Conditions/TokenStateExpressionFunction/TotalTokenPermyriadExpressionFunction.sol
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,33 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity ^0.8.9; | ||
/** | ||
* @title ConditionExpressionFunctions | ||
* @author DARC Team | ||
* @notice Functions of criteria expression related to Machine State | ||
*/ | ||
|
||
|
||
import "../../../MachineState.sol"; | ||
import "../../../MachineStateManager.sol"; | ||
import "../../../Utilities/StringUtils.sol"; | ||
import "../../../Utilities/OpcodeMap.sol"; | ||
|
||
contract TotalTokenPermyriadExpressionFunction is MachineStateManager{ | ||
|
||
// total token dividend & voting weight permyriad less/greater/in range | ||
function totalTokenDividendWeightPermyriadLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenVotingWeightPermyriadLessThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenDividendWeightPermyriadGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
|
||
function totalTokenVotingWeightPermyriadGreaterThan(Operation memory operation, NodeParam memory param) internal view returns (bool) { | ||
// | ||
} | ||
} |
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 |
---|---|---|
|
@@ -250,4 +250,5 @@ struct Plugin { | |
* plugin or after operation plugin | ||
*/ | ||
bool bIsBeforeOperation; | ||
|
||
} |