跳到主要内容

JBControllerUtility

Provides tools for contracts with functionality that can only be accessed by a project's controller.

Traits

abstract

Code

https://github.com/jbx-protocol/juice-contracts-v3/blob/main/contracts/abstract/JBControllerUtility.sol

Interfaces

NameDescription
IJBControllerUtilityGeneral interface for the methods in this contract that interact with the blockchain's state according to the protocol's rules.

Constructor

/**
@param _directory A contract storing directories of terminals and controllers for each project.
*/
constructor(IJBDirectory _directory) {
directory = _directory;
}
  • _directory is an IJBDirectory contract storing directories of terminals and controllers for each project.

Modifiers

NameData
onlyController
  • uint256 _projectId

Read

FunctionDefinition
directory

Traits

  • immutable

Returns

  • IJBDirectory directory