Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ProbeInsure

Parametric insurance for ProbeChain Rydberg Testnet (Chain ID 8004).

Contract: ParametricInsurance

  • createPolicy(eventType, threshold, payout, duration) payable — Create an insurance policy by paying premium.
  • triggerPolicy(policyId, oracleData) — Oracle triggers when threshold is met.
  • claimPayout(policyId) — Policyholder claims the payout after trigger.
  • expirePolicy(policyId) — Mark expired policies.
  • Authorized oracle system, auto-execution on threshold, insurance pool.

Setup

npm install
cp .env.example .env
# Add your private key to .env
npx hardhat compile
npx hardhat run scripts/deploy.ts --network rydberg