IPayMaster

Git Source

Author: ZeroPoint Labs

contract for destination transaction costs payment

Functions

withdrawTo

withdraws funds from pay master to target id from superRegistry

function withdrawTo(bytes32 superRegistryId_, uint256 nativeAmount_) external;

Parameters

NameTypeDescription
superRegistryId_bytes32is the id of the target address in superRegistry
nativeAmount_uint256is the amount to withdraw from pay master

rebalanceTo

withdraws fund from pay master to target id from superRegistry

function rebalanceTo(bytes32 superRegistryId_, LiqRequest memory req_, uint64 dstChainId_) external;

Parameters

NameTypeDescription
superRegistryId_bytes32is the id of the target address in superRegistry
req_LiqRequestis the off-chain generated liquidity request to move funds
dstChainId_uint64is the destination chain id

makePayment

accepts payment from user

function makePayment(address user_) external payable;

Parameters

NameTypeDescription
user_addressis the wallet address of the paying user

Events

Payment

is emitted when a new payment is made

event Payment(address indexed user, uint256 amount);

PaymentWithdrawn

is emitted when payments are moved out of collector

event PaymentWithdrawn(address indexed receiver, uint256 amount);