A real-world-asset (real estate) tokenization system: a property is minted as an ERC-1155 token whose metadata and valuation come from a real off-chain API via Chainlink Functions, the token can move across chains via Chainlink CCIP burn-and-mint, and two financial primitives are built directly on top of it — an English auction and overcollateralized USDC lending against the token as collateral.
Deployed and verified live on Avalanche Fuji testnet — see Deployed contracts below for addresses and the exact date each one went live.
Issuance (Issuer.sol) — the owner calls issue(),
which fires a Chainlink Functions request running inline JavaScript
(FunctionsSource.sol) that calls a real
estate data API (bridgedataoutput.com), pulls the property's address, year
built, lot size, living area, and bedroom count, and builds token metadata
from it. When the Functions DON responds, fulfillRequest() mints the
fractionalized ERC-1155 to the requested recipient with that metadata as its
tokenURI — the token's identity is derived from a real external data source,
not hardcoded.
Pricing (RealEstatePriceDetails.sol) —
a second, independent Chainlink Functions integration that refreshes a
token's listPrice, originalListPrice, and taxAssessedValue on demand
(callable by the owner or a designated Chainlink Automation forwarder), so
the on-chain valuation can be kept current without manual updates.
Cross-chain transfer (CrossChainBurnAndMintERC1155.sol) —
crossChainTransferFrom() burns the token on the source chain, packages the
owner/id/amount/URI into a Chainlink CCIP message, and sends it through the
CCIP Router (fees payable in native gas or LINK). ccipReceive() on the
destination chain re-mints the identical token, gated by an owner-managed
per-chain sender allowlist (enableChain/disableChain) so only a trusted
deployment of this contract on another chain can mint on your behalf.
English auction (use-cases/EnglishAuction.sol) —
a standard escrow-and-bid auction scoped to this token: the seller deposits
the ERC-1155 into the auction contract, bidders raise the price, losing
bidders can withdraw their ETH, and the winning bid transfers the token to
the highest bidder when the auction ends.
RWA-backed lending (use-cases/RWALending.sol) —
borrow USDC against the token as collateral. Collateral value is computed
from a weighted blend of the three price fields pulled via Chainlink
Functions (listPrice, originalListPrice, taxAssessedValue), converted
to USD via a Chainlink price feed (AggregatorV3Interface) with staleness
checks, and loans are capped at an initial loan-to-value ratio with a
separate, tighter liquidation threshold.
| Contract | Role |
|---|---|
RealEstateToken.sol |
The token itself — combines cross-chain transfer and pricing into one ERC-1155 |
Issuer.sol |
Mints new fractionalized tokens using off-chain property data via Chainlink Functions |
ERC1155Core.sol |
Base ERC-1155 with owner/issuer-gated mint and burn |
CrossChainBurnAndMintERC1155.sol |
Chainlink CCIP burn-and-mint cross-chain transfer logic |
RealEstatePriceDetails.sol |
Chainlink Functions integration for on-chain valuation data |
FunctionsSource.sol |
The inline JavaScript source run by the Chainlink Functions DON |
use-cases/EnglishAuction.sol |
Escrow-and-bid auction for the token |
use-cases/RWALending.sol |
USDC lending market collateralized by the token |
utils/Withdraw.sol |
Owner-only native-token withdrawal helper |
| Contract | Address | Deployed |
|---|---|---|
RealEstateToken |
0x5727ae2b339b7afe2941da00d41b18443d1f0653 |
2024-09-30 |
Issuer |
0xd8654711fa4bc97e977573e3b2f3145ccb9ad35a |
2024-09-30 |
RwaLending |
0x2b52a7de617d1ecdfebf711cc35fae3a4876b25c |
2024-10-04 |
EnglishAuction |
0x7e7050b012303b1b29ed114b828fbe8aa1ee0ac8 |
2024-10-04 |
ABI + deployment metadata for each: see deployments/.
- Solidity 0.8.24, OpenZeppelin 5.0 (
ERC1155,ERC1155Supply,ReentrancyGuard,SafeERC20) - Chainlink Functions (
FunctionsClient, inline JavaScript DON requests) for off-chain data - Chainlink CCIP (
Client,IRouterClient,IAny2EVMMessageReceiver) for cross-chain transfer - Chainlink Data Feeds (
AggregatorV3Interface) for USD price conversion in the lending market - Hardhat for compilation; originally built and deployed from Remix IDE
npm install
npx hardhat compile- Testnet only (Avalanche Fuji), deployed 2024-09-30 through 2024-10-04.
- Every contract's own header is explicit about scope: these are example contracts using hardcoded values for clarity, unaudited, and not intended for production use as-is — treat this as a working demonstration of tokenizing a real-world asset across issuance, pricing, cross-chain transfer, and two financial use cases, not a hardened product.
- No test suite yet (
npx hardhat testhas nothing to run). - The
RealEstateTokenconstructor wires together CCIP router, LINK token, and chain selector addresses that are network-specific — see each contract's deployment record indeployments/for the exact constructor arguments used on Fuji.