IExecutor
Methods
assignJob
function assignJob(uint32 _dstEid, address _sender, uint256 _calldataSize, bytes _options) external nonpayable returns (uint256 price)
Parameters
Name | Type | Description |
---|---|---|
_dstEid | uint32 | undefined |
_sender | address | undefined |
_calldataSize | uint256 | undefined |
_options | bytes | undefined |
Returns
Name | Type | Description |
---|---|---|
price | uint256 | undefined |
defaultMultiplierBps
function defaultMultiplierBps() external view returns (uint16)
Returns
Name | Type | Description |
---|---|---|
_0 | uint16 | undefined |
dstConfig
function dstConfig(uint32 _dstEid) external view returns (uint64, uint16, uint128, uint128, uint64)
Parameters
Name | Type | Description |
---|---|---|
_dstEid | uint32 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint64 | undefined |
_1 | uint16 | undefined |
_2 | uint128 | undefined |
_3 | uint128 | undefined |
_4 | uint64 | undefined |
getFee
function getFee(uint32 _dstEid, address _sender, uint256 _calldataSize, bytes _options) external view returns (uint256 price)
Parameters
Name | Type | Description |
---|---|---|
_dstEid | uint32 | undefined |
_sender | address | undefined |
_calldataSize | uint256 | undefined |
_options | bytes | undefined |
Returns
Name | Type | Description |
---|---|---|
price | uint256 | undefined |
getSupportedOptionTypes
function getSupportedOptionTypes(uint32 _eid) external view returns (uint8[])
Parameters
Name | Type | Description |
---|---|---|
_eid | uint32 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint8[] | undefined |
priceFeed
function priceFeed() external view returns (address)
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
setDefaultMultiplierBps
function setDefaultMultiplierBps(uint16 _multiplierBps) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_multiplierBps | uint16 | undefined |
setPriceFeed
function setPriceFeed(address _priceFeed) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_priceFeed | address | undefined |
setSupportedOptionTypes
function setSupportedOptionTypes(uint32 _eid, uint8[] _optionTypes) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_eid | uint32 | undefined |
_optionTypes | uint8[] | undefined |
withdrawFee
function withdrawFee(address _lib, address _to, uint256 _amount) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_lib | address | undefined |
_to | address | undefined |
_amount | uint256 | undefined |
Events
DstConfigSet
event DstConfigSet(IExecutor.DstConfigParam[] params)
Parameters
Name | Type | Description |
---|---|---|
params | IExecutor.DstConfigParam[] | undefined |
NativeDropApplied
event NativeDropApplied(Origin origin, uint32 dstEid, address oapp, IExecutor.NativeDropParams[] params, bool[] success)
Parameters
Name | Type | Description |
---|---|---|
origin | Origin | undefined |
dstEid | uint32 | undefined |
oapp | address | undefined |
params | IExecutor.NativeDropParams[] | undefined |
success | bool[] | undefined |
SetDefaultMultiplierBps
event SetDefaultMultiplierBps(uint16 multiplierBps)
Parameters
Name | Type | Description |
---|---|---|
multiplierBps | uint16 | undefined |
SetPriceFeed
event SetPriceFeed(address priceFeed)
Parameters
Name | Type | Description |
---|---|---|
priceFeed | address | undefined |
SetSupportedOptionTypes
event SetSupportedOptionTypes(uint32 dstEid, uint8[] optionTypes)
Parameters
Name | Type | Description |
---|---|---|
dstEid | uint32 | undefined |
optionTypes | uint8[] | undefined |
SetWorkerLib
event SetWorkerLib(address workerLib)
Parameters
Name | Type | Description |
---|---|---|
workerLib | address | undefined |
Withdraw
event Withdraw(address lib, address to, uint256 amount)
Parameters
Name | Type | Description |
---|---|---|
lib | address | undefined |
to | address | undefined |
amount | uint256 | undefined |
Errors
Worker_NotAllowed
error Worker_NotAllowed()
Worker_OnlyMessageLib
error Worker_OnlyMessageLib()
Worker_RoleRenouncingDisabled
error Worker_RoleRenouncingDisabled()