Skip to content

Commit

Permalink
Add IERC165 import to IERC6381
Browse files Browse the repository at this point in the history
  • Loading branch information
ThunderDeliverer committed Jul 18, 2023
1 parent aa8fe2f commit bf0c4df
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
1 change: 0 additions & 1 deletion contracts/RMRK/emotable/EmotableRepository.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
pragma solidity ^0.8.16;

import "./IERC6381.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

error BulkParametersOfUnequalLength();
error ExpiredPresignedEmote();
Expand Down
4 changes: 3 additions & 1 deletion contracts/RMRK/emotable/IERC6381.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

pragma solidity ^0.8.16;

interface IERC6381 {
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface IERC6381 is IERC165 {
event Emoted(
address indexed emoter,
address indexed collection,
Expand Down
2 changes: 1 addition & 1 deletion docs/RMRK/emotable/EmotableRepository.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ function supportsInterface(bytes4 interfaceId) external view returns (bool)




*Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.*

#### Parameters

Expand Down
22 changes: 22 additions & 0 deletions docs/RMRK/emotable/IERC6381.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,28 @@ function presignedEmote(address emoter, address collection, uint256 tokenId, str
| r | bytes32 | undefined |
| s | bytes32 | undefined |

### supportsInterface

```solidity
function supportsInterface(bytes4 interfaceId) external view returns (bool)
```



*Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas.*

#### Parameters

| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 | undefined |

#### Returns

| Name | Type | Description |
|---|---|---|
| _0 | bool | undefined |



## Events
Expand Down

0 comments on commit bf0c4df

Please sign in to comment.