Trade Hyperliquid perpetual futures using FXRP margin instead of USDC.
Study a TEE-secured bridge pattern connecting two different blockchain trading systems.
Run a local demo of cross-chain margin trading with a simulated price feed.
| big14way/torch | 0xradioac7iv/tempfs | 7vignesh/pgpulse | |
|---|---|---|---|
| Stars | 0 | 0 | 0 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | hard | moderate | moderate |
| Complexity | 5/5 | 3/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Node.js 20+, MetaMask, and running a local blockchain plus contract deployment scripts.
Torch is a hackathon project that lets someone trade perpetual futures using their XRP as collateral, even though the exchange it trades on only accepts a different currency for margin. It was built for a hackathon focused on the Flare blockchain, aiming for two specific bounty categories at once. The idea addresses a real gap: XRP holders have a large amount of value sitting idle because there has not been a way to use XRP directly as margin on a deep order book exchange. Torch bridges this gap. A user deposits a wrapped version of XRP called FXRP on the Flare blockchain, and Torch routes the actual trade execution to Hyperliquid, a separate exchange with deep liquidity, even though Hyperliquid normally only accepts a different asset as margin. The bridge between the two systems is handled by an automated agent running inside a Trusted Execution Environment, a secure isolated computing area, which holds the keys needed to place trades but cannot withdraw funds. The project is upfront that this is an early version, not yet a fully trustless system, and lists the specific safeguards in place: every price the agent reports is checked against Flare's on chain price oracle and rejected if it strays too far from that reference, the exchange key can trade but never withdraw, and profit or loss is settled through an explicit on chain insurance fund rather than a hidden promise. The repository is organized into a smart contract project, a TypeScript agent that watches the vault and executes trades, and a React web app for the trading interface. Running it locally requires Node.js 20 or newer and a wallet like MetaMask, with detailed step by step instructions for starting a local blockchain, deploying contracts, and running the agent in a mock mode that simulates price movement for demonstration purposes. A live deployment already exists on Flare's Coston2 test network.
A hackathon project letting users trade perpetual futures on Hyperliquid using XRP as margin, bridged through Flare and a secure trusted execution agent.
Mainly TypeScript. The stack also includes TypeScript, React, Solidity.
No license information is stated in the README.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.