Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LoRdSoban/Cryptonomers
A digital will smart contract written in Clarity Lang.
https://github.com/LoRdSoban/Cryptonomers
blockchain smart-contracts
Last synced: 2 months ago
JSON representation
A digital will smart contract written in Clarity Lang.
- Host: GitHub
- URL: https://github.com/LoRdSoban/Cryptonomers
- Owner: LoRdSoban
- Created: 2022-02-03T15:32:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-05T20:02:25.000Z (almost 3 years ago)
- Last Synced: 2024-01-24T03:41:55.444Z (12 months ago)
- Topics: blockchain, smart-contracts
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Digital Will
A smart contract written using [clarity language](https://clarity-lang.org/). It allows a user to mint a digital will as a NFT. The user can add a licensed entity and beneficiary entity. The **licensed entity** has the authority to burn the NFT (digital will) upon the death of original owner. Once the NFT (digital will) is burnt, the funds are transferred to the **beneficiary entity** according to the will.
---
## Public Functions- mint_will (beneficiary **principal**) (amount **uint**)
- burn_will (owner **principal**)
---
## Private Functions
- does_will_exists (owner **principal**)
- will_amount_transfer (sender **principal**) (recipient **principal**) (amount **uint**)
---
## Read Only Functions
- get_will_id (owner **principal**)
- get_will_owner (will_id **uint**)
- get_will_beneficiary (will_id **uint**)
- get_will_amount (will_id **uint**)
---
**Developed by Soban Amir**
---