Skip to content

anonymousbull/popapp

Repository files navigation

Proof of Profit: Simulated Trading Environment

Proof of Profit is a proof-of-concept trading simulator for traders to practice and prove profitability. By demonstrating success in this simulated environment, traders may receive capital from investors. The project emphasizes privacy, price accuracy, and account abstraction using advanced tools.

Key Features

  • Privacy & Security: Trading data is protected within a Cycles-Quartz Trusted Execution Environment (TEE).
  • Price Feeds: Slinky Neutron's native oracle is used to ensure reliable price data.
  • Account Abstraction: Built on Abstract SDK to simplify and enhance account management.

Setup Requirements

To run Proof of Profit, ensure you have:

  • LLVM (not the default system version)
  • Neutrond
  • Rust
  • Additional System Libraries (required for agnostic SGX mock, check for errors during setup)
  • Just (CLI runner)

Instructions

1. Build All Components

To build the entire application, run:

just build-all

2. Smart Contracts

The frontend relies on smart contracts deployed to the testnet.

  1. Deploy the smart contracts using:
    just publish-test
    Ensure you have testnet funds.

3. Frontend

  1. Navigate to the web directory.
  2. Start the frontend:
    npm run dev

    Note: Frontend requires smart contracts to be active.

4. Cycles-Quartz (TEE Environment)

A private TEE environment (using Cycles-Quartz) allows local testing:

  1. Build the Quartz CLI:
    cargo install --path crates/cli
  2. From the root directory:
    just build-pop2-enclave
    just start-pop2-enclave
    Ensure a neutron key saved with the alias admin.

Technical Highlights

Abstract SDK Slinky Adapter

The adapter abstracts Slinky oracles, allowing core smart contract updates without oracle modifications. See the code here.

Abstract SDK UI

The frontend integrates account creation via Abstract SDK, abstracting blockchain interactions. Implementation details are here.

Cycles-Quartz Integration

A secure SGX TEE monitors the state and decrypts/encrypts data for secure communication between UI and blockchain. Examples:


Additional Resources


Future Vision

This protocol allows traders to prove profitability in a controlled environment, leading to potential investment and on-chain trading. The long-term goal is to create a versatile protocol that interacts with decentralized exchanges (DEXes) for liquidity and cross-chain compatibility. Currently, the focus is on refining the simulated trading environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published