SDL Pool CCIP Controller Primary
Last updated
Last updated
The SDLPoolCCIPControllerPrimary
acts as an interface between the PrimarySDLPool
and secondary chains by handling CCIP messaging.
This contract is deployed only on the primary chain.
Returns the current CCIP router
Name | Type | Description |
---|---|---|
Returns the address of the LINK token
Name | Type | Description |
---|---|---|
Returns the address of the SDL token
Returns the address of the SDL pool
Returns the address of the reSDL bridge
Returns the maximum CCIP fee in LINK to be paid on outgoing messages
Returns the destination address for a whitelisted chain
Returns the CCIP extra args for sending updates for a whitelisted chain
Returns the CCIP extra args for sending rewards for a whitelisted chain
Returns the total reSDL supply on a whitelisted chain
Returns the wrapper token for a reward token
Returns the address of the rewards initator
Returns a list of all whitelisted chains
Sets the CCIP router
Handles the outgoing transfer of an reSDL token to another chain
Handles the incoming transfer of an reSDL token from another chain
Sends a CCIP message
Processes a received CCIP message
Withdraws tokens held by this contract
Sets the maximum LINK fee to be paid on an outgoing CCIP message
Sets the address of the reSDL token bridge
Claims and distributes rewards between all secondary chains
Whitelists a new chain
Removes an existing whitelisted chain
Approves the CCIP router to transfer tokens on behalf of this contract
Sets the wrapped token address for a reward token
Sets the extra args used for sending updates to a chain
Sets the extra args used for sending rewards to a chain
Sets the rewards initiator
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
router
address
router address
linkToken
address
address of LINK token
sdlToken
address
address of SDL token
sdlPool
address
address of SDL pool
reSDLTokenBridge
address
address of reSDL bridge
maxLINKFee
uint256
max fee in LINK
_chainSelector
address
id of chain
destination
address
destination address
_chainSelector
address
id of chain
extraArgs
byts
extra args
_chainSelector
address
id of chain
extraArgs
bytes
extra args
_chainSelector
address
id of chain
reSDLSupply
uint256
total reSDL supply on chain
_token
address
address of reward token
wrapper
address
address of wrapper token
rewardsInitiator
address
address of rewards initiator
chainSelectors
uint64[]
list of whitelisted chain ids
_router
address
router address
_destinationChainSelector
uint64
id of the destination chain
_sender
address
sender of the transfer
_tokenId
uint256
id of token
receiver
address
the destination address
token
RESDLToken
the token being transferred
_sourceChainSelector
uint64
id of the source chain
_receiver
address
receiver of the transfer
_tokenId
uint256
id of reSDL token
_reSDLToken
RESDLToken
reSDL token
_sourceChainSelector
uint64
id of the destination chain
_evmToAnyMessage
EVMToAntMessage
CCIP message
_message
Any2EVMMessage
CCIP message
_tokens
address[]
list of tokens to withdraw
_amounts
uint256[]
list of corresponding amounts to withdraw
_receiver
address
address to receive tokens
_maxLINKFee
uint256
maximum fee in LINK
_reSDLTokenBridge
address
address of reSDL token bridge
_chainSelector
uint64
id of chain
_destination
address
address to receive CCIP messages on chain
_updateExtraArgs
bytes
extraArgs for sending updates to this destination as defined in CCIP docs
_rewardsExtraArgs
bytes
extraArgs for sending rewards to this destination as defined in CCIP docs
_chainSelector
uint64
id of chain
_tokens
address[]
list of tokens to approve
_token
address
address of token
_wrappedToken
address
address of wrapped token
_chainSelector
uint64
id of chain
_updateExtraArgs
bytes
extra args as defined in CCIP API
_chainSelector
uint64
id of chain
_rewardsExtraArgs
bytes
extra args as defined in CCIP API
_rewardsInitiator
address
address of rewards initiator