Skip to content

ArchSpaceman/autara-arch-0.6.1

 
 

Repository files navigation

Autara Lending V1

Autara Lending V1 is a decentralized lending protocol built on the Arch blockchain. It allows users to lend and borrow permissionlessly assets. The protocol is designed to be secure, efficient, and user-friendly, providing a seamless experience for both lenders and borrowers.

Setup

Repository

This repository contains 7 crates:

  • autara-lib: Main library of the Autara protocol, defining the data structures and logic
  • autara-client: A client to interact with the Autara protocol
  • autara-program-lib: Library for Arch smart contracts
  • autara-program: Autara smart contract
  • autara-integration-tests: Standalone crate for the Autara smart contracts integration tests
  • autara-pyth: A naive client to push Pyth price feeds to autara-oracle smart contracts
  • autara-oracle: A naive oracle smart contract to store Pyth price feeds without any validation

Build

To build smart contracts, run the following command:

cargo-build-sbf --features entrypoint

To build workspace, run:

cargo build

Local environment

Setup an arch local environment:

docker pull --platform linux/amd64 baptisteeb/arigato-node:latest
docker run -d --platform linux/amd64 --name arigato-node -p 18443:18443 -p 3030:3030 -p 9002:9002 baptisteeb/arigato-node:latest

Then, deploy the smart contracts:

cargo run --bin deploy

Run Pyth Pusher

cargo run --bin autara-pyth

Run demo

cargo run --bin autara-client

Autara Server

cargo run --bin autara-server

Test

cargo nextest run --no-fail-fast -j 24

If you dont have a local arch node running, you can run the tests with the following command:

cargo nextest run --exclude autara-integration-tests --workspace

Run tests with coverage:

cargo llvm-cov nextest --exclude autara-integration-tests --workspace

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 100.0%