This repository has been archived by the owner on Aug 24, 2023. It is now read-only.
Bi-directional Native to Meta Asset "Trustless" Bridging #96
Labels
area/ain
issues/pr that requires changes on the DeFiCh/ain codebase.
area/meta
kind/feature
New feature request
meta/consensus
needs/triage
Waiting for triage to be accepted
Milestone
What would you like to be added:
Bi-directional bridging of assets between Native & Meta Chain. Essentially a trustless bridge between the 2 chain within the same ecosystem. This requires understanding of the current trustless bridging design that earmark to be documented in #8.
Introduction of 2 Smart Contract (DfTX & EVM Contract). All supply of DFI comes from the Native Chain. Burning on Native = minting on Meta and vice-versa.
This requires the relevant Transactions to be performed and exchanged between chains. The transaction must be interpolated from 2 chains.
DfTx.Meta.send(pubKey, AccountDFI.Amount)
, burn from Account, claim on EVMContract.send(pubKey, EVMNativeDFI.Amount)
, burn from Contract, claim on Native AccountImplementation on Native
DMCHandler()
and MetaConnect/Mint
HandlerRPC
metaConsensusRpc_mintBlock
and handled on NativeDMCHandler()
:Extract "
DfTx.Meta.send
" on Native and pass it as structured request params when minting block on MetaChain. MetaChain will automatically include "minting" transaction crediting to the respective address.RPC
metaConsensusRpc_connectBlock
and handled on NativeDMCHandler()
:Extract "
Meta Contract.send
" on Meta and return it as a structured response forDMCHandler()
to process "bridging claims" on the Native layer viaDMCHandler()
. Burn Meta > Mint Native.The text was updated successfully, but these errors were encountered: