Skip to main content

JBCCIPSuckerDeployer

Git Source

Inherits: JBSuckerDeployer, IJBCCIPSuckerDeployer

An IJBSuckerDeployer implementation to deploy contracts.

State Variables​

ccipRemoteChainId​

Store the remote chain id

uint256 public ccipRemoteChainId;

ccipRemoteChainSelector​

The remote chain selector target of all sucker deployed by this contract.

uint64 public ccipRemoteChainSelector;

ccipRouter​

Store the address of the CCIP router for this chain.

ICCIPRouter public ccipRouter;

Functions​

constructor​

constructor(
IJBDirectory directory,
IJBPermissions permissions,
IJBTokens tokens,
address configurator,
address trusted_forwarder
)
JBSuckerDeployer(directory, permissions, tokens, configurator, trusted_forwarder);

Parameters

NameTypeDescription
directoryIJBDirectoryThe directory of terminals and controllers for projects.
permissionsIJBPermissionsThe permissions contract for the deployer.
tokensIJBTokensThe contract that manages token minting and burning.
configuratoraddressThe address of the configurator.
trusted_forwarderaddress

_layerSpecificConfigurationIsSet​

Check if the layer specific configuration is set or not. Used as a sanity check.

function _layerSpecificConfigurationIsSet() internal view override returns (bool);

setChainSpecificConstants​

handles some layer specific configuration that can't be done in the constructor otherwise deployment addresses would change. TODO natspec

function setChainSpecificConstants(uint256 remoteChainId, uint64 remoteChainSelector, ICCIPRouter router) external;

Errors​

JBCCIPSuckerDeployer_InvalidCCIPRouter​

error JBCCIPSuckerDeployer_InvalidCCIPRouter(address router);