-
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.
- Loading branch information
Showing
3 changed files
with
93 additions
and
14 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,60 @@ | ||
# IERC5192 | ||
|
||
## Functions | ||
|
||
### locked | ||
|
||
```solidity | ||
function locked( | ||
uint256 tokenId | ||
) external returns (bool) | ||
``` | ||
|
||
Returns the locking status of an Soulbound Token | ||
|
||
SBTs assigned to zero address are considered invalid, and queries | ||
about them do throw. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | Description | | ||
| :--- | :--- | :---------- | | ||
| `tokenId` | uint256 | The identifier for an SBT. | | ||
|
||
## Events | ||
|
||
### Locked | ||
|
||
```solidity | ||
event Locked( | ||
uint256 tokenId | ||
) | ||
``` | ||
|
||
Emitted when the locking status is changed to locked. | ||
|
||
If a token is minted and the status is locked, this event should be emitted. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | Description | | ||
| :--- | :--- | :---------- | | ||
| `tokenId` | uint256 | The identifier for a token. | | ||
### Unlocked | ||
|
||
```solidity | ||
event Unlocked( | ||
uint256 tokenId | ||
) | ||
``` | ||
|
||
Emitted when the locking status is changed to unlocked. | ||
|
||
If a token is minted and the status is unlocked, this event should be emitted. | ||
|
||
#### Parameters | ||
|
||
| Name | Type | Description | | ||
| :--- | :--- | :---------- | | ||
| `tokenId` | uint256 | The identifier for a token. | | ||
|
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