https://github.com/nucypher/alpha-leaks-demo
https://github.com/nucypher/alpha-leaks-demo
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nucypher/alpha-leaks-demo
- Owner: nucypher
- License: gpl-3.0
- Created: 2022-11-16T11:24:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-03T16:06:17.000Z (over 1 year ago)
- Last Synced: 2025-10-31T12:05:52.246Z (8 months ago)
- Language: TypeScript
- Size: 5.49 MB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alpha leaks demo
> [!WARNING]
> This is an outdated demo that will not work with recent versions of [taco-web](https://github.com/nucypher/taco-web/)
See the live demo [here](https://nucypher.github.io/alpha-leaks-demo/).
This is a demo that illustrates a use case of [TACo](https://docs.taco.build/).
This is a weblog. There are three levels of subscription. Each subscription level will let you
access the posts corresponding to your subscription. Subscription levels are defined by the balance
of MultiFaucet NFTs your account owns.
 A bronze subscription will let you read only the Bronze
posts. **One NFT is needed.**
 A silver subscription will let you read Bronze and
Silver posts. **Two NFTs are needed.**
 A gold subscription will let you read Bronze, Silver,
and Gold posts. **Three NFTs are needed.**
The decryption of the posts is done by Nucypher's CBD technology. CBD will check the balance of NFTs
and show you the corresponding blog posts.
## Usage
To run this demo you will need to have MetaMask installed and an account with sufficient MATIC on
Polygon Mumbai testnet to fund the "Create Policy" contract method call.
Additionally, to have decryption rights over the posts, you will need some [MultiFaucet
NFTs](https://mumbai.polygonscan.com/address/0xf5de760f2e916647fd766b4ad9e85ff943ce3a2b#code) on
the Polygon Mumbai testnet. The balance of this ERC721 token will determine the subscription level
and, therefore, the number of posts you will be able to see.
Both, MATIC and MultiFaucet NFTs can be claimed in [Paradigm
MultiFaucet](https://faucet.paradigm.xyz/).
## Installation
Requires node version 16 or later.
```bash
$ yarn install
$ yarn build
$ yarn start
```
## References
The example project
[react-webpack-5-experiments](https://github.com/nucypher/nucypher-ts/tree/main/examples/react-webpack-5-experiments)
has been used as a base for this demo.