generated from storyprotocol/solidity-template
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes tests to support the new module enrollment logic Adds more auth tests
- Loading branch information
Showing
30 changed files
with
661 additions
and
131 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { ModuleDependencies } from "contracts/lib/modules/Module.sol"; | ||
|
||
/// @title Module Gateway Interface | ||
/// @notice Interface for a Story Protocol module gateway, which is a contract | ||
/// that may be granted access by the module registry to call module | ||
/// functions declared by the gateway's module dependency set. | ||
interface IGateway { | ||
|
||
/// @notice Synchronizes all downstream dependencies via the module registry. | ||
/// @dev This function may only be called by the module registry. | ||
/// @return dependencies The freshly updated dependencies needed by the gateway. | ||
function updateDependencies() external returns (ModuleDependencies memory dependencies); | ||
|
||
/// @notice Fetches all module dependencies required by the gateway contract. | ||
/// @return dependencies The dependencies that the gateway requires from the protocol. | ||
function getDependencies() external view returns (ModuleDependencies memory dependencies); | ||
|
||
} |
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,9 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { IModule } from "contracts/interfaces/modules/base/IModule.sol"; | ||
|
||
/// @title Licensing Module Interface | ||
/// @notice Interface for the licensing module | ||
/// TODO(ramarti): Fill this in. | ||
interface ILicensingModule is IModule {} |
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.