-
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.
* Added .solcover.js - skip lab folders that aren't tested yet * In deploy-example.js, - export prepareInitializerArgs for use in tests * In faq.md, - fix typo * In FismoAccess.sol, - remove FismoStore import and use, since FismoView.getStore method is inherited * In FismoClone, - remove FismoStore import and use, since FismoView.getStore method is inherited - in init method, revert with ALREADY_INITIALIZED if owner address is already set * In FismoConstants.sol, - Added ALREADY_INITIALIZED, STATE_EXISTS - updated text of INITIALIZER_REVERTED and GUARD_REVERTED * In FismoOperate.sol, - use getState rather than getStateIndex and direct mapping access * In FismoTools.sol, - refactor/renamed enforceHasContractCode to requireContractCode * In FismoUpdate.sol, - in installAndInitializeMachine, - refactor/renamed enforceHasContractCode to requireContractCode - in addState, - pass false instead of index to storeState - in updateState, - remove fetch of state index - pass true instead of index to storeState - in addTransition, - remove fetch of machine - remove fetch of state index - pass true instead of index to storeState - in storeState, - change _index arg to _shouldExist - pass _shouldExist instead of index to getState * In FismoView.sol - in getState, - added bool _shouldExist arg - after fetching revert if state existence doesn't match the _shouldExist * In IFismoUpdate.sol and IFismoUpdate.md, - updated doc * In LockableDoorGuards.sol, - imported FismoTools and FismoStore - extended FismoTools - in initialize, - require _keyToken to not be zero address, and revert with no reason (for test) - require contract code, reverting with CODELESS_INITIALIZER (for test) - in LockableDoor_Locked_Exit, - require user not be the contract owner, reverting with no reason (for test) * In revert-reasons.js, - added ALREADY_INTIALIZED - updated text of INITIALIZER_REVERTED and GUARD_REVERTED * In FismoTest.js, - import prepareInitializerArgs and deployTokens - in both IFismoClone methods contexts - added init() context - "Should revert if not called by cloneFismo on an instance it created" - in IFismoUpdate methods context - added installAndInitializeMachine() context - "Should install a valid guarded Machine and initialize it" - "Should revert with initializer's revert reason if it reverts with one" - "Should revert with generic reason if initializer reverts without one" - Should revert if operator address is zero address" - "Should revert if machine id is invalid" - "Should revert if machine already exists" - "Should revert if a state id in a state is invalid" - "Should revert if an action id in a transition is invalid" -"Should revert if a target state id in a transition is invalid" - in IFismoView methods context - added getOwner() context - "Should return the owner of the Fismo instance" * In LockableDoorTest.js, - in invokeAction() context, - added test "Should revert with a generic reason if guard reverts without one" * In README.md, - added link to FSM wikipedia article
- Loading branch information
Showing
17 changed files
with
308 additions
and
51 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,3 @@ | ||
module.exports = { | ||
skipFiles: ['lab/NightClub','lab/StopWatch','lab/Tokens'] | ||
}; |
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
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
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.