ITokenBridge
InitializationData
struct InitializationData {
address defaultAdmin;
address messageService;
address tokenBeacon;
uint256 sourceChainId;
uint256 targetChainId;
address[] reservedTokens;
struct IPermissionsManager.RoleAddress[] roleAddresses;
struct IPauseManager.PauseTypeRole[] pauseTypeRoles;
struct IPauseManager.PauseTypeRole[] unpauseTypeRoles;
}
TokenReserved
event TokenReserved(address token)
Emitted when the token address is reserved.
Parameters
Name | Type | Description |
---|---|---|
token | address | The indexed token address. |
ReservationRemoved
event ReservationRemoved(address token)
Emitted when the token address reservation is removed.
Parameters
Name | Type | Description |
---|---|---|
token | address | The indexed token address. |
CustomContractSet
event CustomContractSet(address nativeToken, address customContract, address setBy)
Emitted when the custom token address is set.
Parameters
Name | Type | Description |
---|---|---|
nativeToken | address | The indexed nativeToken token address. |
customContract | address | The indexed custom contract address. |
setBy | address | The indexed address of who set the custom contract. |
BridgingInitiated
event BridgingInitiated(address sender, address recipient, address token, uint256 amount)
Emitted when token bridging is initiated.
DEPRECATED in favor of BridgingInitiatedV2.
Parameters
Name | Type | Description |
---|---|---|
sender | address | The indexed sender address. |
recipient | address | The recipient address. |
token | address | The indexed token address. |
amount | uint256 | The indexed token amount. |
BridgingInitiatedV2
event BridgingInitiatedV2(address sender, address recipient, address token, uint256 amount)
Emitted when token bridging is initiated.
Parameters
Name | Type | Description |
---|---|---|
sender | address | The indexed sender address. |
recipient | address | The indexed recipient address. |
token | address | The indexed token address. |
amount | uint256 | The token amount. |
BridgingFinalized
event BridgingFinalized(address nativeToken, address bridgedToken, uint256 amount, address recipient)
Emitted when token bridging is finalized.
DEPRECATED in favor of BridgingFinalizedV2.
Parameters
Name | Type | Description |
---|---|---|
nativeToken | address | The indexed native token address. |
bridgedToken | address | The indexed bridged token address. |
amount | uint256 | The indexed token amount. |
recipient | address | The recipient address. |
BridgingFinalizedV2
event BridgingFinalizedV2(address nativeToken, address bridgedToken, uint256 amount, address recipient)
Emitted when token bridging is finalized.
Parameters
Name | Type | Description |
---|---|---|
nativeToken | address | The indexed native token address. |
bridgedToken | address | The indexed bridged token address. |
amount | uint256 | The token amount. |
recipient | address | The indexed recipient address. |
NewToken
event NewToken(address token)
Emitted when a new token is seen being bridged on the origin chain for the first time.
Parameters
Name | Type | Description |
---|---|---|
token | address | The indexed token address. |
NewTokenDeployed
event NewTokenDeployed(address bridgedToken, address nativeToken)
Emitted when a new token is deployed.