GithubHelp home page GithubHelp logo

isabella232 / trusttoken-smart-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartcontractkit/trusttoken-smart-contracts

0.0 0.0 0.0 7.19 MB

TrustToken smart contracts

Home Page: https://trusttoken.com

License: Other

Shell 0.48% JavaScript 0.27% Ruby 0.01% TypeScript 54.15% Solidity 45.09%

trusttoken-smart-contracts's Introduction

๐Ÿ’ฐ TrueFi Smart Contracts

Coverage Status

๐Ÿ—‚ Table of Contents

๐Ÿ’ก Intro

TrueFi is a decentralized protocol for uncollateralized lending. This repository contains all smart contracts used across TrueFi ecosystem. Contracts are written in Solidity. All key functionalities are tested with attached TypeScript test suite. Apart from contracts and tests repository contains scripts used for deployment and maintenance of existing infrastructure.

๐Ÿ“Ž Projects

Repository consists of following sub-projects.

TrueFi

Core TrueFi smart contracts. These contracts are responsible for establishing main protocol functionalities like creating loans, rating loans, rewarding raters etc. This repository also contains contracts used for TRU liquidity mining program.

True Currencies

Contracts used for True Currencies - a set of fully-backed stablecoins. True Currencies feature tokens pegged to USD, AUD, HKD, GBP and CAD.

Governance

Contracts implementing TrueFi governance. Sub-project features both governor contract and all contracts implementing voting mechanisms.

Proxy

Contracts and utilities allowing to use unified proxy structure across whole TrueFi ecosystem.

Trust Token

Contracts implementing TRU - TrueFi ecosystem governance token.

True Gold

Smart contracts implementing True Gold - a synthetic gold on Ethereum blockchain.

๐Ÿงฐ Installation

In order to compile the contracts first clone the repository. In order to do that run

git clone [email protected]:trusttoken/smart-contracts.git

Then enter smart-contracts directory and install all necessary dependencies by running

yarn

Important note: You need to have node and yarn already installed on your machine.

In order to compile the smart contracts run

yarn build

โœ… Testing

In order to run test suite, run

yarn test

Make sure to install all dependencies and compile contracts first.

In order to run linter, run

yarn lint

In order to run typescript type checks, run

yarn typecheck

All three check suites can be run at once by running

yarn checks

๐Ÿ›ก Coverage

Before proceeding make sure you have the smart contracts compiled. If needed compile by running

yarn build

In order to run coverage, run

yarn coverage

You may also want to run coverage for specific tests. You can do so by providing named argument --testfiles

yarn coverage --testfiles "path/to/tests"

Important note: Keep in mind that when running coverage smart contracts are additionally compiled with optimizer disabled and it may take longer for tests to complete.

๐Ÿš‰ Addresses

Mainnet

Contract Proxy Address
TrueUSD 0x0000000000085d4780B73119b644AE5ecd22b376
TrueGBP 0x00000000441378008EA67F4284A57932B1c000a5
TrueAUD 0x00006100f7090010005f1bd7ae6122c3c2cf0090
TrueCAD 0x00000100F2A2bd000715001920eB70D229700085
TrueHKD 0x0000852600CEB001E08e00bC008be620d60031F2
Registry 0x0000000000013949f288172bd7e36837bddc7211
TrueFi 0x4C19596f5aAfF459fA38B0f7eD92F11AE6543784
Staked TrueFi 0x23696914Ca9737466D8553a2d619948f548Ee424
TrueFi Pool 0xa1e72267084192Db7387c8CC1328fadE470e4149
TrueLender 0x16d02Dc67EB237C387023339356b25d1D54b0922
TrueRatingAgency 0x05461334340568075bE35438b221A3a0D261Fb6b
LoanFactory 0x4ACE6dE67E9a9EDFf5c2d0a584390Fb5394119e7
TrueFi LP Farm 0x8FD832757F58F71BAC53196270A4a55c8E1a29D9
Uniswap TUSD/TFI-LP Farm 0xf8F14Fbb93fa0cEFe35Acf7e004fD4Ef92d8315a
Uniswap ETH/TRU Farm 0xED45Cf4895C110f464cE857eBE5f270949eC2ff4
tfTUSD Distributor 0xfB8d918428373f766B352564b70d1DcC1e3b6383
Uni TUSD/tfTUSD Distributor 0xCc527F4f8c76dB1EBA217d001cCc6f8bD9e0D86E
Uni ETH/TRU Distributor 0x8EFF7d12118Fd599772D6448CDAd11D5fb2568e0
RatingAgencyV2Distributor 0x6151570934470214592AA051c28805cF4744BCA7
stkTRUDistributor 0xecfD4F2C07EABdb7b592308732B59713728A957F
Uniswap Router 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
Uniswap Factory 0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f

โ˜Ž๏ธ Contact

trusttoken-smart-contracts's People

Contributors

benjamincosman avatar coolgig-as avatar dependabot[bot] avatar dmaretskyi avatar dymitrlubczyk avatar hal909 avatar maciejnadolski98 avatar marcuswin avatar miksujak avatar rafaelcosman avatar skalermo avatar terryli0095 avatar vanruch avatar vashti-w avatar wjmelements avatar yubo-ruan avatar yuchenlintt avatar yuchennil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.