🏭Deployer

This is the deployer for all TokenTable core and proxy contracts. All initial setup and configuration is automatically done here.

Interface

Events

TTUDeployerInitialized

This event is emitted once in the initializer.

event TTUDeployerInitialized(
    address unlockerImpl,
    address futureTokenImpl,
    address trackerTokenImpl,
    address beaconManagerImpl,
    address feeCollector
);

TokenTableSuiteDeployed

event TokenTableSuiteDeployed(
    address by,
    string projectId,
    address unlocker,
    address futureToken,
    address trackerToken
);

FeeCollectorChanged

event FeeCollectorChanged(address feeCollector);

Functions

deployTTSuite

 /**
  * @notice Deploys and configures a new set of TokenTable products.
  * @dev Emits: TokenTableSuiteDeployed. Throws: AlreadyDeployed.
  * @param projectToken The project token.
  * @param projectId A unique projectId (otherwise will revert).
  * @param disableAutoUpgrade When set to false, a Clone instead of a
  * BeaconProxy is created to prevent future upgradeability.
  */
 function deployTTSuite(
     IERC20Metadata projectToken,
     string calldata projectId,
     bool disableAutoUpgrade
 )
     external
     returns (TokenTableUnlockerV2, TTFutureTokenV2, TTTrackerTokenV2);

Errors

0xa6ef0ba1

This error is thrown if projectId already exists when attempting to deploy TT suite.

error AlreadyDeployed();

Last updated