Contracts
Crosschain deposits
Using a trusted custom keeper, it is possible to do cross-chain deposits into the protocol.
Deposits
Prerequisite:
User already has an aztec-connect account. If not, he should make one.
Deposit flow
- The user notifies the zkWhirl bridging keeper of the intent to bridge. The keeper generates an address for the deposit.
- The user sends the money on the bridge to the destination address.
- The bridge send the money to the address
- Upon reception, the keeper uses AztecSdk.createDepositController with the sender's address as recipient to make a deposit on his behalf. See the deposits doc.
Withdrawals
Withdraw flow
- The user notifies the zkWhirl bridging keeper of the intent for bridging out. The keeper generates an address for the reception of the funds from the rollup.
- The user sends the money to the target address.
- Upon reception, the keeper sends the money to the target address of the user, using the bridge.
- Bridge sends the money to the user.