xpepermint / genobank-biosample-permission-token

Non-fungible token example for tracking recursive licensing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status NPM Version Dependencies Status

Biosample Permission Token

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

Structure

This smart contract is a thin wrapper on the reference ERC-721 implementation.

Tests for all new functionality are here. These are specifically made to test different edge cases and behaviours.

Requirements

  • NodeJS 9.0+ is supported
  • Windows, Linux or macOS

Installation

npm

(NPM INSTALLATION IS NOT SUPPORTED YET)

$ npm install fulldecent/biosample-permission-token

Source

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

Usage

npm

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);

Remix IDE (Ethereum only)

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.

Playground

Ethereum - Ropsten testnet

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

Wanchain - testnet

WE HAVE NOT DEPLOYED TO WANCHAIN YET

Contributing

See CONTRIBUTING.md for how to help out.

Licence

See LICENSE for details.

About

Non-fungible token example for tracking recursive licensing


Languages

Language:TypeScript 59.2%Language:Solidity 33.4%Language:JavaScript 7.4%