Skip to main content

SendLibBase

base contract for both SendLibBaseE1 and SendLibBaseE2

Methods

executorConfigs

function executorConfigs(address oapp, uint32 eid) external view returns (uint32 maxMessageSize, address executor)

Parameters

NameTypeDescription
oappaddressundefined
eiduint32undefined

Returns

NameTypeDescription
maxMessageSizeuint32undefined
executoraddressundefined

fees

function fees(address worker) external view returns (uint256)

Parameters

NameTypeDescription
workeraddressundefined

Returns

NameTypeDescription
_0uint256undefined

getExecutorConfig

function getExecutorConfig(address _oapp, uint32 _remoteEid) external view returns (struct ExecutorConfig rtnConfig)

Parameters

NameTypeDescription
_oappaddressundefined
_remoteEiduint32undefined

Returns

NameTypeDescription
rtnConfigExecutorConfigundefined

owner

function owner() external view returns (address)

Returns the address of the current owner.

Returns

NameTypeDescription
_0addressundefined

renounceOwnership

function renounceOwnership() external nonpayable

Leaves the contract without owner. It will not be possible to call onlyOwner functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.

setDefaultExecutorConfigs

function setDefaultExecutorConfigs(SetDefaultExecutorConfigParam[] _params) external nonpayable

Parameters

NameTypeDescription
_paramsSetDefaultExecutorConfigParam[]undefined

setTreasuryNativeFeeCap

function setTreasuryNativeFeeCap(uint256 _newTreasuryNativeFeeCap) external nonpayable

the new value can not be greater than the old value, i.e. down only

Parameters

NameTypeDescription
_newTreasuryNativeFeeCapuint256undefined

transferOwnership

function transferOwnership(address newOwner) external nonpayable

Transfers ownership of the contract to a new account (newOwner). Can only be called by the current owner.

Parameters

NameTypeDescription
newOwneraddressundefined

treasury

function treasury() external view returns (address)

Returns

NameTypeDescription
_0addressundefined

Events

DefaultExecutorConfigsSet

event DefaultExecutorConfigsSet(SetDefaultExecutorConfigParam[] params)

Parameters

NameTypeDescription
paramsSetDefaultExecutorConfigParam[]undefined

ExecutorConfigSet

event ExecutorConfigSet(address oapp, uint32 eid, ExecutorConfig config)

Parameters

NameTypeDescription
oappaddressundefined
eiduint32undefined
configExecutorConfigundefined

ExecutorFeePaid

event ExecutorFeePaid(address executor, uint256 fee)

Parameters

NameTypeDescription
executoraddressundefined
feeuint256undefined

OwnershipTransferred

event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

Parameters

NameTypeDescription
previousOwner indexedaddressundefined
newOwner indexedaddressundefined

TreasuryNativeFeeCapSet

event TreasuryNativeFeeCapSet(uint256 newTreasuryNativeFeeCap)

Parameters

NameTypeDescription
newTreasuryNativeFeeCapuint256undefined

TreasurySet

event TreasurySet(address treasury)

Parameters

NameTypeDescription
treasuryaddressundefined

Errors

LZ_MessageLib_InvalidAmount

error LZ_MessageLib_InvalidAmount(uint256 requested, uint256 available)

Parameters

NameTypeDescription
requesteduint256undefined
availableuint256undefined

LZ_MessageLib_InvalidExecutor

error LZ_MessageLib_InvalidExecutor()

LZ_MessageLib_InvalidMessageSize

error LZ_MessageLib_InvalidMessageSize(uint256 actual, uint256 max)

Parameters

NameTypeDescription
actualuint256undefined
maxuint256undefined

LZ_MessageLib_OnlyEndpoint

error LZ_MessageLib_OnlyEndpoint()

LZ_MessageLib_TransferFailed

error LZ_MessageLib_TransferFailed()

LZ_MessageLib_ZeroMessageSize

error LZ_MessageLib_ZeroMessageSize()