-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit a5a24fe43c97d00d2cb08f8755d3c0e43a2eec70)
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 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,25 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
pragma solidity >=0.8.23 <0.9.0; | ||
|
||
import "../base/BaseDocumentStore.sol"; | ||
|
||
/** | ||
* @title DocumentStore | ||
* @notice A contract for storing and revoking documents with access control | ||
*/ | ||
contract DocumentStoreInitializable is BaseDocumentStore { | ||
/** | ||
* @notice Initialises the contract with a name and initial admin | ||
*/ | ||
constructor() initializer {} | ||
|
||
/** | ||
* @notice Internally initialises the contract with a name and owner | ||
* @param _name The name of the contract | ||
* @param initAdmin The owner of the contract | ||
*/ | ||
function initialize(string memory _name, address initAdmin) public initializer { | ||
__BaseDocumentStore_init(_name, initAdmin); | ||
} | ||
} |
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,13 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
pragma solidity >=0.8.23 <0.9.0; | ||
|
||
import "../base/BaseOwnableDocumentStore.sol"; | ||
|
||
contract OwnableDocumentStoreInitializable is BaseOwnableDocumentStore { | ||
constructor() initializer {} | ||
|
||
function initialize(string memory name_, string memory symbol_, address initAdmin) public initializer { | ||
__OwnableDocumentStore_init(name_, symbol_, initAdmin); | ||
} | ||
} |