Skip to content

abdelhaqs/ClickXRPFi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1-Click XRPFi (FlareFi)

XRPL-originated flow toward Ethereum Sepolia DeFi: CCIP (Arbitrum Sepolia → Sepolia), Uniswap V3 swap (WETH → USDC), and a minimal yield vault ledger. Flare Smart Accounts are represented by FlareIntentRegistry on Coston2 until a Flare CCIP lane is wired.

Monorepo

Package Description
contracts/ Hardhat: XRPFiSepoliaExecutor (CCIP receiver + swap), XRPFiArbitrumSender, YieldVault, FlareIntentRegistry
apps/web Vite + React: XRPL devnet payment / intent UI, polls API
apps/api Express: intent endpoint + optional on-chain event indexing

Quick start

npm install
npm run compile
npm run build
  • Web dev: npm run dev
  • API dev: npm run dev:api (copy apps/api/.env.exampleapps/api/.env)

Deploy (sketch)

  1. Sepolia: npx hardhat run scripts/deploy-sepolia.ts --network sepolia
  2. Arbitrum Sepolia: set SEPOLIA_EXECUTOR_ADDRESS, then npx hardhat run scripts/deploy-arbitrum-sender.ts --network arbitrumSepolia
  3. Sepolia: npx hardhat run scripts/wire-peer.ts --network sepolia with ARB_SENDER_ADDRESS set
  4. Fund executor WETH on Sepolia, set API env vars (SEPOLIA_EXECUTOR_ADDRESS, SEPOLIA_VAULT_ADDRESS, RPCs)

See contracts/.env.example and apps/api/.env.example.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors