raisinFi

Cross-Chain Coordination State Engine Layer for Tokenised Markets

raisinFi

Created At

ETHGlobal Mumbai

Project Description

RaisinFi is a cross-chain financial coordination platform that enables participants to execute transactions involving assets on different blockchains through a single, coordinated lifecycle.

Consider a simple example: Alice wants to purchase tokenised assets from Bob, but the payment and the asset exist on different networks. Normally, coordinating both sides introduces risks: one participant could lock their funds while the other never delivers, transactions could become inconsistent across chains, or one side could remain stuck waiting for the other.

RaisinFi addresses this coordination problem by connecting the transaction's entire lifecycle. Participants agree on shared transaction terms, independently reserve their respective assets on their native chains, and let a coordination layer verify that the required conditions have been satisfied before initiating settlement.

Each agreement is bound to a unique transaction ID and a canonical terms hash, ensuring that both chains refer to exactly the same transaction. A write-once decision mechanism on the payment chain determines whether the transaction commits or aborts. The corresponding decision is then relayed to the asset chain, where the reserved asset is either delivered or released.

Our architecture uses Chainlink Runtime Environment (CRE) as the cross-chain orchestration layer, with smart contracts enforcing reservation and settlement rules on each chain. The goal is to make complex multi-chain transactions behave like one understandable, coordinated financial operation, without requiring participants to surrender custody of their assets to a central intermediary.

Our initial demonstration uses Ethereum Sepolia and Base Sepolia, with two participants exchanging test tokens across both networks. RaisinFi is designed to extend this coordination model to more complex financial workflows and tokenised asset transactions.

How it's Made

RaisinFi is built using Solidity, TypeScript, Next.js and Chainlink's Runtime Environment (CRE).

The smart contract layer consists of two settlement contracts deployed on Ethereum Sepolia and Base Sepolia. The payment-side contract manages transaction registration, payment reservations and the authoritative write-once COMMIT/ABORT decision. The asset-side contract manages asset reservations and executes delivery or release after receiving an authenticated decision relay.

Every transaction is represented by a shared Terms structure containing the participants, chain IDs, settlement contract addresses, token addresses, amounts and expiry. Both contracts independently compute and validate the canonical terms hash, preventing mismatched transaction parameters across chains.

We use Chainlink CRE as the orchestration layer. Its TypeScript workflow reads on-chain events and state, verifies matching reservations and transaction terms, and prepares the appropriate coordination report for cross-chain execution. We also built report encoding and reconciliation logic to handle retries, duplicate reports and missed events without changing an already-recorded settlement decision.

The frontend is built with Next.js and TypeScript, using Viem and wallet connectivity to let participants register agreements, approve tokens, reserve assets and inspect the transaction lifecycle directly through their wallets. The interface reads both chains and presents their states in a shared transaction timeline.

One particularly important engineering decision is our separation of safety from liveness: the destination chain cannot independently refund a reservation simply because it has timed out. It must receive the authoritative decision from the payment chain. This means temporary orchestration failures can delay settlement, but cannot independently cause contradictory outcomes.

We are initially validating the workflow on Sepolia and Base Sepolia using custom ERC-20 demo tokens. Our architecture also includes an evidence layer intended for Arkiv integration, allowing transaction lifecycle records to be independently queried and associated with participants.

background image mobile

Join the mailing list

Get the latest news and updates