/charta

New & improved contracts for Dharma protocol as specified in https://whitepaper.dharma.io

Primary LanguageTypeScript


'Charta' is the latin word for 'letter or document'. We loosely appropriate this term as a codename for the smart contracts comprising the business logic of Dharma protocol.

This codebase is a work-in-progress -- we welcome open-source contributions and emphasize that the code contained herein is pre-alpha, unstable, and potentially unsafe.

Dharma is a protocol for generic tokenized debt issuance and fundraising on blockchains supporting requisite smart contract functionality (i.e. EVM blockchains). For a full description of the protocol's mechanics, a thorough overview can be found in the Dharma Protocol Whitepaper. This repository contains the core contracts that compromise the business logic for issuing and administering debt crypto-assets on-chain.

We use truffle for deployment, testing, and development, and use Typescript for testing and deployment.

Join us on our chat for any technical or general questions.

Setup


Dependencies

Install dependencies:

npm install
Testing

Start testrpc and initialize dependency contracts:

npm run chain

Run truffle tests:

npm test

Contract Architecture

A specification of the contracts comprising Dharma protocol's logic can be found in the Dharma wiki.