https://github.com/masdxi/expirable-erc20-utxo
Expirable ERC20 with the UTXO (Unspent Transaction Output) model
https://github.com/masdxi/expirable-erc20-utxo
erc20 smart-contract solidity utxo
Last synced: about 1 month ago
JSON representation
Expirable ERC20 with the UTXO (Unspent Transaction Output) model
- Host: GitHub
- URL: https://github.com/masdxi/expirable-erc20-utxo
- Owner: MASDXI
- Created: 2023-04-16T09:26:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-17T13:45:53.000Z (3 months ago)
- Last Synced: 2025-04-14T18:09:43.317Z (about 1 month ago)
- Topics: erc20, smart-contract, solidity, utxo
- Language: Solidity
- Homepage:
- Size: 98.6 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Expirable ERC20 with UTXO
This is a Solidity smart contract that implements an ERC20 token with the UTXO (Unspent Transaction Output) model and an expiration mechanism. The contract is designed to allow the minting of tokens with an expiration date, after which they become unusable.> [!Important]
> This contract implementation is too sophisticate to use, suggest moving to [ERC-7818](https://github.com/MASDXI/ERCs/blob/master/ERCS/erc-7818.md)## Getting Started
#### Prerequisites
To compile and test the smart contract, you need the following:- node [Download](https://nodejs.org/en/)
- nvm [Download](https://github.com/nvm-sh/nvm#installing-and-updating)
- git [Download](https://git-scm.com/)#### Installing
```
git clone https://github.com/MASDXI/ERC20-Expriable.git
```
Install the dependencies:
```
cd ERC20UTXOExpirable
yarn install
```
#### Compiling
Compile the smart contract:
```
yarn compile
```#### Testing
Run the tests:
```
yarn test:utxo
```