Skip to content
This repository was archived by the owner on Jul 10, 2026. It is now read-only.

Repository files navigation

ReineiraOS Code

PlatformLicense

AI-assisted plugin development for ReineiraOS. Build condition resolvers and insurance policies with Claude Code.

Platform 0.1 — Generates contracts compatible with ReineiraOS v0.1 interfaces. Check reineira.json for version details.

Setup

git clone https://github.com/ReineiraOS/reineira-code.git
cd reineira-code
npm install --legacy-peer-deps
cp .env.example .env
# Add your private key and RPC URL to .env

Usage

Open in an editor with Claude Code. Use slash commands:

CommandWhat it does
/new-resolverBuild a condition resolver from a description
/new-policyBuild an insurance policy with FHE from a description
/deployDeploy any contract to Arbitrum Sepolia
/testRun tests, diagnose and fix failures
/auditSecurity audit against the protocol checklist
/integrateGenerate SDK code to attach your contract to an escrow
/scaffold-testGenerate tests for an existing contract
/verifyVerify a deployed contract on Arbiscan

Example

/new-resolver A resolver that verifies PayPal payment via zkTLS proof from Reclaim Protocol

Claude Code generates the Solidity contract, tests, and deployment script — all pre-configured for the ReineiraOS protocol.

The ecosystem

RepoWhat you do therePlatform
reineira-atlasRun the startup — strategy, ops, growth, compliance, pitch0.1
reineira-code (this repo)Build smart contracts — resolvers, policies, tests, deploy0.1
platform-modulesShip the product — backend, platform app, payment link0.1

All repos declare their platform compatibility in reineira.json. When the platform version bumps, breaking contract interface changes may require upgrading.

Test & Deploy

# Test
forge test# E2E Demo (Chainlink + Reclaim on Arbitrum Sepolia)
forge script script/E2EDemo.s.sol --rpc-url arbitrum_sepolia --broadcast

What's Included

Resolvers:

  • ChainlinkPriceFeedResolver - Price-based conditions using Chainlink Data Feeds
  • ReclaimResolver - zkTLS proof verification for any HTTPS endpoint
  • TimelockResolver - Simple time-based conditions

Tests: 35/35 passing

Compatibility

ComponentRequirement
PlatformReineiraOS 0.1
Solidity^0.8.24
FoundryLatest
SDK@reineira-os/sdk ^0.1.0
cofhejs^0.5.0 (migrating)
Reclaim@reclaimprotocol/zk-fetch ^0.8.0
Chainlink@chainlink/contracts ^1.3.0
Node.js18+

Documentation

Foundry Reference

This project uses Foundry for smart contract development:

  • Forge: Ethereum testing framework
  • Cast: CLI for interacting with contracts
  • Anvil: Local Ethereum node for testing

For more details, see the Foundry Book.

License

MIT

Releases

Packages

Contributors

Languages