IECrosschain
Overview
License: Apache-2.0-or-later
interface IECrosschainAuthor: Gabriele Rigo - gab@rigoblock.com
Events info
TokensReceived
event TokensReceived(address indexed from, address indexed token, uint256 amount, uint8 indexed opType)Emitted when cross-chain tokens are received
Parameters:
from
address
Address that initiated the cross-chain transfer (SpokePool)
token
address
Token received
amount
uint256
Amount received (actual balance delta)
opType
uint8
Operation type (0=Transfer, 1=Sync)
VirtualSupplyUpdated
event VirtualSupplyUpdated(int256 adjustment, int256 newSupply)Emitted when virtual supply is modified
Parameters:
adjustment
int256
Signed adjustment (+/-)
newSupply
int256
New virtual supply after adjustment
Errors info
InvalidOpType
DonationLock
BalanceUnderflow
NavManipulationDetected
TokenNotInitialized
NavDecreased
Functions info
donate (0x6da7df96)
Handles receiving tokens from a cross-chain message or an escrow refund.
Called via delegatecall from pool. Callable by anyone.
Parameters:
token
address
The token received on this chain.
amount
uint256
The amount received.
params
struct DestinationMessageParams
The message params from the source calls sent to the across multicall handler.
Last updated