flare-fassets
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFlare FAssets
Flare FAssets
What FAssets Are
什么是FAssets
FAssets is a trustless, over-collateralized bridge connecting non–smart-contract networks (XRP Ledger, Bitcoin, DOGE) to Flare.
It creates wrapped ERC-20 tokens (FAssets) such as FXRP, FBTC, FDOGE that can be used in Flare DeFi or redeemed for the underlying asset.
Powered by:
- FTSO (Flare Time Series Oracle): decentralized price feeds
- FDC (Flare Data Connector): verifies off-chain actions (e.g. payments on other chains)
Collateral: Stablecoin and native FLR.
Agents and a community collateral pool provide over-collateralization.
FAssets是一个无需信任、超额抵押的跨链桥,连接非智能合约网络(XRP账本、比特币、狗狗币)与Flare网络。
它生成可在Flare DeFi中使用或赎回为底层资产的包装ERC-20代币(FAssets),如FXRP、FBTC、FDOGE。
核心技术支持:
- FTSO(Flare Time Series Oracle): 去中心化价格预言机
- FDC(Flare Data Connector): 验证链下操作(如其他链上的支付)
抵押品: 稳定币与原生FLR代币。
Agent与社区抵押池提供超额抵押保障。
FXRP at a Glance
FXRP 概览
FXRP is the ERC-20 representation of XRP on Flare, powered by the FAssets system.
It is designed to be trustless and redeemable back to XRP.
Key points:
- EVM-compatible token: Works with standard wallets, smart contracts, and DeFi apps on Flare.
- Trust-minimized bridge flow: Uses FDC attestations for XRPL payment verification.
- Redeemable: FXRP can be redeemed for native XRP through the FAssets redemption flow.
- DeFi + yield use cases: Can be used in lending/liquidity strategies and vault-based products like Firelight.
How users acquire FXRP:
- Mint from XRP using a minting dApp.
- Mint programmatically via AssetManager flows.
- Swap from other tokens on Flare DEXs.
Guide: FXRP Overview
FXRP是XRP在Flare网络上的ERC-20代币表示,基于FAssets系统运行。
它被设计为无需信任且可赎回为原生XRP的资产。
核心特点:
- 兼容EVM的代币: 可在Flare网络上与标准钱包、智能合约及DeFi应用兼容使用。
- 最小化信任的跨链流程: 利用FDC证明验证XRPL支付。
- 可赎回: FXRP可通过FAssets赎回流程兑换为原生XRP。
- DeFi与收益场景: 可用于借贷/流动性策略,以及Firelight等基于金库的产品。
用户获取FXRP的方式:
- 通过铸造dApp用XRP铸造。
- 通过AssetManager流程以编程方式铸造。
- 在Flare去中心化交易所(DEX)与其他代币兑换。
指南: FXRP概述
Key Participants
核心参与角色
| Role | Responsibility |
|---|---|
| Agents | Hold underlying assets, provide collateral, redeem for users. Verified via governance. Use work (hot) and management (cold) addresses. Must meet backing factor. |
| Users | Mint (deposit underlying → get FAssets) or redeem (burn FAssets → get underlying). No restrictions. |
| Collateral providers | Lock FLR in an agent's pool; earn share of minting fees. |
| Liquidators | Burn FAssets for collateral when agent collateral falls below minimum; earn rewards. |
| Challengers | Submit proof of agent violations; earn from vault on successful challenge. Full liquidation stops agent from new minting. |
| 角色 | 职责 |
|---|---|
| Agents | 持有底层资产,提供抵押品,为用户处理赎回操作。需通过治理验证。使用*工作(热)和管理(冷)*地址。必须满足抵押率要求。 |
| 用户 | 铸造(存入底层资产 → 获取FAssets)或赎回(销毁FAssets → 获取底层资产)。无权限限制。 |
| 抵押品提供者 | 将FLR锁定在Agent的抵押池中;赚取铸造费用分成。 |
| 清算者 | 当Agent抵押品低于最低要求时,销毁FAssets以获取抵押品;赚取奖励。 |
| 挑战者 | 提交Agent违规的证据;成功挑战后从金库获取奖励。完全清算将阻止Agent参与新的铸造。 |
FAsset Workflow
FAsset 工作流程
Minting
铸造
- User selects an agent and reserves collateral (pays fee in FLR).
- User sends underlying asset (e.g. XRP) to the agent on the underlying chain (with payment reference).
- FDC verifies the payment and produces attestation/proof.
- User (or executor) calls executeMinting with proof → FAssets are minted on Flare.
Fees: Collateral Reservation Fee (CRF, native), Minting Fee (underlying), optional Executor Fee (native).
If minting fails, CRF is not returned.
- 用户选择一个Agent并预留抵押品(支付FLR作为费用)。
- 用户将底层资产(如XRP)发送至Agent在底层链上的地址(需包含支付参考)。
- FDC验证该支付并生成证明/凭证。
- 用户(或执行者)携带证明调用executeMinting → 在Flare网络上铸造FAssets。
费用: 抵押品预留费(CRF,原生代币)、铸造费(底层资产)、可选执行者费(原生代币)。
若铸造失败,CRF不予退还。
Redemption
赎回
Users redeem FAssets for the original underlying asset at any time (flow is request → agent pays out on underlying chain).
用户可随时将FAssets赎回为原始底层资产(流程为:发起请求 → Agent在底层链上完成支付)。
Core Vault (CV)
核心金库(CV)
Per-asset vault that improves capital efficiency: agents can deposit underlying into the CV to free collateral.
Multisig on the underlying network; governance can pause.
Not agent-owned.
每个资产对应一个核心金库,提升资本效率:Agent可将底层资产存入核心金库以释放抵押品。
底层网络采用多签机制;治理可暂停其功能。
核心金库不属于任何Agent。
Contracts and Addresses — Get at Runtime
合约与地址——运行时获取
FlareContractsRegistry (same on all Flare networks): .
0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019Use it as the trusted source to resolve other contract addresses (e.g. , ).
getContractAddressByName()getAllContracts()Do not hardcode AssetManagerController, AssetManager, or FXRP addresses.
They differ per network (Coston2, Songbird, Flare mainnet).
Resolve them at runtime via the registry.
To get the FXRP address:
- Query the FlareContractsRegistry with — the returned address is the AssetManager (FXRP) contract address.
getContractAddressByName("AssetManagerFXRP") - Attach the IAssetManager interface to that address (or use it as your AssetManager instance).
- Call on the AssetManager to get the FXRP ERC-20 token address.
fAsset()
Same pattern for other FAssets (FBTC, etc.) using their corresponding registry keys.
AssetManagerController is also available from the registry when needed.
Guide: Get FXRP Address — e.g.
const assetManager = await getAssetManagerFXRP(); const fasset = await assetManager.fAsset();Skill resource script: scripts/get-fxrp-address.ts — gets FXRP address at runtime via FlareContractsRegistry → → .
getContractAddressByName("AssetManagerFXRP")fAsset()Uses ethers; set or pass your network RPC.
FLARE_RPC_URLRun with (or in a Hardhat project with ).
npx ts-node scripts/get-fxrp-address.tsyarn hardhat run scripts/get-fxrp-address.ts --network coston2FlareContractsRegistry(所有Flare网络通用):。
0xaD67FE66660Fb8dFE9d6b1b4240d8650e30F6019请将其作为可信源查询其他合约地址(如、)。
getContractAddressByName()getAllContracts()请勿硬编码AssetManagerController、AssetManager或FXRP的地址。
这些地址在不同网络(Coston2、Songbird、Flare主网)中各不相同。
需通过注册中心在运行时解析地址。
获取FXRP地址的方法:
- 调用FlareContractsRegistry的— 返回的地址即为AssetManager(FXRP)合约地址。
getContractAddressByName("AssetManagerFXRP") - 为该地址附加IAssetManager接口(或直接将其作为AssetManager实例使用)。
- 调用AssetManager的****方法获取FXRP的ERC-20代币地址。
fAsset()
其他FAssets(如FBTC)可使用对应的注册中心密钥,遵循相同的模式。
AssetManagerController也可在需要时通过注册中心获取。
指南: 获取FXRP地址 — 示例:
const assetManager = await getAssetManagerFXRP(); const fasset = await assetManager.fAsset();技能资源脚本: scripts/get-fxrp-address.ts — 通过FlareContractsRegistry在运行时获取FXRP地址 → → 。
getContractAddressByName("AssetManagerFXRP")fAsset()使用ethers库;需设置或传入自定义网络RPC。
FLARE_RPC_URL运行方式:(或在Hardhat项目中使用)。
npx ts-node scripts/get-fxrp-address.tsyarn hardhat run scripts/get-fxrp-address.ts --network coston2Developer Integration (High Level)
开发者集成(概览)
Minting
铸造
- Reserve collateral: Call on AssetManager.
reserveCollateral(agentVault, lots, feeBIPS, executor)
Pay CRF via .
collateralReservationFee(lots)Use event for , payment reference, and deadlines.
2. Underlying payment: User sends underlying asset to agent's underlying-chain address with the payment reference from the event.
CollateralReservedcollateralReservationIdMust complete before and .
3. Proof: Use FDC to get attestation/proof for the payment (e.g. Payment attestation type).
4. Execute minting: Call on AssetManager.
lastUnderlyingBlocklastUnderlyingTimestampexecuteMinting(proof, collateralReservationId)Agent selection: Use (or equivalent), filter by free collateral lots and status, then by fee (e.g. ).
getAvailableAgentsDetailedListfeeBIPSPrefer agents with status NORMAL.
- 预留抵押品: 在AssetManager上调用。
reserveCollateral(agentVault, lots, feeBIPS, executor)
通过支付CRF费用。
collateralReservationFee(lots)使用事件获取、支付参考与截止时间。
2. 底层资产支付: 用户将底层资产发送至Agent在底层链上的地址,需包含事件中返回的支付参考。
CollateralReservedcollateralReservationId必须在与之前完成支付。
3. 获取证明: 使用FDC获取该支付的证明/凭证(如支付证明类型)。
4. 执行铸造: 在AssetManager上调用。
lastUnderlyingBlocklastUnderlyingTimestampexecuteMinting(proof, collateralReservationId)Agent选择: 使用(或同类方法),根据可用抵押品份额、状态筛选,再按费用(如)排序。
getAvailableAgentsDetailedListfeeBIPS优先选择状态为NORMAL的Agent。
Redeeming
赎回
Request redemption (burn FAssets on Flare); the chosen agent pays out the underlying asset on the underlying chain.
See FAssets Redemption and Redeem FAssets for the full flow (redemption request, queue, agent payout, optional swap-and-redeem / auto-redeem).
Prerequisites (from Flare docs): Flare Hardhat Starter Kit, , and for XRP payments the package.
@flarenetwork/flare-periphery-contractsxrplTerminology
术语说明
- Underlying network / underlying asset: Source chain and its native asset (e.g. XRPL, XRP).
- Lot: Smallest minting unit; size from AssetManager/FTSO (see "Read FAssets Settings" in reference).
- Backing factor: Minimum collateral ratio agents must maintain.
- CRF: Collateral Reservation Fee. UBA: Smallest unit of the underlying asset (e.g. drops for XRP).
- 底层网络/底层资产: 源链及其原生资产(如XRP账本、XRP)。
- Lot: 最小铸造单位;大小可从AssetManager/FTSO获取(参考“读取FAssets设置”)。
- 抵押率: Agent必须维持的最低抵押品比例。
- CRF: 抵押品预留费。UBA: 底层资产的最小单位(如XRP的drops)。
Flare Smart Accounts
Flare智能账户
Flare Smart Accounts let XRPL users interact with FAssets on Flare without owning any FLR.
Each XRPL address is assigned a unique smart account on Flare that only it can control.
How it works:
- User sends a Payment transaction on the XRPL to a designated address, encoding instructions in the memo field as a payment reference.
- An operator monitors incoming XRPL transactions and requests a Payment attestation from the FDC.
- The operator calls on the
executeTransactioncontract on Flare, passing the proof and the user's XRPL address.MasterAccountController - The contract verifies the proof, retrieves (or creates) the user's smart account, decodes the payment reference, and executes the requested action.
Supported instruction types (first nibble of payment reference):
| Type ID | Target |
|---|---|
| FXRP token interactions |
| Firelight vault (stXRP) |
| Upshift vault |
This means XRPL users can mint/redeem FXRP, stake into Firelight, or interact with Upshift — all from a single XRPL Payment transaction.
Guide: Flare Smart Accounts
Flare智能账户允许XRPL用户无需持有FLR即可与Flare网络上的FAssets交互。
每个XRPL地址在Flare网络上对应一个唯一的智能账户,且仅该地址可控制该账户。
工作原理:
- 用户在XRPL上向指定地址发送支付交易,在备注字段中编码指令作为支付参考。
- 运营商监控XRPL的 incoming交易,并向FDC请求支付证明。
- 运营商在Flare网络上调用合约的
MasterAccountController方法,传入证明与用户的XRPL地址。executeTransaction - 合约验证证明,检索(或创建)用户的智能账户,解码支付参考并执行请求的操作。
支持的指令类型(支付参考的第一个半字节):
| 类型ID | 目标 |
|---|---|
| FXRP代币交互 |
| Firelight金库(stXRP) |
| Upshift金库 |
这意味着XRPL用户可通过单一XRPL支付交易完成FXRP的铸造/赎回、存入Firelight质押,或与Upshift交互。
指南: Flare智能账户
Minting dApps and Wallets
铸造dApp与钱包
-
Minting dApps: Oracle Daemon, AU
-
Wallets: Bifrost, Ledger, Luminite, OxenFlow (Flare + XRPL); MetaMask, Rabby, WalletConnect (Flare EVM); Xaman (XRPL).Dual-network wallets give the smoothest mint flow.
-
铸造dApp:Oracle Daemon、AU
-
钱包:Bifrost、Ledger、Luminite、OxenFlow(支持Flare + XRPL);MetaMask、Rabby、WalletConnect(支持Flare EVM);Xaman(支持XRPL)。双网络钱包能提供最流畅的铸造体验。
When to Use This Skill
何时使用该技能
- Implementing or debugging FAssets minting/redemption (scripts, bots, dApps).
- Resolving agent selection, collateral, fees, or payment-reference flows.
- Integrating with AssetManager, AssetManagerController, or FAsset token contracts.
- Explaining FAssets, FXRP, FBTC, agents, or Core Vault to users or in docs.
- Following Flare Developer Hub FAssets guides and reference.
- 实现或调试FAssets铸造/赎回流程(脚本、机器人、dApp)。
- 解决Agent选择、抵押品、费用或支付参考相关流程问题。
- 集成AssetManager、AssetManagerController或FAsset代币合约。
- 向用户或在文档中解释FAssets、FXRP、FBTC、Agent或核心金库的概念。
- 遵循Flare Developer Hub的FAssets指南与参考文档。
Additional Resources
额外资源
- Official docs and API/reference: reference.md
- For detailed contract interfaces, mint/redeem scripts, and operational parameters, use the Flare Developer Hub links in reference.md.
- 官方文档与API/参考:reference.md
- 如需详细的合约接口、铸造/赎回脚本及操作参数,请参考reference.md中的Flare Developer Hub链接。",