cBridge Aptos Transfer (xAsset Only)
The principle and methodology of transfer between EVM chains and Non-EVM chains are the same as transfer between EVM chains and EVM chains. To support Aptos transfer, there are several things to do.
- Submit transfer transaction through TransferAgent contract on EVM chains
- Submit transfer transaction to Aptos Modules(Vault for deposit, PegBridge for burn) deployed by cBridge.
Unlike EVM wallet address, Aptos wallet uses 32 bytes hex string as address. Then you cannot submit transfer transaction using Aptos wallet address as destination receiver through cBridge OriginalTokenVault / PeggedBridge contract. Hence, cBridge deploys a TransferAgent contract which can use any length string as destination receiver.