JBProjectHandles
Manages reverse records that point from JB project IDs to ENS nodes. If the reverse record of a project ID is pointed to an ENS node with a TXT record matching the ID of that project, then the ENS node will be considered the "handle" for that project.
Code
https://github.com/jbx-protocol/juice-project-handles/blob/main/contracts/JBProjectHandles.sol
Addresses
Ethereum mainnet: 0xe3c01e9fd2a1dcc6edf0b1058b5757138ef9ffb6
Ethereum rinkeby: 0xd0b970348dfc7ae57e81b4f069ed0e06127be85d
Interfaces
Name | Description |
---|---|
IJBProjectHandles | General interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules. |
Inheritance
Contract | Description |
---|---|
JBOperatable | Includes convenience functionality for checking a message sender's permissions before executing certain transactions. |
Constructor
/**
@param _projects A contract which mints ERC-721's that represent project ownership and transfers.
@param _operatorStore A contract storing operator assignments.
@param _textResolver The ENS text resolver contract address.
*/
constructor(
IJBProjects _projects,
IJBOperatorStore _operatorStore,
ITextResolver _textResolver
) JBOperatable(_jbOperatorStore) {
projects = _projects;
textResolver = _textResolver;
}
_projects
is a contract which mints ERC-721's that represent project ownership and transfers._operatorStore
is a contract storing operator assignments._textResolver
is the ENS text resolver contract address.
Events
Name | Data |
---|---|
SetEnsNameParts |
|
Properties
Name | Definition |
---|---|
projects | Returns |
textResolver | Returns |
TEXT_KEY | Returns
|
Read
Function | Definition |
---|---|
handleOf | Params
Returns
|
ensNamePartsOf | Params
Returns
|
Write
Function | Definition |
---|---|
setEnsNamePartsFor | Traits Params
|