-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cleanup types, and comments, etc.
add an index.js consistently type looksLikeFoo() an assertion for the governor's installation in assertContractGovernance()
- Loading branch information
1 parent
fb4e312
commit 7498e76
Showing
13 changed files
with
137 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './src/types.js'; |
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,31 @@ | ||
// @ts-check | ||
|
||
export { | ||
ChoiceMethod, | ||
ElectionType, | ||
QuorumRule, | ||
looksLikeQuestionSpec, | ||
positionIncluded, | ||
looksLikeIssueForType, | ||
buildUnrankedQuestion, | ||
} from './question.js'; | ||
|
||
export { | ||
validateQuestionDetails, | ||
validateQuestionFromCounter, | ||
} from './contractGovernor.js'; | ||
|
||
export { handleParamGovernance } from './contractHelper.js'; | ||
|
||
export { | ||
makeParamChangePositions, | ||
validateParamChangeQuestion, | ||
assertBallotConcernsQuestion, | ||
} from './governParam.js'; | ||
|
||
export { ParamType, assertType } from './paramManager.js'; | ||
|
||
export { | ||
assertContractGovernance, | ||
assertContractRegistrar, | ||
} from './validators.js'; |
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
Oops, something went wrong.