Skip to content

A transparent asset-based lending protocol implemented for the EVM.

License

Notifications You must be signed in to change notification settings

Linqto-Team/probity

 
 

Repository files navigation

Probity

Build NPM

Probity is a protocol for asset-based lending designed to run on EVM-compatible distributed ledgers.

You can view the contract code in the contracts folder and the audit report can be found in the audits folder. You can find everything else in the protocol documentation.

Usage

This repository contains the source code for the Probity smart contract system and examples to jumpstart development with Probity. The contract ABIs are accessible through the @trustline/probity NPM package.

Installation

This project uses Node.js and assumes you have it installed.

Add @trustline/probity to your project with npm or yarn:

npm install @trustline/probity --save

Example

Below is a code snippet that shows how to import the contract ABI and call a contract method using ethers.

/**
 * This example gets the total supply of the USD token by
 * calling the `totalSupply` method on the ERC20 contract at
 * <address>.
 */
import UsdABI from "@trustline/probity/artifacts/contracts/tokens/Usd.sol/USD.json";
import { Contract } from "ethers";

const USD_ERC20_ADDRESS = "<address>";

const usdErc20 = new Contract(
  USD_ERC20_ADDRESS,
  UsdABI.abi,
  library.getSigner()
);
const totalSupply = await usdErc20.totalSupply();
console.log("Total supply:", totalSupply);

Development

See the developer guide for details.

Deployment

See the deployment guide for details.

Administration

See the administration guide for details.

Contract Addresses

Coston 2 Network

Note: This is a test network.

Coston 2 contract address will be listed here. The network native token is CFLR.

Songbird Network

Songbird contract addresses will be listed here. The Songbird network's native token is SGB.

Flare Network

Flare contract addresses will be listed here. The Flare network's native token is FLR.

License

Apache 2.0 © Linqto Inc.

About

A transparent asset-based lending protocol implemented for the EVM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 69.1%
  • Solidity 30.8%
  • Other 0.1%