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
// SPDX-License-Identifier: MIT | |
// by dennison@tally.xyz | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/access/AccessControl.sol"; | |
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; | |
contract Roles is ERC1155, AccessControl { | |
// errors | |
error NoDuplicateRoles(); |
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
const namehash = require('eth-ens-namehash').hash | |
const tldName = 'conviction-experimental.open.aragonpm.eth' | |
const tldHash = namehash(tldName) | |
console.log(`Namehash: ${tldHash}`) |