Skip to content

mortemn/Apocrypha-Contracts

Repository files navigation

Apocrypha Contracts

Minimal ERC721 implementation for academic articles. Distribution of access control tokens from licensed holders.

Architecture

├── Factory.sol - "Factory for deploying contracts"
├── MasterNFT.sol - "Main ERC721 storing data and representing ownership of article"
├── License.sol - "License for distributing access tokens"
├── AccessToken.sol - "Distributed access for academic articles and journals"
├── AuthorityModule.sol - "Authority for access tokens"
└── test
    └── FactoryTest.t.sol
    └── LicenseTest.t.sol

Installation

Foundry

First run the command below to get foundryup, the Foundry toolchain installer:

curl -L https://foundry.paradigm.xyz | bash

If you do not want to use the redirect, feel free to manually download the foundryup installation script from here.

Then, in a new terminal session or after reloading your PATH, run it to get the latest forge and cast binaries:

foundryup

Advanced ways to use foundryup, and other documentation, can be found in the foundryup package. Happy forging!

Hardhat

`npm install` or `yarn`

Tests

forge test -vv

About

Contracts for Apocrypha

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published