Skip to content

AdCazzum/cavoletto

Repository files navigation

Cavoletto

Flows

The DApp allows users to deploy smart contracts on the Fhenix testnet and specify a list of heirs and which percentages of which token they will inherit. Tokens can be both TEth, generic ERC-20 tokens and NFTs. All the information (hiers, tokens and percentages) will be stored on chain encrytped, so they will be secret as long as the testator is alive. When the testator/deployer will declared dead whoever will be able to trigger the contract and distribute the inheritance. As possible strategies for the proof of death we considered TLSNotary or simply a mechanism that automatically marks the testator as dead after a certain amount of time if he/she doesn't recurrently call a contract's method.

Testator

  1. The wallet is connected
  2. Opens the website and click on "make will"
  3. Sets which tokens (for now let's assume WETH) and NFTs and the percentages that everybody is going to inherit
  4. Approve/transfer to the contract
  5. Click on something -> the information above is stored encrypted in a contract
  6. The testator keeps sending a transaction to prove he's still alive until...
  7. BIS: use TLSNotary

Heir

  1. The wallet is connected
  2. ...he doesn't send those transactions anymore and a counter in the contract reaches a certain value
  3. Potentially whoever can call the contract triggering it
  4. The amounts are computed and transferred
  5. Profit

Frontned

pnpm install
pnpm localfhenix:start
npx hardhat deploy
npx hardhat test
npx hardhat test --network localfhenix

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published