MultiChain - Chain Abstraction(Coming Soon)
Last updated
Last updated
DeltaTrade utilizes Near's Chain Abstraction technology to enable multi-chain support, allowing users to utilize DeltaTrade deployed on the Near blockchain without the need to hold a Near account.
Creation Steps:
Users invoke a method on a contract controlled by Chain Abstraction on ChainA, transferring assets into the contract while including the desired Trading Vault parameters and their signature.
An Oracle detects the user's request on ChainA and relays it to the Near chain's contract.
The DeltaTrade contract on Near creates a dedicated internal account for the ChainA user (or uses an existing one if already created), verifies the user’s signature and the provided parameters (the internal account records a nonce, which is part of the signature to prevent replay attacks). If verified, it credits the mapped assets and executes the creation of the Trading Vault according to the user's parameters.
Closing Steps:
Users sign a "Close" signature and send it to DeltaTrade.
DeltaTrade's Relayer role uploads the signature to the blockchain, sending it to the DeltaTrade contract.
The DeltaTrade contract verifies the user’s signature and provided parameters; if they match, it executes the Close operation and signs a withdrawal transaction on ChainA using Chain Abstraction technology.
DeltaTrade's Relayer obtains the Chain Abstraction signature and assists the user in executing the transaction on ChainA.
The user receives their assets on ChainA.