JBCCIPSucker
Inherits: JBSucker, IAny2EVMMessageReceiver
A JBSucker implementation to suck tokens between chains with Chainlink CCIP
State Variables
CCIP_ROUTER
ICCIPRouter public immutable CCIP_ROUTER;
REMOTE_CHAIN_ID
uint256 public immutable REMOTE_CHAIN_ID;
REMOTE_CHAIN_SELECTOR
uint64 public immutable REMOTE_CHAIN_SELECTOR;
Functions
constructor
constructor(
    JBCCIPSuckerDeployer deployer,
    IJBDirectory directory,
    IJBTokens tokens,
    IJBPermissions permissions,
    JBAddToBalanceMode addToBalanceMode,
    address trusted_forwarder
)
    JBSucker(directory, permissions, tokens, addToBalanceMode, trusted_forwarder);
Parameters
| Name | Type | Description | 
|---|---|---|
deployer | JBCCIPSuckerDeployer | A contract that deploys the clones for this contracts. | 
directory | IJBDirectory | A contract storing directories of terminals and controllers for each project. | 
tokens | IJBTokens | A contract that manages token minting and burning. | 
permissions | IJBPermissions | A contract storing permissions. | 
addToBalanceMode | JBAddToBalanceMode | The mode of adding tokens to balance. | 
trusted_forwarder | address | 
peerChainId
Returns the chain on which the peer is located.
function peerChainId() external view virtual override returns (uint256 chainId);
Returns
| Name | Type | Description | 
|---|---|---|
chainId | uint256 | of the peer. |