1.0.0 • Published 10 months ago

@trustline/probity v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

Probity

Build

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

Coston2 Network

ContractAddress
Registry0x3Aa5ebB10DC797CAC828524e59A333d0A371443c
Vault Engine0xc5a5C42992dECbae36851359345FE25997F5C42d
USD0xc6e7DF5E7b4f2A278906862b61205850344D4e7d
PBT0x4ed7c70F96B99c776995fB64377f0d4aB3B0e1C1
Bond Issuer0x84eA74d481Ee0A5332c457a4d796187F6Ba67fEB
Teller0xf5059a5D33d5853360D16C683c16e67980206f36
Treasury0x0E801D84Fa97b50751Dbf25036d067dCf18858bF
Price Feed0x4826533B4897376654Bb4d4AD88B7faFD0C98528
Auctioneer0x809d550fca64d94Bd9F66E60752A544199cfAC3D
Linear Decrease0x998abeb3E57409262aE5b751f60747921B33613E
Liquidator0x5eb3Bc0a489C5A8288765d2336659EbCA68FCd00
Reserve Pool0xa82fF9aFd8f496c3d6ac40E2a0F282E47488CFc9
Low APR0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f
High APR0x7a2088a1bFc9d81c55368AE168C2C02570cB814F
C2FLR Manager0xE6E340D132b5f46d1e472DebcD681B2aBc16e57E
USD Manager0x1291Be112d480055DaFd8a610b7d1e203891C274

Songbird Network

ContractAddress
Registry0x72b96dF84644e9F5bC91228C52cA24D74aC04558
Vault Engine0x776C09f1640175f509c743C451Bb513ee13fF67A
USD0xc6e7DF5E7b4f2A278906862b61205850344D4e7d
PBT0x7f2cF5bC5065BCaDF7713d11de41D9e0523D574e
Bond Issuer0xe40eF80bF629d0DcbE731651397043afd1753355
Teller0x1c86117F477D4C84e5954A85f3F1c787b67f1a31
Treasury0x60b1d01AC1036906Eca859e6b55ca1bf9cAB92EF
Price Feed0x0EdF1C1BaE930B74f80371128239Ab5f584aADF1
Auctioneer0xa09dAB87b5dD723458d76ceC090E9224c80Be3a7
Linear Decrease0xe442c0E9C8BeA6E96a2E2d8Fa29bD86c91aB487a
Liquidator0xAb935B158336723448C676071B28717c2B135ffd
Reserve Pool0xe2F72317D5F14Cc6d4b23019088768D456697fd6
Low APR0xFfA93AdFc1A8afda8214Dae9b00fA37d67786754
High APR0x4a23d4367Fc048B26ab9A14c33533EaF99b8b170
SGB Manager0x1aDF9d1AF441d4489ea2C6b9a7e944B1A59b0e98
USD Manager0xE1F322df0660470d1f8af66412FE631700a5eC95

Flare Network

ContractAddress
Registry0xbF8A3CA285C7ccbACbC0c8666348f432060794Aa
Vault Engine0x29e42438a60EC8F5aacC51f826a0BB07F32507bb
USD0x2De05d67bf2D03045684a48Ba269A09c51F53A6f
PBT0x2d552d09c96A4c3d57924A636038CcceC2DF2c5e
Bond Issuer0x046508cc0be05F30741EABea5790bf4deFC6a079
Teller0xDBB461218eD84D712c2d57519c6672eF5F1529E9
Treasury0xF8b3093D277E5C8315CEFdB774d48d8665c28Bb8
Price Feed0x6F1D557192f959339AfDF798F5Dba16c73C2A863
Auctioneer0xa09dAB87b5dD723458d76ceC090E9224c80Be3a7
Linear Decrease0x166D6398fc2219268Fd049F3F6898841B86f0970
Liquidator0xAb935B158336723448C676071B28717c2B135ffd
Reserve Pool0x6E4e94D9f9D36F1C4C9695fDA80cc9B5Ba16A3c5
Low APR0x52031a7B712C412D546670Fa0A4140d4Dda91641
High APR0x559409c4cE34efaDb000D00Ded0a7F9302a17f9C
FLR Manager0x3de0107eF69a5164B0e79daE9793B7C08f877aDb
USD Manager0x2De05d67bf2D03045684a48Ba269A09c51F53A6f

License

Apache 2.0 © Linqto Inc.

1.0.0

10 months ago

1.0.0-beta3

1 year ago

1.0.0-beta2

1 year ago