-
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.
feat: erc5192 for soulbound document
- Loading branch information
Showing
6 changed files
with
194 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: CC0-1.0 | ||
pragma solidity >=0.8.23 <0.9.0; | ||
|
||
interface IERC5192 { | ||
/// @notice Emitted when the locking status is changed to locked. | ||
/// @dev If a token is minted and the status is locked, this event should be emitted. | ||
/// @param tokenId The identifier for a token. | ||
event Locked(uint256 tokenId); | ||
|
||
/// @notice Emitted when the locking status is changed to unlocked. | ||
/// @dev If a token is minted and the status is unlocked, this event should be emitted. | ||
/// @param tokenId The identifier for a token. | ||
event Unlocked(uint256 tokenId); | ||
|
||
/// @notice Returns the locking status of an Soulbound Token | ||
/// @dev SBTs assigned to zero address are considered invalid, and queries | ||
/// about them do throw. | ||
/// @param tokenId The identifier for an SBT. | ||
function locked(uint256 tokenId) external 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
pragma solidity >=0.8.23 <0.9.0; | ||
|
||
import {IDocumentStore} from "./IDocumentStore.sol"; | ||
import "./IDocumentStore.sol"; | ||
|
||
interface IOwnableDocumentStore is IDocumentStore { | ||
function issue(address to, bytes32 documentRoot) external; | ||
function issue(address to, bytes32 documentRoot, bool locked) external; | ||
} |
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.