This is a proof-of-concept demonstration of how to use claims, encoded in non-fungible tokens, to establish a chain of trust for licensing and sublicensing agreements.
This project is sponsored by GenoBank.io.
See video explanation of the technology at: https://www.youtube.com/watch?v=su5eWYnRN24
This smart contract is a thin wrapper on the reference ERC-721 implementation.
biosample-permission-token
: This extents the reference nf-token-metadata.sol implementation.
Tests for all new functionality are here. These are specifically made to test different edge cases and behaviours.
- NodeJS 9.0+ is supported
- Windows, Linux or macOS
(NPM INSTALLATION IS NOT SUPPORTED YET)
$ npm install fulldecent/biosample-permission-token
This is the recommended installation method if you want to improve the fulldecent/biosample-permission-token
project.
Clone this repository and install the required npm
dependencies:
$ git clone git@github.com:fulldecent/biosample-permission-token.git
$ cd biosample-permission-token
$ npm install
Make sure that everything has been set up correctly:
$ npm run test
To interact with this package's contracts within JavaScript code, you simply need to require this package's .json
files:
const contract = require("fulldecent/biosample-permission-token/build/biosample-permission-token.json");
console.log(contract);
You can quickly deploy a contract with this library using Remix IDE. Here is one example.
pragma solidity 0.6.2;
import "https://github.com/fulldecent/biosample-permission-token/src/contracts/tokens/biosample-permission-token.sol";
WE ARE ALSO WORKING ON A BLOG POST THAT EXPLAINS THE SIGNIFICANCE HERE AND SHOWS YOU MORE THAT YOU CAN DO AFTER YOU DEPLOY THIS SMART CONTRACT.
WE HAVE NOT DEPLOYED TO ROPSTEN YET
We already deployed some contracts to the Ropsten network. You can play with them RIGHT NOW. No need to install the software. In this test version of the contract.
Contract | Token address |
---|---|
biosample-permission-token |
0x00 |
WE HAVE NOT DEPLOYED TO WANCHAIN YET
See CONTRIBUTING.md for how to help out.
See LICENSE for details.