Docs/Reference
Contract addresses
Every address Flux talks to on Arc Testnet (5042002). All link to ArcScan.
FLUX CONTRACTS
FluxSettlement0x0BBBc1…ae2F6A ↗
TOKENS
SWAP ROUTES
XyloNet router0x737422…141023 ↗
XyloNet factory0x60EDeF…1979e2 ↗
UnitFlow LiquidityRouter0x0ef57C…e4B631 ↗
UnitFlow UniversalRouter0xEaF319…48e76F ↗
Contract ABIs
Full ABIs live in frontend/lib/arc.ts (FLUX_ABI, FLUX_LIMIT_ORDER_ABI) and compile straight from source in contracts/. Verified source for both contracts is also readable directly on ArcScan via the addresses above. Key signatures:
FluxSettlement — payments
function batchSettle(address[] recipients, uint256[] amounts) external function createStream(address recipient, uint256 amount, uint64 startTime, uint64 endTime) external returns (uint256) function withdrawFromStream(uint256 streamId) external function cancelStream(uint256 streamId) external function registerAgent(address agent, string label, uint256 budgetCap) external function agentPay(address recipient, uint256 amount) external
FluxLimitOrder — swap escrow
function createOrder(address tokenIn, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint64 expiry) external returns (uint256 orderId) function cancelOrder(uint256 orderId) external function executeOrder(uint256 orderId, address router, bytes swapData) external function withdraw(address token) external function getOrderView(uint256 orderId) external view returns (Order order, bool isExpired)
Events
FluxSettlement
event BatchSettled(address indexed sender, uint256 recipientCount, uint256 totalUSDC, uint256 fee, uint256 timestamp) event StreamCreated(uint256 indexed id, address indexed sender, address indexed recipient, uint256 amount, uint64 startTime, uint64 endTime) event StreamWithdrawn(uint256 indexed id, address indexed recipient, uint256 amount) event StreamCancelled(uint256 indexed id, address indexed sender, uint256 refund) event AgentRegistered(address indexed agent, string label, uint256 budgetCap) event AgentPayment(address indexed agent, address indexed recipient, uint256 amount)
FluxLimitOrder
event OrderCreated(uint256 indexed id, address indexed maker, address tokenIn, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint64 expiry) event OrderCancelled(uint256 indexed id, address indexed maker, uint256 refund) event OrderFilled(uint256 indexed id, address indexed router, uint256 amountOut)