Documentation

PrivateLendingIngress

Entry point contract on Mantle for deposits and actions

Address (Mantle Sepolia): 0xF6bA22c8C3774EaAF7048cB0504C77238A927fAF

Functions

createDepositNative()

Create a deposit with native MNT

function createDepositNative() external payable returns (uint256 depositId)

Returns: Unique deposit ID

createDeposit()

Create a deposit with ERC20 tokens

function createDeposit(address token, uint256 amount) external returns (uint256 depositId)

Params: token - ERC20 address, amount - deposit amount

initiateAction()

Submit encrypted action for processing

function initiateAction(uint256 depositId, bytes calldata encryptedPayload) external

Params: depositId - deposit to use, encryptedPayload - encrypted action data

releaseFunds()

Release funds to user (called via Hyperlane)

function releaseFunds(address recipient, address token, uint256 amount) external

Only callable by Hyperlane router from Sapphire

Events

event DepositCreated(uint256 indexed depositId, address indexed depositor, address token, uint256 amount)
event ActionInitiated(uint256 indexed depositId, bytes32 actionHash, bytes encryptedPayload)
event FundsReleased(address indexed recipient, address token, uint256 amount)

Related