Solidity API
EVM Relay Depository
Provides secure deposit functionality and execution of allocator-signed requests for EVM chains EVM implementation using EIP-712 for structured data signing, supporting native ETH and ERC20 tokensAddressCannotBeZero
InvalidSignature
CallRequestExpired
CallRequestAlreadyUsed
CallFailed
Parameters
RelayNativeDeposit
Parameters
RelayErc20Deposit
Parameters
RelayCallExecuted
Parameters
_CALL_TYPEHASH
_CALL_REQUEST_TYPEHASH
callRequests
allocator
constructor
Parameters
setAllocator
Parameters
depositNative
RelayNativeDeposit event
Emits a RelayNativeDeposit event with the deposit details
Parameters
depositErc20
RelayErc20Deposit event
Transfers tokens from msg.sender to this contract and emits a RelayErc20Deposit event
Parameters
depositErc20
RelayErc20Deposit event
Uses the full allowance granted to this contract and calls depositErc20
Parameters
execute
CallRequest signed by the allocator
Verifies the signature, expiration, and uniqueness before execution
Parameters
Return Values
_executeCalls
Parameters
Return Values
_hashCallRequest
CallRequest and return the EIP-712 digest
Implements EIP-712 structured data hashing for the complex CallRequest type