Encode config
encodeConfig( )
This function uses bitwise to return an encoded uint256 of the following parameters.
Parameters
Name
Type
Description
allowed
address
address is the address that can accept the Swap. If the allowed address is the zero address, then anyone can accept the Swap.
expiry
uint32
date is the timestamp that the Swap will be available to accept.
recipient
uint8
is the address that will receive the ETH as type uint8. If the recipient is equals to 0, the acceptee will receive the ETH. If the recipient is between 1<>255 then the recipient will be the owner of the Swap.
value
uint56
is the amount of ETH that the recipient will receive with a maximum of 6 decimals (0.000001 ETH). The contract will fill the value up to 18 decimals.
Last updated